Real Software Forums
http://forums.realsoftware.com/

MBSOverlay floating over everything, not just my application
http://forums.realsoftware.com/viewtopic.php?f=20&t=43769
Page 1 of 1

Author:  Hamish [ Thu Apr 26, 2012 8:45 am ]
Post subject:  MBSOverlay floating over everything, not just my application

Hi -
I'm trying to make an overlay window with MBSOverlay which is the topmost in my application, but which doesn't float over all the other applications on my screen as well. (i.e. if I drag Safari over the top of my application, I don't want to see the little floating window over Safari.). I'm currently testing on Mac OS X Lion with Cocoa, but I'll need it to work on Windows as well.

I'm using the example of Overlay Test which comes with the MBS plugins, and in the Create method of Window1 I've changed the boolean values of the line
o=new MyOverlay(500,100,128,150,true, false)

to be all four possible combinations, but it doesn't seem to make any difference.
I'm sure it's a simple thing I'm overlooking; any pointers in the right direction received with glee.
Thanks,
Hamish

Author:  MonkeybreadSoftware [ Thu Apr 26, 2012 9:04 am ]
Post subject:  Re: MBSOverlay floating over everything, not just my applica

an overlay is globally overlaying. You could simply hide it when the app goes to background...

Greetings
Christian

Author:  Hamish [ Thu Apr 26, 2012 9:08 am ]
Post subject:  Re: MBSOverlay floating over everything, not just my applica

That'd be why I can't find out how to do it, then :)
Thanks for the tip and the speedy reply, Christian.
H

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/