Discussion:
[Foxgui-users] dismissing popup menu (FXMenuPane)
John Selverian
2017-02-01 22:57:02 UTC
Permalink
I have the following scenario:



When you click on a FXListBox it displays a FXMenuPane with some
FXMenuCommand on it. When you click on one of the FXMenuCommand it shows a
new window. After closing this window the FXMenuPane is still showing until
you click outside of it or click the dismiss command I have.



I would like to dismiss the FXMenuPane as soon as you click on one of the
FXMenuCommand. Is there a way to do this?



Kind regards,



js
John Selverian
2017-02-02 00:17:45 UTC
Permalink
The problem is that I put the FXMenuCommand into an FXMatrix for formatting.
If I keep them out of the FXMatrix and just put them in the FXMenuPane it
works as excepted. Is there a way to put them in the FXMatrix and have it
work as intended?





From: JS
Sent: Wednesday, February 1, 2017 5:57 PM
To: foxgui-***@lists.sourceforge.net
Subject: [Foxgui-users] dismissing popup menu (FXMenuPane)



I have the following scenario:



When you click on a FXListBox it displays a FXMenuPane with some
FXMenuCommand on it. When you click on one of the FXMenuCommand it shows a
new window. After closing this window the FXMenuPane is still showing until
you click outside of it or click the dismiss command I have.



I would like to dismiss the FXMenuPane as soon as you click on one of the
FXMenuCommand. Is there a way to do this?



Kind regards,



js
John Selverian
2017-02-02 00:45:36 UTC
Permalink
I added



getApp()->stopModal(popUpPane);



right before the new window opens and the popup is closed.







From: JS
Sent: Wednesday, February 1, 2017 7:18 PM
To: foxgui-***@lists.sourceforge.net
Subject: Re: [Foxgui-users] dismissing popup menu (FXMenuPane)



The problem is that I put the FXMenuCommand into an FXMatrix for formatting.
If I keep them out of the FXMatrix and just put them in the FXMenuPane it
works as excepted. Is there a way to put them in the FXMatrix and have it
work as intended?





From: JS
Sent: Wednesday, February 1, 2017 5:57 PM
To: foxgui-***@lists.sourceforge.net
<mailto:foxgui-***@lists.sourceforge.net>
Subject: [Foxgui-users] dismissing popup menu (FXMenuPane)



I have the following scenario:



When you click on a FXListBox it displays a FXMenuPane with some
FXMenuCommand on it. When you click on one of the FXMenuCommand it shows a
new window. After closing this window the FXMenuPane is still showing until
you click outside of it or click the dismiss command I have.



I would like to dismiss the FXMenuPane as soon as you click on one of the
FXMenuCommand. Is there a way to do this?



Kind regards,



js
JVZ
2017-02-03 17:07:24 UTC
Permalink
On Wed, 1 Feb 2017 17:57:02 -0500
Post by John Selverian
When you click on a FXListBox it displays a FXMenuPane with some
FXMenuCommand on it. When you click on one of the FXMenuCommand it shows a
new window. After closing this window the FXMenuPane is still showing until
you click outside of it or click the dismiss command I have.
I would like to dismiss the FXMenuPane as soon as you click on one of the
FXMenuCommand. Is there a way to do this?
When the command is invoked, the menu should be unposted. However, it could
be the ghost of it is still visible if the window doesn't immediately get
repainted.

Could something like this be going on? Its hard to tell from the info you
provide.


-- JVZ



+----------------------------------------------------------------------------+
| Copyright (C) 11:00 02/ 3/2017 Jeroen van der Zijp. All Rights Reserved. |
+----------------------------------------------------------------------------+
Loading...