Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IStylusAsyncPlugin.StylusButtonDown Method

Notifies the implementing plug-in that the user is pressing a stylus button.

Namespace:  Microsoft.StylusInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

void StylusButtonDown(
	RealTimeStylus sender,
	StylusButtonDownData data
)

Parameters

sender
Type: Microsoft.StylusInput.RealTimeStylus

The RealTimeStylus object that sent the notification.

data
Type: Microsoft.StylusInput.PluginData.StylusButtonDownData

Information about the button that is pressed.

This C# example implements the StylusButtonDown method and alerts the developer when a button is pressed on the stylus.

public void StylusButtonDown(RealTimeStylus sender, StylusButtonDownData data)
{
    Debug.Assert(false, "StylusButtonDown", "The " + 
      data.ButtonIndex.ToString() + " button was pressed.");
}

This Microsoft Visual Basic .NET example implements the StylusButtonDown method and alerts the developer when a button is pressed on the stylus.

Public Sub StylusButtonDown(ByVal sender As RealTimeStylus, ByVal data As StylusButtonDownData) _
     Implements IStylusAsyncPlugin.StylusButtonDown
        Debug.Assert(False, "StylusButtonDown", "The " & _
          data.ButtonIndex.ToString() & " button was pressed.")
    End Sub 'StylusButtonDown

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft