boolean AddOption(BSTR pszOption)
boolean AddTitleLine(BSTR pszTitleLine)
Function AddOption(pszOption As String) As Boolean
Adds an option line in the local menu array.
Function AddTitleLine(pszTitleLine As String) As Boolean
Adds a title line in the local menu array.
Return value
True=successful, False=error, array size exceeded, RF linlk lost.
Parameters
pszOption
Text of the option line in the menu.
pszTitleLine
Text of the title line in the menu.
Remarks
The lines are shown to the user in the order that they where added. First the
title lines, then the option lines.
The menu is surrounded by a stroke that takes 2 characters in length and width.
So the text lines are truncated at display width minus 2 columns, and options
are scrolled at display height minus 2 rows.
Example
Public wsRfMenu As New RFMENU
...
wsRfMenu.ResetMenu
wsRfMenu.AddTitleLine "MyMenu Choices" ' give a title to the menu
wsRfMenu.AddOption "Option ONE" ' The menu options
wsRfMenu.AddOption "Option TWO" ' The menu options
See also RFMENU, ResetMenu, ClearOptions, ClearTitle