Discussion:
[Foxgui-users] main window not active at start up
John Selverian
2017-06-06 15:25:50 UTC
Permalink
I have several fox apps. With some of them, when you double-click the icon
the program starts and the main window is active. In others, the main window
is not active and the user must click on it to make it active. I can't find
any differences between my apps. Any ideas what could be causing this?





Kind regards,



js
JVZ
2017-06-06 17:24:53 UTC
Permalink
This may be window manager related.

I would recommend calling setFocus() to make sure the focus is on the desired widget by default.

Call it *after* realizing the widgets.
Post by John Selverian
I have several fox apps. With some of them, when you double-click the icon
the program starts and the main window is active. In others, the main window
is not active and the user must click on it to make it active. I can't find
any differences between my apps. Any ideas what could be causing this?
Kind regards,
js
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
John Selverian
2017-06-06 17:34:23 UTC
Permalink
I call setFocus() on a FXTextField. Is does set the focus but I still have to click on the window to make it active.



I also tried this->setFocus(), it don’t work either.





From: JVZ [mailto:***@gmail.com]
Sent: Tuesday, June 6, 2017 1:25 PM
To: foxgui-***@lists.sourceforge.net; John Selverian <***@jahm.com>
Subject: Re: [Foxgui-users] main window not active at start up



This may be window manager related.

I would recommend calling setFocus() to make sure the focus is on the desired widget by default.

Call it *after* realizing the widgets.

On June 6, 2017 10:25:50 AM CDT, John Selverian <***@jahm.com <mailto:***@jahm.com> > wrote:



I have several fox apps. With some of them, when you double-click the icon the program starts and the main window is active. In others, the main window is not active and the user must click on it to make it active. I can’t find any differences between my apps. Any ideas what could be causing this?





Kind regards,



js
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Loading...