Futurebasic/Language/Reference/apple menu

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Apple Menu[edit | edit source]

Statement[edit | edit source]

✔ Appearance ✔ Standard χ Console

Syntax[edit | edit source]

apple menu string$

Description[edit | edit source]

This statement inserts one or more items at the top of the Apple Menu, and separates them from the existing Apple Menu items with a grey dividing line. The items you add are visible only while your application is frontmost. The string$ parameter contains the text of the item(s); to add multiple items, separate them with semicolons in string$. Certain "meta characters" in string$ have special interpretations; see the menu statement for more information.

After you add items to the Apple Menu, you can use the menu function to detect when the user selects one of the items you've added.

If you execute apple menu more than once, any items you added to the Apple Menu previously will be completely replaced.

Example[edit | edit source]

apple menu "About this program...;About Me..."

<img src="a/applemenu01.gif" alt="" width="221" height="105" border="0">

Notes[edit | edit source]

No special notes.

See Also[edit | edit source]

menu function; menu statement; on menu fn; HandleEvents

Language Reference