Jump to content
Sign in to follow this  
billthecreator

createmenu

Recommended Posts

billthecreator

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

Share this post


Link to post
Share on other sites
Lazycat

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.

Share this post


Link to post
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
Sign in to follow this  

×