Search found 33 matches

by Rick
Thu Jul 11, 2019 6:11 pm
Forum: C++ Development
Topic: Inputs and Cursor in wxPopup(Transient)Window
Replies: 2
Views: 577

Inputs and Cursor in wxPopup(Transient)Window

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....
by Rick
Sat Apr 13, 2019 9:54 am
Forum: Platform Related Issues
Topic: Key Events in wxDataViewCtrl
Replies: 8
Views: 2094

Re: Key Events in wxDataViewCtrl

I upgraded to Debian 10, installed the gtk3-dev package again and it worked. The search bar still appears though. But now the wxAcceleratorTable works and I just used another key combination (ctrl+f is still swallowed). That's good enough for now.
by Rick
Wed Apr 03, 2019 8:23 pm
Forum: Platform Related Issues
Topic: Key Events in wxDataViewCtrl
Replies: 8
Views: 2094

Re: Key Events in wxDataViewCtrl

The exact same behaviour also occurs in the sample. Also that this search bar does not appear in the wxDataViewListCtrl/TreeCtrl. I've searched the web a little and also tested it in other native linux applications (such as rhythmbox). Same behaviour except for that rhythmbox handles the ctrl+f comb...
by Rick
Wed Apr 03, 2019 8:29 am
Forum: Platform Related Issues
Topic: Key Events in wxDataViewCtrl
Replies: 8
Views: 2094

Re: Key Events in wxDataViewCtrl

I bound the control itself. In the constructor since I'm subclassing the wxDataViewCtrl.
I used a static EVT_MENU binding to check if the event raised by the wxAcceleratorTable are processed. The handler function was not called.
by Rick
Wed Apr 03, 2019 8:27 am
Forum: Platform Related Issues
Topic: xcb Unknown Sequence while processing reply
Replies: 10
Views: 3086

Re: xcb Unknown Sequence while processing reply

Hi, I did it the other way around: I'm not creating a wxThread that waits for my futue anymore. Now I'm having a loop on the main thread that waits for the future: Dao::MyThread* Dao::RunThread(int taskId, std::future<void> future, wxEvtHandler *handler) { // wxThreadDataReady event is sent from the...
by Rick
Tue Apr 02, 2019 6:45 pm
Forum: Platform Related Issues
Topic: Key Events in wxDataViewCtrl
Replies: 8
Views: 2094

Re: Key Events in wxDataViewCtrl

I bound the event listener statically and dynamically, same result.
I didn't know about the wxAcceleratorTable. I used it but the "default" text field still opens.
What event does it produce though? wxEVT_MENU?
by Rick
Tue Apr 02, 2019 8:51 am
Forum: Platform Related Issues
Topic: xcb Unknown Sequence while processing reply
Replies: 10
Views: 3086

Re: xcb Unknown Sequence while processing reply

I am aware of that. The point of passing the pointer is to explicitly send the wxThreadEvents to that EventHandler. That's literally what is done in the wxThread sample... If you find any flaws in the code I've posted above it'd be nice to point them out. E.g., is calling wxGetApp() safe from a seco...
by Rick
Mon Apr 01, 2019 9:55 am
Forum: Platform Related Issues
Topic: Key Events in wxDataViewCtrl
Replies: 8
Views: 2094

Key Events in wxDataViewCtrl

I found a strange behaviour: When using a wxDataViewCtrl and I hit CTRL+F then a little text bar opens which looks like a search bar. Entering text there does not filter and I didn't find anything in the API that would handle this. I don't know if it's the OS or WindowManager (I'm on Debian9 Gnome)....
by Rick
Mon Apr 01, 2019 9:29 am
Forum: Platform Related Issues
Topic: xcb Unknown Sequence while processing reply
Replies: 10
Views: 3086

Re: xcb Unknown Sequence while processing reply

Apart from passing the calling wxWindow/wxEventHandler to the Dao and thus to the thread (see code in OP) for using wxQueueEvent() I'm not accessing any GUI elements. I only found wxGetApp().GetFoo() in one function in the DbHelper class. Is that safe or could that cause problems (GetFoo() is a simp...
by Rick
Fri Mar 29, 2019 9:09 pm
Forum: Platform Related Issues
Topic: xcb Unknown Sequence while processing reply
Replies: 10
Views: 3086

Re: xcb Unknown Sequence while processing reply

Yes sure. Are you suggesting to modify the sample and run it like my programme to see if it crashes after X hours, too?
by Rick
Thu Mar 28, 2019 8:35 pm
Forum: Platform Related Issues
Topic: xcb Unknown Sequence while processing reply
Replies: 10
Views: 3086

xcb Unknown Sequence while processing reply

Hello, I'm having a problem with my application. When run on a terminal server which is accessed via ThinClients over X2Go I'm getting the following errors: [xcb] Unknown sequence number while processing reply [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xc...
by Rick
Sat Aug 11, 2018 8:07 pm
Forum: C++ Development
Topic: wxGetApp() in plugins / dynamic libraries
Replies: 2
Views: 958

Re: wxGetApp() in plugins / dynamic libraries

I looked into this again after quite a break. Found that some symbols were unknown to the library. Adding the flags -Wl, --export-dynamic to the compiler flags (using Netbeans, I had to add it to the linker flags) made the main programme export the symbols so that my plugin can use them. I can now s...
by Rick
Thu Apr 19, 2018 8:59 pm
Forum: C++ Development
Topic: wxGetApp() in plugins / dynamic libraries
Replies: 2
Views: 958

wxGetApp() in plugins / dynamic libraries

I'd like to create a plugin system for my application so that I can add GUIs/features dynamically. I used this example so I have two projects: The main app and the plugin. Is there a way to get access to wxGetApp() in the plugin? I've tried adding the wxDECLARE_APP(); macro (also including the heade...
by Rick
Thu Apr 05, 2018 12:44 pm
Forum: C++ Development
Topic: Client Data
Replies: 3
Views: 1016

Re: Client Data

In this specific case I use wxClientData but wanted to have a generic function to get the client data without worrying about what kind of client data it is in case I use both: template<typename T> bool DiagnoseTab::FromClntData(wxEvtHandler* handler, T & obj) { if (std::is_pointer<T>::value) { w...
by Rick
Thu Apr 05, 2018 12:35 am
Forum: C++ Development
Topic: Client Data
Replies: 3
Views: 1016

Client Data

Hi folks. Is it possible to find out whether a window has client data or a client object? // wxEvtHandler* handler ... if (handler->GetClientData()) clntData = static_cast<T *> (handler->GetClientData()); else if (handler->GetClientObject()) clntData = static_cast<T *> (handler->GetClientObject()); ...