Commit Graph
61 Commits
Author SHA1 Message Date
Everaldo Canuto caaa3e8c5b * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
from win32. Fixes #81255.

2007-04-17  Everaldo Canuto  <[email protected]>


svn path=/trunk/mcs/; revision=75824
2007-04-17 14:44:24 +00:00
Andreia Gaita 250a57824d 2007-04-03 Andreia Gaita <[email protected]>
* ButtonBase: Call update after invalidation, fixes #80194

svn path=/trunk/mcs/; revision=75340
2007-04-03 12:26:21 +00:00
Rolf Bjarne Kvinge d5f25435b4 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
CheckBox.cs, RadioButton.cs, BindingSource.cs,
  DataGridColumnStyle.cs: Remove warnings.

svn path=/trunk/mcs/; revision=74488
2007-03-16 20:31:51 +00:00
Jonathan Pobst 150a680413 2007-03-02 Jonathan Pobst <[email protected]>
* ButtonBase.cs: Add 2.0 properties.
	* Button.cs: Override Draw for 2.0.
	* Control.cs: Add Entered and Selected properties.
	* FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
	TextRenderer.cs: Make internal for 1.1 to unify drawing code.
	* Theme.cs: New abstract functions for drawing Standard, Flat, Popup
	buttons.
	* ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.

2007-03-02  Jonathan Pobst  <[email protected]>

	* ThemeElements.cs: Driver code to theme class that actually draws 
	theme elements.
	* ThemeElementsDefault.cs: Default [win32 style] implementation of 
	Standard, Flat, Popup buttons.

2007-03-02  Jonathan Pobst  <[email protected]>

	* System.Windows.Forms.dll.sources: Add ThemeElements.cs,
	ThemeElementsDefault.cs.

