John Horn (Home) wrote
> I have a project that basically has a navigation window ontop of the main
> stage window. I want to run the projector itself within a window. THe
> problem is I can click and drag the main window out from under the
> navigation window, which is a bad thing. Also if another window for
> instance an error window pops up then the navigation window moves behind the
> main window. Any suggestion?
>
> Thanks,
> John
Hi John.
You could try a combination of "the frontWindow" and "moveToFront" to keep
the navigation window on type. For example, you could create a little object
that sits in the actor list monitor which window is the front most, and then
move the nav window to the front (I've not tried this, you might have to
check how it copes with dialogs and other windows)
----- script "WindowMgr" (email lingo)
property myWindowToWatch
on new me, pWindowToKeepOnTop
myWindowToWatch = pWindowToKeepOnTop
(the actorList) append(me)
return me
end
on destroy me
repeat while (the actorList).getOne(me)
(the actorList).deleteOne(me)
end repeat
return 0
end
on stepFrame me
if the frontWindow <> myWindowToWatch then
window(myWindowToWatch).moveToFront()
end if
end
------
Or, maybe an event driven approach might be simpler - eg
-- movie script in the "nav" movie window
on deactiveWindow
window("nav").moveToFront()
end
Luke
--
__________________________________________________________________________
Mecca Medialight Pty Ltd
Mecca Medialight: Medialight Sound Studio:
111 Moor Street 1 Bakehouse Lane
Fitzroy, Vic. 3065 North Fitzroy, Vic. 3068
Tel +613 9416 2033 Tel +613 9416 2033
Fax +613 9416 2055 Fax +613 9416 2055
http://www.medialight.com.au
__________________________________________________________________________
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]