Public Member Functions | Public Attributes

ToolItem Class Reference

Search for all occurrences

Detailed Description

See also:
Custom Controls.

Description:
This class describes the properties of an item in a 3ds Max custom toolbar.
Data Members:
ToolItemType type;

See Tool Item Types.

int id

The ID for the control.

DWORD helpID

For plug-in developers this id should be set to 0. Basically, the main 3ds Max help file contains help tags that are tied to various parts of the 3ds Max UI, allowing the right help page to come up when UI help is requested. In particular, if you press the ? button on the toolbar, then press another toolbar button, you'll get help on that button's functionality. This is because internally pressing the button yields a help ID that indexes into the help file. But since the same help ID must be compiled into the help file and into MAX, and since the main 3ds Max help file can not be rebuilt by developers, they cannot use this functionality.

int w

The width of the button image.

int h

The height of the button image.

int orient;

The orientation of the item. One of the following values:

CTB_HORIZ

CTB_VERT

CTB_FLOAT

#include <custcont.h>

Inheritance diagram for ToolItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~ToolItem ()

Public Attributes

ToolItemType  type
int  id
DWORD  helpID
int  w
int  h
int  orient

Constructor & Destructor Documentation

virtual ~ToolItem ( ) [inline, virtual]
Remarks:
Destructor.
{}

Member Data Documentation

int id
DWORD helpID
int w
int h
int orient

ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem
ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem ToolItem