• Status Assigned
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category Application
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Koda
Opened by Chris Haslam - 05.05.2011
Last edited by Admin - 05.05.2011

FS#242 - IP address: Enabled

I am surprised that there is no Enabled property in Object Inspector

Admin
Admin commented on 05.05.2011 06:35

GuiIPAddress.au3 include have not functions for that. But I think this can be acheived by generating WinSetState($var, ““, @SW_DISABLE).

Custom controls support is very quick and raw. So, this more feature request then bug.

Chris Haslam commented on 05.05.2011 14:52

OK

Chris Haslam commented on 06.05.2011 19:28

I see the following proposal in AutoIt Trac:

#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
Admin
Admin commented on 11.05.2011 13:15
I see the following proposal in AutoIt Trac:

I don't want to include huge WinAPI.au3 for this trivial feature... Moreover this can be acheived with single internal function.

Chris Haslam commented on 11.05.2011 14:05

A good point!

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing