Search found 8 matches

by lazy_banana
Wed Jan 03, 2018 3:42 am
Forum: Component Writing
Topic: wxDataViewCustomRenderer focus problem
Replies: 7
Views: 17847

Re: wxDataViewCustomRenderer focus problem

I solved it using EVT_CHILD_FOCUS events and catching EVT_KILL_FOCUS in the focused child. The idea is that when a child is focused the RecordEditor will get a EVT_CHILD_FOCUS. If a window outside of the RecordEditor is focused then the focused child will receive EVT_KILL_FOCUS. If a child receives ...
by lazy_banana
Tue Jan 02, 2018 10:39 pm
Forum: Component Writing
Topic: wxDataViewCustomRenderer focus problem
Replies: 7
Views: 17847

Re: wxDataViewCustomRenderer focus problem

EVT_DATAVIEW_ITEM_EDITING_DONE is a consequence of EVT_KILL_FOCUS or Return or Escape key pressed so I can't veto EVT_KILL_FOCUS based on that flag. I have tried inheriting from the wxPopupTransientWindow as a base class and needed to add the following at the end of the constructor of RecordEditor: ...
by lazy_banana
Tue Jan 02, 2018 7:20 pm
Forum: Component Writing
Topic: wxDataViewCustomRenderer focus problem
Replies: 7
Views: 17847

Re: wxDataViewCustomRenderer focus problem

But when the user clicks outside of the RecordEditor it has to hide the editor to work properly. So EVT_KILL_FOCUS should be vetoed only when a child of RecordEditor is focused. I will try to monitor the focus events on RecordEditor and maybe I can come up with a way to do this but it feels like a h...
by lazy_banana
Sun Dec 31, 2017 7:50 pm
Forum: Component Writing
Topic: wxDataViewCustomRenderer focus problem
Replies: 7
Views: 17847

Re: wxDataViewCustomRenderer focus problem

Yes, I have a class which inherits from wxDataViewCustomRenderer and it returns an instance of RecordEditor in the CreateEditorCtrl method. Everything is working as expected except this problem with focus.
by lazy_banana
Sat Dec 30, 2017 6:04 pm
Forum: Component Writing
Topic: wxDataViewCustomRenderer focus problem
Replies: 7
Views: 17847

wxDataViewCustomRenderer focus problem

Hello, I'm trying to write a custom data view renderer which contains a choice box and 3 other controls. This composite control is called RecordEditor. I tried implementing it by inheriting either from wxPanel or wxControl and I've ran against those issues: When inheriting from wxControl clicking on...
by lazy_banana
Thu Jul 10, 2014 4:53 pm
Forum: C++ Development
Topic: wxFrame logger blocks application sutdown
Replies: 3
Views: 1474

Re: wxFrame logger blocks application sutdown

You can use wxFrame, but you just make sure it gets destroyed when you want to quit your application. Option 1) Call wxApp->ExitMainLoop(). This will terminate your application unconditionally 2) Call Destroy() on the logging frame before you close the main frame. Option 1 I think would be the best...
by lazy_banana
Thu Jul 10, 2014 1:14 pm
Forum: C++ Development
Topic: wxFrame logger blocks application sutdown
Replies: 3
Views: 1474

wxFrame logger blocks application sutdown

I'm trying to implement a logger that displays a window(wxFrame) with a wxTextCtrl that contains the logged messages. The logger window is by default hidden and whenever a log message is received it is printed to the wxTectCtrl and the wxFrame is shown. Attempting to close the window just hides it b...
by lazy_banana
Sun Sep 09, 2012 11:41 am
Forum: Platform Related Issues
Topic: MSW huge release dll and statically linking libstdc++
Replies: 1
Views: 1766

MSW huge release dll and statically linking libstdc++

Hi, i downloaded the latest stable Windows release(2.8.12) and used msys for building using the following command lines: ./configure --with-msw --enable-shared --disable-compat26 --enable-exceptions --enable-unicode --enable-mousewheel --enable-controls --enable-commondlg BUILD=release ... make The ...