MenuItem(MenuItemID, Text$, ShortCut)
Would save lots of extra typing:
BEFORE:
Code: Select all
MenuItem(#MENU_new, "New")
MenuItem(#MENU_open,"Open File")
MenuItem(#MENU_Save,"Save File")
MenuItem(#MENU_quit, "Quit")
AddKeyboardShortcut(#Win,#PB_SHORTCUT_N,#MENU_new)
AddKeyboardShortcut(#Win,#PB_SHORTCUT_O,#MENU_open)
AddKeyboardShortcut(#Win,#PB_SHORTCUT_S,#MENU_save)
AddKeyboardShortcut(#Win,#PB_SHORTCUT_Q,#MENU_quit)
Code: Select all
MenuItem(#MENU_new, "New" , #PB_SHORTCUT_N)
MenuItem(#MENU_open,"Open File" , #PB_SHORTCUT_O)
MenuItem(#MENU_Save,"Save File" , #PB_SHORTCUT_S)
MenuItem(#MENU_quit, "Quit" , #PB_SHORTCUT_Q)