TCnColorDialog Class

Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

Namespace: CNClrLib.Component.ColorDialog
TComponent
  CNClrLib.Control.Base.TClrBaseComponent
    CNClrLib.Component.ColorDialog.TCnColorDialog
type
 TCnColorDialog = class(TClrBaseComponent)
 end;

The TCnColorDialog type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnColorDialog instance. (Overrides TClrBaseComponent.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnColorDialog instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
AllowFullOpen

Gets or sets a value indicating whether the user can use the dialog box to define custom colors.

AnyColor

Gets or sets a value indicating whether the dialog box displays all available colors in the set of basic colors.

Color

Gets or sets the color selected by the user.

CustomColors

Gets or sets the set of custom colors shown in the dialog box.

DefaultClrObject

Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)

FullOpen

Gets or sets a value indicating whether the controls used to create custom colors are visible when the dialog box is opened

ShowHelp

Gets or sets a value indicating whether a Help button appears in the color dialog box.

SolidColorOnly

Gets or sets a value indicating whether the dialog box will restrict users to selecting solid colors only.

Top
Show:
 NameDescription
Dispose

Releases the resources used by the Component. (Inherited from TClrBaseComponent.)

DoColorChanged(TObject)

Represents method DoColorChanged(TObject).

DoGetDefaultClrObject

Represents method DoGetDefaultClrObject. (Inherited from TClrBaseComponent.)

DoGetDotNetBaseComponent

Represents method DoGetDotNetBaseComponent. (Overrides TClrBaseComponent.DoGetDotNetBaseComponent.)

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

RegisterEventCallBack(ClrWString,Pointer)

Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.)

RegisterEventSource

Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)

Reset

Resets all options to their default values, the last selected color to black, and the custom colors to their default values.

ShowDialog

Overloaded. Runs a common dialog box with a default owner.

ShowDialog(TWinControl)

Overloaded. Runs a common dialog box with the specified owner.

UnRegisterEventCallBack(ClrWString,Pointer)

Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventSource

Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)

Top
Show:
 NameDescription
OnHelpRequest

Occurs when the user clicks the Help button on a common dialog box.

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.