Creating Custom Menu-Driven Events
See also:
OyezForms application-level macros are intended to extend program functionality using external code. It is possible to offer users extra menu options that can trigger external code.
The oyezfrms.cfg file [ OyezForms v12.00+ ]
This text-editable file enables you to add a custom tab to the OyezForms ribbon bar. The path to this file can be controlled by the following registry value:
Key: HKEY_CURRENT_USER\Software\Oyez\Oyez Legal Forms\Macro |
String: AppPath |
If present, OyezForms will use this path to read/store the app-level macro, and oyezfrms.cfg files. |
The following oyezfrms.cfg content will create a 'ACME Software' custom tab in the ribbon bar with 2 user buttons.
Capturing button clicks in app-level macros
You can capture user clicks defined by [ToolMenu1] and [ToolMenu2], above, with the following app-level macro code:
Customising Ribbon Bar Icons.
The <app. folder>\UserToolLG.bmp file can be directly edited to customise the appearance of icons on the ribbon bar. 'T' signifies icons that will appear under your custom tab, 'H' signifies icons that will appear in the help panel.
Right-click on the image above and select save to replenish your source file.