[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'EditBtn' (#lcl)

TFileNameEdit.CreateDialog

Creates the dialog for the control.

Declaration

Source position: editbtn.pas line 374

protected function TFileNameEdit.CreateDialog(

  AKind: TDialogKind

):TCommonDialog; virtual;

Arguments

AKind

  

Identifies the dialog kind or type created in the method.

Function result

Dialog class instance created in the method.

Description

CreateDialog is a TCommonDialog function which creates and returns the dialog for the grouped edit control.

AKind contains the TDialogKind value that identifies the dialog type required for the control, and normally has the value from the DialogKind property. AKind determines the class type instantiated and used as the return value. For example:

dkOpen
TOpenDialog is the type in return value
dkPictureOpen
TOpenPictureDialog is the type in return value
dkSave, dkPictureSave
TSaveDialog is the type in return value

Properties relevant to the dialog kind are copied into the dialog, and mat include:

CreateDialog is used in the implementation of the RunDialog method.

See also

TCommonDialog

  

The base type from which other dialogs are derived.

TOpenDialog

  

Opens a file in the current directory, selected by File Dialog.

TSaveDialog

  

TSaveDialog - Dialog for saving the current buffer to a file.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.