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 »

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 »

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: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

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 »

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: 14
Joined: Tue May 31, 2016 11:30 am

Re: wxPopupTransientWindow with controls on it

Post by gunterkoenigsmann »

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