There are several ways you could do this, but here is one suggestion.
I would check out the "clone" and "create" commands, and also the property list for fields.

1) Create one copy of the two fields exactly as you want them, as a template 2) "Group" the two fields, so that you can clone the whole group whenever you need it
3) Script something like:

clone group "ValentinaLabelTemplate"
set the top of last group to XXX
put YYY into fld "name" of last group
put ZZZ into fld "value" of last group

Also worth checking out- the formattedWidth property will tell you how wide a field must be to display it's contents.

HTH,
Brian

Hello All,

     Could someone help me with such issue:

     Assume there is an empty window (card).
     Now I need to create a number of labels there *using script*.
     These labels look like pairs - name-value.
     Such pairs should be placed in a list manner - from top to bottom.

     I'm looking over Revolution help - but found nothing.



--
Best regards,
 Ivan                          mailto:[EMAIL PROTECTED]

[Everything is possible. The impossible just takes longer.]

_______________________________________________
Valentina mailing list
[EMAIL PROTECTED]
http://lists.macserve.net/mailman/listinfo/valentina

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to