wxPopupTransientWindow with controls on it

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
Satervalley
Knows some wx things
Knows some wx things
Posts: 47
Joined: Fri Dec 14, 2007 1:10 am

wxPopupTransientWindow with controls on it

Post by Satervalley » Wed Oct 13, 2010 12:00 pm

Hi, friends.
I have a listbox and a textctrl on a panel which is a child of a wxPopupTransientWindow.
In a dialog, if a button clicked, the wxPopupTransientWindow popuped by calling it Popup function. I find that the listbox and textctrl both can not get focus and can not answer mouse and key events. thank u for help me solve this problem.

Satervalley
Knows some wx things
Knows some wx things
Posts: 47
Joined: Fri Dec 14, 2007 1:10 am

Post by Satervalley » Wed Oct 13, 2010 2:27 pm

my wxWidgets version is 2.9.1, os is windows 7.
If it's imporssible to make listbox and textctrl work correctly on wxPopupTransientWindow, any hint for implements similar function from scratch is appreciated.

eranif
Moderator
Moderator
Posts: 606
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif » Wed Oct 13, 2010 5:02 pm

Have a look at the wxWidgets samples, they contains a demo for using wxPopupTransientWindow with controls on it (samples/popup)

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org

Satervalley
Knows some wx things
Knows some wx things
Posts: 47
Joined: Fri Dec 14, 2007 1:10 am

Post by Satervalley » Thu Oct 14, 2010 1:14 am

eranif wrote:Have a look at the wxWidgets samples, they contains a demo for using wxPopupTransientWindow with controls on it (samples/popup)

Eran
Thank you, Eran!
I've already compiled and run the sample before I post this question. As a result, the button and spin control works normally, but the edit control can not accept key types.

gunterkoenigsmann
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue May 31, 2016 11:30 am

Re: wxPopupTransientWindow with controls on it

Post by gunterkoenigsmann » Sat Jun 25, 2016 7:29 am

Found another reference to this problem: http://trac.wxwidgets.org/ticket/13740

Post Reply