Class TTabPropsEx

Unit

Declaration

type TTabPropsEx = class(TComponent)

Description

subcomponent defines all props and events for TrTabControlEx and TrPageControlEx

Hierarchy

  • TComponent
  • TTabPropsEx

Overview

Methods

Public function CloseBtnShown(TabIndex: integer): Boolean;
Public function CloseBtnRect(TabIndex: integer): TRect;
Public procedure CheckMouseClick(Button: TMouseButton; Shift: TShiftState; X, Y: integer);
Public procedure CheckMouseMove(Shift: TShiftState; X, Y: integer);

Properties

Public property HotTabIndex: integer read FHotTabIndex;
Public property HotBtnIndex: integer read FHotBtnIndex;
Published property DrawThemed: Boolean read FDrawThemed write SetDrawThemed default true;
Published property WordWrap: Boolean read FWordWrap write SetWordWrap default false;
Published property TabColor: TColor read FTabColor write SetTabColor default clNone;
Published property SelectedTabColor: TColor read FSelectedTabColor write SetSelectedTabColor default clNone;
Published property HotTabColor: TColor read FHotTabColor write SetHotTabColor default clNone;
Published property ParentFont: Boolean read FParentFont write SetParentFont default true;
Published property TabFont: TFont read FTabFont write SetTabFont stored IsFontStored;
Published property SelectedTabFont: TFont read FSelectedTabFont write SetSelectedTabFont stored IsFontStored;
Published property HotTabFont: TFont read FHotTabFont write SetHotTabFont stored IsFontStored;
Published property SelectedBorderColor: TColor read FSelectedBorderColor write SetSelectedBorderColor default $000080FF;
Published property HotBorderColor: TColor read FHotBorderColor write SetHotBorderColor default $000080FF;
Published property ShowCloseBtn: Boolean read FShowCloseBtn write SetShowCloseBtn default false;
Published property CloseBtnSize: integer read FCloseBtnSize write SetCloseBtnSize default 16;
Published property CloseBtn: TPicture read FCloseBtn write SetCloseBtn;
Published property HotCloseBtn: TPicture read FHotCloseBtn write SetHotCloseBtn;
Published property OnTabGetProps: TTabGetPropsEvent read FOnTabGetProps write FOnTabGetProps;
Published property OnTabClose: TTabCloseEvent read FOnTabClose write FOnTabClose;
Published property OnTabGetPopupMenu: TTabGetPopupMenu read FOnTabGetPopupMenu write FOnTabGetPopupMenu;
Published property OnDrawTabBackground: TTabDrawTabEvent read FOnDrawTabBackground write FOnDrawTabBackground;
Published property OnDrawTabContent: TTabDrawTabEvent read FOnDrawTabContent write FOnDrawTabContent;
Published property OnDrawTabCloseBtn: TTabDrawTabEvent read FOnDrawTabCloseBtn write FOnDrawTabCloseBtn;
Published property OnDrawTabFinalize: TTabDrawTabEvent read FOnDrawTabFinalize write FOnDrawTabFinalize;

Description

Methods

Public function CloseBtnShown(TabIndex: integer): Boolean;

return whether close button is shown for defined tab

Public function CloseBtnRect(TabIndex: integer): TRect;

return rectangle of close button for defined tab

Public procedure CheckMouseClick(Button: TMouseButton; Shift: TShiftState; X, Y: integer);

check whether click of mouse is on close button

Public procedure CheckMouseMove(Shift: TShiftState; X, Y: integer);

check whether mouse is over close button

Properties

Public property HotTabIndex: integer read FHotTabIndex;

define index of hot tab

Public property HotBtnIndex: integer read FHotBtnIndex;

define index of hot button

Published property DrawThemed: Boolean read FDrawThemed write SetDrawThemed default true;

define whether themes is used for tabs

Published property WordWrap: Boolean read FWordWrap write SetWordWrap default false;

define whether long tab text is wrapped

Published property TabColor: TColor read FTabColor write SetTabColor default clNone;

define background color of tab

Published property SelectedTabColor: TColor read FSelectedTabColor write SetSelectedTabColor default clNone;

define background color of selected tab

Published property HotTabColor: TColor read FHotTabColor write SetHotTabColor default clNone;

define background color of hot tab

Published property ParentFont: Boolean read FParentFont write SetParentFont default true;

define whether parent font is used

Published property TabFont: TFont read FTabFont write SetTabFont stored IsFontStored;

define font of tab

Published property SelectedTabFont: TFont read FSelectedTabFont write SetSelectedTabFont stored IsFontStored;

define font of selected tab

Published property HotTabFont: TFont read FHotTabFont write SetHotTabFont stored IsFontStored;

define font of hot tab

Published property SelectedBorderColor: TColor read FSelectedBorderColor write SetSelectedBorderColor default $000080FF;

define border color of selected tab

Published property HotBorderColor: TColor read FHotBorderColor write SetHotBorderColor default $000080FF;

define border color of hot tab

Published property ShowCloseBtn: Boolean read FShowCloseBtn write SetShowCloseBtn default false;

define whether close button is shown

Published property CloseBtnSize: integer read FCloseBtnSize write SetCloseBtnSize default 16;

define size of close button in tab

Published property CloseBtn: TPicture read FCloseBtn write SetCloseBtn;

define close button picture

Published property HotCloseBtn: TPicture read FHotCloseBtn write SetHotCloseBtn;

define close button picture in hot state

Published property OnTabGetProps: TTabGetPropsEvent read FOnTabGetProps write FOnTabGetProps;

event for user defined state of tab

Published property OnTabClose: TTabCloseEvent read FOnTabClose write FOnTabClose;

event called after close button click

Published property OnTabGetPopupMenu: TTabGetPopupMenu read FOnTabGetPopupMenu write FOnTabGetPopupMenu;

event used for definition of tab popup

Published property OnDrawTabBackground: TTabDrawTabEvent read FOnDrawTabBackground write FOnDrawTabBackground;

event for user drawing of tab background

Published property OnDrawTabContent: TTabDrawTabEvent read FOnDrawTabContent write FOnDrawTabContent;

event for user drawing of tab content

Published property OnDrawTabCloseBtn: TTabDrawTabEvent read FOnDrawTabCloseBtn write FOnDrawTabCloseBtn;

event for user drawing of tab close button

Published property OnDrawTabFinalize: TTabDrawTabEvent read FOnDrawTabFinalize write FOnDrawTabFinalize;

event for any additional user drawing after tab is drawn


Generated by PasDoc 0.15.0.