Method XbpMenu():setTitle() Foundation

Changes the title of the XbpMenu object.

Syntax
:setTitle( <cTitle> ) --> lSuccess
Parameters
<cTitle>
<cTitle> is a character string containing the new title for the menu.
Return

This method returns the value .T. (true) if the title could be changed, otherwise it returns .F. (false).

Description

The :setTitle() method allows the title of an XbpMenu object to be changed after the method :create() has been executed. This is only significant when the XbpMenu object is a submenu within a menu system. The title is displayed as a menu item in the next higher menu and is not visible when the XbpMenu object is activated using the :popUp() method.

If the same XbpMenu object is used to create several submenus in a menu system, method :setTitle() only affects the item in the menu the XbpMenu object was first added to.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.