Can't anchor to bottom of window... makes creating scrollbar impossible.
I've been trying to figure this out for a while. I am prototyping a different window view for a CT (this is primitive).
I am listing 2 subwindows within a windowclass that is created as a entry for a windowlist called from another windowclass.
I started using frame background colors (yup, this is really ugly) to try and figure out whats up. You can see here what I'm talking about. The key problem is there should be a green panel that is all the way to the bottom of the window from below the header (you can't even see it in this shot). Because of this (I am speculating) it won't create scrollbar on the subwindows.
https://i.imgur.com/8NaatCj.png
Code:
<windowclass name="cta_main_selected_host">
<frame name="field-red" />
<sheetdata>
<subwindow name="header">
<anchored>
<top offset="35" />
<left offset="13" />
<right offset="-5" />
</anchored>
<activate />
<fastinit />
<class>selected_entry_header</class>
<frame name="headergray" offset="5,5,5,5" />
</subwindow>
<!-- anchor target for the subwindows in tabs -->
<genericcontrol name="subwindow_target">
<frame name="field-yellow" />
<anchored to="header">
<top anchor="bottom" relation="relative" />
<right />
<left />
</anchored>
<disabled />
</genericcontrol>
<subwindow name="actions">
<frame name="field-green" />
<anchored to="subwindow_target" >
<top anchor="bottom" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-45"/>
<bottom parent="" anchor="bottom" offset="-5"/>
</anchored>
<activate />
<fastinit />
<class>cta_actions_host</class>
</subwindow>
<scrollbar>
<anchored to="actions" />
<target>actions</target>
</scrollbar>
<subwindow name="stats">
<frame name="field-blue" />
<anchored to="subwindow_target" >
<top anchor="bottom" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-45"/>
<bottom parent="" anchor="bottom" />
</anchored>
<class>cta_stats_host</class>
<activate />
<fastinit />
</subwindow>
<scrollbar>
<anchored to="stats" />
<target>stats</target>
</scrollbar>
<tabs_cta>
<tab>
<icon>htab_actions_icon</icon>
<subwindow>actions</subwindow>
<tooltiptext>Actions</tooltiptext>
</tab>
<tab>
<icon>htab_stats_icon</icon>
<subwindow>stats</subwindow>
<tooltiptext>Effects, Ability Scores and Saves</tooltiptext>
</tab>
</tabs_cta>
</sheetdata>
</windowclass>
Now if I remove the "<bottom parent="" anchor="bottom" offset="-5"/>" completely from the subwindow entries the windows WILL show but will not give a scrollbar. I can put a scrollbar on the windowclass calling the windowlist and it will place a scrollbar for the entire window but I want just the subwindows to scroll, NOT the header.