[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TTabSheet

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

An individual page used in TPageControl.

Declaration

Source position: comctrls.pp line 517

type TTabSheet = class(TCustomPage)

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

public

  constructor Create(); override;

  

calls inherited Create and zeroes ImageIndex.

  destructor Destroy; override;

  

Destroy - destructor for TTabSheet: detaches from the Host Dock Site and calls inherited Destroy.

  property PageControl: TPageControl; [rw]

  

The PageControl of which this TabSheet is a member.

  property TabIndex: Integer; [r]

  

TabIndex - the Index value or sequence number of this TabSheet.

published

  property AutoSize: Boolean;

  

Allows automatic adjustment of the size for the control, according to its content.

  property BorderWidth: TBorderWidth;

  

Width of the Border around the control; default is zero.

  property BiDiMode: TBiDiMode;

  

Indicates whether text controls use in bi-directional reading.

  property Caption: TCaption;

  

The text displayed for the control.

  property ChildSizing: TControlChildSizing;

  

Parameters for child control arrangement and spacing.

  property ClientHeight: Integer;

  

The height for the client area on the control.

  property ClientWidth: Integer;

  

The width of the client area for the control.

  property Enabled: Boolean;

  

Determines whether the control responds to mouse or keyboard input.

  property Font: TFont;

  

The font to be used for text display in this control.

  property Height: Integer; [s]

  

The vertical size for the control.

  property ImageIndex: TImageIndex;

  

Ordinal position for the image associated with the page.

  property Left: Integer; [s]

  

The client coordinate with the left edge for the control.

  property OnContextPopup: TContextPopupEvent;

  

Invoked when a context-sensitive pop-up menu is requested.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnEndDrag: TEndDragEvent;

  

Notification handler for the end of a drag operation.

  property OnEnter: TNotifyEvent;

  

Handler for control receiving the focus.

  property OnExit: TNotifyEvent;

  

Handler for control losing the focus; This is a good place for checking the finished user input.

  property OnHide: TNotifyEvent;

  

Event handler signalled when the page is hidden.

  property OnMouseDown: TMouseEvent;

  

Event handler signalled when a mouse down event is handled for the control.

  property OnMouseEnter: TNotifyEvent;

  

Event handler signalled when the mouse pointer has entered the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler signalled when the mouse pointer has left the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler signalled when a mouse up event is handled for the control.

  property OnMouseWheel: TMouseWheelEvent;

  

Event handler for mouse wheel turned.

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  

Event handler for downward movement of mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Event handler for upward movement of the mouse wheel.

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnShow: TNotifyEvent;

  

Event handler signalled when the page becomes visible.

  property OnStartDrag: TStartDragEvent;

  

Event handler for the start of a dragging operation.

  property PageIndex: Integer; [s]

  

Ordinal position for the page in the parent control.

  property ParentBiDiMode: Boolean;

  

Indicates whether the BiDiMode settings in the Parent control are used.

  property ParentFont: Boolean;

  

If True, the Font of the control will be the same as the one from the Parent. Default is True.

  property ParentShowHint: Boolean;

  

If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True.

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control.

  property ShowHint: Boolean;

  

Enables Hint display for the control.

  property TabVisible: Boolean;

  

Indicates if the tab is visible in the Parent control.

  property Top: Integer; [s]

  

The client coordinate for the top edge of the control.

  property Width: Integer; [s]

  

The horizontal size for the control.

end;

Inheritance

TTabSheet

  

An individual page used in TPageControl.

|

TCustomPage

  

The base class for TTabSheet.

|

TWinControl

  

Implements a windowed control which can contain other child controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent

?

TObject

Description

TTabSheet - individual page of a TPageControl. It is a more elaborate version of TPage, and adds the following features:

See also

Using Multi-Page Controls

  

MultiPageControls - controls that offer a selection of alternative pages for display.

How To Use Standard Controls

  

How to use StdCtrls, ComCtrls or ExtCtrls.