LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

SetInteractiveModeCursor Method






A InteractiveMode enumeration member that specifies the interactive mode to set the mouse cursors for.
A System.Windows.Input.Cursor that defines the mouse cursor to use when the interactive mode is idle.
A System.Windows.Input.Cursor that defines the mouse cursor to use when the interactive mode is working.
Sets the mouse cursors associated with an interactive mode .NET support Silverlight support
Syntax
public virtual void SetInteractiveModeCursor( 
   InteractiveMode interactiveMode,
   Cursor idleCursor,
   Cursor workingCursor
)
'Declaration
 
Public Overridable Sub SetInteractiveModeCursor( _
   ByVal interactiveMode As InteractiveMode, _
   ByVal idleCursor As Cursor, _
   ByVal workingCursor As Cursor _
) 
'Usage
 
Dim instance As ImageViewer
Dim interactiveMode As InteractiveMode
Dim idleCursor As Cursor
Dim workingCursor As Cursor
 
instance.SetInteractiveModeCursor(interactiveMode, idleCursor, workingCursor)
public virtual void SetInteractiveModeCursor( 
   InteractiveMode interactiveMode,
   Cursor idleCursor,
   Cursor workingCursor
)
 function Leadtools.Windows.Controls.ImageViewer.SetInteractiveModeCursor( 
   interactiveMode ,
   idleCursor ,
   workingCursor 
)
public:
virtual void SetInteractiveModeCursor( 
   InteractiveMode interactiveMode,
   Cursor^ idleCursor,
   Cursor^ workingCursor
) 

Parameters

interactiveMode
A InteractiveMode enumeration member that specifies the interactive mode to set the mouse cursors for.
idleCursor
A System.Windows.Input.Cursor that defines the mouse cursor to use when the interactive mode is idle.
workingCursor
A System.Windows.Input.Cursor that defines the mouse cursor to use when the interactive mode is working.
Remarks

Use this method to set different mouse cursors for each interactive mode used in this RasterImageViewer. A value of null (Nothing in Visual Basic) for any of the cursors instructs the viewer to use the default cursor set in the System.Windows.Input.Cursor property either by the designer or through code.

By default, all the interactive modes have a cursor value of null (Nothing in Visual Basic) and changing the interactive mode will not change the mouse cursor unless you call this method first to set the desired cursors to use.

The idle cursor is used when the interactive mode is not working, in other words, when the user has set the interactive mode to a value but has not clicked the mouse button to initiate it yet. The working cursor is used when the interactive mode is working, in other words, when the user has clicked and start dragging the mouse button.

Note that when you call this method, the current interactive mode will be canceled if it is working.

Example

For C#/VB examples, refer to InteractivePan.

Requirements

Target Platforms: 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

Reference

ImageViewer Class
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.