2005-06-29 Peter Bartok <pbartok@novell.com>
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 29 Jun 2005 23:59:29 +0000 (23:59 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 29 Jun 2005 23:59:29 +0000 (23:59 -0000)
commit64c5af4f352703820362fdf3f0fa7c58d9e2d7b4
tree45c4145624410f1623c53404383690c09f94b1d0
parent1bb021817c5accf2bc1b2dd2381868ea862d7254
2005-06-29  Peter Bartok  <pbartok@novell.com>

* TextControl.cs:
  - Selections now work properly, anchoring at the initial location
    and properly extending in either direction (SetSelectionToCaret(),
    SetSelectionStart() and SetSelectionEnd())
  - No longer redraws the whole control on selection change, now
    calculates delta between previous and new selection and only
    invalidates/redraws that area
  - Fixed FindPos() math off-by-one errors
  - Changed DeleteChars() to verify the provided tag covers the
    provided position, selections may have a tag that doesn't cover
    the position if the selection is at a tag border
  - Fixed off-by-one errors in DeleteChars()
  - Added missing streamlining check in DeleteChars() to remove
    zero-length tags
  - Implemented Invalidate() method, now properly calculates exposures
    between two given lines/positions
  - Implemented SetSelection()
  - Obsoleted and removed FixupSelection()
  - Improved RecalculateDocument() logic, removing code duplication

svn path=/trunk/mcs/; revision=46746
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs