Menü: Checkbox - Text links, Icon rechts

  • Hallo wie kann ich in Autoit ein Menü mit Icons rechts Checkbox und dann den Text erstellen ?

    Danke

    Hier das Ergebniss so wie es dann auschauen soll:

    [Blockierte Grafik: http://f.imagehost.org/0674/menue01.jpg]


    Und so schauts bei mit aus

    [Blockierte Grafik: http://f.imagehost.org/0673/menu02.jpg]
    Leider nur der Text oder das Icon (siehe Checkbox1)

    [autoit]


    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Test", 327, 200, 193, 115)
    $Checkbox1 = GUICtrlCreateCheckbox("Pinnacle Studio Plus 10", 80, 8, 217, 17,$BS_ICON)
    GUICtrlSetImage($Checkbox1,"shell32.dll",5)
    $Checkbox2 = GUICtrlCreateCheckbox("PowerDVD 6 CLJ Deluxe", 80, 40, 217, 17)
    $Checkbox3 = GUICtrlCreateCheckbox("Quicktime 7.0.4 Pro", 80, 72, 217, 17)
    $Checkbox4 = GUICtrlCreateCheckbox("TMPGEnc 3.0 XPress", 80, 104, 217, 17)
    $Checkbox5 = GUICtrlCreateCheckbox("VLC media player", 80, 136, 217, 17)
    $Checkbox6 = GUICtrlCreateCheckbox("Winamp Pro 5.22", 80, 168, 217, 17)

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

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

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

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

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

    EndSwitch
    WEnd

    [/autoit]

    ----------------------------------------------------------------------------------------------------------------------
    Früher musste man Drachen töten und konnte die Jungfrau heiraten.
    Heute gibt es keine Jungfrauen mehr, man muss den Drachen heiraten!

    Einmal editiert, zuletzt von XTC99 (11. März 2009 um 18:37)

  • Stimmt so einfach gings, Danke.

    Danke schaut jetzt so aus

    [Blockierte Grafik: http://g.imagehost.org/0165/Zwischenablage.jpg]

    [autoit]


    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Test", 305, 293, 243, 186)
    $Checkbox1 = GUICtrlCreateCheckbox("Pinnacle Studio Plus 10", 64, 32, 217, 17)
    $Checkbox2 = GUICtrlCreateCheckbox("PowerDVD 6 CLJ Deluxe", 64, 72, 217, 17)
    $Checkbox3 = GUICtrlCreateCheckbox("Quicktime 7.0.4 Pro", 64, 112, 217, 17)
    $Checkbox4 = GUICtrlCreateCheckbox("TMPGEnc 3.0 XPress", 64, 152, 217, 17)
    $Checkbox5 = GUICtrlCreateCheckbox("VLC media player", 64, 192, 217, 17)
    $Checkbox6 = GUICtrlCreateCheckbox("Winamp Pro 5.22", 64, 232, 217, 17)
    $Icon1 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -16, 24, 24, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    $Icon2 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -131, 24, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    $Icon3 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -35, 24, 104, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    $Icon4 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -140, 24, 144, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    $Icon5 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -149, 24, 184, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    $Icon6 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -166, 24, 224, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

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

    ----------------------------------------------------------------------------------------------------------------------
    Früher musste man Drachen töten und konnte die Jungfrau heiraten.
    Heute gibt es keine Jungfrauen mehr, man muss den Drachen heiraten!