Usage of the TabControl control in Visual Studio, studiotabcontrol
Today I met a TabControl control that I have never met, so I found some information about it.
TabControl
Attribute
DisplayRect: Only one rectangle in the customer zone of the control is set.
HotTrack: sets whether the word of the mouse changes when it passes through the tab. If it is True, the word turns blue.
Images: add an image for each tab
MultiLine: if the length of the total page label is greater than the width of the control, whether multiple lines are allowed to be displayed
MultiSelect: whether to allow multiple tab selection. This attribute is valid only when Style is tsFlatButtons or tsButtons.
OwnerDraw: whether to allow painting by yourself
RaggedRight: whether to allow the tab to expand to the control width
Scrolopposite: This attribute sets MultiLine to True. When the number of lines on the tab is greater than 1, when you click another page, the page under the tab will automatically flip the bottom of the control.
Style: Set the Style of the control.
TabHeight: Set the height of the tab.
TabIndex: The index number of the current tab. This number starts from 0.
TabPosition: select the position of the tab, which is top, bottom, left, and right.
Tabs: adds, deletes, and modifies each page.
TabWidth: Set the width of the tab.
Method
GetHitTestInfoAt: determines the position of the control in the specified value.
IndexOfTabAt: returns the tag of the specified position and its index number.
RowCount: number of rows of the returned Tab
ScrollTabs: When MultiLine is set to False, this method moves the parameter tabs backward.
TabRect: Set the rectangle of the returned Tab
Event
OnChange: triggered when the tab changes
OnChanging: triggered when the tab is being changed
OnDrawTab: triggered when a tab is painted.
OnGetImageIndex: When the tab page is displayed