How can I change Treeview Scroll Position thru PowerScript?
Im thinking to synchronize Scroll position of a datawindow and treeview but I cant seem to get it to work.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll have to use the
send()command using a handle to the treeview, the event id (vscroll = 277), a flag to tell it HOW to scroll (up one line, down one line, up a page, down a page, etc), and then one more long value which is an identifier for a string or message (not used here)So, to scroll up one line you would use:
and to scroll down one line, you would use:
Then use the datawindow’s
scrollverticalevent to keep them in sync.Hope that helps.