neo291 Posted December 4, 2008 Share Posted December 4, 2008 Is it possible to DISABLE IP field(_GUICtrlIpAddress) like GUICtrlSetState($hwnd, $GUI_DISABLE) ? $hIPAddress = _GUICtrlIpAddress_Create($hgui, 10, 10) GUICtrlSetState($hIPAddress,$GUI_DISABLE);<--- looking for replacement of this line I'm not a programmer. Just a Power User. Link to comment Share on other sites More sharing options...
Zedna Posted December 4, 2008 Share Posted December 4, 2008 Try: _GUICtrlEdit_SetReadOnly($hIPAddress, True) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
rasim Posted December 5, 2008 Share Posted December 5, 2008 ZednaFriend, your example does not work.neo291Example:#include <GuiConstantsEx.au3> #include <GuiIPAddress.au3> $hgui = GUICreate("IP Address Example", 300, 200) $hIPAddress = _GUICtrlIpAddress_Create($hgui, 10, 10) WinSetState($hIPAddress, "", @SW_DISABLE) _GUICtrlIpAddress_Set($hIPAddress, "24.168.2.128") GUISetState(@SW_SHOW) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
neo291 Posted December 5, 2008 Author Share Posted December 5, 2008 Thanx A lot Rasim! I'm not a programmer. Just a Power User. 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