Jump to content
Sign in to follow this  
fRequEnCy

Status Bar issues when using Menu

Recommended Posts

fRequEnCy

Hey all. Sorry if this has been brought up before. I'm having issues with a gui. When I create a gui with both a menu and a status bar then the status bar gets shifted down and is not seen within the gui. How can I get them to co-exist?

Share this post


Link to post
Share on other sites
Melba23

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


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
fRequEnCy

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?

Share this post


Link to post
Share on other sites
Melba23

fRequEnCy,

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

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
fRequEnCy

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

Share this post


Link to post
Share on other sites
Melba23

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


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
fRequEnCy

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!

Share this post


Link to post
Share on other sites
fRequEnCy

Use latest beta version of Koda 1.7.0.8 where is this bug fixed.

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

Share this post


Link to post
Share on other sites
Zedna

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

Share this post


Link to post
Share on other sites
fRequEnCy

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.

Share this post


Link to post
Share on other sites
avery

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.

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

Edited by avery

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
Share on other sites
fRequEnCy

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

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.