Sign in to follow this  
Followers 0
strongy

Issue with "_GUICtrlStatusBar_Create" after updating to 3.3.10.2

4 posts in this topic

Hi All,

I have a script which worked fine with AutoIt v3.3.8.1, after upgrading to v3.3.10.2 it's no longer working. I am wondering if something has changed that I am missing.

All I am trying to do here is display a Menu bar and a status bar at the same time. If I remove the menu bar  GUICtrlCreateMenu("&File") the Status bar shows. 

It's almost as if the Menu bar is pushing the status bar down as I can see the top of the status bar showing slightly. 

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

_main()

Func _main()
    Local $form1, $filemenu, $exit_butt, $statusbar

    $Form1 = GUICreate("test", 640, 350, -1, -1)

    ;- Omitting the GUICtrlCreateMenu will allow the statusbar to show
    $filemenu = GUICtrlCreateMenu("&File")


    ;- Status bar does not show if GUICtrlCreatemenu is used.
    $statusbar = _GUICtrlStatusBar_Create($Form1)
    Local $statusparts[3] = [200, 400, -1]
    _GUICtrlStatusBar_SetParts($statusbar, $statusparts)

    $exit_butt = GUICtrlCreateButton("Exit", 485, 245, 60, 25)

    GUISetState(@SW_SHOW)

    Local $nMsg
    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit
            Case $exit_butt
                Exit
        EndSwitch
    WEnd
EndFunc   ;==>_main

I do see some changes have been made to the UDF components for the Statusbar, but not sure if that's related.

Thanks for the help. 

Strongy

Share this post


Link to post
Share on other sites



strongy,

This problem has already been reported here #2588 - and the workaround solution I developed is shown in :)

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

Thanks Melba.. Worked perfectly ;)

Share this post


Link to post
Share on other sites

strongy,

Glad I could help. :)

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

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  
Followers 0