I'm trying to have a wxtextctrl which accept only numbers, with a method getint() to get the number.
It seems I found just that:
viewtopic.php?t=15978
However I tried to add
Code: Select all
#include "wxNumberCtrl.h"
#include "wxNumberCtrl.cpp"
And edited my wxTextCtrl to use wxNumberCtrl class. But on build I have an error :
Code: Select all
C:\wxWidgets-3.1.2\include\wx\rtti.h|165|error: redefinition of 'wxClassInfo wxNumberCtrl::ms_classInfo'|
I guess maybe this wxNumberCtrl dating from 2007 may be broken by recent updates? Feel like this could be added to wxwidget basic stuff as inputing a number is quite usual.
What is the easier way around this?