![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Inces |
I don’t understand how scrollbar works in Rich Text Label.
What I want to do is connect one scrollbar to another, so they can scroll simultaneously two different Rich Text Labels. And I want to do it with mouse wheel, in a way that only one scrollbar is visible
Apparently only mouse wheel scrolling do not trigger built-in “scrolling” signal of scrollbar, which is inherited by vscrollbar of Rich Text Label.
Apparently scrollbar inherits from Control Node, yet when it is reached via code, it ignores tasks to change its visibility or to ignore input events.
I cannot get built-in func scroll_to_line to work, while Scroll Active is off
Then it has these properties : step and custom_step, these are integers and I have no idea what can they represent, nothing close to line_count anyway.
Finally there is this property get_visible_line_count(). Print shows that is always is 1 or 0 despite number of lines that are really visible, I don’t get it at all.
It seems that every text node has different scrollbar buiilt-in mechanics…