Radiobox erst nach buttonclick prüfen

  • hi
    ich habe ein problem:
    ich will eine außwahl von radios haben wo ich hinund her klicken kann bis ich button 1 drücke dass wird erst geprüft ob der radio button aktive ist

    am besten in einer eigenen func weil ich habe 10 radioboxen

    pls helfen

    mfg blader3

  • Hi,
    wo ist das Problem :P

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>

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

    GUICreate("Meine GUI mit Optionsfeldern") ; Erstellt ein GUI-Fenster welches mittig ausgerichtet wird

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

    $radio1 = GUICtrlCreateRadio("Optionsfeld 1", 10, 10, 120, 20)
    $radio2 = GUICtrlCreateRadio("Optionsfeld 2", 10, 40, 120, 20)
    $radio3 = GUICtrlCreateRadio("Optionsfeld 3", 10, 70, 120, 20)
    $button = GUICtrlCreateButton("Button", 10, 100)

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

    GUISetState() ; Zeigt das GUI-Fenster mit 2 Optionsfeldern

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
    Case $msg = $button
    $read1 = GUICtrlRead($radio1)
    $read2 = GUICtrlRead($radio2)
    $read3 = GUICtrlRead($radio3)
    MsgBox(0, "", $read1 & @CRLF & $read2 & @CRLF & $read3)
    EndSelect
    WEnd

    [/autoit]

    Ist doch egal wann geprüft wird, ob der Radio Button aktiv ist