Sign in to follow this  
Followers 0
HockeyFan

Help with _GUICtrlIpAddress_Create

4 posts in this topic

Hello,

Is it possible to grey-out the "_GUICtrlIpAddress_Create" control so that a user can see the IP address but can not change it? I have created a GUI script to change an IP address via the command line (using netsh.exe) but I do not want the user to be able to manipulate the IP address, but still see it. What I'm looking for is something like...

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33)
GUICtrlSetState($IP1,$GUI_DISABLE)
but that didn't work. Any idea's?? :D

Share this post


Link to post
Share on other sites



Hello,

Is it possible to grey-out the "_GUICtrlIpAddress_Create" control so that a user can see the IP address but can not change it? I have created a GUI script to change an IP address via the command line (using netsh.exe) but I do not want the user to be able to manipulate the IP address, but still see it. What I'm looking for is something like...

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33,$WS_VISIBLE+$WS_DISABLED)
GUICtrlSetState($IP1,$GUI_DISABLE)
but that didn't work. Any idea's?? :D
Would this work?

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33,$WS_VISIBLE+$WS_DISABLED)

Share this post


Link to post
Share on other sites

BitOR($WS_VISIBLE,$WS_DISABLED)

Garyfrost,

As usual, you are AWESOME! Thank you so much! :D

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