TabManagerMargin Object
Description
Manages the left, top, bottom, and right margins of the rectangle of the button, client, control, and header.
For a list of all members defined in this module, see TabManagerMargin Members.
Remarks
The TabControl allows you to manipulate the margins of the components that make up the TabControl (i.e., Tabs). You can change the button, header, client, and control margins of the TabControl tabs.
- The button margin is the area in the tab button surrounding the tab caption.
- The header margin is the area surrounding the tab buttons.
- The client margin is the area surrounding the client (area inside the tabs).
- The control margin is the area surrounding the entire TabControl.
Example
Tab Margins Sample (Visual Basic)
' This sample code illustrates how to change the Button margin
' (the area around the tab caption) of the tabs.
TabControl.PaintManager.ButtonMargin.SetRect 5, 5, 5, 5
' Or you can change each dimension individually
TabControl.PaintManager.ButtonMargin.Bottom = 5
TabControl.PaintManager.ButtonMargin.Top = 5
TabControl.PaintManager.ButtonMargin.Left = 5
TabControl.PaintManager.ButtonMargin.Right = 5
' This sample code illustrates how to change the Header margin
' (the area around the tab buttons).
TabControl.PaintManager.HeaderMargin.SetRect 15, 15, 15, 0
' This sample code illustrates how to change the Client margin
' (the area around the client attached to/inside the TabControl).
TabControl.PaintManager.ClientMargin.SetRect 5, 5, 5, 5
' This sample code illustrates how to change the Control margin
' (the area around the entire TabControl).
TabControl.PaintManager.ControlMargin.SetRect 10, 10, 10, 10
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.