Top most Window

Questions and answers for designing and implementing forms in Servoy

Top most Window

Postby caroline.j » Thu Mar 22, 2012 7:05 pm

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
Code: Select all
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
caroline.j
 
Posts: 81
Joined: Wed Feb 08, 2012 9:25 pm

Re: Top most Window

Postby jcompagner » Mon Mar 26, 2012 4:55 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Forms

Who is online

Users browsing this forum: No registered users and 7 guests