dynamic controls
Bisser Milanov
BM at dataflight.dk
Fri Jan 31 08:25:00 EST 2003
So I cannot create more than 10 objects dynamically at runtime?
Best Regards
Bisser Milanov
***********************************************************
DataFlight Europe as
e-mail bm at dataflight.dk
Tel: +45 48 16 84 71
Fax: +45 70 22 45 25
Visit www.dataflight.dk and get the latest news
***********************************************************
-----Original Message-----
From: Klaus Major [mailto:klausimausi at mac.com]
Sent: Friday, January 31, 2003 2:15 PM
To: use-revolution at lists.runrev.com
Subject: Re: dynamic controls
Hi Bisser,
> Using Revolution can I add controls dynamically like buttons, text
> boxes, labels etc using code during runtime?
Yes :-)
But runtimes/standalones will have the 10 statement limit
just like the starter kit.
This ONLY appeals to new created objects (during runtime).
> Best Regards
> Bisser Milanov
Hope that helps.
Regards
Klaus Major
klausimausi at mac.com
P.S.
In case you want to know how to to that ;-)
Here is an example:
on mouseup # or whenever
lock screen ## so the ready button will appear
create button "Name of your new button here"
set the label of last button to "Your label here"
### since it is the latest created control you can refer to it
### this way...
set the loc of last button to ...
set ... etc...
unlock screen
end mouseup
Check the index for "create"...
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list