progeCAD Professional manual The low-cost alternative to AutoCAD

Index



Do you want to try progeCAD Professional?
Download the trial: you can try the product, without any limit, for 30 days!

A manual page a day... Click here to see the manual table of contents.

Customizing progeCAD - Customizing toolbars

Creating toolbars that you can share as files

With progeCAD, you can manually create toolbars that you can share as files with other progeCAD users. You create the toolbar files using any ASCII text editor and the toolbar syntax and definitions shown here:

***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

Visibility. 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 15 pixels) icon bitmap (BMP) file. This file must be located in the progeCAD folder.

id_large

Name of large (24 x 22 pixels) icon bitmap (BMP) file. This file must be located in the progeCAD folder.

command

Command string (Example: ^C^C_LINE).

help_string

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

To create a toolbar that you can share
  1. Open any ASCII text editor.
  2. Type the following characters exactly as shown here:

***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]

  1. Save the file to the progeCAD folder with a *.mnu extension.
To copy an existing toolbar
  1. Make sure the toolbar you want to copy is visible.
  2. Do one of the following:
  3. Choose Tools > Customize > Menu.
  4. Type customize and press Enter.
  5. Click the Toolbars tab.
  6. Go outside the Customize dialog box and select a tool on the existing toolbar that you want to copy.
  7. Copy the information from the ToolTip, Help String, and Command boxes and paste it into the corresponding lines in the text file.
  8. Save the file to the progeCAD folder with a *.mnu extension.
To open the toolbar 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:
  4. Choose Tools > Customize > Menu.
  5. Type customize and press Enter.
  6. Click the Toolbars tab.
  7. Click Import.
  8. Select the new toolbar file.
  9. Select the Append To Current Menu check box, and then click Open.

If you don't select this box, the custom shortcut menu deletes all current menus.

  1. Click Close.