Class TrPageControlEx

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TrPageControlEx = class(TPageControl)

Description

enhanced PageControl which provides colored tabs, hottrack fonts, color and border, close button in tabs, function for reading active tab caption and changing of active tab; OwnerDraw must be set to TRUE to use this functions

Hierarchy

  • TPageControl
  • TrPageControlEx

Overview

Methods

Public procedure AddSpaceForCloseBtn(Center: boolean = false);
Public function SetActiveTabEx(Index: Integer): boolean;
Public function SetActivePageEx(TS: TTabSheet): boolean;
Public function ActiveTabCaption: string;
Public function ActiveTabObject: TObject;
Public function VisiblePageCount: Integer;

Properties

Public property ScaleRatio: double read FScaleRatio;
Published property TabPropsEx: TTabPropsEx read FTabPropsEx write FTabPropsEx;
Published property TabRightButton: TrButton read FTabRightButton write FTabRightButton;
Published property TabRightButtonVisible: boolean read FTabRightButtonVisible write SetTabRightButtonVisible default false;
Published property TabRightLabel: TrHTMLLabel read FTabRightLabel write FTabRightLabel;
Published property TabRightLabelVisible: boolean read FTabRightLabelVisible write SetTabRightLabelVisible default false;

Description

Methods

Public procedure AddSpaceForCloseBtn(Center: boolean = false);

add spaces to all tabs to make place for close buttons

Public function SetActiveTabEx(Index: Integer): boolean;

select defined tab including calling CanChange and OnChange event

Public function SetActivePageEx(TS: TTabSheet): boolean;

select defined page including calling CanChange and OnChange event

Public function ActiveTabCaption: string;

return caption of active tab

Public function ActiveTabObject: TObject;

return object of active tab

Public function VisiblePageCount: Integer;

return number of visible tabs

Properties

Public property ScaleRatio: double read FScaleRatio;

define actual scale ratio relative to original designed size

Published property TabPropsEx: TTabPropsEx read FTabPropsEx write FTabPropsEx;

subcomponent define all new tab properties

Published property TabRightButton: TrButton read FTabRightButton write FTabRightButton;

subcomponent define additional button on right border

Published property TabRightButtonVisible: boolean read FTabRightButtonVisible write SetTabRightButtonVisible default false;

define visibility of additional button on right border

Published property TabRightLabel: TrHTMLLabel read FTabRightLabel write FTabRightLabel;

subcomponent define additional label on right border

Published property TabRightLabelVisible: boolean read FTabRightLabelVisible write SetTabRightLabelVisible default false;

define visibility of additional label on right border


Generated by PasDoc 0.13.0 on 2017-06-17 14:57:07