Commit Graph
43 Commits
Author SHA1 Message Date
Ritvik Mayank bc17676dc9 TextBoxBase.cs: Fixes #76352
svn path=/trunk/mcs/; revision=51745
2005-10-15 12:27:36 +00:00
Peter Dennis Bartok 30ed2b5fd9 2005-10-13 Peter Dennis Bartok <[email protected]>
* CheckedListBox.cs: Removed unused vars
	* ListView.cs: Fixed signatures
	* RichTextBox.cs: Removed unused vars
	* TextBoxBase.cs: Removed unused vars
	* XplatUIWin32.cs: Removed unused vars
	* XplatUIX11.cs: Removed unused vars
	* XplatUI.cs: Updated version and date to latest published


svn path=/trunk/mcs/; revision=51695
2005-10-14 04:27:46 +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
Peter Dennis Bartok dd104ed33c 2005-10-06 Peter Dennis Bartok <[email protected]>
* TextBoxBase.cs:
	  - We now accept Enter even if AcceptEnter is false, if the containing
	    form does not have an AcceptButton configured (fixes bug #76355)
	  - Calculations are now fixed to no longer use Width/Height, but
	    ClientSize.Width/Height, since we now support borders (this was
	    a result of fixing borders and therefore bug #76166)
	  - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
	    true (fixes bug #76354)
	

svn path=/trunk/mcs/; revision=51383
2005-10-07 00:32:30 +00:00
Peter Dennis Bartok 64cc036302 2005-10-06 Peter Dennis Bartok <[email protected]>
* Control.cs: 
	  - Defaulting BorderStyle and setting it in XplatUI when our window 
	    is created
	  - Added enum check to InternalBorderStyle setter
	* XplatUIX11.cs: 
	  - Added drawing of window borders
	  - Now properly calculates WM decorations offset for toplevel 
	    windows (fixes bug #74763)
	* XplatUIWin32.cs: 
	  - Implemented BorderStyles for windows (we're letting win32 draw 
	    the border for us)
	  - Fixed the signature for SetWindowLong
	* PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs: 
	  Now uses Control.InternalBorderStyle for setting borders
	* UpDownBase.cs: Remove drawing of borders, this is handled by
	  the driver, outside the client area
	* ListView.cs: Removed bogus border calculations. The control should
	  be oblivious to borders, since those are not part of the client
	  area. 
	* X11DesktopColors.cs: Commented out (currently) unneeded variables


svn path=/trunk/mcs/; revision=51379
2005-10-06 22:56:13 +00:00
Peter Dennis Bartok 2bfcf9d213 2005-09-30 Peter Dennis Bartok <[email protected]>
* Theme.cs: 
	  - Switched Theme color names to match the names defined in 
	    System.Drawing.KnownColors. Life's hard enough, no need to make 
	    it harder.
	  - Added setters to all theme color properties so themes can set
	    their color schemes. The setters also propagate the color changes
	    to System.Drawing.KnownColors via reflection
	* ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
	  ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
	  DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
	  use the new, more logical theme color names
	* XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
	  post-NT colors
	* ThemeWin32Classic.cs:
	  - Removed code to set the old classic Windows colors. Instead it
	    now relies on the colors returned by System.Drawing.KnownColors
	    which will be either modern static colors (Unix) or colors
	    read from the user's configuration (Win32)
	  - Updated to use the new, more logical theme color names
	  - Switched DataGrid drawing code to use only Theme colors instead of
	    a mix of System.Drawing.KnownColors and Theme colors
	  - DrawFrameControl(): Removed code that fills the button area, the
	    fill would overwrite any previous fill done by a control. This
	    fixes bug #75338 
	  - Added DrawReversibleRectangle() stub
	* ScrollableControl.cs: Set visible state to false when scrollbars
	  are removed (pdn fix)
	* XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
	  DrawReversibleRectangle() method to allow drawing primitive 
	  'rubber bands'
	* XplatUIX11.cs: Implemented DrawReversibleRectangle()


svn path=/trunk/mcs/; revision=51052
2005-09-30 16:25:06 +00:00
Jackson Harper e0487f76b8 * ListBox.cs:
* ListView.cs:
	* TextBoxBase.cs:
	* TreeView.cs:
	* ScrollableControl.cs:
	* ComboBox.cs: Add implicit controls using the new implict control
	functionality in ControlCollection. Also try to block multiple
	control add in a suspend/resume layout to save some cycles.


svn path=/trunk/mcs/; revision=50893
2005-09-27 21:20:59 +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 041916ec80 2005-09-20 Peter Dennis Bartok <[email protected]>
* Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
	  things if our window handle isn't created yet. Also disabled 
	  debug for TextBoxBase


svn path=/trunk/mcs/; revision=50346
2005-09-21 00:13:52 +00:00
Peter Dennis Bartok 8c400d8948 2005-08-30 Peter Dennis Bartok <[email protected]>
* Form.cs: Set proper default for Opacity property
	* NotifyIcon.cs:
	  - ShowSystray(): Don't bother creating telling the OS
	    about the systray item if no icon is provided
	  - Now handles WM_NCPAINT message to deal with whole/client window
	    split
	  - Create window as visible to not get caught by Expose optimization
	* Hwnd.cs: Removed debug message
	* ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
	  StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
	    PaintEventStart/End to use new client argument
	* TextBoxBase.cs:
	  - Commented out debug messages
	  - Switched PaintEventStart/End to use new client argument
	* XplatUI.cs: Added client window bool to PaintEventStart()/
	  PaintEventEnd() calls, to support drawing in non-client areas
	* XplatUIDriver.cs: 
	  - Added client window bool to PaintEventStart()/PaintEventEnd() 
	    calls, to support drawing in non-client areas
	  - Added conditional compile to allow using MWF BeginInvoke 
	    on MS runtime
	* XplatUIX11.cs:
	  - Added some conditional debug output
	  - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
	    whole/client window split
	  - Implemented handling of client argument to PaintEventStart()/End()
	* Control.cs:
	  - Throw exception if BeginInvoke() is called and the window handle
	    or one of the window's parent handles is not created
	  - Added conditional compile to allow using MWF BeginInvoke on
	    MS runtime
	  - get_Parent(): Only sets parent if handle is created. This avoids
	    forcing window handle creation when parent is set.
	  - Now fires Layout and Parent changed events in proper order
	  - Switched to use Handle instead of window.Handle for Z-Order setting,
	    the get_Parent() patch above causes us to possibly get null for 'window'
	  - Implemented handling of client argument to PaintEventStart()/End()
	  - Now reports back to windows that WM_SETCURSOR was handled (to avoid
	    default handling)
	  - Now sends a Refresh() to all child windows when Refresh() is called


svn path=/trunk/mcs/; revision=49103
2005-08-30 05:49:40 +00:00
Peter Dennis Bartok a98553a653 2005-06-30 Peter Bartok <[email protected]>
* Form.cs (ShowDialog): Assign owner of the dialog
	* TextBoxBase.cs: Always refresh caret size when deleting, caret
	  might have been moved to a tag with different height


svn path=/trunk/mcs/; revision=46807
2005-06-30 22:46:48 +00:00
Peter Dennis Bartok 021ea4077e 2005-06-29 Peter Bartok <[email protected]>
* TextBoxBase.cs: Re-align caret after deleting a character
	* TextControl.cs:
	  - DeleteChars(): Ensure that tag covers the provided position
	  - StreamLine(): Drop reference for dropped tag


svn path=/trunk/mcs/; revision=46750
2005-06-30 00:23:55 +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 d792d226bc 2005-06-22 Peter Bartok <[email protected]>
* TextControl.cs: Added sanity check
	* TextBoxBase.cs: 
	  - Fixed wrapping behaviour, don't set wrap on single line controls
	    (this fixes the breakage of colordialog introduced in an earlier
	     checkin)
	  - Added rudimentary support for autoscrolling right-aligned controls
	    (still needs fixing, also, center alignment scroll is missing)


svn path=/trunk/mcs/; revision=46375
2005-06-22 18:03:03 +00:00
Peter Dennis Bartok a47b4ee260 2005-06-21 Peter Bartok <[email protected]>
* TextBoxBase.cs:
	  - Now calling PositionCaret with absolute space coordinates
	  - Enabled vertical scrolling
	  - Better tracking of scrollbar changes, tied into WidthChange
	    event
	  - Improved cursor tracking
	  - Removed debug output
	* TextControl.cs:
	  - PositionCaret coordinates are now works in absolute space, not 
	    the canvas
	  - Improved tracking of document size
	  - Added events for width and height changes


svn path=/trunk/mcs/; revision=46340
2005-06-22 02:03:47 +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
Marek Safar a19a444f45 2005-05-19 Marek Safar <[email protected]>
* AxHost.cs: Some simple properties.
	* Control.cs: window must be accessible after ctor.
	* Form.cs: Added TransparencyKey property.
	* TextBoxBase.cs: Implemented Clear. Text property can be null.
	* XplatUIWin32.cs: SetBorderStyle implemented.

svn path=/trunk/mcs/; revision=44739
2005-05-19 08:21:15 +00:00
Peter Dennis Bartok 40673553b5 2005-03-07 Peter Bartok <[email protected]>
* Hwnd.cs: Added DefaultClientRectangle property
	* XplatUI.cs: Now using the X11 driver Where() method, which provides
	  more detailed debug information
	* XplatUIX11.cs: 
	  - Fixed size-change feedback loop, where we would pull an old size 
	    off the queue and mistakenly change our window's size to an 
	    earlier value
	  - Now compressing ConfigureNotify events, to reduce looping and 
	    redraw issues
	* TextBoxBase.cs: Preventing crash when no text is set and ToString()
	  is called


svn path=/trunk/mcs/; revision=41550
2005-03-08 08:11:55 +00:00
Peter Dennis Bartok 571060e238 2005-02-20 Peter Bartok <[email protected]>
* Control.cs:
	  - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
	    only process mnemonics on those)
	  - Fixed event sequence for key handling; first calling 
	    ProcessKeyEventArgs now
	* TextBoxBase.cs: 
	  - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey() 
	    for processing non-character keys
	  - Fixed WM_CHAR to generate proper event sequence before processing
	* XplatUIWin32.cs: Added ALT key state to ModifierKeys property
	  generation


svn path=/trunk/mcs/; revision=40925
2005-02-20 10:43:14 +00:00
Peter Dennis Bartok ea283a5786 2005-02-19 Peter Bartok <[email protected]>
* UserControl.cs: Added TextChanged event; added attributes
	* SizeGrip.cs: Implemented resizing and optional display of grip
	* Form.cs: Fixed attribute
	* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
	  Changed meaning of ScrollWindow bool argument; instead of the
	  clear attribute (which will be true usually anyway), it gives the
	  option of moving child controls as well.
	* XplatUIX11.cs:
	  - Changed to match new ScrollWindow argument
	  - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
	    now handles the implicit parent window a WM puts around us
	* ScrollableControl.cs: Implemented (not the prettiest, but it seems 
	  to work)
	* TextBoxBase.cs: Adjusted to new ScrollWindow arguments
	* TreeView.cs: Adjusted to new ScrollWindow arguments


svn path=/trunk/mcs/; revision=40918
2005-02-20 01:40:28 +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 cdc8bfee4c - Tried to fix enforcing height a bit better
svn path=/trunk/mcs/; revision=40738
2005-02-16 07:40:32 +00:00
Alexander Olk 2f281fd205 Changing local method variables doesn't make sense.
Fixes TextBox.Width being always 100.

svn path=/trunk/mcs/; revision=40711
2005-02-15 18:11:12 +00:00
Peter Dennis Bartok 04d2148a00 2005-02-13 Peter Bartok <[email protected]>
- MouseButtons.cs: Added missing attributes
	- XplatUIStructs.cs: Added enumeration for title styles
	- LeftRightAlignment.cs: Added missing attributes
	- Hwnd.cs: Switched to use client_window as handle (slower, but makes
	  it compatible with Graphics.FromHwnd()
	- SelectedGridItemChangedEventArgs.cs: Fixed property type
	- Keys.cs: Added missing attributes
	- SelectionRange.cs: Added missing attributes
	- SelectionRangeConverter.cs: Added
	- XplatUI.cs: 
	  - Introduced SetBorderStyle, SetMenu, GetMenuDC and 
	    ReleaseMenuDC methods
	  - Renamed ReleaseWindow to UngrabWindow
	  - Added proper startup notice to allow version identification
	- Form.cs: 
	  - Added missing attributes
	  - Removed FormParent concept
	- Label.cs: Removed border_style field, now in Control
	- RadioButton.cs: Now properly selects RadioButton when focus is 
	  received
	- ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
	- Control.cs:
	  - Added missing attributes
	  - Added borderstyle handling
	  - Removed FormParent concept support
	  - Fixed calls to XplatUI to match changed APIs
	  - Fixed bug that would case us to use disposed Graphics objects
	  - Removed unneeded internal methods
	  - PerformLayout(): Fixed to handle DockStyle.Fill properly
	  - SelectNextControl(): Fixed to properly check common parents
	- TextBoxBase.cs: Removed border_style field (now in Control)
	- MessageBox.cs:
	  - Patch by Robert Thompson ([email protected]): Added icon support,
	    fixed calculations for form size
	  - Added support for localized strings and icons
	  - Improved form size calculations, added border
	- ListView.cs: Removed border_style field (now in Control)
	- X11Structs.cs: Moved several structs from X11 driver here
	- X11Keyboard.cs: Changed debug message
	- Application.cs: Removed FormParent concept support
	- CommonDialog.cs:
	  - Resetting end_modal flag
	  - Removed FormParent concept support
	- NativeWindow.cs: Removed FormParent concept support
	- XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
	  Client area and Non-Client whole window to allow support for WM_NC
	  messages
	- XplatUIOSX.cs: Updated to match latest driver spec; added exception
	  prevent using it until it supports Hwnd as per Geoff Norton's request
	- ToolBar.cs: Fixed drawing, was not doing proper drawing
	- PictureBox.cs: Removed border_style field, now in Control
	- XplatUIWin32.cs: Added new driver methods


svn path=/trunk/mcs/; revision=40588
2005-02-13 21:27:41 +00:00
Peter Dennis Bartok 13eaedd0f0 - Added missing attributes
- Implemented TextBoxBase AppendText() and Select() methods
- Implemented CheckBox.CheckBoxAccessibleObject class

svn path=/trunk/mcs/; revision=40320
2005-02-09 02:48:17 +00:00
Peter Dennis Bartok 217ccf4bdf - Added method for altering invalid area in HandleData
- Implemented TextBoxBase.TextLength

svn path=/trunk/mcs/; revision=39741
2005-01-29 15:10:30 +00:00
Peter Dennis Bartok d4dc96adbc - Fixed index off by one error
svn path=/trunk/mcs/; revision=39670
2005-01-27 23:05:06 +00:00
Peter Dennis Bartok 3a241bfd67 - Added support for Enter and Escape keys in dialogs
- Added automatic selection of the first control in modal forms
- TextBox improvements related to selections
- Changed the uglyness level of the frame hack for edit
- Added missing attributes to various controls
- Fixed drawing problems (missing clip styles on controls)

svn path=/trunk/mcs/; revision=39220
2005-01-20 03:03:55 +00:00
Peter Dennis Bartok 04bdcc0006 - Removed Antialiasing
svn path=/trunk/mcs/; revision=39084
2005-01-18 09:05:10 +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 758f2ba3ef - Switched XplatUIWin32 to Unicode. Fixes #71147
- Added generation of TextChanged event to TextBoxBase

svn path=/trunk/mcs/; revision=38681
2005-01-11 09:57:36 +00:00
Jackson Harper e75b64ae7a * TextBoxBase.cs: Clear window when scrolling (fixes build).
svn path=/trunk/mcs/; revision=38576
2005-01-10 00:36:02 +00:00
Peter Dennis Bartok dbf0908edc - Implemented ClientSize property
- Implemented DesktopBounds property
- Implemented DesktopLocation property
- Implemented IsRestrictedWindow property
- Implemented Size property
- Implemented TopLevel property
- Implemented FormWindowState property
- Implemented GetTopLevel() method
- Implemented SetTopLevel() method
- Added AnyPropertyType definition
- Added MapState definiton and updated XWindowAttribute struct
- Added GetWindowState() and SetWindowState() methods
- Now uses Foreground color for text added via Text property (Duh!)
- Added AutoSize logic
- Added code to remember programmatically requested size (fixes behaviour
  when Multiline is set after Size)

svn path=/trunk/mcs/; revision=38477
2005-01-07 08:30:32 +00:00
Peter Dennis Bartok 9e31f534a4 - Change access level for Document property to match switch to
internal for TextControl

svn path=/trunk/mcs/; revision=38344
2005-01-05 06:20:12 +00:00
Peter Dennis Bartok 260f3d8147 - Using proper font variable now
svn path=/trunk/mcs/; revision=38314
2005-01-04 15:55:36 +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
Peter Dennis Bartok 57bcd76ecb - Added color attribute to line tags.
- Added color argument to all functions dealing with tags
- Added color argument support to various functions
- Fixed miss-calculation of baseline/shift in certain circumstances
- Added new color option to test code

svn path=/trunk/mcs/; revision=37916
2004-12-18 04:12:15 +00:00
Peter Dennis Bartok 99d0c4b0b6 - Left mousebutton now sets the caret (and middle button still acts
as formatting tester, which must go away soon)
- Added Debug section for Deleting/Combining lines
- Fixed calculations for UpdateView after Combining lines

svn path=/trunk/mcs/; revision=37870
2004-12-17 09:23:23 +00:00
Peter Dennis Bartok f27cf2d9ea - Now properly aligns text on a baseline, using the new
XplatUI.GetFontMetrics() method. Simplified several calculations
- Moved #endif to allow compiling if Debug is not defined

svn path=/trunk/mcs/; revision=37867
2004-12-17 06:00:45 +00:00
Peter Dennis Bartok a2925a1e54 - Initial checkin
svn path=/trunk/mcs/; revision=37825
2004-12-16 10:22:28 +00:00