MFColorPanel Component Help


Overview  Installation   Properties  Methods  Events   Terms of Use and Registration


 

Overview
TColorPanel is a TPanel descendant that provides the functionality of the color selection panel featured in such applications as Paint Shop Pro (TM).

The Panel is filled with a color spectrum from which you can select a primary and secondary color using the left and right mouse buttons respectively.

When you click on the panel, an event is fired which supplies the color selected.

 

Installation

Put the MFColorPanel .pas, MFColorPanel.res and MFColorPanel.dcr files in a directory in your library path then select MFColorPanel.pas using the Component/Install Component Menu Selection in the IDE.

 

Properties
TColorPanel adds no properties beyond those inherited by TCustomPanel.

 

Methods
TColorPanel adds no methods beyond those inherited by TCustomPanel.

 

Events
OnLeftSelect This event is fired when the user clicks on the color spectrum in the panel with the left mouse button. The event passes the color selected (as a TColor value) to the application in the form illustrated in the following example:

 

procedure TForm1.ColorPanel1LeftSelect(Color:TColor);

begin

// User Code here

end;

OnNewColor

This event is fired when the user clicks on the color spectrum in the panel with either mouse button. The event passes the color selected (as a TColor value) to the application in the form illustrated in the following example:

 

procedure TForm1.ColorPanel1NewColor(Color:TColor);

begin

// User Code here

end;

OnRightSelect

This event is fired when the user clicks on the color spectrum in the panel with the right mouse button. The event passes the color selected (as a TColor value) to the application in the form illustrated in the following example:

 

procedure TForm1.ColorPanel1RightSelect(Color:TColor);

begin

// User Code here

end;

 

Terms of Use and Registration
This component is shareware not freeware. If you decide to use it after evaluation, you must register it. Upon registration you may use the component freely in any freeware or shareware applications you create and distribute.

Use of the component in a commercial application is prohibited without prior written permission from the author. Any additional fee or requirements will be determined based on the nature of the application.

This component is provided to you with the full source code 'On Trust'. If you decide to use it please do the honorable thing and register.

Please visit MicroFrame's website for instructions concerning registration