Set List's line height function required

haibo19981984

09-07-2010 02:44:19

I need to use some List which have different line height.
But I don't find any function in List's source.
So I have to define different List which have different line height in skin.
It is wasteful.Because only a number is different.
Anybody can solved.

my.name

12-07-2010 09:17:14

using ListCtrl widget

haibo19981984

14-07-2010 03:33:13


<Resource type="ResourceSkin" name = "ListCtrl" size = "11 11" texture = "#{MyGUI_Theme_Texture}">
<Property key="DragLayer" value = "DragAndDrop" />

<Child type="VScroll" skin="VScroll" offset = "-9 3 15 -12" align = "Right VStretch" name = "VScroll"/>
<Child type="HScroll" skin="HScroll" offset = "3 -9 -12 15" align = "HStretch Bottom" name = "HScroll"/>
<Child type="Widget" skin="DefaultClient" offset = "3 3 -12 -12" align = "Stretch" name = "Client"/>

<BasisSkin type="SubSkin" offset = "0 0 3 3" align = "Left Top">
<State name="normal" offset = "429 70 3 3"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "3 0 3 3" align = "HStretch Top">
<State name="normal" offset = "435 70 3 3"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "6 0 5 3" align = "Right Top">
<State name="normal" offset = "447 70 5 3"/>
</BasisSkin>

<BasisSkin type="SubSkin" offset = "0 3 3 3" align = "Left VStretch">
<State name="normal" offset = "429 76 3 3"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "6 3 5 3" align = "Right VStretch">
<State name="normal" offset = "447 76 5 3"/>
</BasisSkin>

<BasisSkin type="SubSkin" offset = "0 6 3 5" align = "Left Bottom">
<State name="normal" offset = "429 87 3 5"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "3 6 3 5" align = "HStretch Bottom">
<State name="normal" offset = "435 87 3 5"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "6 6 5 5" align = "Right Bottom">
<State name="normal" offset = "447 87 5 5"/>
</BasisSkin>
</Resource>


new widget ListCtrl - base widget for lists with OwnDraw, horizontal scroll and lines with different height support

At first,thanks for by my.name's reply.
I find the "ListCtrl" skin,but I don't find function "setProperty" in ListCtrl's source.
Moreover,"ListCtrl" does not include in LayoutEditor.exe.
I don't find any info to use it.
So I don't know how to use it.
by my.name,can you give me some prompt?