On Mon, Oct 13, 2014 at 10:33 AM, <la...@significantplanet.org> wrote:

> Maybe I can just create all the fields I will ever possibly need and then
> just show and hide them.
>

That is certainly an approach I've used many many times, especially if the
number of fields is large. If the number of fields is smalll, say an input
field and output field, even if they are of different sizes and located
different, I first create them, take note of pertinent properties:

height
width
loc
textAlign
textSize
TextColor

and any other property that might be different from one field to the other,
then delete one field so I'm left with one field that can act as both as an
input field and an output field. In my script, where I would normally:

hide fld "input"
show fild "output"

I simply change the properties of my single field to reflect what I'm using
it for:

lock screen
if the label of btn "selectMethod" = "Output" then
set the height of fld "multipurpose" to 123
set the width of fld "multipurpose" to 456
set the loc of fld "multipurpose" to 200,200
etc
put myOutput into fld "multipurpose"
unlock screen
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to