1. wxLongLong and wxDateTime compilation fixed for the compilers without native
"long long" type (and some code in timercmn.cpp too) 2. wxDate and wxTime reimplemented using wxDateTime (old versions tagged as OLD_DATE_AND_TIME) 3. wxString::To(U)Long and ToDouble added and documented 4. bug with combobox in toolbar (drop down list wasn't dismissed) fixed 5. several wxDateTime::Parse() functions implemented 6. added support for coloured buttons under MSW (not completely finished) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -400,7 +400,7 @@ public:
|
||||
wxChar operator[](unsigned int n) const
|
||||
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
||||
#endif
|
||||
|
||||
|
||||
// operator version of GetWriteableChar
|
||||
wxChar& operator[](size_t n)
|
||||
{ ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }
|
||||
@@ -615,6 +615,15 @@ public:
|
||||
// check if the string contents matches a mask containing '*' and '?'
|
||||
bool Matches(const wxChar *szMask) const;
|
||||
|
||||
// conversion to numbers: all functions return TRUE only if the whole string
|
||||
// is a number and put the value of this number into the pointer provided
|
||||
// convert to a signed integer
|
||||
bool ToLong(long *val) const;
|
||||
// convert to an unsigned integer
|
||||
bool ToULong(unsigned long *val) const;
|
||||
// convert to a double
|
||||
bool ToDouble(double *val) const;
|
||||
|
||||
// formated input/output
|
||||
// as sprintf(), returns the number of characters written or < 0 on error
|
||||
int Printf(const wxChar *pszFormat, ...);
|
||||
|
Reference in New Issue
Block a user