Australian Toolbook User Group

Toolbook Tips & Techniques

Previous Page Next Page

Menus

Menus can be created at runtime via openscript using the add menu command, (or at design mode using the 'at author' parameters)

An easier way of creating menus is to create an entire menu bar structure as a resource using the menu editor. You can then assign that menu to the mainwindow, or to any viewer for that matter (select a menu resource to use in the viewer properties). To switch menus at runtime, you simply assign a specific menu resource to a particular viewer.

Popup menus that popup next to your mouse as you click on something in your interface are implemented via the popupmenu command. You can define your popup menus in openscript or simply specify a menu that you have created using the menu editor (easier).

Cascading submenus are available in all the above menu types.

Toolbook 6's support of ActiveX controls may let Toolbook use 3rd party menu technology, such as the dockable and customisable Office 97 - like menus offered by Sheridan Active Toolbars technology.

http://www.shersoft.com/

Do not overlook the power of Toolbook design mode menus. This facility lets you trigger script (via the design mode menu) whilst you are authoring - allowing you to create authoring tools to assist the authoring process. Of course 'always reader mode' viewers can also run openscript code in author mode.


To access thousands more tips offline - download Toolbook Knowledge Nuggets 

Previous Page Next Page