[wxhaskell-users] size of text in pixel

2011-09-03 Thread Rémi Vion

Hi, I just registered to the mailing list.

I have a few question regarding the fact that I can't find the exact 
size (with/ height) in pixel of a (possibly multiline) bloc of text.
Maybe I just need to get the attribute outerSize of a text widget, 
because they just take the size of the text they contain? but it leads 
to following questions :


- what is the attribute who tells widgets like buttons, or static text 
fields to take the shape of the text they contain?


- Is it possible to know the size of texts easilly (taking in account 
police and size) ?


- where can I find a list of attributes of those widgets.
  I looked for them, but for example, I know that buttons resize 
according to text they contain, and I wans't able to find how to remove 
this behaviour, or to set it for other text container.


Thanks :)
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] size of text in pixel

2011-09-03 Thread Eric Y. Kow
Salut Rémi,

I don't know for sure, but I think I have some documentation
which you may find helpful

On Sat, Sep 03, 2011 at 13:56:59 +0300, Rémi Vion wrote:
 - what is the attribute who tells widgets like buttons, or static
 text fields to take the shape of the text they contain?

I believe this is partly explained in the
documentation for Graphics.UI.WXCore.Layout

http://hackage.haskell.org/package/wxcore
 
 - Is it possible to know the size of texts easilly (taking in
 account police and size) ?

Perhaps size (in the Sized class is what you want here?)

 - where can I find a list of attributes of those widgets.
   I looked for them, but for example, I know that buttons resize
 according to text they contain, and I wans't able to find how to
 remove this behaviour, or to set it for other text container.

I think you're looking for Graphics.UI.WX.Classes
in http://hackage.haskell.org/package/wx

-- 
Eric Kow http://erickow.com


pgpD5yQFUnKxW.pgp
Description: PGP signature
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users