Commit Graph
41 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge 278f453434 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
Fixes #80163.
* Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
  property, so that the setter can be overriden too.
* TextBox.cs: Change GetContextMenuInternal() to use
  ContextMenuInternal.

svn path=/trunk/mcs/; revision=76200
2007-04-24 16:32:37 +00:00
Jackson Harper 112fdecfbf * TextBox.cs: Move the has_been_focused into the base control,
* 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
2007-04-19 23:12:56 +00:00
Jackson Harper 5bcf02628c * TextBox.cs: LBUTTON does not make the textbox select all of
* it's
        text on focus.


svn path=/trunk/mcs/; revision=75311
2007-04-02 21:23:47 +00:00
Gert Driesen 8539171ea9 * RichTextBoxTest.cs: Added BackColor test. Improved ReadOnly tests.
Added ScrollBars tests.
* TextBoxTest.cs: Improve BackColor test. Added ScrollBars tests.
Improved ReadOnly tests.
* TextBox.cs: Added internal ChangeBackColor method to special-case
Color.Empty. Added check for invalid ScrollBars value.
* TextBoxBase.cs: Added internal ChangeBackColor method.
* RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
internal ChangeBackColor method to special-case Color.Empty. Added
check for invalid ScrollBars value.

svn path=/trunk/mcs/; revision=75239
2007-03-31 12:32:38 +00:00
Jackson Harper 9a531f03d0 * TextBox.cs: Only select all on initial focus if the user has
* not
        specified a selection area.


svn path=/trunk/mcs/; revision=75199
2007-03-30 14:45:03 +00:00
Jackson Harper 0d8caf7a85 * TextControl.cs: Need to use SelectionLength () not
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
2007-03-20 04:46:56 +00:00
Jackson Harper aff37c7788 * TextBox.cs: Reduce the amount of invalidation we do.
* 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
2007-03-19 21:02:46 +00:00
Jackson Harper a7c63124df * TextControl.cs: Add an alignment property that all new lines
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
2007-03-19 15:41:35 +00:00
Rolf Bjarne Kvinge a0e0099310 * Control.cs: ControlCollection.Add: Remove a couple of duplicated
casts and throw if setting the parent of an mdichild that already
  has an mdiparent. Update signature for 2.0 profile. ProductName: If
  there's no AssemblyProductAttribute in the assembly, use the type's
  namespace (as MS seems to do). CreateControl: don't create the
  handle if the control is not visible (according to MS behaviour and
  spec).  SetTopLevel: Only create handle if the control is not a
  form. Change FocusInternal to virtual so that it can be overriden
  by Form.

* TextBox.cs: Update call to FocusInternal.
* Form.cs: Always create the handle when calling Focus on a MdiChild.
  The form is not a toplevel form when it's a mdi child, so update
  is_toplevel accordingly. ShowIcon/TransparencyKey: avoid creating
  the handle if it hasn't been created. Show (IWin32Window): Don't
  allow this overload for toplevel windows.
  CenterToParent/CenterToScreen/Select: create the handle as MS does.
  SetVisibleCore: if called on a MdiChild and the parent isn't
  visible yet, save the visibility and restore it when the parent is
  made visible.
* ScrollableControl.cs: Refactor out scrollbar visibility code to
  separate methods, since the visibility of the scrollbars can be
  changed from several places, not only from AutoScroll.

svn path=/trunk/mcs/; revision=74609
2007-03-19 15:15:06 +00:00
Gert Driesen b400eaac8a * FormHandleTest.cs: Fixed build using csc 1.x.
* 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
2007-03-10 19:00:18 +00:00
Jackson Harper 91d0f9c753 * TextBox.cs: Set the background color, but reset the
backcolor_set flag which is just for the user setting the
        background color.


svn path=/trunk/mcs/; revision=74051
2007-03-10 17:55:25 +00:00
Jackson Harper 4106790984 * TextBox.cs: Don't explicitly set our background colors.
* TextControl.cs:
        * TextBoxBase.cs: Draw readonly text.


