git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28565
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- support for alpha channel in toolbar bitmaps (Jurgen Doornik)
- wxFileDialog can now be moved and centered (Randall Fox)
- restored (and improved) possibility to use wx with MFC broken in 2.5.2
- support for alpha channel in toolbar bitmaps (Jurgen Doornik)
- wxFileDialog can now be moved and centered (Randall Fox)
- restored (and improved) possibility to use wx with MFC broken in 2.5.2
+- fixed wxTextCtrl::SetMaxLength for rich edit controls
wxWinCE:
- added automatized but customizable handling of native SmartPhone menus
wxWinCE:
- added automatized but customizable handling of native SmartPhone menus
+- fixed wxRadioBox and wxStaticBox
(giving it the possibility to show an explanatory message, for example) and the
extra input is discarded.
(giving it the possibility to show an explanatory message, for example) and the
extra input is discarded.
-Note that this function may only be used with single line text controls.
+Note that under GTK+, this function may only be used with single line text controls.
\wxheading{Compatibility}
\wxheading{Compatibility}
void wxTextCtrl::SetMaxLength(unsigned long len)
{
void wxTextCtrl::SetMaxLength(unsigned long len)
{
+#if wxUSE_RICHEDIT
+ if (IsRich())
+ ::SendMessage(GetHwnd(), EM_EXLIMITTEXT, 0, (LPARAM) (DWORD) len);
+ else
+#endif
::SendMessage(GetHwnd(), EM_LIMITTEXT, len, 0);
}
::SendMessage(GetHwnd(), EM_LIMITTEXT, len, 0);
}
+#if wxUSE_RICHEDIT
+ if (GetRichVersion() > 1)
+ ::SendMessage(GetHwnd(), EM_REDO, 0, 0);
+ else
+#endif
// Same as Undo, since Undo undoes the undo, i.e. a redo.
::SendMessage(GetHwnd(), EM_UNDO, 0, 0);
}
// Same as Undo, since Undo undoes the undo, i.e. a redo.
::SendMessage(GetHwnd(), EM_UNDO, 0, 0);
}
bool wxTextCtrl::CanRedo() const
{
bool wxTextCtrl::CanRedo() const
{
+#if wxUSE_RICHEDIT
+ if (GetRichVersion() > 1)
+ return ::SendMessage(GetHwnd(), EM_CANREDO, 0, 0) != 0;
+ else
+#endif
return ::SendMessage(GetHwnd(), EM_CANUNDO, 0, 0) != 0;
}
return ::SendMessage(GetHwnd(), EM_CANUNDO, 0, 0) != 0;
}