Reorder fields
Mark Smith
marksmithhfx at gmail.com
Sat Jul 29 09:19:23 EDT 2023
Thanks Geoff. Very interesting. That was, of course, my problem. The items were grouped and the relayerGroupedControls property was false. Changing it to true immediately made it possible to relayer the controls. I feel like I’ve just been introduced to huge component of livecode that I never knew existed (and thought was only available in one place in the IDE). There are rules here, and not just a few. First, items won’t relayer if they are grouped and relayingGroupedControls is set to false. If set to true then you can relayer them, but keep in mind a side effect (as I experienced) is it might change the grouping. However, if you toggle "select grouped" in the IDE you’ll visually see what is grouped, and you can relayer those groups if that achieves your purpose. In the case of just changing the tab order you have several options: you can change the relayerGroupedControls to true, you can ungroup the items and change the layer on the positions tab in the properties inspector or you can use the project browser to drag items around to relayer them (as this has the advantage of showing (more clearly) what items are grouped). Terrific information to know. Thank you everyone.
Geoff, I’ve never played with Navigator but from the sounds of it you’ve kept it updated. Is it still available?
Mark
> On 28 Jul 2023, at 11:20 pm, Geoff Canyon <gcanyon at gmail.com> wrote:
>
> Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode."
>
> I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them.
>
> On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
> You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on).
>
> Thanks to all.
> Mark
>
> > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
> >
> > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar.
> > --
> > Jacqueline Landman Gay | jacque at hyperactivesw.com <mailto:jacque at hyperactivesw.com>
> > HyperActive Software | http://www.hyperactivesw.com <http://www.hyperactivesw.com/>
> > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
> >
> >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
> >
> >
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
More information about the use-livecode
mailing list