Jump to content
Sign in to follow this  

How can I make different sections in my status bar?

Recommended Posts


Hi, I am wondering if I can make different sections (there may be a more correct term) in my status bar, as seen in FireFox, IE, Windows mail, and pretty much anything else with a status bar. For example, I want the status bar to tell the user the current operation on the left, and the program mode on the right. How can I achieve this?


Share this post

Link to post
Share on other sites

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

Dim $avText[3] = ['AAA', 'BBB', 'CCC']
Dim $hGUI, $hStatusBar

$hGUI = GUICreate('Title', 400, 300, -1, -1, $WS_THICKFRAME)
$hStatusBar = _GUICtrlStatusBar_Create($hGUI, 90, $avText, $SBARS_SIZEGRIP)

GUIRegisterMsg($WM_SIZE, 'onresize')


Until GUIGetMsg() = -3


Func onresize($hwnd, $iMsg, $iwParam, $ilParam)
    Return 'GUI_RUNDEFMSG'

You can read the help file, the examples there are pretty clear. There are 6 different examples just for this particular function. ;]

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.