ToolBar.AddSubToolBarBand Method (Typed) | |
Add a new band to the toolbar as a sub-toolbar.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD AddSubToolBarBand(
symToolBar,
iPos,
iMinWidth,
lFlat_dwStyle
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual AddSubToolBarBand(
Usual symToolBar = default,
Usual iPos = default,
Usual iMinWidth = default,
Usual lFlat_dwStyle = default
)
Request Example
View SourceParameters
- symToolBar (Optional)
- Type: Usual
A symbol naming the main toolbar. - iPos (Optional)
- Type: Usual
Position of the sub-toolbar band. The default is -1 (the last position). - iMinWidth (Optional)
- Type: Usual
Minimum width of the sub-toolbar band. The default is 100. - lFlat_dwStyle (Optional)
- Type: Usual
You are now able to pass a DWORD value to this parameter which allows you to create ToolBars with different styles inside a ReBar control.
Style | Value |
---|
BSTYLE_TOOLTIPS
| 0x0100 |
TBSTYLE_WRAPABLE
| 0x0200 |
TBSTYLE_ALTDRAG
| 0x0400 |
TBSTYLE_FLAT
| 0x0800 |
TBSTYLE_LIST
| 0x1000 |
TBSTYLE_CUSTOMERASE
| 0x2000 |
TBSTYLE_REGISTERDROP
| 0x4000 |
TBSTYLE_TRANSPARENT
| 0x8000 |
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks
The AddSubToolBarBand() method creates a new band holding its own toolbar. This way, you can create a toolbar that is divided into several bands, each holding a sub-toolbar.
See Also