TCnFontDialog Class

Prompts the user to choose a font from among those installed on the local computer.

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

The TCnFontDialog type exposes the following members.

Show:
 NameDescription
Create(TComponent)

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

Destroy

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

Top
Show:
 NameDescription
AllowScriptChange

Gets or sets a value indicating whether the user can change the character set specified in the Script combo box to display a character set other than the one currently displayed.

AllowSimulations

Gets or sets a value indicating whether the dialog box allows graphics device interface (GDI) font simulations.

AllowVectorFonts

Gets or sets a value indicating whether the dialog box allows vector font selections.

AllowVerticalFonts

Gets or sets a value indicating whether the dialog box displays both vertical and horizontal fonts or only horizontal fonts.

Color

Gets or sets the selected font color.

DefaultClrObject

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

FixedPitchOnly

Gets or sets a value indicating whether the dialog box allows only the selection of fixed-pitch fonts.

Font

Gets or sets the selected font.

FontMustExist

Gets or sets a value indicating whether the dialog box specifies an error condition if the user attempts to select a font or style that does not exist.

MaxSize

Gets or sets the maximum point size a user can select.

MinSize

Gets or sets the minimum point size a user can select.

ScriptsOnly

Gets or sets a value indicating whether the dialog box allows selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set.

ShowApply

Gets or sets a value indicating whether the dialog box contains an Apply button.

ShowColor

Gets or sets a value indicating whether the dialog box displays the color choice.

ShowEffects

Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options.

ShowHelp

Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options.

Top
Show:
 NameDescription
Dispose

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

DoColorChanged(TObject)

Represents method DoColorChanged(TObject).

DoFontChanged(TObject)

Represents method DoFontChanged(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 dialog box options 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
OnApply

Occurs when the user clicks the Apply button in the font dialog box.

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.