Click or drag to resize

ToolBar.EnableBands Method (Typed)

X#
Enable toolbar band support.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD EnableBands(
	lEnable
) AS USUAL CLIPPER
Request Example View Source

Parameters

lEnable (Optional)
Type: Usual
A logical value specifying whether or not toolbar separator bands are supported. The default is TRUE.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
This method enables or disables toolbar band support. If bands are enabled (the default), the toolbar uses internally a Rebar32 control and supports the management of several bands. If you do not need or want bands, issue EnableBands(FALSE) before the toolbar is shown/created.
Tip Tip
If band support is disabled, the band-related methods, such as ToolBar:AddBand(), will not work.
Examples
For an example of a band-style toolbar, see the Private Eye sample application.
See Also