gpence Posted July 13, 2005 Posted July 13, 2005 Is there a way to set the background color on the GUI when I create it, or do I just create a .gif with the background color and place that control on the GUI?? Thx, gpence
GaryFrost Posted July 13, 2005 Posted July 13, 2005 GUISetBkColor it's in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
gpence Posted July 13, 2005 Author Posted July 13, 2005 Thanks GAFROST. I did finally find it in the documentation, but it did take me 3 clicks from the GUICreate page to find it and because I'm a newbie, GUISetBkColor isn't so intuitive. I did also search the forums for color and background, but after reading 6 of the 10+ pages of results, I gave up and asked... At any rate, I cut the example from the manual and inserted it here: #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.5 Prototype GuiCreate("Vault II Transfer Auditor", 600, 300,(@DesktopWidth-600)/2, (@DesktopHeight-300)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Pic_1 = GuiCtrlCreatePic("test_control/v2audit6.gif", (600-301)/2, 20, 301, 130) $Btn_Close = GUICtrlCreateButton ("Close", 450, 240, 90, 35, $BS_CENTER + $BS_DEFPUSHBUTTON + $BS_VCENTER) GUISetBkColor(0xFFFFFF) ; set color to white GUICtrlSetState($Pic_1,$GUI_DISABLE) GuiSetState() but I still get a gray background on the GUI... ? Thanks, gpence
gpence Posted July 14, 2005 Author Posted July 14, 2005 Remove this...+ $WS_VISIBLE and it works8)<{POST_SNAPBACK}>Eureka!Thanks Valuater!gpence
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