Enable Scrollbars
To specify scroll bar behavior within the control:
- Set the ScrollBars property, to indicate whether vertical and/or horizontal scrollbars is enabled.
- Ensure that Scroll event is enabled, by calling EventSetEnabled.
|
When scrollbars are enabled, the application end-user is able to use scrollbars to navigate the view window, or scroll behavior can be programmatically controlled using the ScrollX and ScrollY properties. |
Specify Cursor Style
To specify the style of pointer to be displayed:
-
-
Set the
ShowHourglass property to specify that the MousePointer enumerator should be set to its hourglass value whenever an image loads, saved, or during image processing.
-
-
Enable Mouse & Key Actions
To enable interpretation of an application end-user's mouse and key actions:
|
The DIBXPos and DIBYPos properties provide the position (in pixels) of the mouse with respect to the DIB. XPos and YPos return the logical position of the cursor in the displayed image, in pixels.
|
- Call the KeysGetEnabled and KeysSetEnabled methods, to indicate which key strokes are interpreted by the control. When KEYS_ACCELERATORS_FORWARD or KEYS_SYSTEM_FORWARD are enabled, the key messages are forwarded to the key motion events. Ensure that the Keydown, Keypress and Keyup events are enabled, by calling EventSetEnabled for each.
- Establish the Mouse or Key Actions required to control tools in the toolbar using the ToolGet and ToolSet methods.
- Establish the Mouse or Key Actions required to cancel the loading, decompression, saving, compression, or processing of images, by setting the CancelMode property.
See Also