IDMToolBarItem

The IDMToolBarItem class represents tool-bar-specific items in a direct manipulation. Tool bars create objects of the IDMToolBarItem class when either of the following occurs:

This class provides virtual functions that implement direct manipulation support for tool bars. You can derive item classes to support the direct manipulation of tool bar items if the default Open Class Library support does not meet your requirements.
Note: This class does not support tool bars as the source of a direct manipulation.


IDMToolBarItem - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class.


[view class]
~IDMToolBarItem
public:
virtual ~IDMToolBarItem()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IDMToolBarItem
public:
IDMToolBarItem(const IDMItem::Handle& dragItem)

Constructs IDMToolBarItem objects for the target of a direct manipulation. It is called by the member function, IDMItemProviderFor::provideTargetItemFor, of the tool bar's item provider for the tool bar item class.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Drop Processing

Use these members during the drop operation of a direct manipulation.


[view class]
targetDrop
public:
virtual bool targetDrop(IDMTargetDropEvent& event)

Implements tool-bar-item-specific rendering when the drag item that represents a tool bar button or a menu item object is dropped on a tool bar. This function processes the drop in one of the following ways:

Derived classes should override this function if the default support does not meet your requirements.
Note: Each tool bar button, within the context of a tool bar, must have a unique identifier (ID). The drop is rejected if a duplicate ID is detected within the same tool bar.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IDMToolBarItem - Inherited Member Functions and Data

Inherited Public Functions

IDMItem
IMRefCounted

Inherited Public Data

IDMItem

Inherited Protected Functions

IMRefCounted
IDMItem

Inherited Protected Data

IDMItem