Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

ImageViewerActiveItemInteractiveMode Object

Show in webframe
Example 
Members 
Allows you to change the current active item in the viewer using the keyboard or mouse/touch.
Object Model
Syntax
function Leadtools.Controls.ImageViewerActiveItemInteractiveMode() 
Remarks

ImageViewerActiveItemInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:

ImageViewerActiveItemInteractiveMode changes the current ActiveItem as follows:

For more information, refer to Image Viewer Interactive Modes.

Example
example: function ImageViewerActiveItemInteractiveMode$Example() {
   this._imageViewer.interactiveModes.beginUpdate();
   var myImageViewerInteractivMode = new MyImageViewerInteractivMode();
   myImageViewerInteractivMode.isHoverEnabled = true,
   myImageViewerInteractivMode.isKeyboardEnabled = true
   this._imageViewer.interactiveModes.add(myImageViewerInteractivMode);
   this._imageViewer.interactiveModes.endUpdate();
}

var _this = null;
MyImageViewerInteractivMode = function MyImageViewerInteractivMode() {
   MyImageViewerInteractivMode.initializeBase(this);
   _this = this;
}

MyImageViewerInteractivMode.prototype = {
   name: function MyImageViewerInteractivMode$name() {
      return "MyImageViewerInteractivMode";
   },

   id: function MyImageViewerInteractivMode$id() {
      return lt.Controls.ImageViewerInteractiveMode.userModeId;
   },

   start: function MyImageViewerInteractivMode$start(imageViewer) {
      MyImageViewerInteractivMode.callBaseMethod(this, "start", [imageViewer]);

      var service = MyImageViewerInteractivMode.callBaseMethod(this, "get_interactiveService");

      service.tap.add(this.service_Tap);
   },

   stop: function MyImageViewerInteractivMode$stop(imageViewer) {
      if (this.isStarted) {
         var service = MyImageViewerInteractivMode.callBaseMethod(this, "get_interactiveService");

         service.tap.remove(this.service_Tap);

         MyImageViewerInteractivMode.callBaseMethod(this, "stop", [imageViewer]);
      }
   },

   service_Tap: function MyImageViewerInteractivMode$_service_DragStarted(sender, e) {
      if (_this.canStartWork(e)) {
         e.IsHandled = true;
         _this.onWorkStarted(lt.LeadEventArgs.empty);

         var imageViewer = _this.imageViewer;

         imageViewer.beginRender();
         // ...
         // ...
         // ...
         // set your render code here
         // ...
         // ...
         // ...
         imageViewer.endRender();

         _this.onWorkCompleted(lt.LeadEventArgs.empty);
      }
   }
}

// MyImageViewerInteractivMode class, derives from lt.Controls.ImageViewerInteractiveMode
MyImageViewerInteractivMode.registerClass("MyImageViewerInteractivMode", lt.Controls.ImageViewerActiveItemInteractiveMode);
See Also

Reference

ImageViewerActiveItemInteractiveMode Members
Leadtools.Controls Namespace

Error processing SSI file