wxDatePickerCtrl - failed in OnDynamicBind()

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.
Post Reply
wxuser2
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Feb 21, 2017 8:30 pm

wxDatePickerCtrl - failed in OnDynamicBind()

Post by wxuser2 »

Hello, I switched with my project to wxWidgets version 3.1.0 and now I'm getting error in wxDatePickerCtrl constructor:

Code: Select all

../src/common/textcmn.cpp(1206): assert ""HasFlag(0x0400)"" failed in OnDynamicBind(): Must have wxTE_PROCESS_ENTER for wxEVT_TEXT_ENTER to work
I assumed that the problem is in my implementation, but then I tried samples/calendar from wx installation and got same error when chose menu Data picker -> Choose date... I built wxWidgets with options:

Code: Select all

../configure --enable-unicode --prefix=$(pwd) --with-opengl
I am on Ubuntu 14.04 LTS. Do you have any idea how to solve problem?

Thanks,
Last edited by catalin on Tue Feb 21, 2017 9:36 pm, edited 1 time in total.
Reason: made the command and error more readable
catalin
Moderator
Moderator
Posts: 1618
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: wxDatePickerCtrl - failed in OnDynamicBind()

Post by catalin »

FWIW that assert does not happen under MSW in calendar sample, with native or generic date picker.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxDatePickerCtrl - failed in OnDynamicBind()

Post by doublemax »

(Moved to "Platform related" as it doesn't happen under Windows)

@wxuser2
Can you try again with the latest version from GIT?
Use the source, Luke!
wxuser2
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Feb 21, 2017 8:30 pm

Re: wxDatePickerCtrl - failed in OnDynamicBind()

Post by wxuser2 »

So I cloned git repository, built wxWidgets with same configured options (now I have version 3.1.1) and my project as well as samples/calendar work fine.
Post Reply