_GUICtrlIpAddress_Create -> Disablen?

  • Hallo an alle,
    gibt es die Möglichkeit ein IPControl welches mit _GUICtrlIpAddress_Create erstellt wurde zu disablen? Such schon ewig in der Hilfe, kann aber nichts passendes finden... SHOW/HIDE is klar, is aber nicht das was ich will, ich will es ja nur ausgrauen; DESRTOY is doof, will es ja nicht ganz löschen...


    Bitte um Hilfe

    Einmal editiert, zuletzt von oliverh (5. Dezember 2008 um 17:02)

  • ControlDisable

    Spoiler anzeigen
    [autoit]

    #include <GuiConstantsEx.au3>
    #include <GuiIPAddress.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $hgui = GUICreate("IP Address Control Create Example", 400, 300)
    $hIPAddress = _GUICtrlIpAddress_Create ($hgui, 10, 10)
    $handle = ControlGetHandle("IP Address Control Create Example","", "SysIPAddress321")
    ControlDisable("IP Address Control Create Example","", "SysIPAddress321")
    _GUICtrlIpAddress_Set ($hIPAddress, "24.168.2.128")
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

    [/autoit]
  • oder auch WinSetState ;)

    Spoiler anzeigen
    [autoit]

    #include <GuiConstantsEx.au3>
    #include <GuiIPAddress.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $hgui = GUICreate("IP Address Control Create Example", 400, 300)
    $hIPAddress = _GUICtrlIpAddress_Create ($hgui, 10, 10)

    [/autoit] [autoit][/autoit] [autoit]

    _GUICtrlIpAddress_Set ($hIPAddress, "24.168.2.128")
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]

    MsgBox(0, '', "ControlDisable")
    ControlDisable($hIPAddress,"", $hIPAddress)
    MsgBox(0, '', "ControlEnable")
    ControlEnable($hIPAddress,"", $hIPAddress)
    MsgBox(0, '', "WinSetState Disable")
    WinSetState($hIPAddress,"",@SW_DISABLE)
    MsgBox(0, '', "WinSetstate Enable")
    WinSetState($hIPAddress,"",@SW_ENABLE)

    [/autoit] [autoit][/autoit] [autoit]

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

    [/autoit]