HockeyFan Posted April 22, 2008 Share Posted April 22, 2008 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?? Link to comment Share on other sites More sharing options...
notta Posted April 22, 2008 Share Posted April 22, 2008 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?? Would this work? $IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33,$WS_VISIBLE+$WS_DISABLED) Link to comment Share on other sites More sharing options...
GaryFrost Posted April 22, 2008 Share Posted April 22, 2008 BitOR($WS_VISIBLE,$WS_DISABLED) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
HockeyFan Posted April 22, 2008 Author Share Posted April 22, 2008 BitOR($WS_VISIBLE,$WS_DISABLED)Garyfrost,As usual, you are AWESOME! Thank you so much! 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