buttonspanel BtnCustom property
Return to Introduction  Previous page  Next page
Applies to
acButtonsPanel component.  

Declaration
type // this structure introduced in acButtons unit  
  TacPanelBitBtn = class(TPersistent)  
  public  
    property Button: TacBitBtn read GetButton;  
  published  
    property BiDiMode: TBiDiMode;  
    property Caption: TCaption;  
    property Color: TColor;  
    property Cursor: TCursor;  
    property Enabled: Boolean;  
    property Hint: String;  
    property Font: TFont;  
    property ParentBiDiMode: Boolean;  
    property ParentColor: Boolean;  
    property ParentFont: Boolean;  
    property ParentShowHint: Boolean;  
    property PopupMenu: TPopupMenu;  
    property ShowHint: Boolean;  
    property Visible: Boolean;  
 
    property Glyph: TBitmap;  
    property GlyphLayout: TacBitBtnGlyphLayout default glGlyphLeft;  
    property ImageIndex: TacImageIndex default -1;  
    property Kind: TacBitBtnKind default bkCustom;  
    property ModalResult: TModalResult default mrNone;  
    property ShowFocus: Boolean default True;  
    property TextStyle: TacTextStyle;  
  end;  
 
property BtnOK: TacPanelBitBtn;  

Declaration
The BtnOK property used to specify the properties of appearance and behaviour of custom button which appears on ButtonsPanel.  
 
To specify custom text for button — use Caption property. To make the button visible or invisible — modify Visible property. To disallow user to press the button — set Enabled property to False. Also you can specify the custom icon which appears on the button using Glyph property, or sepecify the icon index to ImageIndex property (if you decided to use an icon from some ImageList specified in Images property).  
 
iiinfo To be notified when user clicked Help button — write OnBtnCustomClick event handler.  
 
tip If you would like to show the custom button BEFORE the OK button — set CustomButtonPosition property to True.  

See also
BtnOk, BtnCancel, BtnApply, BtnHelp, BtnCustom and CustomButtonPosition properties;  
OnAnyBtnClick, OnApplySettings, OnBtnOkClick, OnBtnCancelClick, OnBtnApplyClick, OnBtnHelpClick and OnBtnCustomClick events.