Bringing Smart Client Window to front

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Bringing Smart Client Window to front

Postby LXS » Fri Jun 09, 2017 3:37 pm

Hi,

we have the following customer request (Smart Client on Mac):

Is it possible to bring the Servoy Smart Client Window to the front, when the customer is currently in another application (e.g. Word etc)?

I've already tried this on my Windows machine, but it did not work:

Code: Select all
var window = application.getActiveWindow();
if (window != null) {
   window.toFront();
}


Are there any other ways?

Usecase: Bring Servoy to front on incoming phone call

Thank you very much!

Greetings,
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am

Re: Bringing Smart Client Window to front

Postby LXS » Tue Jun 13, 2017 9:31 am

No idea? Is it possible at all?
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am

Re: Bringing Smart Client Window to front

Postby Bernd.N » Thu Jun 15, 2017 11:37 am

In case there is no way with standard Servoy, it might be possible to create a tiny plugin that does this job.
There are several plugin experts who could answer that question.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Bringing Smart Client Window to front

Postby jcompagner » Tue Jun 20, 2017 11:39 am

i don't think windows allows you really to do that.
That window.toFront() already does what java api gives us as far as i know
But for a long time already the only thing that happens is that it brings attention to the user (the taskbar lights it up) but it will not force everything over the current window that the user is showing.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Bringing Smart Client Window to front

Postby Bernd.N » Tue Jun 20, 2017 12:56 pm

I am not an api expert, but Google brings some links when asking for "windows api bring window to front" and for "mac api bring window to front".
Maybe that could be used for a plugin, possibly by circumventing Java, if that is allowed at all.

"java window to front" also brings several solutions for Java. It could be that some of them work better than window.toFront().
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 8 guests