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

TFileNameEdit

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TFileNameEdit - an EditBox to hold a filename, with an attached SpeedButton that will summon a File Open dialog

Declaration

Source position: editbtn.pas line 157

type TFileNameEdit = class(TCustomEditButton)

protected

  function GetDefaultGlyph; override;

  function GetDefaultGlyphName; override;

  function CreateDialog(); virtual;

  

CreateDialog - creates the dialog for file open

  procedure SaveDialogResult(); virtual;

  

SaveDialogResult - stores the result of the dialog

  procedure DoButtonClick(); override;

  

  procedure RunDialog; virtual;

  

RunDialog - perform the function of the dialog

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  property DialogFiles: TStrings; [r]

  

DialogFiles - the list of files for the dialog

published

  property FileName: String; [rw]

  

FileName - the name of the selected file: either the initial value placed in the Text Box, or the value selected from the dialog

  property InitialDir: String; [rw]

  

InitialDir - the directory from which the search starts

  property OnAcceptFileName: TAcceptFileNameEvent; [rw]

  

OnAcceptFileName - event handler for accepting a filename

  property DialogKind: TDialogKind; [rw]

  

DialogKind - should be dkOpen

  property DialogTitle: String; [rw]

  

DialogTitle - the title to appear on the dialog

  property DialogOptions: TOpenOptions; [rw]

  

DialogOptions - set of options for the open file dialog

  property Filter: String; [rw]

  

Filter - the filtering string to help search for the required file

  property FilterIndex: Integer; [rw]

  

FilterIndex - index value for the filtering string

  property ButtonWidth;

  

  property DirectInput;

  

  property ButtonOnlyWhenFocused;

  

  property NumGlyphs;

  

  property Flat;

  

  property Align;

  

  property Anchors;

  

  property AutoSelect;

  property BorderSpacing;

  

  property AutoSize;

  

  property Color;

  

  property Ctl3D;

  

  property DragCursor;

  

  property DragMode;

  

  property Enabled;

  

  property Font;

  

  property MaxLength;

  

  property ParentColor;

  

  property ParentCtl3D;

  

  property ParentFont;

  

  property ParentShowHint;

  

  property PopupMenu;

  

  property ReadOnly;

  

  property ShowHint;

  

  property TabOrder;

  

  property TabStop;

  

  property Visible;

  

  property OnChange;

  

  property OnClick;

  

  property OnDblClick;

  

  property OnDragDrop;

  

  property OnDragOver;

  

  property OnEditingDone;

  property OnEndDrag;

  

  property OnEnter;

  

  property OnExit;

  

  property OnKeyDown;

  

  property OnKeyPress;

  

  property OnKeyUp;

  

  property OnMouseDown;

  

  property OnMouseMove;

  

  property OnMouseUp;

  

  property OnStartDrag;

  

  property OnUTF8KeyPress;

end;

Inheritance

TFileNameEdit

  

TFileNameEdit - an EditBox to hold a filename, with an attached SpeedButton that will summon a File Open dialog

|

TCustomEditButton

  

TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button

|

TCustomEdit

?

TObject