tdwyer11b
July 12th, 2007, 23:50
I'm trying to set my skill frame up so I can right click "add entry" for the skills. Anyone see where I'm goofing up?
Here's a screenie testing it:
https://img67.imageshack.us/img67/1755/untitledka5.png
I keep getting -
Ruleset Warning: Anchored control static height ignored
Ruleset Warning: Anchored control static width ignored.
Here's the windowclass
<windowclass name="charsheet_skillentry">
<sizelimits>
<minimum>
<height>10</height>
</minimum>
</sizelimits>
<sheetdata>
<textlistitemvalue name="skill_name">
<anchored>
<left>
<anchor>left</anchor>
<offset>0</offset>
</left>
<right>
<anchor>left</anchor>
<offset>185</offset>
</right>
<top>
<anchor>top</anchor>
</top>
</anchored>
<tabtarget>
<next>location</next>
<prev>count</prev>
</tabtarget>
<script>
function onLoseFocus()
super.onLoseFocus();
window.windowlist.applySort();
end
</script>
</textlistitemvalue>
<numberfield name="skill_score">
<font>sheetnumbersmall</font>
<anchored>
<to>skill_name</to>
<position>right</position>
<offset>7,0</offset>
<size>
<width>20</width>
<height>15</height>
</size>
</anchored>
<frame>
<name>textlinesmall</name>
<offset>0,-2,0,0</offset>
</frame>
</numberfield>
<checkbox name="exp1">
<anchored>
<to>skill_name</to>
<position>belowleft</position>
<offset>0,0</offset>
<size>
<width>15</width>
<height>15</height>
</size>
</anchored>
</checkbox>
</sheetdata>
</windowclass>
...and the windowlist
<genericcontrol name="skillframe">
<bounds>15,180,245,305</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<stringcontrol name="skilllabel">
<anchored>
<to>skillframe</to>
<position>insidetop</position>
<size>
<width>45</width>
<height>27</height>
</size>
<offset>-15,9</offset>
</anchored>
<font>sheetlabel</font>
<static>SKILLS</static>
</stringcontrol>
<windowlist name="skilllist">
<class>charsheet_skillentry</class>
<anchored>
<to>skillframe</to>
<position>insidetop</position>
<offset>-15,22</offset>
</anchored>
<allowcreate />
<allowdelete />
</windowlist>
<scrollercontrol>
<anchored>
<to>skillframe</to>
<position>insidebottomright</position>
<size>
<width>45</width>
<height>27</height>
</size>
</anchored>
<target>skilllist</target>
<button>
<normal>button_scroller</normal>
<pressed>button_scroller_down</pressed>
</button>
</scrollercontrol>
Here's a screenie testing it:
https://img67.imageshack.us/img67/1755/untitledka5.png
I keep getting -
Ruleset Warning: Anchored control static height ignored
Ruleset Warning: Anchored control static width ignored.
Here's the windowclass
<windowclass name="charsheet_skillentry">
<sizelimits>
<minimum>
<height>10</height>
</minimum>
</sizelimits>
<sheetdata>
<textlistitemvalue name="skill_name">
<anchored>
<left>
<anchor>left</anchor>
<offset>0</offset>
</left>
<right>
<anchor>left</anchor>
<offset>185</offset>
</right>
<top>
<anchor>top</anchor>
</top>
</anchored>
<tabtarget>
<next>location</next>
<prev>count</prev>
</tabtarget>
<script>
function onLoseFocus()
super.onLoseFocus();
window.windowlist.applySort();
end
</script>
</textlistitemvalue>
<numberfield name="skill_score">
<font>sheetnumbersmall</font>
<anchored>
<to>skill_name</to>
<position>right</position>
<offset>7,0</offset>
<size>
<width>20</width>
<height>15</height>
</size>
</anchored>
<frame>
<name>textlinesmall</name>
<offset>0,-2,0,0</offset>
</frame>
</numberfield>
<checkbox name="exp1">
<anchored>
<to>skill_name</to>
<position>belowleft</position>
<offset>0,0</offset>
<size>
<width>15</width>
<height>15</height>
</size>
</anchored>
</checkbox>
</sheetdata>
</windowclass>
...and the windowlist
<genericcontrol name="skillframe">
<bounds>15,180,245,305</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<stringcontrol name="skilllabel">
<anchored>
<to>skillframe</to>
<position>insidetop</position>
<size>
<width>45</width>
<height>27</height>
</size>
<offset>-15,9</offset>
</anchored>
<font>sheetlabel</font>
<static>SKILLS</static>
</stringcontrol>
<windowlist name="skilllist">
<class>charsheet_skillentry</class>
<anchored>
<to>skillframe</to>
<position>insidetop</position>
<offset>-15,22</offset>
</anchored>
<allowcreate />
<allowdelete />
</windowlist>
<scrollercontrol>
<anchored>
<to>skillframe</to>
<position>insidebottomright</position>
<size>
<width>45</width>
<height>27</height>
</size>
</anchored>
<target>skilllist</target>
<button>
<normal>button_scroller</normal>
<pressed>button_scroller_down</pressed>
</button>
</scrollercontrol>