Jump to content

createmenu


Recommended Posts

Does anyone know how to make it so that when creating a menu with edit;undo and there Ctrl+Z on the one side to make them all even. heres what i got...

$filemenu = GUICtrlCreateMenu ("&File");
    $new = GUICtrlCreateMenuitem  ("Erase Board      Ctrl+O",$filemenu);
    $open = GUICtrlCreateMenuitem ("Open             Ctrl+O",$filemenu);
    $save = GUICtrlCreateMenuitem ("Save             Ctrl+S", $filemenu);
    $separator1 = GUICtrlCreateMenuitem ("",$filemenu,4);
    $print = GUICtrlCreateMenuitem("Print              Ctrl+P",$filemenu);
    $separator2 = GUICtrlCreateMenuitem ("",$filemenu,5);
    $separator3 = GUICtrlCreateMenuitem ("",$filemenu,6);
    $Fileexit = GUICtrlCreateMenuitem ("Exit               Alt+F4",$filemenu);

[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Link to comment
Share on other sites

Does anyone know how to make it so that when creating a menu with edit;undo and there Ctrl+Z on the one side to make them all even. heres what i got...

Just use tabs between text and hotkeys:

$new = GUICtrlCreateMenuitem  ("Erase Board" & @TAB & "Ctrl+O",$filemenu);
$open = GUICtrlCreateMenuitem ("Open" & @TAB & "Ctrl+O",$filemenu);
etc.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...