Jochem Posted January 20, 2010 Share Posted January 20, 2010 (edited) what do I do wrong? as soon as I add the menu, the statusbar won't show up anymore Func Example1() Local $hGUI $hGUI = GUICreate("(Example 1) StatusBar Create", 400, 300) $hStatus = _GUICtrlStatusBar_Create ($hGUI) $viewmenu = GUICtrlCreateMenu("View") $viewstatusitem = GUICtrlCreateMenuItem("test", $viewmenu) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE EndFunc ;==>Example1 Edited January 20, 2010 by Jochem Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 20, 2010 Moderators Share Posted January 20, 2010 Jochem, Just reverse the order of creation. The StatusBar is always created at the bottom of the GUI client area, so if you create the menu afterwards it pushes the StatusBar off the bottom of the GUI. This works for me: #include <GUIConstantsEx.au3> #Include <GuiStatusBar.au3> $hGUI = GUICreate("(Example 1) StatusBar Create", 400, 300) $viewmenu = GUICtrlCreateMenu("View") $viewstatusitem = GUICtrlCreateMenuItem("test", $viewmenu) $hStatus = _GUICtrlStatusBar_Create($hGUI) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Jochem Posted January 20, 2010 Author Share Posted January 20, 2010 that worked, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now