2012-08-16, 00:34
The idea is that a text label would be visible [or not] depending on the number of characters it contained.
Anyway of doing this with the current tools?
Anyway of doing this with the current tools?
(2012-08-16, 00:34)adrian ballard Wrote: The idea is that a text label would be visible [or not] depending on the number of characters it contained.
Anyway of doing this with the current tools?
<control type="fadelabel" description="MAIN TITLE">
<width min="10" max="500">auto</width>
<height>35</height>
<scrollout>false</scrollout>
<pauseatend>600</pauseatend>
<scrollspeed>20</scrollspeed>
<font>size24</font>
<textcolor>TEXT_LIST_ITEM-SELECTED_COLOR</textcolor>
<shadowcolor>TEXT_SHADOW_COLOR</shadowcolor>
<label>[B]$INFO[ListItem.Label][/B]</label>
</control>
(2012-08-17, 10:41)`Black Wrote: Control.GetLength() wouldn't help much since you would get the lenght of the label but not the size in pixels... For example Control.GetLength() would return 5 for "lllll" and "wwwww" but you would rather need the actual size based on the label, font and fontsize. So currently it's not possible even with a script.
(2012-08-17, 15:31)pieh Wrote: I don't get why You want label or fadelabel based on text extent width? Or I missunderstood it?
<control type="grouplist">
[...]
<control type="label" id="1">
<width min="10" max="500">auto</width>
[...]
<visible>!IntegerGreaterThan(Control.GetWidth(1),499)</visible>
</control>
<control type="fadelabel" id="2">
<width>500</width>
[...]
<visible>IntegerGreaterThan(Control.GetWidth(1),499)</visible>
</control>
[...]
</control>