MariusN Posted February 23, 2010 Share Posted February 23, 2010 (edited) Hi folks...I have nice tray functions but need some help here. Everything works 100%...no prob. What i would like to know is, is there a number associated with the little "tick" mark that gets enabled/shown in the tray? (ie enabled "tick" = 1, disabled "tick" = 2) ...this way i can always use an IF function... Thing is, i want an item to be ENABLED when the "tick" shows , and when the "tick" is off, the item must be DISABLED!. At the moment i have 2 function as can be seen below including my settings $aboutitem = TrayCreateItem("Check") $state = TrayItemGetState ($aboutitem) $exititem = TrayCreateItem("Exit") TraySetState() While 1 $MSG = TrayGetMsg() Select Case $MSG = 0 ContinueLoop Case $MSG = $aboutitem If $state = 1 Then MsgBox(0, "", "button Checked") Else MsgBox(0, "","Un-checked") EndIf Case $MSG = $exititem Exit EndSelect WEnd Edited February 23, 2010 by MariusN Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now