TCnColorDialog Class
Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
type TCnColorDialog = class(TClrBaseComponent) end;
The TCnColorDialog type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnColorDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnColorDialog instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
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. |
Name | Description | |
---|---|---|
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoColorChanged(TObject) | Represents method | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
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.) |
Name | Description | |
---|---|---|
OnHelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.