Mouse cursor to use for the working state of this ImageViewerInteractiveMode.
Object.defineProperty(ImageViewerInteractiveMode.prototype, 'workingCursor',
get: function(),
set: function(value)
)
workingCursor: string;
The mouse cursor to use for the working state of this ImageViewerInteractiveMode. The default value is null.
IdleCursor and WorkingCursor are only used when this ImageViewerInteractiveMode is attached to the left mouse button and is enabled. It will not be used if this mode is attached to any other button or to touch. Mouse cursors are only supported by desktop browsers.
The values are standard HTML cursor strings. You can use a value like "crosshair" or "move". They will be set into the CSS style.cursor property of the HTML element. A value of null, means "do not change the cursor".
The cursors are set into the ImageViewer main div (ImageViewer.MainDiv) and foreground canvas (ImageViewer.ForeCanvas) elements when this interactive mode is assigned to the left mouse button. Also, the cursors will be set in any elements added by the user to the InteractiveService.UserControls collection.
IdleCursor will be set when the interactive mode is started (after Start is called) and remove when the mode is stopped (when Stop is called).
WorkingCursor will be set when the interactive mode is working (when OnWorkStarted is called) and removed (or set back to idle) when the interactive mode has stopped working (when OnWorkCompleted) is called).
These cursors can be used to provide visual clue into the current interactive mode operations. For instance, when using the ImageViewerPanZoomInteractiveMode interactive mode, you can set the IdleCursor to "crosshair" and the WorkingCursor to "move".
Run the example. The cursor changes to a "crosshair" when it is on the surface of the viewer. When you click and drag, the cursor changes to "move".
Start with the ImageViewer example, remove all the code inside the example function (search for the "// TODO: add example code here" comment) and insert the following code:
this._imageViewer.interactiveModes.beginUpdate();
var panZoom = new lt.Controls.ImageViewerPanZoomInteractiveMode();
panZoom.isEnabled = false;
this._imageViewer.interactiveModes.add(panZoom);
panZoom.workingCursor = "Hand";
this._imageViewer.interactiveModes.endUpdate();
Products |
Support |
Feedback: workingCursor Property (ImageViewerInteractiveMode) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.