Sign in to follow this  
Followers 0
Juzzz

Gray out _GUICtrlIpAddress

3 posts in this topic

#1 ·  Posted (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 by Juzzz

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

On my machine, a disabled IP-box is greyed out:

ControlDisable($hIPAddress,"","")

(don't use $WS_DISBALE, but this func :) )

Edited 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

Share this post


Link to post
Share on other sites

On my machine, a disabled IP-box is greyed out:

ControlDisable($hIPAddress,"","")

(don't use $WS_DISBALE, but this func :) )

solved THANKS....

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0