ManagedServices::MaxColorPicker Class Reference


Detailed Description

The class simply wraps native max color picker so that managed code can handle max color picker.

This class encapsulates the color picker of Max SDK in managed code.

List of all members.

Public Member Functions

  MaxColorPicker ()
  Constructor of Managed Max color picker.
  MaxColorPicker (System::IntPtr hWnd, bool alpha, System::String^FormTitle)
  Constructor of Managed Max color picker.
bool  ShowModeless ()
  Show the modeless color picker dialog.
void  Close ()
  Close the modeless color picker dialog.
void  OnColorConfirmed ()
  Raise ColorConfirmed event when the color change is confirmed, through click the OK button of color picker form.
void  OnColorDialogCancelled ()
  Raise DialogCancelled event when the color change is cancelled, through click the cancel button of color picker form.

Properties

event ConfirmColorEventHandler  ColorConfirmed
  The current color of color picker.
event System::EventHandler  DialogCancelled
  This event handler is called when the color change is cancelled, through click the cancel button of color picker form.
internal  __pad0__: void OnColorChanged()

Constructor & Destructor Documentation

ManagedServices::MaxColorPicker::MaxColorPicker ( )

Constructor of Managed Max color picker.

ManagedServices::MaxColorPicker::MaxColorPicker ( System::IntPtr  hWnd,
bool  alpha,
System::String^  FormTitle 
)

Constructor of Managed Max color picker.

Parameters:
hWnd Provides the owner window handle which create the color picker form.
alpha Provides whether color has alpha channel. According to alpha param, it create different color picker form, which contains alpha channel or not.
FormTitle Provides the title of color picker dialog.

Member Function Documentation

bool ManagedServices::MaxColorPicker::ShowModeless ( )

Show the modeless color picker dialog.

Returns:
true if color picker is created successfully, otherwise returns false.
void ManagedServices::MaxColorPicker::Close ( )

Close the modeless color picker dialog.

void ManagedServices::MaxColorPicker::OnColorConfirmed ( )

Raise ColorConfirmed event when the color change is confirmed, through click the OK button of color picker form.

void ManagedServices::MaxColorPicker::OnColorDialogCancelled ( )

Raise DialogCancelled event when the color change is cancelled, through click the cancel button of color picker form.


Property Documentation

event ConfirmColorEventHandler ManagedServices::MaxColorPicker::ColorConfirmed

The current color of color picker.

The set function will modify and refresh the current color of color picker; meanwhile it will also raise a event to refresh the color of color editor. This event handler is called when the color change is confirmed, through click the OK button of color picker form.

event System::EventHandler ManagedServices::MaxColorPicker::DialogCancelled

This event handler is called when the color change is cancelled, through click the cancel button of color picker form.

internal ManagedServices::MaxColorPicker::__pad0__

ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker
ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker ManagedServices::MaxColorPicker