n9mfk9 Posted December 5, 2006 Share Posted December 5, 2006 hi all I like to make this look like the color is recessed in the box so if i hit one button all get red an the other all get green thanks beau expandcollapse popup#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 633, 447, 193, 115) $Button1 = GUICtrlCreateButton("AButton1", 48, 168, 65, 33, 0) $Button2 = GUICtrlCreateButton("AButton2", 184, 168, 73, 33, 0) $Group1 = GUICtrlCreateGroup("", 296, 256, 41, 41) $Graphic1 = GUICtrlCreateGraphic(312, 272, 17, 17) GUICtrlSetBkColor(-1, 0xFF0000) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit ;Case $AForm1 ;Case $AForm1 ;Case $AForm1 ;Case $AForm1 Case $Button1 GUICtrlSetBkColor(-1, 0xFF0000) Case $Button2 GUICtrlSetBkColor(-1, 0x008000) Case $Graphic1 EndSwitch WEnd Link to comment Share on other sites More sharing options...
Richard Robertson Posted December 5, 2006 Share Posted December 5, 2006 What are the problems you have? What is it you don't understand? You didn't ask a single question. Link to comment Share on other sites More sharing options...
n9mfk9 Posted December 5, 2006 Author Share Posted December 5, 2006 (edited) What are the problems you have? What is it you don't understand? You didn't ask a single question.the box i have now is flat i went to it more 2d also I am not sure i did to color change in correct place thanks beau Edited December 6, 2006 by n9mfk9 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