Creating Toolbar Menus

pcoil

Usenet Archive
Joined
Jan 21, 2004
Messages
7
Reaction score
0
Its been a while. I am trying to write an AutoCAD menu file for a toolbar. I already have a Menu started w/ 1 toolbar that works correctly. I copied this info directly below to begin editing for a new toolbar. Can someone refresh my memory what the numbers within the mean?

thanks

Phil

**PHIL_MISC
**TB_PHIL'S_MISC
ID_PHIL_MISC_0 [_Toolbar("PHIL's MISC", _Top, _Show, 0, 2, 1)]
 
From AutoCAD Help: Customization Guide, Custom Menus, Toolbars, Create Toolbars, General Toolbar Definition:
The toolbar definition uses the keyword Toolbar followed by a series of options contained in parentheses.

TAG1 [Toolbar ("tbarname", orient, visible, xval, yval, rows)] The options are as follows:

tbarname

The string that names the toolbar. The string must include alphanumeric characters with no punctuation other than a dash (-) or an underscore (_). This name along with the alias enables the toolbar to be referenced programmatically.

orient

The orientation keyword. The acceptable values are Floating, Top, Bottom, Left, and Right and are not case-sensitive.

visible

The visibility keyword. The acceptable values, Show and Hide, are not case-sensitive.

xval

A numeric value specifying the X coordinate in pixels, measured from the left edge of the screen to the left side of the toolbar.

yval

A numeric value specifying the Y coordinate in pixels, measured from the top edge of the screen to the top of the toolbar.

rows

A numeric value specifying the number of rows.

Bob
 
So if I understand it correctly the xval, yval & row shouldnt cause the toolbar to not show up in Acad? Its just an appearance and size thing?

Thanks!
Phil
 
Yes,
The values specify 'show' position on screen. You do a toolbar 'show' to make it visible. 'Hide' to make it go away.
Bob
 

Latest threads

Back
Top