TApColorDialog

Inherited from : TColorDialog

Unit: ApColorDlg

More powerful version of TColorDialog shipped with Borland's compilers.

Types

Properties

Methods

Events



Types



Properties


CustDlgParams : TApCustDlgParams

Published; protected in custom version

This variable contains all information about panels of the standard dialog. See TApCustDlgPatams type for details.


DlgItemsCaptions : TApColorDlgCaptions

Published; protected in custom version

You can set items in this property to replace labels for standard controls inside dialog. For example you can replace OK button caption using DlgItemsCaptions.OK property and so on. If there is no value in any subitem then original text is displayed.


Title : string

Published; protected in custom version

The title of the dialog



Methods



Events


All the new properties below are "dialog-time".

For all handlers: Published; Protected in custom version.


OnFullOpening : TApCtrlQueryEvent;

Occurs when the user is about to open right part of Color dialog. Set AllowProceed to false to prevent this action.


OnFullOpen : TNotifyEvent;

Occurs when the user have opened right part of Color dialog.


OnCustomColorAdding : TApColorQueryEvent;

TApColorQueryEvent = procedure(Sender : Tobject; var AColor : TColor; var Allo
wedColor : boolean) of object;

Occurs when the user is about to add new color to custom palette. AColor variable contains that color wich the user tries to add. Set AllowedColor to false to prevent this adding.


OnCustomColorAdd : TApColorEvent;

TApColorEvent = procedure(Sender : Tobject; AColor : TColor) of object;

Occurs when the user is about to open right part of Color dialog. Set AllowProceed to false to prevent this action. AColor - that color wich was added to the custom palette.


OnEventHook : TWndMethod

General hook procedure. You can hook any message you want directry in this handler. This handler occurs after dialog procedure has processed current message.


OnEventHooking : TApMsgQueryEvent

You can determine here whether dialog box procedure should process current message (m parameter).  Set AllowDispatch to false to prevent this message's processing by dialog box procedure.