1. big wxScrollBar optimization: Refresh() doesn't refresh them any more
2. many fixes to refresh scrollbars when needed (as this is not done all the time now) 3. wxStdButtonInputHandler bug with uninit m_hasMouse fixing bug with moving mouse with pressed left button into button 4. wxRadioBox::SetSelection() and wxRadioButton::SetValue() clear the values of the other buttons in the same radio group 5. wxTextCtrl::RefreshPixelRange() calculates the end of line correctly 6. tons of wxListBox fixes 7. removed confusing "Create" button from the lbox sample, listbox is now recreated on the fly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -64,6 +64,11 @@
|
||||
// turn wxTextCtrl::Replace() debugging on (very inefficient!)
|
||||
#define WXDEBUG_TEXT_REPLACE
|
||||
|
||||
#ifndef __WXDEBUG__
|
||||
#undef WXDEBUG_TEXT
|
||||
#undef WXDEBUG_TEXT_REPLACE
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// private functions
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -1427,6 +1432,13 @@ void wxTextCtrl::OnSize(wxSizeEvent& event)
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
wxCoord wxTextCtrl::GetTotalWidth() const
|
||||
{
|
||||
wxCoord w;
|
||||
CalcUnscrolledPosition(m_rectText.width, 0, &w, NULL);
|
||||
return w;
|
||||
}
|
||||
|
||||
wxCoord wxTextCtrl::GetTextWidth(const wxString& text) const
|
||||
{
|
||||
wxCoord w;
|
||||
@@ -1984,7 +1996,7 @@ void wxTextCtrl::RefreshPixelRange(long line, wxCoord start, wxCoord width)
|
||||
if ( width == 0 )
|
||||
{
|
||||
// till the end of line
|
||||
rect.width = m_rectText.width - rect.x;
|
||||
rect.width = GetTotalWidth() - rect.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user