Class s7sdk.event.ZoomTargetEvent
Dispatched whenever a zoom target has been selected.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
s7sdk.event.ZoomTargetEvent(type, idx, frame, image, zoomRgn)
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
s7sdk.event.ZoomTargetEvent.ZOOM_TARGET
Defines a value of the
type property of a zoomTarget event object. |
Class Detail
s7sdk.event.ZoomTargetEvent(type, idx, frame, image, zoomRgn)
This example demonstrates handling a ZoomTargetsEvent. It changes the displayed rectangle in the ZoomView component. The listener function istargetSelected(event), the ZoomView component ismyZoomViewand the ZoomTarget component ismyZoomTarget.function targetSelected(event) { myZoomView.zoomRgn(event.s7event.zoomRgn); myZoomTargets.setFrame(event.s7event.image); } myZoomTargets.addEventListener(s7sdk.event.ZoomTargetEvent.ZOOM_TARGET, targetSelected, false);
- Parameters:
- type
- Event type.
- idx
- Zoom target index.
- frame
- Frame associated with the target.
- image
- ItemDesc for image associated with the target.
- zoomRgn
- Zoom region in the top resolution image coordinates.
Field Detail
<static>
s7sdk.event.ZoomTargetEvent.ZOOM_TARGET
Defines a value of the
type property of a zoomTarget event object.