Re: Adding items to a group

2020-08-26 Thread Bernard Devlin via use-livecode
Whilst Mark provided what Phil needed, I too cannot believe how easy and
reliable Geoff's Navigator is.  I use it for everything. When I need an
Inspector a double-click on a line in Navigator brings it up.  I love it.

On Wed, Aug 26, 2020 at 7:14 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Also, Geoff Canyon wrote a GREAT utility called Navigator, which among
> other things, allows you to drag objects around in a hierarchical list. If
> you drag an object in a group to somewhere outside that group, into another
> group let’s say, it does all the relaying for you.
>
>
___
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


Re: Adding items to a group

2020-08-26 Thread Bob Sneidar via use-livecode
Also, Geoff Canyon wrote a GREAT utility called Navigator, which among other 
things, allows you to drag objects around in a hierarchical list. If you drag 
an object in a group to somewhere outside that group, into another group let’s 
say, it does all the relaying for you.

I cannot tell you how many times this saved my bacon because I was editing 
groups and copy/pasting things into and out of other groups, and screwed it up.

Bob S


On Aug 26, 2020, at 2:27 AM, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2020-08-26 10:06, Jimmieson, Phil via use-livecode wrote:
One thing I’m considering is having a set of dummy hidden items
already in the group and making one of those look like the word the
user just dragged in - thus it’s already a member of the group and can
be scrolled etc with the rest. Can anyone think of any better ways of
doing it?

Take a look at the 'relayer' command in the dictionary. It allows you to move 
controls up and down the layer order and in and out of groups easily (without 
any need to ungroup/regroup).

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ 
http://www.livecode.com/
LiveCode: Everyone can create apps

___
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


Re: Adding items to a group

2020-08-26 Thread Jimmieson, Phil via use-livecode
Thanks very much Mark, the relayer command is exactly what I needed.


relayer field “xx” to the front of group “thePoem” —adds the field to the poem 
group at the top of the group

relayer field “xx” after group “thePoem” —removes the field from the poem group 
and leaves it in front of the group


On 26 Aug 2020, at 10:27, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2020-08-26 10:06, Jimmieson, Phil via use-livecode wrote:
One thing I’m considering is having a set of dummy hidden items
already in the group and making one of those look like the word the
user just dragged in - thus it’s already a member of the group and can
be scrolled etc with the rest. Can anyone think of any better ways of
doing it?

Take a look at the 'relayer' command in the dictionary. It allows you to move 
controls up and down the layer order and in and out of groups easily (without 
any need to ungroup/regroup).

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ 
http://www.livecode.com/
LiveCode: Everyone can create apps

--
Phil Jimmieson
University of Liverpool, Computer Science Department
Ashton Bldg, Ashton Street, Liverpool. L69 3BX
0151 795 4236


___
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


Re: Adding items to a group

2020-08-26 Thread Mark Waddingham via use-livecode

On 2020-08-26 10:06, Jimmieson, Phil via use-livecode wrote:

One thing I’m considering is having a set of dummy hidden items
already in the group and making one of those look like the word the
user just dragged in - thus it’s already a member of the group and can
be scrolled etc with the rest. Can anyone think of any better ways of
doing it?


Take a look at the 'relayer' command in the dictionary. It allows you to 
move controls up and down the layer order and in and out of groups 
easily (without any need to ungroup/regroup).


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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


Adding items to a group

2020-08-26 Thread Jimmieson, Phil via use-livecode
Hi folks,
The app I’m currently working on features a poem presented as a series of 
fields (each containing one word of the poem) all grouped together, so that the 
poem can be scrolled vertically by the user. I need to be able to add extra 
words to the poem as the user drags them in from a set of words above the poem 
area. Currently I am doing this by ungrouping the poem, adding the new field to 
the list of group items and then re-grouping everything.  I know you can 
reorder group items, and move things in from outside, but the documentation 
seems to suggest that the number of items in the group will stay the same - if 
one item is moved in, another will be moved out. Is there another way to add an 
item to a group, or is ungrouping then regrouping but with an additional item 
in the list of items the only way?


One thing I’m considering is having a set of dummy hidden items already in the 
group and making one of those look like the word the user just dragged in - 
thus it’s already a member of the group and can be scrolled etc with the rest. 
Can anyone think of any better ways of doing it?

Thanks

--
Phil Jimmieson
University of Liverpool, Computer Science Department
Ashton Bldg, Ashton Street, Liverpool. L69 3BX
0151 795 4236

___
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