Zachlr Posted May 12, 2009 Posted May 12, 2009 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
GaryFrost Posted May 12, 2009 Posted May 12, 2009 Look for GuiStatusBar Management in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Authenticity Posted May 12, 2009 Posted May 12, 2009 #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. ;]
Zedna Posted May 12, 2009 Posted May 12, 2009 (edited) Also look at Koda GUI Designer that supports statusbar control with panels.http://www.autoitscript.com/forum/index.php?showtopic=32299 Edited May 12, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now