Garyeuph Posted October 12, 2007 Share Posted October 12, 2007 Hi, I am creating a simple form to be used on a CRT TV display - however it is difficult to see which button is selected. Are there any events I can trap to allow me to alter the button background colour? The code I am using is basically as follows: CODE$SuspendID = GUICtrlCreateButton("Suspend Computer", 50, 50, 300, 80) GUICtrlSetFont ($SuspendID, 16 ) GUICtrlSetOnEvent($SuspendID,"OnSuspend") $RestartID = GUICtrlCreateButton("Restart GBPVR Application", 50, 150, 300, 80) GUICtrlSetFont ($RestartID, 16 ) GUICtrlSetOnEvent($RestartID,"OnRestart") $CancelID = GUICtrlCreateButton("Cancel", 50, 250, 300, 80) GUICtrlSetFont ($CancelID, 16 ) GUICtrlSetOnEvent($CancelID,"OnCancel") Thanks Gary Link to comment Share on other sites More sharing options...
martin Posted October 13, 2007 Share Posted October 13, 2007 (edited) Hi,I am creating a simple form to be used on a CRT TV display - however it is difficult to see which button is selected. Are there any events I can trap to allow me to alter the button background colour?Look up GUICtrlSetBkColor.Welcome to the forums Edited October 13, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
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