faustf

staqtus bar disappear koda to autoit

6 posts in this topic

hi  guy i  create  a gui with  status  bar  in  koda  i see  them  but  when i run the  script  not  see  how  is possible ??

 

this is my code

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiIPAddress.au3>
#include <GUIListBox.au3>
#include <GuiStatusBar.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=e:\_grossiti-grab\gui\gui_ok.kxf
$Form2 = GUICreate("Form1", 1197, 767, 237, 0)
$MenuItem2 = GUICtrlCreateMenu("&MenuItem2")
$MenuItem3 = GUICtrlCreateMenuItem("MenuItem3", $MenuItem2)
$MenuItem1 = GUICtrlCreateMenu("M&enuItem1")
$MenuItem5 = GUICtrlCreateMenuItem("MenuItem5", $MenuItem1)
$MenuItem4 = GUICtrlCreateMenuItem("MenuItem4", $MenuItem1)
$StatusBar1 = _GUICtrlStatusBar_Create($Form2)
Dim $StatusBar1_PartsWidth[1] = [-1]
_GUICtrlStatusBar_SetParts($StatusBar1, $StatusBar1_PartsWidth)
_GUICtrlStatusBar_SetText($StatusBar1, "Status:", 0)
$Group1 = GUICtrlCreateGroup("", 0, 0, 1195, 726)
$Group2 = GUICtrlCreateGroup("", 4, 531, 1187, 191)
$Button2 = GUICtrlCreateButton("Start", 1130, 695, 51, 21)
$Input2 = GUICtrlCreateInput("Input2", 1060, 664, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$Input1 = GUICtrlCreateInput("Input1", 1060, 639, 121, 21)
$Label1 = GUICtrlCreateLabel("User:", 1025, 641, 29, 17)
$Label2 = GUICtrlCreateLabel("Pass:", 1024, 667, 30, 17)
$Button1 = GUICtrlCreateButton("", 1138, 543, 38, 37, BitOR($BS_NOTIFY,$BS_ICON))
GUICtrlSetImage(-1, "E:\_GROSSITI-GRAB\icon\Svengraph.ico", -1)
$List1 = GUICtrlCreateList("", 160, 543, 449, 175, BitOR($LBS_NOTIFY,$LBS_SORT,$WS_BORDER))
$Checkbox36 = GUICtrlCreateCheckbox("Multi Scraper", 16, 552, 89, 17)
$Button3 = GUICtrlCreateButton("Scan", 116, 578, 38, 21)
$Button4 = GUICtrlCreateButton("Kill Process", 624, 552, 72, 21)
$Label3 = GUICtrlCreateLabel("192.168.1.", 16, 580, 55, 17)
$Label4 = GUICtrlCreateLabel("192.168.1.", 16, 613, 55, 17)
$Input3 = GUICtrlCreateInput("255", 71, 578, 25, 21)
$Input4 = GUICtrlCreateInput("255", 71, 611, 25, 21)
$IPAddress1 = _GUICtrlIpAddress_Create($Form2, 13, 667, 130, 21)
_GUICtrlIpAddress_Set($IPAddress1, "0.0.0.0")
$Button5 = GUICtrlCreateButton("Add", 115, 694, 38, 21)
$Label5 = GUICtrlCreateLabel("IP Slave", 16, 650, 44, 17)
$Button6 = GUICtrlCreateButton("Reload", 624, 586, 72, 21)
$Button7 = GUICtrlCreateButton("Clean", 624, 694, 72, 21)
$Icon1 = GUICtrlCreateIcon("E:\_GROSSITI-GRAB\icon\C3PO.ico", -1, 119, 607, 32, 32)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Pic1 = GUICtrlCreatePic("E:\_GROSSITI-GRAB\icon\tasti_espri.jpg", 48, 24, 236, 500)
$Checkbox1 = GUICtrlCreateCheckbox("", 28, 47, 17, 17)
$Pic2 = GUICtrlCreatePic("E:\_GROSSITI-GRAB\icon\tasti_espri2.jpg", 344, 24, 236, 500)
$Pic3 = GUICtrlCreatePic("E:\_GROSSITI-GRAB\icon\tasti_espri3.jpg", 648, 16, 236, 460)
$Pic4 = GUICtrlCreatePic("E:\_GROSSITI-GRAB\icon\tasti_espri4.jpg", 944, 22, 228, 454)
$Checkbox2 = GUICtrlCreateCheckbox("", 324, 46, 17, 17)
$Checkbox3 = GUICtrlCreateCheckbox("", 629, 45, 17, 17)
$Checkbox4 = GUICtrlCreateCheckbox("", 925, 44, 17, 17)
$Checkbox5 = GUICtrlCreateCheckbox("", 28, 104, 17, 17)
$Checkbox6 = GUICtrlCreateCheckbox("", 324, 104, 17, 17)
$Checkbox7 = GUICtrlCreateCheckbox("", 629, 105, 17, 17)
$Checkbox8 = GUICtrlCreateCheckbox("", 925, 106, 17, 17)
$Checkbox9 = GUICtrlCreateCheckbox("", 28, 163, 17, 17)
$Checkbox10 = GUICtrlCreateCheckbox("", 324, 164, 17, 17)
$Checkbox11 = GUICtrlCreateCheckbox("", 629, 162, 17, 17)
$Checkbox12 = GUICtrlCreateCheckbox("", 925, 167, 17, 17)
$Checkbox13 = GUICtrlCreateCheckbox("", 28, 214, 17, 17)
$Checkbox14 = GUICtrlCreateCheckbox("", 324, 217, 17, 17)
$Checkbox15 = GUICtrlCreateCheckbox("", 629, 217, 17, 17)
$Checkbox16 = GUICtrlCreateCheckbox("", 925, 222, 17, 17)
$Checkbox17 = GUICtrlCreateCheckbox("", 28, 269, 17, 17)
$Checkbox18 = GUICtrlCreateCheckbox("", 324, 271, 17, 17)
$Checkbox19 = GUICtrlCreateCheckbox("", 629, 269, 17, 17)
$Checkbox20 = GUICtrlCreateCheckbox("", 925, 273, 17, 17)
$Checkbox21 = GUICtrlCreateCheckbox("", 28, 330, 17, 17)
$Checkbox22 = GUICtrlCreateCheckbox("", 324, 328, 17, 17)
$Checkbox23 = GUICtrlCreateCheckbox("", 629, 329, 17, 17)
$Checkbox24 = GUICtrlCreateCheckbox("", 925, 332, 17, 17)
$Checkbox25 = GUICtrlCreateCheckbox("", 28, 385, 17, 17)
$Checkbox26 = GUICtrlCreateCheckbox("", 324, 385, 17, 17)
$Checkbox27 = GUICtrlCreateCheckbox("", 629, 383, 17, 17)
$Checkbox28 = GUICtrlCreateCheckbox("", 925, 386, 17, 17)
$Checkbox29 = GUICtrlCreateCheckbox("", 28, 440, 17, 17)
$Checkbox30 = GUICtrlCreateCheckbox("", 324, 443, 17, 17)
$Checkbox31 = GUICtrlCreateCheckbox("", 629, 433, 17, 17)
$Checkbox32 = GUICtrlCreateCheckbox("", 925, 443, 17, 17)
$Checkbox33 = GUICtrlCreateCheckbox("", 28, 497, 17, 17)
$Checkbox34 = GUICtrlCreateCheckbox("", 324, 492, 17, 17)
$Checkbox35 = GUICtrlCreateCheckbox("Seleziona Tutti", 629, 504, 97, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 

Share this post


Link to post
Share on other sites



faustf,

The status bar shows for me.

There was a problem some time ago when if you created a menu before a status bar it has hidden but as you can see that was fixed in v3.3.13.2 - what AutoIt version are you running?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

work  with  this 

v3.3.12.0

is  bugged??

 

Share this post


Link to post
Share on other sites

faustf,

As I explained above, in v3.3.12.0 you could not create a status bar after a menu - this was corrected in v3.3.13.2. So as you run an earlier version you will still have this problem.

Try jpm's suggestion of creating the status bar after having displayed the GUI with GUISetState and see if it works for you.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

Did you read what he said, it wasn't fixed until 3.3.13.2, so what would you think the answer is?


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

o yea  sorry  understund  thankz  so much 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now