Customer Portal

If you haven’t already, register for the Customer Portal: unlock a wealth of useful information and submit cases in an easier, more efficient way! Find out more here.

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.
Should end with a .bas file extension, e.g.: p:\oyez\appmacro\oyezapp.bas.
Path can be shared, or split, between users as required.
oyezfrms.cfg is created alongside the bas file.

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.