svn path=/trunk/mcs/; revision=74035
2007-03-09 22:40:33 +00:00
Jackson Harper 1ef293b497 * RichTextBox.cs:
* 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
2007-02-12 23:22:33 +00:00
Andreia Gaita d12da11da0 2007-01-29 Andreia Gaita <[email protected]>
* 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
2007-01-29 16:08:31 +00:00
Jonathan Pobst 7a4b68d425 2007-01-22 Jonathan Pobst <[email protected]>
[Moma work]
	* ContainerControl.cs: ProcessCmdKey.
	* ErrorProvider.cs: new constructor.
	* Form.cs: fix AutoValidateEvent compiler warning.
	* Label.cs: fix OnAutoSizeChanged compiler warning.
	* MenuStrip.cs: fix CanOverflow compiler warning.
	* TabControl.cs: SelectTab, OnSelected methods, Selected event.
	* TextBox.cs: Dispose.
	* ToolStrip.cs: CanOverflow, re-enable double buffering.
	* ToolStripControlHost.cs: fix CausesValidation compiler warning.
	* ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
	* ToolStripItem.cs: Overflow, RightToLeft properties.

svn path=/trunk/mcs/; revision=71464
2007-01-22 21:01:09 +00:00
Chris Toshok cf0ecf8fb6 2007-01-15 Chris Toshok <[email protected]>
* 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
2007-01-16 02:04:30 +00:00
Miguel de Icaza f25d828329 A couple of other no-op overrides
svn path=/trunk/mcs/; revision=70946
2007-01-13 04:03:12 +00:00
Daniel Nauck e6f845c3ce 2006-12-21 Daniel Nauck <[email protected]>
* ComboBox.cs,
	TextBox.cs: Implemented AutoComplete properties.
	* Locale.cs: Added Locale.GetText (string msg, params object [] args).


svn path=/trunk/mcs/; revision=69848
2006-12-21 00:12:25 +00:00
Jackson Harper 646a922e45 * TextBox.cs: Don't tell the world that we have a context menu.
* Control.cs: New method so that we can control whether or not
        * the
        context menu is visible outside MWF.


svn path=/trunk/mcs/; revision=69373
2006-12-11 23:24:03 +00:00
Jackson Harper b959efde94 * TextControl.cs: Draw the caret and the selection when a flag
* is
        set on the owner.
        * TextBoxBase.cs: We want to draw the caret and the selection
        * for
        TextBox but not for TextBoxBase.
        - If the window is resized and scrolling is no longer needed
          (the
        whole doc is visible) set the scroll position to zero.
        - Scroll to the caret when the document is recalculated (this
        might be wrong, need a lot of testing here)
        - The default SelectWord (the one TextBox uses) should move the
        caret to the end of the word.
        - SelectAll moves the caret to the end of the selection.
        * TextBox.cs: We don't selectall on focus, we just do it when
        * the
        control is created.



svn path=/trunk/mcs/; revision=69348
2006-12-11 18:52:02 +00:00
Chris Toshok c4694e823e * TextBox.cs: remove the explicit assignments to has_focus.
Control does that.

	* ButtonBase.cs: remove the assignment to has_focus.  Control will
	manage that.
	
2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69143
2006-12-07 00:36:34 +00:00
Chris Toshok b1a4fee9a2 2006-12-05 Chris Toshok <[email protected]>
* TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
	MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
	System.ComponentModel.EventHandlerList work.


svn path=/trunk/mcs/; revision=69057
2006-12-05 17:33:34 +00:00
Jackson Harper b77f410fc7 * TextBox.cs: Select all the text when we get focus.
* The TextBox
        does this but the RTB does not.


svn path=/trunk/mcs/; revision=69003
2006-12-04 22:50:51 +00:00
Miguel de Icaza 2181f4059a Add a few proxies that binaries are calling
svn path=/trunk/mcs/; revision=68542
2006-11-27 23:29:53 +00:00
Jonathan Chambers db1a4b5b92 2006-05-03 Jonathan Chambers <[email protected]>
* TextBox.cs: Add MWFCategoryAttributes
	* TextBoxBase.cs: Add MWFCategoryAttributes
	* Form.cs: Add MWFCategoryAttributes

