Method XbpMenuBar():new() Foundation

Creates an instance of the XbpMenuBar class.

Syntax
XbpMenuBar():new( [<oParent>], ;
                  [<aPresParam>], ;
                  [<lVisible>] ) --> oXbpMenubar
Parameters
<oParent>
<oParent> optionally specifies the parent for the XbpMenuBar object. By default, <oParent> is the active window, which is the return value of SetAppWindow().
<aPresParam>
A two dimensional array can be specified for <aPresParam>. Refer to Generic presentation parametersfor a detailed explanation.
Under Windows, it is not possible to override the settings of the system control panel for menubars.
Under OS/2, the following presentation parameters are recognized for menubars:
#define constants for presentation parameters
Constant Valid values
XBP_PP_MENU_FGCLR XBPSYSCLR_* and GRA_CLR_*
XBP_PP_MENU_BGCLR XBPSYSCLR_* and GRA_CLR_*
XBP_PP_MENU_HILITE_FGCLR XBPSYSCLR_* and GRA_CLR_*
XBP_PP_MENU_HILITE_BGCLR XBPSYSCLR_* and GRA_CLR_*
XBP_PP_MENU_DISABLED_FGCLR XBPSYSCLR_* and GRA_CLR_*
XBP_PP_MENU_DISABLED_BGCLR XBPSYSCLR_* and GRA_CLR_*
<lVisible>
The parameter <lVisible> determines whether the XbpMenuBar object is visible immediately after the call to the method :create(). By default <lVisible> is .T. (true) and the XbpMenuBar object is displayed after :create() is executed. This default behavior can be suppressed by specifying the value .F. (false) for the parameter <lVisible>. In this case, the object must be explicitly displayed using the :show() method.
Return

The class method :new() returns an XbpMenuBar object.

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.