Various fixes for Textctrl and Popup Menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,7 +320,7 @@ void wxTextCtrl::WriteText(
|
||||
const wxString& rsValue
|
||||
)
|
||||
{
|
||||
::WinSetWindowText(GetHwnd(), rsValue.c_str());
|
||||
::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM((PCHAR)rsValue.c_str()), MPARAM(0));
|
||||
AdjustSpaceLimit();
|
||||
} // end of wxTextCtrl::WriteText
|
||||
|
||||
@@ -1131,7 +1131,7 @@ wxSize wxTextCtrl::DoGetBestSize() const
|
||||
|
||||
if (m_windowStyle & wxTE_MULTILINE)
|
||||
{
|
||||
hText *= wxMin(GetNumberOfLines(), 5);
|
||||
hText *= wxMax(GetNumberOfLines(), 5);
|
||||
}
|
||||
//else: for single line control everything is ok
|
||||
return wxSize(wText, hText);
|
||||
|
Reference in New Issue
Block a user