Jump to content

Status Bar issues when using Menu


fRequEnCy
 Share

Recommended Posts

  • Moderators

fRequEnCy,

Just increase the height of your GUI by 15 or so. Adding a menu eats into the total area of a GUI, so your status bar is being pushed off the bottom!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

fRequEnCy,

Just increase the height of your GUI by 15 or so. Adding a menu eats into the total area of a GUI, so your status bar is being pushed off the bottom!

M23

That makes sense but no matter what I change the height to, my gui gets bigger and the status bar is still being pushed to the bottom. Can you post a simple example please?

Link to comment
Share on other sites

  • Moderators

fRequEnCy,

Easier if you post the code you are having trouble with!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

fRequEnCy,

Easier if you post the code you are having trouble with!

M23

Here ya go! I made a simple one just for testing.

#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 241, 486, 228)
$StatusBar1 = _GUICtrlStatusBar_Create($Form1)
$MenuItem2 = GUICtrlCreateMenu("File")
$MenuItem4 = GUICtrlCreateMenuItem("Open", $MenuItem2)
$MenuItem3 = GUICtrlCreateMenuItem("Exit", $MenuItem2)
$MenuItem1 = GUICtrlCreateMenu("About")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd
Link to comment
Share on other sites

  • Moderators

fRequEnCy,

From the Help file for _GUICtrlStatusBar_Create:

Remarks

If using GUICtrlCreateMenu then use _GUICtrlStatusBar_Create after GUICtrlCreateMenu

Try it that way and see the difference!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

fRequEnCy,

From the Help file for _GUICtrlStatusBar_Create:

Remarks

If using GUICtrlCreateMenu then use _GUICtrlStatusBar_Create after GUICtrlCreateMenu

Try it that way and see the difference!

M23

Brilliant! Thank you so much Melba23! I never noticed that remark. That will teach me not to read it more thoroughly. LOL. Thanks again!

Link to comment
Share on other sites

That's actually the version of Koda that I'm using.

Here is link to post where I reported this bug

http://www.autoitscript.com/forum/index.ph...st&p=587456

Here is post with link to latest test Koda version which fixes this bug (it has the same version 1.7.0.8 as latest official beta)

http://www.autoitscript.com/forum/index.ph...st&p=587523

http://koda.darkhost.ru/koda_test.rar

Link to comment
Share on other sites

Here is link to post where I reported this bug

http://www.autoitscript.com/forum/index.ph...st&p=587456

Here is post with link to latest test Koda version which fixes this bug (it has the same version 1.7.0.8 as latest official beta)

http://www.autoitscript.com/forum/index.ph...st&p=587523

http://koda.darkhost.ru/koda_test.rar

Ahhh thanks for the post and also thanks for all the help. Great to have such a great forum to come to when I get stuck.

Link to comment
Share on other sites

I was getting mine to show up at one point by moving it a good distance up but it sure wasn't WYSIWUG.

Worked well for me after Melba23's advice and have yet to try Zedna's advice. It drove me crazy to why it would disappear. I figured it had to be something simple. And worse yet it was more simple than I had hoped. Sure made me look dumb. LOL.

Just tested and works great! Thanks everyone!

Edited by fRequEnCy
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...