﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1837	_GUICtrlIpAddress_EnableDisable	cyrusbuilt@…	Gary	"There is currently a UDF to show/hide a IPAddress control, but not one to enable/disable it.  The built-in function GUICtrlSetState() does not seem to have any affect on the IPAddress control either.  As such, I propose the addition of a UDF to enable/disable the IPAddress control in the GuiIPAddress.au3 library.  The implementation would wrap _WinAPI_EnableWindow() from WinAPI.au3 much like _GUICtrlIpAddress_ShowHide() wraps _WinAPI_ShowWindow().

The following is the proposed implementation:
{{{
#include <WinAPI.au3>
Func _GUICtrlIpAddress_EnableDisable($hWnd, $iState = @SW_ENABLE)
	If (Not IsHWnd($hWnd)) Then Return SetError(1, 1, 0)
	If (($iState <> @SW_ENABLE) And ($iState <> @SW_DISABLE)) Then Return SetError(2, 1, 0)
	Local $enabled = True
	If ($iState == @SW_DISABLE) Then $enabled = False
	Return (_WinAPI_EnableWindow($hWnd, $enabled) <> 0)
EndFunc
}}}"	Feature Request	closed		Standard UDFs		None	Rejected		
