OptionsObject - cCJCommandBarSystem
Returns a handle a command bar system's cCJCommandBarsOptions object
Type: Function
Return Data Type: Handle
Syntax
Function OptionsObject Returns Handle
Call Example
Get OptionsObject to HandleVariable
Description
OptionsObject returns a handle a command bar system's cCJCommandBarsOptions object.
The cCJCommandBarsOptions object provides access to a number of command bar system properties. The most commonly used options properties (e.g., ComLargeIcons) have already been exposed directly as cCJCommandBarSystem properties (e.g., pbLargeIcons). The lesser used option properties (e.g., ComSetIconSize), if needed, must be set by sending messages directly to the options object.
Sample
Procedure NewLargeIconsSize integer iX integer iY
Handle hoOptions
If (IsComObjectCreated(Self)) Begin
Get OptionsObject to hoOptions
Send ComSetIconSize of hoOptions True iX iY
Send ComRecalcLayout
End
End_Procedure
Note that this object is maintained by the cCJCommandBarSystem object and should not be destroyed.
Return Value
Returns a handle to a cCJCommandBarsOptions object