Share via


InkOverlay.SetAllTabletsMode Method (Boolean)

Sets the InkOverlay object to collect ink from any tablet attached to the Tablet PC, and optionally the mouse.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Sub SetAllTabletsMode ( _
    useMouseForInput As Boolean _
)
'Usage
Dim instance As InkOverlay
Dim useMouseForInput As Boolean

instance.SetAllTabletsMode(useMouseForInput)
public void SetAllTabletsMode (
    bool useMouseForInput
)
public:
void SetAllTabletsMode (
    bool useMouseForInput
)
public void SetAllTabletsMode (
    boolean useMouseForInput
)
public function SetAllTabletsMode (
    useMouseForInput : boolean
)
Not applicable.

Parameters

  • useMouseForInput
    The Boolean value that indicates whether to use the mouse as an input device.

    true if in addition to the pen, the mouse is used for input.

    false if the mouse cannot be used for input.

Remarks

This is the default mode for an InkOverlay object. To allow the InkOverlay object to collect ink from only one tablet, call the SetSingleTabletIntegratedMode method.

Note

The InkOverlay object must be disabled before calling this method. To disable the InkOverlay object, set the Enabled property to false. After calling the SetAllTabletsMode method, enable the InkOverlay object by setting the Enabled property to true.

When an InkOverlay object switches from collecting ink by using a single tablet to collecting ink by using all tablets, the Cursors property is set to the empty collection.

Note

If the SetAllTabletsMode method is called with the useMouseForInput parameter set to true (or no parameters), then the mouse is used as an input device. If the SetAllTabletsMode method is then called with the useMouseForInput parameter set to false, the mouse is not removed from the Cursors property.

Example

This C# example calls SetAllTabletsMode on a new InkOverlay object, theInkCollector, with the useMouseForInput parameter set to false if more than one tablet is available.

using Microsoft.Ink;
// . . .
Tablets theTablets = new Tablets();
InkOverlay theInkOverlay = new InkOverlay();
if (theTablets.Count > 1)
    theInkOverlay.SetAllTabletsMode(false);
else
    theInkOverlay.SetAllTabletsMode();

This Microsoft Visual Basic .NET example calls SetAllTabletsMode on a new InkOverlay object, theInkCollector, with the useMouseForInput parameter set to false if more than one tablet is available.

Imports Microsoft.Ink
' . . .
Dim theTablets As New Tablets()
Dim theInkOverlay As New InkOverlay()
If theTablets.Count > 1 Then
    theInkOverlay.SetAllTabletsMode(False)
Else
    theInkOverlay.SetAllTabletsMode()
End If

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkOverlay Class
InkOverlay Members
Microsoft.Ink Namespace
Cursors
InkOverlay.Enabled
InkOverlay.SetSingleTabletIntegratedMode