Jump to content

How can I make different sections in my status bar?


 Share

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?

Example

Link to comment
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')

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. ;]

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...