Zwei voneinander unabhängige Radiobuttons

  • Also mein Problem ist es das ich 5 Radiobuttons hab. Ich hab die in 2 "Gruppen" eingeteilt die erste "Gruppe" sind Browser und die andere Auflösung
    bei Browser sind es dann Browser1 und Browser2 
    und bei Auflösung sind es Auflösung1, Auflösung2, Auflösung3
    wenn man nun Browser2 gewählt hatt ,muss man dann noch die Auflösung wählen aber wenn man das tut verschwindet der Punkt bei Browser2 und geht über zu der Auflösung die man gewählt hatt und das will ich verhindern also sollen die beiden "Gruppen" unabhängig voneinander funktionieren.

    Edit: hier noch eine kleine GUI damit es verständlicher wird

    [autoit]

    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 275, 115, 193, 125)
    $Radio1 = GUICtrlCreateRadio("Browser1", 8, 12, 89, 21)
    $Radio2 = GUICtrlCreateRadio("Browser2", 8, 32, 101, 25)
    $Radio3 = GUICtrlCreateRadio("Auflösung1", 148, 8, 97, 29)
    $Radio4 = GUICtrlCreateRadio("Auflösung2", 148, 32, 105, 29)
    $Radio5 = GUICtrlCreateRadio("Auflösung3", 148, 52, 101, 33)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]

    mfg Lazkopatdragon

    Einmal editiert, zuletzt von Lazkopatdragon (25. März 2009 um 21:19)

  • Du brauchst Gruppen

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 275, 115, 193, 125)
    $group1 = GUICtrlCreateGroup('Browser', 5, 10, 100, 100)
    $Radio1 = GUICtrlCreateRadio("Browser1", 8, 30, 80, 21)
    $Radio2 = GUICtrlCreateRadio("Browser2", 8, 50, 80, 21)
    GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group

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

    $group2 = GUICtrlCreateGroup('Ausflösung', 120, 10, 120, 100)
    $Radio3 = GUICtrlCreateRadio("Auflösung1", 148, 30, 80, 21)
    $Radio4 = GUICtrlCreateRadio("Auflösung2", 148, 50, 80, 21)
    $Radio5 = GUICtrlCreateRadio("Auflösung3", 148, 70, 80, 21)
    GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group

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

    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]