Ususlly what we do is to not have the parent view have the resource, but have a 
child view hold the resource, have stretches="both", and fills the parent.

If you set it as the first view in the child the tex twill be displayed over 
the image. (if you use layout, think about setting options="ignorelayout" on 
your stretched view to make sure there will be no sideeffect with your content.

 

Hope this helps.

Julien

 

  _____  

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Anze Cesar
Envoyé : lundi 12 novembre 2007 22:44
À : Rich Christiansen
Cc : Laszlo Users
Objet : Re: [Laszlo-user] Automatic Text Resizing

 

Maybe if you set fontsize parameter of a text element, it will work. I't wont 
be the default text size, but I'm sure you could find an appropriate value.

Of course I never tested this, apart from using  fontsize to make my text a 
proper size. 

On Nov 12, 2007 10:07 PM, Rich Christiansen <[EMAIL PROTECTED]> wrote:

Hello all,

Imagine this scenario: You have a view that has a resource attatched to it.  
The view is set with stretches="true", and you resize the view to be two times 
the unstretchedwidth and unstretchedheight, effectively doubling the size of 
the resource on the screen.  Now, imagine that this view also contains some 
text.  When the view is resized, the text is resized as well, effectively 
doubling the size of the text.  Can someone please enlighten me on how to keep 
the text from resizing?  In other words, I would like the text ot stay at the 
default size even though its parent view is doubling in size.

Thanks in advance for your help! :)
-Rich




-- 
lp,
Anže 

Reply via email to