Discussion:
Bring window to front on desktop
FlexibleLearning
2010-11-14 12:18:46 UTC
Permalink
Anyone solved how to bring a stack window to the top on the desktop after a
file dragDrop?

1. drop files
2. bring stack window to top on desktop (ie. in front of the OS source drag
window)
3. show a modal answer dlog
4. carry on

What happens is that the source OS window can obscure the modal answer dlog
so it looks as if the program has hung. Actually there is a window waiting
to be clicked!

Tried these before showing the modal:
- Focus on/ go/ etc do not change the overall window layering.
- Set the style to modeless, but the window runs through its openstack
routine even with 'lock messages', and is still not layered on top anyway.
- Temporarily setting the systemWindow of the stack to true works, but it
then obscures the modal so user is locked out.

I have looked in the archives for a Mac/Win solution and didn't find
anything, except that others have had a problem also.

MSWord does it, so it must be do-able (perhaps an external would be needed
for LiveCode?).

Hugh Senior
FLCo
Marty Knapp
2010-11-14 16:57:30 UTC
Permalink
On Mac I use this to bring the app to the front (but don't have an
answer for windows):

put "tell application" && quote & "<application name>" & quote & cr &
"activate" & cr & "end tell" into x
do x as AppleScript

Marty Knapp
Post by FlexibleLearning
Anyone solved how to bring a stack window to the top on the desktop after a
file dragDrop?
1. drop files
2. bring stack window to top on desktop (ie. in front of the OS source drag
window)
3. show a modal answer dlog
4. carry on
What happens is that the source OS window can obscure the modal answer dlog
so it looks as if the program has hung. Actually there is a window waiting
to be clicked!
- Focus on/ go/ etc do not change the overall window layering.
- Set the style to modeless, but the window runs through its openstack
routine even with 'lock messages', and is still not layered on top anyway.
- Temporarily setting the systemWindow of the stack to true works, but it
then obscures the modal so user is locked out.
I have looked in the archives for a Mac/Win solution and didn't find
anything, except that others have had a problem also.
MSWord does it, so it must be do-able (perhaps an external would be needed
for LiveCode?).
Hugh Senior
FLCo
_______________________________________________
use-revolution mailing list
http://lists.runrev.com/mailman/listinfo/use-revolution
FlexibleLearning
2010-11-14 18:51:34 UTC
Permalink
Thank you Marty. Will try this and wait to see if there is a solution for
Windows.

Hugh Senior
FLCo

-------------------

On Mac I use this to bring the app to the front (but don't have an
answer for windows):

put "tell application" && quote & "<application name>" & quote & cr &
"activate" & cr & "end tell" into x
do x as AppleScript

Marty Knapp
J. Landman Gay
2010-11-14 20:28:22 UTC
Permalink
Post by FlexibleLearning
Anyone solved how to bring a stack window to the top on the desktop after a
file dragDrop?
1. drop files
2. bring stack window to top on desktop (ie. in front of the OS source drag
window)
3. show a modal answer dlog
4. carry on
One approach I might take would be to check the suspended property and
wait until the user brings the stack to the front before activating the
modal dialog. I think HIG says you shouldn't reorder windows for the
user, but I'd need to go read up on that.
--
Jacqueline Landman Gay | ***@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Loading...