Page 1 of 1

Can I RaiseWindows to Stay on Top of other Apps

Posted: Mon Feb 20, 2012 10:29 pm
by BarrySumpter
Hi all,

In Windows I can raise my app to stay on top of other apps.
i.e. if I set an api in windows for my app to "stay on top" no other app can cover it or move in front of it.
Is there a way to do this with LiveCode on Mac OS X Lion?

I've used the RaiseWindows which kind of pulls all the related stacks in my LiveCode project to the front until another app moves in front.

I'd like to RaiseWindows permenantly.

tia

Just found an old app with a tick box labled Palette This Stack

Code: Select all

on mouseup
   if the mode of this stack is 4 then   -- 1 = editable window    4 = palette
     toplevel this stack   -- Opens a stack in an editable (LiveCode IDE) window.  
   else
     palette this stack    -- Display a stack in a palette window
   end if
end mouseup

Re: Can I RaiseWindows to Stay on Top of other Apps

Posted: Mon Feb 20, 2012 10:32 pm
by FourthWorld
See the systemWindow stack property. Seems to work well on Mac, Win, and Linux.

Re: Can I RaiseWindows to Stay on Top of other Apps

Posted: Mon Feb 20, 2012 10:40 pm
by BarrySumpter
Wow! Thanks for that super quick response time.

Absolutely Brilliant!

Much appreciated.

Re: Can I RaiseWindows to Stay on Top of other Apps

Posted: Wed Feb 22, 2012 5:04 am
by FourthWorld
I just ran a quick test on OS X Lion, OS X Snow Leopard, Win XP, Win Vista, and Ubuntu, and it always works with this line:

set the systemWindow of this stack to true

How did you test it?

Re: Can I RaiseWindows to Stay on Top of other Apps

Posted: Wed Feb 22, 2012 5:17 am
by BarrySumpter
it was me.
back to my versioning issues again.
I'm sure they'll be presenting the wrong version of my ulogy at my funeral.