component TacCustomCaptionButton class
Hierarchy
Return to Introduction 
Unit
acCaptionButton  

Declaration

type  
  TacCustomCaptionButton = class(TacHFormHookComponent)  
  protected  
    procedure MessageAfter(var Message: TMessage); override;  
    procedure FormRecreateoverride;  
 
    procedure BeforeButtonClick; virtual;  
    procedure ButtonClick; virtual// button clicked  
    procedure BeforeMenuClick; virtual;  
    procedure MenuClick; virtual// menu item selected  
    procedure Click; virtual// anyway button or mouse  
    procedure Pressed; virtual// button pressed (menu item checked)  
    procedure Released; virtual// button released (menu item unchecked)  
    procedure Loaded; override;  
  public  
    constructor Create(aOwner: TComponent); override;  
    destructor Destroy; override;  
 
    // public methods  
    procedure RefreshWindow;  
    procedure RefreshButton;  
 
    // public properties  
    property AllowPress: Boolean;  
    property BtnOrderTacBtnOrder;  
    property CaptionButton: TacACaptionButton// for successors  
    property Cursor: TCursor;  
    property CursorDown: TCursor;  
    property Down: Boolean;  
    property Enabled: Boolean;  
    property Glyph: TBitmap;  
    property GlyphDown: TBitmap;  
    property GlyphTransparent: Boolean;  
    property HintString;  
    property PopupMenu: TPopupMenu;  
    property SeparatorWidth: Byte;  
    property ShowHint: Boolean;  
    property SignFont: TFont;  
    property SignLeft: Integer;  
    property SignTop: Integer;  
    property Sign: Char;  
    property SystemMenuTacSystemMenu;  
    property Visible: Boolean;  
 
    // public events  
    property OnClick: TNotifyEvent;  
    property OnPressed: TNotifyEvent;  
    property OnReleased: TNotifyEvent;  
  end;  

Description
The TacCustomCaptionButton is the base class for all components that able to have an additional caption button on the form's title bar. Components like acCaptionButton, acAppAutoRun, acFormTopmost, acFormRoller, acFormHelp, acTrayIcon.  
 
All public properties, methods and events which presented by TacCustomCaptionButton can be used at run-time by all its successors.  

See also
acCaptionButton, acAppAutoRun, acFormTopmost, acFormRoller, acFormHelp and acTrayIcon components.