Change tree scroll down position through PowerScript

How can I change the scroll position of a Treeview through PowerScript? Im thinking of synchronizing the scroll position of the data window and treeview, but I can't get it to work.

Thank!

+3
source share
1 answer

You will need to use the command send()using a tree descriptor, an event identifier (vscroll = 277), a flag, to tell it. HOW to scroll (up one line, down one line, up page, down page, etc.), and then another long value, which is the identifier of the line or message (not used here)

So, to scroll one line, you should use:

Send(Handle(tv_1), 277, 0, 0)

, :

Send(Handle(tv_1), 277, 1, 0)

datawindow scrollvertical, .

, .

+1

Source: https://habr.com/ru/post/1749160/


All Articles