Leadtools.Controls Namespace > ImageViewerInteractiveMode Object : HitTestState Property |
get_hitTestState();
set_hitTestState(value);
Object.defineProperty('hitTestState');
Type | Description |
---|---|
boolean | true if this mode hit-test state is on, otherwise; false. |
HitTestState can be used to create an interactive mode that works over an area of interest in the viewer.
Run the example. The cursor changes to a crosshair when it is over the red rectangles.
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:
var interactiveModeCursor = ""; if (this._imageViewer.hitTestStateInteractiveMode != null) { interactiveModeCursor = this._imageViewer.hitTestStateInteractiveMode.hitTestStateCursor; } if (interactiveModeCursor != null) this._imageViewer.workingInteractiveMode.workingCursor = interactiveModeCursor;