svn path=/trunk/mcs/; revision=60204
2006-05-03 03:50:12 +00:00
Peter Dennis Bartok 4dff6ea323 2006-04-12 Peter Dennis Bartok <[email protected]>
* TextBox.cs: Implemented context menu


svn path=/trunk/mcs/; revision=59429
2006-04-12 23:01:45 +00:00
Peter Dennis Bartok 0e9a962362 2006-03-09 Peter Dennis Bartok <[email protected]>
* Form.cs(ScaleCore): No longer calling base.ScaleCore since that
	  method also moves the window; instead implemented a copy of
	  Control.ScaleCore (Part of fix for #77456)
	* TextBoxBase.cs: 
	  - Created new CreateGraphicsInternal method to allow providing
	    a graphics context when no handle is created without triggering
	    handle creation. (Part of fix for #77456)
	  - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
	* TextControl.cs: 
	  - Switched Constructor to require TextBoxBase instead of Control (to
	    allow uncast access to CreateGraphicsInternal)
	  - Safeguarded use of owner.Handle property. No longer accessing it
	    unless the handle is already created.
	  - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
	  - Now triggering a recalc when owning control becomes visible
	* TextBox.cs, RichTextBox.cs: Switched to use new internal 
	  TextBoxBase.CreateGraphicsInternal() method to avoid triggering
	  premature handle creation (Part of fix for #77456)
	* Control.cs:
	  - We now only destroy our double-buffering buffers when the
	    control is resized or disposed, but not when visibility
	    changes. (The code even re-created them twice every time)
	  - Now requiring a redraw of the buffer on visibility changes
	    (fixes bug 77654 part 2)
	  - Not passing OnParentVisibleChanged up unless the control
	    is visible
	  - CanFocus: Fixed to match MS documentation
	  - Focus: Fixed to return actual focus state and to check if
	    setting focus is legal before setting it


svn path=/trunk/mcs/; revision=57716
2006-03-09 10:04:23 +00:00
Jackson Harper 5b52efd24d 2006-03-03 Matt Hargett <[email protected]>
* Control.cs: implement Control.Padding
        * Padding.cs: -Padding.All returns -1 when constructing with the
        implicit default ctor
        -Padding.ToString() matches MS.NET
        * ContainerControl.cs: implement
        ContainerControl.AutoScaleDimensions
        * ListControl.cs: implement ListControl.FormattingEnabled
        * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
        * ButtonBase.cs:
        * TabPage.cs: Implement UseVisualStyleBackColor.
        * PictureBox.cs: Implement PictureBox.InitialImage.


svn path=/trunk/mcs/; revision=57562
2006-03-03 23:55:04 +00:00
Peter Dennis Bartok 7f226f5e87 2005-12-15 Peter Dennis Bartok <[email protected]>
* TextBox.cs:
          - Removed local password_char field (moved to TextBoxBase)
          - Now setting the document's password var when password is
            set
        * TextBoxBase.cs:
          - Added password_char field (needed here so MultiLine can
            access it)
          - Added logic to MultiLine property setter to set the document's
            variable when password display is allowed
          - Removed debug code and made some debug code conditional
        * TextControl.cs:
          - Added RecalculatePasswordLine() method to handle special password
            char only lines
          - Added PasswordChar property, also added related tracking vars
          - Draw() method now uses local text var for grabbing text to draw,
            this var is set to line.text unless we're doing password display,
            then it is set to the pre-generated all-password-chars line
          - Added calling RecalculatePasswordLine() method for password
            lines


svn path=/trunk/mcs/; revision=54484
2005-12-15 19:04:15 +00:00
Peter Dennis Bartok 6669d6a64d 2005-11-11 Peter Dennis Bartok <[email protected]>
* XplatUIWin32.cs: 
	  - Clipboard methods now can translate Rtf format
	  - No longer removes clipboard contents whenever a new format is added
	    to allow placing multiple formats on the clipboard
	* Clipboard.cs: Clipboard now supports getting a IDataObject and
	  will place all formats contained in it onto the clipboard. Also
	  now cleans the clipboard before placing a new object onto it
	* RichTextBox.cs:
	  - Implemented set_Rtf
	  - Implemented set_SelectedRtf
	  - Created InsertRTFFromStream() method to allow single code base
	    for all properties and methods that insert RTF into document
	  - Removed debug output
	* TextControl.cs:
	  - Fixed Delete(int) to fix up line numbers
	  - Fixed ReplaceSelection to combine start and end line
	  - Fixed serious DeleteChars bug that would leave the document tree
	    broken
	  - Improved DumpTree with several logic checks to detect broken
	    document trees
	  - Removed debug lines
	  - Fixed Caret.WordForward/WordBack moving code, now always also 
	    updates caret.tag (fixes crash when word-selecting across tag
	    boundaries via keyboard)
	  - Added Insert() method for inserting multiline text into documents
	  - Fixed DeleteChars() calculation errors that would cause a broken
	    tag chain with multiple tag lines
	  - DeleteChars() no longer crashes on multi-tag lines if not all tags
	  - Split() no longer moves caret if split is at caret location
	  - ReplaceSelection() now updates the cursor and re-displays it
	  - ReplaceSelection() now uses new Insert() method to avoid code
	    duplication
	  - FormatText() can now handle formatting partial lines
	* TextBoxBase.cs:
	  - Append now uses new TextControl.Insert() method (this avoids 
	    duplicate code)
	  - Implemented Ctrl-X (Cut) (
	  - Implemented Ctrl-C (Copy)
	  - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
	    regeneration when pasting text; roundtripping Copy&Paste within
	    edit control still fails due to some calculation bugs in GenerateRTF)
	  - The Delete key will now remove the current selection if it is visible
	* TextBox.cs: Removed debug lines
	* XplatUI.cs: Trigger initialization of DataFormats (which requires the
	  driver to be initialized and can't therefore be done via a static ctor)


svn path=/trunk/mcs/; revision=52940
2005-11-12 04:12:47 +00:00
Peter Dennis Bartok 638b27e47c 2005-10-12 Peter Dennis Bartok <[email protected]>
* XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
	  and SetWindowBackground methods
	* Control.cs:
	  - Setting proper ControlStyles
	  - We no longer call XplatUI.SetWindowBackground and XplatUI.
	    EraseWindowBackground, instead we draw the window background
	    ourselves in PaintControlBackground. This behaviour is
	    required to match MS, where, when OnPaintBackground is not
	    called, the background is not drawn.
	  - Removed unneeded Refresh() in set_Text
	* Hwnd.cs: Dropped the ErasePending support. No longer needed
	* XplatUIX11.cs:
	  - Created DeriveStyles method to translate from CreateParams to
	    FormBorderStyle and TitleStyle, also handles BorderStyle (which
	    matches FormBorderStyle enum values)
	  - Consolidated SetHwndStyles and CalculateWindowRect border/title
	    style calculations into single DeriveStyles method
	  - Fixed CreateWindow to (finally) use Gravity. This prevents X11
	    from redrawing the whole window on any resize or expose.
	  - Fixed CreateWindow usage of SetWindowValuemask. Before not
	    all styles were applied to our whole/client window appropriately
	  - Removed EraseWindowBackground() and SetWindowBackground() methods
	  - Removed handling of WM_ERASEBKGND message from DefWndProc, we
	    no longer clear/redraw the background through X
	  - Removed handling of erase_pending bit, we have no use for it (or
	    so it seems)
	* XplatUIOSX.cs:
	  - Removed generation and handling of WM_ERASEBKGND message
	  - Removed EraseWindowBackground() and SetWindowBackground() methods
	  - Removed handling of hwnd.ErasePending flag
	* XplatUIWin32.cs:
	  - Removed EraseWindowBackground() and SetWindowBackground() methods
	  - We no longer call EraseWindowBackground on PaintEventStart, we 
	    ignore the fErase flag, erasing is handled in Control in the
	    background handler
	* Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
	  LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
	  TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
	  CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
	  DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
	  TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
	  DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles


svn path=/trunk/mcs/; revision=51670
2005-10-13 00:30:42 +00:00
Gert Driesen 84855baeca * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
* Splitter.cs: Added missing attributes for BorderStyle property.
* TextBoxBase.cs: Marked Calculate* methods internal.
* TextBox.cs: Fixed DefaultValue for PasswordChar property to match MS.NET.

svn path=/trunk/mcs/; revision=50778
2005-09-26 15:23:32 +00:00
Peter Dennis Bartok 915b0c9619 2005-09-21 Peter Dennis Bartok <[email protected]>
* OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
	  CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
	  GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
	  SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
	  TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
	  IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
	  KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
	  RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
	  ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
	  ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
	  GridColumnStylesCollection.cs, 
	  IDataGridColumnStyleEditingNotificationService.cs,
	  PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
	  MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
	  GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
	  TreeNodeCollection.cs, AmbientProperties.cs, 
	  RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
	  DataObject.cs, ErrorProvider.cs, Splitter.cs,
	  DataGridLineStyle.cs, Shortcut.cs, Control.cs,
	  FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
	  BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
	  IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
	  FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
	  IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
	  NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
	  PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
	  SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
	  FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
	  DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
	  ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
	  RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
	  MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
	  ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
	  CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
	  MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
	  NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
	  ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
	  SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
	  Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
	  RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
	  DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
	  ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
	  PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
	  DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
	  ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
	  AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
	  RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
	  CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
	  SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
	  Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
	  SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
	  ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
	  TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute


svn path=/trunk/mcs/; revision=50399
2005-09-21 18:35:43 +00:00
Peter Dennis Bartok 8c58873431 2005-06-27 Peter Bartok <[email protected]>
* TextControl.cs:
	  - Made line ending size configurable (now allows for counting 
	    lineendings as \n or \r\n)
	  - Added margin to viewport to keep caret visible on right side
	  - Fixed translation routines for line/pos to documentpos to consider
	    cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
	  - Fixed some line-endings to be unix style
	  - Fixed Document.FormatText to perform it's calculations 1-based
	  - Added descriptions for a few methods that might otherwise get 
	    used wrong
	  - Added NOTE section with some basic conventions to remember at 
	    the top of the file
	  - Major fixup for RichTextBox selection drawing:
	    * Fixed crashes when multiple tags on a single line were selected
	    * fixed selection box drawing not overlaying text
	    * fixed bogus offset calculation for tags not starting at index 1
	    * Switched behaviour from using multiple Substrings of a 
	      StringBuilder.ToString() to using multiple 
	      StringBuilder.ToString(start, length) statements, hoping this is
	      faster (kept original version commented out in the code, in case
	      original version was faster)
	* TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
	  alignment != Left
	* TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
	  call it as well


svn path=/trunk/mcs/; revision=46618
2005-06-28 03:47:26 +00:00
Peter Dennis Bartok 926e933117 2005-06-21 Peter Bartok <[email protected]>
* Form.cs: Set focus to active control when form is activated
	* TextControl.cs: 
	  - Added word-wrap functionality to RecalculateLine() 
	  - Added some short function descriptions for VS.Net to aid in
	    writing dependent controls
	  - Added Caret property, returning the current coords of the caret
	  - Added ViewPortWidth and ViewPortHeight properties
	  - Added Wrap property
	  - Added CaretMoved event
	  - Removed some old debug code
	  - Split() can now create soft splits
	  - Added PreviousTag()/NextTag() to allow walking "tag-lists"
	  - Added method to format existing text
	  - Fixed size/alignment calculations to use viewport
	  - RecalculateDocument now can handle changing line-numbers while
	    calculating lines

	* TextBox.cs:
	  - Added some wrap logic, we don't wrap if alignment is not left
	  - Added casts for scrollbar var, base class switched types to
	    also support RichTextBoxA
	  - Implemented handling of scrollbar visibility flags

	* TextBoxBase.cs:
	  - Switched scrollbars type to RichTextBoxScrollBars to support
	    RichTextBox
	  - Added tracking of canvas width/height
	  - Switched scrollbars to be not selectable (to keep focus on text)
	  - Added central CalculateDocument() method to handle all redraw
	    requirements
	  - Added ReadOnly support
	  - Added WordWrap support
	  - Fixed handling of Enter key (we now treat it as a DialogKey)
	  - Fixed caret positioning when h or v scroll is not zero
	  - Fixed placing/generation of vertical scrollbar
	  - Added CalculateScrollBars() method to allow updating scrollbar
	    limits and visibility
	  - Fixed handling of horizontal scroll
	  - Added handling of vertical scroll
	  - Implemented auto-'jump' when caret moves to close to a left or
	    right border and there is text to be scrolled into view (currently
	    there's the potential for a stack overflow, until a bug in
	    scrollbar is fixed)


svn path=/trunk/mcs/; revision=46335
2005-06-21 22:51:07 +00:00
Peter Dennis Bartok 37becc5332 2005-02-17 Peter Bartok <[email protected]>
* Application.cs: Now calls registered message filters
        * DockStyle.cs: Fixed attribute
        * Form.cs: Fixed attribute
        * Menu.cs: Fixed attribute
        * ToolTip.cs: Fixed attribute
        * TreeNode.cs: Added missing attributes and arranged in regions
        * PropertyGrid.cs: Fixed signatures
        * TreeNodeCollection.cs: Added attributes
        * Splitter.cs: Added missing attributes; arranged into regions
        * TabPage.cs: Added missing attributes; arranged into regions
        * TextBoxBase.cs: Added missing attributes
        * TextBox.cs: Added missing attributes
        * ArrangeDirection.cs: Added missing attributes
        * TreeNodeConverter.cs: Added stub (needed for TreeNode)
        * ToolBarButton.cs: Fixed attributes
        * AnchorStyles.cs: Fixed attribute
        * TrackBar.cs: Fixed attributes
        * TabControl.cs: Added missing attributes and arranged into regions
        * ToolBar.cs: Fixed attribute
        * StatusBar.cs: Fixed signature, organized into regions and added
          attributes
        * StatusBarPanel.cs: Fixed attributes
        * ContentsResizedEventArgs.cs: Implemented
        * ContentsResizedEventHandler.cs: Implemented
        * DateBoldEventArgs.cs: Implemented
        * DateBoldEventHandler.cs: Implemented
        * UpDownEventArgs.cs: Implemented
        * UpDownEventHandler.cs: Implemented


svn path=/trunk/mcs/; revision=40801
2005-02-17 11:12:28 +00:00
Peter Dennis Bartok 4c532a7332 - Removed debug output
- Setting proper foreground and background color for TextBox
- Added workaround for Form VisibleChanged notifications

svn path=/trunk/mcs/; revision=39816
2005-01-31 01:54:01 +00:00
Peter Dennis Bartok d384ea4439 - Changes and fixes to implement focus and keyboard traversal; still very incomplete
and missing most associated events

svn path=/trunk/mcs/; revision=38866
2005-01-13 11:59:43 +00:00
Peter Dennis Bartok 7acc92699c - Added new keyword where required
- Removed unused vars
- Added required overrides for TextControl
- Finished Text property implementation for Text control
- Finished Selection implementation for Text Control

svn path=/trunk/mcs/; revision=38303
2005-01-04 07:16:45 +00:00
Peter Dennis Bartok eaf4502ae7 - TextBox and TextBoxBase improvements for Alignment, Selection and
Text property

svn path=/trunk/mcs/; revision=38300
2005-01-04 03:54:27 +00:00
Peter Dennis Bartok 2412486138 - Splitter added
- TextBox added
- Various empty classes added to allow switch to MWF

svn path=/trunk/mcs/; revision=38106
2004-12-27 17:25:21 +00:00