Creating customized toolbar files manually

Creating customized toolbar files manually

With progeCAD, the easiest way to share toolbars is to create a new .cui file using the Customize UI command and share that file with other progeCAD users. For more details, see Creating a new .cui file and copying settings.

You can also manually create toolbars that you can share by creating or modifying an .mnu file manually.

To manually create a toolbar that you can share

   1   Open any ASCII or Unicode text editor.

   2   Use the following toolbar syntax to type the toolbar definitions:

***MENUGROUP=group_name

***TOOLBARS
**toolbar_name
ID_toolbar_name
[_Toolbar ("toolbar_name", orient, visible, xval, yval, rows)]
ID_button_name [_Button ("button_name", id_small, id_large)]command

***HELPSTRINGS
ID_button_name [help_string]

Toolbar syntax and explanations

Item

Explanation

group_name

Menu group name.

toolbar_name

Toolbar name.

orient

Orientation. Select Floating, Top, Bottom, Left, and Right (not case sensitive).

visible

. Select Show or Hide (not case sensitive).

xval

x coordinate, designated in pixels from left edge of screen. Suggested value: 200.

yval

y coordinate, designated in pixels from top edge of screen. Suggested value: 200.

rows

Number of rows

button_name

Tool name. Appears as a ToolTip when user places cursor over button.

id_small

Name of small (16 x 16 pixels) icon bitmap (BMP) file. This file must be located in the progeCAD folder specified in Tools > Options > Paths.

id_large

Name of large (32 x 32 pixels) icon bitmap (BMP) file. This file must be located in the progeCAD folder specified in Tools > Options > Paths.

command

Command string (Example: ^C^C_LINE).

help_string

Help string. Appears in the status bar when cursor passes over the button.

    3    Save the file to the progeCAD folder with a *.mnu extension.

Example Toolbar File Contents

***MENUGROUP=example

***TOOLBARS
**NewDraw
ID_ NewDraw [_Toolbar("NewDraw ", _Bottom, _Show, 200, 200, 1)]
ID_Line_0 [_Button("Line", Iline.bmp, IL_line.bmp)]^C^C_line
ID_Hatch [_Button("Hatch", Ihatch.bmp, IL_hatch.bmp)]^C^C_hatch
ID_Dtext [_Button("Dtext", Idtext.bmp, IL_dtext.bmp)]^C^C_dtext
ID__0 [_Button("Circle Rad", Icirad.bmp, IL_cirad.bmp)]^C^Ccircle;
ID_Erase [_Button("Erase", Ierase.bmp, IL_erase.bmp)]^C^Cerase;

***HELPSTRINGS
ID_Line_0 [Creates straight line segments]
ID_Hatch [Fills an enclosed area with a nonassociative hatch pattern]
ID_Dtext [Displays text on screen as it is entered]
ID__0 [Allows user to draw a circle with a radius value]
ID_Erase [Removes objects from a drawing]

To open the file on another computer

   1   Copy the toolbar (.mnu) file and all related custom bitmap (*.bmp) files to the progeCAD folder on the other computer.

   2   Open progeCAD.

   3   Do one of the following to choose Customize UI ():

    On the ribbon, choose Tools > Customize UI (in Manage).

    On the menu, choose Tools > Customize UI.

    Type cui and press Enter.

   4   Click the Transfer tab.

   5   On the left, click Open.

   6   Select the new toolbar file, then click Open.

    7    Click OK.