Juzzz Posted May 30, 2009 Posted May 30, 2009 (edited) i try to gray out an ipaddress box but i does not work, i can disable it but it still stays white. GuiCtrlSetBkColor(-1, 0x00ff00) does not work only for the label example code: GUICtrlCreateLabel("IP Adres:", 20, 105) $IP_box = _GUICtrlIpAddress_Create($GUI_Main, 120, 100, 125, 25, $WS_DISABLED) GuiCtrlSetBkColor(-1, 0x00ff00) _GUICtrlIpAddress_Set ($IP_box, "0.0.0.0") ;i use green for testing. Edited May 30, 2009 by Juzzz
ProgAndy Posted May 30, 2009 Posted May 30, 2009 (edited) On my machine, a disabled IP-box is greyed out: ControlDisable($hIPAddress,"","") (don't use $WS_DISBALE, but this func ) Edited May 30, 2009 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Juzzz Posted May 31, 2009 Author Posted May 31, 2009 On my machine, a disabled IP-box is greyed out:ControlDisable($hIPAddress,"","")(don't use $WS_DISBALE, but this func )solved THANKS....
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