Workbench User Guide : 8. Generating Frames from Predefined Templates : The Calculator Template : Call a Calculator Frame
 
Share this page                  
Call a Calculator Frame
To open the calculator frame in your application, you must add a callframe statement to the script of each frame that will call it.
To open the calculator from a menu command
1. Create the menu item that will be used.
In the following example, a menu button called “Calculator” on a menu called “Tools” was used.
2. Add the following to the script of the calling frame:
on click menu.tools.calculator =
     {
          callframe My_Calculator;
     }