Vcl.FormTabsBar.TFormTabsBar

Delphi
TFormTabsBar = class(TCustomFormTabsBar)
C++
class PASCALIMPLEMENTATION TFormTabsBar : public TCustomFormTabsBar
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.FormTabsBar.pas Vcl.FormTabsBar.hpp |
Vcl.FormTabsBar | Vcl.FormTabsBar |
Description
Control used to host multiple child forms in a tab-like user interface.
The new TFormTabsBar control inherited from IFormVisualManager works with the TForm class, the TScreen class, and can reflect all forms from Screen.Forms.
The TFormTabsBar can work with MDI Forms and SDI forms with an assigned Parent, with and without border.
The controls can be set for a Main/Parent form so that it is used by child forms automatically.
TFormTabsBar has AcceptMode
property and OnAcceptForm
event to adjust accepting forms to the control.
Additional details:
- Each TForm can be added as a Tab to TFormTabsBar when its Handle is created. When the Handle is destroyed, the Tab will be deleted.
- The control shows visible and invisible forms. When you click on the tab, the form will be shown and activated.
- TFormTabsBar can hide minimized forms (both MDI and SDI) and it can restore and activate them with a click on the tab. This feature avoids incorrect system behavior and sizes of the minimized forms.
- Invisible/Minimized forms can be marked in the control to indicate that the form is not visible at this time.
- You can call the system window menu from the right-click on the tab or from the icon area in the tab.
- Tabs can be draggable and you can change the position of any tab in the control.
- The width of the tab can be adjusted with a fixed value or with an automatic calculation of the width, depending on the form caption (in this case, you can define a Min and Max tab width). In addition, there is a special property to enable hints for any long, truncated captions.
- Tabs can have a close button that calls the TForm.Close method.
- The control can show a special button to call the menu with all tabs to quickly select one of the forms.
- The control can also have focus and keyboard support, but only if it gets focus with the Tab key (when TabStop is set to
True
). In this case, you can select, scroll tabs, and activate tabs with enter or space keys. - The control has High-DPI PerMonitorV2 support and it works correctly in all DPIs.
- VCL Styles are very well supported. Some elements use style colors to draw specific elements (like the close button or the separator).