Adding Application Menu to User Menu
To add/replace the current User Menu bar with a custom menu you must do the following:
Create a template file for the new menu.
Compile the new template into Forms.VX.
Tell VX to use the new template.
For
the first step we will use the sample template file:
openvx/supp/OpenVxUser.t
As you begin to add your own applications, you may then modify this
file or create other menus using the appropriate template syntax.
All templates are complied into a file called Forms.VX. To
compile new templates and add them to the Forms.VX file used by VX, first
copy the Forms.VX file from the VX directory to your work
directory. To compile and add a single template type in:
vx -t template_file Forms.VX
If you have a directory which contains multiple templates then you
may compile and add them all by typing in:
vx -d template_dir Forms.VX
This will add your new templates to Forms.VX. After you have created
the new User menu, you need to let VX know about it.
Be
careful with your template names because if you use the name of an existing
template, your new template will replace the original and VX might not
work correctly.
Pick
Utilities
> Configuration...
Under
Text Settings, enter the name of your application menu in the Part
User Menu and/or Drawing User Menu and/or Sketch User Menu
fields.
The name of the menu is specified inside the template
file and may be different from the name of the template file itself.