* 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
* 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
* 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
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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
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
- 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
- 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
- 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