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

type // this structure introduced in acButtons unit  
  TacPanelBitBtn = class(TPersistent)  
    property Button: TacBitBtn read GetButton;  
    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;  
property BtnOK: TacPanelBitBtn;  

The BtnOK property used to specify the properties of appearance and behaviour of "Apply" 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 Apply button — write OnApplyClick event handler.  

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