WxtextCtrl focux in LInux

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Site Admin
Site Admin
Posts: 3989
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: WxtextCtrl focux in LInux

Post by DavidHart » Mon Jul 02, 2018 10:01 am

I've tested your altered 'minimal' sample here (LXDE on debian stretch). It probably worked as intended, but the pop-up panel is blank so it's hard to be sure. I therefore added a statictext:

Code: Select all

PanelPopUp::PanelPopUp(wxWindow *window):wxPanel(window)
  wxStaticText* st = new wxStaticText(this, wxID_ANY, "Test");
  wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
  sizer->Add(st, 1, wxEXPAND);
(Note the use of code-tags.)

I can now see the word 'Test' when I type.

Is that what happens for you? If so, please explain why you think you have a problem. If not, please give a full description of your setup e.g. your desktop environment, distro and version.

In your real code you said you use wxMiniFrame. That is a much better choice than wxPanel, which is not a proper top-level window. Perhaps you should have used a wxMiniFrame in the code you attached...

Part Of The Furniture
Part Of The Furniture
Posts: 4252
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: WxtextCtrl focux in LInux

Post by ONEEYEMAN » Mon Jul 02, 2018 2:24 pm

Could you please follow David's instruction and just insert the unified diff inside the "code" tags?

Thank you.

Earned a small fee
Earned a small fee
Posts: 10
Joined: Thu May 10, 2018 12:47 pm

Re: WxtextCtrl focux in LInux

Post by Mounika » Mon Jul 09, 2018 6:20 am

Use wxpanel in place of wxminiframe , focus of the text control is working properly

Post Reply