* TextBoxBase.cs:
* ListView.cs:
* ListBox.cs:
* TreeView.cs: Use the InternalBorderStyle property to set the
initial border style, this forces the client rectangle to be
sized
correctly.
svn path=/trunk/mcs/; revision=76034
* so
some of the text adding methods can manipulate it (probably time
for a better name for this flag too).
- Call a new version of selectall that doesn't scroll
* TextBoxBase.cs: When we append text, if the document is empty,
don't scroll. If the document has text already, we scroll to
the
end of the appended text.
- When the text is changed, we reset the has_been_focused, so
the
next time the control gets focused, all the text is selected.
svn path=/trunk/mcs/; revision=75971
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
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
manually display it because a proper CaretMoved event isn't
triggered (this is because of the way the math is done to
determine how far to scroll).
svn path=/trunk/mcs/; revision=75355
* 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
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
none was explicitly set. Fixes part of bug #79949.
* RichTextBoxTest.cs: Added tests for ReadOnly effect on BackColor.
* TextBoxTest.cs: Added tests for ReadOnly effect on BackColor.
svn path=/trunk/mcs/; revision=74553
* 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
* base
wndproc handle the focus methods, because the caret display
methods check the focus state.
- Try to display the caret after updating it's position with
SelectWord.
- Don't need to do an immediate update on this recalc, since
there
will be an invalidate anyways.
svn path=/trunk/mcs/; revision=74304
* MdiFormHandleTest.cs: Fixed build using csc 1.x. Removed extra tabs.
* ControlHandleTest.cs: Fixed build using csc 1.x.
* TextBoxTest.cs: Improved test for BackColor. Added test for
ForeColor.
* TextBox.cs: Set for foreground color.
* TextBoxBase.cs: Remove Invalidate when setting BackColor, since
this is already done in Control.
svn path=/trunk/mcs/; revision=74052
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
* ComboBox.cs: Implemented 2.0 methods and events.
* TextBoxBase.cs: Added OnTextUpdate, so that
ComboBox.ComboTextBox can inform ComboBox of it.
svn path=/trunk/mcs/; revision=71701
* 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
* 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
that allow us to have nested recalc = false blocks.
- Add paste support for images in the RichTextBox
* RichTextBox.cs: flush the text after the color is changed, so
the change takes effect.
- Use SuspendRecalc
- Some extra debugging info
* TextControl.cs: Tags no longer track their length, it is just
computed from the next tags length, this makes things a little
simpler and reduces places that we have to track length changes.
- Refactored the linetag class a little so we could make it
a base class for different kinds of tags
- Created a image tag, a tag that can have a single image
inserted
into it
- Replace the norecalc flag with a Suspend/Resume Recalc pair,
so
that we can call suspend multiple times.
- Add some debugging methods
svn path=/trunk/mcs/; revision=71170
* ListView.cs: drop the *Internal overrides, just do our work in
ItemControl's WndProc instead.
* UpDownBase.cs: a few large changes. Fix up the Selectable state
of the various controls, and forward the events properly (in the
same manner as MS) from the textbox to the UpDown. Also the
ActiveControl of the UpDownBase gets set properly now. Finally,
we don't call UpdateEditText from the ctor. Fixes bug #79957.
* NumericUpDown.cs: set Text in the ctor.
* DomainUpDown.cs: call UpdateEditText in the ctor.
* TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
so even a Selectable = false textbox can be focused if you click
in it. Go figure.
* Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
just add their handling in their respective WndProc's. Also add
an explicit FocusInternal method that doesn't consult CanFocus
before calling Select(this).
* TextBoxBase.cs: deal with removal of the FocusInternal calls -
do our work in WndProc instead.
* TabControl.cs: same.
svn path=/trunk/mcs/; revision=71103