Defines the part of the control at a given location.
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public enum TabHitAreaEnum;
Public Enum TabHitAreaEnum
| Name | Description |
|---|---|
| Nowhere | The location is outside the control. |
| Tab | The location is on a tab. |
| TabCloseButton | The location is on a tab's close button. |
| ScrollBackwardButton | The location is on the button that scrolls toward the first tab. |
| ScrollForwardButton | The location is on the button that scrolls toward the last tab. |
| CloseButton | The location is on the control's Close button. |
| MinimizeButton | The location is on the control's Minimize button. |
| RestoreButton | The location is on the control's Restore button. |
| Strip | The location is on the tab row, outside of any tab or button. |
| Page | The location is on the tab page area. |
Defines the part of the control at a given location.
The TabHitTestInfo.Area property uses this enumeration.
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) {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