Creating Toolbar Menus

Discussion in 'AutoCAD' started by pcoil, Jan 21, 2004.

  1. pcoil

    pcoil Guest

    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)]
     
    pcoil, Jan 21, 2004
    #1
  2. pcoil

    ECCAD Guest

    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
     
    ECCAD, Jan 21, 2004
    #2
  3. pcoil

    pcoil Guest

    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
     
    pcoil, Jan 21, 2004
    #3
  4. pcoil

    ECCAD Guest

    Yes,
    The values specify 'show' position on screen. You do a toolbar 'show' to make it visible. 'Hide' to make it go away.
    Bob
     
    ECCAD, Jan 21, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.