PDA

View Full Version : scrollbarcontrol and multiple scrollbar_record/targets?



Varsuuk
April 7th, 2019, 04:23
[SOLVED - was brain flatulence]

Usually I have been learning by inference/context. In the case of this windowclass: "<windowclass name="reference_race">" from 5E ruleset, what does having those 2 "scrollbar_record" mean/do?

I read the description of <target> in scrollbarcontrol (after manually tracing the inheritance since there is no global search ;) ) and found it. So, I get how the one with <target>text</target> works. But I do not see in 5E (or CoreRPG) a <stats> element to be scrolling. Then, too, how does it work having 2 things to scroll?

Or, is the second one automatically assumed to work on second tab by FG?
Any "in a nutshell" truths for me? ;)





<frame_record_content_tabbed name="contentframe" />

<ft_record name="text">
<anchored to="contentframe" position="over" />
<invisible />
</ft_record>
<subwindow_record name="stats">
<class>ref_race_stats</class>
</subwindow_record>

<scrollbar_record>
<target>text</target>
</scrollbar_record>
<scrollbar_record>
<target>stats</target>
</scrollbar_record>

<tabs_recordsheet>
<tab>
<icon>tab_main</icon>
<subwindow>text</subwindow>
</tab>
<tab>
<icon>tab_other</icon>
<subwindow>stats</subwindow>
</tab>
</tabs_recordsheet>




EDIT: Ugh, I searched on "<stats" didn't even think that of course it could be referring to this by name not node. So yeah, the "stats" in question here is simply the "<subwindow_record name="stats">" earlier in the definition.

So, I guess if you have 3 tabs you can setup 3 scrollbar_record's at the top level and it knows which tab to put it in via the name. Sorry, left this here in case it has any value (I think not) - if not ;) feel free to erase this thread as clutter.