[Datagrid] How to change an objects owner from a Datagrid to a Card

J. Landman Gay jacque at hyperactivesw.com
Thu Feb 26 20:59:21 EST 2015


If it happens again you might try cutting it and pasting it onto the card. 

On February 26, 2015 6:46:20 PM CST, Kay C Lan <lan.kc.macmail at gmail.com> wrote:
>Devin,
>
>Thanks for the response. The problem I was having is that:
>
>1) Straight up my Next btn was not appearing in the Project Browser
>2) To get it to appear I had to select my DataGrid and then select
>'Edit
>Group'
>3) If I then tried to Drag & Drop (or simply Click to select) my Next
>btn
>the IDE would immediately drop out of 'Edit Group' mode and it would
>sort
>of freeze up - the ghost of the Next btn would be displaced a couple of
>mm
>as if it was being dragged but it would then freeze in it's location,
>as
>soon as I released the mouse btn the PB would go back to it's normal
>display of not showing my Next btn - because it was out of Edit Group
>mode.
>
>As it turns out after several hours of frustration I've finally fixed
>it.
>Just in case anyone else has this problem (or if I get it again and I
>need
>to search for the solution again) this may work for you.
>
>In the Application Browser the same as above occurs, normally the
>objects
>within a DG are not displayed unless you are in Edit Group mode.
>Unfortunately you can't Drag and Drop objects around in the AB as you
>can
>in the PB. What I discovered though was that if I selected my Next btn
>in
>the AB it did NOT immediately drop the IDE out of Edit Group mode,
>which
>was what was happening in the PB. Eventually I discovered that with the
>Next btn already select via the AB it also showed as selected in the PB
>and
>now when I tried to Drag and Drop it no long instantaneously dropped
>out of
>Edit Group mode. I was thus able to drag my Next btn off to another
>card
>and once there the PB went back to operating normally, I could simply
>select my Next btn and drag it anywhere I wanted.
>
>On Fri, Feb 27, 2015 at 5:35 AM, Devin Asay <devin_asay at byu.edu> wrote:
>
>>
>> On Feb 25, 2015, at 9:36 PM, Kay C Lan <lan.kc.macmail at gmail.com>
>wrote:
>>
>> > My first real play with Datagrids and I have to say I'm very
>impressed.
>> > After sorting out the display and getting the first set of data
>into the
>> DG
>> > (which all went very smoothly - much better than expected) I went
>to
>> > implement a Next and Previous buttons to move through chunks of
>data. To
>> do
>> > this I duplicated the Next and Previous btns on a different Card
>and then
>> > using the Project Browser dragged the duplicates, one at a time, to
>the
>> > Card with the DG. Unfortunately, for reasons I can't explain, the
>> Previous
>> > btn ended up on the Card, but the Next btn ended up as part of the
>DG.
>> >
>> > I've now spent quite a lot of time trying to drag the Next btn out
>of
>> the DG
>> > and onto the Card but with no success. The 'owner' is a read only
>> property
>> > and there is no hint on how to scriptually achieve a change of
>ownership.
>> >
>> > I'm looking at the Menu -> Object -> Ungroup Selected with fear and
>> boding.
>> > Foolishly I didn't start my DG experiment with 2 fields and an
>image as
>> per
>> > the online Lesson, but with 56 fields and some graphics in a rather
>> complex
>> > split level display. Looking at the Application/Project Browser I
>see
>> there
>> > are A LOT of objects associated with my DG that I didn't put there.
>So
>> > admitting I have no clue as to the internal workings of the DG the
>last
>> > thing I want to do is Ungroup Selected and have it all break.
>> >
>> > Any help very much appreciated.
>>
>> Kay,
>>
>> Have you tried looking at the DG components in the Project Browser?
>It
>> would allow you to see all of the internal components without
>ungrouping
>> it. You should also be able to see the errant Next button and drag it
>out
>> of the DG group.
>>
>> HTH
>>
>> Devin
>>
>> Devin Asay
>> Office of Digital Humanities
>> Brigham Young University
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> 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
>>
>_______________________________________________
>use-livecode mailing list
>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

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list