TBaseVirtualTree.DoSetOffsetXY Method

Virtual Tree View

Internal core routine to set the tree's scroll position.

Pascal
function DoSetOffsetXY(Value: TPoint; Options: TScrollUpdateOptions; ClipRect: PRect = nil): Boolean; virtual;
Description

The method takes the Value structure which contains the new absolute scroll positions, both horizontal and vertical. Options specifies what should happen in the update process. A combination of the following values is possible: 

 

 

  • suoRepaintHeader, If suoUpdateNCArea is also set then invalidate the header to refresh its screen image, otherwise it is ignored.
  • suoRepaintScrollbars, If suoUpdateNCArea is also set then repaint both scrollbars after updating them, otherwise it is ignored.
  • suoScrollClientArea, Scroll and invalidate the proper part of the client area.
  • suoUpdateNCArea, Update non-client area (scrollbars, header).
Class
Links
What do you think about this topic? Send feedback!