ManagedServices::IManagedHsvCallback Interface Reference


Detailed Description

A managed Callback interface that an object can implement to receive callback messages from an HSVCallback.

List of all members.

Public Member Functions

void  ButtonDown ()
  Raised when the user clicks on the color swatch.
void  ButtonUp (bool accept)
  Raised when the user releases the mouse on the color swatch.
void  ColorChanged (System::Windows::Media::Color aColor, bool buttonUp)
  This callback proc gets called after the user changes the color.
void  BeingDestroyed (System::Windows::Point pos)
  This callback proc gets called when the color picker is closed:
void  OnOK ()
  This callback proc gets called when user click Ok to confirm the color modification.
void  OnCancel ()
  This callback proc gets called when user click Cancel to cancel the color modification.

Member Function Documentation

void ManagedServices::IManagedHsvCallback::ButtonDown ( )

Raised when the user clicks on the color swatch.

void ManagedServices::IManagedHsvCallback::ButtonUp ( bool  accept )

Raised when the user releases the mouse on the color swatch.

Parameters:
accept true if the mouse button was released normally; false if the user canceled.
void ManagedServices::IManagedHsvCallback::ColorChanged ( System::Windows::Media::Color  aColor,
bool  buttonUp 
)

This callback proc gets called after the user changes the color.

Implement this method to handle interactive updates.

Parameters:
aColor The new color.
buttonUp Indicates if the mouse button has been released (is up). true if the button is up; false if it is down.
void ManagedServices::IManagedHsvCallback::BeingDestroyed ( System::Windows::Point  pos )

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

Parameters:
pos The last screen position of the color picker before it was closed.
void ManagedServices::IManagedHsvCallback::OnOK ( )

This callback proc gets called when user click Ok to confirm the color modification.

void ManagedServices::IManagedHsvCallback::OnCancel ( )

This callback proc gets called when user click Cancel to cancel the color modification.