NAME GU_CreateLocMenuA -- Create a menu with localized items. SYNOPSIS menu = GU_CreateLocMenuA(newmenu, gad_info, createtags, layouttags) D0 A0 A1 A2 A3 struct Menu *GU_GetLocaleStr(struct NewMenu *, APTR, struct TagItem *, struct TagItem *); FUNCTION Create and layout a localized menu. This function replaces both the gadtools/CreateMenusA and gadtools/LayoutMenusA functions. See those functions for a more in-depth description of this function. INPUTS newmenu - pointer to an array of initialized struct NewMenus. This differs from the GadTools function in that, instead of giving pointers to strings in the nm_Label and nm_CommKey fields of the structure, you should put a string ID in the nm_Label field of the structure. The string must be in the format "A\x00About...". The nm_CommKey field should be left empty. ^^^^^^ | | | |- nm_Label field for the NewMenu structure | |- nm_CommKey replacement. If no keyboard shortcut, this field MUST CONTAIN A SPACE CHAR. The \x00 is a NULL character. gad_info - the value returned from GU_LayoutGadgetsA() createtags - tags for the "CreateMenusA" part of this routine. All gadtools tags are supported (directly passed to GT). layouttags - tags for the "LayoutMenusA" part of this routine. All gadtools tags are supported (directly passed to GT). TAGS See the gadtools functions CreateMenusA() and LayoutMenusA(). RESULT menu - pointer to the resulting initialized and laid out menu structure, ready to pass to the intuition function SetMenuStrip(), or NULL for failure. SEE ALSO GU_FreeMenus(), gadtools/CreateMenusA(), gadtools/LayoutMenusA(), gadtools/FreeMenus()
Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.