Some OS/2 Modifications for coordinate normalizations and code for some common controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,7 +171,7 @@ bool wxTextCtrl::Create(
|
||||
}
|
||||
else
|
||||
{
|
||||
lSstyle |= ES_LEFT;
|
||||
lSstyle |= ES_LEFT | ES_AUTOSCROLL | ES_MARGIN;
|
||||
|
||||
if (m_windowStyle & wxHSCROLL)
|
||||
lSstyle |= ES_AUTOSCROLL;
|
||||
@@ -1130,7 +1130,7 @@ wxSize wxTextCtrl::DoGetBestSize() const
|
||||
wxGetCharSize(GetHWND(), &nCx, &nCy, (wxFont*)&GetFont());
|
||||
|
||||
int wText = DEFAULT_ITEM_WIDTH;
|
||||
int hText = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy);
|
||||
int hText = (EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy) * .8);
|
||||
|
||||
if (m_windowStyle & wxTE_MULTILINE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user