erikson Posted March 28, 2007 Share Posted March 28, 2007 hi i try to change the background color of a window ( gui) i have something like this #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype #include <GuiConstants.au3> GuiCreate("MyGUI", 392, 323,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Radio_1 = GuiCtrlCreateRadio("Radio1", 20, 40, 70, 30) $Label_2 = GuiCtrlCreateLabel("Label2", 20, 100, 70, 50) $Input_3 = GuiCtrlCreateInput("Input3", 20, 180, 70, 40) $Button_4 = GuiCtrlCreateButton("Button4", 230, 150, 80, 50) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- i whant to make all window white. can you give me a hint? Link to comment Share on other sites More sharing options...
Emperor Posted March 28, 2007 Share Posted March 28, 2007 Take a look at GUISetBkColor() in the help file. Link to comment Share on other sites More sharing options...
erikson Posted March 28, 2007 Author Share Posted March 28, 2007 thx it works .. can i change color of a button? Link to comment Share on other sites More sharing options...
BrettF Posted March 28, 2007 Share Posted March 28, 2007 thx it works ..can i change color of a button?GUICtrlSetBkColor ()?? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
magician13134 Posted March 28, 2007 Share Posted March 28, 2007 GUICtrlSetBkColor ()??No.... that doesn't work with buttons.... (I believe)How 'bout this:http://www.autoitscript.com/forum/index.ph...hl=button+color Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
BrettF Posted March 28, 2007 Share Posted March 28, 2007 No.... that doesn't work with buttons.... (I believe)How 'bout this:http://www.autoitscript.com/forum/index.ph...hl=button+colorWoops.... So It Can't:http://www.allfunnypictures.com/images2/hotpuppydog.jpg Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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