HeaderPane
Main
Hide
Share Link
Print

TabHitAreaEnum Enumeration

Defines the part of the control at a given location.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public enum TabHitAreaEnum;
Public Enum TabHitAreaEnum

Values

NameDescription
NowhereThe location is outside the control.
TabThe location is on a tab.
TabCloseButtonThe location is on a tab's close button.
ScrollBackwardButtonThe location is on the button that scrolls toward the first tab.
ScrollForwardButtonThe location is on the button that scrolls toward the last tab.
CloseButtonThe location is on the control's Close button.
MinimizeButtonThe location is on the control's Minimize button.
RestoreButtonThe location is on the control's Restore button.
StripThe location is on the tab row, outside of any tab or button.
PageThe location is on the tab page area.

Comments

Defines the part of the control at a given location.

The TabHitTestInfo.Area property uses this enumeration.

Examples

C# View entire sample code

        private void sftTabs1_TabRemoved(object sender, TabEventArgs e) {
            DumpValues("TabRemoved", e);
        }

        private void sftTabs1_ShowToolTip(object sender, TabToolTipEventArgs e) {
            DumpValues("ShowToolTip", e);

            if (e.Area == TabHitAreaEnum.Tab && e.Tab != null && e.Tab.Text == "&Tooltips") {
                e.ToolTipIcon = ToolTipIcon.Info;
                e.ToolTipTitle = "Balloon Tooltip";
                e.ToolTipStyle = Softelvdm.SftTabsNET.Controls.ToolTipAppearanceEnum.Balloon;
                e.ToolTipText = "A simple explanatory tooltip\nfor just this tab";
            }
        }

        private void sftTabs1_Enter(object sender, EventArgs e) {

VB.NET View entire sample code

Private Sub SftTabs1_TabRemoved(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabRemoved
    DumpValues("TabRemoved", e)
End Sub

Private Sub SftTabs1_ShowToolTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabToolTipEventArgs) Handles SftTabs1.ShowToolTip
    DumpValues("ShowToolTip", e)

    If e.Area = TabHitAreaEnum.Tab AndAlso e.Tab IsNot Nothing AndAlso e.Tab.Text = "&Tooltips" Then
        e.ToolTipIcon = ToolTipIcon.Info
        e.ToolTipTitle = "Balloon Tooltip"
        e.ToolTipStyle = Softelvdm.SftTabsNET.Controls.ToolTipAppearanceEnum.Balloon
        e.ToolTipText = "A simple explanatory tooltip" + vbLf + "for just this tab"
    End If
End Sub

Private Sub SftTabs1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.Enter

See Also Classes | SftTabs/NET 3.0