create field on specific positoin
Viktoras Didziulis
viktoras at ekoinf.net
Tue Jun 19 03:45:00 EDT 2007
whoops, omitted a typo - it should be :
lock screen
create group "gLegendKeeper" in group "gLegend" of card "mainCard"
repeat with i=1 to 30
put "f" & i into fName
create field fName in group "gLegendKeeper" of group "gLegend" of card
mainCard"
set the left of field fName of card "mainCard" to (myLeft + 22)
set the top of field fName of card "mainCard" to graphicTop
end repeat
unlock screen
-------Original Message-------
From: Viktoras Didziulis
Date: 19/06/2007 10:40:20
To: How to use Revolution
Subject: Re: create field on specific positoin
I do this like that (just copied from an existing app):
lock screen
create group "gLegendKeeper" in group "gLegend" of card "mainCard"
repeat with i=1 to 100
put "f" & i into gName
create field gName in group "gLegendKeeper" of group "gLegend" of card
mainCard"
set the left of field fName of card "mainCard" to (myLeft + 22)
set the top of field fName of card "mainCard" to graphicTop
end repeat
unlock screen
note that a new group "gLegendkeeper" is created to make it easy to delete
the created fields when necessary by simply deleting the whole group.
All the best
Viktoras
-------Original Message-------
From: runrev260805 at m-r-d.de
Date: 19/06/2007 09:10:09
To: use-revolution at lists.runrev.com
Subject: create field on specific positoin
Hi,
i need to create several fields, 3 at a line, from a script. The number of
fields depends on the number of lines a textfile contains. Each field then
must contain an item of the text file. Excatly said, 3 items of each line of
the text file have to be put into the 3 fields.
Creating the fields from within the script should be no problem.
My problem is, i do not know:
How can i place the fields automatically on a specific postion, so i have 3
fields on each line?
How would you name them, so they could be accessed later.?
e.g. Field_1_3 should mean field from line 1, which contains item 3 from
line 1 of the textfile
Regards,
Matthias
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list