Top most Window

Hi All,
My application enables the user to open a number of windows, I was hoping that there was a way of determining which window is topmost, I’ve tried

currentcontroller.getWindow()

but as I need this in my onMenuSelection code it always points to the parent window the menu is part of.
Is it possible to do this?
Many thanks
Caroline

i think that should work… controller.getWindow() should return you the window the controller is in.
And currentcontroller is the main form that is showing in the current window.
So you should get that window.