I think this is already answered off list, but for the archive. Yes, 
it's possible using:

qx.bom.Label.getHtmlSize or getTextSize

It also supports styles to be applied onto the label e.g. specific fonts 
(second parameter)

Sebastian



Derrell Lipman schrieb:
> I need to determine the width of the label in treevirtual.  In 0.7, I'd 
> do this:
> 
>       // Determine the width of the label
>       var w = new qx.ui.basic.Label(node.label).getPreferredBoxWidth();
> 
> What is the 0.8 way of accomplishing this?
> 
> Thanks,
> 
> Derrell
> 
> -- 
> "There is nothing more difficult to plan, more doubtful of success, nor 
> more dangerous to manage than the creation of a new system. For the 
> initiator has the enmity of all who would profit by the preservation of 
> the old system and merely lukewarm defenders in those who would gain by 
> the new one." --Machiavelli, 1513
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to