Method XbpToolBar():saveToolbar() Foundation

Saves the XbpToolBar object's current button arrangement.

Syntax
:saveToolbar( <cKey>, <cSubKey> ) => self
Parameters
<cKey>
The <cKey> parameter is a character string that specifies the name of the Registry key used for saving the layout of the XbpToolBar object.
<cSubKey>
Parameter <cSubKey> contains a character string specifying the name of a sub-key in the system's Registry. The key is used to save the toolbar's layout under.
Return

:saveToolbar() returns the object executing the method (self).

Description

The method :saveToolbar() can be used by an Xbase++ application to save the object's current button arrangement. If the :allowCustomize instance variable contains the value .T. (TRUE), the user may alter the ordering and number of the tool bar buttons displayed via a customize dialog. To preserve the current tool bar layout when the application is exited, the method :saveToolbar()can be used. The button arrangement can be restored later using the :restoreToolbar() method.

The data saved by the :saveToolbar() method is stored in the system's Registry. Using the character strings passed in the <cKey> and <cSubKey> parameters, the Registry key is constructed as follows:

\HKEY_CURRENT_USER\<cKey>\<cSubKey>

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.