<< SL_EndMenuUpdate | SL_RemoveMenuItem >> |
Top: Documentation Library | Up: SoftLogik App Library API |
SL_AddMenuItem
NAME
SL_AddMenuItem -- adds an item to a menu.
SYNOPSIS
success = SL_AddMenuItem(apphandle, menuid, mid, title, kbequiv, flags, id);
D0 A0 D0 D1 A1D2 D3D4
SLFLAG SL_AddMenuItem(APPHANDLE, UWORD, UWORD, SLCHAR *, SLCHAR, UWORD, UWORD);
FUNCTION
Adds a new item to the end of the menu specified by menuid and mid.
INPUTS
apphandle - as returned by SL_AppInitA.
menuid - resource of the menu strip.
mid - resource id of the menu on the strip to add the item to.
title - the title of the item to add (as it will appear in the menu).
The string is copied and need not remain for the life of the
menu item.
kbequiv - the keyboard equivilant of this menu item.
flags - any of these:
MENUFLG_CHECKMARK
id - the resource id of this item.
RESULTS
success - TRUE if the item was added.
FALSE if the item could not be added.
SEE ALSO
SL_AddMenuItem, SL_AddSubItem, SL_BeginMenuUpdate, SL_CheckFontMenuItem, SL_CheckMenuItem, SL_CheckSubItem, SL_DisableMenu, SL_DisableMenuItem, SL_DisableSubItem, SL_EndMenuUpdate, SL_GetFontMenuName, SL_InsertMenuItem, SL_InsertSubItem, SL_MenuKeyCheck, SL_RemoveMenuItem, SL_RemoveSubItem, SL_RenameMenuItem, SL_RenameSubItem.
SL_AddMenuItem Command Section By Type url:SL_AddMenuItem
created:2008-03-01 23:36:19 last updated:2008-03-01 23:36:19
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For SL_AddMenuItem | sign in to add a comment |
There are no user contributed comments for this page. |
<< SL_EndMenuUpdate | SL_RemoveMenuItem >> |
Top: Documentation Library | Up: SoftLogik App Library API |