OnComCustomization - cCJCommandBarSystem
Event sent before the customize dialog appears allowing you to determine what customize tab pages are visible
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| llOptions | Variant | Pointer to the COM customize options object. If used this must be bound to a DataFlex proxy cCJCustomizeOptions object |
Syntax
Procedure OnComCustomization Variant llOptions
Description
The customize dialog allows you to customize the command bars. The OnComCustomization event is called before the dialog appears and it allows you to determine what tab pages will appear in the customize dialog. The event is passed a pointer to the customize options object. If you need to change this you must bind this to a cCJCustomizeOptions object..
This event is augmented to enable and disabled customize tab pages based on the pbCustomizeShowKeyboardPage and pbCustomizeShowOptionsPage properties. Therefore, if you augment this event you should make sure you forward it.
Sample
The following sample hides the menu tab page
Procedure OnComCustomization Variant vCustomizeOptions
Handle hoCustomize
Boolean bShowKeyboardPage bShowOptionsPage
// create a cusomize options object and bind COM pointer to it.
Get Create U_cCJCustomizeOptions to hoCustomize
Set pvComObject of hoCustomize to vCustomizeOptions
// do not show the menu tab page
Set ComShowMenusPage of hoCustomize to False
// destroy proxy object when no longer needed
Send Destroy of hoCustomize
Forward Send OnComCustomization vCustomizeOptions
End_Procedure