past the line ending.
* TextBoxBase.cs: We can still delete if we are in the line
ending and the combine will just kill the existing line ending.
svn path=/trunk/mcs/; revision=75899
bounds, we need to get the old bounds and combine that with the
new bounds.
* TextBoxBase.cs: Before combining two lines for a delete, we
* need
to invalidate the area of the old line, since that will be moved
in the combine operation.
svn path=/trunk/mcs/; revision=75897
and insertion in the undo manager. Also, overwrite the first tag
of a line on insert, if it is just a zero lengthed tag. This
prevents us from getting an extra stranded tag at the beginning
of
the first line.
svn path=/trunk/mcs/; revision=75634
invalidate the selection area, don't need to do that for single
lines because the final update view will handle it.
svn path=/trunk/mcs/; revision=75400
ending into the text. (Maybe this would be a good spot for
Environment.NewLine).
* TextControl.cs: Remove undo manager hack, line endings get
inserted properly now.
svn path=/trunk/mcs/; revision=75398
* TextBoxBase.cs:
* RichTextBox.cs: Preserve line endings in the lines text
* buffer,
also added an enum that represents the line ending type.
svn path=/trunk/mcs/; revision=74920
selection_length, since that var is reset to -1.
- Draw the caret when we don't have focus.
* TextBox.cs: The selectall actually doesn't occur until the
* first
focus.
* TextBoxBase.cs: Need to update the caret position after a
selectall.
svn path=/trunk/mcs/; revision=74659
* TextBoxBase.cs: Make shortcuts enabled true by default, at
* least
some of them are true by default on MS.
- Add some functions to reduce the amount of invalidates we do.
* TextControl.cs: Less invalidation.
svn path=/trunk/mcs/; revision=74636
will be given.
- Make sure to use the align shift when calculating the line's X
position.
* TextBox.cs: Set the alignment on the document as well as on
* all
the document lines.
svn path=/trunk/mcs/; revision=74613
cursor is outside the textarea, but we have a capture.
* TextControl.cs: A special case for when the cursor is outside
the bounds of the TB.
svn path=/trunk/mcs/; revision=74575
class.
* Picture.cs: New class for handling pictures and their
attributes.
* TextBoxBase.cs: Remove image pasting code for now. There is
* no
way to get an image on the clipboard right now anyways.
* TextControl.cs:
* RichTextBox.cs: Use the new RTF Picture class for pictures.
svn path=/trunk/mcs/; revision=74572
* TextBoxBase.cs: On MS, a fixed single border is not in NC
* area,
it is drawn on the controls client window and there is no NC
area.
svn path=/trunk/mcs/; revision=74416
debugging leftovers.
- Don't use the line indent when we shouldn't.
* RichTextBox.cs: Add support for paragraph left indents.
svn path=/trunk/mcs/; revision=73221
taking a line and position instead of tag and position.
* RichTextBox.cs: Handle PngBlip data by inserting the png image
into the RTF file.
* TextControl.cs: Allow images to be inserted as the first tag
* of
a line.
- Fix some off by one issues when we assume the first tag is a
text tag, not an image tag.
svn path=/trunk/mcs/; revision=73021
* TextBox.cs: By default we have a non multiline document
- use the multiline property instead of the internal variable
* TextBoxBase.cs: Treat multiline and non multiline the same in
most places.
- Use the documents multiline flag instead of tracking it
ourself
* TextControl.cs: Attempt at getting multiline to match MS
behavior. Lines now track an offset, which is either their X or
Y
offset depending on whether or not we are in multiline mode.
- Update all the methods to understand that lines have an X
value.
- Fix crash in Undo::Duplicate when empty lines are deleted.
svn path=/trunk/mcs/; revision=72723
* TextBox.cs: Redraw when the password characters changes
* TextControl.cs: Check if textbox has a password char and draw
a line of password chars instead of the text in the line. LineTag gets
an extra Draw() method which allows document.Draw to override the text
that will be drawn. Removes 1024 char limitation on length of passworded
lines.
svn path=/trunk/mcs/; revision=71896
line size, not that chars width, since it won't actually be
computed since the right side of a char is based on the start of
the left side of the next char, and the next char does not
exist.
svn path=/trunk/mcs/; revision=71726
* the
same as the Suspend/Resume for recalc, except this will do
actual
Invalidates.
- New Undo manager, works much like the MS version.
- Implemented Redo
* TextBoxBase.cs: The Cut operation is undoable.
svn path=/trunk/mcs/; revision=71677
* TextBoxBase.cs: Checking in some pieces of the undo stuff so
that I can fix a broken unit test (TextBoxTest::ClearUndo)
svn path=/trunk/mcs/; revision=71527
- Don't store the tag's X offset, this can be figured out very
easily.
- When getting the caret tag make sure to get the last empty
tag.
svn path=/trunk/mcs/; revision=71312
* RichTextBox.cs:
* TextControl.cs: Starting to merge in some pieces of my older
undo work. Basically just some slight cleanup of the undo API.
svn path=/trunk/mcs/; revision=71309