Can I RaiseWindows to Stay on Top of other Apps

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Can I RaiseWindows to Stay on Top of other Apps

Post by BarrySumpter » Mon Feb 20, 2012 10:29 pm

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
Last edited by BarrySumpter on Mon Feb 20, 2012 10:39 pm, edited 1 time in total.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Mon Feb 20, 2012 10:32 pm

See the systemWindow stack property. Seems to work well on Mac, Win, and Linux.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

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

Post by BarrySumpter » Mon Feb 20, 2012 10:40 pm

Wow! Thanks for that super quick response time.

Absolutely Brilliant!

Much appreciated.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Wed Feb 22, 2012 5:04 am

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

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

Post by BarrySumpter » Wed Feb 22, 2012 5:17 am

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.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply