Version

ActivityScrollButtonToolTipDisplaying Event

Fired before a tooltip is displayed for an ActivityScrollButtonUIElement.
Syntax
'Declaration
 
Public Event ActivityScrollButtonToolTipDisplaying As ActivityScrollButtonToolTipDisplayingHandler
public event ActivityScrollButtonToolTipDisplayingHandler ActivityScrollButtonToolTipDisplaying
Event Data

The event handler receives an argument of type ActivityScrollButtonToolTipDisplayingEventArgs containing data related to this event. The following ActivityScrollButtonToolTipDisplayingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Direction Returns the direction in which the button scrolls, i.e., up or down.
Owner Returns the Owner associated with the button, or null if the button is not associated with an Owner.
ToolTipInfo (Inherited from Infragistics.Win.UltraWinSchedule.ToolTipEventArgs)Returns or sets the ToolTipInfo structure that contains information about the tooltip about to be displayed.
UIElement Returns the ActivityScrollButtonUIElement instance for which the tooltip is about to be displayed.
Example
The following code sample demonstrates how to use the tooltip-related events to prevent all tooltips from appearing:

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports System.Collections.Generic
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    Public Sub DisableAllToolTips(ByVal control As UltraTimelineView)

        '  Register an event handler for each of the tooltip events
        '  since all the tooltip event args classes derive from
        '  ToolTipEventArgs, they can share the handler.
        AddHandler control.ColumnHeaderToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.OwnerHeaderToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.ActivityScrollButtonToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.AppointmentToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.HolidayToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.DateTimeIntervalLabelToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
    End Sub

    Private Sub OnToolTipDisplaying(ByVal sender As Object, ByVal e As ToolTipEventArgs)
        e.Cancel = True
    End Sub
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

    public void DisableAllToolTips( UltraTimelineView control )
    {
        //  Register an event handler for each of the tooltip events;
        //  since all the tooltip event args classes derive from
        //  ToolTipEventArgs, they can share the handler.
        control.ColumnHeaderToolTipDisplaying += new ColumnHeaderToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.OwnerHeaderToolTipDisplaying += new OwnerHeaderToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.ActivityScrollButtonToolTipDisplaying += new ActivityScrollButtonToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.AppointmentToolTipDisplaying += new AppointmentToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.HolidayToolTipDisplaying += new HolidayToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.DateTimeIntervalLabelToolTipDisplaying += new DateTimeIntervalLabelToolTipDisplayingHandler(this.OnToolTipDisplaying);
    }

    private void OnToolTipDisplaying(object sender, ToolTipEventArgs e)
    {
        e.Cancel = true;
    }
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also