svn path=/trunk/mcs/; revision=73637
2007-03-02 16:01:31 +00:00
Jonathan Pobst cfcf55b892 2007-01-25 Jonathan Pobst <[email protected]>
- ButtonBase.cs: Fix capitalization of parameter: disposing.
	[Fixes bug #80609]

svn path=/trunk/mcs/; revision=71668
2007-01-25 15:15:10 +00:00
Chris Toshok f987f8223e svn path=/trunk/mcs/; revision=70111 2006-12-27 07:51:47 +00:00
Chris Toshok addce43a90 * GridTablesFactory.cs: 2.0 corcompare work.
* ToolStripContainer.cs: add "override" to
	ContextMenuStripChanged, and remove the local event object.

	* ToolStripDropDown.cs: same with a couple properties.

	* ToolStripPanel.cs: same with AutoSizeChanged event.

	* TextBoxBase.cs: add "override" to AutoSizeChanged.

	* Form.cs: add the remaining 2.0 events, and do some corcompare
	attribute work.

	* DateTimePicker.cs: add "new" to padding.

	* ButtonBase.cs: use Control's use_compatible_text_rendering.

	* ToolStripContentPanel.cs: use base.AutoSizeChanged.

	* DataGridView.cs: PaddingChanged is overridden.

2006-12-24  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=70032
2006-12-24 20:56:10 +00:00
Daniel Nauck 284d40f7c9 2006-12-17 Daniel Nauck <[email protected]>
* ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
	* FlatButtonAppearance.cs: add
	* DockingAttribute.cs: add


svn path=/trunk/mcs/; revision=69630
2006-12-17 19:47:34 +00:00
Chris Toshok 4b9af969ca [ Fixes bug #80167 ]
* ThemeWin32Classic.cs: don't draw the image if the button's flat
	style is FlatStyle.System.

	* ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
	ButtonBase.flat_style private, and switch uses of it to the public
	property.
	
2006-12-08  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69243
2006-12-08 20:39:16 +00:00
Chris Toshok 4eea763c7c In Test/System.Windows.Forms:
* FormTest.cs: make sure Form.ImeMode is NoControl by default.

	* ButtonTest.cs: add a unit test for Button.DefaultImeMode.

2006-12-06  Chris Toshok  <[email protected]>

In System.Windows.Forms:
	* Form.cs: we don't need to explicitly set ImeMode to
	ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
	behavior in the face of ImeMode.Inherit.

	* ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
	change the ctor's assignment to use ImeMode instead of ime_mode.

	* Control.cs (get_ImeMode): don't assume DefaultImeMode ==
	ImeModeInherit.  Only check for the parent's imemode (and return
	NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
	This fixes the button unit test, which sets both ImeMode and
	DefaultImeMode to ImeMode.Disable.

	also make the ime_mode field private.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69148
2006-12-07 01:18:18 +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 371188ed33 * ButtonBase.cs: remove all uses of is_enabled from this code.
it's always true when any of the code containing the checks is
	executed.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69141
2006-12-07 00:05:35 +00:00
Chris Toshok a8ad8e66a0 2006-12-06 Chris Toshok <[email protected]>
* RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
	Control does this before calling emitting these events.

	* TabControl.cs: same.

	* ThemeWin32Classic.cs: use Control.ClientRectangle instead of
	Control.client_rect.

	* ButtonBase.cs: use the ClientSize property instead of the
	client_size field.

	* ScrollableControl.cs: same.

	* Control.cs: another pass at making properties private.  also,
	move the initialization of tab_stop to the ctor.


svn path=/trunk/mcs/; revision=69101
2006-12-06 15:26:01 +00:00
Chris Toshok b67ef3fd9a 2006-12-05 Chris Toshok <[email protected]>
* ButtonBase.cs: a few changes:

	- don't reinitialize internal Control fields in the ctor when they
	have the same values as Control sets them.

	- don't set has_focus in OnGotFocus/OnLostFocus.  Control does
	this before calling those methods.

	- we don't need to call Refresh for anything.  use Invalidate
	instead.

	- OnEnabledChanged doesn't need to redraw at all - Control.cs
	calls Refresh in its OnEnabledChanged.
	
	- several of the events we were registered for in the ctor to
	redraw ourselves already include calls to Invalidate in the
	property setters that raise the events.  remove the extra
	invalidation.

	- reformat a switch statement that was 83274658 columns wide.
	

svn path=/trunk/mcs/; revision=69077
2006-12-05 21:58:00 +00:00
Chris Toshok 9279f78f95 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
* Win32DnD.cs: comment out some unused fields.

	* XplatUIWin32.cs: comment out some unused pinvokes, and remove
	some unused properties/methods.

	* XplatUIX11.cs: fix MousePosition so we override the base class's
	property instead of conflicting with it.

	* PictureBox.cs: comment out some unused fields

	* OSXStructs.cs: make some struct fields public.

	* XplatUIOSX.cs: comment out some unused pinvokes, and fix
	MousePosition so we override the base class's property instead of
	conflicting with it.

	* X11Dnd.cs: comment out some unused fields

	* X11DesktopColors.cs: fix some struct field visibility to quiet
	the compiler.

	* X11Dnd.cs: remove some debug code.

	* ThemeClearlooks.cs: comment out unused field.

	* ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.

	* ThemeGtk.cs: comment out some unused pinvokes.

	* Timer.cs: remove some unused fields.

	* ThemeClearlooks.cs: comment out unused field.

	* UpDownBase.cs: comment out unused field.

	* DataObject.cs: comment out unused field.

	* DataGridBoolColumn.cs: reomve unused field.

	* DataGrid.cs: remove unused field.

	* Cursor.cs: remove old ToBitmap code.

	* ControlPaint.cs: remove unused method.

	* ScrollBar.cs: remove unused fields.

	* ComboBox.cs: remove unused field, and chain up to
	AccessibleObject ctor.

	* ListBox.cs: remove unused field.

	* ButtonBase.cs: wrap a couple fields in NET_2_0.

	* GridEntry.cs: remove unused fields.

	* Binding.cs: remove unused fields.

	* AxHost.cs: remove unused method.

	* ContainerControl.cs: remove unused field.

	* ScrollableControl.cs: remove unused fields.

2006-12-01  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=68867
2006-12-01 22:50:43 +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
Gert Driesen 999a455add * ControlStylesTest.cs: Fixed GetStyle for 2.0 profile.
* ProgressBar.cs: GetStyle fixes for 2.0 profile.
* Control.cs: Same.
* UpDownBase.cs: Same.
* ButtonBase.cs: Same.
* ScrollBar.cs: Same.
* TrackBar.cs: Same.
* PictureBox.cs: Same.
* UserControl.cs: Same.
* Label.cs: Same.
* ListControl.cs: Same.
* TextBoxBase.cs: Same.
* ListView.cs: Same.
* RichTextBox.cs: Same.
* TreeView.cs: Same.

svn path=/trunk/mcs/; revision=68480
2006-11-26 16:55:15 +00:00
Chris Toshok d1ebc5ba7d 2006-11-07 Chris Toshok <[email protected]>
* ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
	pass a unit test.  Also, don't set image_index to anything in
	response to setting the ImageList property.


svn path=/trunk/mcs/; revision=67482
2006-11-07 19:12:19 +00:00
Sebastien Pouliot 473dbb6553 2006-10-02 Sebastien Pouliot <[email protected]>
* ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
	of ButtonBaseAccessibleObject. Fix bug #79552.


svn path=/trunk/mcs/; revision=66165
2006-10-02 18:21:52 +00:00
Peter Dennis Bartok 2f621eb6d6 2006-05-24 Peter Dennis Bartok <[email protected]>
* ButtonBase.cs: 
	  - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
	    as a bitfield.
	  - Fixed MouseMove to no longer switch pressed state unless the left
	    mouse button is pressed. Atsushi provided the original patch (#78485)
	  

svn path=/trunk/mcs/; revision=61075
2006-05-24 18:24:13 +00:00
Peter Dennis Bartok d9eb86fd91 2006-04-12 Peter Dennis Bartok <[email protected]>
* Control.cs: Added OnPaintBackgroundInternal to allow controls
	  that set Opaque but don't mean it (like all ButtonBase-derived
	  controls) to still draw their background
	* ButtonBase.cs: Override OnPaintBackgroundInternal and draw
	  the background


svn path=/trunk/mcs/; revision=59412
2006-04-12 18:31:30 +00:00
Jackson Harper 3670c06485 * ButtonBase.cs:
* CheckedListBox.cs:
        * ComboBox.cs:
        * DataGrid.cs:
        * DataGridView.cs:
        * Form.cs:
        * GroupBox.cs:
        * ListBox.cs:
        * PrintPreviewControl.cs:
        * ProgressBar.cs:
        * PropertyGrid.cs:
        * Splitter.cs:
        * StatusBar.cs:
        * TrackBar.cs:
        * UpDownBase.cs: Fixup base event overrides.


svn path=/trunk/mcs/; revision=59319
2006-04-10 19:21:53 +00:00
Peter Dennis Bartok 91a434b156 2006-03-29 Peter Dennis Bartok <[email protected]>
* ProgressBar.cs: Added 2.0 Style property that apps seem to use
	* Control.cs:
	  - Implemented CheckForIllegalCrossThreadCalls, removed TODO
	  - Fixed ResetBindings and removed TODO
	  - Added check for cross-thread calls to get_Handle()
	* FontDialog.cs: Removed TODOs that seemed implemented
	* UpDownBase.cs: Removed unneeded TODO and Fixme
	* MessageBox.cs: Implemented support for Default button and removed TODO
	* FileDialog.cs: Removed obsolete TODO
	* DomainUpDown.cs: Removed obsolete TODO
	* ButtonBase.cs: Removed obsolete TODO
	* XplatUIWin32.cs: Removed obsolete TODO
	* Form.cs:
	  - Removed obsolete TODO
	  - Calling CheckAcceptButton when the acceptbutton is changed to allow
	    internal status updates
	  - Making sure the active control is selected when the control is created
	* CurrencyManager.cs: Removed obsolete TODO


svn path=/trunk/mcs/; revision=58761
2006-03-29 20:46:49 +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
Alexander Olk 5682f64b88 2006-02-03 Alexander Olk <[email protected]>
* ButtonBase.cs, ContainerControl.cs, Forms.cs,
	  ThemeWin32Classic.cs: Fix for #77458. Correct handling of
	  AcceptButton border drawing.


svn path=/trunk/mcs/; revision=56544
2006-02-03 21:06:58 +00:00
Jackson Harper 27b5bfad53 * ButtonBase.cs: Just use the base CreateParams. They set
visibility and enabled correctly.        


svn path=/trunk/mcs/; revision=55956
2006-01-23 19:28:11 +00:00
Peter Dennis Bartok d7c26fa542 2006-01-12 Peter Dennis Bartok <[email protected]>
* XplatUI.cs:
	  - Added StartLoop() driver method. This is used to allow drivers to
	    prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
	    loop for a particular thread
	  - Added EndLoop() driver method. This is called once the message
	    pump for the thread is shut down
	  - Added SupportsTransparency method to allow the driver to indicate
	    opacity support for windows
	* Form.cs:
	  - Removed TODO attribute, completed AllowTransparency property
	  - Added documented logic to Opacity
	* GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
	  ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
	  versions of CompatibleTextRendering
	* X11Structs.cs: Added opacity atom to our atom enumeration
	* Hwnd.cs: Added opacity tracking (we need to track since the opacity
	  of a form might be set before it's reparented by the WM, and we need
	  the opacity value without calling up to Form)
	* XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
	  SupportsTransparency() driver methods
	* Application.cs: Now calling StartLoop and EndLoop driver methods
	* XplatUIX11.cs:
	  - Added opacity atom registration
	  - Added StartLoop()/EndLoop() methods. They're empty right now but
	    will need to get implemented when we switch to a per-thread queue
	  - Implemented SupportsTransparency() method
	  - Implemented SetWindowTransparency() method
	  - Added support for setting the opacity value when a window is
	    reparented (since the opacity needs to be set on the WM frame)
	* XplatUIOSX.cs, XplatUIWin32.cs:
	  - Added SupportsTransparency(), StartLoop() and EndLoop() methods


svn path=/trunk/mcs/; revision=55458
2006-01-12 20:55:17 +00:00
Miguel de Icaza 06420878af 2006-01-12 Miguel de Icaza <[email protected]>
Revert's Jackson's revert which broke 2.0 builds.   Fix both
	builds. 
	
	* Application.cs: Move the use_compatible_text_rendering outside
	the NET_2_0 define.  If we ever need to use the
	use_compatible_text_rendering on the individual controls they will
	access the variable from the common shared code paths.



svn path=/trunk/mcs/; revision=55429
2006-01-12 14:49:55 +00:00
Peter Dennis Bartok fb6c0937b4 - Part of the previus checkin, missed these files
svn path=/trunk/mcs/; revision=55422
2006-01-12 07:20:56 +00:00
Jackson Harper 15aacde4bd * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate
the
        variables a little.


svn path=/trunk/mcs/; revision=55417
2006-01-12 05:35:44 +00:00
Miguel de Icaza 4f11530025 2006-01-11 Miguel de Icaza <[email protected]>
* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
	LinkLabel.cs, PropertyGrid.cs: Implement the
	UseCompatibleTextRendering property for 2.x

	* Application.cs (SetCompatibleTextRenderingDefault): Add. 


svn path=/trunk/mcs/; revision=55408
2006-01-12 00:11:07 +00:00
Kornél Pál bda9e3f923 ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs, TreeView.cs: Don't dispose objects that are not owned.
svn path=/trunk/mcs/; revision=52123
2005-10-24 10:01:55 +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
Alexander Olk 60893215dc 2005-08-29 Alexander Olk <[email protected]>
* ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
	  use export MONO_THEME=nice to activate it.
	  Currently supported controls:
	  - Button
	  - ComboBox
	  - ScrollBar
	  - TabControl (TabAlignment.Top only, other will follow)
	* ThemeEngine.cs: Add theme nice
	* ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
	  if enabled


svn path=/trunk/mcs/; revision=49086
2005-08-29 19:37:45 +00:00
Peter Dennis Bartok 2f113b5693 2005-06-15 Peter Bartok <[email protected]>
* MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
	* MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
	* ButtonBase.cs: Added MWFCategory and MWFDescription attributes
	* Control.cs: Added some MWFCategory and MWFDescription attributes
	* ScrollBar.cs: Added some MWFCategory and MWFDescription attributes

2005-06-15  Peter Bartok  <[email protected]>

	* System.Windows.Forms.dll.sources: Added MWFCategoryAttribute.cs and
	  MWFDescriptionAttribute.cs
	* SWF.csproj: Updated


svn path=/trunk/mcs/; revision=46076
2005-06-16 03:38:55 +00:00
Peter Dennis Bartok 10753885c6 2005-06-06 Peter Bartok <[email protected]>
* ImageListStreamer.cs: Fixed signature for GetData
	* CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
	* ComboBox.cs: 
	  - Added missing ChildAccessibleObject class
	  - Added missing OnXXXFocus overrides, switched to using those 
	    instead of the event handler
	* Control.cs:
	  - Added Parent property for ControlAccessibleObject
	  - Fixed signatures
	  - Fixed attributes
	  - Added ResetBindings()
	* ListBindingConverter.cs: Implemented some methods
	* ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
	* ImageList.cs: Implemented basic handle scheme, removed TODOs
	* ContainerControl.cs: Fixed signature, now subscribing to the 
	  ControlRemoved event instead of overriding the handler, LAMESPEC
	* CurrencyManager.cs: Added missing attribute
	* MonthCalendar.cs: Added missing properties


svn path=/trunk/mcs/; revision=45548
2005-06-06 22:07:33 +00:00
Peter Dennis Bartok 9a5e633b32 2005-05-10 Peter Bartok <[email protected]>
* AccessibleObject.cs: 
	  - Removed MonoTODO attribute on help, method is correct
	  - Fixed Bounds property
	* AxHost.cs: Moved MonoTODO
	* ButtonBase.cs: Now setting AccessibleObject properties
	* RadioButton.cs: Setting proper AccessibleObject role
	* CheckBox.cs: Setting proper AccessibleObject role
	* ControlBindingsCollection.cs: Added properties, methods and attributes
	* DataFormats.cs: Fixed awkward internal API, and changed to enable
	  userdefined DataFormats.Format items as well
	* ListControl.cs: Removed data_member from the public eye
	* OpenFileDialog.cs: 
	  - Made class sealed
	  - Added missing attributes
	* SaveFileDialog.cs: Added missing attributes
	* ImageListStreamer.cs: Fixed code that caused warnings
	* LinkLabel.cs: Removed unreachable code
	* TreeView.cs: Fixed code that caused warnings
	* PropertyGridView.cs: Fixed code that caused warnings
	* GridColumnStylesCollection.cs: Added missing attributes
	* GridTableStylesCollection: Added missing attribute
	* PropertyManager: Added .ctor
	* SecurityIDType: Added
	* DataObject.cs: Implemented class



svn path=/trunk/mcs/; revision=44371
2005-05-11 04:42:35 +00:00
Peter Dennis Bartok d821082791 2005-05-05 Peter Bartok <[email protected]>
* XplatUI.cs: Updated revision
	* Form.cs: Removed enless loop
	* GroupBox.cs (OnPaint): Added call to base.OnPaint()
	* Label.cs (OnPaint): Added call to base.OnPaint()
	* ToolTip.cs: Made ToolTipWindow reusable for other controls
	* LinkLabel.cs (OnPaint): Added call to base.OnPaint()
	* UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
	* AxHost.cs: Added
	* ButtonBase.cs: Moved base.OnPaint() call to end of method
	* ThemeWin32Classic.cs: Replaced references to ToolTip with references
	  to ToolTip.ToolTipWindow for drawing and size methods; this allows
	  reuse of ToolTipWindow by other controls
	* SizeGrip.cs: Moved base.OnPaint() call to end of method
	* XplatUIX11.cs: Now clipping drawing area (experimental)
	* PictureBox.cs: Moved base.OnPaint() call to end of method
	* Theme.cs: Fixed ToolTip abstracts to match new format
	* ErrorProvider.cs: Implemented

2005-05-05  Jordi Mas i Hernandez <[email protected]>


svn path=/trunk/mcs/; revision=44103
2005-05-06 03:28:11 +00:00
Jackson Harper cf1296f0be * Control.cs: Double buffering is handled differently now. As per
the spec, the extra buffer is created in the WM_PAINT message and
	passed down to the control's drawing code.
	* GroupBox.cs:
	* Label.cs:
	* CheckBox.cs:
	* ProgressBar.cs:
	* RadioButton.cs:
	* ColorDialog.cs:
	* ComboBox.cs:
	* PropertyGridView.cs:
	* UpDownBase.cs:
	* MessageBox.cs:
	* MenuAPI.cs:
	* ListView.cs:
	* ButtonBase.cs:
	* SizeGrip.cs:
	* ScrollBar.cs:
	* ListBox.cs:
	* TrackBar.cs:
	* ToolBar.cs:
	* PictureBox.cs:
	* DateTimePicker.cs:
	* StatusBar.cs:
	* TreeView.cs: Update to new double buffering system.
	* MonthCalendar.cs: Uncomment block, as Capture is now
	working. Update to new double buffering
	* LinkLabel.cs: Lazy init the link collection. Update to new double buffering
	* PaintEventArgs.cs: New internal method allows us to set the
	graphics object. This is used for double buffering.
	* ThemeWin32Classic.cs: Give the picture box drawing code a clip
	rectangle. The internal paint_area var has been removed from
	StatusBar. The clipping rect should be used instead.
	* Theme.cs: Give the PictureBox drawing method a clipping rect.
	* TabPage.cs: The RefreshTabs method was removed, so just call the
	tab controls Refresh method now.
	* TabControl.cs: Update to new double buffering. Make sure the
	handle is created before sizing the tab pages, otherwise we will
	get stuck in a loop.


svn path=/trunk/mcs/; revision=43557
2005-04-25 18:33:05 +00:00
Peter Dennis Bartok 6459692d1b 2005-02-16 Peter Bartok <[email protected]>
* ImeMode.cs: Added missing attributes
        * Menu.cs: Fixed attribute
        * GroupBox.cs: Fixed attribute
        * Label.cs: Fixed attribute
        * ColorDialog.cs (RunDialog): Removed TODO attribute
        * ComboBox.cs: Fixed attributes
        * ListControl.cs: Added missing attributes
        * PropertyGrid.cs: Fixed attributes
        * Control.cs: Fixed attributes
        * ListViewItem.cs: Added TypeConverter attribute
        * NotifyIcon.cs: Fixed attributes
        * ListView.cs: Fixed attributes
        * ButtonBase.cs: Fixed attribute
        * ImageList.cs: Added missing attributes
        * ContainerControl.cs: Fixed signature
        * CheckedListBox.cs: Fixed attribute; added missing attributes
        * Panel.cs: Fixed attributes
        * PropertyTabChangedEventArgs.cs: Added missing attribute
        * PropertyValueChangedEventArgs.cs: Added missing attribute
        * Binding.cs: Fixed attribute
        * ListViewItemConverter: Implemented ListViewSubItemConverter class
        * ListBox.cs: Fixed attribute; added missing attributes;
        * ScrollableControl.cs: Added missing attributes
        * PictureBox.cs: Added missing attributes; implemented missing property
        * DateTimePicker.cs: Added missing attributes
        * Theme.cs (ToolWindowCaptionHeight): Fixed type
        * MonthCalendar.cs: Fixed attributes
        * StatusBarPanel.cs: Added missing attributes
        * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type


svn path=/trunk/mcs/; revision=40741
2005-02-16 11:33:50 +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 5103354ce3 - Implemented DoubleClick in Button, CheckBox and RadioButton
- Added various missing attributes
- Fixed keyboard handling for ButtonBase derived classes, to treat
  spacebar like mouseclick
- Preventing RadioButtons from getting 'unchecked'
- Enabled TextBox code in ThreadExceptionDialog

svn path=/trunk/mcs/; revision=39141
2005-01-19 09:21:00 +00:00
Peter Dennis Bartok d536a6c0b0 - Implemented InvokeGotFocus() method
- Implemented InvokeLostFocus() method
- Implemented InvokePaint() method
- Implemented InvokePaintBackground() method
- Implemented InvokeClick() method
- Implemented FindForm() method
- Implemented RectangleToClient() method
- Implemented ClientToRectangle() method
- Implemented ResetBackColor() method
- Implemented ResetCursor() method
- Implemented ResetFont() method
- Implemented ResteForeColor() method
- Implemented ResetImeMode() method
- Implemented ResetLeftToRight() method
- Implemented ResetText() method
- Implemented Scale() methods
- Implemented ScaleCore() method
- Implemented Update() method
- Removed unused variables
- Stubbed AccessibilityNotifyClients and
  ControlAccessibleObject.NotifyClients() methods (dunno what to do with those yet)
- Now setting proper default for RightToLeft property
- Fixed bug in SetClientSizeCore that would cause windows to get really big
- Now sending Click/DoubleClick events
- Now selecting controls when left mouse button is clicked on selectable control
- Fixed bug #68756
- Added XplatUI.UpdateWindow() and driver implementations
- Fixes to remove compile-time warnings
- ButtonBase now sets StandardClick and StandardDoubleClick to false
- Added AccessibleEvents enumeration

svn path=/trunk/mcs/; revision=39064
2005-01-18 01:26:25 +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
Jordi Mas i Hernandez 19dd25a7c6 remove old cvs comments since they are no longer updated and we use ChangeLog now
svn path=/trunk/mcs/; revision=37958
2004-12-20 11:04:09 +00:00
Jordi Mas i Hernandez d02ca5dd8d button fixes
svn path=/trunk/mcs/; revision=37689
2004-12-13 10:45:22 +00:00
Ravindra dc057ffc83 - Renamed Paint() method to Draw() for clarity. Also, moved
DrawImage() to OnPaint().

svn path=/trunk/mcs/; revision=35027
2004-10-15 13:32:45 +00:00
Ravindra c569233669 - Redraw () is not virtual now.
- Added an internal virtual method Paint (), so that
	derived classes can do their painting on their own.
	- Modified OnPaint () to call Paint ().

svn path=/trunk/mcs/; revision=35025
2004-10-15 13:16:10 +00:00
Ravindra 9a2b79f73b Redraw () related improvements.
svn path=/trunk/mcs/; revision=34968
2004-10-14 06:15:57 +00:00
Peter Dennis Bartok 0cafc17bbf - Now Redraws on MouseUp for FlatStyle Flat and Popup
svn path=/trunk/mcs/; revision=34961
2004-10-13 22:32:38 +00:00