keeping stack in front

Thomas McGrath III mcgrath3 at mac.com
Wed Feb 27 12:10:59 EST 2013


Hello fellow heroes,

I am trying to modeless a substack and yet get some control over keeping it in front until it is dismissed. Like a modal but I can't use modal.
I put a mouseUp handler in the main stack to see if the substack is open and if so prevent the user from clicking in the main stack but this won't work if they can reach a control or if they select the decorations of the main stack.

In the main stack:
on mouseUp
     if the openStacks contains "SubStack" then
          modeless stack "SubStack"
else
          pass mouseUp
     end if
end mouseUp


What is the better way to accomplish this?

Thanks


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com




More information about the use-livecode mailing list