Buttons als Tabs verwenden

  • Hallo
    ich möchte gerne in meiner GUI mit Buttons (oder Bilder als Buttons) zwischen verschiedenen Sachen wechseln.
    So wie mit Tabs (GUICtrlCreateTab).
    Ich habs schon versucht aber es will nicht klappen.

    Spoiler anzeigen
    [autoit]

    #include
    #include
    #include

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

    $Form1 = GUICreate("Form1", 1025, 769, 190, 123)
    $Button1 = GUICtrlCreateButton("Button1",8,8,41,41)
    $Button2 = GUICtrlCreateButton("Button2",64, 8, 41, 41)
    $Button3 = GUICtrlCreateButton("Button3",112, 8, 41, 41)
    GUISetState(@SW_SHOW)
    GUICtrlSetCursor($Button1,0)
    GUICtrlSetCursor($Button2,0)
    GUICtrlSetCursor($Button3,0)

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

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

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

    Case $Button2

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

    Case $Button3

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

    EndSwitch
    WEnd

    [/autoit]

    Einmal editiert, zuletzt von MOZ (28. November 2008 um 16:38)