[Contents] [Index] [Books]

CoCreate OneSpace Designer - Commands Reference Manual


ADD_TOOLBOX_BUTTON terminate action

ADD_TOOLBOX_BUTTON adds a user defined button to the user interface.

Syntax


                             +-------------------<------------------+
                             |                                      |
                             |              +-------->---------+    |
                             |              |                  |    |
---->(ADD_TOOLBOX_BUTTON)----+--(:TOOLBOX)--+--|toolbox name|--+----+---->
                             |                                      |
                             |            +--------->--------+      ^
                             |            |                  |      |
                             +--(:LABEL)--+--|button label|--+-->---+
                             |                                      |
                             |            +--------->--------+      ^
                             |            |                  |      |
                             +--(:ACTION)-+--|button action|-+-->---+
                                          |                  |
                                          +--|any LISP form|-+

Options

The following options are available to create your interface.

When to use

Use this action to add a menu button to the toolbox.

Example

The following parameter sequence adds a button which calls the POLYGON command.

ADD_TOOLBOX_BUTTON :TOOLBOX "TOOLBOX" :LABEL "POLYGON" :ACTION "POLYGON" COMPLETE

or

(ADD_TOOLBOX_BUTTON :TOOLBOX "TOOLBOX" :LABEL "POLYGON" :ACTION "POLYGON")

See also

REMOVE_TOOLBOX_BUTTON terminate action SET_TOOLBOX_MAX_HEIGHT terminate action
[Contents] [Index] [Books]