drahkar
January 17th, 2011, 02:28
Ok. I know I must be missing something. What is wrong with this windowlist/windowclass set that would prevent it from displaying?
<windowclass name="charsheet_skills">
<placement>
<size>
<width>700</width>
<height>509</height>
</size>
</placement>
<nodelete />
<sheetdata>
<!-- Mental Skills Panel -->
<genericcontrol name="mentalskillsframe">
<bounds>33,33,310,441</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<panelheader>
<anchored>
<left>
<parent>mentalskillsframe</parent>
<anchor>left</anchor>
<offset>85</offset>
</left>
<top>
<parent>mentalskillsframe</parent>
<anchor>insidetop</anchor>
<offset>-5</offset>
</top>
</anchored>
<static>Mental Skills</static>
<font>sheetheadertext</font>
</panelheader>
<stringcontrol>
<anchored>
<to>mentalskillsframe</to>
<position>insideleft</position>
<offset>23,-35</offset>
<size>
<width>40</width>
</size>
</anchored>
<static>Name</static>
<font>sheetlabel</font>
</stringcontrol>
<stringcontrol>
<anchored>
<to>mentalskillsframe</to>
<position>insideleft</position>
<offset>225,-35</offset>
<size>
<width>40</width>
</size>
</anchored>
<static>Score</static>
<font>sheetlabel</font>
</stringcontrol>
<windowclass name="mentalskills">
<sizelimits>
<minimum>
<height>20</height>
</minimum>
</sizelimits>
<sheetdata>
<stringfield name="name">
<anchored>
<left>
<anchor>left</anchor>
<offset>5</offset>
</left>
<top>
<anchor>top</anchor>
<offset>2</offset>
</top>
<size>
<width>96</width>
<height>23</height>
</size>
</anchored>
<font>sheettextsmall</font>
<frame>
<name>textline</name>
<offset>0,1,0,0</offset>
</frame>
</stringfield>
</sheetdata>
</windowclass>
<windowlist name="mentalskillslist">
<anchored>
<top>
<parent>mentalskillsframe</parent>
<anchor>top</anchor>
</top>
<bottom>
<parent>mentalskillsframe</parent>
<anchor>bottom</anchor>
</bottom>
<left>
<parent>mentalskillsframe</parent>
<anchor>left</anchor>
</left>
<right>
<parent>mentalskillsframe</parent>
<anchor>right</anchor>
</right>
<bottom>
<parent>mentalskillsframe</parent>
<anchor>bottom</anchor>
</bottom>
</anchored>
<class>mentalskills</class>
<datasource>.</datasource>
<allowcreate />
<allowdelete />
<script>
function onInit()
checkEmpty();
end
function checkEmpty()
if #getWindows()==0 then
createWindow();
end
end
</script>
</windowlist>
</sheetdata>
</windowclass>
<windowclass name="charsheet_skills">
<placement>
<size>
<width>700</width>
<height>509</height>
</size>
</placement>
<nodelete />
<sheetdata>
<!-- Mental Skills Panel -->
<genericcontrol name="mentalskillsframe">
<bounds>33,33,310,441</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<panelheader>
<anchored>
<left>
<parent>mentalskillsframe</parent>
<anchor>left</anchor>
<offset>85</offset>
</left>
<top>
<parent>mentalskillsframe</parent>
<anchor>insidetop</anchor>
<offset>-5</offset>
</top>
</anchored>
<static>Mental Skills</static>
<font>sheetheadertext</font>
</panelheader>
<stringcontrol>
<anchored>
<to>mentalskillsframe</to>
<position>insideleft</position>
<offset>23,-35</offset>
<size>
<width>40</width>
</size>
</anchored>
<static>Name</static>
<font>sheetlabel</font>
</stringcontrol>
<stringcontrol>
<anchored>
<to>mentalskillsframe</to>
<position>insideleft</position>
<offset>225,-35</offset>
<size>
<width>40</width>
</size>
</anchored>
<static>Score</static>
<font>sheetlabel</font>
</stringcontrol>
<windowclass name="mentalskills">
<sizelimits>
<minimum>
<height>20</height>
</minimum>
</sizelimits>
<sheetdata>
<stringfield name="name">
<anchored>
<left>
<anchor>left</anchor>
<offset>5</offset>
</left>
<top>
<anchor>top</anchor>
<offset>2</offset>
</top>
<size>
<width>96</width>
<height>23</height>
</size>
</anchored>
<font>sheettextsmall</font>
<frame>
<name>textline</name>
<offset>0,1,0,0</offset>
</frame>
</stringfield>
</sheetdata>
</windowclass>
<windowlist name="mentalskillslist">
<anchored>
<top>
<parent>mentalskillsframe</parent>
<anchor>top</anchor>
</top>
<bottom>
<parent>mentalskillsframe</parent>
<anchor>bottom</anchor>
</bottom>
<left>
<parent>mentalskillsframe</parent>
<anchor>left</anchor>
</left>
<right>
<parent>mentalskillsframe</parent>
<anchor>right</anchor>
</right>
<bottom>
<parent>mentalskillsframe</parent>
<anchor>bottom</anchor>
</bottom>
</anchored>
<class>mentalskills</class>
<datasource>.</datasource>
<allowcreate />
<allowdelete />
<script>
function onInit()
checkEmpty();
end
function checkEmpty()
if #getWindows()==0 then
createWindow();
end
end
</script>
</windowlist>
</sheetdata>
</windowclass>