Makeing scroll field expand with the program

Klaus Major klaus at major-k.de
Thu Mar 10 11:17:11 EST 2005


Hi Kevin,

> I am trying to make a simple text editor I have to questions that I
> can't figure out when it comes to a multiline text field.
>
> 1) How do I make the text field expand to fit the window when a user
> expands the program to fit the entire screen?

you need a "resizestack" handler in your stack, since that message will
be sent to your current card (and stack) if the user does these kind of 
things,
resizing the stack manually or clicking the "maximize" button in the 
window
title bar...

Like (very simple! :-):

on resizestack
    lock screen
    set the width of fld "my field" to the width of this cd
    ## set the width

   set the left of fld "my field" to the left of this cd
   ## adjust the field...
end resizestack

will make taht field as wide as the stack is :-)
You get the picture...

> 2) How do I mak the lines line wrap rather then just continue on in 
> one line

In the inspector UNcheck "dontwrap" for that field.

Hope that helps...

> Thank you for all your help with learning how to do things with
> revolution. I have been watching the video tutorials and they helped
> alot.
>
> Kevin

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list