-
So, ignore the scroll issue mentioned above, all sorted. Turns out the previous options I needed (maintaining the contentframe bottom anchor) was unnecessary for a non-windowlist.
Everything seems to be working!
I'll clean up the code and post the important bits incase anyone is interested after a bit.
-
And celestian solved it before I made it back from lunch. ;)
JPG
-
Congrats, Celestian. Will probably come in handy
-
So here is the parts of the code that matter here.
This is the xml for the window. I tried not to template anything so folks could more easily see what was going on but there are bits like tabs/etc that are but those are "standard" of sorts.
Code:
<!-- main selected window, actions/saves/etc, right side with all the fun stuff -->
<windowclass name="cta_main_selected_host">
<!-- <frame name="field-red" /> -->
<script file="cta/scripts/cta_selected.lua" />
<sheetdata>
<subwindow name="header">
<anchored>
<top offset="35" />
<left offset="13" />
<right offset="-10" />
</anchored>
<activate />
<fastinit />
<noscroll />
<class>selected_entry_header</class>
<frame name="headergray" offset="5,5,5,5" />
</subwindow>
<genericcontrol name="contentframe">
<anchored>
<top parent="header" anchor="bottom" offset="0" />
<left offset="0" />
<bottom parent="" anchor="bottom" offset="0" />
</anchored>
<disabled />
<!-- <frame name="groupbox" offset="0,0,0,0" /> -->
</genericcontrol>
<genericcontrol name="contentanchor">
<anchored height="0">
<top parent="header" anchor="bottom" offset="0" relation="relative"/>
<left parent="" anchor="left" offset="0" />
<right parent="" anchor="right" offset="0" />
</anchored>
<disabled />
<!-- <frame name="field-yellow" /> -->
</genericcontrol>
<subwindow name="actions">
<!-- <frame name="field-green" /> -->
<anchored to="contentanchor" >
<top anchor="top" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-20"/>
<bottom parent="contentframe" anchor="bottom" offset="-5"/>
</anchored>
<activate />
<fastinit />
<class>cta_actions_host</class>
</subwindow>
<cta_selected_scrollbar>
<anchored to="actions" />
<target>actions</target>
</cta_selected_scrollbar>
<subwindow name="effects">
<!-- <frame name="field-green" /> -->
<anchored to="contentanchor" >
<top anchor="top" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-20"/>
<bottom parent="contentframe" anchor="bottom" offset="-5"/>
</anchored>
<activate />
<fastinit />
<class>cta_effects_host</class>
</subwindow>
<cta_selected_scrollbar>
<anchored to="effects" />
<target>effects</target>
</cta_selected_scrollbar>
<subwindow name="skills">
<!-- <frame name="field-green" /> -->
<anchored to="contentanchor" >
<top anchor="top" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-20"/>
<bottom parent="contentframe" anchor="bottom" offset="-5"/>
</anchored>
<activate />
<fastinit />
<class>cta_skills_host</class>
</subwindow>
<cta_selected_scrollbar>
<anchored to="skills" />
<target>skills</target>
</cta_selected_scrollbar>
<subwindow name="stats">
<!-- <frame name="field-blue" /> -->
<anchored to="contentanchor" >
<top anchor="top" offset="5" />
<left parent="" anchor="left" offset="5"/>
<right parent="" anchor="right" offset="-20"/>
<bottom parent="contentframe" anchor="bottom" offset="-5"/>
</anchored>
<class>cta_stats_host</class>
<activate />
<fastinit />
</subwindow>
<cta_selected_scrollbar>
<anchored to="stats" />
<target>stats</target>
</cta_selected_scrollbar>
<tabs_cta name="tabs_cta">
<tab>
<icon>htab_actions_icon</icon>
<subwindow>actions</subwindow>
</tab>
<tab>
<icon>htab_effects_icon</icon>
<subwindow>effects</subwindow>
</tab>
<tab>
<icon>htab_stats_icon</icon>
<subwindow>stats</subwindow>
</tab>
<tab>
<icon>htab_skills_icon</icon>
<subwindow>skills</subwindow>
</tab>
</tabs_cta>
</sheetdata>
</windowclass>
Once I stopped using the windowlist it made things a lot easier. I could set the contentframe to the bottom of parent="" and that solved all the issues. When it was in a windowlist I had to watch for window resizing and manually set it.
I did also have to create a horizontal tab system. I took the existing vertical one and tweaked it to support horizontal. If/when I get the chance I'm going to see if I can merge them and you just set a flag within the xml to determine which one to use.
-
Let me know when you do this, and I can merge into CoreRPG.
Regards,
JPG