PDA

View Full Version : Columns in windowlist not behaving as expected



Myrddin
June 5th, 2013, 01:44
I am trying to create a windowlist in columns to hold multiple "wound" values. The windowlist allows values to be created, but only allows interaction with the first (leftmost) value in the ordered list. Any ideas on how to fix this?

Windowclass code:


<windowclass name="charsheet_woundlistitem">
<sizelimits>
<minimum>
<height>30</height>
</minimum>
</sizelimits>
<sheetdata>
<basicnumber name="wound">
<bounds>5,6,22,16</bounds>
</basicnumber>
</sheetdata>
</windowclass>


and windowlist code:


<windowlist name="woundlist">
<anchored>
<to>hpframe</to>
<position>over</position>
<offset>-15,-90</offset>
<bottom>
<offset>-11</offset>
</bottom>
</anchored>
<columns>
<width>30</width>
<fillwidth />
</columns>
<allowcreate />
<allowdelete />
<datasource>.woundlist</datasource>
<class>charsheet_woundlistitem</class>
<sortby>
<control>wound</control>
</sortby>
<frame>
<name>modifier</name>
<offset>6,5,8,5</offset>
</frame>
</windowlist>

Moon Wizard
June 5th, 2013, 05:52
Try setting a minimum width of 0 on the child windowclass. I remember having a similar issue with column window lists, and I think that is how I fixed. If not, I can dig deeper.

Cheers,
JPG

Myrddin
June 5th, 2013, 23:54
Thanks JPG, that did the trick. Windowlist working entirely as expected now.