Scrolling list of Groups

Martin Baxter martin at materiaprima.fsnet.co.uk
Thu Nov 4 03:06:45 EST 2004


Hi Mike,

It sounds like you're more or less on the right track.

I created a scrolling grid which has somewhat similar requirements,
although in that case I'm cloning a field rather than a group.  But I think
the principle is the same.
What I do is use a propertiy to keep track of how many cells there are, and
also have a naming scheme (R1C1) for the fields that describes their
location.
I always clone the first field and never delete it.
The location of the clone is determined by calculating its offset from the
first cell, based on the number of currently existing cells and their size.
In my case though the cells can be resized, all the cells are the same
size, which makes things easier.

Hope this helps

Martin Baxter

>Sorry, I was perhaps not clear enough in my original posting.  I am looking
>to learn how to add a group dynamically to the bottom of scrolling group
>from within a script rather than thru the IDE.
>
>I am thinking of having the scrolling group already pre-populated with a
>single grouped item.  I am thinking that I must clone that single group,
>rename it and adjust it's location.  Ok that gets me two items in the
>scrolling list.  Later, how do I find the last group in the scrolling list
>so I can clone it and add another one below it?
>
>Am I on the right track here?
>
>
>-----Original Message-----
>From: use-revolution-bounces at lists.runrev.com
>[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
>xbury.cs at clearstream.com
>Sent: Wednesday, November 03, 2004 7:32 AM
>To: use-revolution at lists.runrev.com
>Subject: RE: Scrolling list of Groups
>
> select a bunch of controls that you have already layed out,
>group them (control-g)
>
>with the group selected, you can set teh scrollbars to visible
>in the props palette.
>
>That's it!
>
>To add a new control to the bottom of the list you can either
>paste into the group a new control, you can edit the group and
>add a new button or the easiest by far is to duplicate a control
>with teh controlkey down when you drag the control (no copy-paste,
>no group editing!).
>
>Sorry, I never print, im trying to save the Amazon!
>
>
>> -----Original Message-----
>> From: use-revolution-bounces at lists.runrev.com
>> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
>> Mike Doub
>> Sent: Wednesday, November 03, 2004 12:51
>> To: 'How to use Revolution'
>> Subject: Scrolling list of Groups
>>
>> Can anyone point me to an example of how to construct a
>> scrolling list of a group of controls.  I would like to see
>> how to dynamically add and position a group of controls to
>> the bottom of the scrolling list.
>>
>> Eventually I need to figure out how to print the list and
>> handle page breaks, but one thing at a time.
>>
>> Thanks in advance,
>>    Mike
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>-----------------------------------------
>Visit us at http://www.clearstream.com
>IMPORTANT MESSAGE    Internet communications are not secure and therefore
>Clearstream International does not accept legal responsibility for the
>contents of this message.    The information contained in this e-mail is
>confidential and may be legally privileged. It is intended solely for the
>addressee. If you are not the intended recipient, any disclosure, copying,
>distribution or any action taken or omitted to be taken in reliance on it,
>is prohibited and may be unlawful. Any views expressed in this e-mail are
>those of the individual sender, except where the sender specifically states
>them to be the views of Clearstream International or of any of its
>affiliates or subsidiaries.    END OF DISCLAIMER
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>_______________________________________________
>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