TBaseVirtualTree.AdjustPanningCursor Method

Virtual Tree View

Loads the proper cursor which indicates into which direction scrolling is done.

Pascal
procedure AdjustPanningCursor(X: Integer; Y: Integer); virtual;
Description

Wheel mice support a special mode for their wheel, which is used in many applications. By pressing the wheel (which is also a button) you can start so called wheell panning. In this mode the tree window is smoothly scrolled in the direction to which the mouse pointer is moved. As soon as you release the wheel button wheel panning is stopped. A second form of this feature is referred to as wheel scrolling. It is basically the same as wheel panning but is entered when you release the wheel button before you moved the mouse. In this mode you can move the mouse and do the tree scrolling without holding the wheel all the time. To stop this mode simple turn the wheel, or click any mouse button. Also pressing ESC will cause to leave the wheel scrolling mode. 

 

Depending on the direction the tree content is scroll also the mouse cursor must be adjusted to indicate this direction. AdjustPanningCursor does this.

Class
Links
What do you think about this topic? Send feedback!