editGroup message?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

editGroup message?

Stephen MacLean via use-livecode
When choosing "edit group" from the toolbar (or otherwise), is there an
"editGroup" or similar message sent that I can intercept?

In particular, I want to set a flag that my auto-save routines can catch,
as saving while in edit group knocks that mod out, sometimes with oddball
effects.



--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
I don't think there is a msg but

the editbg of stack "Mystack" = true when in editing mode.

On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
[hidden email]> wrote:

> When choosing "edit group" from the toolbar (or otherwise), is there an
> "editGroup" or similar message sent that I can intercept?
>
> In particular, I want to set a flag that my auto-save routines can catch,
> as saving while in edit group knocks that mod out, sometimes with oddball
> effects.
>
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
I ran into this with ScriptTracker. I just disable the mode there. I looked at how to preserve and restore the setting, but didn’t find it at the time. I could tell if the mode was enabled, but not which background was being edited to restore afterwards.

Thanks,
Brian
On Sep 18, 2018, 9:30 PM -0500, Tom Glod via use-livecode <[hidden email]>, wrote:

> I don't think there is a msg but
>
> the editbg of stack "Mystack" = true when in editing mode.
>
> On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
> [hidden email]> wrote:
>
> > When choosing "edit group" from the toolbar (or otherwise), is there an
> > "editGroup" or similar message sent that I can intercept?
> >
> > In particular, I want to set a flag that my auto-save routines can catch,
> > as saving while in edit group knocks that mod out, sometimes with oddball
> > effects.
> >
> >
> >
> > --
> > Dr. Richard E. Hawkins, Esq.
> > (702) 508-8462
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
hmmm.... i'm sure there is some way to find out .... the engine has to know
which group is being edited...just have to find the engine property
....could be an undocumented one.  Isn't there a stack that lists engine
properties?  haven't seen it in years but I think I recall something like
that.

maybe someone will know offhand.

On Tue, Sep 18, 2018 at 11:16 PM Brian Milby via use-livecode <
[hidden email]> wrote:

> I ran into this with ScriptTracker. I just disable the mode there. I
> looked at how to preserve and restore the setting, but didn’t find it at
> the time. I could tell if the mode was enabled, but not which background
> was being edited to restore afterwards.
>
> Thanks,
> Brian
> On Sep 18, 2018, 9:30 PM -0500, Tom Glod via use-livecode <
> [hidden email]>, wrote:
> > I don't think there is a msg but
> >
> > the editbg of stack "Mystack" = true when in editing mode.
> >
> > On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
> > [hidden email]> wrote:
> >
> > > When choosing "edit group" from the toolbar (or otherwise), is there an
> > > "editGroup" or similar message sent that I can intercept?
> > >
> > > In particular, I want to set a flag that my auto-save routines can
> catch,
> > > as saving while in edit group knocks that mod out, sometimes with
> oddball
> > > effects.
> > >
> > >
> > >
> > > --
> > > Dr. Richard E. Hawkins, Esq.
> > > (702) 508-8462
> > > _______________________________________________
> > > use-livecode mailing list
> > > [hidden email]
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
Now that I think about it a little more, I could figure it out as long as
there is a control in the group...

local tID, tGroup
put the id of control 1 into tID
stop editing
put the long id of the owner of control id tID into tGroup

later on, should be able to...

start editing tGroup

At least it works in the message box.

Brian

On Tue, Sep 18, 2018 at 10:26 PM Tom Glod via use-livecode <
[hidden email]> wrote:

> hmmm.... i'm sure there is some way to find out .... the engine has to know
> which group is being edited...just have to find the engine property
> ....could be an undocumented one.  Isn't there a stack that lists engine
> properties?  haven't seen it in years but I think I recall something like
> that.
>
> maybe someone will know offhand.
>
> On Tue, Sep 18, 2018 at 11:16 PM Brian Milby via use-livecode <
> [hidden email]> wrote:
>
> > I ran into this with ScriptTracker. I just disable the mode there. I
> > looked at how to preserve and restore the setting, but didn’t find it at
> > the time. I could tell if the mode was enabled, but not which background
> > was being edited to restore afterwards.
> >
> > Thanks,
> > Brian
> > On Sep 18, 2018, 9:30 PM -0500, Tom Glod via use-livecode <
> > [hidden email]>, wrote:
> > > I don't think there is a msg but
> > >
> > > the editbg of stack "Mystack" = true when in editing mode.
> > >
> > > On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
> > > [hidden email]> wrote:
> > >
> > > > When choosing "edit group" from the toolbar (or otherwise), is there
> an
> > > > "editGroup" or similar message sent that I can intercept?
> > > >
> > > > In particular, I want to set a flag that my auto-save routines can
> > catch,
> > > > as saving while in edit group knocks that mod out, sometimes with
> > oddball
> > > > effects.
> > > >
> > > >
> > > >
> > > > --
> > > > Dr. Richard E. Hawkins, Esq.
> > > > (702) 508-8462
> > > > _______________________________________________
> > > > use-livecode mailing list
> > > > [hidden email]
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >
> > > _______________________________________________
> > > use-livecode mailing list
> > > [hidden email]
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
nice workaround.

On Wed, Sep 19, 2018 at 12:11 AM Brian Milby via use-livecode <
[hidden email]> wrote:

