wxWebView in a popup window

20 views
Skip to first unread message

Allonii

unread,
Mar 30, 2012, 12:14:33 PM3/30/12
to wx-dev
Hello!

I'm currently trying to implement a UI rich autocomplete functionality
for wxtextctrl. I have tried wxPopupWindow, wxPopupTransientWindow and
wxComboCtrl but the common problem with these windows is that the
wxWebView does not receive any key events, so there is no way to get
the UP or DOWN key. Now wxComboCtrl seems to get this to work with a
list or tree control, But the source code seems to indicate that the
key events are only forwarded.

I tried a wxFrame without caption then the wxWebView got the key
events but this will create another problem since wxFRAME_NO_TASKBAR
will not work under mac.

So my question, is there a way to make wxPopupWindow behave more like
wxFrame and forward the key events?
(Setting up EVT_KEY_*, EVT_CHAR and EVT_SET_FOCUS and forwarding them
to wxWebView does not work.)

Thanks
Reply all
Reply to author
Forward
0 new messages