Sign in to follow this  
Followers 0
qwert

How to change Status Bar text?

3 posts in this topic

Can someone give me a hint on how to alter the display text on a window's Status Bar?

AutoInfo shows it is held in Property 1 -- but I can't find an example of a set command to get at it.

Thanks in advance.

Share this post


Link to post
Share on other sites



_GUICtrlStatusBarSetText()


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

Thanks very much. Here's a working example for other novices to follow. For a named window (e.g., "TestApp"), it changes the Status Bar text for five seconds and then changes it back to the original text.

#include <GuiConstants.au3>
#Include <GuiStatusBar.au3>

Opt("WinTitleMatchMode", 4)
Local $h_win = WinGetHandle("TestApp")
Local $h_status = ControlGetHandle($h_win, "", "msctls_statusbar321")
Local $s_text = _GUICtrlStatusBarGetText($h_status)
_GUICtrlStatusBarSetText($h_status, "Text has been set")
MsgBox(0, "Set", Hex($h_status))
Sleep(5000)
_GUICtrlStatusBarSetText($h_status, $s_text)

Exit

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