Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

HitTestState Property

Show in webframe
Example 
Indicates this mode hit-test state.
Syntax
get_hitTestState();
set_hitTestState(value);
Object.defineProperty('hitTestState');

Property Value

TypeDescription
booleantrue if this mode hit-test state is on, otherwise; false.
Remarks

HitTestState can be used to create an interactive mode that works over an area of interest in the viewer.

Example

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;
See Also

Reference

ImageViewerInteractiveMode Object
ImageViewerInteractiveMode Members

Error processing SSI file