folderedit Button structure
Return to Introduction  Previous page  Next page
Applies to
dcFolderEdit and dcFileEdit components.  

Declaration
type  
  TdcEditButton = class(TPersistent)  
  published  
    property Cursor: TCursor;  
    property Flat: Boolean; // in Delphi 3 and later !!!  
    property Glyph: TBitmap;  
    property NumGlyphs: TNumGlyphs; // 1..4  
    property HintString;  
    property Width: Word;  
    property Visible: Boolean; // False by default  
  end;  

Description
The dcFolderEdit component is able to have a custom button at the right edge of edit control. The Button structure intended for specify settings for this button. To make button visible on edit control - set Button.Visible to True.  
 
You can specify the glyph image and number of images, hint, cursor and width for button.  
 
tip The button which at the right of edit control is just usual TSpeedButton component. You can even gain direct access to all button's properties using hidden EditButton property.  
For example, to specify caption for this button you may use following code:  
  dcFolderEdit1.EditButton.Caption := 'Test';  

See also
OnButtonClick event.