ImageXView inherits events from System.Windows.Forms.UserControl and System.Windows.Forms.Control to monitor end-user actions and display changes, including mouse and keyboard actions. ImagXpress® also provides a few specialized events to provide additional information to the application:
-
When the
AutoResize property is modified, the
AutoResizeChanged event provides additional information on the new and old values of the AutoResize property.
-
When the
ZoomFactor property is modified, the
ZoomFactorChanged event provides additional information on the new and old values of the ZoomFactor property.
-
When the control is resized, the
Resized event provides the new size of the control.
-
When an image paints, the
PaintImage event provides information on the graphics, logical rectangle, user data, view rectangle, and zoom factor.
-
When the end-user scrolls, the
ScrollEvent event provides information on the new location within the scroll range, the type of scroll event that occurred, and which scrollbar the event pertains to.
ImagXpress Toolbar Events
In addition to standard Control events, ImageXView offers specialized events to notify the application about end-user interaction with the ImagXpress toolbar.
- When a tool is selected the ToolbarEvent event raises to tell the application which tool was selected.
- When a tool is being used, a ToolEvent event raises to notify the application when the tool is clicked, when the tool is in action and when the tool is no longer in use.
- When the toolbar window opens, the ToolbarOpenEvent raises.
- When the toolbar window closes, the ToolbarCloseEvent raises.
-
When a menu item is selected, a ToolbarContextMenuSelectEvent raises to notify the application of the selection made. The menu ID is provided to the event handler when this event is raised.
See Also