[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TTabControl - a series of Tabs along the edge of a display area; selection of a Tab governs the contents of the DisplayRect.
Source position: comctrls.pp line 793
type TTabControl = class(TCustomTabControl) |
||
protected |
||
class procedure WSRegisterClass; override; |
|
Registers the class type with the widgetset. |
procedure SetOptions(); override; |
|
Sets the value for the Options property. |
procedure AddRemovePageHandle(); override; |
|
Not implemented in TTabControl. Page handles are not used. |
function CanChange; override; |
|
Indicates whether the tab control can update its Tabs property. |
function CanShowTab(); virtual; |
|
Indicates if the control can show the tab at the specified position. |
procedure Change; override; |
|
Changes the active tab for the control. |
procedure CreateWnd; override; |
|
Creates the Handle for the widgetset object and displays the selected tab and page. |
procedure DestroyHandle; override; |
|
Destroys the handle for the control and all child controls. |
procedure Notification(); override; |
|
Handles the notification when a component is added to or removed from the class instance. |
procedure SetDragMode(); override; |
|
Sets the value for the DragMode property. |
procedure SetTabIndex(); virtual; |
|
Sets the value for the TabIndex property. |
procedure UpdateTabImages; |
|
Calls the corresponding method in Tabs. |
procedure ImageListChange(); |
|
Calls the corresponding method in Tabs. |
procedure DoSetBounds(); override; |
|
Updates the bounds for the control to the specified values. |
class function GetControlClassDefaultSize; override; |
|
Gets the default size for new instances of the class. |
procedure PaintWindow(); override; |
|
Updates the canvas handle and paints the control. |
procedure Paint; virtual; |
|
Paints the control to its Canvas using theme services. |
procedure AdjustDisplayRectWithBorder(); virtual; |
|
Adjust the specified display rectangle to use the size in Tabs. |
procedure AdjustClientRect(); override; |
|
Calls the AdjustDisplayRect method. |
function CreateTabNoteBookStrings; virtual; |
|
Creates the TTabControlNoteBookStrings instance used in Tabs. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
destructor Destroy; override; |
|
Destructor for the class instance. |
function IndexOfTabAt(); |
|
Gets the position for the tab at the specified mouse coordinates. |
function GetHitTestInfoAt(); |
|
Gets a set of hit test results for the specified mouse coordinates. |
function GetImageIndex(); override; |
|
Signals the OnGetImageIndex event handler to get an image for the specified tab index. |
function IndexOfTabWithCaption(); |
|
Gets the ordinal position for the tab with the specified Caption. |
function TabRect(); |
|
Gets the rectangle where the tab at the specified position is drawn. |
function RowCount; |
|
Gets the number of rows needed to render the Tabs on the control. |
procedure ScrollTabs(); |
|
Scrolls the tabs on the control horizontally by the value specified in Delta. |
procedure BeginUpdate; |
|
Starts an update process for the control. |
procedure EndUpdate; |
|
Finishes an update process for the control. |
function IsUpdating; |
|
Indicates if there are unfinished updates for one of the Tabs on the control. |
property DisplayRect: TRect; [r] |
|
Display area for the tab control. |
published |
||
property HotTrack: Boolean; [rw] |
|
HotTrack - the property whereby the item under the mouse pointer becomes emphasized. |
property Images: TCustomImageList; |
|
Images - the list of images associated with the pages of this notebook. |
property ImagesWidth: Integer; |
|
Width for the Images used in the control. |
property MultiLine: Boolean; [rw] |
|
MultiLine - whether the Tab's caption is allowed to have multiple lines. |
property MultiSelect: Boolean; [rw] |
|
MultiSelect - whether multiple Tabs are allowed to be selected at the same time (e.g. by pressing Shift or Ctrl while selecting). |
property OnChange: TNotifyEvent; [rw] |
|
Event handler signalled when the active page (or tab) for the control is changed. |
property OnChanging: TTabChangingEvent; |
|
OnChanging - event handler for changing a tab. |
property OnGetImageIndex: TTabGetImageEvent; |
|
OnGetImageIndex - event handler for getting an image index. |
property OwnerDraw: Boolean; [rw] |
|
OwnerDraw - is the calling routine (Owner) allowed to specify the drawing method? |
property RaggedRight: Boolean; [rw] |
|
RaggedRight - un-justified or un-aligned text. |
property ScrollOpposite: Boolean; [rw] |
|
ScrollOpposite - is scrolling to happen in the opposite direction to usual? |
|
Style - Tabs, buttons or flat buttons? |
|
property TabPosition: TTabPosition; |
|
TabPosition - top, bottom, left or right. |
property TabHeight: SmallInt; [rw] |
|
TabHeight - height of the tabs. |
property TabIndex: Integer; [rw] |
|
Contains the ordinal position for the active Tab in the control. |
property Tabs: TStrings; [rw] |
|
Contains the list of pages accessible in the tabbed control. |
property TabStop: Boolean; [rw] |
|
Enables or disables navigation using the Tab key. |
property TabWidth: SmallInt; [rw] |
|
Width of the tabs displayed on the control. |
|
Specifies the placement of the control on its Parent control. |
|
|
The set of anchor definitions for this control. |
|
property BiDiMode: TBiDiMode; |
|
Indicates whether text controls use in bi-directional reading. |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property Constraints: TSizeConstraints; |
|
Contains the minimum and maximum Width and Height for the control. |
property DockSite: Boolean; |
|
Allows controls to be drag-dock-ed into this control. |
property DragCursor: TCursor; |
|
The cursor shape shown while the control is dragged. |
|
The operation when the control is dragged - Drag or Dock. |
|
|
Allows the user to drag the control. |
|
property Enabled: Boolean; |
|
Determines whether the control responds to mouse or keyboard input. |
|
The font to be used for text display in this control. |
|
property OnChangeBounds: TNotifyEvent; |
|
Event handler signalled when the Bounds for the control have been changed. |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnDockDrop: TDockDropEvent; |
|
Notification handler for the drop of a control to be docked. |
property OnDockOver: TDockOverEvent; |
|
Event handler for moves of a control over this docksite; determines acceptance or rejection of an possible drop. |
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 OnEndDock: TEndDragEvent; |
|
Notification handler for the end of a docking operation. |
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 OnGetSiteInfo: TGetSiteInfoEvent; |
|
Provides information about the DockSite for the control. |
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 OnStartDock: TStartDockEvent; |
|
Event handler for the start of a docking operation. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnUnDock: TUnDockEvent; |
|
Event handler signalled before a control is undocked from its DockSite. |
property Options: TCTabControlOptions; |
|
The set of Options for the Notebook: Show close buttons on the tabs, multi-line tabs. |
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. |
|
Indicates the navigation order for the control when the user presses the Tab or Shift+Tab key. |
|
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
end; |
|
TTabControl - a series of Tabs along the edge of a display area; selection of a Tab governs the contents of the DisplayRect. |
|
| | ||
|
Implements the base class for tabbed controls in the LCL. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TTabControl - a series of Tabs along the edge of a display area; selection of a Tab governs the contents of the DisplayRect
Use TTabControl by selecting its icon from the Common Controls tab of the IDE Component Palette and placing it at the desired location on the Form. Use the Form Designer and Object Inspector to adjust its shape, size, alignment, anchoring and other properties. Tabs can be added or removed from the component by selecting it, then right-clicking with the mouse to get a pop-up menu whose first item is 'Add Tab'. Once created, the Tabs can be edited by selecting the Tabs entry in the Object Inspector and selecting the ellipsis (...) which will cause a pop-up String editor to appear. The tabs can be given new captions, moved up and down the list or removed altogether as required.
Each Tab has an Index (starting from 0) and this index can be used to specify an entry from Images for display in the DisplayRect.
|
MultiPageControls - controls that offer a selection of alternative pages for display. |