Class HSVCallback

3DS Max Plug-In SDK

Class HSVCallback

See Also: Class ColorPicker, List of Color Conversion Utilities.

class HSVCallback

Description:

This class provides methods that are called when using the modeless color picker. All methods of this class are implemented by the Plug-In.

Methods:

Prototype:

virtual void ColorChanged(DWORD col, BOOL buttonUp)=0;

Remarks:

Implemented by the Plug-In.

This callback proc gets called after the user changes the color. Implement this method to handle interactive updates.

Parameters:

DWORD col

The new color.

BOOL buttonUp

Indicates if the mouse button has been released (is up). TRUE if the button is up; FALSE if it is down.

Prototype:

virtual void BeingDestroyed(IPoint2 pos)=0;

Remarks:

Implemented by the Plug-In.

This callback proc gets called when the color picker is closed:

Parameters:

IPoint2 pos

The last screen position of the color picker before it was closed.

Prototype:

virtual void ButtonDown()

Remarks:

Implemented by the Plug-In.

This method is called when the user has pressed the mouse button.

Default Implementation:

{}

Prototype:

virtual void ButtonUp(BOOL accept)

Remarks:

Implemented by the Plug-In.

This method is called when the user has released the mouse button.

Parameters:

BOOL accept

TRUE if the mouse button was released normally; FALSE if the user canceled.

Default Implementation:

{}