This documentation is archived and is not being maintained.

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
)
void StylusButtonDown (
	RealTimeStylus sender, 
	StylusButtonDownData data
)
function StylusButtonDown (
	sender : RealTimeStylus, 
	data : StylusButtonDownData
)
Not applicable.

Parameters

sender

The RealTimeStylus object that sent the notification.

data

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: