Inputs and Cursor in wxPopup(Transient)Window

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Rick
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Sep 02, 2016 12:26 pm

Inputs and Cursor in wxPopup(Transient)Window

Post by Rick » Thu Jul 11, 2019 6:11 pm

Hello,

I built a little popup using wxPopupTransientWindow containing wxTextCtrls. For whatever reason, the text controls show no cursor when they have focus. They work but you don't see the position you might want to insert text.
I added a wxTextCtrl to the popup sample and it has the same problem. Is there a way to fix this? Using wxWidgets 3.0.4 on Debian 10.

Thanks.
Last edited by Rick on Thu Jul 11, 2019 7:08 pm, edited 1 time in total.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1969
Joined: Sun Jan 03, 2010 5:45 pm

Re: Inputs and Cursor in wxPopup(Transient)Window

Post by PB » Thu Jul 11, 2019 6:53 pm

You did not say which platform are you using. I could fix similar problem on MSW with calling UseAltPopupWindow() before calling SetPopupControl():
viewtopic.php?t=45076#p186665

BTW, IIRC, wxPopupWindow was significantly changed in the master, it had quite some time issues with input and or focus...

EDIT
Ooops, sorry I confused the controls, the first paragraph refers to another control and is of no use.

However, the second one is true (but perhaps still of no use to you), see the new flag
https://docs.wxwidgets.org/trunk/classw ... indow.html

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

Re: Inputs and Cursor in wxPopup(Transient)Window

Post by ONEEYEMAN » Thu Jul 11, 2019 8:38 pm

Hi,
Can you reproduce this with wxWidgets master freshly cloned from Git?

Thank you.

Post Reply