Jump to content
Sign in to follow this  
Zachlr

How can I make different sections in my status bar?

Recommended Posts

Zachlr

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?

Example

Share this post


Link to post
Share on other sites
Authenticity

#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')

GUISetState()

Do
Until GUIGetMsg() = -3

_GUICtrlStatusBar_Destroy($hStatusBar)
GUIDelete()
Exit


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

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.