Skip to main content
6-Contributor
April 5, 2023
Question

Toolkit ProUITree scroll position

  • April 5, 2023
  • 1 reply
  • 1022 views

I have a few instances in my code where I have a UI tree that is longer than the height of the screen and I want to scroll to a specific position.

One example is when i select a tree node using ProUITreeSelectednamesSet (or otk equivalent) I want the scroll position to be set so that the selected node is visible without needing to scroll down manually and search for the highlighted node.

Another example is setting the scroll position to the top after a node is added because the default seems to be to scroll to the bottom of the tree.

 

 

1 reply

24-Ruby III
April 6, 2023

@srosell wrote:

I have a few instances in my code where I have a UI tree that is longer than the height of the screen and I want to scroll to a specific position.

One example is when i select a tree node using ProUITreeSelectednamesSet (or otk equivalent) I want the scroll position to be set so that the selected node is visible without needing to scroll down manually and search for the highlighted node.

Another example is setting the scroll position to the top after a node is added because the default seems to be to scroll to the bottom of the tree.

 

 


Hi,

please ask PTC Support.