ContextMenü

  • Hallo,

    wie geht es bei nem ContextMenü, ein Menü mit Unterpunkten zu erzeugen? (wie traycreatemenu und traycreatemenuitem) ...

    das geht iwie nicht:

    [autoit]

    $move_to = GUICtrlCreateMenu("Move to", $ListView1)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Top", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Right", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Bottom", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Left", $move_to)

    [/autoit]
    • Offizieller Beitrag

    Hallo

    RTFM X(

    Spoiler anzeigen
    [autoit]

    GUICreate("")
    $hauptmenu = GUICtrlCreateMenu("Hauptmenü")
    $move_to = GUICtrlCreateMenu("Move to", $hauptmenu)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Top", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Right", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Bottom", $move_to)
    $go_to_folder = GUICtrlCreateMenuItem("1/2 Left", $move_to)
    GUISetState()
    While GUIGetMsg() <> -3
    WEnd

    [/autoit]

    Mfg Spider

  • habs hinbekommen =P

    thx ;)

    [autoit]


    $Form1_1 = GUICreate($Title, 555, 301, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU ,$DS_SETFOREGROUND), $WS_EX_TOPMOST)
    GUISetOnEvent($GUI_EVENT_CLOSE, "_EndScript")
    $ContextM = GUICtrlCreateContextMenu()
    $ListView1 = GUICtrlCreateListView("", 3, 23, 545, 228, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT));BitOR($LVS_REPORT, $LVS_SINGLESEL, $LVS_SHOWSELALWAYS), BitOR($LVS_EX_SUBITEMIMAGES, $WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_HEADERDRAGDROP,$LVS_EX_FULLROWSELECT))
    $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES)
    _GUICtrlListView_SetExtendedListViewStyle($ListView1, $exStyles)

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

    $ContextMenu = GUICtrlCreateContextMenu($ListView1)
    $Move_to = GUICtrlCreateMenu("Move to", $ContextMenu )
    $Move_to_Top = GUICtrlCreateMenuItem("1/2 Top", $Move_to)
    $Move_to_Right = GUICtrlCreateMenuItem("1/2 Right", $Move_to)
    $Move_to_Bottom = GUICtrlCreateMenuItem("1/2 Bottom", $Move_to)
    $Move_to_Left = GUICtrlCreateMenuItem("1/2 Left", $Move_to)

    [/autoit]