> Now that I think about it a little more, I could figure it out as long as
> there is a control in the group...
>
> local tID, tGroup
> put the id of control 1 into tID
> stop editing
> put the long id of the owner of control id tID into tGroup
>
> later on, should be able to...
>
> start editing tGroup
>
> At least it works in the message box.
>
> Brian
>
> On Tue, Sep 18, 2018 at 10:26 PM Tom Glod via use-livecode <
> [hidden email]> wrote:
>
> > hmmm.... i'm sure there is some way to find out .... the engine has to
> know
> > which group is being edited...just have to find the engine property
> > ....could be an undocumented one.  Isn't there a stack that lists engine
> > properties?  haven't seen it in years but I think I recall something like
> > that.
> >
> > maybe someone will know offhand.
> >
> > On Tue, Sep 18, 2018 at 11:16 PM Brian Milby via use-livecode <
> > [hidden email]> wrote:
> >
> > > I ran into this with ScriptTracker. I just disable the mode there. I
> > > looked at how to preserve and restore the setting, but didn’t find it
> at
> > > the time. I could tell if the mode was enabled, but not which
> background
> > > was being edited to restore afterwards.
> > >
> > > Thanks,
> > > Brian
> > > On Sep 18, 2018, 9:30 PM -0500, Tom Glod via use-livecode <
> > > [hidden email]>, wrote:
> > > > I don't think there is a msg but
> > > >
> > > > the editbg of stack "Mystack" = true when in editing mode.
> > > >
> > > > On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
> > > > [hidden email]> wrote:
> > > >
> > > > > When choosing "edit group" from the toolbar (or otherwise), is
> there
> > an
> > > > > "editGroup" or similar message sent that I can intercept?
> > > > >
> > > > > In particular, I want to set a flag that my auto-save routines can
> > > catch,
> > > > > as saving while in edit group knocks that mod out, sometimes with
> > > oddball
> > > > > effects.
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Dr. Richard E. Hawkins, Esq.
> > > > > (702) 508-8462
> > > > > _______________________________________________
> > > > > use-livecode mailing list
> > > > > [hidden email]
> > > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > > subscription preferences:
> > > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > > >
> > > > _______________________________________________
> > > > use-livecode mailing list
> > > > [hidden email]
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > _______________________________________________
> > > use-livecode mailing list
> > > [hidden email]
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
In reply to this post by Stephen MacLean via use-livecode
The editBackground property is global, you're either in it or not. So just
setting editBackground to false will pop you out of it, and won't do
anything if it's already false. Given the use case, that's probably enough.

--
Jacqueline Landman Gay | [hidden email]
HyperActive Software | http://www.hyperactivesw.com
On September 18, 2018 11:13:33 PM Brian Milby via use-livecode
<[hidden email]> wrote:

> Now that I think about it a little more, I could figure it out as long as
> there is a control in the group...
>
> local tID, tGroup
> put the id of control 1 into tID
> stop editing
> put the long id of the owner of control id tID into tGroup
>
> later on, should be able to...
>
> start editing tGroup
>
> At least it works in the message box.
>
> Brian
>
> On Tue, Sep 18, 2018 at 10:26 PM Tom Glod via use-livecode <
> [hidden email]> wrote:
>
>> hmmm.... i'm sure there is some way to find out .... the engine has to know
>> which group is being edited...just have to find the engine property
>> ....could be an undocumented one.  Isn't there a stack that lists engine
>> properties?  haven't seen it in years but I think I recall something like
>> that.
>>
>> maybe someone will know offhand.
>>
>> On Tue, Sep 18, 2018 at 11:16 PM Brian Milby via use-livecode <
>> [hidden email]> wrote:
>>
>> > I ran into this with ScriptTracker. I just disable the mode there. I
>> > looked at how to preserve and restore the setting, but didn’t find it at
>> > the time. I could tell if the mode was enabled, but not which background
>> > was being edited to restore afterwards.
>> >
>> > Thanks,
>> > Brian
>> > On Sep 18, 2018, 9:30 PM -0500, Tom Glod via use-livecode <
>> > [hidden email]>, wrote:
>> > > I don't think there is a msg but
>> > >
>> > > the editbg of stack "Mystack" = true when in editing mode.
>> > >
>> > > On Tue, Sep 18, 2018 at 7:18 PM doc hawk via use-livecode <
>> > > [hidden email]> wrote:
>> > >
>> > > > When choosing "edit group" from the toolbar (or otherwise), is there
>> an
>> > > > "editGroup" or similar message sent that I can intercept?
>> > > >
>> > > > In particular, I want to set a flag that my auto-save routines can
>> > catch,
>> > > > as saving while in edit group knocks that mod out, sometimes with
>> > oddball
>> > > > effects.
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Dr. Richard E. Hawkins, Esq.
>> > > > (702) 508-8462
>> > > > _______________________________________________
>> > > > use-livecode mailing list
>> > > > [hidden email]
>> > > > Please visit this url to subscribe, unsubscribe and manage your
>> > > > subscription preferences:
>> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
>> > > >
>> > > _______________________________________________
>> > > use-livecode mailing list
>> > > [hidden email]
>> > > Please visit this url to subscribe, unsubscribe and manage your
>> > subscription preferences:
>> > > http://lists.runrev.com/mailman/listinfo/use-livecode
>> > _______________________________________________
>> > use-livecode mailing list
>> > [hidden email]
>> > Please visit this url to subscribe, unsubscribe and manage your
>> > subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: editGroup message?

Stephen MacLean via use-livecode
In reply to this post by Stephen MacLean via use-livecode
@Brian (using the complement of your approach):

IIRC, if there is one object outside of the group
then this doesn't exist while the group is edited.

So if there is no btn "TOP" (outside of the group)
then the group is in edit mode -- any group.

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode