Differentiating a substack from a mainstack

Peter Haworth pete at lcsql.com
Thu Nov 21 10:57:56 EST 2013


Good idea,  thanks.  What's rIDE?

Pete
lcSQL Software
On Nov 20, 2013 9:17 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:

> Pete-
>
> Wednesday, November 20, 2013, 6:46:10 PM, you wrote:
>
> > On Wed, Nov 20, 2013 at 5:40 PM, Mark Wieder <mwieder at ahsoftware.net>
> wrote:
>
> >> You *could* get really tricky and hijack the menu...
>
>
> > That gave me an idea which seems to work - check the menuhistory of the
> > File menu button of revMenuBar in openStack.  Seems to work, 1=mainstack,
> > 2=substack of the topstack.
>
> > Is that tricky enough?
>
> That's pretty clever. I didn't think of doing it that way.
> When I mess around with the menubar (or any of the IDE stacks) I try
> to bracket the code with stuff to make sure what environment I'm in.
> Your menubar hack should work with everything to date, but if the
> menubar changes in the future or you want this to work with rIDE you
> may have to code something different. Along the lines of:
>
> function getIDEStackName pRevIDEStackName
>   if there is a stack pRevIDEStackName then
>     return pRevIDEStackName
>   else
>     switch pRevIDEStackName
>       case "revmenubar"
>         return "someOtherMenubar"
>       break
>       case "revTools"
>         return "someOtherToolPalette"
>       break
>       case whatever
>         -- etc
>     end switch
>   end if
> end getIDEStackName
>
>
> --
> -Mark Wieder
>  ahsoftware at gmail.com
>
>
> _______________________________________________
> 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