Differentiating a substack from a mainstack
Peter Haworth
pete at lcsql.com
Thu Nov 21 11:03:26 EST 2013
Hi Monte,
I am trapping mainstackhanged for other reasons but unfortunately it
happens too late for this particular purpose. I like the idea of setting a
behavior on IDE objects and using before / after handlers though.
Pete
lcSQL Software
On Nov 20, 2013 5:52 PM, "Monte Goulding" <monte at sweattechnologies.com>
wrote:
>
> On 21/11/2013, at 12:35 PM, Peter Haworth wrote:
>
> > Unfortunately, I need this for my lcStackBrowser plugin so I have no
> > control over setting the stack name. I think I'll just have to tell
> users
> > to use the lcStackBrowser mechanism for creating new main/substacks -
> they
> > work better any way :-)
>
> Can't you trap the mainstackChanged message in a frontScript? I'm doing
> some GIT IDE integration stuff related to lcVCS and I've been enjoying
> creating behaviors for IDE objects... in particular grandparent behaviors
> for the SE template behaviors... mouseMove toolTip git blame on on the line
> numbers is my favorite but the sheet dialog showing the log and script diff
> when you click on a log line is shaping up nicely ;-)
>
> https://dl.dropboxusercontent.com/u/11969754/PastedGraphic-1.png
> https://dl.dropboxusercontent.com/u/11969754/PastedGraphic-2.png
>
> So you could set a behavior on revFrontScript
>
> before mainstackChanged pOldStack, pNewStack
> -- whatever you need here
> end mainstackChanged
>
> Cheers
>
> --
> M E R Goulding
> Software development services
> Bespoke application development for vertical markets
>
> mergExt - There's an external for that!
>
> _______________________________________________
> 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
>
More information about the use-livecode
mailing list