Jump to content
Sign in to follow this  
Fossil Rock

_GUICtrlStatusBarSetBKColor Example doesn't work...

Recommended Posts

at least not for me. Will someone verify if it works or not.

opt("MustDeclareVars", 1)

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

Local $gui, $StatusBar1, $msg
Local $a_PartsRightEdge[3] = [100, 350, -1]
Local $a_PartsText[3] = ["New Text", "More Text", "Even More Text"]
Local Const $Yellow = 0xffff00

$gui = GUICreate("Status Bar Set Back Color", 500, -1, -1, -1, $WS_SIZEBOX)

$StatusBar1 = _GUICtrlStatusBarCreate ($gui, $a_PartsRightEdge, $a_PartsText)
_GUICtrlStatusBarSetBKColor ($StatusBar1, $Yellow)


While 1
   $msg = GUIGetMsg()
      Case $msg = $GUI_EVENT_RESIZED
         _GUICtrlStatusBarResize ($StatusBar1)
      Case $msg = $GUI_EVENT_CLOSE
      Case Else

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



Share this post

Link to post
Share on other sites

If your using themes put the following at the top of the script

DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


Share this post

Link to post
Share on other sites

XP Pro SP2 and it does work

Got me to look at the function... I think this may be breaking it on mine:
StringMid($tc, 5, 2)
I believe that was just fixed not to long ago, and I'm only using Beta


Just saw your new post, yes... that did it with the theme issue.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

  • Create New...