[ 1573855 ] Improved appearance of wxComboCtrl's wxTextCtrl
More work needs to be done for the version with images. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -697,6 +697,9 @@ wxComboCtrlBase::CreateTextCtrl(int style, const wxValidator& validator)
|
||||
{
|
||||
if ( !(m_windowStyle & wxCB_READONLY) )
|
||||
{
|
||||
if ( m_text )
|
||||
m_text->Destroy();
|
||||
|
||||
// wxTE_PROCESS_TAB is needed because on Windows, wxTAB_TRAVERSAL is
|
||||
// not used by the wxPropertyGrid and therefore the tab is processed by
|
||||
// looking at ancestors to see if they have wxTAB_TRAVERSAL. The
|
||||
@@ -906,9 +909,10 @@ void wxComboCtrlBase::PositionTextCtrl( int textCtrlXAdjust, int textCtrlYAdjust
|
||||
}
|
||||
else
|
||||
{
|
||||
// If it has border, have textctrl will the entire text field.
|
||||
m_text->SetSize( m_tcArea.x,
|
||||
0,
|
||||
sz.x - m_btnArea.x - m_widthCustomPaint - customBorder,
|
||||
sz.x - m_btnArea.width - m_widthCustomPaint - customBorder,
|
||||
sz.y );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user