1 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * MonthCalendar.cs: Added Click and DoubleClick events again,
4 but this time they only hide Control's Click and DoubleClick.
6 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
8 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
9 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
11 2007-01-02 Jackson Harper <jackson@ximian.com>
13 * TextBoxBase.cs: We move the caret with the split now, so we
14 don't need to explicitly move the caret after splitting. This
15 fixes the caret bumping down an extra line on Enter.
17 2007-01-02 Miguel de Icaza <miguel@novell.com>
19 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
22 * ScrollableControl.cs: Add Scroll event.
24 2007-01-02 Mike Kestner <mkestner@novell.com>
26 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
27 to fix all hdr height padding codepaths. Fixes #80207.
29 2007-01-02 Chris Toshok <toshok@ximian.com>
31 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
32 setting it to the Control defaults anyway, and it being after the
33 Dock set was screwing up layout.
34 (set_Dock): don't short circuit out of setting base.Dock. Also,
35 no need to call UpdateStatusBar here, as it'll be re-layed out if
38 2007-01-02 Mike Kestner <mkestner@novell.com>
40 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
41 to header height for width == -1. Fixes the rest of #80207.
43 2007-01-02 Mike Kestner <mkestner@novell.com>
45 * ListView.cs: rework the mouse event forwarding everaldo added
46 to translate the coordinates to the parent control not
47 raise the parent events until after we've done our work. Hover
48 needs more work, in the case where HoverSelection is on, because
49 the item control receives more than one MouseHover per Enter
50 event, so we need to ensure only the "first" hover gets forwarded.
51 Opening a minor bug for that.
53 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
55 * CheckedListBox.cs: Fixed SelectionMode to match MS.
56 * ListControl.cs: Implemented AllowSelection property. Removed extra
58 * ListBox.cs: Implemented AllowSelection property.
60 2007-01-02 Everaldo Canuto <everaldo@simios.org>
62 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
63 SelectedItem, it prevent for errors when you must disable item
64 before perform click. Fixes #80409.
66 2007-01-02 Everaldo Canuto <everaldo@simios.org>
68 * MenuAPI.cs: Prevent second level and beyond submenus to close
69 until first level when move out side of popup.
71 2007-01-02 Everaldo Canuto <everaldo@simios.org>
74 - Down submenu positin in three pixels.
75 - Closes sub menu when mouse leaves from menu. Fixes #80402.
77 2007-01-02 Everaldo Canuto <everaldo@simios.org>
79 * ThemeWin32Classic.cs:
80 - Fix popup menu size adding one pixel on the top.
81 - Down menu item border from two to one to mimic Win32.
82 - Some source identation fixes.
84 2007-01-01 Everaldo Canuto <everaldo@simios.org>
86 * ThemeWin32Classic.cs: Use float numbers to calculate size and
87 position of menu arrows, it fix wrong arrow size.
89 2007-01-01 Everaldo Canuto <everaldo@simios.org>
91 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
92 instead of line, it simplify draw operation and fix it using 3D
93 borders to mimic Win32.
95 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
97 * StatusStrip.cs: Add implementation of the sizing grip.
99 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
100 StatusStrip rendering.
102 2006-12-31 Chris Toshok <toshok@ximian.com>
104 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
105 override the layout style (anchor/dock) of the control. assign to
106 Dock instead. Fixes bug #80416.
108 * ToolStrip.cs: same.
110 2006-12-31 Andreia Gaita <avidigal@novell.com>
112 * ContainerControl.cs: Use ContainerSelected flag to check if
113 a Container is directly selected, or if Select is called on a
114 non-container. If a container is directly selected, focus events
115 should not be raised.
116 Apply #80411 patch to throw exception on set_ActiveControl if
117 control is the same as the current one.
119 * Control.cs: Use ContainerSelected flag (see above).
120 Add invalidation check to raise event but not invalidate if
125 2006-12-31 Everaldo Canuto <everaldo@simios.org>
127 * MenuAPI.cs: After click, dont close popup menu when menu is
128 ContextMenu. Fixes #80399.
130 2006-12-30 Chris Toshok <toshok@ximian.com>
132 * ContainerControl.cs: make sure we throw the exception if the
133 container control doesn't contain the control we're setting
136 2006-12-30 Chris Toshok <toshok@ximian.com>
138 * Control.cs (SetTopLevel): fix the exception raised by
139 SetTopLevel for child controls.
140 (set_Anchor): call UpdateDistances when setting the anchor type.
141 This fixes bug #80336.
143 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
145 * Theme.cs: For now, revert back to 8pt font.
147 2006-12-29 Everaldo Canuto <everaldo@simios.org>
149 * MenuAPI.cs: Set popup as active when open a ContextMenu.
152 2006-12-29 Chris Toshok <toshok@ximian.com>
154 * Control.cs: reorder the code in OnResize to give the same event
157 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
159 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
160 TileHorizontally and TileVertically.
162 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
164 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
165 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
166 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
167 Corrected copyright and email adress.
169 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
171 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
172 of Exception in FullPath property if no TreeView is associated with
175 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
177 * Theme.cs: Marked default_font as private, and initialize it in ctor
178 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
180 * ThemeGtk.cs: Removed default_font intialization.
181 * ThemeWin32Classic.cs: Removed default_font initialization.
183 2006-12-28 Chris Toshok <toshok@ximian.com>
185 * Control.cs: fix a couple of place where we were creating handles
186 more aggressively than we should be. Fixes ControlRefresh unit
189 2006-12-28 Chris Toshok <toshok@ximian.com>
191 * Control.cs: contrary to what the comment said, Control.Dock does
192 not supercede Control.Anchor - the last one you assign to decides
193 the layout behavior. so we need to keep track of which was the
194 last set. Also, fix some of the affected property arguments in
195 PerformLayout calls, and remove an redundant parent.PerformLayout
198 Add a VisibleInternal property, which returns is_visible. We
199 can/should get rid of all the usage of this field elsewhere.
201 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
203 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
204 control style, not DoubleBuffer. Added UseDoubleBuffering property
205 that indicates whether doublebuffering is enabled and supported.
206 (comment from and code based on Gert Driesen's patch in #80324).
209 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
211 * Control.cs: Fixed a NRE.
213 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
215 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
218 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
220 * Control.cs: Rewrote double buffering, now a seperate
221 class handles all the buffering, no Graphics is disposed of
222 until the painting is finished (earlier implementation
223 would crash if the control was resized in the OnPaint,
224 since it would cause the double buffer to be recreated
225 and the old one disposed), a separate Graphics is
226 created for every paint (MS behaviour and anyways the state
227 of the Graphics would have to be saved and restored otherwise)
231 * XplatUI.cs: Added and implemented GetOffscreenGraphics
232 so that we can get the graphics for the back buffer without
233 having to create a new one and remove the offscreen_dc parameter
234 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
236 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
238 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
239 Also make virtual all the key-related methods.
241 * ListViewItem.cs: Make virtual the key related methods for
242 ListViewSubItemCollection.
244 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
248 * ThemeWin32Classic.cs:
249 * Theme.cs: Initial support for Tile view in ListView,
250 as well as the implementation of the required bits for it (Item
253 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
255 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
256 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
257 Provide useful exception messages.
259 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
261 * TrackBar.cs: Remove a warning.
262 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
263 when used by DateTimePicker, fixes #80287. This also requires that
264 MonthCalendar implements it's own drawing for the yearly updown control,
265 otherwise the Capture tracking would be too complicated. Removed the Click
266 and DoubleClick events (according to comments they were hiding the base class
267 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
268 raise these events, not that they cannot be raised. It is possible to raise
269 them by calling OnClick and OnDoubleClick). Added two internal fields in
270 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
271 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
272 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
273 event, no longer needed.
275 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
277 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
278 true if new value differs from current value.
280 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
282 * Control.cs: ControlCollection.Count must be public. Fixed build of
285 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
287 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
289 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
291 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
293 2006-12-26 Everaldo Canuto <everaldo@simios.org>
295 * Control.cs: Invalidates control including when Width and Height is
296 equal zero or is not visible, only Paint event must be care about
299 2006-12-26 Chris Toshok <toshok@ximian.com>
301 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
302 more corcompare work.
304 * DataGridView.cs: fix compiler warning.
306 * ColumnHeader.cs: some corcompare work, and also take the
307 opportunity to make the internal fields private.
309 * ListView.cs: fix the fallout from the above field change.
311 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
313 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
314 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
315 ToolStripTextBox.cs: Fixes to events and corcompare.
317 2006-12-26 Everaldo Canuto <everaldo@simios.org>
319 * ListView.cs: Call owner.OnMousexx event to propagate events from
320 item to ListView. Fixes #80367.
322 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
324 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
325 if value is less than one. ItemHeight should not be set to a value
326 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
329 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
331 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
332 * ToolStripStatusLabel.cs: Add Spring for Moma.
334 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
336 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
337 Fixed code formatting. Removed debug code.
338 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
340 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
342 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
343 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
344 ArgumentOutOfRangeException if ColumnCount is negative. In
345 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
346 less than 4 or higher than 32768.
347 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
348 Fixed FormatProvider to return CurrentCulture unless explicitly set.
349 Fixed IsFormatProviderDefault to return true if FormatProvider has
350 not been explicitly set.
352 2006-12-25 Chris Toshok <toshok@ximian.com>
354 * Application.cs: add a couple of 2.0 events.
356 2006-12-25 Chris Toshok <toshok@ximian.com>
358 * Control.cs: fix compiler warning.
360 * AxHost.cs: corcompare fixes.
362 * ApplicationContext.cs: corcompare fixes.
364 2006-12-25 Chris Toshok <toshok@ximian.com>
366 * Control.cs: only update dist_right/dist_bottom if the
367 width/height is > 0. this fixes anchored controls being resized
368 smaller until they disappear and then resized larger again.
370 2006-12-25 Chris Toshok <toshok@ximian.com>
372 * Control.cs: a couple of changes. Remove dist_left and dist_top,
373 since they're nothing more than X/Left and Y/Top, respectively.
375 Also, move back to a per-control Bitmap/Graphics for
376 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
377 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
380 2006-12-25 Miguel de Icaza <miguel@novell.com>
382 * MessageBox.cs: Implemented overload that takes a new "bool
383 displayHelpButton" by adding a new internal field "show_help".
384 When clicked this will raise the HelpRequested on the owner or the
387 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
388 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
390 * ListView.cs: Add support ColumnWidthChanged and
393 Add support for ColumnReordered event.
394 (ReorderColumn): Add NET_2_0 specific support for cancelling the
399 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
401 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
403 2006-12-24 Chris Toshok <toshok@ximian.com>
405 * GridTablesFactory.cs: 2.0 corcompare work.
407 * ToolStripContainer.cs: add "override" to
408 ContextMenuStripChanged, and remove the local event object.
410 * ToolStripDropDown.cs: same with a couple properties.
412 * ToolStripPanel.cs: same with AutoSizeChanged event.
414 * TextBoxBase.cs: add "override" to AutoSizeChanged.
416 * Form.cs: add the remaining 2.0 events, and do some corcompare
419 * DateTimePicker.cs: add "new" to padding.
421 * ButtonBase.cs: use Control's use_compatible_text_rendering.
423 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
425 * DataGridView.cs: PaddingChanged is overridden.
427 2006-12-24 Chris Toshok <toshok@ximian.com>
429 * Control.cs: corecompare work here too.
431 * DataGridViewElement.cs, DataGridView.cs,
432 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
433 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
434 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
435 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
438 2006-12-24 Miguel de Icaza <miguel@novell.com>
440 * Control.cs: Switched the error message on the console for a
441 todo. A review of the code will have to cope with this anyways
442 (since its a large feature, it is in our radar) and it was
443 producing too much output when running PDN.
445 * ToolStripComboBox.cs: Set the text when the SelectedIndex
446 changes. Applications depend on this (PDN 2.72)
448 2006-12-23 Chris Toshok <toshok@ximian.com>
450 * TableLayoutSettings.cs: finish up the corcompare work for this
453 2006-12-23 Chris Toshok <toshok@ximian.com>
455 * Control.cs: make SetImplicitBounds internal, do some futzing
456 with LayoutEngine so that it's available in 1.1, and remove the
457 entire duplicated code mess from PerformLayout. Use
458 System.Windows.Forms.Layout.DefaultLayout instead.
460 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
462 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
464 * Form.cs: Add MainMenuStrip property.
466 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
468 * Control.cs: Add ContextMenuStrip property and implementation.
469 Fix ContextMenu implementation to show menu centered on control when
470 activated using the keyboard instead of showing at screen (0,0).
472 * ToolStripDropDown.cs: Fix needed overload of Show ().
474 2006-12-23 Everaldo Canuto <everaldo@simios.org>
476 * Menu.cs: Name property added for 2.0 profile.
478 2006-12-23 Everaldo Canuto <everaldo@simios.org>
480 * Menu.cs: Update information about FindMenuItem, method to be
483 2006-12-23 Everaldo Canuto <everaldo@simios.org>
485 * MenuAPI.cs: When deselect items deselect also selected subitems.
487 2006-12-23 Everaldo Canuto <everaldo@simios.org>
489 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
490 FindSubItemByCoord to found itens that is not active, also an
491 cheking added to FindSubItemByCoord to search for items only
492 in visible popup windows. Fixes #80274.
494 2006-12-22 Everaldo Canuto <everaldo@simios.org>
496 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
497 internal property, it be care about change ExStyle.
499 2006-12-22 Andreia Gaita <avidigal@novell.com>
501 * ContainerControl.cs: set activeControl for parent forms up the
502 tree when the new activecontrol is a container.
503 When validating the active control, if it is a container, also
504 raise up the validation for it's active control. Fixes #80280
506 * Control.cs: Add internal property flag and check to prevent
507 Focus events from getting raised when Select() is called for
508 a ContainerControl. There are still too many focus events being
509 raised at the moment though.
510 Cleaned up the code a bit.
512 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
514 * Control.cs: Added all missing 2.0 events.and
515 fixed a couple of corcompare issues.
516 * TrackBar.cs: Implemented missing 2.0 bits.
519 * MdiClient.cs: Fixed some corcompare issues.
521 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
523 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
524 SplitterPanel.cs: corecompare work.
526 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
528 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
529 Clean up warnings for BackgroundImageChanged and PaddingChanged
530 events now that they are implemented in Control.cs.
532 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
534 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
536 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
537 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
538 of TableLayoutPanel and supporting cast.
540 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
543 - GrabWindow now confines the mouse pointer to the confine window.
544 - Added Win32ClipCursor and Win32GetClipCursor.
547 - Added CaptureWithConfine to be able to capture and confine
550 * InternalWindowManager.cs:
551 - Call CaptureWithConfine instead of Capture if we're an
552 MdiChild (fixes #79982).
554 2006-12-21 Chris Toshok <toshok@ximian.com>
556 * DataGrid.cs: guard against the initial state of selection, where
557 selection_start == -1. make sure we only select from index >= 0.
560 2006-12-21 Chris Toshok <toshok@ximian.com>
562 * Control.cs: we don't need to be so draconian with
563 UpdateDistances, and we thusly don't need to call it before
564 calling PerformLayout in ResumeLayout. Fixes bug #80289.
566 2006-12-21 Daniel Nauck <dna@mono-project.de>
569 TextBox.cs: Implemented AutoComplete properties.
571 2006-12-20 Chris Toshok <toshok@ximian.com>
573 * DataGridView*.cs: some corecompare work.
575 2006-12-20 Jackson Harper <jackson@ximian.com>
577 * XplatUIX11.cs: We need to hide the caret when deleting it,
578 otherwise you get carets left lying around everywhere.
579 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
580 prevents getting some weird half drawn caret tracers when
582 * TextControl.cs: Attempt to reduce the number of times we need to
585 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
587 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
589 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
592 - Implemented missing 2.0 bits.
593 - Changed some default values to match MS.
595 2006-12-20 Jackson Harper <jackson@ximian.com>
597 * TextBoxBase.cs: When changing the font across the document we
598 can't recalculate after changing each line, since that will cahnge
600 - PreferredHeight is a little different than i thought.
601 - When backspacing, move the caret before we do the actual char
602 delete, because when that delete crosses a wrap boundary the
603 positional information will change.
605 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
607 * Control.cs: Added some missing 2.0 bits:
608 BackgroundImageLayout, BackgroundImageLayoutChanged,
609 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
610 add IBindableComponent and IDropTarget implementation.
613 - Added all missing 2.0 features:
614 BackgroundImageLayout, RightToLeftLayout,
615 OnHandleDestroyed, RightToLeftLayoutChanged,
616 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
618 - Rewrote all the BoldDate code, it was completely broken.
619 - Fixed all the tests (the tests can now be re-enabled, the
620 problems were not with the tests, but with the control, it was
623 * DateTimePicker.cs: Changed the location where the
624 MonthCalendar is shown.
626 2006-12-19 Chris Toshok <toshok@ximian.com>
628 * DataGridView.cs: add IDropTarget implementation.
630 * ToolStripPanel.cs: add IDropTarget implementation.
632 2006-12-19 Jackson Harper <jackson@ximian.com>
634 * TextControl.cs: soft now means something different than what it
635 used to mean, we want to move the caret regardless of whether or
636 not this break was soft (would we really have wanted the caret
637 to not move with the break in the old context?)
638 * TreeView.cs: Make sure we factor in the vert scrollbar when
639 calculating the horizontal scrollbar's maximum.
641 2006-12-19 Andreia Gaita <avidigal@novell.org>
643 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
644 check for keywords in alternate casing, close bug #80049.
646 2006-12-19 Chris Toshok <toshok@ximian.com>
648 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
649 methods (which all do nothing).
651 * IDropTarget.cs: add the 4 missing methods.
653 2006-12-19 Chris Toshok <toshok@ximian.com>
655 * TableLayoutRowStyleCollection.cs: corcompare work.
657 * TableLayoutSettings.cs: same.
659 * TableLayoutStyle.cs: same.
661 * TableLayoutColumnStyleCollection.cs: same.
663 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
665 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
666 TableLayoutPanel I've had in my local tree for way too long.
668 2006-12-19 Miguel de Icaza <miguel@novell.com>
670 * TableLayoutSettings.cs: Finish the public API (still needs all
671 the logic to update on changes).
673 * TableLayoutPanelCellPosition.cs: new file.
675 * TableLayoutRowStyleCollection.cs,
676 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
677 TableLayoutSettings.cs: Track the final 2.0 table api.
679 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
681 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
682 and Image List 2.0 members for ColummnHeader.
683 * ListView.cs: Add key-related 2.0 methods for
684 ColumnHeaderCollection.
686 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
688 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
689 ArgumentNullException if items argument is null. Ignore null item in
690 arrays. Removed extra tabs.
692 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
694 * MonthCalendar.cs: Fixed InvalidCastException.
696 2006-12-19 Jackson Harper <jackson@ximian.com>
698 * TextControl.cs: Don't increment the position here.
699 - When calculating char positions only add in the line break size
700 for hard line breaks.
702 2006-12-19 Andreia Gaita <avidigal@novell.org>
704 * SendKeys.cs: Changed some things to match ms.net behaviour
705 when parsing shifted capital letters.
707 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
708 Add window handle as parameter to SendInput. X11 needs the
709 window handle, and the handle being passed to it in the keys
710 queue is the active control handle (which windows needs), not
713 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
714 to support SendKeys on X.
716 * X11Keyboard: Implement helper method to lookup a linux keycode
717 given the virtual keycode. Added table of keycode-2-virtualkey
718 values to support this.
720 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
722 * ListView.cs: Add support for SelectedIndexCollection
723 and SelectedItemCollection 2.0 methods. Implement support
725 * ListViewItem.cs: Add support for ListViewSubItemCollection
726 2.0 methods. Also, fix an incorrect behavior of AddRange method
727 (it shouldn't call Clear).
728 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
730 2006-12-19 Jackson Harper <jackson@ximian.com>
733 * TextBoxBase.cs: New args for FormatText
734 * TextControl.cs: Rewrote the main drawing method, this version
735 feels a little easier to understand and debug to me. Hopefully it
737 - Fix FormatText to OR in the new formating values. Added
738 FormatSpecified param, basically this works in the same way as
739 BoundsSpecified in Control.
740 - Set the caret properties when the caret is positioned.
741 - When wrapping text make sure that we calculate the width of the
743 - when calculating alignments we might have wrapped down to the
744 next line, so don't search for an individual tag, search for the
746 - We need to invalidate the selection area when we replace the
749 2006-12-19 Daniel Nauck <dna@mono-project.de>
751 * Application.cs: add Restart () 2.0 support
753 2006-12-18 Everaldo Canuto <everaldo@simios.org>
755 * MenuItem.cs: Invalidate menu item rectangle after change Enable
756 property. Fixes #80268.
758 2006-12-18 Everaldo Canuto <everaldo@simios.org>
760 * MenuAPI.cs: Dont trigger select event when closes top menu
763 2006-12-18 Everaldo Canuto <everaldo@simios.org>
765 * MenuAPI.cs: When you click on menuitem only trigger onselect
766 event for top menu itens. Fixes #80271.
768 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
770 * MdiWindowManager.cs: Make IconicBounds depend on
771 the bottom of MdiClient, not the top (fixes #80267)
773 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
775 * MdiClient.cs: Added missing 2.0 attribute
777 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
779 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
780 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
782 2006-12-18 Everaldo Canuto <everaldo@simios.org>
784 * MenuAPI.cs: Fix click when menuitem is not popup,
785 this regression was caused by last commit (#80272).
787 2006-12-17 Everaldo Canuto <everaldo@simios.org>
789 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
790 fire click event or close menu. Fixes #80272.
792 2006-12-17 Daniel Nauck <dna@mono-project.de>
794 * ListViewHitTestInfo.cs: add
796 2006-12-17 Daniel Nauck <dna@mono-project.de>
798 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
799 * FlatButtonAppearance.cs: add
800 * DockingAttribute.cs: add
802 2006-12-17 Chris Toshok <toshok@ximian.com>
804 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
805 and rebind our columns when it does - this way, if you make
806 changes to the DataTable (or set the Table attribute on a DataView
807 after setting it as the DataGrid's DataSource, the changes are
808 made visible.) Fixes bug #80107.
810 2006-12-17 Daniel Nauck <dna@mono-project.de>
812 * ListViewGroup.cs: add internal Location property for layouting.
813 * Theme.cs: add abstract ListViewGroupHeight function.
814 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
816 2006-12-16 Andreia Gaita <avidigal@novell.com>
818 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
819 Added reset of selected index to 0 when adding first tab page.
822 * NumericUpDown.cs: Fix NET_2_0 check
824 2006-12-16 Daniel Nauck <dna@mono-project.de>
826 * ListViewGroup.cs: fixed DefaultValueAttribute value
828 2006-12-16 Daniel Nauck <dna@mono-project.de>
830 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
832 2006-12-15 Miguel de Icaza <miguel@novell.com>
834 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
835 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
836 ScrollableControl.cs: Add a handful of methods that are
839 2006-12-15 Chris Toshok <toshok@ximian.com>
841 * XplatUIWin32.cs: initial implementation of the Reversible
842 drawing functions. there are some problems. DrawReversibleFrame
843 doesn't seem to work at all for Dashed FrameStyle, and in the
844 Thick case there are drawing errors at the corners (we probably
845 need to bind Rectangle instead of doing moveto/lineto's.)
847 2006-12-16 Andreia Gaita <avidigal@novell.com>
849 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
850 to send blocks of key messages. Send accumulates keys to send with Flush,
851 while SendWait sends all keys immediately.
853 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
854 XplatUIX11.cs, XplatUIX11-new.cs:
855 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
857 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
859 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
860 testing for ms.net on this class is very tricky, as the tests run too fast
861 to allow the hook to release, essentially freezing the keyboard and the
862 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
865 2006-12-16 Daniel Nauck <dna@mono-project.de>
867 * Padding.cs: fixed serialization compability to MS ("_var" field names),
868 added missing attributes.
870 2006-12-15 Daniel Nauck <dna@mono-project.de>
872 * ListViewGroup.cs: Added missing attributes.
873 * ListViewGroupCollection.cs: Added missing attributes.
875 2006-12-15 Daniel Nauck <dna@mono-project.de>
877 * ListViewItem.cs: fixed ListViewSubItem text property.
879 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
881 * Control.cs: Added missing 2.0 attributes
883 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
885 * MdiClient.cs: Added missing 2.0 attribute.
886 * MonthCalendar.cs: Added some missing 2.0 attributes
889 2006-12-15 Daniel Nauck <dna@mono-project.de>
891 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
893 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
895 * MainMenu.cs: Add the new 2.0 constructor to help out people
896 using the MainMenu in VS2005.
898 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
900 * MdiChildContext.cs: Removed it, no longer used.
901 * MdiClient.cs: Added missing 2.0 attributes.
903 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
905 * InternalWindowManager.cs: Fix a NullRef with previous
906 changes for toolwindows.
908 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
911 - Added AfterTopMostControl to allow for certain controls
912 to always stay on top when normal controls are brought to
916 - (DrawInversibleRectangle): Get window rectangle from Win32
917 in stead of from control, since Win32 doesn't calculate
918 screen coords correctly from control's Location if it
919 have docked siblings.
921 * MdiWindowManager.cs:
922 - Correct the control menu popup location when clicked on
923 the maximized form icon. (fixes #80223.1)
924 - Don't show moving rectangle if mouse hasn't moved from
925 the original clicked point.
926 - Removed FormGotFocus handler (not used).
927 - Calculate the control buttons location from the main
928 window's size and not client size (fixes #79770).
929 - Form is now closed when the form icon is double-clicked
931 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
933 * InternalWindowManager.cs:
934 - Moved some MDI-only methods to MdiWindowManager.
935 - Removed unused properties and methods.
936 - Unified method naming for methods handling wm messages.
937 - Moved all message handling to seperate methods for
940 * ThemeWin32Classic.cs:
941 - DrawManagedWindowDecorations now draws the title bar
942 with a gradient brush.
943 - Add a CPDrawButtonInternal that allows us to specify
944 light, normal and dark colors for the buttons (control
945 buttons for MDI children were drawn with the same light
946 color as the background, therefore loosing the 3D effect).
949 - Add a CapturedControl property that is used to
950 determine the control to resize (defaults to parent).
951 Needed for MdiClient, since its SizeGrip's parent is
952 MdiClient, but the control to resize is the main form.
955 - Set SizeGrip's CapturedControl to the main form in order
956 to resize the main form and not the MdiClient.
957 - Override AfterTopMostControl to leave the scrollbars
960 2006-12-15 Daniel Nauck <dna@mono-project.de>
962 * ListView.cs: fixed ListViewItemCollection AddRange and
963 implemented ListViewItemCollection AddRange 2.0 support.
965 2006-12-15 Daniel Nauck <dna@mono-project.de>
967 * ListViewGroup.cs: Add.
968 * ListViewGroupCollection.cs: Add
969 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
970 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
971 stub for ImageKey 2.0 support.
973 2006-12-14 Mike Kestner <mkestner@novell.com>
975 * ListView.cs: add text padding to the autocalculation for columns
976 of width -2. Fixes #80207.
978 2006-12-14 Mike Kestner <mkestner@novell.com>
980 * ListView.cs: add some index guarding for partial row navigation
983 2006-12-14 Mike Kestner <mkestner@novell.com>
985 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
986 are added or inserted to the collection. Fixes #81099.
988 2006-12-13 Everaldo Canuto <everaldo@simios.org>
990 * MenuAPI.cs: Closes menu when right click out side of popup
991 it fix problem in ContextMenu and MainMenu. Fixes #80252.
993 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
995 * ListViewItem.cs: Fix dumb error.
997 * ListView.cs: Add Find and ContainsKey methods in
998 ListViewItemCollection, and also return true for IsReadOnly
999 and IsFixedSize (changes for 2.0).
1001 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
1003 * Control.cs: Allow Region to be set to null.
1005 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1007 * MdiWindowManager.cs: Remove unused (commented out) code.
1008 * Form.cs: When the MdiChild is maximized, the form needs
1009 WM_NCMOUSELEAVE, so request it.
1010 * InternalWindowManager.cs:
1011 - Added tooltips to control buttons.
1012 - Removed duplicated control button handling code.
1013 - Removed unused (commented out) code.
1015 2006-12-12 Everaldo Canuto <everaldo@simios.org>
1017 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
1018 was used because we must set cursor without trigger ChangeCursor event
1019 and without change Cursor control property. Fixes #79963.
1021 2006-12-12 Andreia Gaita <avidigal@novell.com>
1023 * Control.cs: Check if Region setter value is null, and ignore
1025 2006-12-12 Jackson Harper <jackson@ximian.com>
1027 * TextControl.cs: We were almost always drawing one more line then
1028 needed, since the GetLineByPixel will return the last line found
1029 at that pixel. In most cases though, we were invalidating up to
1030 the junction between two lines.
1031 - Improve debug code.
1033 2006-12-12 Chris Toshok <toshok@ximian.com>
1035 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
1036 and FillReversibleRectangle.
1038 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
1039 and FillReversibleRectangle.
1041 * XplatUIWin32.cs: add stubs which do nothing for
1042 DrawReversibleFrame, DrawReversibleLine, and
1043 FillReversibleRectangle.
1045 * XplatUIOSX.cs: add stubs which raise NIE for
1046 DrawReversibleFrame, DrawReversibleLine, and
1047 FillReversibleRectangle.
1049 * XplatUIX11.cs: add working implementation for
1050 DrawReversibleFrame, DrawReversibleLine, and
1051 FillReversibleRectangle.
1053 * ControlPaint.cs: implement DrawReversibleFrame,
1054 DrawReversibleLine, and FillReversibleRectangle, by calling into
1055 the appropriate XplatUI method.
1057 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1059 * Form.cs: Make MdiClient have the focus even if it's
1060 not selectable, since it should receive WM_KEY* and WM_MOUSE
1061 messages. Fixes #79907.
1063 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1065 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
1066 queried after the window is created.
1068 * XplatUIX11.cs: Added SendParentNotify to implement
1069 WM_PARENTNOTIFY logic. Fixes #79965.
1071 * Control.cs: Added MakeParam.
1073 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1075 * MdiClient.cs: Resume Layout before setting window
1076 states (fixes #80201).
1078 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1080 * MenuAPI.cs: Deselect a menu item after performing
1081 the click (fixes #80197).
1083 2006-12-11 Jackson Harper <jackson@ximian.com>
1085 * TextBoxBase.cs: We need to cap this value, since Maximum -
1086 ViewPortHeight can be less than zero.
1087 - Only do selection with the left mouse button.
1088 * TextBox.cs: Don't tell the world that we have a context menu.
1089 * Control.cs: New method so that we can control whether or not the
1090 context menu is visible outside MWF.
1092 2006-12-11 Everaldo Canuto <everaldo@simios.org>
1094 * ToolBarButton.cs: Fix text positon.
1096 2006-12-11 Miguel de Icaza <miguel@novell.com>
1098 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
1100 * Control.cs (DoubleBuffered): Add implementation.
1102 * Application.cs (OpenForms): Add.
1104 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
1106 * Form.cs: Use opacity instead of Opactiy to determine if we need
1107 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
1109 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
1111 * Control.cs: Fix NRE if Control.Site was set to null.
1113 2006-12-11 Chris Toshok <toshok@ximian.com>
1115 * Control.cs: ControlCollection.Remove should return if the arg is
1116 null, and ControlCollection.SetChildIndex should raise a ANE.
1118 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
1120 * Control.cs: Verify value set for Dock property. Code formatting
1123 2006-12-11 Jackson Harper <jackson@ximian.com>
1125 * TextControl.cs: Draw the caret and the selection when a flag is
1127 * TextBoxBase.cs: We want to draw the caret and the selection for
1128 TextBox but not for TextBoxBase.
1129 - If the window is resized and scrolling is no longer needed (the
1130 whole doc is visible) set the scroll position to zero.
1131 - The default SelectWord (the one TextBox uses) should move the
1132 caret to the end of the word.
1133 - SelectAll moves the caret to the end of the selection.
1134 * TextBox.cs: We don't selectall on focus, we just do it when the
1137 2006-12-11 Mike Kestner <mkestner@novell.com>
1139 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
1141 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1143 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
1145 * ListViewItem.cs: Add Name 2.0 property.
1147 2006-12-11 Andreia Gaita <avidigal@novell.com>
1149 * TabControl.cs: Set visibility on selected or default tab
1150 when tabcontrol handle is created, so that it's contents
1151 actually show up (duh). Fixes #80193
1152 Don't redraw the control if there is no handle created, as
1153 the selected index might be completely invalid. Added some tests
1156 2006-12-11 Everaldo Canuto <everaldo@simios.org>
1158 * ToolBar.cs: Uses maximun width and height of all buttons as
1159 button rectangle when ButtonSize specified, it looks strange but
1160 is what happens in Win32. Fixes #80189.
1162 2006-12-11 Jackson Harper <jackson@ximian.com>
1164 * TextControl.cs: Need to track undo levels ourself, since
1165 compound actions will mess them up.
1167 2006-12-10 Andreia Gaita <avidigal@novell.com>
1169 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
1170 SelectedIndex value is changed (even if it's not valid).
1171 Reset SelectedIndex to 0 when the handle is created and if
1172 the current index is invalid.
1173 Fixes SelectdeIndex unit tests and #80128
1175 2006-12-08 Chris Toshok <toshok@ximian.com>
1177 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
1178 calls EndEdit, it needs to be called before we set current_cell to
1179 its new value. Otherwise, we end up committing the value in the
1180 textbox to the new cell as well. Fixes bug #80160.
1182 2006-12-08 Chris Toshok <toshok@ximian.com>
1184 * Form.cs (set_CancelButton): if the button's DialogResult is
1185 None, set it to Cancel. Fixes bug 80180.
1187 2006-12-08 Jackson Harper <jackson@ximian.com>
1189 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
1190 to watch ourselves when setting the canvas size and setting the
1193 2006-12-08 Chris Toshok <toshok@ximian.com>
1195 * DataGrid.cs: comment out the two MakeTransparent calls for the
1196 time being so people using trunk (and not 1.2.2) on windows can
1197 actually use the datagrid. This deals with bug #80151.
1199 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
1201 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
1202 Graphics.DrawImage (image, int, int, int, int) overload instead
1203 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
1204 the dpi difference and was blurring images it drew.
1207 2006-12-08 Chris Toshok <toshok@ximian.com>
1209 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
1210 rowcnt is 0 (such as with an empty datasource), and make sure we
1211 initialize not_usedarea.Y to cells.Y, so we don't draw over the
1212 other areas (caption, parent row, etc, etc). Fixes bug #80095.
1214 2006-12-08 Chris Toshok <toshok@ximian.com>
1216 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
1219 2006-12-08 Chris Toshok <toshok@ximian.com>
1221 [ Fixes bug #80167 ]
1223 * ThemeWin32Classic.cs: don't draw the image if the button's flat
1224 style is FlatStyle.System.
1226 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
1227 ButtonBase.flat_style private, and switch uses of it to the public
1230 2006-12-08 Chris Toshok <toshok@ximian.com>
1232 [ Fixes bug #80121 ]
1234 * ThemeWin32Classic.cs: center the caption text in the datagrid
1237 * DataGrid.cs: lessen the amount we add to the caption height from
1238 6 to 2. 6 was making it huge.
1240 2006-12-08 Andreia Gaita <avidigal@novell.com>
1242 * UpDownBase: Handle MouseWheel call directly instead of capturing
1243 the inner textbox's OnMouseWheel. Fixes #80166
1245 2006-12-08 Jackson Harper <jackson@ximian.com>
1247 * TextControl.cs: We need to invalidate the textbox when we empty
1248 it (how had this not been discovered before?)
1250 2006-12-08 Jackson Harper <jackson@ximian.com>
1252 * TextBoxBase.cs: Reworked the mouse down code so I could get it
1253 to behave like MS, we now ignore the eventargs.Click and just
1254 track state ourself, which we were already doing anyways.
1255 - Constrain the double click handler to the double click size.
1257 2006-12-08 Chris Toshok <toshok@ximian.com>
1259 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
1260 direction if that scrollbar isn't shown. fixes bug #80158.
1262 2006-12-08 Andreia Gaita <avidigal@novell.com>
1264 * NumericUpDown.cs: Update value on getter. Fixes #79950
1266 2006-12-08 Chris Toshok <toshok@ximian.com>
1268 * MenuItem.cs: add back in the event cloning code. I didn't know
1269 how to do it in the face of the EventHandlerList work i'd done
1270 last week. Fixes bug #80183.
1272 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
1274 * Control.cs: Add an invalidate to the BackgroundImage setter.
1277 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
1279 * ToolStrip*: Add some small properties reported by MoMA, fix event
1280 firing and default properties based off of unit tests, and add some
1281 attributes based off of the class status page.
1283 2006-12-07 Jackson Harper <jackson@ximian.com>
1285 * TextBoxBase.cs: Take HideSelection into account when determining
1286 whether or not to show the selection.
1287 * RichTextBox.cs: After inserting the RTF into the document move
1288 the cursor to the beginning of the document.
1290 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
1292 * Control.cs: Remove static ArrayList "controls" which maintained
1293 a reference to every control created.
1294 * Application.cs: Create a static FormCollection to maintain a reference
1295 to every form created. Use it in places that formerly enumerated through
1296 the controls one looking for forms.
1297 * Form.cs: Add and remove self from above FormCollection.
1299 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
1301 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
1302 not libgdk (though it makes me wonder why I didn't have any
1305 2006-12-07 Chris Toshok <toshok@ximian.com>
1307 [ you had to know this was coming after that last commit...]
1309 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
1310 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
1311 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
1314 2006-12-07 Chris Toshok <toshok@ximian.com>
1316 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
1317 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
1318 all the behavior we need for double buffering.
1320 * XplatUIDriver.cs: implement the 3 double buffer methods using a
1321 client side Bitmap, just like the old Control-based double buffer
1322 code did. The methods are virtual, so each XplatUI driver
1323 subclass can replace the implementation to use a faster, platform
1326 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
1327 double buffer code, and clean things up a bit in the process.
1329 2006-12-06 Chris Toshok <toshok@ximian.com>
1331 * Control.cs: reindent WndProc.
1333 2006-12-06 Chris Toshok <toshok@ximian.com>
1335 [ I wanna be like BenM when I grow up ]
1337 * Hwnd.cs: create a single static Graphics object on the static
1338 Bitmap we create. use this for our text measurements.
1340 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
1341 This was causing us to allocate a backbuffer for every control,
1342 even when it wasn't flagged as double buffered. Instead use the
1343 single graphics instance. This might have implications for
1344 multithreaded applications. If we run into problems we can switch
1345 to creating 1 Graphics per control, on the static Hwnd bitmap.
1347 this change nets us a 7M savings in private dirty mappings when
1348 running FormsTest.exe.
1350 2006-12-06 Chris Toshok <toshok@ximian.com>
1352 * ListView.cs: the BackgroundImage override is just to set
1353 attributes. chain up to base.BackgroundImage.
1355 * RichTextBox.cs: same.
1357 * ToolBar.cs: same, but we need to also redraw the toolbar when it
1358 changes, so instead a handler for BackgroundImageChanged.
1360 * Control.cs: make background_image private.
1362 2006-12-06 Chris Toshok <toshok@ximian.com>
1364 * ScrollBar.cs: change the assignment of cursor to Cursor. not
1365 sure we even need this assignment, but roll with it for now.
1367 * Control.cs: make the cursor field private.
1369 2006-12-06 Chris Toshok <toshok@ximian.com>
1371 * Form.cs: we don't need to explicitly set ImeMode to
1372 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
1373 behavior in the face of ImeMode.Inherit.
1375 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
1376 change the ctor's assignment to use ImeMode instead of ime_mode.
1378 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
1379 ImeModeInherit. Only check for the parent's imemode (and return
1380 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
1381 This fixes the button unit test, which sets both ImeMode and
1382 DefaultImeMode to ImeMode.Disable.
1384 also make the ime_mode field private.
1386 2006-12-06 Chris Toshok <toshok@ximian.com>
1388 * Control.cs: make control_style private.
1390 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
1391 setting the styles to true, then setting them to false instead of
1392 reverting to their previous values.
1394 also, call SetStyle on the scrollbars instead of using
1395 control_style directly.
1397 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
1399 * FormCollection.cs: Implement. [2.0]
1401 2006-12-06 Chris Toshok <toshok@ximian.com>
1403 * Control.cs: make tab_stop private.
1405 * Label.cs: set TabStop, not tab_stop. reformat some event
1406 add/remove methods to make them more compact.
1408 2006-12-06 Chris Toshok <toshok@ximian.com>
1410 * RadioButton.cs: fix TabStop handling.
1412 2006-12-06 Chris Toshok <toshok@ximian.com>
1414 * TextBox.cs: remove the explicit assignments to has_focus.
1417 * ButtonBase.cs: remove the assignment to has_focus. Control will
1420 2006-12-06 Chris Toshok <toshok@ximian.com>
1422 * ButtonBase.cs: remove all uses of is_enabled from this code.
1423 it's always true when any of the code containing the checks is
1426 2006-12-06 Chris Toshok <toshok@ximian.com>
1428 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
1429 with different semantics (some are present in both 1.1 and 2.0
1430 profiles) so that we match MS's behavior in our unit tests.
1432 2006-12-06 Jackson Harper <jackson@ximian.com>
1434 * TextControl.cs: Make this operation undoable.
1435 * TextBoxBase.cs: Factor the border width into the preferred
1437 - implement Modified as per the spec.
1439 2006-12-06 Chris Toshok <toshok@ximian.com>
1441 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
1443 2006-12-06 Chris Toshok <toshok@ximian.com>
1445 * Control.cs: make right_to_left and context_menu fields private.
1447 2006-12-06 Chris Toshok <toshok@ximian.com>
1449 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
1450 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
1451 Control.child_controls private. switch all uses over to
1454 2006-12-06 Chris Toshok <toshok@ximian.com>
1456 * System.Windows.Forms/GroupBox.cs,
1457 System.Windows.Forms/AccessibleObject.cs,
1458 System.Windows.Forms/ErrorProvider.cs,
1459 System.Windows.Forms/Control.cs,
1460 System.Windows.Forms/UpDownBase.cs,
1461 System.Windows.Forms/ScrollBar.cs,
1462 System.Windows.Forms/DateTimePicker.cs,
1463 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
1464 System.Windows.Forms/ToolTip.cs,
1465 System.Windows.Forms/RadioButton.cs,
1466 System.Windows.Forms/LinkLabel.cs,
1467 System.Windows.Forms/Splitter.cs,
1468 System.Windows.Forms/TextBoxBase.cs,
1469 System.Windows.Forms/ToolStripTextBox.cs,
1470 System.Windows.Forms/ContainerControl.cs,
1471 System.Windows.Forms/ThemeWin32Classic.cs,
1472 System.Windows.Forms/SizeGrip.cs,
1473 System.Windows.Forms/ToolStripDropDown.cs,
1474 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
1475 private. switch all uses over to Control.Parent.
1477 2006-12-06 Chris Toshok <toshok@ximian.com>
1479 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
1480 Control does this before calling emitting these events.
1482 * TabControl.cs: same.
1484 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
1485 Control.client_rect.
1487 * ButtonBase.cs: use the ClientSize property instead of the
1490 * ScrollableControl.cs: same.
1492 * Control.cs: another pass at making properties private. also,
1493 move the initialization of tab_stop to the ctor.
1495 2006-12-05 Andreia Gaita <avidigal@novell.com>
1497 * TabControl.cs: Let the selected index be set freely if the
1498 control handle is not yet created.
1500 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1502 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
1503 internal until I can rewrite DefaultLayout.
1504 * ToolStrip.cs: Fix build error and some general cleaning.
1505 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
1506 Fix build errors caused by making some of Control's fields private.
1508 2006-12-05 Jackson Harper <jackson@ximian.com>
1510 * TextControl.cs: Redo Insert a little so that it use IndexOf
1511 instead of Split, this prevents it from messing up on things like
1512 \n\n\n. Also more effecient since the split array doesn't need to
1514 * TextBoxBase.cs: AppendText doesnt handle multiline and non
1515 multiline text differently, this is the first of many fixes that
1516 will make multiline/non-multiline the same thing as far as the
1517 TextBoxBase is concerned.
1518 - Don't split the text and insert lines, this can lose some line
1519 endings (like is the last line a soft or hard break). Instead use
1521 - Fix an off by one when combining all the lines in the Text
1523 - Remove separate multiline handling from the Text getter/setter.
1525 2006-12-05 Chris Toshok <toshok@ximian.com>
1527 * ButtonBase.cs: a few changes:
1529 - don't reinitialize internal Control fields in the ctor when they
1530 have the same values as Control sets them.
1532 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
1533 this before calling those methods.
1535 - we don't need to call Refresh for anything. use Invalidate
1538 - OnEnabledChanged doesn't need to redraw at all - Control.cs
1539 calls Refresh in its OnEnabledChanged.
1541 - several of the events we were registered for in the ctor to
1542 redraw ourselves already include calls to Invalidate in the
1543 property setters that raise the events. remove the extra
1546 - reformat a switch statement that was 83274658 columns wide.
1548 2006-12-05 Mike Kestner <mkestner@novell.com>
1550 * ComboBox.cs: fix a unit test regression from a TextBox
1551 SelectionLength return of -1 when there's no selection.
1553 2006-12-05 Chris Toshok <toshok@ximian.com>
1555 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
1556 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
1557 cleaning up some of the internal Control fields being used by
1560 2006-12-05 Mike Kestner <mkestner@novell.com>
1562 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
1563 listbox after AddImplicit calls since it defaults to hidden. Add a
1564 hack to preserve requested heights across DropDownStyle changes.
1566 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1568 * PropertyGrid.cs: Hide FindFirstItem method from public API.
1570 2006-12-05 Chris Toshok <toshok@ximian.com>
1572 * DataGridView.cs: fix compiler warnings.
1574 * PrintControllerWithStatusDialog.cs: same.
1578 * FolderBrowserDialog.cs: same.
1580 * Splitter.cs: same.
1582 * DataGridViewComboBoxCell.cs: same.
1584 * XplatUIWin32.cs: same.
1586 * PictureBox.cs: same.
1588 * Win32DnD.cs: same.
1590 * PageSetupDialog.cs: same.
1592 * FileDialog.cs: same.
1594 * PrintDialog.cs: same.
1596 * DataGridTextBoxColumn.cs: same.
1598 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
1600 2006-12-05 Chris Toshok <toshok@ximian.com>
1602 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
1603 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
1604 System.ComponentModel.EventHandlerList work.
1606 2006-12-05 Jonathan Chambers <joncham@gmail.com>
1608 * DrawTreeNodeEventArgs.cs: Added.
1610 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1612 * InternalWindowManager.cs: Remove an unused field.
1614 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1616 * InternalWindowManager.cs:
1617 - Save the point where the title bar is clicked.
1619 * MdiWindowManager.cs:
1620 - Only allow moving of the window as long as the
1621 clicked point on the title bar does not get out of
1622 MdiClient's rectangle. Fixes #79982.
1625 - Added Horizontal/VerticalScrollbarVisible.
1626 - Simplified the scrollbar sizing algorithm.
1627 - Cache the difference in scrolled value in
1628 H/VBarValueChanged and move the calculation out
1631 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1633 * Control.cs: Make the Console.WriteLine in WndProc
1636 2006-12-05 Chris Toshok <toshok@ximian.com>
1638 * ToolStripManager.cs, ToolStripButton.cs,
1639 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
1640 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
1641 ToolStripSplitButton.cs, ToolStripSeparator.cs,
1642 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
1643 ToolStripProgressBar.cs, ToolStripContainer.cs,
1644 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
1645 to using System.ComponentModel.EventHandlerList.
1647 2006-12-04 Chris Toshok <toshok@ximian.com>
1649 * LinkLabel.cs: fix up compiler warnings.
1651 * TableLayoutSettings.cs: same.
1653 * TreeView.cs: same.
1657 * TabControl.cs: same.
1659 * RichTextBox.cs: same.
1661 * ListViewItem.cs: same.
1663 * PropertyGrid.cs: same.
1665 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
1669 * TextRenderer.cs: fix up compiler warnings.
1673 * Form.cs: corcompare fixes.
1675 * PictureBox.cs: fix up compiler warnings.
1677 * ImageListStreamer.cs: same.
1679 * TrackBar.cs: corcompare fix.
1681 * Control.cs: fix up compiler warnings.
1683 * SplitterPanel.cs: same.
1685 * NumericTextBox.cs: same.
1687 * ImageList.cs: same.
1689 * StatusStrip.cs: same.
1691 * ProgressBar.cs: corcompare fix.
1693 * ToolStripButton.cs: fix up compiler warnings.
1695 * ToolStripStatusLabel.cs: same.
1697 * ToolStripSplitButton.cs: same.
1699 * ToolStripSeparator.cs: same.
1701 * ToolStripProgressBar.cs: same.
1703 * ToolStripDropDownMenu.cs: same
1705 * ToolStripDropDown.cs: same.
1707 * ToolStripDropDownButton.cs: same.
1709 * ToolStrip.cs: same.
1711 * ToolStripControlHost.cs: same.
1713 * ToolStripContentPanel.cs: same.
1715 * ToolStripDropDown.cs: same.
1717 * ToolStripContainer.cs: same.
1719 * ToolStripPanel.cs: same, and add "new" where we need it to work
1720 with the new ArrangedElementCollection.
1722 * ToolStripItemCollection.cs: add "new" where we need it to work
1723 with the new ArrangedElementCollection.
1725 2006-12-04 Andreia Gaita <avidigal@novell.com>
1727 * TabControl.cs: Fix default tab selection to after TabControl
1728 gets focus and not before. Fixes #80128
1730 2006-12-04 Chris Toshok <toshok@ximian.com>
1732 * DataGridTableStyle.cs: remove the gross calling of
1733 datagrid.Refresh from here. It's a broken idea and it doesn't
1736 * DataGrid.cs: instead, just register/unregister from the
1737 DataGridTableStyle events in CurrentTableStyle. we play it
1738 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
1739 even though some would most likely not require it. Fixes bug
1740 #80115 (and one portion of #80117 as a side effect).
1742 2006-12-04 Chris Toshok <toshok@ximian.com>
1744 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
1745 so the textbox (if any) goes away. Fixes bug #80117.
1747 2006-12-04 Chris Toshok <toshok@ximian.com>
1749 * DataGridColumnStyle.cs: set the column's readonly property
1750 initially based on the property descriptor's IsReadOnly. Fixes
1753 2006-12-04 Chris Toshok <toshok@ximian.com>
1755 * ComboBox.cs: wrap the dropdown style changing work in
1756 SuspendLayout/ResumeLayout. Fixes bug #79968.
1758 2006-12-04 Jackson Harper <jackson@ximian.com>
1760 * TextBoxBase.cs: Fix off by one, since these are one-based.
1761 * TextBox.cs: Select all the text when we get focus. The TextBox
1762 does this but the RTB does not.
1764 2006-12-04 Chris Toshok <toshok@ximian.com>
1766 * DataGridTextBoxColumn.cs: remove some spew.
1768 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
1769 but some part of me is saying "it shouldn't be here.." At any
1770 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
1773 2006-12-04 Chris Toshok <toshok@ximian.com>
1775 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
1776 to reassign the propertydescriptor.
1778 2006-12-04 Jackson Harper <jackson@ximian.com>
1781 * TextControl.cs: Remove some unused variables. Maybe this will
1782 patch things up between mike and I.
1783 - don't split lines less then one char wide, if the viewport is
1784 that small text won't be visible anyways.
1786 2006-12-04 Jackson Harper <jackson@ximian.com>
1788 * TextBoxBase.cs: Default selection length is -1, need to do some
1789 more testing on windows to see when this is used for the property.
1790 - Redid the Lines [] property to that we properly remove soft line
1792 - added support for preserving carriage returns
1793 - CanUndo is not a variable like 'is undo enabled' it just returns
1794 true if there is undo operations available.
1795 - AppendText doesn't need to grab the last tag itself anymore,
1796 this happens automatically when we move the cursor.
1797 * TextControl.cs: Add CompoundActions to the undo class. This
1798 allows combining the other operations into one big option. ie a
1799 paste will combine { delete old, insert new, move cursor }
1800 - Add InsertString undo operation
1801 - New method for deleting multiline text
1802 - Add carriage returns to lines. So we can preserve carriage
1803 returns when text is 'roundtripped'
1805 2006-12-04 Chris Toshok <toshok@ximian.com>
1807 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
1808 minimum 0. Fixes the scrollbar exception in bug #80136.
1810 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1813 * MdiWindowManager: Removed unused fields and methods.
1815 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1817 * StatusBar.cs: Update all panels when a AutoSize=Contents
1818 panel needs updating.
1820 * StatusBarPanel.cs: Remove twidth and only use initialize.
1823 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1825 * Form.cs: When a form's MdiParent is set add it directly
1826 on top of the z-order in stead of relying on MdiClient's
1827 ActivateChild to do it. Fixes #80135.
1830 - Remove original_order, mdi_child_list is already doing
1832 - Create mdi_child_list on construction in
1833 stead of first use (avoids a few null checks).
1835 * MenuItem.cs: Use an already existing list of mdi children
1836 to get the correct order of children and remove the other
1839 2006-12-04 Chris Toshok <toshok@ximian.com>
1841 * PropertyGridView.cs: cached_splitter_location is only used in
1844 * PropertyGrid.cs: implement the ComComponentNameChanged event
1845 using Events, hoping that would fix the warning. Looks like a
1846 compiler bug instead (#80144).
1848 * PropertyManager.cs: remove unused method.
1850 2006-11-04 Everaldo Canuto <everaldo@simios.org>
1852 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
1853 include parentesis to fix expression evaluation. Fixes #79634.
1855 2006-11-02 Everaldo Canuto <everaldo@simios.org>
1858 - Changes to fix behavior in Menu control, some reported in #80097
1859 and other detected during behavior refactory like a select event
1861 - Remove unneded "if's" conditions.
1862 - Created an internal to flag when popup is active in control, we need
1863 it because in .NET you can have menu active but without popup active
1864 when you active menu using popup without visible items.
1865 - Mimic win32 behavior for Select and Popup events.
1866 - Dont open popup menu when you dont have visible subitems.
1867 - Do nothing when click on disabled menu item.
1868 - Some small changes to follow the coding style guidelines.
1869 - Unselect menu only when another control gives focus. Fixes #80097.
1870 - Remove unused code.
1872 * MenuItem.cs: internal VisibleItems method to check if menu
1873 theres visible subitems, it will be usefull to fix some
1874 behavior in Menu control.
1876 2006-11-01 Everaldo Canuto <everaldo@simios.org>
1878 * Timer.cs: Tag property for 2.0 profile.
1880 2006-12-01 Chris Toshok <toshok@ximian.com>
1882 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
1884 * Win32DnD.cs: comment out some unused fields.
1886 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
1887 some unused properties/methods.
1889 * XplatUIX11.cs: fix MousePosition so we override the base class's
1890 property instead of conflicting with it.
1892 * PictureBox.cs: comment out some unused fields
1894 * OSXStructs.cs: make some struct fields public.
1896 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
1897 MousePosition so we override the base class's property instead of
1898 conflicting with it.
1900 * X11Dnd.cs: comment out some unused fields
1902 * X11DesktopColors.cs: fix some struct field visibility to quiet
1905 * X11Dnd.cs: remove some debug code.
1907 * ThemeClearlooks.cs: comment out unused field.
1909 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
1911 * ThemeGtk.cs: comment out some unused pinvokes.
1913 * Timer.cs: remove some unused fields.
1915 * ThemeClearlooks.cs: comment out unused field.
1917 * UpDownBase.cs: comment out unused field.
1919 * DataObject.cs: comment out unused field.
1921 * DataGridBoolColumn.cs: reomve unused field.
1923 * DataGrid.cs: remove unused field.
1925 * Cursor.cs: remove old ToBitmap code.
1927 * ControlPaint.cs: remove unused method.
1929 * ScrollBar.cs: remove unused fields.
1931 * ComboBox.cs: remove unused field, and chain up to
1932 AccessibleObject ctor.
1934 * ListBox.cs: remove unused field.
1936 * ButtonBase.cs: wrap a couple fields in NET_2_0.
1938 * GridEntry.cs: remove unused fields.
1940 * Binding.cs: remove unused fields.
1942 * AxHost.cs: remove unused method.
1944 * ContainerControl.cs: remove unused field.
1946 * ScrollableControl.cs: remove unused fields.
1948 2006-12-01 Chris Toshok <toshok@ximian.com>
1950 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
1951 the Where/WhereString stuff. it's easy enough to CWL
1952 Environment.StackTrace.
1954 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
1955 unused private fields.
1957 2006-12-01 Jackson Harper <jackson@ximian.com>
1959 * TextControl.cs: Do not update the view while inserting multiline
1960 text. If we update the view we might wrap lines, before entering
1961 the new lines, which causes the new line insertion calculations to
1963 - Remove an old TODO
1964 - Make debug output a little nicer
1966 2006-12-01 Chris Toshok <toshok@ximian.com>
1968 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
1970 2006-12-01 Chris Toshok <toshok@ximian.com>
1972 [ fix the majority of the CS0108 warnings we've been suppressing ]
1974 * TreeView.cs: mark BackgroundImageChanged as 'new'.
1976 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
1977 to "LayoutToolBar" to quiet mcs.
1979 * TabControl.cs: mark our ControlCollection class as 'new'.
1981 * TextBoxBase.cs: mark some events as 'new'.
1983 * Splitter.cs: TabStop is 'new'.
1985 * ControlBindingsCollection.cs: mark a few methods as new since
1986 they change the visibility from protected to public.
1988 * RadioButton.cs: DoubleClick -> base class, and remove unused
1991 * MonthCalendar.cs: ImeMode property -> base class, and mark many
1994 * NumericUpDown.cs: TextChanged -> base class.
1996 * CheckedListBox.cs: mark our ObjectCollection class as new to
1999 * FolderBrowserDialog.cs: make HelpRequest event new and have it
2000 muck with the base class.
2002 * StatusBar.cs: fix some mcs warnings about Update being the same
2003 name as a base class method.
2005 * RichTextBox.cs: mark some events as new, and make them do things
2006 to the base class impl.
2008 * UserControl.cs: mark TextChanged as new, and have it manipulate
2011 * UpDownBase.cs: mark some things new.
2013 * CheckBox.cs: mark DoubleClick "new", and add some text about
2014 what we need to look at.
2016 * Panel.cs: make the events "new", and manipulate the base
2017 version. these are just here for attributes.
2019 * AccessibleObject.cs: make owner private.
2021 * Control.cs: deal with AccessibleObject.owner being private.
2022 cache our own copy if we need it.
2024 * Button.cs: add "new" to the DoubleClickEvent.
2026 * ListBox.cs: no need to track our own has_focus here. let
2027 Control.has_focus do it for us. Also some other work to clear up
2028 warnings about not overriding base class methods of the same name.
2030 * ComboBox.cs: clear up some warnings about not override base
2031 class methods of the same name.
2033 2006-12-01 Chris Toshok <toshok@ximian.com>
2035 * Form.cs: flag a few things as "new" to quiet some of the mcs
2040 * PrintPreviewDialog.cs: same.
2042 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
2043 now DGV isn't so horrible on the class status page. also, move
2044 all events to using System.ComponentModel.EventHandlerList. my
2047 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2049 * MdiWindowManager.cs:
2050 - Set form to active mdi child if shown,
2051 and update the active mdi child to the next
2052 remaining child in the z-order if the form is hidden.
2055 - Track if the form has been visible and if its
2056 visibility is beeing changed, so that the MdiClient
2057 can properly decide the ActiveMdiChild. The MdiClient
2058 cannot track this since the form can change visibility
2059 before MdiClient is created.
2062 - Don't activate anything of the parent form is changing
2064 - Rework ActiveMdiChild to only return visible mdi
2065 children and take into account several other corner
2068 2006-12-01 Chris Toshok <toshok@ximian.com>
2070 * IBindableComponent.cs: new 2.0 interface.
2072 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
2074 * DataGrid.cs: Font for caption area is bold by default.
2076 2006-12-01 Everaldo Canuto <everaldo@simios.org>
2078 * Menu.cs: Tag property for 2.0.
2080 2006-11-01 Everaldo Canuto <everaldo@simios.org>
2082 * ThemeWin32Classic.cs: Adjust menu separator drawing.
2084 2006-12-01 Chris Toshok <toshok@ximian.com>
2086 * TreeView.cs: doh, the Begin* events should be
2087 TreeViewCancelEventHandler.
2089 2006-12-01 Chris Toshok <toshok@ximian.com>
2091 * Form.cs: Form.ControlCollection already stores off the
2092 form_owner field. don't access the base class's internal "owner"
2095 * Control.cs: make all the fields in Control.ControlCollection
2096 private. there's no need for any internal fields here.
2098 2006-12-01 Chris Toshok <toshok@ximian.com>
2100 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
2101 OnHandleCreated. Fixes bug #80109.
2103 2006-12-01 Chris Toshok <toshok@ximian.com>
2105 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
2106 SplitContainer.cs, Control.cs, StatusStrip.cs,
2107 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
2108 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
2109 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
2110 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
2111 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
2112 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
2113 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
2114 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
2115 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
2116 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
2118 do most of the work to convert our code over to use
2119 System.ComponentModel.Component.Events for
2120 adding/removing/dispatching events.
2123 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
2125 * DataGridView.cs: Fix an ArgumentNullException reported
2128 2006-11-30 Mike Kestner <mkestner@novell.com>
2130 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
2131 grabbed listbox. Fixes #80036 and #80101.
2133 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2135 * Message.cs: Changed ToString() to match MS.
2137 2006-11-30 Jackson Harper <jackson@ximian.com>
2139 * TextBoxBase.cs: You can still change the selected text on a read
2141 * TextControl.cs: Lower magic number for wrap calculations. This
2142 lets text get closer to the right (far) edge.
2144 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
2146 * Control.cs: Tweak 2.0 layout properties.
2147 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
2148 * TextRenderer.cs: Add a new overload.
2149 * ToolStrip*: Huge amount of changes and new features.
2151 2006-11-30 Mike Kestner <mkestner@novell.com>
2153 * ComboBox.cs: fixes for LargeChange and Maximum to get the
2154 scroll range correct. Fixes #79994.
2156 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2158 * MdiWindowManager.cs: Update main form's text when
2159 a form is closed. (fixes #80038)
2161 2006-11-30 Everaldo Canuto <everaldo@simios.org>
2164 - Fix an regression in ButtonSize.
2165 - Get ImeMode default value change to "Disable".
2166 - Get ShowTooltips default value change to true, default value is
2167 "false" but after make a test in .NET we get "true" result as default.
2169 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
2171 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
2173 2006-11-29 Chris Toshok <toshok@ximian.com>
2175 * XplatUIWin32.cs (GetWindowTransparency): check return value of
2176 GetLayeredWindowAttributes. if it's 0, return 1.0, as
2177 SetWindowTransparency hasn't been called.
2179 2006-11-29 Chris Toshok <toshok@ximian.com>
2181 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
2183 (set_AllowTransparency): reorder things a little so that the
2184 WS_EX_LAYERED style is removed properly.
2186 2006-11-29 Chris Toshok <toshok@ximian.com>
2188 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
2190 * Form.cs: only call the XplatUI transparency method (get/set) if
2191 SupportsTransparency says it's supported. Otherwise fallback to
2192 doing nothing (in the set case) or returning the instance field we
2193 cache (in the get case).
2195 * XplatUIStructs.cs: add TransparencySupport flag enum.
2197 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
2198 change to SupportsTransparency.
2200 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
2201 TransparencySupport.None from SupportsTransparency.
2203 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
2204 TransparencySupport.Set from SupportsTransparency.
2206 * XplatUIWin32.cs: implement GetWindowTransparency calling
2207 GetLayeredWindowAttributes, and implement SupportsTransparency by
2208 checking whether or not both
2209 GetWindowTransparency/SetWindowTransparency are available
2210 entrypoints. We need to do this since SetWindowTransparency is
2211 available as of win2k, but GetWindowTransparency requires winxp.
2214 * XplatUI.cs: Add GetWindowTransparency, and change
2215 SupportsTransparency to allow for either/both Get/Set.
2217 2006-11-29 Chris Toshok <toshok@ximian.com>
2219 * DataGrid.cs: keep from going into an infinite loop redrawing a
2220 datagrid that has no datasource. Fixes bug #80033.
2222 2006-11-29 Chris Toshok <toshok@ximian.com>
2224 * MenuItem.cs: fix the NRE when we assign text (and therefore call
2225 Invalidate) before the mainmenu has been assigned to a control.
2227 2006-11-29 Chris Toshok <toshok@ximian.com>
2229 * DataGrid.cs: detect when we should be double the double click
2230 row/column autosize stuff, although that codepath has yet to be
2231 written. part of the work for bug #79891.
2233 2006-11-29 Chris Toshok <toshok@ximian.com>
2235 * Binding.cs (SetControl): fix unit test.
2237 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2239 * PageSetupDialog.cs: Validate the margins and set them in
2241 * NumericTextBox.cs: New class to mimic the behavior of the
2242 textboxes used in the printing dialogs.
2244 2006-11-29 Andreia Gaita <avidigal@novell.com>
2246 * Form.cs: Revert previous change (remove call UpdateBounds
2247 from form constructor), because it messes with the handle creation
2248 order, and that one needs lots and lots of love.
2249 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
2250 for valid printer and throw InvalidPrinterException if document
2251 is set but printer not valid), adding a MonoTODO. Once
2252 handle creation is done properly, we can put this back in.
2254 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2256 * MenuItem.cs: Create a invalidate method for menu item, to be
2257 calling from set text, it make text changes to imadiate update
2258 on screen. Fixes #80013.
2260 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2262 * ToolBar.cs: Fixes and simplify toolbar button layout, it
2263 fixes bug #80070 and some other problem on toolbar buttons
2266 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2268 * ThemeWin32Classic.cs: Paint toolbar toggle button background
2269 with dotted brush. Fixes #79564
2271 2006-11-28 Andreia Gaita <avidigal@novell.com>
2273 * Form.cs: Removed call to UpdateBounds on Form
2274 constructor, it was causing a call to CreateHandle
2275 before it was supposed to.
2276 * PrintControllerWithStatusDialog: Applied patch
2277 by Chris Toshok to hide controller when there are
2278 no printers available.
2279 PrintDialog.cs: initialize printer settings to
2280 null - correct DefaultValues test #5
2281 * PrintPreviewControl.cs: Move PrintController
2282 initialization to GeneratePreview
2283 * PrintPreviewDialog.cs:
2284 - Remove Preview generation from Document_set(). It is
2286 - Throw InvalidPrinterException on CreateHandle if
2287 a Document is set but there are no printers or
2288 printer is not valid.
2289 * ThemeWin32Classic: don't paint PrintPreviewControl
2290 if there is nothing to paint
2292 2006-11-28 Miguel de Icaza <miguel@novell.com>
2294 * Form.cs: Add another popular method.
2296 * TabPage.cs: ditto.
2298 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2300 * MenuItem.cs: Fixed a warning.
2301 * InternalWindowManager: Fixed a warning.
2303 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2306 - When cloning a menu also clone MdiList and clone the
2307 window menu items properly (as the forms and menuitems
2308 are kept in an internal hashtable, these need updating
2310 - Rewrote the window menu code, menu items are added in the
2311 order the forms were added to their parent, and they are
2312 updated every time the window menu is shown (before the
2313 list was only generated once, in the current order of the
2314 forms, and would never be updated). A checkmark is shown
2315 next to the item corresponding to the active mdi child.
2317 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2319 * XplatUIStructs.cs:
2320 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
2323 - Added TME_NONCLIENT to TMEFlags.
2324 - Handles WM_NCMOUSEMOVE in GetMessage to
2325 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
2328 - Now merges mdi child menu to parent menu when maximized.
2329 - Recalculate NC areas of both mdi child and mdi parent.
2331 on window state and size changes.Fixes #79844 (3).
2332 - Handle WM_NCCALCSIZE to properly calculate borders.
2335 - Add/remove to the mdi containers list of mdi children
2336 in the order they are added.
2337 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
2338 to the maximized mdi child.
2340 * InternalWindowManager.cs:
2341 - Only execute a click on the control buttons on the mouse up,
2342 not on the mouse down. Show the state of the button
2343 (was only showing Normal state, never Pressed state). The
2344 pressed button now follows the mouse (if you click the Close
2345 button and move the mouse over the Maximize button, the
2346 Maximize button will be shown as pressed). Since Win32 does
2347 not generate WM_NCLBUTTONUP if you release the button outside
2348 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
2351 * ThemeWin32Classic.cs:
2352 - Draw a missing border around mdi child forms. Fixes #79844 (2).
2355 - Added a list of forms which contains the order the forms are
2356 added to the mdi parent.
2357 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
2358 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
2359 - If the active form changes set the scrollbars to the top
2360 of the Z order, otherwise the form could hide them.
2361 - Scrollbars are now sized according to ClientSize, not
2362 to Size, and they take into account the other scrollbar
2363 to determine maximum.
2365 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2372 - Added RequestAdditionalWM_NCMessages for windows to
2373 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
2374 Currently only implemented in XplatUIWin32.
2376 2006-11-27 Chris Toshok <toshok@ximian.com>
2378 * Hwnd.cs: only add the hwnd to the windows hash in
2379 set_WholeWindow and set_ClientWindow if whole_window/client_window
2380 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
2382 2006-11-27 Mike Kestner <mkestner@novell.com>
2384 * ComboBox.cs: remove redundant OnDropDown call. It is called
2385 from the ComboListBox.ShowWindow code. Fixes #79969.
2387 2006-11-27 Chris Toshok <toshok@ximian.com>
2389 * Hwnd.cs: remove the setters for ExposePending and
2390 NCExposePending - noone uses them.
2392 2006-11-27 Jackson Harper <jackson@ximian.com>
2394 * TextControl.cs: new param for ReplaceSelection which determines
2395 whether we select the new selection, or set the cursor to the end
2396 of the new selection.
2397 * TextBoxBase.cs: Use new param for ReplaceSelection. When
2398 pasting, select the new text.
2399 * RichTextBox.cs: Use new param for ReplaceSelection.
2401 2006-11-27 Jackson Harper <jackson@ximian.com>
2403 * TextBoxBase.cs: Set the selection to the caret after the caret
2404 is moved, otherwise they get out of sync.
2406 2006-11-26 Everaldo Canuto <everaldo@simios.org>
2408 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
2411 2006-11-26 Everaldo Canuto <everaldo@simios.org>
2413 * ThemeWin32Classic.cs:
2414 - Fix toolbar drop down arrow position.
2415 - Fix drop down appearance when ToolBar.Appearance is normal,
2418 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
2420 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
2422 * UpDownBase.cs: Same.
2423 * ButtonBase.cs: Same.
2424 * ScrollBar.cs: Same.
2425 * TrackBar.cs: Same.
2426 * PictureBox.cs: Same.
2427 * UserControl.cs: Same.
2429 * ListControl.cs: Same.
2430 * TextBoxBase.cs: Same.
2431 * ListView.cs: Same.
2432 * RichTextBox.cs: Same.
2433 * TreeView.cs: Same.
2435 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
2438 - Text label for where
2439 - Text label comment was not shown
2441 2006-11-23 Everaldo Canuto <everaldo@simios.org>
2443 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
2445 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2447 * InternalWindowManager.cs:
2448 - Handle WM_PARENTNOTIFY to activate the form
2449 if any child control is clicked.
2450 - The form is only sizable if not minimized.
2452 * MdiWindowManager.cs:
2453 - Save the IconicBounds if the form is moved.
2454 - Rework SetWindowState, now the window bounds
2455 are stored only if the old window state is Normal.
2458 - In SetWindowStates store the old window state if
2459 the window is maximized and restore window state if
2460 the window looses focus.
2461 - Don't handle any scrollbar value changes if
2462 initializing the scroll bars. Fixes #79771.
2463 - Reworked ArrangeIconicWindows. Current algorithm
2464 tests bounds agains all other minimized windows, if
2465 any intersections create new bounds (going left to
2466 right, bottom to top) and then test again. When
2467 successful the bounds are saved and never computed
2468 again. Fixes #79774.
2470 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2472 * InternalWindowManager.cs: Added HandleTitleBarUp.
2474 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2476 * NumericUpDown.cs: In .NET 1.1, user entered text is still
2477 hexadecimal in ParseUserEdit.
2480 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2482 * MdiWindowManager.cs:
2483 - Handle a click on the form's icon to show the
2484 system menu (when maximized). Fixes #79775.
2485 - Change the existing click handler for the form's
2486 icon when not maximized to show on MouseUp.
2489 * Form.cs: In OnResize only layout the mdi child's
2490 parent if it actually has a parent. Might not if
2491 the window is closing.
2494 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2496 * MdiClient.cs: Ignore active MDI client for text of parent, if
2497 child has no text set.
2499 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2501 * ToolBar.cs: Fixed ToString to match MS.
2503 2006-11-22 Andreia Gaita <avidigal@novell.com>
2506 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
2507 update inner values on set. Fixes #79966.
2508 - Override OnLostFocus to update value on NET 2. Fixes #79950.
2509 - Fix hexadecimal parsing.
2511 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
2512 parent. Fixes #79957
2514 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2516 * Control.cs: After calling SetWindowsPos in SetBoundsCore
2517 the actual size has to be queried, since if height /
2518 width is negative Win32 changes it to 0.
2519 Fixes #79999 on Windows.
2521 * XplatUIX11.cs: Set height / width to 0 if negative
2522 in SetWindowPos. Fixes #79999 on Linux.
2524 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2526 * ThemeWin32Classic.cs: Fix text redenring when button is
2529 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2531 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
2532 and later navigate by mouse. Fixes #79528.
2534 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2536 * ToolBar.cs: Set default value for TabStop to false in
2537 constructor, it fixes remaining behavior of bug #79863.
2539 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2541 * MdiWindowManager.cs:
2542 * InternalWindowManager.cs:
2543 - Moved a few methods specific to Mdi from
2544 InternalWindowManager to MdiWindowManager.
2547 2006-11-21 Chris Toshok <toshok@ximian.com>
2549 * XplatUIOSX.cs: stub out InvalidateNC.
2551 * XplatUIWin32.cs: implement InvalidateNC using the call I found
2552 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
2554 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
2556 * XplatUIDriver.cs: add InvalidateNC abstract method.
2558 * XplatUI.cs: add InvalidateNC.
2560 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2562 * ToolBar.cs: Invalidate complete button area when pressed status
2564 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
2565 * ThemeWin32Classic.cs: Increase vertical and horizontal position
2566 by 1 when button is pressed.
2568 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2570 * ToolButton.cs: Invalidate middle of DropDown button when
2571 ToolBar theres DropDownArrows.
2572 * ThemeWin32Classic.cs: Change position of DropDown arrow and
2573 fix DropDown drawing operations.
2575 2006-11-20 Chris Toshok <toshok@ximian.com>
2577 * NativeWindow.cs: fix the formatting of functions ('{' on the
2578 following line), and enable the thread exception dialog.
2580 * Application.cs: remove the duplicate exception catching from
2583 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2585 * Toolbar.cs: Triggers button click event when click on icon
2586 of dropdown ToolBarButton. Fixes #79912.
2588 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2591 * ThemeWin32Classic.cs:
2592 - Added a property WindowBorderFont to enable themeing
2593 of mdi child windows' Text.
2595 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2597 * InternalWindowManager.cs:
2600 * MdiWindowManager.cs:
2601 - If mdi child is maximized, set mdi parent's
2602 text to "Parent - [Child]". Fixes #79770.
2603 - If there is any maximized mdi child windows, only the active
2604 window (and any new windows) is maximized, the rest are normal.
2605 - On a WindowState change only save mdi child's window bounds
2606 if the old window state was normal. Fixes #79774.
2607 - The scroll bars are now calculated on hopefully all
2608 necessary events. Fixed #79771 / #79844->6 / #79906.
2609 - MdiClient.SizeScrollBars() now takes into account docked
2610 controls in the parent when calculating available space.
2611 - InternalWindowManager now always repaints the entire title
2612 area. Fixes #79844->1/4/5.
2613 - Added RequestNCRecalc on mdi child windowstate changes.
2616 2006-11-20 Mike Kestner <mkestner@novell.com>
2618 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
2619 in the MouseUp handler of the listbox and move the return handling
2620 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
2622 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2624 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
2626 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2628 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
2629 working in 1.2.x anymore. So, updated.
2631 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
2633 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
2634 NumberGroupSeparator of current culture instead of assuming en-US.
2637 2006-11-17 Mike Kestner <mkestner@novell.com>
2639 * Control.cs: Add the concept of implicit bounds setting so that
2640 dock/undock round trips preserve explicitly set size/locations.
2643 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2645 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
2646 can't handle those filters. (Fixes bug #79961)
2648 2006-11-17 Chris Toshok <toshok@ximian.com>
2650 [ fixes the exit/crashes associated with #79835. it's clearly
2651 suboptimal though, we need to figure out a better way to solve
2654 * PrintPreviewControl.cs: deal with the new invalid printer
2657 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
2658 and return false (so CommonDialog.ShowDialog doesn't actually show
2661 * PrintDialog.cs: enable/disable the Ok button depending on
2662 whether or not the printer is valid.
2664 * CommonDialog.cs (ShowDialog): only actually show the form if
2665 RunDialog returns true.
2667 2006-11-17 Jackson Harper <jackson@ximian.com>
2669 * TextControl.cs: When soft splitting a line, mark it as a soft
2670 split line. Also carry over the current line break to the next
2673 2006-11-17 Chris Toshok <toshok@ximian.com>
2675 * XplatUIX11.cs: when scrolling a window with an invalid area, we
2676 only want to shift the part of the invalid area that overlaps the
2677 area we're scrolling. we also don't want to clear the invalid
2678 area unless the invalid area was entirely contained within the
2681 2006-11-16 Chris Toshok <toshok@ximian.com>
2683 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
2684 also make sure to free the memory returned by XGetWindowProperty
2687 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
2689 2006-11-16 Chris Toshok <toshok@ximian.com>
2691 * XplatUI.cs: add a new super secret way to get at the totally
2692 unsupported X11 backend.
2694 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
2696 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
2698 2006-11-16 Jackson Harper <jackson@ximian.com>
2700 * TreeView.cs: Allow more explicit setting of top node position
2701 for scrollbars. Slower algo, but more accurate.
2702 - CollapseAll should maintain the current top node.
2703 * TextBoxBase.cs: When positioning the caret, use the line, pos
2704 method, since the x, y method does not grab the correct tag, and
2705 the caret height never gets set correctly. (Maybe I should just do
2706 away with the caret having its own height, and always use the
2707 carets current tag for height).
2709 2006-11-16 Jonathan Pobst <monkey@jpobst.com
2711 [Fixes 79778, 79923]
2713 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
2714 Parent to the FosterParent instead.
2716 2006-11-16 Jackson Harper <jackson@ximian.com>
2718 * TreeView.cs: Need to recalc the topnode when we expand or
2719 collapse. The scrolling methods can't handle this on their own,
2720 since they use differences between the last scroll position, and
2721 those difference get completely messed up since we are expanding
2722 nodes. This problem should probably be fixed in the scrolling
2723 methods, so they can figure out exactly where they are, but this
2724 will slow things down a little.
2725 * ThemeWin32Classic.cs: Special case for groupboxes with empty
2726 strings, makes nunit-gui look a lot nicer.
2728 2006-11-16 Chris Toshok <toshok@ximian.com>
2730 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
2731 the broken multithreaded event handling we have in here. File
2732 this entry under "Why we should move to the new X11 backend".
2734 Any thread can make it into UpdateMessageQueue, which gets events
2735 from the X socket - some of which could belong to hwnds being
2736 managed by a different thread. We can also have multiple threads
2737 in UpdateMessageQueue at the same time, with each one reading from
2738 the X socket. This leads to many problems, with the following
2741 We can't use hwnd.Queue.Enqueue anywhere in here and must use
2744 The MotionNotify compression we do can't work across threads
2745 (without locking the entire queue, perhaps) since we call
2746 hwnd.Queue.Peek, so we just punt and don't compress motion events
2747 unless the owning thread is the one which got the X event.
2749 ConfigureNotify is another fun one, since it modifies the hwnd's
2750 bounds and then enqueues the event. We add a lock to Hwnd which
2751 is held when setting configure_pending to true (and enqueuing the
2754 There is a race wrt the wake socket. we need to make sure that
2755 only 1 thread is waiting on that socket, or else a thread could
2756 sleep waiting for data that never comes. It's difficult (but not
2757 impossible) to make happen, because it seems to require something
2760 1. Thread 1 polls on wake_receive
2762 2. poll returns saying there's data to be read on
2765 3. Thread 2 polls on wake_receive and immediately returns
2766 saying there's data to be read.
2768 4. Thread 2 reads the wakeup byte from wake_receive
2770 5. Thread 1 attempts to read the wakeup byte from
2773 6. Thread 2 exits (due to a form closing, perhaps).
2775 7. Thread 1 blocks forever.
2779 Fixing the Expose handling isn't done yet, and the races inherent
2780 in that piece of code are responsible for the drawing mistakes you
2781 see when generating expose events in a MT app (like NPlot). This
2782 one is the likely to be the hardest to bandaid, and it doesn't
2783 appear to cause anything but drawing problems. The other issues
2784 caused apps to exit or hang.
2786 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
2787 called from a different thread than the one that should be calling
2790 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
2792 2006-11-15 Chris Toshok <toshok@ximian.com>
2794 * Application.cs: null out the context's MainForm when we exit
2795 RunLoop. Fixes a newly checked in unit test as well as the last
2796 ODE from bug #79933.
2798 2006-11-15 Chris Toshok <toshok@ximian.com>
2800 * Form.cs (set_Owner): allow a null value so we can clear the
2802 (Dispose): set all our owned_form's Owner properties to null, and
2803 clear the owned_forms collection.
2804 (WM_CLOSE): clean up this a little bit.. still not right though.
2806 * ApplicationContext.cs: OnMainFormClosed should only call
2807 ExitThreadCore if the main form isn't recreating. Fixes unit
2810 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2814 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
2816 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2820 * Hwnd.cs: Add a flag to show a window, but not activate it, to
2821 keep popup window types from stealing focus from the main form
2824 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
2826 * MenuAPI.cs: Set above flag to true.
2828 2006-11-15 Chris Toshok <toshok@ximian.com>
2830 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
2831 the button being released is not in wParam.
2833 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2835 * Form.cs: Add the released button to MouseEventArgs.Button
2836 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
2839 2006-11-15 Chris Toshok <toshok@ximian.com>
2841 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
2842 GetText(). untested because it's unused in our implementation.
2843 Control.Text always caches the text, even if
2844 ControlStyles.CacheText is not set.
2848 2006-11-15 Chris Toshok <toshok@ximian.com>
2852 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
2853 message. no hiding, no disposing.
2855 in the WM_CLOSE handler, hide the form if it's modal.
2857 2006-11-15 Chris Toshok <toshok@ximian.com>
2859 * XplatUIX11.cs: use AddExpose instead of sending a message.
2860 fixes textbox border drawing.
2862 2006-11-15 Chris Toshok <toshok@ximian.com>
2864 * PropertyGridView.cs: keep from crashing on mouse move/down when
2865 the property grid is empty.
2867 2006-11-14 Jackson Harper <jackson@ximian.com>
2869 * TextControl.cs: Make PageUp and PageDown more like the MS
2871 * TextBoxBase.cs: When we set the text property position the
2872 cursor at the beginning of the document.
2874 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2876 * Form.cs: if a mdi child's WindowState has changed
2877 before it's creation, it would display wrong control
2880 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
2882 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
2885 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2887 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
2888 the window gets to paint its borders even if the window is
2891 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
2892 otherwise the old control buttons would still be painted
2893 if the window gets bigger.
2895 * PaintEventArgs.cs: add an internal method so that the clip
2896 rectangle can be changed.
2898 2006-11-13 Chris Toshok <toshok@ximian.com>
2900 [ fixes bug #79745 ]
2902 * NotifyIcon.cs: lots of cleanup.
2904 * X11Structs.cs: add an enum for XEMBED messages.
2906 * XplatUIX11.cs: reindent one of the giant switch statements, it
2907 was taking up an additional tab stop, and this file is already way
2908 too wide for my laptop's screen.
2910 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
2911 we get it, resize the hwnd to the WMNormalHints max_width/height.
2913 2006-11-13 Jackson Harper <jackson@ximian.com>
2915 * TextBoxBase.cs: Compute the value changes for the mouse wheel
2918 2006-11-13 Chris Toshok <toshok@ximian.com>
2920 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
2921 #79898. force a reference to the Region to stick around so the
2922 unmanaged object isn't collected (rendering our handle in the MSG
2925 2006-11-13 Chris Toshok <toshok@ximian.com>
2927 * XplatUIX11.cs: fix #79917 for window managers which support
2929 using XStoreName on the raw utf8, and we need to convert to
2930 COMPOUND_TEXT if it's non-latin1.
2932 2006-11-13 Chris Toshok <toshok@ximian.com>
2934 * Form.cs (set_DialogResult): we need to set closing to false if
2935 we're setting our result to None. fixes bug #79908.
2937 2006-11-13 Jackson Harper <jackson@ximian.com>
2939 * TextControl.cs: When formatting text, compute the adjusted tag
2940 lengths correctly, using FindTag for the end tag instead of trying
2941 to figure it out outselves.
2942 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
2943 the item, ItemHeight doesn't work, because trees with large
2944 imagelists use those for their height
2945 * TreeView.cs: ActualItemHeight factors in the image height
2946 - compute left edge of checkboxes correctly
2947 - when expanding/collapsing move the bottom down one pixel, so we
2948 aren't moving part of the node
2950 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2952 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
2953 stack in PaintEventStart so that it won't get disposed by the gc
2954 before reaching PaintEventEnd.
2956 2006-11-13 Jackson Harper <jackson@ximian.com>
2958 * TextBoxBase.cs: Don't select the word if we are on a line with
2960 - We don't need to position the caret on mouse up, since the mouse
2961 move handler should be doing this
2962 - When double clicking a blank line, the caret is advanced to the
2965 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
2967 * TreeNodeCollection.cs: Avoid duplicating indexer code.
2969 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
2971 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
2972 Fixes part of bug #79910.
2974 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
2976 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
2977 (bug #79903). Some minor string updates to match ms.
2979 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2981 * FileDialog.cs: Don't add an extension if the filename
2982 already ends with that extension.
2984 2006-11-10 Jackson Harper <jackson@ximian.com>
2986 * TreeView.cs: Use the currently highlighted node for the
2988 * TextBoxBase.cs: There is no need to expand selection on
2990 - CanUndo means 'is there any undo operations', not 'is undo
2991 allowed on this textcontrol. Fixed ClearUndo unit test.
2993 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
2995 * Button.cs: only perform click when button is Selectable (so as
2996 not to activate default buttons when they're disabled)
2998 * Control.cs: Rewrite of the SelectNextControl and related
2999 methods. HandleClick now selects next control if the current one
3002 * Form.cs: OnActivated selects next active control only if Load
3003 has already occurred. If Load hasn't run, there's no point in
3004 selecting here, Load might change the state of controls.
3006 * FocusTest.cs: Tests marked as working again for these fixes
3008 2006-11-10 Chris Toshok <toshok@ximian.com>
3010 * XplatUIX11.cs: a couple of fixes.
3012 - use XInternAtoms with almost all the atoms we need to register,
3013 instead of many, many calls to XInternAtom. should help a bit on
3014 startup time, at the expense of making the code look a little
3017 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
3018 isn't reparented (which seems to be a clue that we're running fon
3019 compiz) and they have an Owner form. This fixes the tool windows
3020 in paint.net when running under compiz.
3022 - when setting the opacity of a window, support both the case
3023 where the window has been reparented and also when it hasn't been.
3024 Since compiz/beryl doesn't seem to reparent windows, and these are
3025 the only window managers which support translucency, I'm not sure
3026 why we need the hwnd.reparented case at all.. but leave it in.
3027 now we get translucent windows in paint.net under compiz/beryl.
3029 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
3031 * FileDialog.cs: Always return the value for FilterIndex that
3032 was set. Internally convert it to values that make sense.
3034 2006-11-10 Everaldo Canuto <everaldo@simios.org>
3036 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
3038 2006-11-10 Everaldo Canuto <everaldo@simios.org>
3040 * Toolbar.cs: Change default value of DropDownArrows to true, the
3041 signature still using false to make it compatible with MS but the
3042 initial value is true. Fixes #79855.
3044 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
3046 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
3047 only available on Linux.
3049 2006-11-09 Everaldo Canuto <everaldo@simios.org>
3051 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
3052 reduce number of calls to redraw method during toolbar creation.
3054 2006-11-09 Mike Kestner <mkestner@novell.com>
3056 * ListView.cs : raise SelectedIndexChanged when an item is selected
3057 programmatically via the Item.Selected property. Gert's nice
3058 ListViewSelectedIndexChanged test fixture now runs clean.
3060 2006-11-09 Mike Kestner <mkestner@novell.com>
3062 * ListView.cs : raise SelectedIndexChanged when a selected item is
3063 removed from the item collection using Remove or RemoveAt.
3065 2006-11-09 Mike Kestner <mkestner@novell.com>
3067 * ListView.cs : raise SelectedIndexChanged once per selected item
3068 for compat with MS. Fixes #79849+.
3070 2006-11-09 Chris Toshok <toshok@ximian.com>
3072 * TabControl.cs: initialize row_count to 0, and set it to 1 when
3073 we need to (if we have any tab pages). Fixes unit test.
3075 2006-11-09 Chris Toshok <toshok@ximian.com>
3077 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
3078 width is 0, not 3. Fixes a unit test.
3080 2006-11-09 Mike Kestner <mkestner@novell.com>
3082 * ListView.cs : use Implicit scrollbars so that focus isn't
3083 stolen from the listview when they are clicked. Fixes #79850.
3085 2006-11-09 Chris Toshok <toshok@ximian.com>
3087 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
3088 have a root item. Fixes #79879.
3090 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
3094 - An ArgumentException is now thrown if a wrong filter
3095 is applied (matches ms). The previous filter doesn't change
3096 anymore if an exception is thrown.
3097 - Changing the FileName property also affects FileNames
3098 * ColorDialog.cs: The length of the CustomColors array is always
3099 16. It doesn't matter if we use a smaller array or null to update
3100 or change the custom colors property.
3101 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
3102 for RootFolder if we get a undefined value.
3104 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3106 * StatusBarPanel.cs:
3107 - Width is set to MinWidth if Width is smaller than
3108 MinWidth. Fixes #79842.
3109 - MinWidth now always overrides Width (MSDN says MinWidth
3110 is set to Width when AutoSize = None, but they do not
3112 - Style has now the the correct default value.
3114 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3117 - The control is completely invalidated on
3118 Got/LostFocus to draw the focus rectangle correctly.
3119 - When AutoSize then height is always 45 (width for
3122 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
3123 on the mouse when moved and it doesn't move when grabbed
3124 until the mouse moves as well. Also fixed some wrong
3125 calculations when clicking on the thumb (control thought
3126 click was outside of thumb and didn't grab it).
3127 Fixes some of the issues in #79718.
3129 2006-11-08 Everaldo Canuto <everaldo@simios.org>
3131 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
3133 2006-11-08 Chris Toshok <toshok@ximian.com>
3135 * PropertyGridView.cs: only call ToggleValue if the item is not
3138 2006-11-08 Jackson Harper <jackson@ximian.com>
3140 * TextBoxBase.cs: The RichTextBox and textbox have very different
3141 word selection methods. Implement the textbox's simple word
3142 selection here, and let the RichTextBox override and provide it's
3144 - Don't do extra selection on mouseup
3145 * RichTextBox.cs: Use the documents word selection algorithm, I
3146 think ideally, this function will be pulled into the
3147 RichTextBox.cs code someday.
3149 2006-11-08 Chris Toshok <toshok@ximian.com>
3151 * RootGridEntry.cs: new class to represent GridItemType.Root.
3153 * CategoryGridEntry.cs: reformat, and add boilerplate.
3155 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
3156 returns the UI parent anyway, and we need special handling to
3157 implement the GetTarget method in the face of it. Also, implement
3160 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
3161 a root grid item, and use that instead of PropertyGrid.grid_items.
3162 Also, make use of TypeConverters (and add limitted support for
3163 ICustomTypeDescriptors) when initially populating the grid.
3164 Arrays now show up more or less properly.
3166 2006-11-08 Chris Toshok <toshok@ximian.com>
3168 * Application.cs: set the modal dialog to non modal after we close
3169 it. Fixes bug #79866.
3171 2006-11-08 Jackson Harper <jackson@ximian.com>
3173 * TextControl.cs: When combining lines carry over the line end
3174 style from the end line.
3175 - Invalidate the selected area when setting it, if it is visible.
3176 * TextBoxBase.cs: Only rich text box can do full line selects.
3177 - Make sure to set the cursor position when there is a click,
3178 otherwise two clicks in separate areas could cause a large chunk
3181 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3183 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
3186 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3188 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
3189 time. Remove tooltips when ToolButton click events. Fixes #79856.
3191 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3193 * MenuAPI.cs: Ignore right click for menu actions and fixes
3194 menu border when clicked. Fixes #79846.
3196 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3198 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
3199 MouseState after create wParam for message, this fixes mouse button
3200 equal none in mouse up events.
3202 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
3204 * Control.cs : Focus() now calls Select to set the Container's
3205 Active Control and to give it focus. To avoid infinite recursion
3206 (because ActiveControl also calls Focus at one point), a check
3207 is made in Focus with the help of a new internal variable
3210 2006-11-07 Mike Kestner <mkestner@novell.com>
3212 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
3213 if there's a selection. Fixes #79849.
3215 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
3217 * PropertyGrid.cs: Avoid fixed height of help description label.
3218 Fixes part of bug #79829.
3220 2006-11-07 Chris Toshok <toshok@ximian.com>
3222 * XplatUIX11.cs: fix #79790 again, by using the
3223 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
3225 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3227 * ToolBar.cs: Fix left click checking.
3229 2006-11-07 Chris Toshok <toshok@ximian.com>
3231 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
3233 2006-11-07 Chris Toshok <toshok@ximian.com>
3235 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
3236 PropertyManager unit tests.
3238 * PropertyManager.cs: make property_name internal.
3240 2006-11-07 Chris Toshok <toshok@ximian.com>
3242 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
3243 pass a unit test. Also, don't set image_index to anything in
3244 response to setting the ImageList property.
3246 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3248 * ToolBar.cs: Ignore click events when mouse button is not a
3249 left button, only accepts other button for dropdown menus.
3252 2006-11-07 Chris Toshok <toshok@ximian.com>
3254 * DataGrid.cs: make the back and parent row buttons a little less
3257 2006-11-07 Jackson Harper <jackson@ximian.com>
3259 * TextBoxBase.cs: When converting to Text don't put line breaks in
3260 for soft line breaks.
3261 * TextControl.cs: There is an initial "fake" line in the document,
3262 this is now a soft break line, so that an extra line feed doesn't
3263 get added to the end of documents.
3265 2006-11-07 Chris Toshok <toshok@ximian.com>
3269 * CurrencyManager.cs: if the list is readonly, don't bother
3270 checking if IBindingList.AllowNew is true.
3272 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
3273 for non-DataRowView datasources.. or rather, make it not crash.
3274 (DataGridPaintRelationRow): make sure we limit the row painting to
3275 the area not covered by the row header, and make our cell width at
3276 least large enough to cover the relation area. This allows grids
3277 that have relations but no rows to render correctly.
3278 (DataGridPaintRowContents): same type of changes here.
3279 (SetDataSource): move back to always calling
3280 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
3281 navigating back through relations.
3282 (HitTest): handle the case where we have no cells but have
3283 relations. Right now we generate a hit in cell 0 of whatever the
3284 row is, not sure if this is strictly correct, but it works for our
3287 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
3288 bother doing anything.
3290 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
3292 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
3293 early version of StatusStrip. Not responsible for eaten
3294 application or firstborn children.
3296 2006-11-06 Chris Toshok <toshok@ximian.com>
3298 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
3299 call GetTabRect with a -1 index. Fixes #79847.
3301 2006-11-06 Jackson Harper <jackson@ximian.com>
3303 * TreeNodeCollection.cs: Update scrollbars after clearing.
3305 2006-11-06 Chris Toshok <toshok@ximian.com>
3307 * NumericUpDown.cs: fix the ToString method for some unit test
3310 2006-11-06 Chris Toshok <toshok@ximian.com>
3313 - set the initial SelectedGridItem if we can.
3315 - Exclude non-mergable properties only if we're merging > 1
3316 object. Merging 1 object isn't really merging, obviously.
3318 - Handle PropertySort.NoSort just like Alphabetical, which is
3319 wrong of course, but at least gets things on the screen.
3321 * PropertyGridView.cs:
3322 - Add method "FindFirstItem" which finds the first property grid
3323 item, so we can select it by default.
3325 - make use of GridEntry.CanResetValue.
3327 - Don't call RedrawBelowItemOnExpansion here anymore, the
3328 individual GridEntry's will do that.
3330 - Remove the ITypeDescriptorContextImpl internal class.
3333 - this class needs to implement ITypeDescriptorContext, as it's
3334 what MS's PropertyDescriptorGridEntry does, which means we can
3335 remove the ITypeDescriptorContextImpl internal class from
3336 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
3338 - keep a reference to our PropertyGridView, and move the call to
3339 RedrawBelowItemOnExpansion here from PGV. This means
3340 programmaticly setting Expanded actually does something visible.
3342 - add a CanResetValue() function which takes into account our
3343 possibly multiple "selected_objects" in the merged case. Shifting
3344 PropertyGridView to use this method fixes another unreported
3345 crasher found running the test for #79829.
3347 - when Top or Bounds is updated, make sure the PropertyGridTextBox
3348 is updated to reflect this.
3350 * CategoryGridEntry.cs: the ctor takes the PGV now.
3352 2006-11-06 Jackson Harper <jackson@ximian.com>
3354 * TextControl.cs: These are 1 based.
3355 * TextBoxBase.cs: When setting the selected text, don't change the
3356 selected text tags, this is done by ReplaceText, just position the
3357 cursor at the end of the new text.
3359 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
3361 * ListView.cs: Allow label edit only when, when LabelEdit is
3364 2006-11-06 Jackson Harper <jackson@ximian.com>
3366 * TextControl.cs: If a suitable wrapping position isn't found,
3367 just wrap right in the middle of a word.
3369 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
3371 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
3374 2006-11-06 Jackson Harper <jackson@ximian.com>
3376 * TreeView.cs: Can't use the VisibleCount property when setting
3377 scrollbar heights, because this doesn't take into account whether
3378 or not the horz scrollbar just came visible.
3380 2006-11-05 Everaldo Canuto <everaldo@simios.org>
3382 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
3383 activated. Fixes #79369, #79832.
3385 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
3387 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
3388 had to remove support for links that point to a directory. FileInfo
3389 returns no usefull information (means, the directory they point to)
3390 for such links. Replaced some empty string ("") with String.Empty.
3392 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3394 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
3395 NullReferenceException when attempting to remove node that is not in
3396 collection. Throw NullReferenceException when null is passed to
3397 Remove. Allow first element of the collection to be removed. Fixes
3398 bug #79831. In GetEnumerator ().Current return null if positioned
3399 before the first element of the collection. In GetEnumerator ().Reset,
3400 position before first element of the collection.
3402 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3404 * PropertyGrid.cs: To match MS, remove default title and description
3405 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
3408 2006-11-04 Chris Toshok <toshok@ximian.com>
3410 * Theme.cs: add a Clamp method, just for kicks.
3412 * ThemeWin32Classic.cs: clamp all color components to [0..255].
3414 2006-11-04 Chris Toshok <toshok@ximian.com>
3416 * Form.cs: if the form isn't visible, Close() does nothing.
3418 2006-11-03 Chris Toshok <toshok@ximian.com>
3420 * Form.cs (Close): if the form is modal, don't Dispose of it, only
3422 (WndProc): don't Dispose after handling the WM_CLOSE message.
3424 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
3425 them as such, instead of using casts from Control to Form. Also,
3426 don't Dispose of the modal dialog when we fall out of the loop -
3431 2006-11-03 Chris Toshok <toshok@ximian.com>
3433 * Control.cs (Dispose): only go through the dispose thing if we're
3434 @disposing, and we haven't already been disposed. Fixes bug
3437 * Form.cs: no reason to call "base.Dispose()" here instead of
3440 2006-11-03 Mike Kestner <mkestner@novell.com>
3442 * ComboBox.cs : use ToString instead of casts in AddItem for
3443 sorting functionality. Fixes #79812.
3445 2006-11-03 Chris Toshok <toshok@ximian.com>
3447 * Application.cs: pave the way for actually using the thread
3448 exception dialog. it's ifdefed out at the moment.
3450 2006-11-03 Chris Toshok <toshok@ximian.com>
3452 * ThreadExceptionDialog.cs: until we get a better layout, actually
3453 hide the details textbox and label when we shouldn't see them.
3455 2006-11-03 Jackson Harper <jackson@ximian.com>
3457 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
3458 multiline textboxes anymore. This method also determines the
3459 width/height of a textboxes canvas area.
3460 - Sorta a revert of the last patch. For multiline just position
3461 the controls, then bail. This way the scrollbar width won't be
3464 2006-11-03 Everaldo Canuto <everaldo@simios.org>
3466 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
3467 it dont need. Fixes #79537.
3469 2006-11-02 Jackson Harper <jackson@ximian.com>
3471 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
3472 send the status after firing the DndOver event.
3474 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3476 * TrackBar.cs: Now orientation only switches height / width if
3477 the control's handle is created (Win32 does it like this). Also
3478 fixed a typo in ToString() for a test to pass, changed the
3479 exception thrown in set_LargeChange and set_SmallChange to
3480 match Win32 behaviour, and added TrackBar tests to the unit
3483 2006-11-02 Chris Toshok <toshok@ximian.com>
3485 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
3486 not _NET_WM_STATE_NO_TASKBAR.
3488 2006-11-02 Jackson Harper <jackson@ximian.com>
3490 * TextControl.cs: Increment count by one, since in the update view
3493 2006-11-02 Jackson Harper <jackson@ximian.com>
3495 * TextBoxBase.cs: Use client rectangle not bounds for checking if
3496 the mouse is in the client rectangle (duh).
3498 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3500 * TrackBar.cs: Fixed trackbar jumping around when clicking
3501 on it - the trackbar was not detecting correctly at which
3502 side of the thumb the click was done. (fixes #79718)
3504 2006-11-02 Everaldo Canuto <everaldo@simios.org>
3506 * ListBox.cs: scroll visible area when change SelectedIndex to
3507 a non visible area. Fixes #79481.
3509 2006-11-01 Jackson Harper <jackson@ximian.com>
3511 * TextControl.cs: When replacing the selection move the selection
3512 start/end/anchor to the end of the new text.
3514 2006-11-01 Jackson Harper <jackson@ximian.com>
3516 * XplatUIWin32.cs: When setting the parent change the controls
3517 visibility to it's visibility flag, not to it's old parents
3518 visibility (.Visible walks the parent chain).
3520 2006-11-01 Chris Toshok <toshok@ximian.com>
3522 * XplatUIX11.cs: revert the #79790 fix, as the simple.
3523 XSetTransientForHint fix breaks paint .net's tool windows. more
3524 work needed for that one.
3526 2006-11-01 Chris Toshok <toshok@ximian.com>
3528 * ScrollBar.cs: throw ArgumentException instead of Exception in
3529 LargeChange/SmallChange setters. fixes unit tests.
3531 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3533 * ContainerControl.cs: reverted rev.67183 (which was itself
3534 a reversion of rev.66853... eh).
3536 * Control.cs: Fixes Reflector hang by changing Focus() call
3537 to what it was before rev.66643 (calling Select() here sets
3538 ActiveControl, which in some situations calls back Focus and
3539 eventually does a stack overflow). Temp fix.
3540 Changes to GetNextControl() to not look for children to select when
3541 parent cannot be selectable (so it looks for siblings instead)
3543 2006-10-31 Mike Kestner <mkestner@novell.com>
3545 * CheckedListBox.cs : off by one error in returned index from
3546 ObjectCollection.Add. Fixes #79758.
3548 2006-10-31 Chris Toshok <toshok@ximian.com>
3550 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
3551 calls for the textbox/spinner, to keep from recursing to the point
3552 where we crash. Fixes #79760.
3554 2006-10-31 Chris Toshok <toshok@ximian.com>
3556 * ListControl.cs (set_SelectedValue): don't throw exceptions on
3557 null/"" value, just return. matches ms's behavior and fixes some
3560 2006-10-31 Chris Toshok <toshok@ximian.com>
3562 * Control.cs (set_Capture): make a logic a little easier to
3565 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
3566 if it's being destroyed. A necessary fix surely, but a bandaid
3567 also, to fix the stuck capture problem in bug #78413.
3569 2006-10-31 Chris Toshok <toshok@ximian.com>
3571 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
3572 convention of clearing hwnd.ClientRect when we set the
3573 width/height (so it'll be recalculated by Hwnd).
3575 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3577 * ContainerControl.cs: reversed Contains check from
3578 ActiveControl due to hanging problems. This fix
3579 partly regresses #79667 (button does not have
3580 initial focus), so this might be a symptom for
3581 a larger parenting problem (set_ActiveControl
3582 is being called but the child control does
3583 not have the parent set yet?)
3585 2006-10-31 Mike Kestner <mkestner@novell.com>
3587 * MenuAPI.cs : fix keynav when menu is click activated.
3589 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
3591 * ToolStrip*: Version 0.2.
3593 * MenuStrip.cs: Version 0.1.
3595 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
3597 2006-10-30 Chris Toshok <toshok@ximian.com>
3599 [ fixes the oversized notify icon issue in bug #79745 ]
3601 * NotifyIcon.cs: scale the icon down to the size we're given by
3602 the XplatUI layer (this would be faster if we did it once instead
3603 of whenever we paint..) Also, remove the WM_NCPAINT handling,
3604 since it's never invoked.
3606 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
3607 pixels high by default, so let's hardcode our systray icon to that
3608 size. The SYSTEM_TRAY protocol should really have a way for
3609 client apps to query for the correct icon size.. but oh well. A
3610 couple of patches to deal with the screwy client_window ==
3611 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
3612 instance, and also make sure we don't XSelectInput twice).
3614 2006-10-30 Chris Toshok <toshok@ximian.com>
3616 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
3617 recreating forms. Control recreation is the bane of my existence.
3618 Fix it in a way that keeps everyone happy.
3620 2006-10-30 Chris Toshok <toshok@ximian.com>
3622 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
3623 just non-CHILD ones. otherwise sometimes scrollbars end up with
3624 client_windows not being resized to the proper size (ReportBuilder
3625 shows this extremely well).
3627 2006-10-30 Chris Toshok <toshok@ximian.com>
3629 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
3630 for non-WS_EX_APPWINDOW windows. This is what keeps them from
3631 showing up in the gnome taskbar. Fixes bug #79790.
3633 2006-10-30 Chris Toshok <toshok@ximian.com>
3635 * ApplicationContext.cs: guard against a NRE.
3637 * Application.cs: null out the old MainForm for the context, so we
3638 don't try to use it again once it's disposed. Fixes bug #79783.
3640 2006-10-30 Chris Toshok <toshok@ximian.com>
3642 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
3643 BindingContext, set the data source directly, otherwise do the
3644 lazy approach - the actual ListManager will be created when we get
3645 a BindingContext. Fixes bug #79700.
3647 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3649 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
3650 XplatUIX11.cs: Remove old 2 parameter SetVisible.
3652 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
3654 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3656 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
3657 of SetVisible that allows a window to be shown, but not activated.
3658 This is needed on Windows for MenuStrip, and can probably be used
3659 with MainMenu and ComboBox to fix the focus stealing issues on
3662 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
3664 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
3666 * PictureBox.cs: Fix the output of the ToString method.
3668 2006-10-29 Chris Toshok <toshok@ximian.com>
3670 * Control.cs (get_TopLevelControl): fix bug #79781.
3672 2006-10-29 Chris Toshok <toshok@ximian.com>
3674 * ListControl.cs (set_DataSource): throw Exception here, not
3675 ArgumentException, to match MS behavior.
3677 2006-10-29 Chris Toshok <toshok@ximian.com>
3679 * Form.cs: remove the try-catch's around calls to GetWindowState.
3680 We can just check the return value.
3682 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
3685 * XplatUI.cs: Add note about additional return value for
3688 2006-10-29 Chris Toshok <toshok@ximian.com>
3690 * Control.cs (CreateHandle): when we create our handle, we also
3691 create the handles of our child controls. Fixes one of the
3692 Control unit tests (CH11).
3694 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3696 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
3698 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3700 * ThemeClearlooks.cs: A little speedup.
3702 2006-10-27 Chris Toshok <toshok@ximian.com>
3704 * Control.cs: implement Control.FromChildHandle in a way that
3705 matches the docs (and fixes the failed test.)
3707 2006-10-27 Chris Toshok <toshok@ximian.com>
3709 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
3712 * DataGrid.cs: implement ResetForeColor such that the tests
3715 2006-10-27 Chris Toshok <toshok@ximian.com>
3717 * ToolBarButton.cs: setting text/tooltiptext to null results in it
3718 being set to "". Fixes bug #79759.
3720 2006-10-27 Jackson Harper <jackson@ximian.com>
3722 * TextControl.cs: We need to clear the entire selection area when
3723 setting the start, otherwise multiline selections are still
3726 2006-10-26 Chris Toshok <toshok@ximian.com>
3728 * PropertyGridView.cs:
3730 - ifdef all the code specific to the double
3731 buffer case, and provide some alternatives in the non-doublebuffer
3732 code, which makes heavy use of XplatUI.ScrollWindow to move things
3733 around without having to invalidate (and cause flicker). There
3734 are still some drawing problems in the non-doublebuffered case, so
3735 DOUBLEBUFFER is defined by default.
3737 - Fix the way dropdowns are handled. now we explicitly watch for
3738 the events which might cause the dropdown to close, and break out
3739 of the nested event loop there. This gets rid of all Capture
3740 code, at the expense of the Msg special casing. Seems to work,
3741 though, and fixes bug #79743.
3743 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3744 * Control.cs: SetIsRecreating now recreates implicitly added
3745 child controls as well. Finally fixes #79629. The flag passed to
3746 SetIsRecreating has also been removed since it wasn't used.
3748 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3750 * PageSetupDialog.cs: Clean some code, fix some bits,
3751 add some checks, and add a printer sub-dialog.
3753 2006-10-26 Chris Toshok <toshok@ximian.com>
3755 * PropertyGrid.cs: make set_SelectedObject call
3756 set_SelectedObjects, and move the duplicate logic to the
3757 SelectedObjects setter. Also, raise SelectedObjectsChanged.
3759 * PropertyGridView.cs: hide the textbox when we get a
3760 SelectedObjectsChanged event.
3764 2006-10-26 Chris Toshok <toshok@ximian.com>
3766 * PropertyGridView.cs: deal with the type converter not supporting
3767 GetStandardValues() or GetStandardValues() returning null, which
3768 is does in the default case. Fixes #79742.
3770 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3772 * CheckedListBox.cs: nunit no longer crashes when selecting
3773 Project/Edit menu option
3775 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3777 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
3778 is no menu selected. fixes #79739
3780 2006-10-25 Chris Toshok <toshok@ximian.com>
3782 * PropertyGridView.cs: factor out the splitter invalidation code
3783 into the SplitterPercent setter, and for kicks implement the
3784 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
3785 amount in either direction.
3787 2006-10-25 Chris Toshok <toshok@ximian.com>
3789 * PropertyGridView.cs: do some cleanup of the brush used to draw
3790 text - read only fields should be grayed out. not sure how to do
3791 this with the textbox, though. but the textbox's should also be
3792 readonly now at least. Also, hide/show the textbox when resizing
3795 * CursorConverter.cs: use System.Reflection when getting the
3796 properties of Cursors, as TypeDescriptor.GetProperties isn't
3797 returning static properties.
3799 2006-10-25 Chris Toshok <toshok@ximian.com>
3801 * PropertyGridView.cs: factor out the up/down handling, and reuse
3802 it for page up/down. also add End/Home support.
3804 2006-10-25 Chris Toshok <toshok@ximian.com>
3806 * PropertyGridView.cs:
3808 - ensure the selected grid item is visible in the scrolled area,
3811 - fix Keys.Down handling when you're on the last item in the
3814 2006-10-25 Mike Kestner <mkestner@novell.com>
3816 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
3817 clicks too. Fixes #79725.
3819 2006-10-24 Chris Toshok <toshok@ximian.com>
3821 * PropertyGrid.cs: use property.Converter instead of
3822 TypeDescriptor.GetConverter(property.PropertyType), so we catch
3823 TypeConverters declared on the property as well as on the
3824 PropertyType. Fixes bug #79678.
3826 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
3828 * MimeIcon.cs, Mime.cs:
3829 Fallback to the default platform handler if no shared mime info
3830 stuff exists (fixes #79693).
3832 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3833 * ContainerControl.cs: Incorrect contains check in ActiveControl
3834 from previous fix (duh).
3836 2006-10-20 Chris Toshok <toshok@ximian.com>
3838 * PropertyGridView.cs: the dropdown should be MIN(number of items
3839 in list, 15). Fixes #79551.
3841 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3842 Fixes #79384, #79394, #79652, #79667
3845 - Modal windows are now destroyed in the proper order for windows
3847 * ContainerControl.cs:
3849 - ActiveControl setter has more conditions on when to return:
3850 - if we're reselecting the active control, but it actually
3851 didn't have focus (window hidden or some such), it runs
3852 - if the active control being selected doesn't actually
3853 exist in the container, it returns
3857 - The ShowDialog now gets the current form as the owner when
3858 invoking without parameters, and correctly activates the owner
3863 - MessageBox now catches the Escape key to exit
3865 2006-10-20 Chris Toshok <toshok@ximian.com>
3867 * PropertyGridView.cs: fix a number of issues (bug #78565, and
3868 most of bug #79676):
3870 - you can navigate around the property grid with the arrow keys.
3872 - the dropdown is sized properly when the pg has a vertical
3875 - fix the indentation for subentries, and properly select the
3878 - fix the gray bar's drawing (only draw it to the last element,
3879 not for the height of the control. Also make sure we draw that
3880 last horizontal grid line.
3882 - use the same mechanism the datagrid uses wrt the editing textbox
3883 when scrolling/resizing/etc. Namely, we hide it first, do the
3884 operation, then show it again (if it's still visible).
3886 - aggressively remove a lot of unnecessary refreshes (and also
3887 calls to Invalidate(). call more limited variants, and only redraw
3892 - when we're populating the merged collection, fill in the UI
3893 parent with either the passed in item, or the category item we
3896 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
3898 * GridItem.cs: drop some fully qualified names.
3900 * GridEntry.cs: add a "UIParent", which is basically the parent
3903 * GridItemCollection.cs: add an IndexOf method.
3905 2006-10-20 Mike Kestner <mkestner@novell.com>
3907 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
3908 a working win32 NC invalidation mechanism, we can't invalidate
3909 menus. [Fixes #79705]
3911 2006-10-20 Mike Kestner <mkestner@novell.com>
3913 * ListBox.cs : don't update the VScrollbar if the list is empty,
3914 just hide it. [Fixes #79692]
3916 2006-10-20 Jackson Harper <jackson@ximian.com>
3918 * RichTextBox.cs: Handle some special chars better, and don't skip
3919 the entire group when we encounter a special char that we don't
3922 2006-10-18 Chris Toshok <toshok@ximian.com>
3924 * PropertyGridView.cs: address a number of issues from bug #79676,
3925 mostly of the cosmetic variety.
3927 - The highlight rectangle for indented items not extends all the
3930 - Indented items aren't indented so much.
3932 - the dropdown is properly sized width-wise if the pg has a
3935 2006-10-18 Chris Toshok <toshok@ximian.com>
3937 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
3938 systray stuff is rather convoluted to begin with.
3940 systray icons are a single window for some reason (that I haven't
3941 figured out yet), and for them, client_window == whole_window.
3942 Given the way the tests are structured elsewhere to determine
3943 which paints are pending (client vs. nc), that situation will
3944 always yield PAINT, not NCPAINT. So, if we have a pending
3945 nc_expose and no pending expose, remove the hwnd from the paint
3946 queue, and also set nc_expose_pending to false, to keep us from
3947 blocking further expose's adding the hwnd to the paint queue.
3949 phew. like i said, a rather convoluted change. Fixes the
3950 notifyicon repaint issues in bug #79645.
3952 2006-10-18 Chris Toshok <toshok@ximian.com>
3954 * Form.cs: when getting the backcolor of the form, don't get
3955 base.BackColor, as this allows parents to influence the background
3956 color. This breaks mdi forms. Instead, if the background_color
3957 is empty, return the default.
3959 2006-10-18 Chris Toshok <toshok@ximian.com>
3961 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
3962 to being private instead of internal static.
3964 * Control.cs: remove all the stupid ParentWaitingOnRecreation
3965 crap, it wasn't working for more deeply nested controls anyway,
3966 and we already have the is_recreating flag - use that instead.
3967 Before calling DestroyHandle in RecreateHandle, recurse through
3968 the control tree setting it to true. this returns the recreate
3969 code to much of its original simplicity, while now guaranteeing we
3970 actually recreate everything we're supposed to. This change gets
3971 fyireporting actually showing mdi children.
3973 2006-10-17 Chris Toshok <toshok@ximian.com>
3975 * Form.cs: remove some debug spew, and collapse some duplicate
3976 code at the end of SetClientSizeCore.
3979 - add some more debug spew here too wrt Destroy handling.
3980 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
3981 in Control's handling of WM_DESTROY.
3982 - Remove the handling of zombie window DestroyNotifies from the
3983 event loop - we don't need it. Now the only DestroyNotifies we
3984 actually handle are ones generated by X.
3985 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
3986 match gtk's (functioning) handling of this. This keep metacity
3987 from leaving droppings in the form of wm borders with no window
3988 contents all over the place.
3991 - add a bunch of debug spew wrt control recreation.
3992 - fix a bug where we weren't tracking Visible properly on
3994 - fixed the WM_PAINT double buffer handling to support re-entrant
3995 calls (yes, i know it's gross, but it's happening to us).
3997 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3998 * ThemeWin32Classic.cs: changed drawing of selected days
3999 to make them look better.
4001 2006-10-16 Chris Toshok <toshok@ximian.com>
4003 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
4004 drawing_stack. Nuke the ClientDC/NonClientDC properties.
4006 * XplatUIX11.cs: move away from using hwnd.client_dc and
4007 hwnd.non_client_dc and on to a stack of dc's (and in window's
4008 case, PAINTSTRUCT's), so we can deal with nested Paint calls
4009 without puking or not disposing of Graphics objects.
4011 * XplatUIOSX.cs: same.
4013 * XplatUIWin32.cs: same.
4015 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
4017 * FileDialog.cs: Don't call on_directory_changed inside
4018 OnSelectedIndexChanged (it changes the SelectedIndex too).
4019 Instead move it to OnSelectionChangeCommitted.
4021 2006-10-13 Chris Toshok <toshok@ximian.com>
4023 * XplatUIX11.cs: more Destroy work. the current code does the
4024 following things, in order:
4026 1. Enumerates all handles of all controls at or below the one
4027 being destroyed, in pre-order. As it is doing this, it marks the
4028 handles as zombie and clears all references to them.
4030 2. calls XDestroyWindow on the window passed in.
4032 3. SendMessage's WM_DESTROY to all he handles in the accumulated
4035 2006-10-13 Chris Toshok <toshok@ximian.com>
4037 * XplatUIX11.cs: set hwnd.zombie to true before calling
4038 SendMessage (WM_DESTROY). this keeps us from marking the new
4039 window a zombie, and also keeps us from calling sendmessage at
4042 2006-10-13 Jackson Harper <jackson@ximian.com>
4044 * TextControl.cs: Do not show the caret and selection at the same
4045 time. Reduces ugliness by 35%.
4047 2006-10-13 Chris Toshok <toshok@ximian.com>
4049 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
4050 zombie after we do the recursive call, so we actually do call
4051 SendMessage on the children controls.
4052 (GetMessage): if we find a pending paint event for a zombie hwnd,
4053 remove the hwnd from the paint queue, or else it will always be
4054 there (and we'll effectively loop infinitely)
4056 2006-10-13 Mike Kestner <mkestner@novell.com>
4058 * MenuItem.cs : add Selected format under keynav too.
4061 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4063 * PropertyGrid.cs: Fixed some NRE's and small difference between our
4064 implementation and that of MS.
4066 2006-10-13 Chris Toshok <toshok@ximian.com>
4068 * Control.cs (OnInvalidated) only futz with the invalid_region if
4069 the control is double buffered. this fixes the apparent hang in
4070 the ListView unit tests. Someone needs to make the
4071 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
4073 2006-10-13 Chris Toshok <toshok@ximian.com>
4075 * PropertyGridView.cs:
4077 - do a little refactoring so that only one place calls
4078 dropdown_form.Hide, and that is CloseDropDown. make everywhere
4079 else call that. Also make it Refresh, since there are redraw bugs
4080 otherwise (we should take a look at that...)
4082 - do a little more refactoring work to share the body of code
4083 involved with the drop down. it was duplicated in the code
4084 dealing with the listbox handling and in the code dealing with the
4087 - add a Capture to the dropdown form's control once it's
4088 displayed, and add a MouseDown handler that checks to make sure
4089 the position is inside the control. If it's not, close the
4090 dropdown. This fixes #78190.
4092 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
4093 if the value is different than the initial value.
4095 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
4097 * Control.cs: see #78650
4098 - Fixed GetNextControl for several cases:
4099 - Changed FindFlatForward to return
4100 correct sibling control when more than one
4101 control has same TabIndex as the currently
4103 - Changed FindFlatBackward to loop children
4104 from last to first and apply same logic as in
4106 - Changed FindControlForward to search for
4107 children when control is not a container
4108 but has children, or search for siblings if
4109 control is a container...
4110 - Changed FindControlBackward to continue
4111 searching for child controls when hitting
4114 - Fixed Focus method to update ActiveControl
4115 (FocusTest.FocusSetsActive failure)
4118 - Focus rectangle now refreshes when gaining
4120 - Removed grab for Tab key on IsInputKey that
4121 was keeping tab navigation from working (#78650)
4123 2006-10-13 Chris Toshok <toshok@ximian.com>
4125 * PropertyGridView.cs:
4126 - Rewrite SetPropertyValue to loop over SelectedGridItem's
4129 - Deal with GridItem.Value == null a few places.
4132 - replace the PopulateGridItemCollection with a pair of methods
4133 which compute the intersection of all the properties in the
4134 SelectedObjects array. Fixes #79615.
4136 - Throw ArgumentException from set_SelectedObjects if there's a
4139 - Add GetTarget method which can be used to traverse up the
4140 GridItem.Parent chain. It depends on the assumption that
4141 selected_objects for different GridEntries are always in the same
4142 order (a safe assumption). Use this method and loop over all the
4143 selected objects in the entry when calling RemoveValueChanged and
4146 * GridEntry.cs: Make this handle multiple selected objects.
4147 .Value returns null if not all the selected objects share the same
4150 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
4151 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
4152 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
4153 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
4154 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
4155 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
4156 add additional functionality.
4158 2006-10-12 Mike Kestner <mkestner@novell.com>
4160 * ErrorProvider.cs : new ToolTipWindow ctor sig.
4161 * HelpProvider.cs : new ToolTipWindow ctor sig.
4162 * ToolTip.cs : remove ToolTip param from Window sig since it is
4164 * ToolBar.cs : add tooltip support. Fixes #79565.
4166 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4168 * ComboBox.cs: move the events in set_SelectedIndex to
4169 after the call to HighlightIndex in order to avoid
4170 possible recursion and subsequent problems with the call
4171 to HighlightIndex and include a range check in
4172 set_HighlightIndex. Fixes #79588
4174 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4176 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
4177 to ui thread's settings instead of sunday.
4178 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
4180 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4184 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
4185 and implement missing functionality (selecting different parts
4186 of the date and edit them individually with the keyboard).
4188 2006-10-11 Chris Toshok <toshok@ximian.com>
4190 * Control.cs (OnInvalidated): fix NRE relating to last change.
4192 2006-10-11 Chris Toshok <toshok@ximian.com>
4194 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
4195 atoms in _NET_WM_STATE here if the window is maximized. We need
4196 to do this because we're *replacing* the existing _NET_WM_STATE
4197 property, so those atoms will be lost otherwise, and any further
4198 call to GetWindowState will return Normal for a window which is
4199 actually maximized. Fixes #79338.
4201 2006-10-11 Jackson Harper <jackson@ximian.com>
4203 * TextControl.cs: Special case for setting selection end to
4204 selection start, we basically kill the anchor.
4205 - some todo comments.
4207 2006-10-11 Chris Toshok <toshok@ximian.com>
4209 * Control.cs: switch to using an "invalid_region" to track which
4210 parts of the image buffer need updating. This is more code than
4211 the simple fix from r66532. That version just attempted to always
4212 fill the entire buffer on redraw, which turns out to be
4213 inefficient when invalidating small rectangles. This version
4214 simply adds the invalid rectangle to the invalid region. When we
4215 get any WM_PAINT message we see if it can be filled using the
4216 image buffer, and if it can't (if the paint event's clip rectangle
4217 is visible in the invalid region) we first fill the image buffer.
4218 So, the image buffer is still a cache, we just fill it lazily.
4220 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
4223 2006-10-11 Chris Toshok <toshok@ximian.com>
4225 * XplatUIX11.cs (SetWindowPos): we need to update both position as
4226 well as size after calling XMoveResizeWindow. This keeps us from
4227 ignoring future SetWindowPos calls. Fixes the disappearing
4228 DateTimePicker in the ToolBarDockExample from bug #72499.
4230 2006-10-11 Chris Toshok <toshok@ximian.com>
4232 * TextBoxBase.cs: reorder things a bit when it comes to
4233 resizing-causing-recalculation. we were recalculating the
4234 document when our position was changed, which shouldn't happen.
4235 We only care about size changes. Clear up some more redundant
4236 recalculation calls while I'm at it. This makes the toolbar dock
4237 example snappy when you're just dragging toolbars around (since it
4238 causes a relayout whenever you move one.)
4240 2006-10-11 Chris Toshok <toshok@ximian.com>
4242 * ToolBarButton.cs (get_Rectangle): this only returns
4243 Rectangle.Empty if Visible == false, or Parent == null.
4244 Parent.Visible doesn't matter.
4246 2006-10-10 Chris Toshok <toshok@ximian.com>
4248 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
4249 by .net 1.1, so switch to an internal method instead.
4251 2006-10-10 Chris Toshok <toshok@ximian.com>
4253 * Control.cs (WM_PAINT): when a control is double buffered we draw
4254 initially to the ImageBuffer and then copy from there. But when a
4255 parent control which has child controls is double buffered, the
4256 initial drawing doesn't encompass the entire ClientRectangle of
4257 the parent control, so we end up with uninitialized bits (this is
4258 easily seen by dragging the top toolbar in
4259 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
4260 manually set the ClipRectangle of the paint_event (only the one we
4261 use to populate the ImageBuffer) to ClientRectangle. Fixes more
4262 of the nastiness in bug #72499.
4264 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
4265 which we use in Control.cs's WM_PAINT handling.
4267 2006-10-10 Jackson Harper <jackson@ximian.com>
4269 * TextBoxBase.cs: Finish off the autoscrolling stuff.
4271 2006-10-10 Chris Toshok <toshok@ximian.com>
4273 * Cursor.cs: Apply a slightly different patch to the one suggested
4276 2006-10-10 Jackson Harper <jackson@ximian.com>
4278 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
4279 not the parent form.
4280 * TextControl.cs: use difference in old line count vs new count to
4281 calculate how many lines were added, this takes into account soft
4282 line breaks properly.
4284 2006-10-10 Chris Toshok <toshok@ximian.com>
4286 * LinkLabel.cs: don't call MeasureCharacterRanges against a
4287 rectangle located at 0,0 and the size of the text. Use
4288 ClientRectangle instead. This fixes rendering of non-left aligned
4291 2006-10-10 Jackson Harper <jackson@ximian.com>
4293 * TextBoxBase.cs: When we set the selection start position the
4295 * TextControl.cs: Need to update the caret when we decrement it to
4297 - Make sure that the selection_visible flag gets reset to false if
4298 the selection isn't visible. Before this you could get it set to
4299 visible by changing the selection start, then changing the end to
4302 2006-10-09 Jackson Harper <jackson@ximian.com>
4304 * TreeView.cs: Don't update scrollbars when we aren't visible.
4305 * TreeNodeCollection.cs: Only need to update scrollbars if being
4306 added to an expanded visible node or the root node.
4308 2006-10-09 Chris Toshok <toshok@ximian.com>
4310 * XplatUIX11.cs (SendMessage): fix NRE.
4312 2006-10-09 Jackson Harper <jackson@ximian.com>
4314 * TextBoxBase.cs: Implement horizontal autoscrolling.
4315 * TextControl.cs: Add a movement types that allows moving forward
4316 and backwards without wrapping.
4318 2006-10-09 Mike Kestner <mkestner@novell.com>
4320 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
4321 with focus "expansion" of labels. Fixes #79532 and then some.
4322 * ThemeWin32Classic.cs : add LineLimit to ListView label format
4325 2006-10-09 Jackson Harper <jackson@ximian.com>
4327 * TextBoxBase.cs: Set the default max values to MaxValue since
4328 we use the scrollbar for autoscrolling and the default value is
4329 100. If we don't do this the caret won't keep up with typing
4330 after about 18 characters.
4331 * TextControl.cs: Make sure the selection is offset by the
4332 viewport x. This fixes selection when using auto scrolling.
4334 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
4336 * Form.cs: The active control should be selected after the
4337 OnLoad so that any child control initialization that affects
4338 the selection is done. Fixes #79406
4340 2006-10-06 Chris Toshok <toshok@ximian.com>
4342 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
4343 to have no evil effects.
4345 - Stop selecting StructureNotifyMask on non-toplevel windows.
4347 The only way children should be resized is by using the SWF api,
4348 and we already send WM_WINDOWPOSCHANGED messages in those cases.
4349 Toplevel windows can be interacted with via the window manager,
4350 and so we keep the input mask there.
4352 The other event StructureNotifyMask gives us (that we care
4353 about) is DestroyNotify. The code is already structured such
4354 that it assumes we won't be getting a DestroyNotify event for
4355 the window we pass to XDestroyWindow (which is what
4356 StructureNotifyMask is supposed to guarantee.) So, that code
4357 shouldn't be affected by this either.
4359 - Stop selecting VisibilityChangeMask altogether.
4361 We weren't doing anything with the resulting events anyway.
4363 This vastly reduces the number of X requests and events we see
4364 when resizing/laying out a large ui.
4366 2006-10-06 Chris Toshok <toshok@ximian.com>
4368 * ScrollableControl.cs (DisplayRectangle): we need to take into
4369 account the DockPadding regardless of whether or not auto_scroll
4370 == true. rework this slightly to this effect, and fix bug #79606,
4371 and part of #72499 (you can now see the drag handles and drag
4374 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
4376 * ListViewItem.cs: Collections of selected and checked items are now
4377 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
4378 we mark the collection "dirty".
4379 * ListView.cs: Marked collections readonly. Modified UpdateSelection
4380 to only clear SelectedItems when a new item is selected and MultiSelect
4381 is enabled. CheckedItems and SelectedItems now subscribe to Changed
4382 event of ListViewItemCollection, and mark its list dirty whenever
4383 that event is fire. This allows us to return selected/checked items
4384 in the same order as they are in the Items collection. This matches
4387 2006-10-06 Chris Toshok <toshok@ximian.com>
4389 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
4390 right mouse clicks. Fixes bug #79593.
4392 2006-10-06 Chris Toshok <toshok@ximian.com>
4394 * Splitter.cs: doh, fix splitters that don't want to cancel the
4395 movement when you drag them. Also, impose the limits on the
4396 values we send to the SplitterMovingEvent. Fixes #79598.
4398 2006-10-06 Jackson Harper <jackson@ximian.com>
4400 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
4401 since we use this for auto scrolling also.
4403 2006-10-05 Chris Toshok <toshok@ximian.com>
4405 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
4406 beginning to think that most datagrid column types don't need this
4407 method. Fixes bug #79392.
4409 2006-10-05 Chris Toshok <toshok@ximian.com>
4411 * DataGrid.cs: move back to a more lazy scheme for creating the
4412 CurrencyManager, so we aren't updating it every time you set
4413 either DataSource or DataMember. Also, don't call
4414 RecreateDataGridRows if the currency manager hasn't changed.
4416 2006-10-05 Chris Toshok <toshok@ximian.com>
4418 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
4419 emitted, SelectedIndex should already be updated. Fixes bug
4422 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
4424 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
4425 ToolStripTextBox.cs: Initial commit.
4426 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
4428 2006-10-05 Jackson Harper <jackson@ximian.com>
4430 * TabControl.cs: We need to invalidate the tab control area when
4431 new ones are added (duh).
4433 2006-10-03 Chris Toshok <toshok@ximian.com>
4435 * Form.cs (ProcessDialogKey): if the focused control is in this
4436 form and is a button, call its PerformClick method here. Fixes
4439 2006-10-04 Jackson Harper <jackson@ximian.com>
4441 * TabPage.cs: Ignore setting of Visible, and add an internal
4442 method for setting the controls visibility. TabPage's Visible
4443 property is a little strange on MS, this seems to make us
4444 compatible, and fixes cases where people set all the tab pages to
4446 * TabControl.cs: Use the new internal setting on tab pages
4449 2006-10-03 Mike Kestner <mkestner@novell.com>
4451 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
4453 2006-10-03 Mike Kestner <mkestner@novell.com>
4455 * ListView.cs : use is_visible instead of Visible to check if
4456 scrollbars should be placed/sized. Also some max_wrap_width
4457 love for LargeIcon view. [Fixes #79533]
4459 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
4462 Make set_TextAlign() do actually update the align. Fixed #78403.
4464 2006-10-03 Chris Toshok <toshok@ximian.com>
4466 * DataGrid.cs: fix a crash when switching datasources if the
4467 vertical scrollbar is at someplace other than Value = 0. Also,
4468 reduce the number of recalculation passes we do in SetDataSource
4471 2006-10-03 Jackson Harper <jackson@ximian.com>
4473 * TextBoxBase.cs: Move the if value the same bail check up, we
4474 don't want to empty the document if it is already empty, this
4475 seems to severly mess up the caret. TODO: I should probably fix
4476 the empty statement to update teh caret somehow.
4478 2006-10-03 Chris Toshok <toshok@ximian.com>
4480 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
4481 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
4482 reflection, an internal row type, properties on said type, etc.)
4483 will work with our datagrid. Fixes #79531.
4485 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
4487 * FileDialog.cs: Don't crash if a path is not accessible
4488 (System.UnauthorizedAccessException). Fixes #79569.
4489 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
4490 a ':' too. Return unknown icon for those paths/files.
4492 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
4494 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
4495 GetContainerControl returns null.
4497 2006-10-02 Chris Toshok <toshok@ximian.com>
4499 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
4500 call to XGetWindowAttributes instead of "handle". fixes an X
4501 error using notifyicon after the NotifyIconWindow to Form base
4504 2006-10-02 Chris Toshok <toshok@ximian.com>
4506 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
4507 server grab and looping we need to do to get down to the most
4508 deeply nested child window.
4509 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
4510 QueryPointer again after the WarpPointer so we can generate a
4511 proper (fake) MotionNotify event to be enqueued in the destination
4513 (GetCursorPos): call QueryPointer.
4517 2006-10-02 Jackson Harper <jackson@ximian.com>
4519 * NotifyIcon.cs: Derive the notify icon from a form, so things
4520 like FindForm work on it.
4521 - Swallow the WM_CONTEXTMENU message, since that is generated on
4522 mouse down, and context menu is a mouse up kinda guy. I believe
4523 the correct fix here is probably to make the notify icon entirely
4524 NC area, but this seems to work fine for anyone not manipulating
4527 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
4529 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
4530 ToolStripItemCollection.cs, ToolStripLabel.cs,
4531 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
4532 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
4533 Initial implementation.
4534 * TextRenderer.cs: Provide padding to MeasureText.
4536 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
4538 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
4539 of ButtonBaseAccessibleObject. Fix bug #79552.
4541 2006-10-02 Jackson Harper <jackson@ximian.com>
4543 * MdiWindowManager.cs: When maximizing use the containers client
4544 rect, not it's bounds, so nc area is accounted correctly.
4545 - Use the parent form's size for the menu position, since the
4546 client isn't always the full form size.
4548 2006-10-01 Chris Toshok <toshok@ximian.com>
4550 * ScrollableControl.cs: make sure neither right_edge or
4551 bottom_edge are < 0, since they're used as LargeChange for the
4552 horiz/vert scrollbars respectively. Fixes #79539.
4554 2006-10-01 Chris Toshok <toshok@ximian.com>
4556 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
4557 the xplatuix11 code can cause us to destroy/recreate our handle.
4561 - this code can be invoked many times for the same Hwnd. Make
4562 sure we only destroy the client window once (the first time this
4563 method is called). This fixes bug #79544.
4564 - Remove the call to the improperly bound XSync. why we had two
4565 bindings to this, I will never know, but this call resulted in
4566 events being discarded from the queue(!).
4567 - correct a misunderstanding of _XEMBED_INFO - the second atom is
4568 not our current state but the state we wish to be in. So, 0 if
4569 we don't want to be mapped. Change it to 1.
4570 (SystrayRemove): The XEMBED spec makes mention of the fact that
4571 gtk doesn't support the reparent of client windows away from the
4572 embedder. Looking at gtksocket-x11.c seems to agree with this.
4573 The only avenue we have for removing systray icons is to destroy
4574 them. We don't want the handle to go away for good, though, so
4575 call InternalRecreateHandle on the NotifyIconWindow. Fixes
4578 2006-10-01 Chris Toshok <toshok@ximian.com>
4580 * Form.cs (WndProc): inline the native_enabled variable usage into
4581 the cases in which it's used. Fixes #79536.
4583 2006-09-29 Mike Kestner <mkestner@novell.com>
4585 * ListView.cs : toggle the selection state for ctrl clicks in
4586 multiselect mode. [Fixes #79417]
4588 2006-09-29 Mike Kestner <mkestner@novell.com>
4590 * ListView.cs : kill CanMultiSelect and refactor the selection
4591 code to support multiselection in the absence of mod keys. Steal
4592 arrow/home/end keys by overriding InternalPreProcessMessage to
4593 restore regressed keynav behavior.
4596 2006-09-29 Jackson Harper <jackson@ximian.com>
4598 * MdiClient.cs: Repaint the titlebars when the active window is
4601 2006-09-29 Chris Toshok <toshok@ximian.com>
4603 * Application.cs: when entering a runloop with a modal, make sure
4604 the hwnd is enabled. Fixes #79480.
4606 2006-09-29 Chris Toshok <toshok@ximian.com>
4608 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
4609 when ListManager.CanAddRows == false, bump us back one.
4611 * DataGridColumnStyle.cs (ParentReadOnly): remove the
4612 listmanager.CanAddRows check. This makes ArrayLists uneditable
4613 using a datagrid, which is not right.
4614 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
4615 is an IEditable, but call property_descriptor.SetValue regardless.
4618 2006-09-29 Chris Toshok <toshok@ximian.com>
4620 * DataGridBoolColumn.cs: we need to test equality in the face of
4621 possible null values (as is the case with the default NullValue).
4622 This patch keeps us from crashing in that case.
4624 2006-09-29 Jackson Harper <jackson@ximian.com>
4626 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
4627 here, since it will get called for every node collection in the
4628 tree. This is now done in the treeview once the sorting is
4630 * TreeView.cs: Recalculate the visible order, and update the
4631 scrollbars after sorting, set the top nope to the root so that the
4632 recalc actually works.
4634 2006-09-29 Chris Toshok <toshok@ximian.com>
4636 * LinkLabel.cs: more handling of the default link collection in
4637 the face of LinkArea manipulation. The default link collection
4638 contains 1 element (start=0,length=-1). If the user sets LinkArea
4639 to anything and the links collection is the default, clear it.
4640 Then only add the link if its nonempty. Fixes #79518.
4642 2006-09-29 Chris Toshok <toshok@ximian.com>
4644 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
4645 piece correctly when we hit a '\n'. Fixes #79517.
4647 2006-09-29 Chris Toshok <toshok@ximian.com>
4649 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
4650 change the binding of gdk_init_check to take two IntPtr's, and
4651 pass IntPtr.Zero for both of them. Fixes #79520.
4653 2006-09-29 Mike Kestner <mkestner@novell.com>
4655 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
4658 2006-09-28 Jackson Harper <jackson@ximian.com>
4660 * XplatUIX11.cs: When translating NC messages make sure we go from
4661 whole window to screen, not client window to screen.
4662 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
4663 method doesn't exist
4664 - Skip over controls that aren't forms when arranging.
4666 2006-09-28 Jackson Harper <jackson@ximian.com>
4668 * XplatUIWin32.cs: Clip the rect to the parent window.
4669 * XplatUIStructs.cs: Add clipping modes struct.
4670 * InternalWindowManager.cs: New private method that factors title
4671 bar heights in when calculating the pos of an NC mouse message.
4672 - Use SendMessage to force a paint when the form's size is changed
4673 instead of painting the decorations immediately.
4674 - Don't let the NC button click messages get to DefWndProc,
4675 because they will attempt to handle windowing themself, and this
4676 messes up z-order (it will put them in front of the scrollbars).
4677 * XplatUIX11.cs: Make sure that we don't reset window managers if
4678 we already have one (ie the window is an MDI window).
4680 2006-09-28 Chris Toshok <toshok@ximian.com>
4682 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
4683 menu code really needs going over.
4685 2006-09-27 Chris Toshok <toshok@ximian.com>
4687 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
4688 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
4689 window is maximizable. So, we need to make sure that even if we
4690 clear the border/wm frame of those functions, they're still
4691 available (basically, we remove the decoration without removing
4692 the function). Half the fix for #79338.
4694 2006-09-27 Chris Toshok <toshok@ximian.com>
4696 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
4699 2006-09-27 Chris Toshok <toshok@ximian.com>
4701 * Splitter.cs: reorder things a bit so that we don't actually
4702 draw/move the splitter until after calling OnSplitterMoving. This
4703 lets users cancel/disallow the movement by explicitly setting
4704 event.SplitX/SplitY. Fixes #79372.
4706 2006-09-27 Jackson Harper <jackson@ximian.com>
4708 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
4709 because it is most likely on a window being destroyed, and that
4710 will give us an X11 error.
4712 2006-09-27 Chris Toshok <toshok@ximian.com>
4714 * PropertyGridView.cs: half of the fix for #78190. Clicking on
4715 the dropdown button now toggles between showing and hiding the
4716 dropdown. Also, get rid of dropdown_form_showing and just use
4717 dropdown_form.Visible. We still don't do a grab, but I'll leave
4718 that part to someone who has handled Capture-fu before.
4720 2006-09-27 Chris Toshok <toshok@ximian.com>
4722 * DataGrid.cs: return false if alt isn't pressed when '0' is
4723 pressed. this keeps the '0' key from being swallowed, and fixes
4726 2006-09-27 Chris Toshok <toshok@ximian.com>
4728 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
4729 Calling Refresh (in response to a scrollbar event) screws up the
4730 scrollbar painting. Fixes bug #78923.
4732 2006-09-27 Chris Toshok <toshok@ximian.com>
4734 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
4735 then insert into hashtable" blocks threadsafe.
4737 2006-09-27 Chris Toshok <toshok@ximian.com>
4739 * MessageBox.cs (CreateParams): the styles should be |'ed with our
4740 baseclass's, since otherwise the
4741 ControlBox/MinimizeBox/MaximizeBox assignments above have no
4742 effect. This gets the close button back in messageboxes.
4744 2006-09-27 Chris Toshok <toshok@ximian.com>
4746 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
4747 flag, not just != 0. this makes flags that are actually multiple
4748 bits (like WS_CAPTION) work. fixes bug #79508.
4750 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
4752 * PageSetupDialog.cs: add support for getting and settings the
4753 paper size, source and orientation.
4755 2006-09-26 Chris Toshok <toshok@ximian.com>
4757 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
4758 and caption == "", we need to remove the resize handles as well as
4761 * Control.cs (set_Text): turns out that setting Text on a form
4762 should change the WM styles on the window, since if ControlBox ==
4763 false, the only way to get a window border is to have a non-""
4764 Text property. check winforms/forms/text.cs for an example. so,
4765 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
4766 update both window styles and title. This fixes a lot of dialogs
4767 (including the preferences dialog in MonoCalendar.)
4769 2006-09-26 Chris Toshok <toshok@ximian.com>
4771 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
4772 control isn't a Form), call Win32ShowWindow to hide the window,
4773 but don't update the control Visible property. When we reparent
4774 back to a parent control, call SetVisible in order for the
4775 window's visibility to be reinstated.
4777 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
4780 * Control.cs (ControlCollection.Remove): remove that value.Hide()
4781 call for good, since it breaks MonoCalendar (and other things I'm
4782 sure.) Also, set all_controls to null *after* the owner calls,
4783 which end up regenerating it.
4784 (ChangeParent): allow new_parent to be == null, passing
4785 IntPtr.Zero down to XplatUI.
4787 this fixes #79294 the right way.
4789 2006-09-26 Mike Kestner <mkestner@novell.com>
4791 * GridEntry.cs : internal SetParent method.
4792 * PropertyGrid.cs : attach to property changed on the proper
4793 target if we have a hierarchical grid with subobjects. Setup
4794 GridItem.Parent for hierarchical items.
4795 * PropertyGridView.cs : Set value on the correct target for
4796 hierarchical grids. [Fixes #78903]
4798 2006-09-26 Chris Toshok <toshok@ximian.com>
4800 * Control.cs (ChildNeedsRecreating): this should return true if
4801 either we're being recreated and the child is in our list, or our
4802 parent is waiting for our recreation.
4804 2006-09-26 Chris Toshok <toshok@ximian.com>
4806 * Control.cs (ControlCollection.Remove): reinstate the
4807 value.Hide() call as suggested in bug #79294.
4809 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
4811 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
4812 coordinates (versus a relative move).
4814 2006-09-26 Chris Toshok <toshok@ximian.com>
4816 * Control.cs: rework child recreation a little bit. It turns out
4817 that we race between the DestroyNotify the WM_DESTROY message. If
4818 the parent gets its DestroyNotify before the child gets the
4819 WM_DESTROY message, the child ends up not recreating (since the
4820 parent finishes its recreation on DestroyNotify, and the child
4821 checks ParentIsRecreating.)
4823 So, instead we store off a list of all the child controls which
4824 need to be recreated when the parent control starts to recreate
4825 itself. Then, when child controls get their WM_DESTROY message we
4826 check to see if they're in the parent's pending recreation list,
4827 and if so, we recreate. This removes all dependency on ordering
4828 from the code and fixes the initial MonoCalendar upgrade dialog.
4830 2006-09-26 Jackson Harper <jackson@ximian.com>
4832 * TextControl.cs: Use the Line to get the length of the line,
4833 since soft line breaks can change the end line.
4835 2006-09-26 Chris Toshok <toshok@ximian.com>
4837 * Control.cs (ControlCollection.AddImplicit): don't add the
4838 control again if it's already in one of our lists. This keeps us
4839 from adding controls over and over again for comboboxes when their
4840 handle gets recreated (as the combobox adds implicit controls in
4841 OnHandleCreated). Fixes the X11 errors in bug #79480.
4843 2006-09-26 Jackson Harper <jackson@ximian.com>
4845 * TextControl.cs: When deleting characters make sure that any
4846 orphaned zero lengthed tags get deleted.
4847 - Fix ToString for zero lengthed tags.
4849 2006-09-25 Jackson Harper <jackson@ximian.com>
4851 * TextControl.cs: When getting a tag at the location there can be
4852 multiple tags at the same spot, these are 0-lengthed tags that
4853 appear when extra formatting has been stuck in a location. We
4854 need to pull out the last of these 0 lengthed tags.
4856 2006-09-25 Jackson Harper <jackson@ximian.com>
4858 * TextControl.cs: Fix print out in debug method.
4859 * TextBoxBase.cs: When text is set bail if we are setting to the
4862 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
4864 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
4865 It is now possible to change the selected index in a FontXXXListBox
4866 with the up and down arrow keys from the FontXXXTextBoxes.
4867 Also, send the FontXXXTextBox mouse wheel event to the corresponding
4868 FontXXXListBoxes to match ms.
4870 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
4872 * SystemInformation.cs: Return a clone of the theme's MenuFont because
4873 anyone can dispose it, anytime. All other properties returns enums,
4874 structs or basic types so they don't need such tricks.
4876 2006-09-22 Jackson Harper <jackson@ximian.com>
4883 * XplatUIDriver.cs: Update interface to add a primary selection
4884 flag, so the driver can use the primary selection buffer if
4886 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
4888 * RichTextBox.cs: We need to supply the data object to paste now
4889 (so we can choose to supply CLIPBOARD or PRIMARY).
4890 * TextBoxBase.cs: Supply data object to paste (see above).
4891 - Middle click uses the primary selection data object.
4893 2006-09-21 Chris Toshok <toshok@ximian.com>
4895 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
4896 of SetWMStyles. It's still a rat's nest and is largely
4897 order-dependent which I dislike immensely. This also fixes the X
4898 button disappearing from toplevel forms.
4900 2006-09-21 Mike Kestner <mkestner@novell.com>
4902 * ListBox.cs: move Jordi's click/dblclick raising code to the
4905 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
4907 * ListBox.cs: Fixes 79450
4909 2006-09-21 Mike Kestner <mkestner@novell.com>
4911 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
4912 to deal with people updating the TreeNodeCollection after the tree
4913 is disposed. "Fixes" 79330.
4915 2006-09-20 Jackson Harper <jackson@ximian.com>
4917 * TextControl.cs: Push the cursor record onto the undo stack
4918 before the delete action. This fixes 78651.
4920 2006-09-20 Jonathan Chambers <joncham@gmail.com>
4922 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
4923 CreateParams. Fixes 79329.
4925 2006-09-19 Chris Toshok <toshok@ximian.com>
4927 * XplatUIX11.cs: a couple of blanket code massage passes to clean
4928 things up a bit. First, get rid of the NetAtoms array (and the NA
4929 enum), and just embed the atoms as static fields. Also, add a
4930 couple of functions (StyleSet and ExStyleSet) to clean up all the
4931 bitmask testing of styles.
4933 * X11Structs.cs: remove the NA enum, not needed anymore.
4935 2006-09-19 Chris Toshok <toshok@ximian.com>
4937 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
4938 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
4939 added cleanup to get MessageBox titles appearing again, which were
4940 broken by my earlier fix for caption-less/ControlBox-less windows.
4942 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
4944 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
4945 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
4946 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
4947 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
4948 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
4949 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
4950 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
4951 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
4952 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
4953 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
4954 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
4956 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
4957 ToolStripButton.cs: Stubs needed for above.
4958 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
4960 2006-09-15 Chris Toshok <toshok@ximian.com>
4963 - make the MessageQueues hashtable Synchronized.
4965 - SendMessage: if the Hwnd is owned by a different thread, use the
4966 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
4967 thread. Fixes bug #79201.
4969 2006-09-15 Chris Toshok <toshok@ximian.com>
4971 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
4972 ControlBox == false, we disallow maximize/minimize/close. If the
4973 form Caption is "" we also disallow move (and get rid of the Title
4974 decoration). Unfortunately, regardless of how things are set,
4975 we're stuck with the Title and WM menu.
4977 2006-09-15 Chris Toshok <toshok@ximian.com>
4979 * Application.cs: add locking around the static message_filters
4980 ArrayList, part of #79196.
4982 2006-09-15 Chris Toshok <toshok@ximian.com>
4984 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
4985 Form.ControlBox == false, the window has no titlebar nor resize
4986 handles. fixes bug #79368.
4988 2006-09-15 Chris Toshok <toshok@ximian.com>
4990 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
4991 >= 0. Fixes bug #79370.
4993 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
4994 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
4996 Add properties: LayoutEngine, Margin, DefaultMargin.
4997 Add method: GetPreferredSize.
4998 Move layout logic from PerformLayout to layout engines.
5000 2006-09-13 Chris Toshok <toshok@ximian.com>
5002 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
5003 fix for #79326 broke #78718, so this change addresses that.
5005 - in SendWMDestroyMessages remove the call to
5006 CleanupCachedWindows, since we might be recreating the control and
5007 need to maintain the references to right Hwnd handles. Also, set
5008 the zombie flag to true for each of the children in the hierarchy
5009 instead of calling hwnd.Dispose. This will cause GetMessage to
5010 ignore all events for the window except for DestroyNotify.
5012 - In GetMessage, ignore messages except for DestroyNotify for
5015 * Control.cs: revert the is_recreating fix from the last
5016 ChangeLog. It's definitely "right", but it breaks switching from
5017 an MDI form to a non-MDI form. Will need to revisit that.
5019 * Hwnd.cs: add a zombie flag, which means "the
5020 client_window/whole_window handles are invalid, but we're waiting
5021 for the DestroyNotify event to come in for them". Set the flag to
5022 false explicitly if setting WholeWindow/ClientWindow, and also
5025 2006-09-13 Chris Toshok <toshok@ximian.com>
5027 * XplatUIX11.cs: rework window destruction slightly.
5029 - when destroying the windows associated with a control, we don't
5030 need 2 separate XDestroyWindow calls. Just the one for the
5031 whole_window (or for client_window if whole_window is somehow
5032 IntPtr.Zero -- can this happen?) is enough.
5034 - reworked SendWMDestroyMessages slightly, so we always dispose
5035 the child control hwnd's after sending the messages.
5037 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
5038 the two places it was used (one was even using hwnd.Handle and the
5039 other hwnd.client_window. ugh), adding another call in
5040 SendWMDestroyMessages. We need this new call because now the
5041 DestroyNotify events in the queue will be ignored for the child
5042 controls (as their hwnd's were disposed, and the window id's
5043 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
5045 - this fixes bug #79326.
5047 2006-09-13 Chris Toshok <toshok@ximian.com>
5049 * Control.cs: don't always set is_recreating to false at the end
5050 of RecreateHandle, since sometimes we're not done (and won't be
5051 until WndProc handles the WM_DESTROY message). Also, set
5052 is_recreating to false in the WM_DESTROY handling code. Part of
5053 the fix for bug #79326.
5055 2006-09-13 Miguel de Icaza <miguel@novell.com>
5057 * X11DesktopColors.cs: Start the droppage of debugging messages.
5059 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
5061 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
5063 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
5065 2006-09-12 Chris Toshok <toshok@ximian.com>
5067 * DataGrid.cs (get_ListManager): if the list_manager is null, try
5068 to create it using SetDataSource. Fixes bug #79151.
5070 2006-09-11 Chris Toshok <toshok@ximian.com>
5072 * XEventQueue.cs: add a DispatchIdle property.
5074 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
5075 either the queue is null, or the queue has DispatchIdle set to
5077 (DoEvents): set queue.DispatchIdle to false around the
5078 peek/translate/dispatch message loop in this method. This keeps
5079 Application.Doevents from emitting idle events. Part of the fix
5082 2006-09-11 Chris Toshok <toshok@ximian.com>
5084 * DataGrid.cs (set_DataSource): make this work for both the
5085 winforms/datagrid test and ReportBuilder. It seems as though when
5086 we've created a ListManager (or maybe it's if we have a
5087 BindingContext?), when we set the DataSource it clears the
5088 DataMember to "". otherwise we reuse the datamember. Fixes bug
5091 2006-09-11 Chris Toshok <toshok@ximian.com>
5093 * XplatUIX11.cs: deal with queue being null, which happens in all
5094 the Clipboard functions. Fixes one of the two problems mentioned
5097 2006-09-11 Chris Toshok <toshok@ximian.com>
5099 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
5100 button on various spots (including outside the menu) works closer
5101 to MS, and doesn't crash. Fixes #79343.
5103 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
5105 * ListView.cs: Do not initialize item_sorter in init. To match MS,
5106 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
5107 and the internal comparer is set. When a new ListViewItemSorter is set,
5108 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
5109 was specified. No further processing is necessary if SortOrder is set
5110 to it's current value. If Sorting is modified to None, and View is
5111 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
5112 (either custom or our internal ItemComparer) to null, on 1.0 profile
5113 only set item_sorter to null if its our internal IComparer. If Sorting
5114 is modified to Ascending or Descending, then use our internal IComparer
5115 if none is set, and if the current IComparer is our internal one then:
5116 on 2.0 profile always replace it with one for new Sorting, and on 1.0
5117 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
5118 Enum.IsDefined to verify whether a valid View value is specified in
5119 its setter. Automatically sort listview items when listview is
5120 created. In Sort, do nothing if ListView is not yet created, or if
5121 no item_sorter is set (no Sorting was set, Sorting was explicitly set
5122 to None or ListViewItemSorter was set to null). Added Sort overload
5123 taking a bool to indicate whether the ListView should be redrawn when
5124 items are sorted (we use this in ListViewItemCollection to avoid double
5125 redraws). Modified our internal IComparer to take the sort order into
5126 account. In Add and AddRange methods of ListViewItemCollection, also
5127 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
5128 view), but use overload with noredraw option to avoid double redraw.
5129 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
5130 true when View is Tile, and do the same when attempting to set View to
5131 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
5132 for selected/checked indices, as it involves overhead when sorting is
5133 done while these collections are not used all that often. Instead
5134 we'll build the indices on demand. Modified IList implementation of
5135 CheckedIndexCollection to use public methods if object is int.
5136 Modified CheckedListViewItemCollection to hide checked items if
5137 ListView.CheckBoxes is false. Removed LAMESPEC remark in
5138 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
5139 IList implementation in SelectedIndexCollection to use public methods
5140 if object is int. Modified SelectedListViewItemCollection to hide
5141 selected items if listview is not yet created.
5142 * ListViewItem.cs: CheckedIndices list no longer needs to be
5143 maintained separately (see ListView changes). Also clone font, fixes
5146 2006-09-11 Mike Kestner <mkestner@novell.com>
5148 * ComboBox.cs: if we are updating the contents of the currently
5149 selected index, refresh the control or the textbox selection.
5152 2006-09-11 Mike Kestner <mkestner@novell.com>
5154 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
5155 the 'specified' logic has been moved there. This seems like a bug
5156 in Control.cs, since our current SetBoundsCore completely ignores
5157 the specified parameter. Peter's commit seems to indicate that is
5158 the way the MS control implementation works. [Fixes #79325]
5160 2006-09-10 Jonathan Chambers <joncham@gmail.com>
5162 * XplatUI.cs: Set default_class_name to be composed
5163 of current domain id. This allows MWF to be loaded in multiple
5166 2006-09-09 Miguel de Icaza <miguel@novell.com>
5168 * X11Keyboard.cs: If we are unable to obtain the input method, do
5169 not call CreateXic to create the input context. Should fix
5172 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
5174 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
5175 Simplified gnome support by adding more pinvokes to get the
5176 icon for a file or mime type.
5178 2006-09-08 Jackson Harper <jackson@ximian.com>
5180 * MenuAPI.cs: Deslect popup context menu items before closing the
5181 window, so that you don't see the previously selected item
5182 selected when you reopen the menu.
5183 * TextControl.cs: Update the cursor position even if we don't have
5184 focus. This fixes typing in things like the ComboBox. I'm not
5185 totally sure we should always set the visibility if we don't have
5186 focus, but couldn't find any corner cases where the cursor showed
5187 up when it shouldn't.
5189 2006-09-08 Chris Toshok <toshok@ximian.com>
5191 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
5192 our arrays are length 256. & 0xff before indexing. Fixes the
5193 crash in bug #78077.
5195 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5197 * ThemeWin32Classic.cs:
5198 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
5199 is true. Handle that check box too.
5201 2006-09-07 Chris Toshok <toshok@ximian.com>
5203 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
5206 2006-09-07 Chris Toshok <toshok@ximian.com>
5208 * Control.cs: in set_BackColor only do the work if
5209 background_color != value.
5211 * XplatUIX11.cs: move the clearing of invalid areas (both client
5212 and nc) to the same block of code where we set (nc_)expose_pending
5213 to false. That is, move it from PaintEventEnd to PaintEventStart,
5214 so things that cause invalidates from within OnPaint will trigger
5215 another call to OnPaint. Fixes bug #79262.
5217 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
5219 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
5220 * FileDialog.cs: Fix typo
5222 2006-09-07 Jackson Harper <jackson@ximian.com>
5224 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
5225 for tab pages if they have any.
5227 2006-09-06 Mike Kestner <mkestner@novell.com>
5229 * Splitter.cs: use the "current" rect when finishing drag handle
5230 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
5232 2006-09-06 Mike Kestner <mkestner@novell.com>
5234 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
5235 support offset splitters. [Fixes #79298]
5237 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
5239 * Mime.cs: Fixed a bug that could override the global mime type
5242 2006-09-05 Jackson Harper <jackson@ximian.com>
5244 * TabControl.cs: Better calculation method for setting the slider
5245 pos. Prevents crashes on really wide tabs.
5246 - Draw Image on tab pages if an image list is used.
5248 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5250 * MonthCalendar.cs: When Font changes, the Size should be
5251 updated to fit the new font's space requirements.
5253 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
5255 * ListBox.cs: If the items are cleared with Items.Clear set
5258 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5260 * MonthCalendar.cs: Handle arrow keys as input keys. Also
5261 fire DateChanged event instead of DateSelected event when
5262 the date was changed by keyboard interaction.
5264 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5266 * DateTimePicker.cs: Handle DateChanged for the associated
5267 month_calendar control, and set month_calendar.Font from
5268 OnFontChanged method, as well as resize the height of the
5269 control when needed. Make PreferredHeight proportional.
5271 2006-09-01 Chris Toshok <toshok@ximian.com>
5273 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
5276 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
5278 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
5280 * FileDialog.cs: Set ClientSize instead of window size, to allow space
5281 for decorations (Fixes #79219)
5283 2006-09-01 Mike Kestner <mkestner@novell.com>
5285 * ComboBox.cs: first stab at sorting plus some selection handling
5286 fixes to bring us more in line with MS behavior. Also switches back
5287 to index based selection. Alternative patches for index-based
5288 selection were provided by Jackson Harper, Carlos Alberto Cortez,
5289 and latency@gmx.de on bug 78848. I assume they were similar to this
5290 code I've had simmering in my tree forever.
5293 2006-09-01 Chris Toshok <toshok@ximian.com>
5295 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
5296 when setting list position guard against ending up with a -1 index
5297 (the other part of the fix for #78812). Should probably make sure
5298 we don't need the analogous fix in the ItemDeleted case.
5301 - in SetDataSource, work around the fact that the way
5302 OnBindingContextChanged is invoked will cause us to re-enter this
5303 method. I'll remove the hack once I investigate
5304 OnBindingContextChanged.
5306 - fix the logic in set_DataSource and set_DataMember (basically
5307 what to do if the other of the two is null.)
5309 - in OnListManagerItemChanged, we need to take into account the
5310 edit row when deciding whether or not to call RecreateDataGridRows
5311 (part of the fix for #78812).
5313 2006-09-01 Jackson Harper <jackson@ximian.com>
5315 * Splitter.cs: Don't do anything if there is no control to affect
5316 (prevents us from crashing in weird tet cases).
5317 * TreeView.cs: Bounding box for the mouse movement reverting
5318 focus/selection back to previously selected node. This matches
5319 MS, and makes the tree a lot more useable.
5320 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
5321 use clipping so they are not drawn. This fixes when the control
5322 is set to have a transparent background, or if it was over an
5325 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
5327 * MimeIcon.cs: Improved handling for reading default icons when
5328 using gnome (2.16 made it necessary). Check and read svg icons
5329 first, then 48x48 and then 32x32 icons.
5331 2006-08-31 Chris Toshok <toshok@ximian.com>
5333 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
5336 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
5337 ProcessKeyPreview. Fixes part of #77806.
5339 * DataGrid.cs: big patch.
5341 - revert the queueing up of DataSource/DataMember if inside
5342 BeginInit/EndInit calls. That's not the way the datagrid achieves
5343 its delayed databinding. Instead, call SetDataSource in
5344 OnBindingContextChanged. This mimic's MS's behavior, and fixes
5347 - Also, it wasn't mentioned in #78811, but the test case exhibits
5348 behavior that was lacking in our datagrid implementation - Columns
5349 that have mapping names that don't exist in the datasource's
5350 properties aren't shown. Yuck. To fix this I added the bound
5351 field to the column style, and basically any calculation to figure
5352 out anything about columns uses a loop to find the bound columns.
5353 still need to investigate if I can cache an array of the bound
5354 columns or if the indices must be the same.
5356 - When setting CurrentCell, we no longer abort if the cell being
5357 edited was in the add row. This fixes the other part of #77806.
5359 - The new code also fixes #78807.
5361 * ThemeWin32Classic.cs: perpetrate the same disgusting
5362 column.bound field hack, and only render bound fields.
5364 2006-08-31 Chris Toshok <toshok@ximian.com>
5366 * DataGridColumnStyle.cs: add bound field. this field is true if
5367 the datasource has a property corresponding to the mapping name.
5369 * DataGridTableStyle.cs: set the bound field on the column styles
5370 depending on whether or not we have a column for that property.
5372 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
5374 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
5375 splitter control (fixes #79228)
5377 2006-08-31 Chris Toshok <toshok@ximian.com>
5379 * DataGridColumnStyle.cs: we need to delay the assignment of
5380 property descriptor until the last possible moment due to the lazy
5381 databinding stuff in the datagrid. Also, fix the exceptions
5382 thrown by CheckValidDataSource to match MS.
5384 2006-08-31 Jackson Harper <jackson@ximian.com>
5386 * Form.cs: When activated select the active control, if there is
5387 no active control, we select the first control.
5388 * XplatUIX11.cs: If there is no focus control when we get a
5389 FocusIn event, find the toplevel form and activate it. This
5390 occurs when you popup a window, it becomes the focus window, then
5391 you close that window, giving focus back to the main window.
5393 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5396 * ThemeWin32Classic.cs: Cache Font in bold style, as well
5397 as StringFormat with Center alignments in MonthCalendar,
5398 instead of creating new ones when drawing the control.
5399 Also, draw the month name in bold style.
5401 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
5404 - PerformLayout(): It would seem MS performs the fill even if the
5405 control is not visible (part of #79218 fix)
5406 - ResetBackColor(): Use the setter to reset the color, to allow
5407 overriders to catch the change.
5409 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
5410 - CreateHandle(): dito (part of $79218 fix)
5411 - Don't set an icon if we have a dialog
5412 * ScrollableControl.cs:
5413 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
5414 - ScrollIntoView(): No need to scroll if control is already visible
5415 (resolves fixme and fixes #79218)
5417 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5419 * MonthCalendar.cs: Change proportions in SingleMonthSize
5420 to match the aspect of the original control.
5422 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
5424 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
5425 get updated when they get maximized.
5427 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
5429 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
5431 2006-08-29 Chris Toshok <toshok@ximian.com>
5433 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
5435 2006-08-29 Jackson Harper <jackson@ximian.com>
5437 * TreeView.cs: Need to track selected node and highlighted node,
5438 they aren't always the same thing, when the mouse is down on a
5439 node it is hilighted, but not selected yet.
5440 - Do the HideSelection stuff right
5441 - Need to focus on rbutton mouse down. And redraw selection when
5442 right click is mouse upped.
5444 2006-08-29 Mike Kestner <mkestner@novell.com>
5446 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
5447 when SubItems.Count < Columns.Count. [Fixes #79167]
5449 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
5451 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
5453 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
5455 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
5456 from X. Only send based on ConfigureNotify if we don't have the
5457 correct location in hwnd (if the window manager moved us)
5459 2006-08-28 Mike Kestner <mkestner@novell.com>
5461 * ListView.cs: remove a TODO.
5462 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
5463 [Fixes ListView part of #79166]
5465 2006-08-28 Mike Kestner <mkestner@novell.com>
5467 * ListView.cs: move wheel handler to parent since it is focused
5468 instead of the item_control now. [Fixes #79177]
5470 2006-08-28 Mike Kestner <mkestner@novell.com>
5472 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
5473 when the control is focused. [Fixes #79171]
5475 2006-08-28 Mike Kestner <mkestner@novell.com>
5477 * ListView.cs: size the item and header controls for empty and
5479 * ThemeWin32Classic.cs: draw disabled backgrounds.
5482 2006-08-28 Chris Toshok <toshok@ximian.com>
5484 * Form.cs: remove unused "active_form" static field.
5486 * Hwnd.cs: lock around accesses to static windows collection.
5488 * Application.cs: lock threads in Exit ().
5490 2006-08-28 Chris Toshok <toshok@ximian.com>
5492 * NativeWindow.cs: lock around accesses to window_collection.
5494 2006-08-28 Chris Toshok <toshok@ximian.com>
5496 * Control.cs: err, fix this the right way, by locking on controls
5497 when using it. not by making it synchronized.
5499 2006-08-28 Chris Toshok <toshok@ximian.com>
5501 * Control.cs: make the static "controls" field synchronized, as it
5502 gets updated from multiple threads.
5504 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5506 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
5507 Prevent other threads from exiting when calling thread sets quit state.
5508 * XEventQueue.cs: Added PostQuitState property
5510 2006-08-27 Chris Toshok <toshok@ximian.com>
5512 * AsyncMethodData.cs: add a slot for the window handle.
5514 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
5515 window (the destination control's window, not the foster window).
5517 * Control.cs (BeginInvokeInternal): store the window's handle in
5518 the AsyncMethodData.
5521 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5524 - PostQuitMessage: Removed resetting S.D display handle, we might have
5525 another loop started after calling PostQuitMessage (Fixes #79119)
5526 - Created destructor to reset S.D handle
5528 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5530 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
5532 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5534 * TextControl.cs (Insert): Update the caret position even if we don't
5535 have a handle yet, just don't call the driver in that case.
5536 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
5537 to the end of the new selection text (Fixes #79184)
5539 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5541 * Form.cs (Activate): Only activate if the handle is created)
5543 - Mark window as invisible when it's disposed
5544 - Check if window handle is created when setting window visible,
5545 instead of relying just on the is_created variable
5546 - Check if object is disposed when creating the control (Fixes #79155)
5548 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5550 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
5551 when allowing layout again. Otherwise we re-generate the anchoring
5552 distance to the border again and actually alter what the user wanted
5553 This is ugly, it'd be better if we used DisplayRectangle instead of
5554 ClientRectangle for Control.UpdateDistances, but that causes us to
5555 have other problems (initial anchoring positons would be wrong)
5558 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5561 - The size and location setters shouldn't go directly to
5562 SetBoundsCore, but to SetBounds, which triggers layout on the
5563 parent, then calls SetBoundsCore. (Related to fix for #78835)
5564 - SetBounds: Moved actual location update code into this function
5565 from SetBoundsCore, to match MS. Added call to PerformLayout if
5566 we have a parent (to trigger resizing of anchored parents if the
5567 child size has changed (see testcase for #78835)
5568 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
5570 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
5572 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5574 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
5575 System.Drawing when a toplevel window gets closed; there might
5576 be other toplevel windows belonging to the same app (Fixes #78052)
5578 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
5580 * FileDialog.cs: After reading FileDialog settings from mwf_config
5581 use Desktop prefix only if a real folder doesn't exist anymore.
5582 * FontDialog.cs: Added char sets.
5583 It is now possible to select the font, size or style with the
5586 2006-08-25 Kornél Pál <kornelpal@gmail.com>
5588 * PrintPreviewDialog.cs: Use assembly name constants.
5590 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5592 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
5593 scrollbar from whacking it's buttons)
5595 2006-08-24 Chris Toshok <toshok@ximian.com>
5597 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
5598 in this patch (aggregating setting Left/Top/Width/Height to
5599 setting Bounds on the scrollbars), but the crux of the fix is in
5600 Recalculate, where we scroll by the remaining scroll_position if
5601 we're hiding a scrollbar. The 2*$5 reward in the comment is
5604 2006-08-24 Jackson Harper <jackson@ximian.com>
5607 * MdiWindowManager.cs: If the form is made a non-mdi window we
5608 need to remove the form closed event so that closing forms works
5611 2006-08-24 Jackson Harper <jackson@ximian.com>
5613 * Control.cs: Make IsRecreating internal so that the driver can
5615 - Temporarily remove the Hide when controls are removed, its
5616 making a whole bunch of things not work because visibility isn't
5617 getting reset elsewhere correctly
5618 * Form.cs: Need to do a full handle recreation when the mdi parent
5620 * XplatUIX11.cs: If we are recreating handles don't dispose the
5621 HWNDs. What was happening is the handles were being recreated in
5622 SendWMDestroyMessages, but then flow continued on in that method
5623 and destroyed the new handles.
5625 2006-08-23 Jackson Harper <jackson@ximian.com>
5627 * Form.cs: MdiClient is always at the back of the bus
5628 * Control.cs: When the order of items in the collection is changed
5629 we need to reset the all_controls array
5630 - do the same sorta setup thats done when adding a control when a
5631 control is set on the collection.
5633 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5635 * TextBoxBase.cs (get_Text): Return an empty array if our document
5636 is empty (fixes #79052)
5638 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5640 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
5641 on WM_SYSCHAR messages (fixes #79053)
5643 2006-08-23 Chris Toshok <toshok@ximian.com>
5645 * DataGrid.cs: fix flickering when scrolling vertically.
5647 2006-08-23 Chris Toshok <toshok@ximian.com>
5649 * DataGrid.cs (EndEdit): only invalidate the row header when we
5652 2006-08-23 Chris Toshok <toshok@ximian.com>
5654 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
5655 methods. fixes the flicker when scrolling around.
5657 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5659 * FileDialog.cs: Making sure the control is created before we get a
5660 chance to use it with BeginInvoke (Fixes #79096)
5662 2006-08-23 Chris Toshok <toshok@ximian.com>
5664 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
5665 width to use when painting the rows.
5667 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5670 - Throw ArgumentException if a negative value is passed to SelectionLength
5671 - Update the selection end if start is moved. end needs to be always
5672 after start. (Fixes #79095)
5673 - Track selection length; MS keeps the selection length even if start
5674 is changed; reset on all other operations affection selection
5676 2006-08-22 Jackson Harper <jackson@ximian.com>
5678 * TreeView.cs: Make sure both scrollbars get displayed and sized
5679 correctly when the other bar is visible.
5680 - Use the original clip rectangle for checking if the area between
5681 the two scrollbars is visible, not the viewport adjusted clipping
5684 2006-08-22 Jackson Harper <jackson@ximian.com>
5686 * Binding.cs: We don't use IsBinding because it requires the
5687 control to be created, which really shouldn't be necessary just to
5688 set a property on the control.
5690 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5692 * ComboBox.cs: Some CB.ObjectCollection methods must throw
5693 ArgumentNullReferenceException when the argument is null.
5695 2006-08-21 Jackson Harper <jackson@ximian.com>
5697 * Timer.cs: Track the thread that the timer is started in (NOT
5698 CREATED), this way messages for it will only be triggered on its
5700 * XEventQueue.cs: Track the timers here, this makes timers per
5702 * XplatUIX11.cs: The timers are moved to the XEventQueue.
5704 2006-08-19 Chris Toshok <toshok@ximian.com>
5706 * XplatUIX11.cs: after further communication with pdb, we get the
5707 best of both worlds. SetZOrder working for un-Mapped windows, and
5708 no X errors for un-mapped windows.
5710 2006-08-19 Chris Toshok <toshok@ximian.com>
5712 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
5713 as it was causing pdn toolbars to not have the correct stacking.
5715 2006-08-18 Mike Kestner <mkestner@novell.com>
5717 * ListView.cs : guard against negative ClientArea.Width in scrollbar
5718 calculation. Not sure why control should ever be setting a negative
5719 width though. Fixes #78931.
5721 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
5724 null items in ObjectCollection class.
5725 * ListBox.cs.: Likewise.
5727 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
5729 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
5730 as the base method in ThemeWin32Classic should work fine.
5733 2006-08-18 Jackson Harper <jackson@ximian.com>
5735 * Binding.cs: When validating if the value entered doesn't convert
5736 properly reset to the old value.
5737 * RadioButton.cs: Don't fire click when we get focus.
5739 2006-08-18 Jackson Harper <jackson@ximian.com>
5741 * FileDialog.cs: Paint the selection on the directory combobox the
5744 2006-08-17 Jackson Harper <jackson@ximian.com>
5746 * ErrorProvider.cs: Don't allow the error control to be selected.
5747 * Control.cs: Don't send the SetFocus messages, the control
5748 activation will do this, and if we do it blindly here validation
5751 2006-08-17 Jackson Harper <jackson@ximian.com>
5754 * ContainerControl.cs: Make validation events fire in the correct
5755 order. TODO: For some reason the first validation event is not
5758 2006-08-17 Mike Kestner <mkestner@novell.com>
5760 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
5762 2006-08-17 Mike Kestner <mkestner@novell.com>
5764 * ComboBox.cs : implement scroll wheel support for popped-down
5765 state. Fixes #78945.
5767 2006-08-17 Jackson Harper <jackson@ximian.com>
5769 * TreeView.cs: Specify treeview actions (old patch that didn't get
5770 committed for some reason).
5771 - Don't let the mouse wheel scroll us too far. Just want to make
5772 the bottom node visible, not scroll it all the ways to the top.
5774 2006-08-17 Jackson Harper <jackson@ximian.com>
5776 * XplatUIX11.cs: Mouse wheel events go to the focused window.
5778 2006-08-17 Mike Kestner <mkestner@novell.com>
5780 * ComboBox.cs : don't do mouseover selection in simple mode.
5782 2006-08-16 Jackson Harper <jackson@ximian.com>
5784 * Form.cs: Fire the closing events for all the mdi child windows
5785 when a window is closed. If the cancel args are set to true, the
5786 main window still gets the event fired, but it doesn't not close.
5787 * MdiWindowManager.cs: Do this closing cleanup in a Closed
5788 handler, instead of when the button is clicked, so cancelling the
5789 close works correctly.
5790 * ComboBox.cs: Send the mouse down to the scrollbar.
5792 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5794 * ListBox.cs: When passing 'null' to SelectedItem,
5795 set SelectedIndex to -1, to unselect items. This is the
5796 observed behaviour in .Net.
5798 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
5800 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
5801 MS flags saying there won't be any. (fixes #78800)
5802 * Control.cs (HandleClick): Made virtual
5804 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
5806 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
5807 cultures. Fixed bug #78399.
5809 2006-08-16 Jackson Harper <jackson@ximian.com>
5811 * Form.cs: Use the MdiClients MdiChildren property to access
5812 MdiChildren instead of creating the array from the child controls.
5813 * MdiClient.cs: Maintain a separate array of the mdi children, so
5814 that insertion order is maintained when the Z-order is changed.
5816 2006-08-16 Mike Kestner <mkestner@novell.com>
5818 * ListView.cs : add an ItemComparer and default to it for sorting.
5819 Fixes #79076, but sorting needs a complete overhaul to be compat with
5822 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5824 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
5826 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5828 * Hwnd.cs (Mapped): Properly traverse the tree
5830 2006-08-15 Chris Toshok <toshok@ximian.com>
5832 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
5833 pass manager.Current.GetType() to ParseData. It has to be the
5834 property type. So, hold off doing the ParseData until we're in
5835 SetPropertyValue where we know the type. This fixes the crash in
5836 #78821 but the textbox is still empty.
5838 2006-08-15 Chris Toshok <toshok@ximian.com>
5841 - when we're scrolling, only call Edit() again if the
5842 current cell is still unobscured. Fixes bug #78927.
5843 - when handling mousedown on a cell, ensure the cell is visible
5844 before calling Edit.
5845 - remove the properties from DataGridRow, and remove the
5846 DataGridParentRow class altogether.
5849 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5851 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
5852 fire OnTextChanged by ourselves. There's no point calling base,
5853 we don't set the base value anywhere else. Fixes #78773.
5855 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5857 * ListBox.cs: Call CollectionChanged when modifying
5858 an item from Items indexer, to update the actual items
5861 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5863 * PrintDialog.cs: Small fixes for focus and a pair of checks,
5864 to match .Net behaviour.
5866 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5868 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
5870 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5872 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
5874 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5876 * MessageBox.cs: Prevent potential NRE exception.
5877 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
5879 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5881 * MessageBox.cs: Calculate the owner of a messagebox, also make
5882 it topmost. Fixes #78753
5884 2006-08-14 Chris Toshok <toshok@ximian.com>
5886 * XplatUIX11.cs: A couple of fixes so that metacity will let us
5887 programmatically move windows. first, set the PPosition hint as
5888 well as the USPosition hint. Second include some code from pdb
5889 that sets the window type to NORMAL when we set the transient for
5890 hint. This is because, in the absence of a window type, metacity
5891 thinks any window with TransientFor set is a dialog, and refuses
5892 to let us move it programmatically. fascists.
5894 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5896 * XplatUIX11.cs: When setting normal hints, take into consideration
5897 an different hints previously set so we don't delete them (fixes #78866)
5899 2006-08-12 Chris Toshok <toshok@ximian.com>
5901 * ToolBarButton.cs: make Layout return a boolean, if something to
5902 do with the button's layout changed.
5905 - add another parameter to Redraw, @force, which all existing
5907 - make the Layout function return a boolean which is true if the
5908 layout has actually changed. Redraw now uses this (and @force)
5909 to determine when to invalidate. At present the only place
5910 where @force can be false is the call from OnResize, when
5911 background_image == null. So, resizing a toolbar when the
5912 layout doesn't change results in no drawing.
5914 2006-08-12 Chris Toshok <toshok@ximian.com>
5916 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
5917 the VScrollBar and HScrollbar reversed. oops.
5919 * DataGrid.cs: fix the logic that assigns sizes to the implicit
5920 scrollbars. we were assigning them twice (once in
5921 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
5922 therefore causing two scrollbar resizes (and redraws?) to happen
5925 2006-08-12 Chris Toshok <toshok@ximian.com>
5927 * ToolBarButton.cs: redraw the entire button if the theme tells us
5930 * Theme.cs: add ToolBarInvalidateEntireButton.
5932 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
5933 buttons, just the border.
5935 * ThemeNice.cs: redraw the entire toolbar button since we need to
5936 draw the highlight image.
5938 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
5939 we need to redraw the entire button (not just the border).
5941 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5943 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
5944 for vertical bars. Fixes the mismatches shown by #78513
5946 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
5948 * FileDialog.cs: If a saved/remembered path doesn't exist
5949 anymore, fall back to "Desktop".
5951 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5953 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
5954 parent. It's apparently legal to not have one
5956 - SetZOrder: Don't try to set Z-Order on an unmapped window
5957 - CreateWindow: 0,0 are legal coordinates for a window. don't move
5958 it unless the coordinates are negative
5960 2006-08-10 Mike Kestner <mkestner@novell.com>
5962 * ListControl.cs: allow null for DataSource. Clear DisplayMember
5963 when setting to null per msdn docs. Fixes #78854.
5965 2006-08-10 Chris Toshok <toshok@ximian.com>
5967 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
5968 flickering by setting a clip rectangle on the Graphics when we
5969 need to redraw just a particular menuitem. Also, rename "OnClick"
5970 to "OnMouseDown" to reflect what it actually is.
5972 * Form.cs: track the OnMouseDown change.
5974 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
5976 * CommonDialog.cs: Properly inherit the CreateParams from the form
5977 and only change what we need. Fixes #78865
5979 2006-08-10 Chris Toshok <toshok@ximian.com>
5981 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
5982 flickering in flat mode (and most of the flickering in general) by
5983 only invalidating the button border (and not the entire rectangle)
5984 when the state changes. A couple of cases still flicker:
5985 ToggleButtons, and the dropdown arrow case when the user mouse
5988 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
5990 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
5991 for german keyboards. Numlock state shouldn't affect the behaviour
5992 of the Del key. Fixes bug #78291.
5994 2006-08-10 Chris Toshok <toshok@ximian.com>
5996 * ListControl.cs: remove the items.Clear line from BindDataItems,
5997 as this is the first thing done by both subclasses in their
5998 SetItemsCore overrides. Also, add a ItemChanged handler, and when
5999 passed -1, refresh the list. This gets databinding working when
6000 the datasource is set on the list before the datasource is
6001 populated (as in wf-apps/ReportBuilder.)
6003 * ComboBox.cs: remove the argument to BindDataItems. This call
6004 should really go away, and be initiated by the ListControl code.
6008 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
6010 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
6011 if no data is in the document when the control is displayed
6013 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
6015 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
6018 - PositionCaret: Allow positioning of caret but don't call methods
6019 requiring a handle if the window isn't created yet
6020 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
6021 - owner_HandleCreated: Don't position the caret, just update it's
6022 location. User might have already set a different position
6024 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
6026 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
6027 windows. Screws up the returned coordinates for child windows.
6028 Fixes #78825. I'm hoping this doesn't break something, since the
6029 code was explicitly put in 8 months ago, but no bug was attached.
6030 Menus still seem to work properly.
6032 2006-08-08 Chris Toshok <toshok@ximian.com>
6034 * DataGrid.cs: make BeginInit/EndInit actually do what they're
6035 supposed to do - delay data binding until the EndInit call. Also,
6036 make the table style collection's CollectionChangeAction.Refresh
6039 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
6040 (with action = Refresh) when a consituent table's MappingName is
6043 2006-08-08 Chris Toshok <toshok@ximian.com>
6045 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
6046 Invalidate, since changing the text can change the size of the all
6049 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
6051 * Form.cs (AddOwnedForm): Still need to add the form to our listif
6052 we don't have it yet
6054 2006-08-08 Chris Toshok <toshok@ximian.com>
6056 * PrintControllerWithStatusDialog.cs: don't .Close() the status
6057 dialog, as this causes X errors later on, since we actually
6058 destroy the window. Instead, .Hide() it.
6060 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
6062 * ComboBox.cs: Added focus reflection for popup window
6064 - Removed transient setting for non-app windows for now, not sure it
6066 - Fixed logic checking if we have captions when deciding
6067 override_redirect, WS_CAPTION is two bits and a 0 check was not
6069 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
6072 - AddOwnedForm: Don't just add the form to the list, call the property
6073 to ensure the driver is informed about the ownership as well
6074 - CreateHandle: Set the TopMost status in the driver if we have an owner
6075 * XplatUI.cs: Fixed debug statement
6077 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
6078 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
6079 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
6080 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
6081 TrackBarRenderer.cs: Make constructor private.
6082 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
6083 * ProfessionalColorTable.cs: Make properties virtual.
6085 2006-08-06 Duncan Mak <duncan@novell.com>
6087 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
6090 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
6091 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
6092 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
6093 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
6094 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
6095 Initial import of new 2.0 classes.
6097 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
6098 * Application.cs: Add 2.0 VisualStyles properties.
6100 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
6101 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6102 XplatUIX11.cs: Create property to allow access to existing private
6103 variable "themes_enabled"
6105 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6107 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
6108 file size, as otherwise our class libraries fail using windows. Fixes
6111 2006-08-04 Jackson Harper <jackson@ximian.com>
6114 * XplatUIX11.cs: Move the toolwindow window manager creation into
6115 the X11 driver, this way on win32 we can let windows create/handle
6118 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6120 * PrintDialog.cs: Remove some redundant checks, add some others,
6121 clean some code, and move the focus to the text boxes when the
6122 values are incorrect.
6124 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
6126 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
6128 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
6130 * NumericUpDown.cs: Setting the Minimum and Maximum is now
6131 handled correctly. Fixes bug #79001.
6133 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135 * PrintDialog.cs: The "Copies" numeric up down must have
6136 set the Minimum property to 1; only if the value is bigger
6137 than 1, activate "Collate" check box. This is the behaviour of .Net.
6138 Also modify the Document elements only if it is not null.
6140 2006-08-03 Jackson Harper <jackson@ximian.com>
6142 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
6143 length. (We have a larger array then actual node count).
6145 2006-08-03 Jackson Harper <jackson@ximian.com>
6147 * ComboBox.cs: Don't show selection by default.
6148 - The SelectAll isn't needed here, since the focus code should do
6150 - DDL style lists to manual selection drawing, so when they
6151 get/lose focus they have to invalidate.
6153 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
6155 * TextBoxBase.cs: Don't always show all selections by default.
6157 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
6158 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
6159 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
6160 Fixed various typos.
6162 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
6164 * Control.cs: Removing the controls in a ControlCollection with
6165 Clear now hides the controls as expected. Fixes bug #78804.
6167 2006-08-03 Jackson Harper <jackson@ximian.com>
6169 * Control.cs: Revert previous focus patch, it breaks reflector.
6171 2006-08-03 Jackson Harper <jackson@ximian.com>
6173 * ComboBox.cs: Cleanup selection and focus with the combobox.
6174 This also eliminates some duplicated keyboard code, since now
6175 everything is handled by the main class.
6176 - Make list selection work on mouse up instead of down, to match
6179 2006-08-02 Jackson Harper <jackson@ximian.com>
6181 * Control.cs: Setting focus needs to go through the whole
6182 selection mechanism.
6184 2006-08-02 Chris Toshok <toshok@ximian.com>
6186 * PrintPreviewDialog.cs: change MinimumSize to use
6187 base.MinimumSize so it works.
6189 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
6192 - UpdateCaret: Added sanity check in case caret isn't defined yet
6193 - Line.Delete: Now updating selection and caret markers if we're
6194 transfering a node (Properly fixes #78323)
6195 - SetSelectionEnd: Added sanity check
6196 * TextBoxBase.cs: Removed broken attempt to fix #78323
6198 2006-08-01 Chris Toshok <toshok@ximian.com>
6200 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
6201 Close() call is handled in Form, not here.
6203 2006-08-01 Chris Toshok <toshok@ximian.com>
6205 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
6208 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
6209 for sizes < 100% zoom. The code now aggressively attempts to keep
6210 from calling document.Print (), and tries not to use the scaling
6211 g.DrawImage whenever possible (it still does if you scale to >
6212 100%, since usually that involves huge images).
6214 * PrintPreviewControl.cs: hook up the close button.
6216 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
6217 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
6218 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
6219 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
6220 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
6221 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
6222 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
6223 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
6224 Removed [Serializable] for 2.0 Event Handlers.
6226 2006-07-31 Jackson Harper <jackson@ximian.com>
6228 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
6229 * TextControl.cs: Uncomment out the body of this method.
6231 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
6233 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
6236 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6238 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
6239 that embed TextBox and need selections visible even if textbox is not
6240 focused to enforce that behaviour.
6241 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
6244 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6247 - Added new SetSelectionStart/SetSelectionEnd overloads
6248 - Fixed viewport width assignment to be accurate
6249 - Adjusted alignment line shift calculations to allow cursor on right
6250 aligned lines to be always visible at the right border (like MS)
6252 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
6253 - TextBoxBase_SizeChanged: recalculating canvas on size changes
6254 - CalculateScrollBars: Use ViewPort size instead of window size, to
6255 properly consider space occupied by the border and scrollbars
6257 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
6258 calculations; no longer leaves artifacts
6259 - CaretMoved: Adjusted window scrolling to match MS and fixed several
6260 calculation bugs (Still missing right/center align calculations)
6262 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6264 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
6265 use of both scroll rect and clip rect, as they do the same.
6267 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6269 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
6270 in the event handler (fixes #78912)
6272 2006-07-31 Chris Toshok <toshok@ximian.com>
6274 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
6275 grid.ListManager.Count, since grid.ListManager might be null.
6276 This of course begs the question "why are we drawing rows for a
6277 grid with no list manager (and therefor no rows)?" Fixes the
6278 crash in bug #78929.
6280 2006-07-31 Chris Toshok <toshok@ximian.com>
6282 * RelatedPropertyManager.cs: Don't always chain up to the parent
6283 ctor. instead, call SetDataSource if the parent's position is !=
6284 -1. Fixes the crash in #78822.
6286 2006-07-31 Chris Toshok <toshok@ximian.com>
6288 * DataGrid.cs (get_ListManager): use field instead of property
6289 accessors for datasource and datamember.
6290 (RowsCount): make internal again.
6291 (OnMouseDown): end edits before resizing columns/rows.
6292 (OnMouseUp): restart edits after resizing columns/rows.
6294 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
6296 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
6297 This fixes the situation where the last set cursor is displayed
6298 whenever the mouse is over scrollbars.
6300 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
6303 Document properties, as well as initial values.
6305 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
6307 * XplatUIWin32.cs (SetBorderStyle): Setting both border
6308 and ClientEdge results in a 3-pixel border, which is
6311 2006-07-28 Jackson Harper <jackson@ximian.com>
6313 * TreeNodeCollection.cs: Fix the clear method.
6314 - Fix the Shrink also
6316 2006-07-27 Jackson Harper <jackson@ximian.com>
6318 * TreeView.cs: Make sure the visible order is computed when we
6319 attempt to size the scrollbars (for trees that mess with the
6320 scrolling when they shouldn't.
6321 - Make sure to give the scrollbars valid values.
6323 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
6325 * XplatUIX11.cs: Move motion compression code to where it
6326 has less performance impact
6328 2006-07-26 Jackson Harper <jackson@ximian.com>
6330 * UpDownBase.cs: When the control is selected make the child
6331 controls non selectable, so that a click on them won't do a
6332 focus/unfocus cycle.
6333 - Don't give focus to the text box when the spinner is selected.
6334 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
6336 2006-07-26 Chris Toshok <toshok@ximian.com>
6338 * ThemeWin32Classic.cs: add print preview rendering. I'm not
6339 satisfied with this solution. If the bitmaps are small, we should
6340 just cache them in the PrintPreviewDialog and draw them here.
6341 Also, the layout is broken for the 2-up and 3-up cases.
6343 * Theme.cs: add PrintPReviewControlPaint.
6345 * PrintPreviewDialog.cs: first pass implementation.
6347 * PrintPreviewControl.cs: first pass implementation. No
6350 * PrintDialog.cs: only validate fields if that particular portion
6351 of the UI is enabled. Also, set the document's controller to a
6352 PrintControllerWithStatusDialog wrapping the document's print
6355 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
6356 bring up a SaveFileDialog (i hope we don't want to match the
6357 behavior of the crappy windows file entry) and set the
6358 PrinterSettings.PrintFileName accordingly.
6360 2006-07-26 Jackson Harper <jackson@ximian.com>
6362 * ContainerControl.cs: Add a field that disables auto selecting
6363 the next control in a container when the container is activated.
6364 * UpDownBase.cs: Don't select the text box when the up down is
6367 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
6369 * XEventQueue.cs: Added methods for peeking (used for compression
6370 of successive events)
6371 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
6372 mouse move events (fixes #78732)
6374 2006-07-25 Jackson Harper <jackson@ximian.com>
6376 * UpDownBase.cs: Use an internal class for the textbox so that we
6377 can control focus. the updown control should always have focus,
6378 if either the text area or the buttons are clicked.
6379 - Send the key messages to the textbox, since it never actually
6381 - Activate and decativate the textbox caret.
6383 2006-07-24 Jackson Harper <jackson@ximian.com>
6385 * Control.cs: Use the directed select when selecting a control,
6386 this way the container controls override will get called and the
6387 whole ActiveControl chain will get triggered. TODO: probably need
6388 to make sure this gets done everywhere instead of the old
6390 * ContainerControl.cs: Implement the directed Select method to
6391 find and activate the correct child control.
6393 2006-07-22 Mike Kestner <mkestner@novell.com>
6395 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
6396 menu handling code so that clicks without a grab work too.
6399 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
6401 * FileDialog.cs: Enable the BackButton when dirstack has one element.
6402 Added some small optimizations.
6404 2006-07-21 Matt Hargett <matt@use.net>
6406 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
6408 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
6410 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
6411 tests pass and match MS in some strange border cases.
6413 2006-07-21 Chris Toshok <toshok@ximian.com>
6415 * ThemeWin32Classic.cs: handle drawing of the relation links and
6418 * Theme.cs: change args to DataGridPaintParentRow.
6420 * DataGrid.cs: Don't use controls for the relation links and
6421 parent buttons, so we have to handle all their interactions in
6422 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
6423 when we're navigating through child tables, so we can reinstate
6424 selection, expanded state, current cell, etc.
6426 2006-07-20 Chris Toshok <toshok@ximian.com>
6428 * ToolBar.cs: When we redraw a button, for whatever reason,
6429 there's no reason to redraw the entire toolbar. Also, don't call
6430 Control.Refresh from within Redraw, as it's much heavier than
6431 Invalidate (which is really what we want).
6433 2006-07-20 Chris Toshok <toshok@ximian.com>
6435 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
6436 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
6437 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
6438 traces from within a debug IBindingList datasource
6439 (in mono/winforms/datagrid) for *days*, I've finally gotten things
6440 to work in a similar fashion.
6442 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6444 * ListBox.cs: Don't call Sort () when setting
6445 the Sorted property to false (avoid an unnecessary sort).
6447 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6449 * ListControl.cs: DataSource should throw an ArgumentException
6450 instead of a normal exception when the argument is not of the
6453 2006-07-20 Mike Kestner <mkestner@novell.com>
6455 * Control.cs: add InternalPreProcessMessage to allow us to steal
6456 key events before MWF gets its paws on them. Adapted from a
6458 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
6459 up/down/left/right navigation. Override the new internal control
6460 method to steal the events since they never make it to WndProc.
6461 * ToolBarButton.cs: don't worry about pushed when setting hilight
6462 since the drawing code prefers pushed to hilight. Invalidate on
6463 Hilight changes. Fixes #78547 and #78525.
6465 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6467 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
6468 the canvas size. Fixes #78868
6470 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6472 * Splitter.cs: Track requested split position until first layout
6473 is performed. Fixes #78871
6475 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6477 * Application.cs: Removed code that forces 1.x for the version
6478 number if the version started with 0. Not sure why that code was
6479 there and I couldn't find any bugs that indicated we needed it.
6482 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
6484 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
6485 ResetDefaults(), just write some output to the console until it's
6486 implemented. Fixes bug #78907 for now. Eliminated two warnings.
6488 2006-07-19 Jonathan Chambers <joncham@gmail.com>
6490 * PropertyGridView.cs: set StartPosition of drop down forms
6491 so they appear in correct initial spot. Fixes #78190.
6493 2006-07-19 Mike Kestner <mkestner@novell.com>
6495 * ThemeWin32Classic.cs: use parent background color when drawing
6496 flat toolbars. Restructure the conditionals to make sure non-flat
6497 non-Divider toolbars are filled too. Fixes #78837.
6499 2006-07-19 Mike Kestner <mkestner@novell.com>
6501 * ListBox.cs: Sort on collection changes even if the handle
6502 isn't created yet. Fixes #78813.
6504 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6506 * ListControl.cs: DisplayMember should never be null,
6507 and now we assign String.Empty when null is passed to it (this
6510 2006-07-17 Mike Kestner <mkestner@novell.com>
6512 * ListViewItem.cs: restructure Font and subitem Font handling
6513 to hold a specific font and refer back to owner on null.
6516 2006-07-17 Mike Kestner <mkestner@novell.com>
6518 * ToolBar.cs: bandaid for side-effect of previous patch which was
6519 discarding explicit heights for non-AutoSize toolbars. Need to
6520 extend my format tester to deal with AutoSize=false. Fixes #78864.
6522 2006-07-15 Jackson Harper <jackson@ximian.com>
6524 * LabelEditTextBox.cs:
6525 * TreeView.cs: Use a new LabelEdit class for node editing, this
6526 class automatically 'closes' itself when it gets the enter key or
6528 - Use the client rectangle when setting the trees scrollbars, so
6529 border style is taken into account.
6531 2006-07-14 Jackson Harper <jackson@ximian.com>
6534 * TreeView.cs: Make the editing work similar to MSs, firing the
6535 events correctly and ending edits correctly.
6537 2006-07-14 Mike Kestner <mkestner@novell.com>
6540 * ToolBar.cs: layout restructuring and redraw enhancements to support
6541 formatting changes gracefully, like setting TextAlign, ImageList,
6542 ButtonSize, and Appearance. Handles explicit button sizing quirks
6543 of the MS controls. Things like flat toolbars ignoring button size
6544 but becoming constant sized at the largest button's size. Normal
6545 toolbars with an image set cannot be shrunk smaller than the image,
6546 but text can be clipped/ignored.
6547 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
6548 is zero. Seems like DrawString should be smart enough to not put
6549 anything on screen though. Also trim labels and ellipsize at the char
6551 Fixes #78711 and #78483.
6553 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6555 * FolderBrowserDialog.cs: Disable "New Folder" button and
6556 "New Folder" contextmenu menuitem if a folder like "My Computer"
6559 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6561 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
6562 * FolderBrowserDialog.cs:
6563 - Use MWFConfig to store and read size and position settings
6564 - Added code to create a new folder (button or context menu).
6565 Use TreeView labeledit to change the name of the new folder.
6567 2006-07-14 Jackson Harper <jackson@ximian.com>
6569 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
6570 when the tree is scrolled we end editing.
6572 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6574 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
6577 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6579 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
6580 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
6581 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
6582 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
6583 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
6584 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
6585 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
6586 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
6587 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
6588 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
6589 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
6590 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
6591 ListViewItemSelectionChangedEventHandler.cs,
6592 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
6593 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
6594 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
6595 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
6596 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
6597 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
6598 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
6599 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
6600 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
6601 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
6602 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
6603 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
6604 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
6605 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
6606 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
6607 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
6608 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
6609 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
6610 WebBrowserNavigatingEventHandler.cs,
6611 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
6613 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6615 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
6616 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
6617 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
6618 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
6619 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
6620 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
6621 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
6622 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
6623 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
6624 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
6625 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
6626 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
6627 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
6628 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
6629 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
6630 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
6631 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
6632 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
6633 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
6634 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
6635 ListViewItemStates.cs, MaskFormat.cs: Added
6637 2006-07-13 Jonathan Chambers <joncham@gmail.com>
6639 * PropertyGridView.cs: Fix keyboard navigation of drop down.
6640 Patch from eno for bug 78558.
6642 2006-07-13 Jackson Harper <jackson@ximian.com>
6644 * TreeView.cs: When an edit is finished make sure that the
6645 selected node is visible.
6646 - When setting the top/bottom use the scrollbars is_visible, so
6647 everything will be set correctly even if the tree isn't visible
6650 2006-07-13 Jackson Harper <jackson@ximian.com>
6652 * ComboBox.cs: Revert the item->index part of my previous patch.
6653 * TreeView.cs: Use LostFocus instead of Leave for detecting when
6654 the edit box has lost focus (duh).
6655 - Just make the edit box not visible when we get return, that will
6656 take the focus, which will call EndEdit
6657 * TreeNode.cs When we start editing, notify the treeview.
6659 2006-07-12 Jackson Harper <jackson@ximian.com>
6661 * ComboBox.cs: Clear out old items before setting the item list.
6662 This prevents databound controls from having their items added
6664 - Switch the combobox to use indices whereever possible instead of
6665 using Item's. This allows usto navigate through lists that have
6666 more then one item with the same string value (ie a, b, b, a).
6667 - Scroll the listboxes scrollbar when a non visible item is
6669 - Allow keypress to cycle through all the possible values. For
6670 example if you have b1, b2, b3 and hold down the B key all the
6671 values will be cycled through.
6673 2006-07-12 Jackson Harper <jackson@ximian.com>
6676 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
6677 this using the internal methods.
6678 * Control.cs: Add OnGotFocusInternal. A new method that allows
6679 controls to "override" OnGotFocus and change focus behavior if
6681 - Same thing for LostFocus
6682 * ComboBox.cs: Pass off focus to the text control properly.
6684 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
6686 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
6687 * FolderBrowserDialog.cs: Almost a complete rewrite.
6688 - Better support for Environment.Specialfolders
6689 - Added support for MWFVFS
6690 - Made setting SelectedPath work
6692 2006-07-12 Jackson Harper <jackson@ximian.com>
6694 * Control.cs: Optimze getting all the controls.
6696 2006-07-11 Jackson Harper <jackson@ximian.com>
6698 * ContainerControl.cs: Override SETFOCUS in the container control,
6699 so that it is not selected on mouse click.
6701 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6703 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
6704 Hopefully we will have a better way once all of focus is complete.
6706 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6708 * ThemeWin32Classic.cs: Commented out some debug code and fixed
6709 a compile error with csc.
6711 2006-07-11 Jackson Harper <jackson@ximian.com>
6713 * Control.cs: When hiding a control only select the next control
6714 if the current control was focused.
6715 - Don't handle enter/leave when setting/killing focus, this is
6716 done by the container control.
6717 - Remove is_selected, it's not needed anymore.
6718 - Add utility methods for selecting a child control, and for
6719 firing the Enter/Leave events.
6720 * ContainerControl.cs: When a control is activated fire the
6722 - Don't wrap when processing the tab key, so that focus can be
6723 moved outside of the container.
6724 - Use the correct active control
6726 2006-07-11 Jackson Harper <jackson@ximian.com>
6728 * ComboBox.cs: Remove some debug code that was blinding me.
6729 * UpDownBase.cs: These controls actually aren't implicit, they are
6730 visible to the user.
6732 2006-07-10 Chris Toshok <toshok@ximian.com>
6734 * DataGrid.cs: move back to the is_adding boolean field. god i
6735 hate this is_editing/is_adding/is_changing stuff.
6737 2006-07-10 Chris Toshok <toshok@ximian.com>
6739 * DataGridTableStyle.cs: just check if the property type is bool.
6740 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
6741 Don't use CanRenderType.
6743 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
6744 if our text == NullText. Remove CanRenderType.
6746 * DataGridBoolColumn.cs: nuke CanRenderType.
6748 * DataGrid.cs: reenable some code to end the current edit inside
6749 of set_CurrentCell. This fixes the other 1.1.16 regression.
6750 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
6751 Also, remove the visible_row_count arg from CalcRowHeaders, since
6752 we don't need to worry about the actual height of the area.
6754 2006-07-10 Chris Toshok <toshok@ximian.com>
6756 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
6759 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
6760 the real sense of the IsInEditOrNavigateMode property (true =
6761 navigate, false = edit). Also, update OnKeyPress to reflect this.
6763 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
6764 column style exists, we still need to set its property descriptor
6765 to match up with our list manager.
6767 2006-07-10 Chris Toshok <toshok@ximian.com>
6769 * ThemeWin32Classic.cs: implement the new row/header painting
6770 approach. The parent row painting will likely go away and
6771 replaced with label controls, but the rest seems to work ok (and
6774 * Theme.cs: change the way we draw datagrid rows. we don't draw
6775 the row headers as a block now. Instead we draw them in the
6776 normal draw-row loop. Add some calls for drawing parent rows and
6779 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
6780 a default table style. Set the defaults from ThemeEngine.Current,
6781 not SystemColors. Fix lots of misc issues with property setters.
6783 * DataGrid.cs: move loads of style information out of this class
6784 as it's being duplicated with DataGridTableStyle. keep track of a
6785 special DataGridTableStyle for the properties we used to mirror
6786 here. Switch all the style properties to access this table style
6787 instead of instance fields of this class. Also add a internal
6788 class to represent parent rows (more needs to be stored here, like
6789 the selection state from the parent table, as well as the
6790 expansion state.) Also, for datasources with relations, do the
6791 right thing for collapse/expand, and add support for the
6792 navigation/parent row buttons.
6794 Lastly, fix the crash in the 1.1.16 build.
6796 * GridTableStylesCollection.cs: make the explicit interface
6797 implementations call the class's methods as opposed to duplicating
6800 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
6801 0 so the text doesn't jump around when we move the cursor.
6803 2006-07-10 Jackson Harper <jackson@ximian.com>
6806 * ListBox.cs: Match MS's ToString (this makes debugging focus
6807 stuff infinitely easier).
6809 2006-07-10 Jackson Harper <jackson@ximian.com>
6811 * Control.cs (SelectNextControl): When checking the control's
6812 parent use this instead of ctrl.parent so that null can be passed
6813 to SelectNextControl. (I have unit tests for this).
6814 - Remove unused var.
6816 2006-07-10 Chris Toshok <toshok@ximian.com>
6818 * CurrencyManager.cs: correct one regression, the removal of the
6819 finalType field. Also, add a MonoTODO on CanAddRows, implement
6820 Refresh() correctly, and fix some event emission in
6823 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6825 * FileDialog.cs: Don't use brackets for new folders if they exist
6826 under *nix. Instead use -(number of existing folders +1).
6828 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6831 - Fixed really nasty bug #78771
6832 - Don't block the whole GUI when reading directories with a lot of
6833 entries. Use an other thread instead and call BeginInvoke to
6834 update the ListView in MWFFileView
6836 2006-07-07 Chris Toshok <toshok@ximian.com>
6838 * Control.cs (Dispose): release any Capture when disposing.
6840 2006-07-07 Chris Toshok <toshok@ximian.com>
6842 * LinkLabel.cs (Select): if we chain up to the parent, set
6843 focused_index to -1 so we'll search for the first available link
6844 the next time the user tabs into us. Also, if the direction is
6845 backward and focused_index == -1, start the search from the last
6848 2006-07-07 Chris Toshok <toshok@ximian.com>
6850 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
6851 is beyond the end of the text, don't do anything.
6852 (CreateLinkPieces): set our ControlStyles.Selectable based on
6853 whether or not we have any links.
6854 (Link.Invalidate): use a loop instead of foreach.
6855 (Link.set_Start): null out owner.sorted_links so it'll be
6856 recreated by CreateLinkPieces.
6858 2006-07-06 Chris Toshok <toshok@ximian.com>
6860 * LinkLabel.cs: revert the SetStyle change.
6862 2006-07-06 Chris Toshok <toshok@ximian.com>
6864 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
6865 (OnEnableChanged): s/Refresh/Invalidate
6866 (OnGotFocus): if we have a focused index already, refocus it (so
6867 if we mouse out/in to the window it'll focus the right link).
6868 (OnKeyDown): move the tab handling out of here.
6869 (OnLostFocus): don't set focused_index to -1, so we can refocus it
6871 (OnMouseDown): don't Capture here - Control handles it. Also,
6872 focus the active link.
6873 (OnMouseUp): don't deal with Capture.
6874 (OnPaintBackgroundInternal): remove.
6875 (OnTextAlignChanged): CreateLinkPieces before calling the
6876 superclass's method.
6877 (OnTextChanged): call CreateLinkPieces before calling superclass's
6879 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
6881 (Select): implement this, moving the selection between different
6882 links, and call parent.SelectNextControl if we don't have another
6883 link to focus in the given direction.
6884 (CreateLinkPieces): call Invalidate instead of Refresh.
6886 2006-07-06 Chris Toshok <toshok@ximian.com>
6888 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
6889 new LinkLabel internals.
6891 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
6892 over pieces looking for active/focused/etc links. also, deal with
6893 runs of text (and links) with embedded \n's in them, and use
6894 MeasureCharacterRanges instead of MeasureString to figure out the
6895 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
6898 2006-07-04 Jackson Harper <jackson@ximian.com>
6900 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
6901 XKB or key auto repeat, do it manually. Without key auto repeat,
6902 when a key is held down we get key press, key release, key press,
6903 key release, ... with auto repeat we get key press, key press, key
6904 press ..., and then a release when the key is actually released.
6906 2006-07-03 Jackson Harper <jackson@ximian.com>
6909 * ThemeWin32Classic.cs: Tabs do not obey normal background color
6910 rules, they are always control color regardless of the background
6913 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
6915 * FileDialog.cs: Added internal class MWFConfig.
6916 Removed Registry support and replaced it with support for the new
6917 MWFConfig class. See MWFConfig comments for more information.
6919 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
6921 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
6922 rectangle. Added some patches from eno from bug #78490 and fixed
6923 the arrow position for small up and down CPDrawScrollButtons.
6925 2006-06-30 Jackson Harper <jackson@ximian.com>
6927 * InternalWindowManager.cs: Remove some debug code.
6928 * Form.cs: When an MdiParent is set to null, the window is
6929 "detatched" and becomes a normal window.
6930 * MdiClient.cs: Don't bring the new child form to the front until
6931 it is activated (setting it as active does this), this makes the
6932 previously active forms titlebar get redrawn as inactive.
6934 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
6936 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
6939 2006-06-29 Mike Kestner <mkestner@novell.com>
6941 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
6942 arrow in keynav state. Fixes #78682.
6944 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6946 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
6947 order (fixes #78393)
6949 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
6951 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
6952 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
6953 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
6954 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
6955 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
6956 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
6957 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
6958 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
6959 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
6960 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
6961 enumerations (FlagsAttribute, SerializableAttribute, added/removed
6964 2006-06-28 Mike Kestner <mkestner@novell.com>
6966 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
6968 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6971 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
6972 item lines from other area (It also makes BackColor consistent and
6973 compatible with .NET). Fixed bug #78564.
6975 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
6977 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
6978 Patch from Eno for #78555.
6980 2006-06-27 Chris Toshok <toshok@ximian.com>
6982 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
6984 * DataGridColumnStyle.cs: same.
6986 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
6988 * DataGridDrawingLogic.cs: nuke.
6990 2006-06-27 Chris Toshok <toshok@ximian.com>
6992 * DataGridTableStyle.cs: clean up the constructors, and build the
6993 list of child relations for this table. I have no idea if this is
6994 where we should be doing it (it probably isn't), but since we're
6995 already iterating over the properties..
6997 * DataGrid.cs: add row resizing. for now we add a DataGridRow
6998 struct and array for keeping track of row information, similar to
6999 what's shown in a hack on
7000 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
7002 * Theme.cs: be consistent about the naming of DataGrid methods,
7003 prefering ColumnWidths and RowHeights over columnsWidths and
7006 * ThemeWin32Classic.cs: same, and also add support for variable
7007 sized rows (and the +/- expansion icons for related rows).
7009 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
7011 * TextBoxBase.cs: Applied Eno's patch from #78660
7013 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
7015 * Form.cs (ScaleCore): We don't want to scale our form if it's
7016 state is minimized or maximized, but we still need to scale our
7017 child windows. Also, added try/finally block to ensure layout
7018 gets reset (Fixes #78697)
7020 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
7022 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
7024 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
7026 * Form.cs: Fixed c+p error and added check to resize form if minimum
7027 size is bigger than current size (Fixes #78709)
7029 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
7031 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
7033 2006-06-26 Mike Kestner <mkestner@novell.com>
7035 * ComboBox.cs: only do Keypress handling in the combo when there
7036 are items in the collection. Fixes #78710.
7038 2006-06-26 Chris Toshok <toshok@ximian.com>
7040 * Binding.cs: make this work bi-directionally. also, clear up
7041 other mixups between Push/Pull Data (e.g. we're supposed to pull
7042 data when validating).
7044 * BindingManagerBase.cs: trim some fully qualified collection
7047 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
7049 2006-06-23 Chris Toshok <toshok@ximian.com>
7051 * PropertyManager.cs: It appears (according to the unit tests)
7052 that PropertyManager doesn't use
7053 PropertyDescriptor.AddValueChanged to track propery value changes
7054 in its datasource, but uses the same scheme as Binding, where it
7055 looks for a <Property>Changed event and binds to it.
7057 Also, according to the docs, IsSuspended always returns false for
7058 a property manager with a non-null datasource.
7060 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
7062 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
7063 need to update the actual DialogResult. (Fixes #78613)
7065 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
7067 * Form.cs (ShowDialog): Release any captures before running the
7068 new message pump (fixes #78680)
7070 2006-06-22 Mike Kestner <mkestner@novell.com>
7072 * ListView.cs: Layout column widths properly in details mode even
7073 if HeaderStyle.None is set. Fixes #78691.
7075 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
7077 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
7079 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
7081 * Control.cs (ContainsFocus): Using new driver method to get focused
7082 window, instead of trying to use internal tracking var, which can
7083 recursion issues (Fixes #78685)
7084 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7085 XplatUIWin32.cs: Added GetFocus method to return focused window
7087 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7089 * ColorDialog.cs: when the mouse button is pressed inside the color
7090 matrix, don't let the cursor move out of it until the button is
7091 released, which is the behavior on windows. Changed 'colours' by
7092 'colors' to use the same word consistently.
7094 2006-06-21 Chris Toshok <toshok@ximian.com>
7096 * DataGrid.cs: add in some basic navigation stuff (navigating to a
7097 child relation and back, using a stack). Also, remove
7098 GetDataSource and the code that calls it - it's not needed. Also,
7099 track CurrencyManager.ListName's removal.
7101 2006-06-21 Chris Toshok <toshok@ximian.com>
7103 * CurrencyManager.cs: push some of the original type checking from
7104 BindingContext.CreateBindingManager to here, and remove some of
7105 the finalType stuff. Need more tests to make sure I've got the
7106 ListName part right, and we might need more in SetDataSource.
7108 * PropertyManager.cs: add a ctor that takes just the datasource,
7109 and no property name. Make SetDataSource work with a null
7110 property_name, and make Current return the data_source if the
7111 property descriptor is null. this makes 'string foo = "hi";
7112 BindingContext[foo].Current' return "hi" as it should.
7114 * RelatedCurrencyManager.cs: make this code more generic - there's
7115 no reason the parent manager has to be CurrencyManager, and
7116 there's no reason to pass the DataRelation. It suffices to use a
7117 BindingManagerBase and PropetyDescriptor.
7119 * RelatedPropertyManager.cs: make a similar change here.
7121 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
7122 flower I knew it could be.
7124 2006-06-20 Chris Toshok <toshok@ximian.com>
7126 * PropertyManager.cs: the PropertyChangedHandler is invoked when
7127 data in the source has changed and we need to update the control,
7128 so s/PullData/PushData.
7130 * CurrencyManager.cs: Refresh is meant to update the control from
7131 data in the datasource. So, s/PullData/PushData.
7133 * BindingContext.cs: add more ugliness (we weren't handling the
7134 case where data_source = DataTable and data_member = column_name).
7136 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
7137 from the perspective of the datasource. PullData pulls from the
7138 control, PushData pushes to the control.
7140 2006-06-20 Chris Toshok <toshok@ximian.com>
7142 * BindingContext.cs: rewrite the CreateBindingManager code to
7143 handle navigation paths more or less properly. This could
7144 definitely stand some more work, in particular to push the
7145 recursion up to the toplevel. But that relies on fixes in other
7146 places (System.Data comes to mind).
7148 Also, move to a flat hashtable (and encode the twolevel nature of
7149 the dictionary into the hash key). This lets us implement the
7150 IEnumerable.GetEnumerator method.
7152 * RelatedCurrencyManager.cs: new class. Update our view based on
7153 our relation and our parent CurrencyManager's position.
7155 * CurrencyManager.cs: split out some logic from the ctor into
7156 SetView, so it can be called from the new RelatedCurrencyManager
7159 * RelatedPropertyManager.cs: new class. Update our datasource
7160 based on the position of our parent CurrencyManager.
7162 * PropertyManager.cs: split out some logic from the ctor into
7163 SetDataSource, so it can be called from the new RelatedDataSource
7164 subclass. Also, make the Current getter return the value
7165 of the PropertyDescriptor, not the data_source.
7167 * Binding.cs: no need to duplicate the string splitting code here.
7169 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
7172 - set_Enabled: OnEnabledChanged is not called if the inherited state
7173 of the control is not altered, even though we might be changing the
7174 internal state of the control (#78458)
7175 - set_Enabled: (Re)Moved the enabling/disabling of the window to
7176 OnEnabledChanged, to allow easy altering of any child window state
7177 - OnEnabledChanged: Added code to enable/disable driver window state
7178 - OnParentEnabledChanged: Instead of firing the event, call
7179 OnEnabledChanged, which will fire the event and also a) set driver
7180 window state and pass the enabled state to any grandchildren (#78458)
7182 2006-06-19 Jackson Harper <jackson@ximian.com>
7184 * InternalWindowManager.cs: We don't set the cursor explicitly
7185 thats done via the response to NCHITTESTs.
7186 - Don't need to adjust for titlebar heights anymore, the
7187 coordinates are coming in the correct coordinates now (see peters
7191 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
7193 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
7194 being translated relative to whole window, instead of client window.
7195 That caused broken offsets on mouseclick (and caused gas for our
7196 InternalWindowManager)
7198 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
7201 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
7202 - Undo(): Added replay of cursor move on DeleteChars action; added
7203 calling Undo() again if a recorded cursor move is invalid (to
7204 ensure that some action is performed on Undo)
7205 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
7207 2006-06-16 Jackson Harper <jackson@ximian.com>
7209 * MdiClient.cs: Instead of just sizing maximized windows when
7210 there is a resize we also have to adjust the Y of minimized
7211 windows, so they stay pinned to the bottom of the mdi container.
7212 - Eliminate separate tracking of the active control, we can just
7213 get this from the controls collection.
7214 - Paint the decorations for the newly activated titlebar so we get
7216 * InternalWindowManager.cs:
7217 * ThemeWin32Classic.cs: Minimized windows get all three buttons
7218 even if they are a tool window.
7220 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
7222 * TextControl.cs (Undo): Handle non-existent cursor locations in the
7223 undo buffer, these can happen when text was deleted and the cursor
7224 was recorded first. Since we will also have a recorded cursor
7225 after the delete this is not an issue. (Fixes #78651)
7227 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
7229 * AccessibleObject.cs: Remove dependence on Control.is_selected;
7230 instead properly track control states internally (allows us to
7231 remove is_selected from Control)
7233 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7235 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
7236 whose width is not a multiple of 8.
7238 2006-06-13 Jackson Harper <jackson@ximian.com>
7240 * MdiClient.cs: Only maximize the next child if the current one
7243 2006-06-13 Chris Toshok <toshok@ximian.com>
7245 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
7246 modified. Also, guard against grid or grid_drawing being null in
7249 * DataGrid.cs: Reformat tons of getters/setters. In the
7250 DataMember setter, just call SetNewDataSource instead of
7251 duplicating some of its functionality. In SetNewDataSource, don't
7252 check ListManager for null, since the property getter creates the
7255 * DataGridTableStyle.cs: don't set TableStyle or call
7256 SetDataGridInternal on the column here, it's done in
7257 GridColumnStylesCollection.Add.
7259 * GridColumnStylesCollection.cs: fix all the explicit interface
7260 implementations to just call our methods. Nuke AddInternal() and
7261 move the body of it to Add(). Also, add a call to
7262 column.SetDataGridInternal to Add().
7264 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
7265 base()+duplicate code. Also, use the Format property instead of
7266 format to generate an Invalidate ala MS. Lastly, create the
7267 textbox here, unconditionally.
7268 (set_Format): call Invalidate.
7269 (get_TextBox): no need to call EnsureTextBox.
7270 (Commit): remove the message box.
7271 (Edit) remove the call to EnsureTextBox.
7272 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
7273 (EnterNullValue): no need to check textbox for null.
7274 (HideEditBox): no need to check textbox for null.
7275 (SetDataGridInColumn): add the textbox to the grid's controls.
7276 (EnsureTextBox): nuke.
7278 2006-06-13 Jackson Harper <jackson@ximian.com>
7280 * MdiWindowManager.cs: Hook up to the maximized menus paint event
7281 and redraw the buttons when needed. Unhook when the window is
7283 * MainMenu.cs: Add an internal Paint event, the mdi window manager
7284 needs this so that it can redraw its buttons when the menu is
7286 * InternalWindowManager.cs:
7287 * Form.cs: The method order has changed for DrawMaximizedButtons,
7288 so that it can be a PaintEventHandler.
7290 2006-06-13 Jackson Harper <jackson@ximian.com>
7292 * MdiClient.cs: When we close a maximized mdi window, the next mdi
7293 window is activated and maximized, even if it wasn't before.
7294 - When a new window is activated repaint the decorations of the
7295 old one, so that it no longer has the Active "look" (the blue
7297 * InternalWindowManager.cs: Open up CreateButtons to base classes
7298 so they can recreate the buttons on state changes.
7299 - If a window is maximized give it all three buttons
7300 * MdiWindowManager.cs: Create the titlebar buttons when the state
7301 is changed, this is needed because a toolwindow will not have all
7302 three buttons until it is maximized.
7304 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
7306 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
7309 2006-06-12 Jackson Harper <jackson@ximian.com>
7311 * KeysConverter.cs: Make sure we handle the Ctrl special case
7312 if its the only key.
7314 2006-06-12 Jackson Harper <jackson@ximian.com>
7316 * Theme.cs: Add a method to get the size of a managed window
7318 * InternalWindowManager.cs: Remove the ButtonSize property, this
7319 should be retrieved from the theme.
7320 * MdiWindowManager.cs: Get the button size from the theme
7321 * ThemeWin32Classic.cs: Make the method to get the managed window
7322 titlebar button size public.
7323 - Handle the different button sizes of maximized toolwindows
7324 (should match any maximized window).
7325 - Get the titlebar height from the theme, not the WM (which gets
7328 2006-06-12 Jackson Harper <jackson@ximian.com>
7330 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
7331 event down to the mdi window manager.
7332 - Expose some extra stuff to base classes
7333 - Make sure to end the Capture on an NC Mouse up, so that we can
7334 get double clicks properly, and the sizing doens't stick.
7335 - When doing PointToClient contain it in the workable desktop
7336 area, this prevents windows from changing size when the cursor is
7337 pulled outside of the working area while sizing.
7338 * MdiWindowManager.cs: When we get a double click maximize the
7340 - Reset the cursor after handling mode changes.
7342 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
7344 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
7345 current desktop, instead of just assuming a 0, 0 origin. This
7346 is needed for our internal window manager, to know the top
7347 margin of the desktop
7349 2006-06-12 Chris Toshok <toshok@ximian.com>
7351 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
7352 we need this to get rid of the selected background in the bool
7354 (CancelEditing): move the ConcedeFocus call to above the Abort
7355 call. Also, set is_changing to false and invalidate the row
7356 header if we were changing before.
7357 (ProcessKeyPreviewInternal): remove, since noone outside this
7358 class calls it anymore. Roll the code into ProcessKeyPreview.
7359 (EndEdit): remove the internal version.
7360 (InvalidateCurrentRowHeader): make private.
7362 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
7363 Keys.Escape handling (and with it the last call to
7364 DataGrid.EndEdit from outside the class.)
7367 2006-06-12 Chris Toshok <toshok@ximian.com>
7369 * DataGridTextBox.cs (.ctor): isedit defaults to false.
7370 (OnKeyPress): set isedit to true.
7371 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
7372 already handled by the grid.
7374 * DataGrid.cs (set_CurrentCell): more work here. it's still not
7376 (set_DataSource): SetDataSource always returns true, so stop
7377 putting it in an if statement.
7378 (EndEdit): get rid of some {}'s
7379 (ProcessGridKey): return true in case Keys.Escape.
7380 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
7381 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
7382 PositionChanged, stopped connecting to CurrentChanged.
7383 (GetDataSource): simplify this a bunch.
7384 (SetDataSource): change return type from bool to void.
7385 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
7386 to this, and make sure we don't set ListManager.Position inside
7388 (OnListManagerItemChanged): if we're passed an actual index,
7391 * CurrencyManager.cs (set_Position): don't call PullData here.
7393 2006-06-09 Jackson Harper <jackson@ximian.com>
7395 * TreeNode.cs: Recalculate the visible order before doing the
7396 Expand/Collapse Below calls, because those calls generate an
7398 - Reduce calls to the TreeView property, which is mildly expensive
7399 by using a local var.
7400 * Form.cs: Layout the MDI child windows when creating the parent
7402 - Don't use the internal constructor anymore
7403 * MdiClient.cs: use the parent form width/height (if available)
7404 when laying out the child windows, we do this because the
7405 mdiclient isn't docked yet when the initial layout is done.
7406 - Don't need an internal constructor anymore.
7408 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7410 * FileDialog.cs: handle access errors when trying to create a folder
7411 or changing to a directory. No need to initialize out parameters.
7413 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7415 * FileDialog.cs: Append a number when creating a new folder if the
7416 folder already exists (use parenthesis instead of square brackets)
7418 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7421 - Disabled registry support for windows and added better registry
7422 error checking for other systems (need to investigate why it
7423 works perfectly on my system)
7424 - If a folder already exist show an error MessageBox instead of
7425 trying to create an indexed name.
7426 - Fixed a non intentional typo.
7428 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7430 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
7432 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7434 * FileDialog.cs: When creating a new folder don't crash if the
7435 folder already exists.
7437 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7439 * FileDialog.cs: Allmost a complete rewrite.
7440 - added a "virtual" file system that handles the differences
7441 between unix and windows file systems (especially the directory
7442 structure). Moved most of the directory and file handling code
7444 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
7445 UnixFileSystem and FSEntry.
7446 - Recently used folder/directory, size, location and used file names
7447 (file name ComboBox) are now stored in the registry and get read
7448 before the dialog shows up (fixes part 6 of bug #78446).
7449 - Creation of new folders/directories is now possible (context menu
7450 or ToolBar). Added TextEntryDialog for this that fills in the gap
7451 until ListView.LabelEdit works.
7452 - Fixed cursor handling (bug #78527) and focus handling for
7454 - Various "Search in" ComboBox enhancements. The content of the
7455 dropdown listbox now almost matches ms.
7456 - Changed the behaviour when the user switches to SpecialFolder
7457 Recent to show the ListView in View.Details.
7458 - Beside using the ToolBar to change the View property of the
7459 file ListView it is now possible to use the context menu too.
7461 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7463 * ComboBox.cs: Don't create a new ObjectCollection when an item
7464 gets inserted. Just insert the item in the existing object_items
7467 2006-06-08 Jackson Harper <jackson@ximian.com>
7469 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
7470 that the treeview and root node checks are done also, this fixes a
7471 regression i caused in the unit tests.
7473 2006-06-07 Wade Berrier <wberrier@novell.com>
7475 * RichTextBox.cs: More ISO8859-1 -> unicode
7477 2006-06-07 Mike Kestner <mkestner@novell.com>
7479 * ComboBox.cs : use items to hold highlight/selection so that
7480 collection insertions don't require synchronization.
7482 2006-06-07 Jackson Harper <jackson@ximian.com>
7484 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
7485 routine. We now always keep the sized edge at the cursor instead
7486 of computing movement and adjusting rects. There is one buglet
7487 with this method though when the cursor is moved over area that
7488 the window can not expand too (such as the toolbars on the desktop).
7490 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7492 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
7493 here. Fixes crash on startup in AlbumSurfer.
7495 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
7497 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
7500 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7502 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
7503 statement to avoid calling XNextEvent which will block if another thread
7504 took the event that we were expecting. Fixes bug #78605.
7506 2006-06-07 Mike Kestner <mkestner@novell.com>
7508 * ListView.cs : isolated checkbox clicking from the selection logic.
7509 Toggle check state on item doubleclicks. Really fixes #78454 part2.
7511 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7513 * Form.cs: Check that the value passed to Form.DialogResult
7514 is a valid enum value.
7516 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7518 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
7519 Computer'. Clicking it in the network view goes to 'My Computer'.
7520 Added CIFS filesystem type. Display the mount point of filesystems.
7521 Avoid duplicate mount points (happens for me with CIFS);
7523 2006-06-06 Jackson Harper <jackson@ximian.com>
7525 * InternalWindowManager.cs: Draw the maximized windows buttons
7528 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7530 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
7531 all other dialogs. Fixes bug #78585.
7533 2006-06-06 Mike Kestner <mkestner@novell.com>
7535 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
7536 Only invalidate checkbox on checkstate changes to avoid flicker.
7537 * ListBox.cs : avoid unselect/select when clicking selected item.
7538 avoid reselection flicker for already multiselected items.
7541 2006-06-06 Jackson Harper <jackson@ximian.com>
7543 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
7544 the parent form so that the menu is removed if needed.
7546 2006-06-06 Mike Kestner <mkestner@novell.com>
7548 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
7549 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
7551 2006-06-06 Mike Kestner <mkestner@novell.com>
7553 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
7556 2006-06-06 Jackson Harper <jackson@ximian.com>
7558 * Control.cs: Use the property (instead of the field) to get the
7559 default cursor so it is instantiated correctly.
7560 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
7561 resizes so we need to manually repaint the window decorations here.
7562 - Set the titlebar button locations as soon as they are created,
7563 otherwise they are not set correctly on win32.
7565 2006-06-06 Chris Toshok <toshok@ximian.com>
7567 * CurrencyManager.cs (set_Position): call PullData before
7569 (AddNew): after calling IBindingList.AddNew, update our
7570 listposition, and call OnCurrentChanged/OnPositionChanged (without
7572 (OnCurrentChanged): remove the call to PullData from here.
7573 (OnItemChanged): remove the call to PushData from here.
7574 (OnPositionChanged): change the test from == null to != null to
7575 match the other methods.
7576 (ListChangedHandler): the grossest part of the patch. Implement
7577 this such that it passes the unit tests in CurrencyManagerTest and
7578 the output more or less matches that of MS's implementation.
7580 2006-06-06 Mike Kestner <mkestner@novell.com>
7582 * ListView.cs : only update check state on single click.
7583 * ThemeWin32Classic.cs : fix focus drawing for details view without
7584 fullrowselect. Fixes #78454.
7585 * XplatUIX11.cs : fix for double click emission.
7587 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
7589 * PropertyGridView.cs : Applied Atsushi's patch to fix
7590 font dialog bug (#78197).
7592 2006-06-05 Jackson Harper <jackson@ximian.com>
7594 * TreeNode.cs: Compute the next node for expanding/collapsing
7595 correctly. We now factor in nodes without a NextNode
7596 correctly. (Fixes somes cases in nunit-gui).
7597 * InternalWindowManager.cs: Set the bounds when updating the
7598 virtual position of a tool window.
7600 2006-06-05 Chris Toshok <toshok@ximian.com>
7602 * DataGrid.cs: rename cached_currencymgr to list_manager.
7603 (set_CurrentCell): move SetCurrentCell code here, and clean it up
7605 (CurrentRow, CurrentColumn): single accessors so we can make the
7606 cursor movement code a lot easier to understand.
7607 (CurrentRowIndex): implement this in terms of CurrentRow.
7608 (BeginEdit): clean this up a bit.
7609 (CancelEditing): sort out the is_editing/is_changing/is_adding
7611 (EndEdit): minor changes.
7612 (OnKeyDown): add a comment about a (most likely) unnecessary
7614 (OnMouseDown): cancel editing when we click on a row header. And
7615 use the CurrentRow setter, not CurrentCell.
7616 (ProcessDialogKey): directly call ProcessGridKey.
7617 (UpdateSelectionAfterCursorMove): factor out this common block of
7618 code (it's used everywhere that we move the cursor by updating row
7620 (ProcessGridKey): pretty substantial overhaul. Use the
7621 CurrentRow/CurrentColumn properties to make the code a lot more
7622 readable. Only use the CurrentCell property when we have to
7623 modify both row and column at once. Tab behavior is still broken,
7624 and Delete is untested.
7625 (Select): if we have no selected rows, set selection_start to
7627 (EditCurrentCell): rename EditCell this. It was only ever invoked
7628 with CurrentCell as the arg, so drop the arg and rename it.
7630 * DataGridColumnStyle.cs: clean up the constructors a little, and
7631 drop CommonConstructor().
7633 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
7634 actually get notified when the user hits it.
7635 (ProcessKeyMessage): *substantially* simplify this method.
7636 There's no reason (that I can see) for the textbox to be making
7637 calls into the datagrid at all. Remove all of them but the ones
7638 for Enter handling. those will take some more work.
7640 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
7641 calling HideEditBox.
7642 (HideEditBox): if we have an active textbox, render it invisible
7643 without causing a re-layout of the datagrid.
7645 2006-06-05 Mike Kestner <mkestner@novell.com>
7647 * ListView.cs : fix NRE crasher when focuseditem is cleared by
7648 collection changes by resetting it to Items[0]. Fixes #78587.
7650 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7652 * MessageBox.cs: if the height of the text is larger than the icon_size,
7653 use that. Fixes bug #78575.
7655 2006-06-05 Jackson Harper <jackson@ximian.com>
7657 * TreeView.cs: Fix line drawing when scrolling. To do this each
7658 node is basically responsible for drawing its entire horizontal
7659 area. When drawing a node it draws its parent node lines if
7661 - Adjust the clip area to the viewport rectangle
7662 - Fix Left/Right key handling to match MS. (It expand/collapses
7663 and moves to parents/first child but does not move selection to
7665 - Fix SetTop to work with new bound calculation code
7666 - When scrollbars are no longer needed we need to reset scrolling
7667 vars and recalculate the visible order so the redraw is correct
7668 * TreeNode.cs: We can't expand/collapse nodes with no children.
7670 2006-06-03 John Luke <john.luke@gmail.com>
7672 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
7673 so the colors work without dev packages
7675 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
7678 - Select: Implemented to just use activate. Seems to match MS
7679 behaviour closest. Documented to only do actual control walking
7680 based on it's parameters if in a container control so I moved
7682 - Removed selection check logic from our internal Select() method
7683 * ContainerControl.cs:
7684 - Select: Moved selection logic from Control here, since MS documents
7685 that containers obey the bool arguments. No longer calling base
7687 2006-06-02 Jackson Harper <jackson@ximian.com>
7689 * TreeView.cs: If the selected node isn't changed when we get
7690 focus update the previously selected node so that we see the
7693 2006-06-02 Mike Kestner <mkestner@novell.com>
7695 * ComboBox.cs: restructure grab and general mouse event handling.
7696 Make the composite control raise mouse events like it was a single
7697 control for leaves/enters/motion/up/down events. fix dropdown list
7698 coordinate mangling and refactor it into the scrollbar subclass to
7699 reduce code duplication. Fixes #78282 #78361 and #78457.
7701 2006-06-02 Mike Kestner <mkestner@novell.com>
7703 * ScrollBar.cs: remove Capture setting/clearing, as it happens
7704 automatically in the Control.WndProc.
7706 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7708 * FileDialog.cs: fix crash when running SharpChess, which sets the
7709 FilterIndex to 2 with only one Filter.
7711 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7713 * ToolBar.cs: add SizeSpecified property.
7714 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
7715 try to figure out our real size, otherwise fallback to what the
7718 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7720 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
7721 * Control.cs (WndProc): MS always calls the DefWndProc to pass
7724 2006-06-01 Mike Kestner <mkestner@novell.com>
7726 * ListView.cs: revamp the focus management in ListView. It still
7727 causes churn of LostFocus/GotFocus emissions on clicks, but it's
7728 better than not handling focus at all. Will revisit when pdb feels
7729 the general focus handling is solid. Fixes #78526.
7731 2006-06-01 Jackson Harper <jackson@ximian.com>
7733 * TreeView.cs: Set the default border style in the constructor.
7734 - Move painting to use OnPaintInternal instead of capturing
7735 WM_PAINT, this is the correct way of doing things
7736 - UpdateBelow shouldn't invalidate the scrollbar area
7737 - Cap the top on update below in case the node was above the top
7738 of the viewport rectangle.
7739 - ExpandBelow and Collapse below need to obey Begin/End Update.
7740 * TreeNode.cs: Make is_expanded internal so the treenode
7741 collection can change it without firing the whole event chain.
7742 * TreeNodeCollection.cs: When clearing all the child nodes make
7743 sure to recalc the visible order.
7744 - Improve algo for remove the top node
7746 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7748 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
7749 SendMessage directly calling window procedures, which in turn might
7752 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7754 * Control.cs: Don't handle WM_SETFOCUS if the same window already
7755 has focus (works around X11 sending a FocusIn after our SetFocus)
7756 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
7758 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
7760 * Mime.cs: Fix for the NET_2_0 build.
7761 NameValueCollection needs StringComparer now.
7763 2006-05-31 Chris Toshok <toshok@ximian.com>
7765 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
7766 return (via an out parameter) the starting X of the column.
7767 (UpdateVisibleColumn): track change to FromPixelToColumn.
7768 (HitTest): add a ColumnResize case here.
7769 (DrawResizeLine): new function, probably poorly named.
7771 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
7772 only need to keep one reference.
7773 (set_ListManager): same.
7774 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
7775 Also, add support for HitTestType.ColumnResize.
7776 (OnMouseMove): add column resize behavior here, and change the
7777 cursor to the correct one as we move around the datagrid.
7778 (OnMouseUp): terminate the column resize if we're resizing.
7779 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
7780 for the current cell.
7781 (ConnectListManagerEvents): use cached_currencymgr.
7782 (DisconnectListManagerEvents): fill this in, using
7784 (SetCurrentCell): remove cached_currencymgr_events handling.
7785 (SetDataMember): only call DisconnectListManagerEvents if
7786 cached_currencymgr is != null.
7787 (SetDataSource): same.
7788 (OnListManagerCurrentChanged): cached_currencymgr_events ->
7791 2006-05-31 Jackson Harper <jackson@ximian.com>
7793 * BindingManagerBase.cs: Remove somedebug code that creeped into
7795 * TreeNode.cs: We get the indent level dynamically right now, so
7796 don't track it as a member.
7797 * TreeNodeCollection.cs: Make sure all nodes added to the list
7798 have parents, treeviews/topnodes setup properly.
7799 - Don't attempt to track indent level.
7801 2006-05-30 Jackson Harper <jackson@ximian.com>
7803 * BindingContext.cs: Create the currency manager tables here.
7804 This allows us to more easily create null tables (when bad data
7805 members are used), and more easily create related currency
7807 * CurrencyManager.cs: All the table creation stuff is done by the
7808 binding context now.
7809 - Current should throw an exception if listposition is -1.
7810 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
7813 2006-05-30 Mike Kestner <mkestner@novell.com>
7815 * ListView.cs: allow reexpansion of zero-width column headers.
7818 2006-05-28 Chris Toshok <toshok@ximian.com>
7820 * CurrencyManager.cs (get_Current): after the late binding
7821 listposition = -1 fix, we need to guard against it here and return
7822 null, otherwise we raise an exception (which is swallowed
7823 elsewhere, and breaks datagrid databinding.)
7825 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7827 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
7828 than WM_SYSKEY, don't throw if get something unexpected (#78507)
7830 2006-05-26 Jackson Harper <jackson@ximian.com>
7833 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
7834 values, it's faster and it's all we care about (we don't care if
7835 the names aren't equal).
7836 * KeyboardLayouts.cs: Eliminate some dead code.
7838 * X11Keyboard.cs: Lazy init keyboard detection.
7839 - Cleanup access modifiers a little.
7841 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7843 * XplatUIX11.cs: Once again, attempting to get layout just right.
7845 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7847 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
7848 the sizes of each link section, that will result in sizes that
7849 match DrawString's layout (Fixes #78391)
7851 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
7853 * FileDialog.cs: If AddExtension property is true autocomplete the
7854 extensions in SaveFileDialog correctly. Fixes bug #78453.
7855 Set MyNetwork and MyComputer to "C:\" for windows. This should
7856 fix part 8 of bug #78446 for now.
7858 2006-05-26 Chris Toshok <toshok@ximian.com>
7860 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
7861 invalidate the current row header if we need to, but presumably
7862 we'll invalidate the row corrsponding to the bounds or
7864 (GridHScrolled): switch back to this method, as it's part of the
7866 (GridVScrolled): same.
7867 (OnMouseWheel): hack up something that more or less works. Call
7868 GridHScrolled/GridVScrolled directly, instead of duplicating much
7870 (EnsureCellVisibility): reinstate a bunch of this code, since we
7871 can't just set the scrollbar Value and expect to do all the work
7872 in the ValueChanged handler. Also, Call Update() after scrolling
7873 in one direction so the other XplatX11.ScrollWindow call has the
7874 proper stuff in the proper places.
7875 (EditCell): set is_editing to true before calling .Edit.
7877 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
7878 don't bother comparing first.
7879 (OnKeyPress): call grid.ColumnStartedEditing before calling
7880 base.OnKeyPress. this will set is_changing and invalidate the row
7881 header if necessary.
7882 (ProcessKeyMessage): for WM_CHAR messages, call
7883 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
7886 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
7887 it's done in the DataGrid.
7888 (NextState): call grid.ColumnStartedEditing, which takes care of
7889 invalidating the row header (and setting is_changing).
7891 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
7892 here. it's done in the DataGrid.
7894 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7896 * Control.cs: allow changing the cursor when the mouse position is
7897 out of bounds but Capture is set.
7898 * LinkLabel.cs: handle the case when the mouse button is pressed on the
7899 linklabel but released somewhere else.
7901 2006-05-25 Jackson Harper <jackson@ximian.com>
7903 * TreeView.cs: When we get focus if there is no selected node make
7905 - Remove some uneeded setup code from Draw.
7906 * TreeNodeCollection.cs: If the tree doesn't have a top node when
7907 a new node is inserted make the new node the top.
7909 * Timer.cs: Use Utc time so that no local time zone stuff needs to
7910 be used (should be faster).
7912 2006-05-25 Chris Toshok <toshok@ximian.com>
7914 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
7915 problem with the last commit.
7917 2006-05-25 Chris Toshok <toshok@ximian.com>
7919 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
7920 need the invalidate call here, while scrolling right-to-left via
7921 the left arrow key (i.e. moving the editing cell while scrolling).
7923 * DataGrid.cs (.ctor): remove the initialization of
7924 ctrl_pressed/shift_pressed. We no longer track them using key
7925 up/down handlers, but by using Control.ModifierKeys. Also, switch
7926 to using ValueChanged handlers on the scrollbars instead of
7927 Scrolled event handlers. This simplifies a bunch of the scrolling
7929 (GridHValueChanged): rename from GridHScrolled, and change it to
7930 work with the new event args.
7931 (GridVValueChanged): same.
7932 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
7933 (OnMouseWheel): actually scroll the datagrid. Don't change the
7935 (ProcessGridKey): correct all the keyboard navigation stuff I
7936 could find. Ctrl up/down/left/right/home/end work now.
7937 (EnsureCellVisibility): correct method name spelling. Also,
7938 simplify this a touch by not explicitly calling the
7939 ScrollToRow/ScrollToColumnInPixels methods. We just set the
7941 (OnKeyUpDG): no need for this method now.
7943 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7945 * LinkLabel.cs: display the OverrideCursor when hovering the label.
7948 2006-05-25 Chris Toshok <toshok@ximian.com>
7950 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
7953 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
7955 * Application.cs: Moved setting of is_modal and closing to before
7956 we create the control, to allow the event handlers called as a
7957 result of creation affect closing. Also removed Gonzalo's previous
7958 change to setting DialogResult, the behaviour has been moved to
7961 - ShowDialog(): Removed explicit creation of the form, let RunLoop
7963 - ShowDialog(): If no dialog result is set, we need to return Cancel
7964 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
7965 the close is cancelled
7967 2006-05-25 Jackson Harper <jackson@ximian.com>
7969 * StatusBar.cs: We only need to update the sizes of the other
7970 panels when we have auto size contents. Also we are only updating
7971 the contents of the panel, not the borders, so compensate for the
7972 border width (TODO: get this width from the theme somehow).
7973 * TreeView.cs: Scrollable is true by default
7974 - Use invalidate instead of refresh where needed
7975 - Factor the scrollable value into scrollbar updating
7976 - Update the scrollbars if the Scrollable property is altered
7977 - Update the selected node if its ImageIndex is changed
7978 - Handle null nodes in UpdateNode (mainly so we don't have to
7979 check if selected is null when updating it
7980 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
7981 are factored into the visible count
7982 - Use VisibleCount for clarity in the code
7983 - When the font is changed we need to recurse through all the
7984 nodes and invalidate their sizes
7986 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7988 * Application.cs: set the DialogResult to fixed when the main form is
7989 hidden or destroyed while being modal.
7991 2006-05-25 Miguel de Icaza <miguel@novell.com>
7993 * Theme.cs: Use Tangoified messagebox icons.
7995 (GetSizedResourceImage): Also cope with width = 0 and do not
7996 trigger a warning in that case (0 means "give me your icon from
7997 the resouce, no special size needed).
7999 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
8001 * Application.cs: Leave runloop if the the main modal form is
8002 hidden (fixes #78484)
8004 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
8006 * BindingContext.cs : reject null datasource in Contains() and
8008 * CurrencyManager.cs : check data_member validity when data_source
8009 is dataset. When it is late binding, the initial position is -1.
8011 2006-05-24 Jackson Harper <jackson@ximian.com>
8013 * TreeNodeCollection.cs: Dont't recalculate the visible order on
8014 inserted nodes that aren't visible. This changes the
8015 max_visible_order which confuses scrollbar settings.
8016 - Use the enumerator to get the prev node instead of duplicating
8018 * TreeView.cs: Use new method for setting scrollbar values
8019 - Don't set the bounds every time the scrollbar is updated
8020 - When updating below the root node use an invalidate instead of a
8021 refresh to prevent the child controls (scrollbars) from being
8022 refreshed. (UpdateBelow still needs to be reworked anyways).
8023 - Reenable SetBottom now that visible orders are set correctly,
8024 added some debug code incase we ever get bad values there again.
8025 - Set the scrollbar max to 2 less then the max value, this
8026 compensates for the max value being one above the node count, and
8027 for scrollbars adding one extra "notch".
8028 - When drawing image nodes if there is an imagelist we draw the
8029 first image in the list if the supplied image index is out of the
8030 image list's bounds.
8032 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
8034 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
8035 we receive a size change from the WM (Fixes #78503)
8037 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
8039 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
8040 rectangle (Fixes #78501)
8042 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
8045 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
8047 - Fixed MouseMove to no longer switch pressed state unless the left
8048 mouse button is pressed. Atsushi provided the original patch (#78485)
8050 2006-05-24 Jackson Harper <jackson@ximian.com>
8052 * ScrollBar.cs: New internal methods that allow us to change a
8053 couple values on the scrollbar (the most common case is maximum
8054 and large change) without getting multiple invalidates.
8056 2006-05-24 Chris Toshok <toshok@ximian.com>
8058 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
8059 (Edit): save off the original state in oldState, and set
8060 grid.is_editing to true.
8061 (OnKeyDown): abort editing if escape is pressed. also, call
8062 NextState if space is pressed.
8063 (OnMouseDown): call NextState.
8064 (NextState): factor out shared code from OnKeyDown and OnMouseDown
8065 here. Also, only invalidate the row header once (on the initial
8066 is_changing switch) to save on redraws.
8068 2006-05-24 Chris Toshok <toshok@ximian.com>
8070 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
8071 if the value in the cell is different than it was before. This
8072 keeps us from triggering a layout when we move around a datarid
8073 with a highlighted cell.
8074 (Edit): suspend layout when creating/positining the text box, and
8075 resume passing false so we don't ever actually re-layout.
8076 (ReleaseHostedControl): same.
8077 (EnsureTextBox): reformat slightly, and set WordWrap to false.
8079 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
8080 control-key sequences should go to the datagrid - remove that
8081 lock. Also, modify the conditions under which we move between
8082 cells when moving the cursor within a cell, and remove the "this"
8083 and "base" from field accesses. We weren't even consistent, given
8084 they all were in the base class.
8086 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
8088 * Binding.cs : (.ctor)
8089 An obvious NRE fix for BindingTest.CtorNullTest().
8091 2006-05-23 Chris Toshok <toshok@ximian.com>
8093 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
8094 them between lines. This fixes some quirks editing cells in the
8097 2006-05-23 Jackson Harper <jackson@ximian.com>
8099 * TreeView.cs: Use begin/end update when doing expand/collapse all
8100 so that we don't get flicker on the scrollbar.
8102 2006-05-23 Jackson Harper <jackson@ximian.com>
8104 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
8105 treenode calculations to be independant of the painting code. To
8106 do this nodes track a visible order which is calculated by the
8108 - Call new methods for expanding/collapsing nodes. These methods
8109 use scrollwindow so we don't have to update everything below the
8111 * TreeView.cs: Refactored drawing and scrolling code. We don't
8112 need to update nodes when drawing anymore or calculate scrollbar
8114 - Added new methods for expanding/collapsing nodes. These methods
8115 use ScrollWindow so as to not have to redraw all the nodes below.
8116 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
8117 we add/remove nodes or sort.
8118 - Handle removing the selected and the top node properly.
8120 2006-05-23 Chris Toshok <toshok@ximian.com>
8122 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
8123 maybe this should actually happen in the datagrid code?
8124 (EndEdit): no need to invalidate anything, given that
8125 ReleaseHostedControl causes the datagrid to relayout, which
8126 invalidates everything anyway.
8128 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
8130 (set_SelectionBackColor): call InvalidateSelection instead of
8132 (set_SelectionForeColor): same.
8133 (BeginEdit): Flesh this out a bit.
8134 (CancelEditing): only do any of this if we're editing/adding.
8136 (OnMouseDown): there's no need to cancel editing here, it's done
8138 (SetCurrentCell): only invalidate the current row header if it's a
8139 different row than the new one.
8140 (ShiftSelection): fix this to work like MS does.
8141 (ResetSelection): factor out the invalidation of selected_rows to
8142 InvalidateSelection.
8143 (SetDataSource): cancel any editing that's going on.
8145 * DataGridColumnStyle.cs
8146 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
8147 call the non-interface version.
8149 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
8150 header rectangle with the clip rectangle so we don't redraw the
8151 entire header for just a small area. Gets rid of the last flicker
8152 when horizontally scrolling.
8153 (DataGridPaintRow): same.
8155 2006-05-23 Mike Kestner <mkestner@novell.com>
8157 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
8158 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
8159 poorly placed checkbox on the MS control. Fixes Alex's unfiled
8160 Critical bug report.
8162 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
8164 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
8165 and this fixes #78493
8167 2006-05-23 Miguel de Icaza <miguel@novell.com>
8169 * Theme.cs (GetSizedResourceImage): Scale images if the proper
8172 * FileDialog.cs: Do not change the background for the side bar as
8173 it wont work nicely with the theme, and also reduces the artifacts
8174 in rendering the icons (which I want to fix too).
8176 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
8177 resources, not resgen resources.
8179 (PlatformDefaultHandler): Pull images using the new API.
8181 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
8183 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
8184 a reference to the hwnd and will not remove it unless there are
8185 no pending exposures (fixes #78341)
8186 * XplatUI.cs: Improved debug
8188 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
8190 * MenuAPI.cs : don't handle OnClick event when it was not the left
8191 button. Fixed bug #78487.
8193 2006-05-23 Mike Kestner <mkestner@novell.com>
8195 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
8196 prefer submenus to the top menu for item lookup, to avoid popping down
8199 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
8201 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
8202 Graphics.FillRectangle as the visual results are really bad (even
8203 on win). We now draw perfect arrows (and perfect shadows when the
8204 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
8205 Pen.DashPattern to draw the dots of each line.
8207 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
8209 * FileDialog.cs: Update the filename combobox when navigating through
8210 the ListView with the cursor keys. Fixes part 7 of bug #78446.
8212 2006-05-22 Mike Kestner <mkestner@novell.com>
8214 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
8217 2006-05-22 Mike Kestner <mkestner@novell.com>
8219 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
8220 requests. Fix a misspelled parameter and a copy paste exception error
8223 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
8225 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
8226 to get the same width/height (5/13) on X11 as the default font has on
8227 win32. This means that our DefaultFont emSize is smaller than the
8228 the MS SWF equivalent (even thought the width/height stays the same)
8230 2006-05-20 Jackson Harper <jackson@ximian.com>
8233 * MdiWindowManager.cs:
8234 * InternalWindowManager.cs: Make sure to use the border width from
8237 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
8239 * PrintDialog.cs: Implements printer details
8241 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
8243 * FileDialog.cs: Added focus handling for PopupButtonPanel.
8244 Fixes part 1 and 2 of bug #78446
8246 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
8248 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
8249 instead of sticking to the first ever calculated value
8251 2006-05-19 Mike Kestner <mkestner@novell.com>
8253 * ComboBox.cs: fix mouse motion selection to use MousePosition and
8254 PointToClient, since Capture is set. Fixes #78344.
8256 2006-05-19 Mike Kestner <mkestner@novell.com>
8258 * ListView.cs: match MS behavior in Details view where items are not
8259 drawn if Columns.Count == 0.
8260 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
8261 Use a separate pen to draw the check, since changing the width affects
8262 the box as well. Fixes #78454.
8264 2006-05-18 Miguel de Icaza <miguel@novell.com>
8266 * ListView.cs: ArgumentOutOfRangeException, single versions of the
8267 exception should throw the name of the invalid argument.
8269 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
8270 there are no files listed.
8272 2006-05-18 Jackson Harper <jackson@ximian.com>
8274 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
8277 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8279 * Control.cs: Brought back our old UpdateZOrder method as a private
8280 function and switched our calls from UpdateZOrder to the new one.
8281 This fixes the Paint.Net canvas disappearing bug.
8283 2006-05-18 Jackson Harper <jackson@ximian.com>
8286 * ThemeWin32Classic.cs:
8287 * InternalWindowManager.cs: Move the drawing into the theme,
8288 expose everything the theme should need from the window manager.
8290 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8292 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
8293 from the call to NativeWindow to avoid walking up the parent chain
8294 further than needed (speeds up setting cursors and avoids setting
8295 the wrong cursor if a parent has another cursor defined)
8296 * Cursor.cs: When loading an icon as cursor, MS uses the center of
8297 the icon as hotspot, not what's contained as hotspot in the icon
8298 file. This fixes the perceived drawing offset seen with Paint.Net
8300 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8303 - Store the calculated rectangle in Hwnd object and use it when
8304 setting the client size
8305 - Force Toolwindows to always be type Dock, to ensure they're on top
8307 2006-05-18 Mike Kestner <mkestner@novell.com>
8309 * ComboBox.cs: first pass at ComboBox rework. Layout is more
8310 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
8311 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
8312 Substantial refactoring to remove confusing nested classes. Coding
8313 standard and Get+Set->property refactorings. Shift to index based
8314 highlighting in ComboListBox instead of constantly using IndexOf and
8315 Items[]. Add invalidations on resize for DropDownList to fix ugliness
8316 in FileDialog growth. Draw borders manually since Simple mode needs
8317 to look like two independent controls. Make listbox border
8318 conditional to DropDownStyle. Improved OwnerDraw support.
8320 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
8322 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
8323 Don't set the disposed graphics to null, so we can throw the "right"
8324 exception if the graphics is reused later (added a flag to avoid
8325 double disposing). Some behaviours are different under 2.0 and are
8326 filled under bug #78448.
8328 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8330 * Control.cs: When double-buffering is enabled, we need to reset
8331 our graphics context between paint calls. Otherwise, any
8332 transformations and other alterations on the context will
8333 become cumulative (#77734)
8335 2006-05-18 Mike Kestner <mkestner@novell.com>
8337 * ListView.cs: do focused item selection like MS on clicks.
8338 Rework focus handling for ItemControl so LostFocus invalidates as
8340 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
8341 the ListView ItemControl has focus.
8343 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
8345 * XplatUIX11.cs: If client_window ends up being width or height zero
8346 due to border settings, move it off window inside whole_window (#78433)
8348 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
8350 * Mime.cs: Shrink the mime file cache correctly.
8352 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
8354 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
8356 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8358 * XplatUIX11.cs (AddExpose): More sanity checks
8360 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8363 - AddExpose: Don't add expose ranges outside the size of our
8365 - Cast opacity values to Int32 to avoid crashes with certain
8367 - Added disabled code paths that protect against illegal cross-
8368 thread painting (Developers.exe)
8370 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8372 * ProgressBar.cs: Invalidate the control when it's resized
8373 since block size is based on control size. (#78388)
8375 2006-05-16 Miguel de Icaza <miguel@novell.com>
8377 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
8378 of setting the incoming argument to the "reset" value, we set the
8379 this.datamember to string.empty (before we were invalidating the
8384 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8386 * Form.cs: Only apply transparency settings after the form
8387 is created. (Fixes #77800)
8389 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8391 * ApplicationContext.cs: Grab the HandleDestroyed event so
8392 we know when to fire OnMainFormClosed
8394 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8396 * Application.cs: Introduced sub-class to allow tracking of
8397 threads and centralized triggering of the event mess for
8398 ThreadExit, AppExit, etc.. (#76156)
8400 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
8403 - Do not return a null icon index value for a mime subclass.
8404 Instead try the main mime type class too.
8405 - Seems that some newer distributions don't have a link to some
8406 gnome default icons anymore. So check the default gnome dir too.
8409 2006-05-16 Jackson Harper <jackson@ximian.com>
8411 * MdiClient.cs: Don't paint the parent background image if we have
8412 our own background image.
8414 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8417 - PerformLayout: Do not shrink space filled by DockStyle.Fill
8418 controls, all filled controls are supposed to overlap (#78080)
8419 - UpdateZOrder is supposed to update the control's z-order in the
8420 parent's z-order chain. Fixed to behave like that
8421 - BringToFront: Removed obsolete code
8422 - SendToBack: Simplyfied
8423 - SetChildIndex: Trigger layout calculations when Z-order changes
8424 since layout is done by z-order
8426 2006-05-16 Chris Toshok <toshok@ximian.com>
8428 [ fixes bug #78410 ]
8429 * DataGrid.cs (set_AlternatingBackColor): use
8430 grid_drawing.InvalidateCells instead of Refresh().
8431 (set_BackColor): call grid_drawing.InvalidateCells.
8432 (set_BackgroundColor): use Invalidate instead of Refresh.
8434 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
8435 invalidate the cell area.
8437 2006-05-15 Chris Toshok <toshok@ximian.com>
8439 [ fixes bug #78011 ]
8440 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
8441 on to DataGridPaintRow.
8442 (DataGridPaintRow): take a clip argument, and only draw the cells
8443 which intersect it. same with the not_usedarea.
8445 * Theme.cs (DataGridPaintRow) add @clip parameter.
8447 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
8448 XplatUI.ScrollWindow.
8449 (ScrollToRow): same.
8451 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
8452 with last column which was causing a gray swath to appear with the
8453 XplatUI.ScrollWindow code.
8455 2006-05-15 Chris Toshok <toshok@ximian.com>
8457 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
8458 use XplatUI.ScrollWindow.
8459 (VerticalScrollEvent): use XplatUI.ScrollWindow.
8461 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8463 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
8465 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8467 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
8468 file since there are no equivalent X11 cursors
8470 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
8472 * MonthCalendar.cs : DateTimePicker should reflect selected date
8473 on mouse*up*, not mouse*down*. Fixed originally reported part of
8476 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
8478 * TabControl.cs : When argument index is equal or more than tab
8479 count, just ignore. Fixed bug #78395.
8481 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8483 * Control.cs: Dispose all child controls when control is diposed (#78394)
8485 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8487 * ColorDialog.cs: Finally it is possible to select the color with
8490 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8492 * PrintDialog.cs: Fix typo
8494 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8496 * PrintDialog.cs: PrintDialog is not resizable
8497 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
8498 color. Made some ToolBar drawing methods protected virtual.
8500 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
8502 * PrintDialog.cs: Implementation of the PrintDialog
8504 2006-05-12 Chris Toshok <toshok@ximian.com>
8506 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
8507 thumb, instead use MoveThumb. This has the side effect of making
8508 most of the other thumb moving machinery use MoveThumb as well.
8509 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
8510 need to actually invalidate the rectangle where the new thumb will
8512 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
8513 We force an Update() after, so it's not as fast as it could be,
8514 but at least there's zero flicker and no droppings.
8515 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
8516 (UpdateThumbPos): add another argument (dirty), which says whether
8517 or not to calculate/add dirty regions which we later invalidate.
8518 For cases where we know we're going to use MoveThumb, we pass
8519 false for this. Otherwise, pass true.
8521 2006-05-12 Jackson Harper <jackson@ximian.com>
8523 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
8526 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
8528 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
8529 and GetClipRegion methods and UserClipWontExposeParent property.
8530 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
8531 overriding UserClipWontExposeParent property, setting to false, since
8532 Win32 handles the required expose messages to draw our clipped parent
8534 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
8535 PaintEventStart to set the user clip region if set.
8537 - Now internally tracking the Region for the control since we need to
8538 store it if the handle is not yet created and only set it when it
8539 becomes created. Before setting the region forced handle creation
8540 - Added code to draw the parents underneath a user-clipped region
8541 * Hwnd.cs: Added UserClip property
8543 2006-05-12 Chris Toshok <toshok@ximian.com>
8545 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
8546 (set_Maximum): same.
8547 (set_Minimum): same.
8548 (set_SmallChange): same.
8549 (OnMouseUpSB): remove the call to refresh when releasing the
8550 thumb. We shouldn't need it.
8552 2006-05-12 Miguel de Icaza <miguel@novell.com>
8554 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
8555 AutoSize set to None, we do not need to relayout everything, we
8556 just need to invalidate the current region.
8558 (Draw): Do not draw the entire ClientArea, just redraw the
8559 clip area being passed.
8561 * MdiClient.cs: Make MdiClient constructor with the Form argument
8564 2006-05-12 Jackson Harper <jackson@ximian.com>
8566 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
8567 parents background image, but strangely not their own.
8568 - (DrawStatusBarPanel): Take into account horizontal alignment
8569 when drawing the strings and icons.
8571 2006-05-12 Mike Kestner <mkestner@novell.com>
8573 * ListBox.cs: avoid invalidations for focus when the collection is
8576 2006-05-12 Chris Toshok <toshok@ximian.com>
8578 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
8579 invalidate the entire thumb area. Call InvalidateDirty which
8580 limits the redraw to the thumb itself and surrounding pixels.
8582 * XplatUIX11.cs (ScrollWindow): optimize copying.
8584 2006-05-12 Chris Toshok <toshok@ximian.com>
8586 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
8587 Figure out the positioning/layout in a single pass instead of
8588 multiple recursive invocations. Speeds up the initial display of
8589 the data grid. Also, make many things private that were
8590 originally public but unused outside this class.
8592 2006-05-11 Jackson Harper <jackson@ximian.com>
8594 * MdiClient.cs: Improved layout code.
8596 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
8598 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
8601 2006-05-11 Chris Toshok <toshok@ximian.com>
8603 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
8604 union of that will always be {0,0,width,height}.
8606 2006-05-11 Jackson Harper <jackson@ximian.com>
8608 * Form.cs: Match MS's DefaultSize for forms (they must have
8609 changed the size in sp2).
8611 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8613 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
8615 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8617 * TextControl.cs : Fixed bug #78109. This incorrect position
8618 comparison caused crash on automatic line split.
8619 * TextBoxBase.cs : reduce duplicate code.
8621 2006-05-10 Jackson Harper <jackson@ximian.com>
8623 * MdiClient.cs: Active form is only sent to the back when using
8624 the Next form functionality, when a form is clicked the current
8625 active shouldn't be sent to the back.
8626 - Layout the mdi windows when the container is first made visible.
8627 * Form.cs: Give the MdiClient a ref to the containing form when we
8630 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8632 * LinkLabel.cs : link_font could be uninitialized, so populate one
8633 before actual use. Fixed bug #78340.
8635 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8637 * XplatUIX11.cs : clipboard format native value is IntPtr.
8640 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8643 - Instead of showing context menus directly we send WM_CONTEXTMENU,
8644 which is passed up the parent chain by DefWndProc
8645 - We now handle WM_CONTEXTMENU to display any menu, or pass it
8646 to DefWndProc (#77956)
8647 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
8649 2006-05-10 Jackson Harper <jackson@ximian.com>
8651 * MdiClient.cs: We need to remove the controls from the mdi
8652 collection, when we close the window.
8653 * MdiWindowManager.cs: Special handling of closing mdi windows.
8654 * InternalWindowManager.cs: Make the close method virtual so the
8655 mdi window manager can handle it specially.
8657 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
8660 - Recalculate grid when the data source has changed
8661 - Matches styles provided by user from all data sources types
8662 * DataGridTableStyle.cs: For columns that provided by the user set the
8663 with the preferred value is there was unassigned.
8664 * CurrencyManager.cs: throw OnItemChanged event
8666 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8668 * PictureBox.cs: Don't animate until handle is created. Start animation
8669 when handle is created.
8671 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8673 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
8675 * XEventQueue.cs: We don't need to provide the extra info
8677 2006-05-10 Jackson Harper <jackson@ximian.com>
8679 * MdiClient.cs: If the mdi clients parent form has a background
8680 image set, we draw that background image for the mdi area's
8683 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8685 * TextBoxBase.cs: Set IBeam cursor (#78347)
8687 2006-05-10 Mike Kestner <mkestner@novell.com>
8689 * ToolBar.cs: fix some text padding issues with ButtonSize
8690 calculation. Update the default size to match MS documentation.
8691 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
8692 button size. Fixes #78296.
8694 2006-05-10 Mike Kestner <mkestner@novell.com>
8696 * ListBox.cs: use is_visible for scrollbar positioning in case the
8697 control isn't on screen yet. Fix off by one with Right vs Width
8698 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
8700 2006-05-10 Jackson Harper <jackson@ximian.com>
8702 * X11Dnd.cs: Drop to a control with another control on top of it.
8703 * ToolBar.cs: Work on a copy of the buttons list, so that it can
8704 be modified in click handlers. TODO: Look for similar problems in
8707 2006-05-09 Jackson Harper <jackson@ximian.com>
8709 * Form.cs: Window managers need the old window state when setting
8711 * InternalWindowManager.cs: Allow the base mdi window manager to
8712 handle more of the MDI only stuff (like maximize buttons).
8713 * MdiWindowManager.cs: Fix some snafus in changing the window
8714 state. Add all the menu functionality, for both popup and
8716 * MdiClient.cs: When a new form is selected the currently
8717 activated form is sent to the back, this matches MS.
8718 - Implement a new method to activate the next mdi child window.
8720 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8723 - Added new InternalCapture method to allow controls to prevent
8724 the capture behaviour on the click handlers
8725 - Switched to use InternalCapture
8727 - Using InternalCapture to prevent mouse captures from being released
8728 on mouse button release (Fixes #78100)
8729 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
8730 returns Form borders if a caption is present. (Fixes #78310)
8732 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8734 * TreeNode.cs: Changed serialization .ctor to not require every field
8735 to be present. (#78265)
8736 * OwnerDrawPropertyBag.cs: Added serialization .ctor
8738 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
8740 * MimeIcon.cs: for is faster than foreach for strings.
8742 2006-05-05 Mike Kestner <mkestner@novell.com>
8744 * CheckedListBox.cs: update check handling code to not use selected.
8745 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
8746 behavior for visual feedback, motion response, shift/ctrl handling,
8747 and properly deal with all 4 selection modes. Updates to bounds
8748 handling logic. Add scroll wheel support. [Fixes #77842]
8750 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8753 - Moved adding of Implicit controls into .ctor. That way, subsequent
8754 creation of the controls will not cause them to think they are
8755 toplevel windows (fixes #78200 header problem)
8756 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
8757 - Switched visibility setting of header control to use internal field
8758 to avoid triggering handle creation
8759 - Now checking if handle is created before causing a refresh when items
8760 are added (This makes us now match handle creation time with MS)
8761 * Splitter.cs: Removed loading of private splitter cursor, switched to
8762 Cursors version now that that is loading the right ones
8763 * Cursors.cs: Load proper splitter cursors from resources
8764 * Cursor.cs: Added second method of loading resource cursors for the
8765 VS.Net users amongst us
8767 2006-05-05 Mike Kestner <mkestner@novell.com>
8769 * ListView.cs: give header_control a minimum size based on the
8772 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8774 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
8775 window seems to do that with metacity, so set that type. (#78120)
8777 2006-05-05 Mike Kestner <mkestner@novell.com>
8779 * ListViewItem.cs: fix Details mode checkbox layout bug.
8780 * ThemeWin32Classic.cs: draw a ListView column header for unused space
8781 at the end of the header, if it exists. [Fixes for #78200]
8783 2006-05-04 Jackson Harper <jackson@ximian.com>
8785 * MdiClient.cs: Add a helper property to get the container form.
8786 * MdiWindowManager.cs: We have to make sure to use the menu origin
8787 when drawing the icons and buttons, this fixes maximized window
8788 icons/buttons on win32.
8789 * InternalWindowManager.cs: Reset the restore captions when a
8790 window goes from Maximized to Minimized and vice versa. Move the
8791 DrawMaximizedButtons into the MdiWindowManager source, tool
8792 windows can't be maximized. NOTE: This could use a little
8793 refactoring if time ever permits.
8795 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8797 * TextBox.cs: Add MWFCategoryAttributes
8798 * TextBoxBase.cs: Add MWFCategoryAttributes
8799 * Form.cs: Add MWFCategoryAttributes
8801 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8803 * Control.cs: Add MWFCategoryAttributes
8804 * ScrollableControl.cs: Add MWFCategoryAttributes
8806 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
8808 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
8809 Divider is true. Fix a little glitch in PropertyToolBar
8812 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
8815 - Dispose: Call base.Dispose, this causes the disposed event
8816 to be fired (and probably other, more important stuff)
8817 - SetVisibleCore: Set is_visible to true after creating the
8818 window so that the window still gets created invisible (if
8819 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
8820 to generate a WM_ACTIVE message
8821 * Form.cs: Call Dispose when we want to destroy the window, instead of
8822 just destroying the handle (Dispose will do that for us)
8824 - RootWindow also needs a queue, so we can properly process the
8825 property change events from RootWindow (like Activate)
8826 - Generatic synthetic WM_ACTIVE message when the active window is
8829 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8831 * LinkLabel.cs: Trigger a recalc of our label dimensions when
8834 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8836 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
8837 for determining width and height (image might not be assigned if
8838 we're drawing an imagelist)
8840 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8842 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
8843 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
8845 * Theme.cs: No longer returns hardcoded menu height, instead calls
8847 * Form.cs (OnLoad): Scaling happens before triggering Load events
8850 2006-05-01 Mike Kestner <mkestner@novell.com>
8852 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
8854 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8856 * TextBoxBase.cs: Removed Fixme
8857 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
8859 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8862 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
8863 the rectangle relative to the parent, considering borders. We
8864 don't really want that.
8865 - ScrollWindow: Fixed warning to be more understandable
8866 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
8867 scrollbars and scroll only the visible area
8868 * RichTextBox.cs: Removed debug output
8870 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8872 * NumericUpDown.cs (Text): Just use base
8873 * UpDownBase.cs: Ensure txtView is created before using it
8875 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8877 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
8878 casting to IntPtr to avoid 64bit overflow errors
8880 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8883 - AllowDrop: Don't force handle creation.
8884 - CreateHandle: Added call to tell driver if we're allowed to drop
8886 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8888 * FileDialog.cs: Remember the last directory not only for the
8889 current instance but also for new FileDialog instances.
8891 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8893 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
8894 broke sending async messages
8896 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8899 - ScrollWindow: Fixed method. We finally generate expose events again
8900 for scrolled areas. This was causing 'garbage' when scrolling
8901 textbox and other controls that used ScrollWindow
8902 - Switched from using the regular queue for paint events to the MS
8903 model of 'generating' paint events when the queue is empty.
8904 We use the new XQueueEvent.Paint subclass to store which windows
8906 - AddExpose now takes the x/y/width/height of the exposed area
8907 and inserts the window into the paint queue if not already there
8908 - InvalidateWholeWindow: Switched to use new AddExpose method
8909 - UpdateMessageQueue: Added which queue to monitor for paint events
8910 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
8911 the unlikely case nothing above handles it. We reset the expose
8912 pending states to get them off the queue.
8913 - GetMessage: Now pulls a paint event if no other events are in the
8915 - Invalidate: Switched to new AddExpose method
8916 - PeekMessage: Updated to understand pending paint events
8917 - UpdateWindow: Fixed logic bug. We were only updating if the window
8918 didn't need updating. Also switched to sending WM_PAINT directly,
8920 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
8921 and random access Remove(). The random access is needed to handle
8922 UpdateWindow() where a WM_PAINT is sent directly without accessing
8924 * ScrollBar.cs: Added Update() calls to cause immediate updates to
8925 allow for better feedback when scrolling. Scrollbars are small and
8926 the immediate update should make it 'feel' more responsive without
8927 slowing things down. ScrollBar still needs it's invaliate logic
8928 updated to not always invalidate the whole bar on certain changes.
8930 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8933 (BackColor): if the control does not support a transparent background,
8934 return the default backcolor when the parent backcolor is transparent.
8936 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
8938 * Application.cs: Updated to new StartLoop/GetMessage API
8939 * RichTextBox.cs: Provide some output on RTF parsing errors
8940 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
8941 new queue_id argument to GetMessage and PeekMessage to allow faster
8942 handling of per-thread queues in drivers.
8943 * Hwnd.cs: Added Queue tracking and property
8944 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
8945 * XEventQueue.cs: Added thread trackingA
8946 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
8948 - Implemented new per-thread queue
8949 - GetMessage: Fixed return/break behaviour on several cases. We were
8950 returning stale messages in some cases, instead of just processing
8953 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8955 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
8957 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
8959 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
8960 fixed off-by-one comparisons between Width/Height and Right/Bottom.
8962 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8964 * PropertyGridView.cs: Fix drop down width.
8966 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8968 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
8969 a mess in DrawToolBar, so I removed one of them.
8971 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8973 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
8974 needed (clip). Otherwise we get artifacts.
8976 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8978 * FixedSizeTextBox.cs: Added constructor to allow specifying which
8980 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
8981 and switched FixedSizeTextBox to only be fixed vertical (#78116)
8982 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
8983 if it matches the scale base font (avoids unneeded scaling)
8985 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
8987 * X11DesktopColors.cs: One gtk_init_check should be enough
8989 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8991 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
8994 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8997 - Generate OnTextChanged for Backspace even if we're only deleting
8998 the current selection
8999 - When setting the Text property, only select all text if the
9000 control does not have focus when it is being set. Otherwise
9001 just place the cursor at the beginning of the control
9003 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
9005 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
9006 Added a little helper to draw PropertyGrid ToolBar with a different
9007 border and a different BackColor.
9008 * PropertyGrid.cs: Some background parts didn't get painted with the
9009 correct background color. Added a class that helps us to draw the
9010 correct border for PropertyGridView and a class that helps us to
9011 draw ToolBars with a different backcolor
9012 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
9014 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
9016 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
9017 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
9019 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
9021 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
9022 into the palette entries. Also, since we're working on a copy
9023 we needed to copy the palette back onto the bitmap.
9024 * Cursor.cs: Same fix as XplatUIWin32.cs.
9026 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
9028 * ImageListStreamer.cs: Need to read the var (or we're off)
9030 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
9032 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
9033 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
9034 TextBoxBase.cs: Unused var fixes
9035 * AxHost.cs: Small 2.0 fix
9036 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
9037 as it seems that is what at least Metacity expects. This will make
9038 icons show up on 64bit platforms. We still have some 64bit size
9039 issues, though, since the startup app window size still won't match.
9041 2006-04-25 Mike Kestner <mkestner@novell.com>
9043 * *.cs: cleanup newly reported exception var unused warnings.
9045 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
9047 * ThemeWin32Classic.cs: Button image alignment now matches exactly
9050 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
9052 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
9053 image. The image position is always the same, no matter if the
9054 button is pressed or not.
9056 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
9058 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
9059 selection and set the correct filename for SaveFileDialog.
9060 Patch by Emery Conrad.
9062 2006-04-24 Mike Kestner <mkestner@novell.com>
9064 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
9065 check for item.X outside the ClientRect instead of item.Y. Fixes
9068 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9070 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
9071 trust that value blindly and do some sanity check. Fixes bug #77814.
9073 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9075 * ImageListStreamer.cs: save the mask as a 1bpp image.
9077 2006-04-21 Mike Kestner <mkestner@novell.com>
9079 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
9080 pass Checked and Indeterminate to the Theme Engine. Improve
9081 encapsulation with ListBox.
9082 * ListBox.cs: Keep a StringFormat instead of calculating it every item
9083 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
9084 nested types. Move all CheckState functionality to CheckedListBox.
9085 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
9086 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
9087 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
9088 single base list. Fix scrollbar sizing and placement to mirror MS.
9089 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
9091 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
9092 for CheckedListBox by using new DrawItemState info. Center the
9093 checkboxes on the items. Use new StringFormat property.
9095 2006-04-18 Jackson Harper <jackson@ximian.com>
9097 * Form.cs: MdiChildren don't do default locations the same way as
9098 regular forms. This prevents a crash when trying to position the
9101 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
9103 * PropertyGridTextBox.cs: Formatting, copyright
9104 * PropertiesTab.cs: Formatting
9105 * PropertyGrid.cs: Formatting
9106 * PropertyGridView.cs: Formatting, fix drop down, enabled double
9107 click toggling of values
9109 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
9111 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
9112 * Control.cs (.ctor): verify_thread_handle is static, don't reset
9113 every time a control is created
9114 * Application.cs: Removed obsolete EnableRTLMirroring method
9116 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
9118 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
9119 SelectedIndex to -1. Fixes bug #78121.
9121 2006-04-17 Jackson Harper <jackson@ximian.com>
9123 * Binding.cs: Handle null values for Current and BindingContext.
9124 This occurs when binding is a little delayed.
9125 * CurrencyManager.cs: return null for Current when there are no
9127 - Hookup to the listchanged event on the DataView and update
9128 bindings when the list is changed. This fixes late binding of
9131 2006-04-17 Jackson Harper <jackson@ximian.com>
9134 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
9137 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
9139 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
9141 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
9142 with the correct ButtonState
9144 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
9146 * XplatUIX11.cs: Improved distinguishing between window types to
9147 tell the WM a type closer to what the app wants (Fixes #78107)
9149 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
9151 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
9154 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
9156 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
9157 drawing code to reflect the size grip changes
9159 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9161 * ImageListStreamer.cs: fix handling of the mask that follows the main
9162 bitmap when deserializing and serialize it properly. The generated mask
9163 should better be a 1bpp image, but I'll do that later.
9165 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
9167 * FileDialog.cs: Show something in the DirComboBox on *nix if the
9168 path doesn't fit into some of our Current.Places
9170 2006-04-13 Jackson Harper <jackson@ximian.com>
9172 * ComboBox.cs: Use borders instead of drawing our own decorations,
9173 try to obey correct rules for heights.
9176 * ThemeClearLooks.cs:
9177 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
9178 this is now handled by borders.
9179 - Remove unused DrawListBoxDecorationSize method.
9181 2006-04-13 Mike Kestner <mkestner@novell.com>
9183 * MenuAPI.cs: null guarding for the disbled click check fixes crash
9186 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
9188 * ThemeWin32Classic.cs:
9189 - Fixed CPDrawStringDisabled
9190 - Corrected drawing of disabled menu items
9191 - Fixed drawing of disabled radio buttons (bug #78095)
9192 - Draw check in a disabled CheckBox with color ControlDark
9194 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9196 * Form.cs: Use the provided width when calculating the menu size;
9197 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
9198 and ClientSize.Width won't be updated yet
9199 * Application.cs: Use Visible instead of Show() to make form visible,
9200 this way we create the handle later and menusize is considered
9202 2006-04-12 Mike Kestner <mkestner@novell.com>
9204 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
9207 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9209 * TextBox.cs: Implemented context menu
9211 2006-04-12 Mike Kestner <mkestner@novell.com>
9213 * ListView.cs: implement box selection. fixes #77838.
9214 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
9216 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9218 * XplatUIX11.cs: Added setting of window type when transient window
9219 is created (metacity would move it otherwise)
9220 * X11Structs.cs: Added WINDOW_TYPE atoms
9221 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
9222 background (the control is Opaque but still wants transparent
9225 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9227 * Control.cs: Added OnPaintBackgroundInternal to allow controls
9228 that set Opaque but don't mean it (like all ButtonBase-derived
9229 controls) to still draw their background
9230 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
9233 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9235 * Control.cs (PaintControlBackground): Set the graphics object
9236 on our PaintEvent to null to prevent it from being disposed
9237 when the PaintEvent gets disposed
9239 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
9241 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
9242 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
9244 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9247 - Added transparency check to BackColor property. Transparent
9248 backgrounds are only allowed if the control styles permit it
9249 - Added recursive painting of parent control background and
9250 foreground if a control with a transparent backcolor is drawn
9251 (Thanks to Tim Ringenback for providing his 'hack' as a base
9252 for this patch) Fixes #77985 and #78026.
9253 - Added Opaque style check before calling OnPaintBackground, no
9254 need to draw the background if the control is opaque
9255 - Removed ControlAccessibleObject owner variable (inherited from
9256 base, no need to define again)
9257 - Added some documentation links explaining the drawing events
9260 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9262 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
9263 that the affected control is the located at the left border of our
9264 parent (Fixes #77936)
9266 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9268 * TextBoxBase.cs: When rendering disabled or readonly controls,
9269 draw the background with 'Control' instead of 'Window' color as
9270 long as the user hasn't specifically set a color
9272 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9274 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
9275 since that won't be updated if the user types text (only if it's
9276 programatically set)
9278 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9280 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
9281 layout changes do to app-triggered resizes will have the proper
9282 display rectangle for layout
9284 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
9286 * ThemeWin32Classic.cs:
9287 - Make use of the SystemBrushes and SystemPens wherever possible
9288 - Corrected some highlight colors
9289 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
9291 * Theme.cs: Added Empty field to CPColor struct
9293 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9295 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
9296 is displayed when calculating the display rectangle. Thanks to Mike
9297 for teaching me the err of my ways.
9299 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
9301 * ScrollableControl.cs:
9302 - Rewrote DisplayRectangle code, now returning the proper x/y coords
9303 (instead of 0,0) and we now return the real width/height instead of
9304 just the clientrectangle, adjusted for padding. The rectangle is
9305 now cached and created by the new CalculateDisplayRectangle method.
9306 - Created new CalculateDisplayRectange method, which basically does
9307 what get_DisplayRectangle() did originally, but now using the
9308 right edge instead of DisplayRectangle to determine the size of
9310 - get_Canvas(): Fixed it to properly calculate canvas for
9311 right/bottom controls which seem to be placed to the right/bottom
9312 of any controls that have a fixed location
9313 - Removed TODO that's taken care of
9314 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
9315 and SetDisplayRectLocation according to new MSDN2 docs
9316 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
9317 event when that is called, this is added for compatibility
9318 - ScrollControlIntoView(): Implemented.
9319 - Switched scrollbars to be implicit, they shouldn't be selectable
9320 * ContainerControl: Now that ScrollControlIntoView is implemented, we
9321 call it when the active control is set/changed
9322 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
9323 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
9324 implicit_control variable (used for native Win32 message generation)
9325 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
9326 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
9327 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
9328 * XplatUIStructs.cs: Added ScrollBarCommands enum
9330 2006-04-10 Jackson Harper <jackson@ximian.com>
9333 * CheckedListBox.cs:
9340 * PrintPreviewControl.cs:
9346 * UpDownBase.cs: Fixup base event overrides.
9348 2006-04-06 Mike Kestner <mkestner@novell.com>
9350 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
9351 all user-initiated value changes to min <= value <= max-thumbsz+1.
9352 (set_Value): check for vert/horiz when calculating new thumb position.
9353 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
9355 (OnMouseMoveSB): refactor the thumb dragging code and refine
9356 invalidation logic to reduce flicker.
9357 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
9358 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
9359 (UpdateThumbPosition): small code readability cleanup
9361 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
9363 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
9366 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
9368 * ThemeNice.cs: Use a better graphics effect when a button is pressed
9370 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
9372 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
9373 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
9374 This dramatically reduces the number of Pen.Dispose calls.
9375 Where possible call ResPool methods only once instead of calling it
9376 over and over again (for example for the same color).
9378 2006-04-06 Mike Kestner <mkestner@novell.com>
9380 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
9381 Also remove an unused private field on the collection. Fixes #77972.
9383 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
9385 * ThemeNice.cs: Added ToolBar drawing code
9387 2006-04-06 Mike Kestner <mkestner@novell.com>
9389 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
9390 I'm assuming that means we need to look up the toplevel for the
9391 provided control. Fixes the crash trace in #77911 but exposes another
9392 crash in some strange reflection usage in NDocGui.
9394 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
9396 * ThemeNice.cs: Gave it a little silver touch and added Images
9398 * FontDialog.cs: FontDialog is not resizable
9399 * FileDialg.cs: Added SizeGripStyle.Show
9401 2006-04-05 Jackson Harper <jackson@ximian.com>
9403 * KeyboardLayouts.cs: Remove warning.
9405 2006-04-05 Jackson Harper <jackson@ximian.com>
9407 * Control.cs: Enable OnPaintInternal so we can use it for drawing
9408 all of our controls instead of Paint +=.
9423 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
9424 use OnPaintInternal. Remove Width/Height and Visible checks in
9425 paint handler, this is done at a higher level now.
9426 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
9427 * PaintEventArgs.cs: Add a handled flag so controls that don't
9428 want anymore painting after OnPaintInternal can make sure OnPaint
9431 2006-04-05 Mike Kestner <mkestner@novell.com>
9433 * Form.cs: fix the menu WndProc hacks to respect the native enabled
9434 state of the form, so that we don't process events when Modal dialogs
9435 are up. Fixes #77922.
9437 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
9439 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
9442 2006-04-05 Mike Kestner <mkestner@novell.com>
9444 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
9446 2006-04-05 Mike Kestner <mkestner@novell.com>
9448 * ListView.cs (HeaderMouseMove): null guarding for the over column
9449 when setting up the drag_to_index. Fixes #78015.
9451 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
9453 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
9454 in the taskbar. Transient windows seem to accomplish that.
9456 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
9459 - Re-enabled CreateParams.X/Y code for FormStartPosition
9460 - Added code for manual placement when creating the Control
9461 - Incomplete patch to treat MDI forms differently when
9462 setting the ClientSizeCore. (Still need to figure out handling
9465 - When we're explicitly setting the X/Y position of a non-Child
9466 window, let the WM know. Metacity really wants this.
9468 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9470 * ThemeNice.cs: Added CPDrawButton
9472 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9474 * ThemeNice.cs: Changed the color for focused buttons and activated
9475 the arrows for small scroll buttons.
9477 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9479 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
9480 anymore. Changed some method modifiers to protected (virtual)
9481 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
9483 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
9484 Updated drawing of menus, buttons and progressbars; added
9487 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9489 * ImageListStreamer.cs: implemented serialization/deserialization
9492 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
9494 * ThemeWin32Classic.cs:
9495 - Removed all the DrawFrameControl stuff; CPDrawButton,
9496 CPDrawCheckBox and CPDrawRadioButton are now handled directly
9498 - Updated and corrected the drawing code of CPDrawButton,
9499 CPDrawCheckBox and CPDrawRadioButton to better match ms
9500 - Updated theme checkbox and radiobutton code to use the CP*
9503 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9505 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
9508 2006-03-31 Jackson Harper <jackson@ximian.com>
9510 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
9512 * UpDownBase.cs: Don't CreateGraphics manually, use a
9513 Refresh. Ideally we would invalidate the correct areas here.
9515 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9518 - We now track the mapping state of windows. If a window (or
9519 one of it's parents) is not mapped we no longer permit
9520 WM_PAINT messages to be generated since we'd otherwise get
9521 lots of BadMatch X errors. Jackson did all the work figuring
9523 - Destroying the caret if the window it's contained in is
9524 destroyed. Can't use regular DestroyCaret method since it
9525 might fall into a drawing function (trying to remove the
9526 caret) and with that generate new BadMatch errors. Again,
9527 Jackson tracked this down.
9528 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
9529 make sure we send the messages to all windows. (The old code
9530 would send the WM_DESTROY to the window, and then all child
9531 windows would be 'gone' because the WM_DESTROY handle lookup
9532 would no longer find the destroyed window)
9533 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
9534 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
9536 2006-03-31 Jackson Harper <jackson@ximian.com>
9538 * ScrollableControl.cs: Dont recalc if we are not visible.
9540 2006-03-31 Mike Kestner <mkestner@novell.com>
9542 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
9543 the visibility branch.
9545 2006-03-31 Jackson Harper <jackson@ximian.com>
9547 * ScrollBar.cs: Cap values when incrementing/decrementing.
9549 2006-03-31 Mike Kestner <mkestner@novell.com>
9551 * MenuAPI.cs: setup menu.tracker for popup/context menus.
9552 * ToolTip.cs: guard against timer expirations with no active control.
9553 Not sure why it happened.
9555 2006-03-31 Mike Kestner <mkestner@novell.com>
9557 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
9559 * ToolTip.cs: Position the tooltip based on where the cursor is at
9560 popup time, not at MouseEnter time. Add a Down state so that we don't
9561 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
9562 positioning offset. Lookup DisplaySize at positioning time, since it
9563 can theoretically change during invocation.
9564 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
9565 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
9567 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9569 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
9570 Fixes behaviour when the Text property of the box is String.Empty
9572 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9574 * XplatUIX11.cs: Only send mouseleave for our client windows, not
9575 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
9578 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9580 * FileDialog.cs: Visual enhancement for the popup buttons in
9583 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9585 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
9588 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
9590 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
9591 highlighted menu items to match ms
9593 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
9595 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
9597 2006-03-30 Mike Kestner <mkestner@novell.com>
9599 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
9600 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
9601 go active to account for HotLight to Selected transition.
9602 * MenuItem.cs: add internal Selected prop. Fill out the Status
9603 property by calculating it from item info. Add HotLight,
9604 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
9606 2006-03-30 Mike Kestner <mkestner@novell.com>
9608 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
9610 2006-03-29 Jackson Harper <jackson@ximian.com>
9612 * Form.cs: Implement TODO.
9614 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9616 * PrintPreviewDialog.cs: Implemented missing methods and events; still
9617 missing proper dialog setup in the constructor
9619 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9621 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
9623 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
9624 - Fixed ResetBindings and removed TODO
9625 - Added check for cross-thread calls to get_Handle()
9626 - Added Marshaller attribute for set_Font to satisfy class status
9627 * FontDialog.cs: Removed TODOs that seemed implemented
9628 * UpDownBase.cs: Removed unneeded TODO and Fixme
9629 * MessageBox.cs: Implemented support for Default button and removed TODO
9630 * FileDialog.cs: Removed obsolete TODO
9631 * DomainUpDown.cs: Removed obsolete TODO
9632 * ButtonBase.cs: Removed obsolete TODO
9633 * XplatUIWin32.cs: Removed obsolete TODO
9635 - Removed obsolete TODO
9636 - Calling CheckAcceptButton when the acceptbutton is changed to allow
9637 internal status updates
9638 - Making sure the active control is selected when the control is created
9639 * CurrencyManager.cs: Removed obsolete TODO
9641 2006-03-29 Mike Kestner <mkestner@novell.com>
9643 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
9644 of PrintPreviewDialog and RichTextBox.
9646 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9648 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
9649 DarkDark, Light and LightLight colors for a specific color
9650 * ThemeWin32Classic.cs:
9651 - Use Button drawing code to draw RadioButtons and CheckBoxes with
9653 - Make use of the new ResPool helper CPColor
9654 - Draw ProgressBar and StatusBar with correct 3D borders
9656 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9658 * ColorDialog.cs: Return selected color. Fixes bug #77940.
9660 2006-03-28 Mike Kestner <mkestner@novell.com>
9662 * ListView.cs: fix Icon layout to plan for scrollbar widths when
9663 calculating col/row counts.
9665 2006-03-28 Mike Kestner <mkestner@novell.com>
9671 switch to explicit interface method implementation for some methods
9672 corcompare identifies as inconsistent with MS.
9674 2006-03-28 Mike Kestner <mkestner@novell.com>
9678 add a few missing methods from the class status output.
9680 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
9682 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
9685 2006-03-28 Mike Kestner <mkestner@novell.com>
9687 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
9689 2006-03-27 Mike Kestner <mkestner@novell.com>
9691 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
9692 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
9694 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
9696 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
9698 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9700 * ThemeWin32Classic.cs:
9701 - GroupBox: Inserted a little gap between the text and the lines
9703 - Made the code in CPDrawBorder3D more readable
9704 - Corrected the drawing location of the up and down arrows in
9707 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9709 * ControlPaint.cs: Corrected line widths in DrawBorder for
9710 ButtonBorderStyle Inset and Outset
9712 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9714 * ThemeWin32Classic.cs:
9715 - Rewrote the totally broken CPDrawBorder3D method. That was
9716 one of the main problems for the terrific ThemeWin32Classic
9718 - Updated and corrected Button drawing
9719 - Correct the dimensions of the SizeGrip to match ms ones
9720 - Removed a small drawing glitch in DrawComboBoxEditDecorations
9721 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
9722 Border3DStyle.Sunken to match ms.
9724 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9726 * ThemeWin32Classic.cs: First small part of the "de-uglify
9727 ThemeWin32Classic" effort, SizeGrip
9729 2006-03-24 Jackson Harper <jackson@ximian.com>
9731 * XplatUIX11.cs: Give a max idle time of one second, this matches
9732 MS and forces an Idle event every second when there are no other
9733 events in the queue.
9735 2006-03-24 Mike Kestner <mkestner@novell.com>
9737 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
9738 * ListView.Item.cs: fix layout issues with null image lists and images
9739 smaller than checkbox size.
9740 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
9741 mode like MS does. It's weird, but consistent. ;-)
9744 2006-03-24 Mike Kestner <mkestner@novell.com>
9746 * ListView.cs: Scroll wheel support for the item control. Fixes
9749 2006-03-23 Jackson Harper <jackson@ximian.com>
9751 * ScrollableControl.cs: Special case negative sized areas, not
9753 * MonthCalendar.cs: Save the rect of the clicked date so we can
9754 use it for invalidation.
9755 - Try to cut down on the number of invalidates
9756 - Invalidate the rect the mouse is over and was over when moving
9757 the mouse, so we get the focus box following the cursor.
9759 2006-03-23 Mike Kestner <mkestner@novell.com>
9761 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
9762 focus rectangle drawing. Fixes #77835.
9764 2006-03-23 Mike Kestner <mkestner@novell.com>
9766 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
9767 the if and else if and reverting back to the original == check on the
9770 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9772 * FontDialog.cs: Update the example panel if the selected index of
9773 the fontListBox changes.
9775 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9777 * FileDialog.cs: Make FileDialog remember which directory it was in
9778 last in the same execution.
9780 2006-03-22 Mike Kestner <mkestner@novell.com>
9782 * FileDialog.cs: make the DropDownMenu on the toolbar display
9783 RadioChecks since they are mutually exclusive and that's what MS does.
9785 2006-03-22 Mike Kestner <mkestner@novell.com>
9787 * Theme.cs: add Color param to CPDrawMenuGlyph.
9788 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
9789 checks and radio marks and arrows are visible on highlighted items.
9790 * ControlPaint.cs: update to use new Theme signature.
9792 2006-03-22 Mike Kestner <mkestner@novell.com>
9794 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
9795 is active. Fixes #77870.
9797 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9799 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
9800 to be focused/selected after startup
9802 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9805 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
9806 CustomColors and ShowHelp properties
9807 - Some internal rewrites to get better results when using the
9810 2006-03-22 Mike Kestner <mkestner@novell.com>
9812 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
9813 HoverSelection. Fixes #77836.
9815 2006-03-22 Mike Kestner <mkestner@novell.com>
9817 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
9818 ToggleButtons. (De)Sensitize the Back button around a stack count of
9819 1, not 0. Update ButtonSize based on a pixel count of the win32
9820 control. Adjust the toolbar size/location for new button size.
9822 2006-03-22 Jackson Harper <jackson@ximian.com>
9824 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
9826 * ScrollBar.cs: When doing increments and decrements we need to
9827 set the Value property so that ValueChanged gets raised. A
9828 possible optimization here would be to make an internal SetValue
9829 that doesn't invalidate immediately.
9830 * ToolTip.cs: Tooltips get added to their container (when
9831 supplied) so they get disposed when the container is disposed.
9832 - Don't create tooltips for String.Empty. This prevents all these
9833 little 2-3 pixel windows from showing up when running nunit-gui
9835 * Form.cs: Don't set topmost when setting the owner if the handles
9836 haven't been created yet. The topmost set will happen when the
9837 handles are created.
9839 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
9842 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
9843 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
9844 visible (to allow them to recalculate their sizes)
9846 2006-03-21 Mike Kestner <mkestner@novell.com>
9848 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
9849 methods. Removed a ton of redundant code. Still not really happy with
9850 the border rendering, but I think that's mainly because of the
9851 ControlDarkDark being black instead of a dark grey. Depending on how
9852 close we want to be, we might want to revisit those color choices.
9853 Among the new features added during the refactor were DropDownArrow
9854 pressed rendering, Disabled image rendering. Proper flat appearance
9855 boundary rendering. Removed the Divider and Wrapping dividers since I
9856 can't figure out any combination of themes and conditions to make the
9857 MS control draw a horizontal line on a toolbar despite what the
9858 Divider property docs indicate.
9859 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
9860 conditions and incorrect layout. Updated to coding standard.
9861 * ToolBarButton.cs: refactored layout and positioning code from
9862 ToolBar to here. Invalidate wherever possible instead of forcing
9863 redraws of the whole toolbar.
9864 (Known remaining issues: explicit ButtonSize smaller than provided
9867 2006-03-21 Mike Kestner <mkestner@novell.com>
9869 * ContextMenu.cs (Show): use the position parameter instead of just
9870 showing at the MousePosition.
9872 2006-03-21 Jackson Harper <jackson@ximian.com>
9874 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
9875 control handle this.
9876 * TreeNodeCollection.cs: If we are clearing the root node we need
9877 to reset top_node so calcs can still happen.
9878 * ThemeWin32Classic.cs: This is a Flags so we need to check
9881 2006-03-21 Jackson Harper <jackson@ximian.com>
9883 * DataGrid.cs: Create columns when the binding context has been
9885 * X11Structs.cs: Keysyms are uints.
9886 - Add size to fix build.
9888 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
9890 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9892 - Added ResetMouseHover method to allow controls to retrigger
9893 hovering if they need it more than once
9894 - Implemented MouseHoverTime and MouseHoverSize properties
9895 * Timer.cs: Start() must reset the interval
9896 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
9899 2006-03-21 Jackson Harper <jackson@ximian.com>
9901 * X11Keyboard.cs: improved layout detection. Move the nonchar
9902 tables into this file.
9903 * KeyboardLayouts.cs: Move the tables into resource files.
9905 2006-03-21 Mike Kestner <mkestner@novell.com>
9907 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
9909 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
9911 * Mime.cs: Various speed optimizations. Looking up mime types
9912 is now 2 times faster than before
9914 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9916 * CreateParams.cs: Added internal menu field
9918 - Switched call order for UpdateBounds; now we always call
9919 the one that also takes ClientSize, and we're calculating the
9920 client size via driver method in the others. The previous
9921 method of tracking client size by difference wasn't working
9922 for forms where even the starting client size wouldn't match
9923 the overall form size (due to borders) (Part of fix for #77729)
9924 - CreateParams(): Do not use parent.Handle unless the handle is
9925 already created. Causes havoc with Nexxia and throws off our
9926 creation of controls
9928 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
9929 - Switched handling of ConfigureNotify over to new PerformNCCalc
9930 method (consolidates code)
9931 - Changed RequestNCRecalc to use new PerformNCCalc method
9932 - Added calls to RequestNCRecalc when menus and borders are changed
9933 to allow app to set NC size. (Part of fix for #77729) This matches
9934 when MS send a WM_NCRECALC on Win32 windows.
9935 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
9936 (Part of fix for #77729). This matches what MS does, they also
9937 send that message when the form is made visible.
9938 - XException.GetMessage: Improved usability of X errors by including
9939 a translation of the window into Hwnd and Control class
9940 - Improved debug info for window creation, reparenting and destruction
9941 - Created helper method WindowIsMapped() [Currently not used]
9942 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
9944 - CreateParams: Now setting our menu on the new internal menu field
9945 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
9946 avoid calculating the same property twice
9948 - Improved usability of ToString() for debugging purposes
9949 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
9950 determine the height of the menu, instead of just the font. This
9951 required to also create a graphics context and to keep a bmp
9952 around (for performance reasons)
9954 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9956 * MenuAPI.cs: Added OnMouseUp method
9958 - Now remembering the requested client size, avoids size errors
9959 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
9960 instead of base if the menu is active. This is required due to
9961 control now capturing and releasing on down/up and it would
9962 prematurely release our menu capture
9964 2006-03-17 Jackson Harper <jackson@ximian.com>
9966 * KeyboardLayouts.cs: Add the czech layouts.
9968 2006-03-16 Jackson Harper <jackson@ximian.com>
9970 * Control.cs: Use the viewport space when sizing not the controls
9971 client size, so things like ScrollableControl that effect the
9972 viewport size (when scrollbars are added) are computed correctly.
9973 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
9975 - Handle creating BindingManagers for null data sources.
9976 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
9977 source, otherwise when rows are added they are added to the 'fake'
9978 datasource and we will crash when trying to set the position in
9980 - Use Implicit scrollbars on the datagrid so they arent
9983 2006-03-16 Jackson Harper <jackson@ximian.com>
9986 * InternalWindowManager.cs:
9987 * MdiWindowManager.cs:
9988 * X11Keyboard.cs: I really want Mike to love me again (fix
9991 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
9994 - OnMouseDown: Switch to editing mode when clicking on the cell
9995 even if we're clicking on the cell that's currently
9997 - ProcessGridKey: Left/Right now wrap like MS.Net does
9998 - ProcessGridKey: Tab now knows to add a new row when tab is
9999 pressed in the cell of the last column of the
10001 - ProcessGridKey: Enter now adds another row if pressed in the last
10002 row and selectes the new row, same column cell
10003 - ProcessGridKey: Home/End navigate columns, not rows, like
10004 originally implemented
10005 - Broke ProcessKeyPreview code out into an extra Internal method
10006 so it can be called from the edit code
10007 * DataGridTextBox.cs (ProcessKeyMessage):
10008 - Switched to accept Tab keypresses
10009 - Added F2 handling to allow jumping to the end of the edited cell
10010 - Added logic to allow moving caret left/right inside edited cell
10011 and making the edited cell jump when the caret hits cell borders
10012 - Tab and Enter are now passed to the datagrid after being handled
10014 - Removed capture code now that Control handles it
10015 - set_SelectionStart now ensures caret is visible
10017 2006-03-16 Jackson Harper <jackson@ximian.com>
10019 * TrackBar.cs: Debackwards the increment/decrement for handling
10020 mouse clicks on the bar with vertical trackbars.
10021 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
10022 bottom to match MS.
10024 2006-03-16 Mike Kestner <mkestner@novell.com>
10026 * ListView.cs: make shift/ctrl keyboard and mouse selection
10027 consistent with the MS control. Fix a bug in
10028 SelectedListViewItemCollection.Clear that was pissing me off for the
10029 better part of a day because the collection was being altered
10030 underneath us as we walked the list.
10032 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
10034 * Control.cs: Not sure how we could miss this so long, but it seems
10035 that MS.Net has Capture set all the way from before calling
10036 OnMouseDown through sending the mouse events until after
10037 OnMouseUp. This will fix DataGrid's selection being set to end
10038 at the location of the MouseUp.
10040 2006-03-15 Jackson Harper <jackson@ximian.com>
10042 * BindingContext.cs: Check the binding after its added so that it
10043 can initialize the binding managers and hookup to events.
10044 * Binding.cs: Data members seem to sometimes include rows/cols in
10045 the format Row.Column we now take this into account.
10046 - Hookup to the position changed event so we can update the
10047 control when the position has changed in the data set.
10048 * CurrencyManager.cs: Take into account the row/col naming
10049 convention when creating dataset tables.
10050 * BindingContext.cs: Using a newer better way of storing
10051 datasource/datamember pairs. Hopefully this better matches MS for
10052 looking up binding managers.
10055 2006-03-15 Jackson Harper <jackson@ximian.com>
10057 * BindingContext.cs: The currency manager needs the data member
10058 name, if the member is a data set we use the name to find the
10060 * CurrencyManager.cs: When creating the list prefer an IList over
10062 - Attempt to create a DataTable from a DataSet (TODO: might need
10063 some better error checking here, although MS doesn't seem to have much)
10064 - If we have a DataTable create a view and use it as our list.
10066 2006-03-15 Mike Kestner <mkestner@novell.com>
10068 * ListView.cs: keep a matrix of the icon mode layout to facilitate
10069 keyboard navigation. Support Up/Down/Left/Right selection correctly
10070 for all 4 View modes.
10071 * ListViewItem.cs: add internal row/col fields for icon layouts.
10073 2006-03-15 Jackson Harper <jackson@ximian.com>
10075 * TabControl.cs: Redraw the tabs when we resize so their newly
10076 calculated sizes are drawn on screen.
10077 * X11Keyboard.cs: Begginnings of XIM support. We also now support
10078 composite characters.
10079 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
10080 - filter events so that composite characters can be created
10082 * X11Structs.cs: Add XIMProperties enum.
10084 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10086 * Control.cs (BringToFront, SendToBack): Don't use window or handle
10087 unless it's created
10089 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10091 * Control.cs (PerformLayout): We don't need to consider visiblity
10092 for anchoring, only for docking. This fixes 'whacky' alignment
10093 in listbox and other controls that use implicit scrollbars after
10094 the previous PerformLayout patch
10095 * ListBox.cs: Switched to use implicit scrollbars
10097 2006-03-14 Mike Kestner <mkestner@novell.com>
10101 - chain up the "new event" overrides to base and use
10102 OnEvent to raise them. Part of fix for bug #76509.
10104 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
10106 * FileDialog.cs: Do not select an item in the parent directory
10109 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10111 * Control.cs (PerformLayout): It would seem that we considered
10112 invisible windows for our layout. Not quite the right thing
10113 to do. Now we don't any longer, thereby fixing bug #76889.
10115 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10117 * Control.cs (CanFocus): I goofed. A control can have focus
10118 even though it's not selectable. Made it match MS docs.
10120 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10122 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
10123 center by default (fixes #76895)
10124 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
10125 all uses of Border3DSides.All with the explicit ORd together
10126 Left|Right|Top|Bottom because I assume that nobody was aware
10127 that All also implies a center fill. Most places I checked had
10128 a fill right above.
10129 * ProgressBarStyle.cs: Added
10131 2006-03-13 Mike Kestner <mkestner@novell.com>
10133 * ListView.cs: fix breakage in drag shadow header positioning
10134 from Peter's csc compilation fix.
10136 2006-03-13 Mike Kestner <mkestner@novell.com>
10138 * ListView.cs: fix NRE produced by backspacing twice in a focused
10141 2006-03-13 Mike Kestner <mkestner@novell.com>
10143 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
10145 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10147 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
10149 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
10150 the allowed size before making programmatic size changes
10152 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10154 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
10155 set, metacity is broken and will still use the emty sizes in
10156 the struct. (Fix for #77089)
10158 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10160 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
10161 WindowExStyles and marked both enums as Flags
10162 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
10163 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
10164 to match WindowStyles split
10166 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
10167 - Updated to match WindowStyles split
10169 - Fixed FosterParent creation, was using ExStyle on the Style field
10170 (This should help with Popup focus issues)
10171 - Updated to match WindowStyles split
10173 2006-03-13 Jackson Harper <jackson@ximian.com>
10175 * MdiWindowManager.cs: Use the system menu height. Fixes some
10176 strange sizing issues.
10178 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10180 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
10182 - Scroll to caret after inserting text (#77672)
10183 - Make scroll range one pixel higher, fixes off-by-one error (and
10184 makes underlines visible on the last line)
10186 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10188 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
10189 the keyboard state from being stuck with keys in 'pressed' state when
10190 focus is switched away via keyboard
10191 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
10192 reset the keyboard if no X11 KeyUp events are expected to come
10193 * X11Structs.cs: Switched type of Visible to bool to match driver
10195 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10198 - Switched caret to be just 1 pixel wide, matches MS and looks less
10200 - Moved caret display 1 pixel down from the top of the control
10202 - InsertCharAtCharet: Update the selection start if moving the caret
10203 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
10204 - No longer always creating the caret when the caret methods are
10205 called. Only the actual ShowCaret/HideCaret will do that now
10206 - Only setting caret visible if the owner control has focus
10207 - UpdateView: Added invalidation-shortcut logic for center and right
10208 aligned text. Previously we'd update all according to the left
10209 logic which caused drawing errors. Also fixed height of invalidated
10210 areas, now properly invalidating the whole area (was off-by-one)
10211 - owner_HandleCreated: Always generate the document when the
10212 handle is created; this ensures that
10214 - Fixed situation where caret would disappear under the right
10215 window border, also improved scrolling behaviour on left-
10217 - Fixed right-aligned textboxes to have a border to the
10218 right instead of the caret being under the right border
10220 - Switched from 'nested' to simple visible/not visible tracking
10221 for caret (part of fix for #77671)
10222 - No longer passing through translated FocusIn/FocusOut messages
10223 since we were notifying too often and the wrong windows. Instead
10224 we just notify our focussed window of receiving or loosing focus
10225 * XplatUIWin32.cs: Switched from 'nested' show/hide
10226 counting for caret to simple visible yes/no behaviour (part of
10229 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
10231 * Mime.cs: Remove debug code...
10233 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
10235 * MimeGenerated.cs: Removed
10236 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
10237 and subclasses) from /usr/(local/)share/mime and
10238 $HOME/.local/share/mime.
10240 2006-03-10 Jackson Harper <jackson@ximian.com>
10242 * MdiWindowManager.cs: Recalc the NC area when a window is
10243 maximized/restored so that the menu area is drawn on forms that
10246 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10248 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10249 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
10250 us to force a WM_NCCALCRESIZE message being sent. This is needed
10251 for MDI maximizing.
10253 2006-03-10 Jackson Harper <jackson@ximian.com>
10255 * Form.cs: We need to use the ActiveMenu when calculating menu
10257 - Fix nullref when the window manager hasn't been created yet.
10258 * Control.cs: Fix nullref when we try to bring a control to the
10259 front that has no parent.
10260 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
10262 - Add a dummy item to the maximized menu so it always has the
10263 correct height. Otherwise when there are no menus we don't get our
10267 2006-03-10 Jackson Harper <jackson@ximian.com>
10269 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
10271 * Form.cs: Make the window_state internal so the window managers
10273 - When an MDI child is maximized let its window manager create the
10274 main menu (so it can add its icon).
10275 - Notify the window managers of state changes
10276 - Let the window manager paint its buttons and handle button
10277 clicks on the menu when it is maximized.
10278 * InternalWindowManager.cs: Move the prev_bounds into the mdi
10279 window manager, since tool windows don't use it, only mdi windows.
10280 - Tell the main form that we don't want it to handle NCPAINT
10281 itself to avoid extra painting.
10282 - Handle clicks on a maximized windows menu.
10283 - Handle window state changes
10284 - Handle minimize/maximize clicks correctly by setting the window state.
10285 * MdiWindowManager.cs: Add an icon menu that (the menu you get
10286 when clicking on the forms icon).
10287 - New method to create a forms maximized menu. This is its normal
10289 - Handle window state changes.
10290 - Handle sizing of maximized windows. Maximized windows are just
10291 drawn bigger then the parent visible area. All controls are still
10292 there, they are just outside the visible area (this matches windows).
10293 * MdiClient.cs: No scrollbars when a child window is maximized.
10294 - Let the children windows figure out how big they should be when
10295 sizing maximized windows.
10296 - Implement a version of ArrangeIconicWindows somewhat similar to
10297 Windows version. There are some little differences, but I don't
10298 think any app will rely on the layout of minimized mdi windows.
10300 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10302 * Padding.cs: Several fixes to allow compiling with csc 2.0
10304 2006-03-09 Jackson Harper <jackson@ximian.com>
10307 * MenuItem.cs: Cheap hack so we can add items to the list without
10308 the events being raised. This allows adding mdi items during
10309 drawing. TODO: Should probably find a better time to add the items.
10311 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10313 * ThemeWin32Classic.cs:
10314 - CheckBox_DrawText: Added logic to not wrap if not enough space
10315 is available (Fix for bug #77727)
10316 - RadioButton_DrawText: Added logic not to wrap if not enough
10317 space is available (Fix for bug #77727). Also removed some
10318 duplicate code, DrawString always drawing the regular text
10319 before hitting the if statement.
10321 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10323 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
10325 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10327 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
10328 * ContainerControl.cs: Partial implementation of some 2.0 scaling
10329 methods. Moved the new 2.0 properties into alphabetical order with
10330 other properties and added MonoTODO tags
10332 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10334 * AutoScaleMode.cs: Added. Fix build.
10336 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10338 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10339 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
10340 and was requiring premature handle creation for calls from above
10341 * Form.cs, Control.cs: Removed handle arguments from calls to
10342 CalculateClientRect()
10344 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10346 * ListView.cs (HeaderMouseMove): Fix csc compilation.
10347 drag_column.column_rect is MarshalByRef and can't be used that way
10349 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10351 * AxHost.cs: Added deserialization constructor for
10352 AxHost+State (fixes 77743)
10354 2006-03-09 Mike Kestner <mkestner@novell.com>
10357 - Added column drag reordering for details view.
10358 - fixed behavior when mouse is dragged off column and
10359 AllowColumnReorder is false.
10360 * ColumnHeader.cs: clone the format too in Clone.
10361 * Theme.cs: add DrawListViewHeaderDragDetails method.
10362 * ThemeWin32Classic.cs:
10363 - impl new method for drawing drag column shadows and targets.
10364 - support column offset for details mode in DrawListViewItem.
10366 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10368 * TextControl.cs: Reset the char_count when the document is cleared
10369 (Fixes bug reported on mono-winforms mailing list)
10371 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10373 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
10374 of calling base we simply process the key ourselves, since both
10375 DefWindowProc and the handled method would set m.Result.
10378 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10380 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
10381 method also moves the window; instead implemented a copy of
10382 Control.ScaleCore (Part of fix for #77456)
10384 - Created new CreateGraphicsInternal method to allow providing
10385 a graphics context when no handle is created without triggering
10386 handle creation. (Part of fix for #77456)
10387 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10389 - Switched Constructor to require TextBoxBase instead of Control (to
10390 allow uncast access to CreateGraphicsInternal)
10391 - Safeguarded use of owner.Handle property. No longer accessing it
10392 unless the handle is already created.
10393 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10394 - Now triggering a recalc when owning control becomes visible
10395 * TextBox.cs, RichTextBox.cs: Switched to use new internal
10396 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
10397 premature handle creation (Part of fix for #77456)
10399 - We now only destroy our double-buffering buffers when the
10400 control is resized or disposed, but not when visibility
10401 changes. (The code even re-created them twice every time)
10402 - Now requiring a redraw of the buffer on visibility changes
10403 (fixes bug 77654 part 2)
10404 - Not passing OnParentVisibleChanged up unless the control
10406 - CanFocus: Fixed to match MS documentation
10407 - Focus: Fixed to return actual focus state and to check if
10408 setting focus is legal before setting it
10410 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
10412 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
10413 when to draw focus rectangle by looking at parent focus and
10414 selected state instead. This fixes TabPages on Linux sometimes
10415 having none or multiple focus rectangles.
10416 * XplatUIX11.cs (SetFocus):
10417 - Don't set the focus if the same window already has focus
10418 - Use SendMessage instead of PostMessage (like it's Win32
10419 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
10420 to match MS behaviour
10421 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
10422 are not selectable.
10424 2006-03-07 Jackson Harper <jackson@ximian.com>
10426 * PictureBox.cs: Revert line I accidently committed last week.
10428 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
10431 - Added new IsRecreating and ParentIsRecreating properties to
10432 allow testing if RecreateHandle has been called on ourselves
10433 or one of our parents
10434 - WndProc(WM_DESTROY): If our control handle is being recreated
10435 we immediately need to create the handle when receiving the
10436 destroy, that way our child windows find a valid parent handle
10437 when they themselves are being recreated upon WM_DESTROY receipt
10438 (fix for bug #77654 part 1)
10440 - DestroyWindow: WM_DESTROY must be sent to our own window before
10441 notifying any child windows. MS documents that child windows
10442 are still valid when WM_DESTROY is received. (Control now relies on
10444 - Added some fine-grain debug options
10446 2006-03-06 Jackson Harper <jackson@ximian.com>
10448 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
10449 box and base calculations off this.
10450 * MdiChildContext.cs:
10451 * MdiWindowManager.cs: Don't need to ensure scrollbars here
10454 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
10456 * Splitter.cs: In situations where the affected control is added
10457 to the parent's control list after the splitter, we would not
10458 populate affected. Now we try populating it on mousedown, if
10459 it's not already set, and force it to be re-set whenever our
10462 2006-03-03 Matt Hargett <matt@use.net>
10464 * Control.cs: implement Control.Padding
10465 * Padding.cs: -Padding.All returns -1 when constructing with the
10466 implicit default ctor
10467 -Padding.ToString() matches MS.NET
10468 * ContainerControl.cs: implement
10469 ContainerControl.AutoScaleDimensions
10470 * ListControl.cs: implement ListControl.FormattingEnabled
10471 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
10473 * TabPage.cs: Implement UseVisualStyleBackColor.
10474 * PictureBox.cs: Implement PictureBox.InitialImage.
10476 2006-03-03 Mike Kestner <mkestner@novell.com>
10478 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
10479 event declarations to proxy to base event.
10480 * ListViewItem.cs: update to use ItemControl.
10481 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
10482 * ThemeWin32Classic.cs: update to new ListView theme API and fix
10483 column header label rendering for 0 width columns.
10485 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
10487 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
10488 that causes the control to be created. Fixes #77476.
10490 2006-03-02 Jackson Harper <jackson@ximian.com>
10492 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
10495 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
10497 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
10498 passed in for the EventArgs (fixes #77690)
10500 2006-03-01 Jackson Harper <jackson@ximian.com>
10502 * ScrollBar.cs: Refresh afterbeing resized.
10504 2006-02-28 Mike Kestner <mkestner@novell.com>
10506 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
10507 Clean up a tracker compile warning.
10508 * MenuItem.cs: add internal PerformPopup method.
10511 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10513 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
10514 implicit expose) when the text is set to null
10516 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10518 * RichTextBox.cs (FlushText): When newline is true, we always
10519 need to split the line, even if no text is on it and we may
10520 never eat newlines. (Fixes #77669)
10522 2006-02-28 Mike Kestner <mkestner@novell.com>
10524 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
10525 and set Selected instead.
10526 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
10529 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10531 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
10533 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
10536 - Got rid of the panel. All controls are now directly added to
10538 - It is now possible to set a font with the Font property
10539 - MinSize and MaxSize property do now what they should
10540 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
10541 - Searching and selecting a font with the font textbox works now,
10542 the same applies to the style and size textbox
10543 - Draw the correct 3D border in the example panel
10544 - Fixed a little mem leak (unused fonts didn't get disposed)
10545 - Many other internal updates/rewrites...
10548 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10551 - InsertRTFFromStream: Added 'number of characters inserted' argument
10552 - set_SelectedRTF: Now using the number of characters to calculate
10553 the new location for the selection and cursor (x/y cannot be used
10554 due to potentially already wrapped text)
10556 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10558 * TextControl.cs: Added property and implemented means to allow
10559 disabling recalculation of a document (can be used to speed up
10560 multiple inserts and is needed to make RTF inserts predictable, see
10562 * RichTextBox.cs: Using the new NoRecalc property of Document to
10563 keep x/y insert locations predictable. Also makes it faster inserting
10564 large chunks of RTF
10566 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10568 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
10569 it's easier for a child control to handle the other messages without
10570 having to duplicate the special functionality
10572 - WndProc: Removed calling base handler for WM_KEYDOWN and added
10573 code to handle processing the key ourselves, in order to get
10574 access to the result of KeyEventArgs.Handled. We now only call
10575 ProcessKey if they key hasn't been handled already. Fixes #77526.
10576 - set_Text: If null or empty string is given, just clear the
10577 document. Fixes part of #77526
10579 2006-02-27 Jackson Harper <jackson@ximian.com>
10581 * SizeGrip.cs: Paint the background color before painting the grip
10582 so things look right.
10583 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
10585 2006-02-27 Mike Kestner <mkestner@novell.com>
10588 - Restructure layout and invalidation model to remove a ton of
10589 flicker from the control and speed up performance in general.
10590 - Add manual column resize, flickers like crazy, but I already have
10591 some ideas on how I'll fix that. (#76822)
10592 - Merge the three Icon-based views into a single layout method.
10593 - Move item selection interaction logic from the item since
10594 interaction with the collections is more appropriate to the view.
10595 - Deselection on non-item clicks.
10597 - Encapsulate most of the layout. Add some internal props to trigger
10598 layout. Move to a model where Items invalidate themselves instead
10599 of just invalidating the whole control every time something changes.
10600 - Invalidate on Text/Caption changes.
10601 - switch to an offset based layout model to avoid having to absolute
10602 position every element on item moves.
10603 - correct checkbox layout to conform to MS layout.
10604 * ThemeWin32Classic.cs:
10605 - refactor some column header drawing code.
10606 - fix string justification for column headers (#76821)
10607 - make SmallIcon labels top justified for compat with MS impl.
10608 * ThemeClearlooks.cs:
10609 - adjust to new ListViewItem internal checkbox bounds api.
10611 2006-02-27 Jackson Harper <jackson@ximian.com>
10613 * Control.cs: Change where implicit controls fall in the zorder.
10614 They are now on top of all children.
10615 - Synced AddImplicit code with Add
10616 - Removed unused enumerator.
10617 * SizeGrip.cs: Remove the TODO as its been TODONE.
10619 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10621 * TextControl.cs(Insert): Combine the last lines unless the insertion
10622 string ends with \n\n, otherwise we leave one line too many (Fixes
10623 something I noticed with the testapp for #77526; the bug itself was
10624 already fixed in the previous checkin)
10626 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10629 - SelectionColor and SelectionFont methods no longer set absolute
10630 styles. Instead, the keep font or color respectively (This
10631 resolves a long-standing FIXME in the code)
10632 - When flushing RTF text, the insert code now considers text trailing
10633 behind the insertion point (Fixes the bug where when replacing
10634 the selected text via SelectedRTF the remainder of the line behind
10635 the selection would stay on the first insertion line)
10637 - AppendText now updates the selection points after inserting text
10638 - AppendText now ensures that the last tag (sometimes 0-length) of
10639 the document is used for the style information (Fixes part of
10642 - Created new FontDefiniton class to allow describing partial style
10644 - StreamLine() now takes a lines argument, to allow it to decide
10645 whether an encountered zero-length tag is the last in the document
10646 (which must be kept to not loose the font/color contained in it,
10648 - Created Combine() and Split() methods for Marker structs, to
10649 support marker updates due to reformatted documents (soft line
10651 - Implemented Document.CaretTag setter
10652 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
10653 of the last line (Not the cause, but also exposed by bug #77220)
10654 - Added LineTag argument to InsertString method, to allow callers
10655 to force a certain tag to be used (required to force use of the
10656 trailing zero-length tag of a document)
10657 - Now updating markers in Combine(), to avoid stale tag markers
10658 - Added some method descriptions to aid maintenance
10659 - Implemented new FormatText concept, allowing additive/subtractive
10660 formatting by only specifying the components that are to be
10661 changed. This was needed for resolving the RTB.SelectedColor/
10662 RTB.SelectedFont fixmes
10663 - Added Break() support method to allow breaking up linetags (used
10664 for partial formatting)
10665 - Added GenerateTextFormat() method. It is used for partial
10666 formatting and allows to generate a full font/color from given
10667 attributes and an existing tag.
10669 2006-02-26 Jackson Harper <jackson@ximian.com>
10671 * XplatUIX11.cs: Use the correct caption height.
10672 - Translate hittest coordinates to screen coords to match MS.
10673 * XplatUIWin32.cs: When we create MDI windows we need to reset
10674 some of the style flags, so we get a nice blank window, and can
10675 draw all the decorations ourselves.
10676 - Set a clipping rectangle on the non client paint event, the
10677 window manager drawing code needs one.
10678 * Form.cs: The window manager needs to know when the window state
10680 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
10681 don't need to factor in border and title sizes in these
10682 methods. TODO: Remove the args and fix the call points.
10683 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
10685 - Let the driver set the cursors.
10686 - Improve active window handling
10687 - Correct sizes for title bars and buttons.
10688 - Match MS drawing better
10689 * MdiWindowManager.cs: We don't need to handle border style
10690 updates specially anymore.
10691 - Check for scrollbars when windows are done moving
10692 - Handle Active properly.
10693 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
10694 correctly. I am spewing the exception though, so we don't hide the
10697 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
10699 * DataGridViewRowPostPaintEventArgs.cs,
10700 DataGridViewCellPaintingEventArgs.cs,
10701 DataGridViewRowCollection.cs,
10702 DataGridViewRowPrePaintEventArgs.cs,
10703 DataGridViewCell.cs: Clear a few warnings and implement a few
10704 exceptions that should be thrown.
10706 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10708 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
10709 'inheriting' our parent's (non-default) cursor. (Part of
10710 the fix for #77479)
10712 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10714 * XplatUIX11.cs: Fixed cast to make csc happy
10716 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10718 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
10719 it's for the client area (part of fix for #77479 and needed
10720 for MDI window cursor handling)
10722 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
10723 the appropriate default cursors and also passing the message
10724 up the parent chain
10725 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
10726 for non-client areas
10728 2006-02-15 Jackson Harper <jackson@ximian.com>
10730 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
10731 is a real MDI window
10733 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
10735 * X11DesktopColors.cs: Instead of checking the desktop session
10736 string for "KDE" check if it starts with "KDE"
10738 2006-02-10 Jackson Harper <jackson@ximian.com>
10740 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
10743 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10745 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
10748 - Got rid of the panel. All controls are now directly added to
10750 - Changed to mono coding style
10752 2006-02-10 Jackson Harper <jackson@ximian.com>
10754 * InternalWindowManager.cs: We don't need the set visibility to
10755 false hack anymore now that peter has written beautiful shutdown
10758 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
10760 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
10761 where already explicitly destroyed
10763 2006-02-10 Jackson Harper <jackson@ximian.com>
10765 * MdiClient.cs: Handle the case where windows are too high or to
10766 the left and we need scrollbars.
10768 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10770 * MimeIcon.cs: Added some icons
10773 - Got rid of the panel. All controls are now directly added to
10775 - Changed to mono coding style
10776 - On Linux "My Computer" and "My Network" will now show some
10777 more usefull information. A new class, MasterMount, gathers
10778 this information from /proc/mount. Updated MWFFileView to make
10779 use of this information
10780 - Fixed a bug that caused FileDialog to crash when
10781 ".recently_used" file had a zero size
10782 - FilterIndex does now what it should
10784 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
10787 2006-02-09 Jackson Harper <jackson@ximian.com>
10789 * ComboBox.cs: Don't touch if null.
10791 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
10793 * Cursor.cs: 64bit safeness fix
10794 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
10796 2006-02-09 Jackson Harper <jackson@ximian.com>
10798 * Form.cs: If a form is made into an MDI form update the styles so
10799 all the props can get set correctly.
10800 - Kill the mdi_container when we dont need it anymore.
10801 * InternalWindowManager.cs: Add missing NOT
10803 2006-02-08 Jackson Harper <jackson@ximian.com>
10805 * InternalWindowManager.cs: Respek clipping when drawing MDi
10808 2006-02-08 Jackson Harper <jackson@ximian.com>
10810 * Hwnd.cs: Add bits to track non client expose events.
10811 * XplatUIX11.cs: Track non client expose events on the hwnd. This
10812 gives us a proper invalid rect and will allow for some nice
10813 optimizations with NC client drawing
10814 - MDI windows are children windows, so move their style handling
10815 into the child window block.
10816 * InternalWindowManager.cs: Remove a state reset that was
10817 getting invoked at the wrong time. Fixes managed windows getting
10818 into a 'stuck' captured state.
10820 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10822 * TextControl.cs (Document.ctor): Now initializing
10823 selection_anchor. Fixes #77493
10825 2006-02-07 Jackson Harper <jackson@ximian.com>
10827 * TrackBar.cs: The increment/decrements were backwards.
10829 2006-02-07 Mike Kestner <mkestner@novell.com>
10831 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
10832 to the instance itself.
10834 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10836 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
10837 on ulongs and pointers, the size differs between 32bit and 64bit
10840 2006-02-07 Mike Kestner <mkestner@novell.com>
10842 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
10843 for 64 bit platforms to work around a metacity bug.
10845 2006-02-07 Jackson Harper <jackson@ximian.com>
10847 * TrackBar.cs: Process the input keys we need, and hookup to
10848 KeyDown instead of using WndProc, so we get key messages.
10850 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10852 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
10854 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
10855 we need to translate the XdndVersion atoms array before sending it
10857 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10860 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
10861 number of bits for the property, not the number of bytes. The
10862 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
10863 but would not crash since it specified 8 bits instead of 4 bits)
10864 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
10865 defined as XID -> long in the C headers)
10866 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
10867 references since those are now IntPtr to begin with
10868 - Switched all Atom.XXX 'int' casts to IntPtr casts
10869 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
10870 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
10871 - Added XChangeActivePointerGrab DllImport (for X11DnD)
10873 - Changed 'int' type for Atoms in XEvent structures to IntPtr
10874 - Changed atom in HoverStruct to be IntPtr
10876 - Removed local DllImports, switched code to use those from XplatUIX11
10877 - Removed/fixed casts related to the switch of Atom to be a IntPtr
10879 2006-02-06 Mike Kestner <mkestner@novell.com>
10881 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
10882 method signatures in the import region. There may still be some
10883 lingering struct marshaling issues, as I didn't drill down into those.
10886 2006-02-06 Jackson Harper <jackson@ximian.com>
10888 * ComboBox.cs: Dont manually set the top_item, this is computed
10889 when the scrollbar position is set.
10891 2006-02-06 Mike Kestner <mkestner@novell.com>
10893 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
10894 startup crashes on amd64. There's other fixes needed. All pinvoke
10895 usage of Atom needs to be mapped to IntPtr for example. And there are
10896 likely other int/long issues to be addressed.
10898 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
10900 * FileDialog.cs: One more...
10902 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10904 * FileDialog.cs: Next try
10906 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10908 * FileDialog.cs: First part of fix for #77464
10910 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10912 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
10913 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
10914 AcceptButton border drawing.
10916 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10918 * Form.cs: Moved positioning of form after auto scaling is applied,
10919 otherwise it would possibly use wrong form size.
10921 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10923 * Control.cs (RecreateHandle): No need to re-create any child
10924 controls, the child windows will get destroyed automatically by
10925 the windowing system or driver, and re-created when the handle
10926 is being accessed the first time. Fixes #77456
10927 * Form.cs: No longer setting the form to closing if the handle is
10928 being recreated. This seems like the right thing to do, don't
10929 have a bug or testcase for this, though.
10931 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10933 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
10934 controls to avoid unwanted side effects
10936 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10939 - ScaleCore needs to scale the bounds, not the ClientSize of the
10940 control. Fixes #77416.
10941 - DefaultSize is 0,0 for control
10943 - DefaultSize is 100, 20
10944 - SetBoundsCore: Now enforcing the height, no matter if the provided
10945 height is more or less than the preferred one, as long as AutoSize
10947 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
10949 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10952 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
10953 call unless both performLayout is true *and* we have a pending
10955 - ResumeLayout: MS does not completely nest Suspend and Resume,
10956 they bottom out at 0, fixed our code to match that.
10957 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
10958 SetBoundsCore, we were updating even when we shouldn't. This fixes
10959 swf-anchors mis-anchoring when resizing the app fast and lots.
10960 - UpdateDistances: Now only setting the left and top distance if
10961 we have a parent and are not suspended, this is based on
10962 a suggestion by Don Edvaldson in bug #77355.
10963 - OnVisibleChanged: Fixed logic when to create the control. We may
10964 not create the control if we have no parent or if it's not visible;
10965 switched to using Visible property instead of is_visible field
10966 since the property also considers parent states. This fixes a bug
10967 when starting Paint.Net
10969 2006-02-02 Jackson Harper <jackson@ximian.com>
10971 * Form.cs: If the forms handle hasn't been created yet don't call
10972 into xplatui to make it top most, just set the topmost flag on the
10973 form in CreateParams
10974 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
10976 2006-02-01 Jackson Harper <jackson@ximian.com>
10978 * ScrollableControl.cs: Refactored the Recalculate method a
10979 little, this wasn't handling all the variants of bottom and right
10980 bars needed to be added and added/removed based on their
10981 counterparts being added/removed (which changes the drawable
10982 size). Also we special case client widths and heights of 0 and
10983 don't add the scrollbar for those.
10985 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
10988 - Added method to get AbsoluteGeometry(); currently unused, but might
10989 be used in the future, if we try again to figure out toplevel
10990 coordinates with some more crappy window managers
10991 - Added FrameExtents() method to retrieve the WM set decoration size
10992 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
10993 to deal with at least KDE, FVWM and metacity (Fixes #77092)
10995 - Added whacky_wm tracking var for metacity
10996 - Added logic to have default menu height if the actual menu height
10997 has not yet been calculated (part of fix for #77426)
10998 * Form.cs: Keep track whether client size has been set and re-set
10999 it if a menu is added/removed afterwards (Fixes #77426)
11001 2006-01-31 Jackson Harper <jackson@ximian.com>
11003 * Control.cs: When a new Site is set on the component attempt to
11004 pull the AmbientProperties from it.
11006 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
11008 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
11009 in the background of the owning form. Fixes #77332
11011 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
11013 * MimeIcon.cs: Fix for #77409
11015 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
11017 * XplatUIX11GTK.cs: Initial import
11019 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
11021 * FixedSizeTextBox: fixes class signature
11023 2006-01-30 Jackson Harper <jackson@ximian.com>
11025 * FixedSizeTextBox.cs: New internal class that represents a
11026 textBox that will not be scaled.
11029 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
11032 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
11034 * XplatUIX11.cs: Retrieve default screen number instead of
11035 assuming 0. Attempted fix for #77318
11037 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
11040 - GetWindowPos: When a window is parented by FosterParent, use
11041 the desktop instead of FosterParent as the base to get coordinates
11042 - CreateWindow: Don't make FosterParent the parent window for Popups
11043 if we don't want a taskbar entry, Popups automatically don't get one
11044 * Hwnd.cs: Need to call remove to actually remove the key from the
11047 2006-01-30 Mike Kestner <mkestner@novell.com>
11049 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
11051 2006-01-30 Jackson Harper <jackson@ximian.com>
11054 * TreeNode.cs: Raise events no matter how the treenode is
11055 checked. Patch by Don Edvalson.
11057 2006-01-30 Jackson Harper <jackson@ximian.com>
11059 * TreeNode.cs: Signature fix.
11061 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
11063 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
11065 2006-01-20 Mike Kestner <mkestner@novell.com>
11067 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
11068 event forwarding when menus are active.
11069 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
11070 Most of the patch is pdb's with a little rework.
11072 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11074 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
11075 Removed GetMenuDC and ReleaseMenuDC methods; replaced
11076 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
11077 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
11078 * InternalWindowManager.cs: Added use of PaintEventStart/End to
11079 handling of WM_NCPAINT message, now passing the PaintEventArgs to
11080 the PaintWindowDecorations method
11081 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
11082 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
11083 * MenuAPI.cs: Made tracker window invisible
11085 - Removed GetMenuDC and ReleaseMenuDC methods
11086 - Implemented the client=false path for PaintEventStart and
11089 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11091 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
11092 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
11095 - MaximizeBox, MinimizeBox: Recreate the handle when setting
11097 - CreateParams: Reworked the styles to match MS look'n'feel,
11098 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
11099 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
11101 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11103 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
11104 window is not mapped, since otherwise every form that's being
11105 created is considered minimized, which is wrong.
11106 * Form.cs: Catching the exception and returning our internal value
11109 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11111 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
11112 SetWindowMinMax() to have means to tell the driver about the minimum,
11113 maximum and maximized state window sizes. (Part of the fix for #76485)
11115 - Implemented tracking of minimum and maximum window size, now calling
11116 new SetWindowMinMax() driver method to tell the driver (Part of the
11118 - Finished handling of WM_GETMINMAXINFO method, now setting all values
11119 (Completes fix for #76485)
11120 - Calling new SetWindowMinMax driver method when the handle for a
11121 form is created, to make sure the driver knows about it even if
11122 the values have been set before the window was created
11123 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
11124 to avoid messing up our anchoring calculations (partial fix
11126 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
11128 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
11129 - Improved GetWindowState() to detect 'Minimized' state on Metacity
11130 (and presumably other freedesktop.org compliant WMs). Left the
11131 assumption unmapped=minimized, needed for SetVisible to work.
11132 - Now setting the window state when creating windows
11133 - Fixed SetVisible to consider/set the window state when mapping
11134 a Form. We cannot set the state before it's mapped, and we cannot
11135 use Form.WindowState once it's mapped (since it would ask the
11136 driver and get 'normal'. Therefore, we grab the state before
11137 mapping, map, and then set state.
11138 - Implmemented SetWindowMinMax method; Metacity does not seem to
11139 honor the ZoomHints, though.
11141 - Removed MINMAXINFO (moved to XplatUIStructs)
11142 - Added SetWindowMinMax stub (on Win32 the only way to set that
11143 information is in response to the WM_GETMINMAXINFO message, which
11144 is handled in Form.cs)
11145 - Added logic to SetVisible to set the proper window state when a
11146 form is made visible (fixes #75720)
11148 2006-01-26 Jackson Harper <jackson@ximian.com>
11150 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
11151 same way we handle them with Invoke.
11153 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
11156 - Added tracking of window state so CreateParams can return
11157 the appropriate style
11158 - Moved setting of WS_CAPTION style in CreateParams to allow
11159 styles without caption
11160 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
11161 control if the TextBox property is accessed. Fixes #77345
11163 - get_Created: now uses is_disposed and is_created to determine
11164 return value (suggested by Jackson)
11165 - CreateHandle: No longer exits if the handle is being recreated
11166 - RecreateHandle: If the handle is not yet created call the
11167 appropriate method to create either control or handle. If the
11168 control is already created CreateHandle will simply exit instead
11169 of just creating the handle
11170 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
11171 now SendMessage WM_DESTROY directly to the control when DestroyWindow
11174 - When DestroyWindow is called, instead of waiting for the
11175 DestroyNotification from X11, we directly post it to the WndProc
11176 and immediately dispose the hwnd object.
11177 Same applies to DestroyChildWindows, and this obsoletes the
11178 expose_pending tracking. Contrary to Win32 behaviour we destroy our
11179 child windows before our own, to avoid X11 errors.
11180 - Removed the direct sending of WM_PAINT on UpdateWindow
11182 - Reworked DoEvents and GetMessage to allow access to internal queue
11183 even when trying non-blocking access to the queue. Fixes #77335.
11184 Based on a patch suggestion by Don Edvalson. The new private
11185 GetMessage can now also be used as a backend for a PeekMessage
11187 * XplatUI.cs: Improved debug output for CreateWindow
11189 2006-01-25 Jackson Harper <jackson@ximian.com>
11191 * Help.cs: Allow param to be null. Patch by Don Edvalson.
11193 2006-01-24 Jackson Harper <jackson@ximian.com>
11195 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
11196 when we have a MaxDropItems lower then the selected index.
11198 2006-01-24 Jackson Harper <jackson@ximian.com>
11200 * Control.cs: Don't allow selection of non visible controls, allow
11201 selection of controls without parents.
11203 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
11205 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
11206 * DataGridDrawingLogic.cs: Add editing row only when is necessary
11208 2006-01-23 Jackson Harper <jackson@ximian.com>
11210 * UpDownBase.cs: Make the textbox handle all the selection and
11211 tabbing. This fixes tabing to updown controls.
11213 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
11215 * TextBoxBase.cs: fixes exception thown the object was null
11217 2006-01-23 Jackson Harper <jackson@ximian.com>
11219 * ButtonBase.cs: Just use the base CreateParams. They set
11220 visibility and enabled correctly.
11223 * MonthCalendar.cs: Lets let the base set as much of the
11224 createparams as possible so we don't have duplicate code all over
11227 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
11229 * ThemeGtk.cs: Added TrackBar and some experimental code to
11230 get double buffering back
11232 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
11234 * DataGrid.cs: Allows row number set internally higher than the last
11235 when creating a new row. Restores the editing functionality.
11237 2006-01-20 Mike Kestner <mkestner@novell.com>
11239 * MimeIcon.cs: delay Image creation until the icons are accessed
11240 instead of creating 190 scaled images on GnomeHandler startup.
11242 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
11244 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
11245 first call base before processing the event. Fixes #77279
11247 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
11249 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
11250 that the stride for the GDI bitmap would match the stride of
11253 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
11255 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
11257 2006-01-19 Jackson Harper <jackson@ximian.com>
11259 * ComboBox.cs: Hookup the text controls keydown event so we get
11260 those when the text control has the focus.
11262 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11264 * Label.cs: Now using the base events instead of defining new ones;
11265 this allows us to just call the base properties without having to
11266 duplicate all base property logic
11268 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11270 * Label.cs: A label by default is not a tabstop (Fixes one of our
11271 failing nunit tests)
11273 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11275 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
11276 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
11278 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11280 * Cursor.cs: Reimplemented creating cursor bitmaps without using
11281 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
11284 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
11285 constructor creates images that can't be saved. Part of the fix
11287 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
11288 - SetWindowState: Switched ShowWindow flags (part of an upcoming
11289 bug fix for handling window state in forms properly)
11291 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11293 * ThemeGtk.cs: Simplify ScrollBar drawing
11295 2006-01-18 Jackson Harper <jackson@ximian.com>
11297 * Splitter.cs: Set the default dock style for the splitter control
11298 in the constructor.
11300 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11302 * ThemeGtk.cs: Corrected StateType and ShadowType for
11305 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11307 * Control.cs: Make use of Theme.DoubleBufferingSupported
11309 - Added drawing for flat style buttons
11310 - Added ScrollBar drawing
11312 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11314 * ThemeClearlooks.cs: Removed some unneeded code.
11315 * ThemeGtk.cs: First part of ThemeGtk enhancements.
11317 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
11319 * LinkLabel.cs: We need to update the hover drawing when
11320 leaving the control as well.
11322 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
11324 * DataGrid.cs: Clicking on non empty areas in the columns
11325 area was giving an exception
11327 2006-01-17 Jackson Harper <jackson@ximian.com>
11329 * ThemeWin32Classic.cs:
11330 * ListView.cs: Do not draw/clip the headers when the header style
11333 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
11335 * DataGrid.cs: Fixes 77260
11337 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
11339 * DataGrid.cs: Clicking on a column on a empty grid was giving
11342 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
11344 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
11345 or any keypress will crash the grid.
11347 2006-01-17 Mike Kestner <mkestner@novell.com>
11349 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
11350 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
11351 invisible/previously-visible items.
11354 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
11356 * ThemeClearlooks.cs:
11357 - Added CL_Draw_Button method; now other theme controls that are
11358 not derived from button or do not have a button can draw buttons
11360 - Updated ComboBox drawing
11361 - Beautified RadioButton drawing
11362 - Corrected drawing of bottom and left tabs
11363 - Beautified DateTimePicker and MonthCalendar
11364 - Added CPDrawButton and CPDrawRadioButton
11366 2006-01-16 Jackson Harper <jackson@ximian.com>
11368 * ComboBox.cs: Set the initial value of the scrollbar to the
11369 current index. Reduce the numbers of refreshs and IndexOfs called.
11371 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
11373 * FileDialog.cs: When the file listview is focused hitting the
11374 backspace key moves the fileview to the parent directory
11376 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11379 - Added RecreateHandle call when changing taskbar visibility to
11380 trigger reparenting in Win32 driver (Fixes #75719)
11381 - If a window has minimize or maximize buttons, it cannot have
11384 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
11385 the toplevel form with FosterParent (A toolwindow not on the
11386 taskbar) (Fixes #75719)
11387 - Made FosterParent a toolwindow
11389 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11391 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
11393 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11395 * ToolTip.cs: If SetToolTip is called from a control and the mouse
11396 is currently over that control, make sure that tooltip_window.Text
11399 2006-01-13 Mike Kestner <mkestner@novell.com>
11401 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
11403 2006-01-13 Jackson Harper <jackson@ximian.com>
11405 * TreeView.cs: On MS GetNodeAt never actually factors in the X
11406 value passed. Also redraw the selected node when we recieve
11407 focus, so tabbing between trees works correctly.
11409 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11411 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
11412 ~/.gconf/%gconf-tree.xml, so use
11413 .gconf/desktop/gnome/interface/%gconf.xml
11415 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11417 * TextControl.cs: Draw text in gray if control is disabled
11419 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11421 * TreeView.cs: Draw the focus rectangle outside the highlight, to
11422 make sure it's always visible. Fixes #76680.
11424 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11426 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
11428 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
11430 * PageSetupDialog.cs: Added.
11431 * PrintDialog.cs: Attributes.
11432 * PrintPreviewControl.cs: Updates.
11433 * PrintPreviewDialog.cs: Updates.
11435 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11437 * Control.cs: Undid my selection check fix, since it's not needed
11439 - Now considering the presence of hscroll/vscroll when sizing
11440 vscroll/hscroll respectively. Fixed bug #77077
11441 - Added Left/Up/Down/Right to IsInputKey list to prevent
11442 ContainerControl from stealing them. This fixes what I broke
11443 with my last checkin.
11445 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11447 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
11448 I finally understand how the property can be set without a setter :-)
11450 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11453 - Switched RunLoop to use static Message.Create to create a
11455 - Added PreProcessMessage call in runloop for keyboard events; this
11456 is part of the fix for #77219, I overlooked this originally in the
11457 MSDN doc for PreProcessMessage
11459 - Removed call to PreProcessMessage from handling of keyboard
11460 messages; it's supposed to be done in the message pump
11461 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
11462 per MSDN documentation.
11463 - IsInputChar: All chars are input chars by default; removed the
11464 parent calling chain, MS does not document that
11465 - PreProcessMessage: If IsInputChar is true, we want to return false
11466 to allow dispatching of the message
11467 - When selecting the next control, now also check that we're not
11468 selecting ourselves again and therefore return a false positive.
11470 - Tried to match return values for IsInputKey and ProcessDialogKey
11471 to what MS returns; moved processing of our special keys outside
11472 ProcessDialogKey since MS does not seem to return true on those.
11473 - Moved code that previously was in ProcessDialogKey into new private
11474 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
11475 - Reworked handling of WM_CHAR to not have to duplicate code from
11476 Control.cs anymore, instead we simply call down to base.
11478 2006-01-12 Jackson Harper <jackson@ximian.com>
11480 * ComboBox.cs: We always need to refresh the text area when
11481 EndUpdate is called. Fixes the combobox in the file dialog.
11482 * Control.cs: Don't create the creator_thread until the controls
11483 handle is created. Also in InvokeRequired we check if the
11484 creator_thread is null. This gives the effect of InvokeRequired
11485 returning true if the controls handle is not created yet, and
11488 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11491 - Added StartLoop() driver method. This is used to allow drivers to
11492 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
11493 loop for a particular thread
11494 - Added EndLoop() driver method. This is called once the message
11495 pump for the thread is shut down
11496 - Added SupportsTransparency method to allow the driver to indicate
11497 opacity support for windows
11499 - Removed TODO attribute, completed AllowTransparency property
11500 - Added documented logic to Opacity
11501 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
11502 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
11503 versions of CompatibleTextRendering
11504 * X11Structs.cs: Added opacity atom to our atom enumeration
11505 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
11506 of a form might be set before it's reparented by the WM, and we need
11507 the opacity value without calling up to Form)
11508 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
11509 SupportsTransparency() driver methods
11510 * Application.cs: Now calling StartLoop and EndLoop driver methods
11512 - Added opacity atom registration
11513 - Added StartLoop()/EndLoop() methods. They're empty right now but
11514 will need to get implemented when we switch to a per-thread queue
11515 - Implemented SupportsTransparency() method
11516 - Implemented SetWindowTransparency() method
11517 - Added support for setting the opacity value when a window is
11518 reparented (since the opacity needs to be set on the WM frame)
11519 * XplatUIOSX.cs, XplatUIWin32.cs:
11520 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
11522 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11524 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
11526 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11528 * FileDialog.cs: Added ToolTip for MWFFileView
11529 * MimeIcon.cs: Rewrote GnomeHandler.
11530 - Get currently used gnome icon theme from
11531 ($HOME)/.gconf/%gconf-tree.xml
11532 - Make use of inherited icon themes
11533 - Support SVG icon themes like Tango via librsvg
11535 2006-01-12 Miguel de Icaza <miguel@novell.com>
11537 Revert's Jackson's revert which broke 2.0 builds. Fix both
11540 * Application.cs: Move the use_compatible_text_rendering outside
11541 the NET_2_0 define. If we ever need to use the
11542 use_compatible_text_rendering on the individual controls they will
11543 access the variable from the common shared code paths.
11545 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11548 - Added more granular debug options
11549 - Added method to print both window text and id
11550 - Switched debug output to use new Window() debug method
11551 - Added IsEnabled() driver method
11552 - Added EnableWindow() driver method
11554 - Removed end_modal; no longer needed, new loop handles termination
11555 via 'closing' variable
11556 - If form is modal, setting DialogResult will now initiate loop
11557 termination via 'closing' variable
11558 - Added support for is_enabled/WS_DISABLED to CreateParams
11559 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
11561 - Removed code that's now in RunLoop from ShowDialog()
11562 - Added various documented sanity checks to ShowDialog()
11563 - Added handling of WM_DESTROY message; we set 'closing' on getting
11564 the message to indicate the message pump to terminate
11565 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
11566 send by the Application.ExitThread method. (We send the message
11567 to destroy the window after all other events have been
11568 processed through the queue, instead of destroying the handle
11570 - Moved code from Close() method to WM_CLOSE handler; added logic
11571 to only send close-related events if the form is not displayed
11573 * Splitter.cs (..ctor): Fixed typo in resource name
11575 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
11577 - set_Cursor: Now only setting calling into XplatUI if the handle for
11578 the control is already created; this avoids implict handle creation
11579 or crashes if it's not created
11580 - set_Enabled: Now setting the enabled state via the new driver method
11581 instead of just tracking it
11582 - CreateParams: Added logic to set WS_DISABLED based on enabled state
11583 - CreateControl: Reordered event firing and method calls to more
11584 closely fire events in the order MS does. Now setting the
11585 enabled state in the driver when creating the control.
11586 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
11588 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
11589 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
11590 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
11592 - Added tracking of window enabled state (get_Enabled/set_Enabled)
11593 - Added EnabledHwnd property to easily allow a driver to find the
11594 handle of the first enabled window in the parent chain (this is
11595 used by drivers to pass up input events of disabled windows)
11596 * XplatUIDriver.cs: Added IsEnabled() method
11598 - Removed crude and obsolete exiting tracking variable
11599 - Removed internal ModalRun(); replaced by RunLoop()
11600 - Implemented private CloseForms() method to allow closing all
11601 windows owned by a particular (or all) threads
11602 - Exit() now properly closes all windows without forcing the message
11604 - Removed obsolete InternalExit() method
11605 - Changed Run() methods to use new RunLoop() message pump
11606 - Implemented new RunLoop() method for both modal and non-modal forms
11608 - get_CreateParams: Added setting of WS_DISABLED
11609 - Simplified ShowDialog(); now all the work is done in RunLoop(),
11610 invoked via Form.ShowDialog()
11611 * NativeWindow.cs: We don't remove the window from the collection when
11612 the handle is destroyed; there might still be messages for it in the
11613 queue (mainly the resulting WM_DESTROY); instead it will be removed
11614 when Control calls InvalidateHandle in the WM_DESTROY handler
11616 - CreateWindow: Added logic to handle the WS_DISABLED window style
11617 - EnableWindow: Implemented based on Hwnd.Enabled
11618 - GetMessage: Reset PostQuitState so the method can be called again
11619 - Implemented support for disabled windows (passing messages to the
11620 first enabled parent) in handling all input messages
11621 - Added optimizations for handling Expose events
11622 - Implemeted new driver method IsEnabled()
11623 - Now always resetting paint pending tracking vars when we start paint
11624 - Re-implemented UpdateWindow via just sending a WM_PAINT message
11625 * XplatUIOSX.cs: Added IsEnabled method stub
11626 * XplatUIWin32.cs: Implemented new IsEnabled() method
11628 2006-01-11 Jackson Harper <jackson@ximian.com>
11630 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11631 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
11632 variables a little.
11633 * ColorDialog.cs: Clear out the old form before adding the new
11636 2006-01-11 Jackson Harper <jackson@ximian.com>
11638 * X11Dnd.cs: Make sure to add all the text formats when adding
11639 strings to the data object.
11640 * TreeNodeCollection.cs: When adding to a sorted tree we need to
11641 do some redrawing too. Also change the UpdateNode to an
11642 UpdateBelow so the newly added node gets painted.
11644 2006-01-11 Miguel de Icaza <miguel@novell.com>
11646 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11647 LinkLabel.cs, PropertyGrid.cs: Implement the
11648 UseCompatibleTextRendering property for 2.x
11650 * Application.cs (SetCompatibleTextRenderingDefault): Add.
11652 2006-01-11 Jackson Harper <jackson@ximian.com>
11654 * TreeView.cs: Use the property for setting the selected node so
11655 the correct events get raised.
11656 * TreeNode.cs: Update the tree when the fore/back colours of a
11659 2006-01-10 Jackson Harper <jackson@ximian.com>
11661 * TreeView.cs: Allow setting SelectedNode to null.
11663 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11665 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
11667 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11669 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
11671 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11673 * PrintDialog.cs: Added attributes and set default property values.
11675 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11677 * PrintControllerWithStatusDialog.cs:
11678 Added PrintControllerWithStatusDialog.
11680 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11682 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11683 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
11685 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11687 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
11689 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
11691 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
11692 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
11694 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11696 * MimeIcon.cs: Added internal class SVGUtil.
11698 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11700 * FileDialog.cs: Don't crash if there are two files with the
11701 same name but different locations.
11703 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
11705 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
11706 dates across multiple month grids. Used to not highlight entire
11707 month, but does now.
11709 2006-01-06 Jackson Harper <jackson@ximian.com>
11711 * MonthCalendar.cs: Removed DoEvents call to prevent a running
11712 message loop. Change timer intervals to numbers that seem more
11715 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
11717 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
11718 object for location info since screen object is now implemented.
11720 2006-01-05 Jackson Harper <jackson@ximian.com>
11722 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
11723 * AsyncMethodResult.cs: We no longer use a WeakReference for the
11724 AsyncMethodResult, this is because we ALWAYS want the
11725 ManualResetEvent to get set.
11726 * Control.cs: When disposing use an async invoke to call shutdown
11727 code, so that thigns don't block on the finalizer thread. Also
11728 check if we even have a message loop before trying to send
11729 messages, if we don't then don't bother sending messages.
11730 - No more weak references for async methods
11731 * XplatUIDriver.cs: No more weak references for async methods.
11733 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11735 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
11736 returns two FontFamily with the same name
11738 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11740 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
11741 drawing disabled text. Instead using the ColorGrayText color
11743 2006-01-04 Jackson Harper <jackson@ximian.com>
11745 * TreeNode.cs: redraw the node when its image index is changed.
11747 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11749 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
11750 time I checked there are no others like it.
11752 2006-01-04 Jackson Harper <jackson@ximian.com>
11754 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
11755 this gives the behavoir I was looking for.
11756 * Control.cs: Special case Invoking EventHandlers, this matches MS
11757 and fixes part of bug #76326.
11759 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11761 * ThemeClearlooks.cs, FileDialog.cs:
11762 - Reflect the latest Theme class changes
11763 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
11766 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11768 * Theme.cs: Cache UI resource images and resize them if needed
11770 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11772 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
11773 is called. This fixes the crash in Nexxia when setting the font
11774 attributes in the chat. [However, RTF needs a look-over to make sure
11775 that all SelectionXXX methods handle the special case that selection
11776 is empty and therefore the change must be applied to all text starting
11777 at the cursor/selection start]
11779 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11781 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11782 XplatUIOSX.cs: Added SendMessage and PostMessage methods
11783 * X11Keyboard.cs: Switched to new way of calling PostMessage
11785 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11787 * Theme.cs: Added theme interface for images to allow the theme to
11788 control what images are used for things like FileDialog, MessageBox
11790 * MessageBox.cs: Now uses the new Theme icon/image interfaces
11792 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
11795 - Removed some dead code
11796 - Opening a recently used file does work now
11797 - Small UI enhancements
11800 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11802 * FileDialog.cs: Forgot too add __MonoCS__
11804 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11806 * FileDialog.cs: We are able to read recently used files now let's
11807 go on and write them.
11809 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
11811 * FileDialog.cs: Breathe some life into "last open"/"recently used"
11813 * MimeIcon.cs: Do a check for the top level media type also
11815 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11817 * ThemeClearlooks.cs:
11818 - Added CPDrawStringDisabled
11819 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
11820 some chars if the text doesn't fit into text_rect
11821 - DrawListViewItem: If View = View.LargeIcon center the image;
11822 rewrote the drawing of ListViewItem.Text if View =
11825 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11827 * MimeIcon.cs: Use default KDE icon theme if there is no
11828 "48x48" directory for the current icon theme, fixes #77114
11829 * Mime.cs: Disable not working and actually not used code.
11830 * ThemeWin32Classic.cs:
11831 - Replace "new SolidBrush" in GetControlBackBrush and
11832 GetControlForeBrush with ResPool.GetSolidBrush
11833 - Changed DrawListViewItem from private to protected virtual
11835 - Added form.MaximizeBox = true
11836 - Don't throw an exception if there is a broken symbolic link
11838 2005-12-23 Jackson Harper <jackson@ximian.com>
11840 * TabControl.cs: Give the panels focus, keyboard navigation is
11841 fixed so this works correctly now.
11842 - We need these key events also.
11843 * ToolBar.cs: Remove some of the poor mans double buffering.
11845 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
11847 * ComboBox.cs: The internal TextBox now returns the focus.
11849 2005-12-23 Jackson Harper <jackson@ximian.com>
11851 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
11853 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11855 * Control.cs: Removed debug code
11856 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
11859 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11861 * Control.cs: When creating the control, update the Z-order after
11862 all it's children are created, too. (Fixes nexxia not showing
11865 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11867 * Control.cs: Do not update the anchoring distances if layout is
11868 suspended, instead do it once layout is resumed
11870 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11873 - After many hours of debugging, for both Jackson and
11874 myself, it turns out that it helps to set the parent of a control
11875 if you want to actually see it onscreen. In the spirit of that
11876 discovery, we're now setting the parent of the control and
11877 it's children when the control's handle is created. This fix
11878 will make Lutz Roeder's Reflector run happily.
11879 - now just creating the handle instead of the whole control when
11880 getting a graphics context for the control.
11882 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11884 * ScrollableControl.cs: When calculating the canvas, don't consider
11885 the scrollbar widths. Instead, predict if horizontal scrollbar
11886 will affect canvas when deciding on vertical display and vice versa.
11888 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11890 * RichTextBox.cs: Set default RTF font for documents that don't
11891 have a font table (Fixes #77076)
11893 2005-12-22 Jackson Harper <jackson@ximian.com>
11895 * TextBoxBase.cs: It's difficult to do, but you can have an empty
11896 clipboard. This prevents a NullRef in that case.
11897 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
11898 clipboard. PRIMARY is for the currently selected text only. (We
11899 should implement PRIMARY at some point.
11901 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11903 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
11904 a Unicode function with a structure that was defined in Ansi way.
11907 2005-12-21 Jackson Harper <jackson@ximian.com>
11909 * StatusBar.cs: Statusbar handles its fore/back colours on it's
11910 on. Because thats how it rolls. (and this avoids it using ambient
11912 * ThemeWin32Classic.cs: Use the proper back color for filling.
11913 * Menu.cs: Use the system menu bar color for drawing menu
11914 bars. Using the window back color will bring ambient colours into
11917 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
11919 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
11920 Bitmaps were created and not disposed.
11922 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11924 * Control.cs (CreateControl): Don't do anything if the control is
11925 already created, otherwise we'd fire the OnCreated event more than
11928 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11930 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
11931 will always match. Instead return -1. Fixes #76464.
11933 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11935 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
11936 neither the beginning nor the end of the line (Fixes bug #76479)
11938 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11941 - ControlNativeWindow.ControlFromHandle(): Now handling situation
11942 where handle is invalid
11943 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
11944 instead of slower linear search
11945 * NativeWindow.cs: Don't remove the window from the hashtable until
11946 after the driver has destroyed it (since the driver might use
11947 Control.FromHandle to lookup the control object
11948 * Hwnd.cs: Added DestroyPending property to track if a window is
11949 already destroyed as far as the driver is concerned and only hasn't
11950 yet notified the control
11952 - Activate(): Check if the window is still valid before using the
11954 - Implemented DestroyChildWindow() method to mark child windows as
11955 destroyed when a window is destroyed. This prevents situations
11956 where we might call an X method based on queued events for a
11957 window that already has been destroyed but we haven't yet pulled
11958 the destroy method from the queue.
11959 - Added a call to the new DestroyChildWindow() method to the drivers
11960 DestroyWindow code. Also now marking the destroyed window itself
11963 2005-12-20 Jackson Harper <jackson@ximian.com>
11966 * StatusBarPanel.cs: Don't calculate panel sizes on draw
11967 anymore. Just do them when needed, also track the rects of panels
11968 so that we can optimize refreshing more in the future.
11970 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
11972 * ColorDialog.cs: Fixed focus drawing in small color controls
11974 2005-12-19 Jackson Harper <jackson@ximian.com>
11976 * InternalWindowManager.cs:
11977 * MdiWindowManager.cs: Cleanup some coordinate system changes so
11978 moving windows works properly.
11980 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
11983 - Removed call to InitLayout() from SetBoundsCore(); doc says
11984 it's only called when a control is added to a container
11985 - Split InitLayout logic, moved to separate UpdateDistances() method
11986 since we need to perform those calculations more often than just
11987 when adding the control to a container. (Needed to fix #77022)
11988 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
11989 - Reduced the OnBindingContextChanged events count, don't send them
11990 unless the control is created, we still aren't totally matching
11991 MS, but I can't quite figure out some of their rules
11993 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11995 * ThemeClearlooks.cs: Corrected distance between ProgressBar
11998 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
12000 * ThemeClearlooks.cs:
12001 - Updated ProgressBar drawing
12002 - Corrected drawing of ScrollBars and scroll buttons
12003 - Some temporary fixes for minor pixel artefacts
12005 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
12008 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
12009 cause events to be sent in the same order as MS does.
12010 - Added ChangeParent() method to trigger various OnXXXChanged events
12011 that need to be fired when a parent changes (This is a reworking
12012 of the patch from r54254, with the X11 errors fixed)
12013 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
12014 since on MS we get OnLayoutChanged events when calling Clear()
12015 - Changed Enabled property to consider parent state as well, if a
12016 parent is not enabled, the control will not be either
12017 - Changed Parent property to simply call Controls.Add() since that
12018 now does all the work required, this way we avoid code duplication
12019 - Threw in a few OnBindingsContextChanged calls to try and match
12020 when MS sends them. We seem to send a few too many, though.
12021 - Added call to CreateControl when adding the control to a parent.
12022 We were never calling CreateControl. Still needs some work, in
12023 some places we treat HandleCreated and ControlCreated as equal,
12025 - Removed obsolete commented out code from UpdateZOrder()
12027 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
12029 * ThemeClearlooks.cs: Updated TrackBar drawing.
12031 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
12033 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
12035 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
12037 * FileDialog.cs: Add the Help button and the open readonly
12038 checkbox only if needed
12040 2005-12-16 Jackson Harper <jackson@ximian.com>
12042 * Control.cs: Make sure we have an active menu before trying to
12043 process commands on it. Prevents menu-less forms from crashing
12044 when Alt is pressed.
12045 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
12047 * RichTextBox.cs: Expand statement to help out gmcs and fix the
12050 2005-12-16 Jackson Harper <jackson@ximian.com>
12052 * InternalWindowManager.cs: Don't translate tool windows screen
12053 coordinates. This fixes windows 'bouncing' around when being moved.
12055 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
12058 - MaxLength now treats 2^31-1 equal to unlimited length (this is
12059 not quite MS compatible, MS uses that number only for single line
12060 and 2^32-1 for multi-line, but I figure it won't hurt keeping
12062 - Now enforcing the MaxLength limit when entering characters
12063 - Added argument to internal Paste() method to track if it's called
12064 from programatically or via keyboard, since keyboard driven pastes
12065 need to enforce max-length
12066 - Added logic to Paste to only paste as many chars as MaxLength
12068 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
12070 - Added Length property to return number of characters in document
12071 - Added private CharCount property which only tracks actual chars
12072 in the document (no linefeeds) and fires event when CharCount
12074 - Added tracking of character count to all methods that alter it
12075 - Added LengthChanged event to allow applications to subscribe
12076 to any changes to the document
12078 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
12081 - Removed local password_char field (moved to TextBoxBase)
12082 - Now setting the document's password var when password is
12085 - Added password_char field (needed here so MultiLine can
12087 - Added logic to MultiLine property setter to set the document's
12088 variable when password display is allowed
12089 - Removed debug code and made some debug code conditional
12091 - Added RecalculatePasswordLine() method to handle special password
12093 - Added PasswordChar property, also added related tracking vars
12094 - Draw() method now uses local text var for grabbing text to draw,
12095 this var is set to line.text unless we're doing password display,
12096 then it is set to the pre-generated all-password-chars line
12097 - Added calling RecalculatePasswordLine() method for password lines
12099 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
12102 - Added Reparented property to allow tracking of Window Manager
12103 reparenting actions (which affect X/Y calculations of toplevel
12105 - Made ToString() print window handles in hex
12107 - AddConfigureNotify(): Now uses reparented state off Hwnd to
12108 determine if X/Y needs offsetting
12109 - AddConfigureNotify(): Fixed offset calculations
12110 - Now adds ReparentNotify messages into the queue
12111 - Now processes ReparentNotify messages and causes a
12112 WM_WINDOWPOSCHANGED message to be sent upstream if a window
12113 is reparented (as most likely it's X/Y coordinates are changed
12116 2005-12-14 Jackson Harper <jackson@ximian.com>
12118 * XplatUIX11.cs: Tool windows still need to respek focus.
12120 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
12122 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
12123 have a working release
12125 2005-12-13 Jackson Harper <jackson@ximian.com>
12127 * Form.cs: Update styles after setting the border style regardless
12128 of whether or not the window is using a window manager.
12130 2005-12-13 Jackson Harper <jackson@ximian.com>
12132 * Form.cs: We now hook into an internal window manager instead of just an
12133 MDI subsystem, this is so we can have properly behaving tool windows.
12134 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
12135 * InternalWindowManager.cs: New internal class that acts as a
12136 window manager for tool windows and as a base for mdi windows.
12137 * MdiWindowManager.cs: New class that acts as a window manager for
12140 2005-12-12 Jackson Harper <jackson@ximian.com>
12142 * Control.cs: Updates so we match behavoir for for implicit
12143 controls. Fixes explosions in MDI.
12145 2005-12-12 Jackson Harper <jackson@ximian.com>
12147 * Control.cs: Implement Invalidate (Region).
12149 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
12152 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
12153 the same events as MS does. MS fires events for each property
12154 except, for unknown reasons, Cursor, when the control is reparented.
12155 I can't seem to totally match add/remove since MS also fires some
12156 VisibleChanged events, which makes no sense. Consolidated the
12157 parenting code into a separate method so it can be called from
12158 both Add and Remove. set_Parent no longer needs any special logic
12159 as it calls the parent's add method which implicitly fires
12161 - Removed some obsolete code and debug output
12162 - Enabled state is inherited from parents, if this is enabled
12164 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
12166 * Form.cs: Removed commented out code
12168 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
12171 - Added internal version of Invoke, with additional argument
12172 indicating if we're calling it from a Dispose() handler. That
12173 way we can avoid BeginInvoke throwing an exception if we're
12174 calling for an already destroyed window.
12175 - Added a dispose argument to BeginInvokeInternal, and made the
12176 check if a valid window handle chain exists conditional on
12177 it not being a dispose call
12178 - Removed code in DestroyHandle to destroy our children. Since we
12179 now handle the WM_DESTROY message we will catch all our children
12181 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
12183 - Added a field to track the application context of the form.
12184 - No need to set closing variable as response to WM_CLOSE, instead
12185 we destroy the window. We also call PostQuitMessage if the form
12186 has an application context (which makes it the main app form,
12187 which, when closed terminates the app)
12189 - Dropped Exit() method, it's naming was confusing
12190 - Added PostQuitMessage() which causes GetMessage to return false
12191 once the message queue is empty
12192 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
12194 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
12195 no longer a valid XplatUI method, but left it in since it's used
12196 internally. Added empty PostQuitMessage() method.
12197 * MenuAPI.cs: Replaced call to Exit() with call to
12198 PostQuitMessage, even though this is probably no longer needed.
12199 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
12200 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
12202 - Replaced call to XplatUI.Exit() with PostQuitMessage()
12203 - Removed old debug code that would call XplatUI for exception
12204 display, enabled standard exception handling (Still not enabled
12205 though, until NativeWindow's ExternalExceptionHandler define
12208 - Added internal method to allow control to update NativeWindow
12209 after a window has been destroyed
12210 - Added handling of already destroyed windows when calling i
12212 - Added removal of handle from list on ReleaseHandle
12214 - Dropped GetMessageResult var and related code
12215 - Added PostQuitState to field to track if PostQuitMessage has been
12217 - Dropped Exit() method
12218 - Added PostQuitMessage() method
12219 - GetMessage now will return false if PostQuitState is set and no
12220 more messages are in the queue.
12221 - Expose handler will no longer generate WM_PAINT messages if we are
12222 in PostQuitState since it's very likely any windows have already
12223 been destroyed, and since Hwnd won't get updated until we have
12224 processed the DestroyNotify we'd be causing X errors.
12226 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12228 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
12229 Thanks to Mike for pointing out the err of my ways.
12231 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12233 * Control.cs(PreProcessMessage): Moved menu handling back, but
12234 after all other key handling, to match MS (who handles Menu in
12236 * Menu.cs (WndProc): Removed my brainfart
12238 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12240 * Control.cs(PreProcessMessage): Removed special menu handling
12241 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
12243 2005-12-07 Mike Kestner <mkestner@novell.com>
12245 * Control.cs : special case SYSKEYUP so that we can adjust keynav
12246 state according in tracker.
12247 * Menu.cs : promote tracker field to base class and provide a tracker
12248 lookup capability. Add/Remove shortcuts dynamically if the top menu
12249 has a tracker. Unparent items that are removed from the collection.
12250 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
12251 * Theme*.cs: add always_show_hotkeys field to support configurability
12252 of mnemonic display. win32 doesn't show mnemonics until Alt is
12255 2005-12-07 Jackson Harper <jackson@ximian.com>
12257 * MdiChildContext.cs: Use Control.ResetCursor.
12258 * Control.cs: ResetCursor needs to set the property so that the
12259 correct XplatUI call gets made.
12261 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12263 * Control.cs: More fixes to make our key events match MS. We
12264 were not setting the modifier state on KeyData, and we were
12265 not generating any events when Alt was pressed with a key
12266 since handling of WM_SYSxxx was missing for the OnKey methods.
12268 2005-12-07 Jackson Harper <jackson@ximian.com>
12270 * MdiChildContext.cs: reenable the sizing code.
12271 - When the mouse leaves a window reset its cursor.
12273 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
12275 * ThemeClearlooks.cs: Reflect latest Hwnd changes
12277 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12279 * Hwnd.cs: Now using the theme 3d bordersize to calculate
12280 widths of Fixed3D borders
12282 2005-12-07 Jackson Harper <jackson@ximian.com>
12284 * MdiClient.cs: Fix warnings. Earn Mike's love.
12286 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
12288 * ThemeClearlooks.cs:
12289 - Adjusted mouse over button color
12290 - Added first parts of CheckBox drawing
12291 - Added correct color for selected text background
12292 - Fixed ComboBox drawing
12293 - Added CPDrawBorder3D and CPDrawBorder
12295 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12297 * XplatUIX11.cs: Added call to XBell for AudibleAlert
12299 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12301 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12302 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
12303 alert users via sound. We could add an enum arg with different
12304 types of alerts in the future
12306 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12308 * Control.cs: Fix behaviour problems pointed out by Mike
12310 2005-12-05 Mike Kestner <mkestner@novell.com>
12312 * StatusBarPanel.cs: add Invalidate method and hook it into all the
12313 prop setters. Calls parent.Refresh for now, but could be maybe be
12314 optimized with an internal method on StatusBar at some point.
12317 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
12319 * RichTextBox.cs: Implemented get_SelectionColor
12321 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
12323 * ThemeClearlooks.cs:
12324 - Removed dead code
12325 - Draw black button border only if button is Form.AcceptButton
12326 - Draw correct button color for pressed RadioButton if the mouse
12327 has entered the button
12328 - Updated ProgressBar drawing!
12329 - Updated CPDrawSizeGrip drawing
12330 - Updated StatusBarPanel drawing
12332 2005-12-05 Mike Kestner <mkestner@novell.com>
12334 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
12335 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
12337 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
12339 * ThemeClearlooks.cs: Initial check-in, activate with
12340 export MONO_THEME=clearlooks
12341 * ThemeEngine.cs: Added ThemeClearlooks
12343 2005-12-03 Mike Kestner <mkestner@novell.com>
12345 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
12348 2005-12-02 Jackson Harper <jackson@ximian.com>
12350 * Form.cs: If the child form has no menu the default main menu is
12351 used as the active menu.
12353 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12355 * ListBox.cs: Check if any items exist before trying to resolve
12356 coordinates into items
12358 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12360 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
12361 as the second color for the background hatch
12363 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12365 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
12366 * RichTextBox.cs: FormatText position arguments are 1-based, now making
12367 sure that what we pass to FormatText is always 1-based. Fixes #76885
12369 2005-11-29 Miguel de Icaza <miguel@novell.com>
12371 * NumericUpDown.cs (EndInit): When we are done initializing,
12372 reflect any updates on the UI.
12374 2005-12-02 Jackson Harper <jackson@ximian.com>
12376 * ImplicitHScrollBar.cs:
12377 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
12378 their container controls.
12379 * TreeView.cs: Use the new implicit scrollbars.
12381 2005-12-02 Jackson Harper <jackson@ximian.com>
12383 * TreeView.cs: Make top_node internal so the TreeNodeCollections
12385 * TreeNodeCollection.cs: If we remove the topnode we need to
12386 update topnode to the next node in line.
12387 - When clearing nodes go through the same process as removing
12388 them, so they get depareneted and checked if they are top node.
12390 2005-12-01 Jackson Harper <jackson@ximian.com>
12392 * TreeView.cs: When imagelists are used the image area is
12393 selectable as well as the text.
12394 - If there are no selected nodes select the first one.
12395 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
12396 so don't do it more then we need to.
12398 2005-12-01 Jackson Harper <jackson@ximian.com>
12400 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
12401 that arrows can be scaled.
12403 2005-12-01 Jackson Harper <jackson@ximian.com>
12405 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
12406 fail. Patch by Dieter Bremes
12408 2005-11-30 Jackson Harper <jackson@ximian.com>
12410 * Form.cs: Property is 2.0 only
12411 * PrintDialog.cs: Signature fix.
12413 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
12416 - No longer artificially moves text 2 pixels down (now that we have
12417 borders this is no longer needed)
12418 - Added calcs for left, hanging and right indent
12420 2005-11-23 Mike Kestner <mkestner@novell.com>
12422 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
12424 2005-11-30 Jackson Harper <jackson@ximian.com>
12426 * MdiChildContext.cs: Set the cloned menus forms, as these don't
12427 get cloned as part of CloneMenu ().
12428 * Menu.cs: Make sure the parent of the items get set correctly
12429 when they are added. And the owners are notified of the changes.
12430 * Form.cs: Create an ActiveMenu property, so that when MDI is used
12431 we can change the menu being displayed/handled by the form without
12432 changing the menu assosciated with the form.
12433 - Don't let Mdi children draw/handle menus.
12435 2005-11-30 Jackson Harper <jackson@ximian.com>
12437 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
12438 a MenuChanged event. Just to make the API a little more
12441 * MenuItem.cs: Use the new OnMenuChanged
12442 * MdiChildContext.cs: Handle menu merging.
12443 * Form.cs: Implement MergedMenu.
12445 2005-11-30 Jackson Harper <jackson@ximian.com>
12447 * Menu.cs: We were misusing Add. Add goes behind the specified
12448 index according to the docs, and does not replace the specified
12449 index. So I added an Insert method.
12451 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
12453 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
12454 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
12456 * RichTextBox.cs: Added calls to base for DnD events
12458 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
12461 - Fixed drag-selection related crash; style fixes
12462 - Implemented undo class
12463 o Implemented method to capture document state for specified
12464 range in document tree
12465 o Implemented method to restore captured document state
12466 o Implemented cursor tracking
12467 o Implemented basic undo stack
12468 - Added undo cursor tracking to methods altering cursor location
12469 - Added undo tracking to selection deletion (still missing
12470 other text-altering hookups)
12472 - Added SelectionLength property
12473 - Implemented CanPaste()
12474 - Implemented Paste()
12475 - Added missing protected methods
12476 - Fixed RTF->Document conversion; now uses font index 0 and color
12477 index 0 as the default font for the parsed text
12478 - Fixed RTF<->Document font size translation
12479 - Fixed RTF generation, now properly handles cross-tag boundaries
12480 for single line selection
12481 - No longer always appends blank line to generated RTF
12483 - Added missing attributes
12484 - Hooked up undo-related methods
12486 - Implemented Copy()
12487 - Implemented Paste()
12488 - Implemented Cut()
12489 - Fixed caret mis-behaviour on backspace across line-boundaries
12491 2005-11-29 Jackson Harper <jackson@ximian.com>
12493 * MdiClient.cs: Add a method for activating mdi children. Very
12494 basic right now. I imagine someday it might need more girth.
12495 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
12496 children windows names are added to the menu item.
12497 * ThemeWin32Classic.cs: Draw the arrow if the item is an
12498 mdilist. This happens regardless of whether or not there are any
12499 mdi windows to see in the list, and according to my tests happens
12500 before the items are even added. Also happens if there isn't even
12501 an mdi client to get windows from.
12503 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
12505 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
12506 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
12508 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
12510 * DataGridTableStyle.cs:
12511 - Create always the styles for the missing columns even if they are
12512 provided by the user (not default table style)
12515 - Fixes SetDataBinding (always re-attach source)
12516 - Fixes SetNewDataSource (only clear styles if they are not for
12518 - Expands OnTableStylesCollectionChanged to handle style refresh
12519 and remove properly
12521 2005-11-29 Jackson Harper <jackson@ximian.com>
12523 * FileDialog.cs: Implement missing bits, remove some dead
12525 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
12526 creation of the panel so that the options set on the dialog are
12527 seen when the panel is created.
12528 * TreeView.cs: raise a click when items are clicked.
12530 2005-11-29 Jackson Harper <jackson@ximian.com>
12532 * MdiClient.cs: Pass some signature methods through to base.
12534 2005-11-28 Jackson Harper <jackson@ximian.com>
12536 * ListView.cs: Raise the click event when items are clicked.
12538 2005-11-28 Jackson Harper <jackson@ximian.com>
12540 * MdiClient.cs: Make this algorithm even more beautiful. And fix
12543 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
12545 * ThemeNice.cs: - Removed 1 pixel bitmaps
12546 - Use SmoothingMode.AntiAlias where it makes sense
12547 (ScrollButton arrow for example)
12548 - Enhanced Button focus drawing
12549 - Fixed ComboBox drawing (no artefacts anymore, focus
12550 rectangle is back again, reduced size of ComboButton, etc.)
12551 - Fixed RadioButton focus drawing for Appearence.Button
12552 - Slight ScrollButton redesign
12553 - Some LinearGradientBrush size fixes
12554 - GroupBoxes have now rounded edges
12555 - Fixed StatusBar drawing
12557 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
12559 * ThemeNice.cs: - Remove dead code
12560 - use correct background colors for menus, etc.
12561 - Fake pixel drawing with 1 pixel bitmaps
12563 2005-11-24 Jackson Harper <jackson@ximian.com>
12565 * MdiClient.cs: Size the scrollbars when resizing the window.
12566 - Resize the maximized windows when the client is resized
12567 * Form.cs: Make the child context available
12569 2005-11-23 Jackson Harper <jackson@ximian.com>
12571 * MdiChildContext.cs: Don't size windows if they are maximized.
12573 2005-11-23 Mike Kestner <mkestner@novell.com>
12575 * ContextMenu.cs: use MenuTracker.
12576 * Control.cs: remove menu handle usage.
12577 * Form.cs: remove menu handle usage.
12578 * Hwnd.cs: remove menu handle usage.
12579 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
12580 motion and clicks to the new Tracker handlers.
12581 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
12583 * MenuAPI.cs: refactored to combine popup and menubar event handling.
12584 Killed the MENU and MENUITEM data types and associated collections
12585 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
12586 MenuTracker class that exposes the leftovers from the old MenuAPI
12587 static methods. Restructured Capture handling so that only one grab is
12588 done for the entire menu hierarchy instead of handing off grabs to
12589 submenus. Tracker now has an invisible control to Capture when active.
12590 * MenuItem.cs: add sizing accessors, kill Create
12592 * Theme.cs: remove menu handle and MENU(ITEM) usage.
12593 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
12594 MENU(ITEM). remove menu handle usage, use Menu directly.
12595 * XplatUIDriver.cs: remove menu handle usage.
12596 * XplatUIOSX.cs: remove menu handle usage.
12597 * XplatUIWin32.cs: remove menu handle usage.
12598 * XplatUIX11.cs: remove menu handle usage.
12600 2005-11-22 Jackson Harper <jackson@ximian.com>
12602 * Hwnd.cs: Don't compute the menu size for
12603 DefaultClientRectangle.
12604 - Reenable menu sizes being computed for GetClienRectangle.
12605 * Form.cs: Remove comment of trechery
12607 2005-11-22 Jackson Harper <jackson@ximian.com>
12609 * Hwnd.cs: The adjustments for the menu bar are made when it is
12610 attached to the form.
12612 2005-11-19 Jackson Harper <jackson@ximian.com>
12614 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
12615 (just like on windows).
12617 2005-11-19 Jackson Harper <jackson@ximian.com>
12619 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
12620 use real buttons anymore because they are in non client area. The
12621 one TODO here is that I need to somehow invalidate a section of
12622 the non client area.
12624 2005-11-18 Jackson Harper <jackson@ximian.com>
12626 * Control.cs: Put the enum check back in now that MDI doesnt have
12627 to use this to set border styles.
12628 * Form.cs: Only set mdi child windows borders if the handle has
12630 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
12631 this directly on to the driver.
12632 - Get the move start position before adjusting for the titlebar
12633 height, this fixes the windows "skipping" when they are first
12636 2005-11-18 Jackson Harper <jackson@ximian.com>
12638 * XplatUIX11.cs: Just compute the mdi borders separately as they
12639 don't totally match up with normal form borders.
12641 2005-11-18 Jackson Harper <jackson@ximian.com>
12643 * Control.cs: Set WS_ styles for borders, so that the driver does
12644 not have to retrieve the control instance to figure out what kind
12645 of borders it should have.
12646 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
12647 driver can know its an mdi child easily.
12648 * XplatUIX11.cs: Get the border styles and whether the window is
12649 MDI from the Styles and ExStyles params instead of having to get a
12650 control. This prevents a chicken and egg problem.
12652 2005-11-18 Jackson Harper <jackson@ximian.com>
12654 * MdiClient.cs: Fix typo so scrollbars show up correctly.
12656 2005-11-18 Jackson Harper <jackson@ximian.com>
12658 * MdiClient.cs: Calculate when to add and remove scrollbars
12660 * MdiChildContext.cs: Adjust the y position to take the titlebar
12662 - No height for FormBorderStyle.None
12664 2005-11-18 Jackson Harper <jackson@ximian.com>
12666 * Control.cs: Allow non enum values to be used for
12667 InternalBorderStyle. MDI does this to set a special border style.
12668 - New utility methods for converting points to/from client coords
12669 - Add the newly created control to the Controls collection before
12670 updating its style. This way UpdateStyle can walk the control
12671 heirarchy to find the control if needed.
12672 so I don't need to create a new Point object all the time.
12673 * Form.cs: Let MDI windows handle their border styles.
12674 - Set styles on MDI windows so the correct title style is derived.
12675 * MdiChildContext.cs: Move all the painting and window handling
12676 into the non client area.
12677 - Use correct sizing and put correct buttons on frames based on
12678 the FormBorderStyle.
12679 - Notify the mdi client about scrolling
12680 - Need to handle the buttons ourselves now, because they are all
12681 in non client areas and we can't add controls there.
12682 * MdiClient.cs: Halfway to scrolling, this implementation is
12683 somewhat broken though, we need to check to make sure other
12684 windows aren't causing scrolling before removing the bars. Also
12685 the bars need to be drawn on top, maybe I can switch implicit
12686 controls to be on top.
12687 * Hwnd.cs: caption_height and tool_caption_height are now
12688 properties of an hwnd, this way they can be set by the driver
12689 based on the type of window they are. In X11 the window manager
12690 handles the decorations so caption_height is zero unless its an
12692 - Add 3 pixel borders for MDI windows (0xFFFF).
12693 - Get rid of some code duplication, have DefaultClientRectanle
12694 just call GetClientRectangle.
12695 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
12697 - Set border styles differently for mdi windows.
12698 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
12701 2005-11-15 Mike Kestner <mkestner@novell.com>
12703 * Menu.cs: when adding an item to the collection, if item is already
12704 parented, remove it from the parent.
12706 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
12708 * X11DesktopColors.cs: Added KDE support
12710 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
12713 - Clipboard methods now can translate Rtf format
12714 - No longer removes clipboard contents whenever a new format is added
12715 to allow placing multiple formats on the clipboard
12716 * Clipboard.cs: Clipboard now supports getting a IDataObject and
12717 will place all formats contained in it onto the clipboard. Also
12718 now cleans the clipboard before placing a new object onto it
12720 - Implemented set_Rtf
12721 - Implemented set_SelectedRtf
12722 - Created InsertRTFFromStream() method to allow single code base
12723 for all properties and methods that insert RTF into document
12724 - Removed debug output
12726 - Fixed Delete(int) to fix up line numbers
12727 - Fixed ReplaceSelection to combine start and end line
12728 - Fixed serious DeleteChars bug that would leave the document tree
12730 - Improved DumpTree with several logic checks to detect broken
12732 - Removed debug lines
12733 - Fixed Caret.WordForward/WordBack moving code, now always also
12734 updates caret.tag (fixes crash when word-selecting across tag
12735 boundaries via keyboard)
12736 - Added Insert() method for inserting multiline text into documents
12737 - Fixed DeleteChars() calculation errors that would cause a broken
12738 tag chain with multiple tag lines
12739 - DeleteChars() no longer crashes on multi-tag lines if not all tags
12740 - Split() no longer moves caret if split is at caret location
12741 - ReplaceSelection() now updates the cursor and re-displays it
12742 - ReplaceSelection() now uses new Insert() method to avoid code
12744 - FormatText() can now handle formatting partial lines
12746 - Append now uses new TextControl.Insert() method (this avoids
12748 - Implemented Ctrl-X (Cut) (
12749 - Implemented Ctrl-C (Copy)
12750 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
12751 regeneration when pasting text; roundtripping Copy&Paste within
12752 edit control still fails due to some calculation bugs in GenerateRTF)
12753 - The Delete key will now remove the current selection if it is visible
12754 * TextBox.cs: Removed debug lines
12755 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
12756 driver to be initialized and can't therefore be done via a static ctor)
12758 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
12760 * TextControl.cs: Added backend code for finding char arrays and strings
12762 - Added mouse wheel scroll support
12763 - Added support for VScroll and HScroll events
12765 - Implemented all seven Find() variants
12766 - Implemented GetCharFromPosition()
12767 - Implemented GetCharIndexFromPosition()
12768 - Implemented GetLineFromIndex()
12769 - Implemented GetPositionFromCharIndex();
12770 - Implemented SaveFile for PlainText and UnicodeText
12771 - Fixed set_Font, now setting a new font applies that font to
12773 - Implemented generic Document to RTF converter
12774 - Implemented SaveFile for RichText format (still missing unicode
12775 conversion for non-ansi chars)
12776 - Implemented get_Rtf
12777 - Implemented get_SelectedRtf
12779 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
12781 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
12782 to allow any captures to be released before triggering OnClick. This
12783 way a click handler may capture the mouse without interference.
12784 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
12785 This way we send them even though X may not allow a grab (if the window
12786 isn't visible, for example)
12788 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
12790 * DataGridViewRowEventArgs.cs: DataGridView implementation
12791 * DataGridViewElement.cs: DataGridView implementation
12792 * DataGridViewComboBoxCell.cs: DataGridView implementation
12793 * DataGridViewDataErrorContexts.cs: DataGridView implementation
12794 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
12795 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
12796 * ImageLayout.cs: DataGridView implementation
12797 * DataGridViewComboBoxColumn.cs: DataGridView implementation
12798 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
12799 * DataGridViewSelectionMode.cs: DataGridView implementation
12800 * IDataGridViewEditingControl.cs: DataGridView implementation
12801 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
12802 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
12803 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
12804 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
12805 * DataGridViewColumnSortMode.cs: DataGridView implementation
12806 * DataGridView.cs: DataGridView implementation
12807 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
12808 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
12809 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
12810 * Padding.cs: DataGridView implementation
12811 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
12812 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
12813 * DataGridViewRowEventHandler.cs: DataGridView implementation
12814 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
12815 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
12816 * DataGridViewButtonCell.cs: DataGridView implementation
12817 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
12818 * DataGridViewEditMode.cs: DataGridView implementation
12819 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
12820 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
12821 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
12822 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
12823 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
12824 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
12825 * DataGridViewCellEventHandler.cs: DataGridView implementation
12826 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
12827 * DataGridViewCellStyleConverter.cs: DataGridView implementation
12828 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
12829 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
12830 * DataGridViewColumnEventArgs.cs: DataGridView implementation
12831 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
12832 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
12833 * QuestionEventArgs.cs: DataGridView implementation
12834 * IDataGridViewEditingCell.cs: DataGridView implementation
12835 * DataGridViewTriState.cs: DataGridView implementation
12836 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
12837 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
12838 * DataGridViewColumnCollection.cs: DataGridView implementation
12839 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
12840 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
12841 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
12842 * DataGridViewColumn.cs: DataGridView implementation
12843 * DataGridViewCellBorderStyle.cs: DataGridView implementation
12844 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
12845 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
12846 * DataGridViewRow.cs: DataGridView implementation
12847 * DataGridViewImageCellLayout.cs: DataGridView implementation
12848 * DataGridViewImageCell.cs: DataGridView implementation
12849 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
12850 * DataGridViewCheckBoxCell.cs: DataGridView implementation
12851 * DataGridViewHeaderCell.cs: DataGridView implementation
12852 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
12853 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
12854 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
12855 * DataGridViewTextBoxColumn.cs: DataGridView implementation
12856 * QuestionEventHandler.cs: DataGridView implementation
12857 * DataGridViewCellStyleScopes.cs: DataGridView implementation
12858 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
12859 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
12860 * DataGridViewCell.cs: DataGridView implementation
12861 * DataGridViewCellEventArgs.cs: DataGridView implementation
12862 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
12863 * DataGridViewCellStyle.cs: DataGridView implementation
12864 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
12865 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
12866 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
12867 * TextFormatFlags.cs: DataGridView implementation
12868 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
12869 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
12870 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
12871 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
12872 * DataGridViewButtonColumn.cs: DataGridView implementation
12873 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
12874 * HandledMouseEventArgs.cs: DataGridView implementation
12875 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
12876 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
12877 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
12878 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
12879 * DataGridViewRowCollection.cs: DataGridView implementation
12880 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
12881 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
12882 * DataGridViewHitTestType.cs: DataGridView implementation
12883 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
12884 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
12885 * DataGridViewColumnEventHandler.cs: DataGridView implementation
12886 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
12887 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
12888 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
12889 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
12890 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
12891 * DataGridViewContentAlignment.cs: DataGridView implementation
12892 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
12893 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
12894 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
12895 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
12896 * DataGridViewPaintParts.cs: DataGridView implementation
12897 * DataGridViewCellCollection.cs: DataGridView implementation
12898 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
12899 * DataGridViewImageColumn.cs: DataGridView implementation
12900 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
12901 * DataGridViewElementStates.cs: DataGridView implementation
12902 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
12903 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
12904 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
12905 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
12906 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
12907 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
12908 * DataGridViewRowHeaderCell.cs: DataGridView implementation
12909 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
12910 * DataGridViewTextBoxCell.cs: DataGridView implementation
12911 * DataGridViewBand.cs: DataGridView implementation
12912 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
12913 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
12914 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
12915 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
12916 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
12917 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
12918 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
12919 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
12920 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
12921 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
12922 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
12924 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
12926 * ThemeWin32Classic.cs:
12927 - Draw the outside focus rectangle around buttons
12928 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
12929 doesn't use end caps for every dash of a line anymore. This
12930 workaround ignores the forecolor.
12932 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
12934 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
12937 2005-11-07 Jackson Harper <jackson@ximian.com>
12939 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
12941 2005-11-07 Jackson Harper <jackson@ximian.com>
12943 * ScrollableControl.cs: Calculate the maximum and change vars
12944 (more) correctly so that scrollbars appear as a sensible size.
12946 2005-11-04 Jackson Harper <jackson@ximian.com>
12948 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
12950 * TreeView.cs: When the tree is sorted null out the top_node so
12951 that it is recalculated.
12952 - Use dotted lines instead of dashed lines to match MS better.
12954 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
12957 - Implements key search for items. Useful when browsing files with FileDialog
12958 - When changing view mode or when clear the items reset scrollbar positions
12960 2005-11-04 Jackson Harper <jackson@ximian.com>
12962 * CurrencyManager.cs: Implement the MetaDataChanged event, the
12963 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
12964 as to what the method may do as there is no real way of creating a
12965 derived CurrencyManager and calling the method.
12967 2005-11-03 Jackson Harper <jackson@ximian.com>
12969 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
12970 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
12971 method which seems to just be used internally to refresh the tabs.
12973 2005-11-03 Jackson Harper <jackson@ximian.com>
12975 * TabControl.cs: Implement the remove method. Fix some broken
12978 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12980 * DateTimePicker.cs:
12981 - Added missing DateTimePickerAccessibleObject class
12982 - Added missing events
12983 - Added OnFontChanged method
12984 * Form.cs: Added missing attributes
12985 * TreeView.cs: Added missing attributes
12987 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12989 * GridItemCollection.cs: Fix signatures
12991 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12993 * XplatUI.cs: Updated build rev/date
12994 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
12995 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
12996 * Application.cs: Trigger context-specific ExitThread events
12998 2005-11-03 Jackson Harper <jackson@ximian.com>
13002 * GridTableStylesCollection.cs:
13007 * MonthCalendar.cs: Signature fixes
13009 2005-11-03 Jackson Harper <jackson@ximian.com>
13011 * TreeNodeCollection.cs: Remove should not be virtual.
13012 * TreeView.cs: Implement the last of the missing methods.
13014 2005-11-03 Jackson Harper <jackson@ximian.com>
13016 * TreeNodeConverter.cs: Implement to get off my class-status back.
13018 2005-11-03 Jackson Harper <jackson@ximian.com>
13020 * TreeView.cs: Hookup the bits for drag and drop.
13021 * TreeNode.cs: Don't cache the tree_view or index anymore, now
13022 that nodes can be moved from tree to tree easily this just causes
13023 all sorts of problems.
13024 * TreeNodeCollection: Don't need to give treenodes an index and
13025 treeview anymore when they are added, these are computed on the
13026 fly. Also make sure to remove a node before its added.
13028 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
13031 - Added CaretSelection enum
13032 - Added comparison methods to Marker struct, makes selection code
13034 - Added SelectionStart and SelectionEnd as 'moveable' location for
13035 the CaretDirection enum and handler
13036 - Added selection_prev variable to track optimized invalidation for
13037 word and line selection
13038 - Added SelectionVisible property (returns true if there is a valid
13040 - Switched CaretHasFocus to only display the caret if there is no
13042 - Avoiding StringBuilder.ToString to retrieve a single char, instead
13043 using the direct character index; should be much faster
13044 - Added various conditional debug statements
13045 - Fixed invalidation calculation for selection ranges
13046 - Added ExpandSelection() method to support word and line selection
13047 - Switched SetSelectionToCaret to use new Marker compare overloads
13048 - Added central IsWordSeparator() method to determine word
13049 separators/whitespace and FindWordSeparator() to streamline common
13050 usage of IsWordSeparator()
13052 - Removed unneeded grabbed variable, it was just mirroring
13054 - No longer firing OnTextChanged event when Text setter is called,
13055 since the base will fire the event for us
13056 - Added handling of Ctrl-Up/Down selection
13057 - Added handling of Shift-Cursorkey selection
13058 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
13060 - Added handling of Shift and Ctrl-Shift-Home/End selection
13061 - Removed some debug output
13062 - Added handling for single/double/tripple-click to place caret/
13063 select word/select line respectively (Fixes bug #76031)
13064 - Added support for drag expansion of word/line selection
13065 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
13068 2005-11-02 Jackson Harper <jackson@ximian.com>
13070 * X11Dnd.cs: If the drag is going to and from a MWF window just
13071 copy the data instead of sending it out through the X Selection
13074 2005-11-02 Jackson Harper <jackson@ximian.com>
13077 * XplatUIX11.cs: When in a drag we don't want motion notify
13078 messages to get passed on to the other controls. This prevents
13079 mouse move messages from showing up in the drag source.
13081 2005-11-02 Jackson Harper <jackson@ximian.com>
13083 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
13084 the correct button is release to end a drag.
13085 * XplatUIX11.cs: Make the button state internal so the drag system
13086 can access it. Dragging needs to know about all button releases,
13087 not just left button.
13089 2005-11-02 Miguel de Icaza <miguel@novell.com>
13091 * Form.cs (Icon): If the icon is null, reset the icon to the
13094 * Cursor.cs: When writing the AND-mask bitmap do not include the
13095 number of colors, but hardcode those to two (black and white),
13096 fixes the loading of color cursors (Paint Dot Net).
13098 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
13099 turn off autoscaling.
13101 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
13103 2005-11-02 Jackson Harper <jackson@ximian.com>
13105 * X11Dnd.cs: Make sure to send a status message if the pointer
13106 enters a control that can not accept a drop, otherwise the cursor
13107 isn't updated correctly. Also tried to compress the lines of code
13110 2005-11-02 Jackson Harper <jackson@ximian.com>
13112 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
13113 set actions correctly. This isn't perfect as XDND and win32 have
13114 some differences on how you allow actions. I'll clear this up by
13115 adding a path for drag from MWF to MWF windows.
13116 * XplatUIX11.cs: Hook into the dnd system.
13118 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
13120 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
13121 previously shown but they are no longer need it. Very obvious when
13122 browsing files with FileDialog.
13124 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
13126 * Control.cs: We always need to call OnPaintBackground. We pretty much
13127 ignore AllPaintingInWmPaint and always do the painting there, whether
13128 it's set or not, since we always ignore the WM_ERASEBKGND message
13129 (which we don't generate on X11). This fixes #76616.
13130 * Panel.cs: Removed unneeded background painting. This happens properly
13131 in Control.cs already
13133 2005-10-31 Mike Kestner <mkestner@novell.com>
13135 * Menu.cs: Add items to collection before setting their index.
13136 * MenuItem.cs : add range checking with ArgumentException like MS.
13139 2005-10-31 Jackson Harper <jackson@ximian.com>
13141 * ListBox.cs: Invalidate if the area is visible at all not just
13142 contained in the visible rect. Fixes unselection of semi visible
13145 2005-10-31 Jackson Harper <jackson@ximian.com>
13147 * Control.cs: Consistently name the dnd methods. Make them
13148 internal so we can override them to match some MS behavoir
13150 * Win32DnD.cs: Use the new consistent names.
13152 2005-10-31 Jackson Harper <jackson@ximian.com>
13154 * TreeView.cs: Don't draw the selected node when we lose focus.
13156 2005-10-31 Jackson Harper <jackson@ximian.com>
13158 * X11Dnd.cs: We still need to reset the state even though a full
13159 reset isn't being done, otherwise status's still get sent all over
13162 2005-10-31 Jackson Harper <jackson@ximian.com>
13164 * Control.cs: Make the dnd_aware flag internal so the dnd
13165 subsystem can check it. Catch exceptions thrown in dnd handlers to
13167 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
13168 * X11Dnd.cs: Handle null data in the converters. Set the XDND
13169 version when sending a XdndEnter. Use the control/hwnd dnd_aware
13170 flags to reduce the number of dnd enters/status's sent.
13172 2005-10-31 Jackson Harper <jackson@ximian.com>
13174 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
13176 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
13178 * PictureBox.cs: Fixes 76512
13180 2005-10-28 Jackson Harper <jackson@ximian.com>
13182 * X11Dnd.cs: Early implementation to support winforms being a drag
13183 source for data on X11. Also restructured the converters so they
13184 can go both ways now.
13185 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
13187 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
13189 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
13192 2005-10-27 Jackson Harper <jackson@ximian.com>
13194 * TreeNode.cs: Implement serialization so my DnD examples will work.
13196 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
13198 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
13199 TreeView.cs: Don't dispose objects that are not owned.
13201 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
13203 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
13204 should retrieve the current cursor and report that, but XplatUI
13205 doesn't (yet) have an interface for that (and I'm not sure I even
13207 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
13208 until any message loop processing is done (and the WM_SETCURSOR
13209 replaces the cursor to the proper one)
13211 - Fixed override behaviour, we can't set the cursor globally on X11,
13212 just for our windows.
13213 - Invalidating the System.Drawing X11 display handle when we are
13215 * Control.cs: Fix to make csc happy
13217 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
13220 - get_Text: Add last line (without trailing newline) to returned
13221 value (Fixes 76212)
13222 - get_TextLength: Count last line in returned length
13223 - ToString: Call Text property instead of duplicating code
13225 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
13227 * ImageList.cs: Dispose ImageAttributes objects.
13229 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
13231 * ImageList.cs: Use attribute constructors with less arguments where
13234 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
13236 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
13237 Use typeof instead of strings when assembly is referenced. Added
13238 some more comments.
13240 2005-10-21 Jackson Harper <jackson@ximian.com>
13242 * ListView.cs: Raise a double click event. Also tried to somewhat
13243 fix when the selectedindexchanged event is raised. Its still
13246 2005-10-21 Jackson Harper <jackson@ximian.com>
13248 * TreeView.cs: New method to invalidate the plus minus area of a
13249 node without invalidating the whole node (maybe this can be used
13250 in some more places).
13251 * TreeNodeCollection.cs: When adding to an empty node we need to
13252 invalidate its plus minus area so the little block shows up.
13254 2005-10-21 Jackson Harper <jackson@ximian.com>
13256 * TreeView.cs: Make sure that when we invalidate a node the bounds
13257 are big enough to cover the selected box and the focus
13258 rectangle. Use a different colour for the lines connecting nodes
13259 so they show up with all themes.
13261 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13263 * NativeWindow.cs: Don't call anything that could call into the driver,
13264 we might be on a different thread.
13266 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13268 * Control.cs(Dispose): Since Dispose might run on a different thread,
13269 make sure that we call methods that could call into the driver via
13270 invoke, to avoid thread issues
13272 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13274 * XplatUI.cs: Removed finalizer
13275 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
13276 not allowing to be called on the finalizer thread.
13278 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
13281 - Reverted r51889 and r51891.
13282 - Added ImageListItem class that stores unmodified image items and image
13283 properties required to create list images until handle is created.
13284 - Added AddItem and moved image creation logic to AddItemInternal.
13285 - Added CreateHandle method that creates images based on unmodified items.
13286 - Added DestroyHandle that changes state to store unmodified items.
13287 - Add and AddStrip methods no more create handle.
13288 - ReduceColorDepth has no return value.
13289 - Dispose destroys handle.
13290 - Modified other methods to reflect the above changes.
13291 - Implemented key support.
13292 - Added profile 2.0 members and attributes.
13293 - Added private Reset and ShouldSerialize methods that provide the same
13294 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
13295 them as they are private.
13296 - Added some more comments about implementation details.
13298 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13300 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
13302 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13304 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
13306 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13308 * DataGridDrawingLogic.cs: Fixes column hit calcultation
13309 * DataGridColumnStyle.cs: Remove debug message
13311 2005-10-20 Jackson Harper <jackson@ximian.com>
13313 * TreeView.cs: We can always get input keys regardless of whether
13314 or not editing is enabled. They are used for navigation.
13316 2005-10-20 Jackson Harper <jackson@ximian.com>
13318 * TreeNode.cs: Use the viewport rect for determining if a node
13319 needs to be moved for visibility. Don't use Begin/End edit. This
13320 calls a full refresh when its done.
13321 * TreeView.cs: New SetBottom works correctly. Make the viewport
13322 rect property internal so the treenodes can see it. When clicking
13323 on a node we need to ensure that its visible because it might just
13324 be partly visible when clicked.
13326 2005-10-20 Jackson Harper <jackson@ximian.com>
13328 * TreeNodeCollection.cs: Remove debug code.
13330 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
13332 * Datagrid.cs: Implements column sorting in Datagrid
13333 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
13335 2005-10-20 Jackson Harper <jackson@ximian.com>
13337 * TreeNodeCollection.cs: Remove items properly. Update the correct
13338 area after removing them.
13340 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
13342 * Datagrid.cs: Should not call base.OnPaintBackground
13344 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13346 * XplatUIX11.cs (GetMessage):
13347 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
13348 window instead of client window
13349 - Now properly calculates NC_xBUTTONUP message coordinates
13350 - ScreenToMenu now properly calculates it's coordinates of whole
13351 window, since menus are in the whole window, not in the client
13353 - Added WholeToScreen coordinate translation method
13355 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13357 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
13358 want to return a message, loop back to the beginning of the function
13359 and grab the next real message to process instead.
13361 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13363 * Splitter.cs: Properly set limits if no filler control is used
13365 2005-10-19 Jackson Harper <jackson@ximian.com>
13367 * ColorDialog.cs: Don't show the help button if it is not enabled
13368 instead of disabling it (this is what MS does). Don't create the
13369 panel until the dialog is run, otherwise the vars (such as
13370 ShowHelp) are not set yet.
13372 2005-10-19 Jackson Harper <jackson@ximian.com>
13374 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
13375 are reduced when adding nodes.
13377 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
13380 2005-10-19 Jackson Harper <jackson@ximian.com>
13382 * FolderBrowserDialog.cs: End editing our treeview so the window
13383 actually gets refreshed.
13385 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
13387 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
13388 Obsoleted handling of WM_ERASEBKGND, now always draws our background
13391 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13393 * MenuAPI.cs: Returns after Hidding window
13394 * XplatUIX11.cs: Added TODO found while debugging menu issues
13396 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
13398 * XplatUIX11.cs: Do not re-map the whole window when it's size
13399 becomes non-zero unless it's supposed to be actually visible
13401 2005-10-18 Jackson Harper <jackson@ximian.com>
13403 * TreeView.cs: We don't need to keep a count anymore.
13404 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
13405 use the Grow method.
13407 2005-10-18 Jackson Harper <jackson@ximian.com>
13409 * TreeNodeCollection.cs: Insert is not supported on arrays, so
13410 implement it manually here.
13412 2005-10-18 Jackson Harper <jackson@ximian.com>
13414 * ImageList.cs: Dont kill the list when the colour depth is
13415 changed, just change the colour depth of all the images.
13416 - Same goes for setting the image size. Just resize them all
13417 instead of killing the list softly.
13419 2005-10-18 Jackson Harper <jackson@ximian.com>
13421 * Control.cs: Don't invalidate empty rectangles.
13423 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13426 - Adds checked item to the Checked/Item lists (where empty before)
13427 - Do not add items to the Selected lists if they are already present
13429 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
13430 - When deleting items make sure that we delete them for the Selected
13431 and Checked list also.
13433 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13435 * Label.cs: Dispose objects no longer used
13436 * ThemeWin32Classic.cs: Dispose objects no longer used
13438 2005-10-18 Jackson Harper <jackson@ximian.com>
13440 * TabControl.cs: Don't refresh the whole control when the tabs are
13441 scrolled, we just need to refresh the tab area.
13443 2005-10-17 Jackson Harper <jackson@ximian.com>
13445 * XplatUIX11.cs: Compress code a little bit. Only calculate the
13446 after handle when we need it.
13448 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
13450 * Control.cs: When the parent size changes, recalculate anchor
13451 positions. Partial fix for #76462
13453 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
13455 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
13456 drawn. Fixes #76462
13458 2005-10-17 Jackson Harper <jackson@ximian.com>
13460 * MonthCalendar.cs: Don't create the numeric up down until our
13461 handle is created. Otherwise our handle is created in the
13462 constructor and we don't know if we are a WS_CHILD or WS_POPUP
13465 2005-10-17 Jackson Harper <jackson@ximian.com>
13467 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
13470 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
13471 * TreeNode.cs : small logical fix (was using local var instead of field)
13473 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
13475 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
13477 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
13479 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
13481 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
13484 - Re-implemented anchoring code. My first version was really broken.
13485 This fixes bug #76033. Unlike the previous implementation we will
13486 no longer have round errors since all numbers are calculated from
13487 scratch every time. Removed various anchor-related obsolete vars.
13488 - InitLayout no longer causes layout event firing and layout to be
13491 2005-10-16 Jackson Harper <jackson@ximian.com>
13493 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
13496 2005-10-16 Jackson Harper <jackson@ximian.com>
13498 * TabControl.cs: Remove debug code.
13500 2005-10-16 Jackson Harper <jackson@ximian.com>
13502 * XEventQueue.cs: Increase the default queue size (very simple
13503 apps needed to grow the queue).
13504 * Hwnd.cs: No finalizer so we don't need to suppress
13505 finalization. Compute the invalid area manually so a new rectangle
13506 does not newto be created.
13507 * ScrollableControl.cs: Don't set any params (otherwise visibility
13508 isn't set correctly).
13509 * MdiChildContext.cs: New constructor takes the mdi parent so it
13510 doesn't have to be computed and avoids a crash on windows. Draw
13511 the window icon properly, and allow the text to be seen.
13512 * Form.cs: Use new MdiChildContext constructor. Make sure the
13513 child context isn't null in wndproc.
13514 * TabControl.cs: Don't set focus, this is muddling keyboard
13515 behavoir. Expand the tab rows when a window size increase will
13516 allow extra tabs to be seen. Don't allow tabs smaller than the
13517 width of a window to be scrolled out of view.
13519 * TreeView.cs: Use measure string to calculate a nodes width, the
13520 width is cached and only updated when the text or the font is
13521 changed. Don't check for expand/collapse clicks on the first level
13522 nodes if root lines are disabled.
13524 2005-10-16 Ritvik Mayank <mritvik@novell.com>
13526 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
13528 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13530 * DataGridBoolColumn.cs: fixes warning
13532 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13534 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
13535 to match more to match more precisely the MS Net behavior
13537 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13539 * Hwnd.cs: Added field to track if window is mapped
13541 - Unmap windows if they become 0-size, re-map when
13542 they are >0 again; fixes #76035
13543 - Re-set our error handler after initializing X11Desktop
13544 to override any error handlers Gtk or whatever was called
13547 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13549 * CheckedListBox.cs: Removed unused vars
13550 * ListView.cs: Fixed signatures
13551 * RichTextBox.cs: Removed unused vars
13552 * TextBoxBase.cs: Removed unused vars
13553 * XplatUIWin32.cs: Removed unused vars
13554 * XplatUIX11.cs: Removed unused vars
13555 * XplatUI.cs: Updated version and date to latest published
13557 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13559 * Cursor.cs: Added private .ctor to work around a bug in
13560 resourceset (Thanks to Geoff Norton for the help on this)
13561 * SplitterEventArgs.cs: Made fields accessible so we don't
13562 waste boatloads of objects and can reuse the same one
13564 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
13565 any captions and borders when generating screen coordinates
13566 * Splitter.cs: Reimplemented control, now fully complete, uses
13567 rubberband drawing, supports and obeys all properties, has
13570 2005-10-13 Miguel de Icaza <miguel@novell.com>
13572 * Form.cs (Form): Setup default values for autoscale and
13573 autoscale_base_size; Make these instance variables, not static
13576 (OnLoad): on the first load, adjust the size of the form.
13578 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13580 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
13581 width argument to DrawReversibleRectangle()
13582 * XplatUIWin32.cs, XplatUIX11.cs:
13583 - Implemented width for DrawReversibleRectangle()
13584 - Added logic to DrawReversibleRectangle that recognizes a zero
13585 width or height and only draws a line in that situation
13587 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13589 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
13590 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
13591 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
13592 method (it uses our FosterParent window to get a graphics context)
13594 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13596 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
13597 and SetWindowBackground methods
13599 - Setting proper ControlStyles
13600 - We no longer call XplatUI.SetWindowBackground and XplatUI.
13601 EraseWindowBackground, instead we draw the window background
13602 ourselves in PaintControlBackground. This behaviour is
13603 required to match MS, where, when OnPaintBackground is not
13604 called, the background is not drawn.
13605 - Removed unneeded Refresh() in set_Text
13606 * Hwnd.cs: Dropped the ErasePending support. No longer needed
13608 - Created DeriveStyles method to translate from CreateParams to
13609 FormBorderStyle and TitleStyle, also handles BorderStyle (which
13610 matches FormBorderStyle enum values)
13611 - Consolidated SetHwndStyles and CalculateWindowRect border/title
13612 style calculations into single DeriveStyles method
13613 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
13614 from redrawing the whole window on any resize or expose.
13615 - Fixed CreateWindow usage of SetWindowValuemask. Before not
13616 all styles were applied to our whole/client window appropriately
13617 - Removed EraseWindowBackground() and SetWindowBackground() methods
13618 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
13619 no longer clear/redraw the background through X
13620 - Removed handling of erase_pending bit, we have no use for it (or
13623 - Removed generation and handling of WM_ERASEBKGND message
13624 - Removed EraseWindowBackground() and SetWindowBackground() methods
13625 - Removed handling of hwnd.ErasePending flag
13627 - Removed EraseWindowBackground() and SetWindowBackground() methods
13628 - We no longer call EraseWindowBackground on PaintEventStart, we
13629 ignore the fErase flag, erasing is handled in Control in the
13631 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
13632 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
13633 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
13634 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
13635 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
13636 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
13637 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
13639 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
13641 * PropertyGrids.cs: Get sub properties
13642 * PropertyGridView.cs: Fix drawing code
13644 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13646 * ListBox.cs: Fixes 76383
13648 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13650 * DataGridTextBoxColumn.cs: Sets location and size before attachment
13651 * ThemeWin32Classic.cs: Fixes border drawing and calculations
13652 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
13655 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13657 * ComboBox.cs: Fixes border drawing
13659 2005-10-10 Miguel de Icaza <miguel@novell.com>
13661 * MimeIcon.cs: Ignore errors if the file can not be read.
13663 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13665 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
13666 - Fixed border calculations
13667 - Fixed horizontal scrolling in single column listboxes
13668 - Fixed drawing issues
13670 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
13672 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
13673 FormBorderStyle enum
13674 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
13675 code to determine FormBorderStyles from CreateParams
13677 - Fixed bug where we'd set the wrong window styles if we were
13678 not creating an MDI window
13679 - Added call to XplatUI.SetBorderStyle when form borders are set
13680 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
13682 - Removed obsolete edge style
13683 - Switched from BorderStyle to FormBorderStyle
13685 2005-10-10 Jackson Harper <jackson@ximian.com>
13687 * Form.cs: Use the property to get the window handle instead of
13688 accessing it directly. Prevents a null reference exception.
13690 2005-10-10 Jackson Harper <jackson@ximian.com>
13692 * TreeView.cs: Don't adjust the rect given to DrawString now that
13693 our libgdiplus draws correctly.
13695 2005-10-08 Jackson Harper <jackson@ximian.com>
13697 * TreeView.cs: Don't try to find the clicked on node if there are
13698 no nodes in the tree.
13700 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13706 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13708 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
13709 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
13711 Use ResPool for brushes and dispose System.Drawing objects that
13712 are not used anymore.
13714 2005-10-07 Jackson Harper <jackson@ximian.com>
13716 * MdiChildContext.cs: Use the new borders instead of drawing them
13719 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13721 * Calling UpdateBounds after changing the window's BorderStyle
13722 since the style can change the ClientSize
13724 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13726 * Control.cs: Made PaintControlBackground virtual
13727 * Panel.cs: Overriding PaintControlBackground instead of using paint
13728 event; paint event method was interfering with 'real' users of the
13731 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13733 * ThemeWin32Classic.cs: remove border drawing since it is handled
13734 by the base control class now and was causing double border drawing.
13736 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13738 * Panel.cs: Redraw our background on paint. Not a pretty solution,
13739 but it does seem to match MS behaviour. This fixes bug #75324
13741 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13743 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
13744 somewhat hackish looking
13746 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13749 - We now accept Enter even if AcceptEnter is false, if the containing
13750 form does not have an AcceptButton configured (fixes bug #76355)
13751 - Calculations are now fixed to no longer use Width/Height, but
13752 ClientSize.Width/Height, since we now support borders (this was
13753 a result of fixing borders and therefore bug #76166)
13754 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
13755 true (fixes bug #76354)
13757 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13760 - Defaulting BorderStyle and setting it in XplatUI when our window
13762 - Added enum check to InternalBorderStyle setter
13764 - Added drawing of window borders
13765 - Now properly calculates WM decorations offset for toplevel
13766 windows (fixes bug #74763)
13768 - Implemented BorderStyles for windows (we're letting win32 draw
13770 - Fixed the signature for SetWindowLong
13771 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
13772 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
13774 * UpDownBase.cs: Remove drawing of borders, this is handled by
13775 the driver, outside the client area
13776 * ListView.cs: Removed bogus border calculations. The control should
13777 be oblivious to borders, since those are not part of the client
13779 * X11DesktopColors.cs: Commented out (currently) unneeded variables
13780 * ThemeWin32Classic.cs: Removed border calculations from ListView
13783 2005-10-06 Jackson Harper <jackson@ximian.com>
13785 * MdiChildContext.cs: Clear out the old virtual position remove
13786 all the unneeded calls to CreateGraphics.
13788 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13790 * TextControl.cs: Use proper color for highlighted text; fixes #76350
13792 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13795 - Added loading and setting of our new default icon
13796 - Only set icon if window is already created
13798 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13801 - Do not explicitly set the foreground and background colors, to
13802 allow inheriting from parents (fixes #76302)
13803 - Use Control's InternalBorderStyle property to deal with borders
13805 2005-10-06 Jackson Harper <jackson@ximian.com>
13807 * MdiChildContext.cs: Use the new xplatui function to draw a
13810 2005-10-06 Jackson Harper <jackson@ximian.com>
13812 * Form.cs: Add the parent before creating the child context cause
13813 we need the parent when setting up the child.
13815 2005-10-06 Jackson Harper <jackson@ximian.com>
13817 * FolderBrowserDialog.cs: redo the tree population code so a
13818 second thread isn't used. Should be a lot faster and more stable
13821 2005-10-05 Jackson Harper <jackson@ximian.com>
13823 * TreeView.cs: There are no expand/collapse boxes if the node has
13826 2005-10-05 Jackson Harper <jackson@ximian.com>
13828 * X11DesktopColors.cs: Get menu colours for the gtk theme.
13830 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
13832 * FileDialog.cs: Fix InitialDirectory
13834 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13837 - Fixes changing between styles
13838 - Fixes simple mode
13839 - Fixes last item crashing when navigating with keyboard
13841 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13843 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
13845 2005-10-05 Jackson Harper <jackson@ximian.com>
13847 * TreeView.cs: If updating the root node do a full refresh.
13848 * TreeNode.cs: The root node should be expanded by default. Also
13849 added a utility prop to tell if we are the root node.
13850 * TreeNodeCollection.cs: Only refresh if the node we are being
13851 added to is expanded. Also added a comment on a potential
13854 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
13856 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
13857 in dispose method. Fixes #76330
13859 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
13861 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
13863 - Implements vertical and horizontal scrolling using XplatUI
13864 - Fixes keyboard navagation
13865 - Fixes EnsureVisible
13867 - Handles and draws focus properly
13870 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
13872 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
13873 Create handle. NET_2_0: Destroy handle when value is null.
13875 2005-10-03 Jackson Harper <jackson@ximian.com>
13877 * ScrollBar.cs: My last scrollbar patch was broken. This is a
13878 revert and a new patch to prevent the thumb from refreshing so
13881 2005-10-02 Jackson Harper <jackson@ximian.com>
13883 * ScrollBar.cs: Don't update position if it hasn't actually
13884 changed. This occurs when you hold down the increment/decrement
13885 buttons and the thumb gets to the max/min.
13887 2005-10-01 Jackson Harper <jackson@ximian.com>
13890 * MdiChildContext.cs:
13891 * MdiClient.cs: Implement ActiveMdiChild in Form.
13893 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
13895 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
13897 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
13899 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
13902 2005-09-30 Jackson Harper <jackson@ximian.com>
13904 * ListBox.cs: Don't do a full refresh unless some data has
13907 2005-09-30 Jackson Harper <jackson@ximian.com>
13909 * TreeView.cs: Make sure that the checkboxes size is factored in
13910 even when not visible.
13912 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13914 * FileDialog.cs: Fix Jordi's build break
13916 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13919 - Use standard the Windows colours for the combobox as espected
13920 - Dispose objects that use resouces when no longer need them
13922 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13924 * X11DesktopColors.cs: Initial incomplete implementation
13925 * XplatUIX11.cs: Added call to initialize X11DesktopColors
13927 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13930 - Switched Theme color names to match the names defined in
13931 System.Drawing.KnownColors. Life's hard enough, no need to make
13933 - Added setters to all theme color properties so themes can set
13934 their color schemes. The setters also propagate the color changes
13935 to System.Drawing.KnownColors via reflection
13936 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
13937 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
13938 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
13939 use the new, more logical theme color names
13940 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
13942 * ThemeWin32Classic.cs:
13943 - Removed code to set the old classic Windows colors. Instead it
13944 now relies on the colors returned by System.Drawing.KnownColors
13945 which will be either modern static colors (Unix) or colors
13946 read from the user's configuration (Win32)
13947 - Updated to use the new, more logical theme color names
13948 - Switched DataGrid drawing code to use only Theme colors instead of
13949 a mix of System.Drawing.KnownColors and Theme colors
13950 - DrawFrameControl(): Removed code that fills the button area, the
13951 fill would overwrite any previous fill done by a control. This
13953 - Added DrawReversibleRectangle() stub
13954 * ScrollableControl.cs: Set visible state to false when scrollbars
13955 are removed (pdn fix)
13956 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
13957 DrawReversibleRectangle() method to allow drawing primitive
13959 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
13961 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13963 * ImageList.cs: Add(Icon): Create handle.
13965 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13968 * ThemeWin32Classic.cs:
13969 - Fixes detail mode
13971 - Issues with drawing
13973 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13975 * ImageList.cs: Moved RecreateHandle back to ImageList as event
13976 source has to be the ImageList.
13978 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13980 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
13982 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13984 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
13986 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13988 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
13990 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
13991 * GridItem.cs: Fixed TODOs
13992 * GridItemCollection.cs: Added ICollection interface
13994 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13996 * ImageList.cs: Resize icons when needed.
13998 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
14001 - Fixes GetBounds and returns on screen rects
14003 - Fixes vertical and horzintal scrolling of items
14004 * ThemeWin32Classic.cs:
14007 2005-09-29 Raja R Harinath <harinath@gmail.com>
14009 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
14011 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
14013 * ImageList.cs: Added comments about handle creation. Moved Handle,
14014 HandleCreated and OnRecreateHandle implementations to ImageCollection.
14015 Handle is created in Add methods.
14017 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
14019 * DataGridDrawingLogic.cs:
14020 - Takes rows into account on Colum calculations
14021 - Returns the column when clickig
14023 - Fixes default HitTestInfo values
14024 - Fixes HitTestInfo.ToString
14025 - Fixes ResetBackColor
14027 2005-09-28 Jackson Harper <jackson@ximian.com>
14029 * MdiChildContext.cs: Obey rules for fixed sized windows (no
14030 sizing or cursor changes). Also added some temp code to draw the
14031 titlebars text (Makes dev a little easier).
14033 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
14035 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
14037 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
14039 * ListBox.cs: Fixes bug 76253
14041 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
14043 * ImageList.cs: Added comments about the current implementation. Added
14044 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
14045 Format32bppArgb to preserve transparency and can use Graphics.FromImage
14046 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
14047 with Bitmap.LockBits for better performance. Revised the whole file to
14048 match MS.NET behaviour and provide better performance. Non-public
14049 interface members are calling public members even when they throw
14050 NotSupportedException for better maintainability. Moved ColorDepth,
14051 ImageSize, ImageStream and TransparentColor implementations to
14052 ImageCollection for better performance as these properties are not used
14054 * ImageListStreamer.cs: Added a new internal constructor that takes an
14055 ImageList.ImageCollection and serializes Images based on
14056 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
14057 match ImageList property name.
14059 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
14061 * ListBox.cs: Fixes IndexFromPoint for last item
14063 2005-09-27 Jackson Harper <jackson@ximian.com>
14065 * Form.cs: Set the position of new mdi children correctly.
14067 2005-09-27 Jackson Harper <jackson@ximian.com>
14069 * MdiClient.cs: New mdi children need to be added to the back of
14070 the controls collection so the zorder is set correctly. Also add a
14071 count of all the child windows that have been created.
14073 2005-09-27 Jackson Harper <jackson@ximian.com>
14075 * Form.cs (CreateParams): Setup MDI forms correctly.
14077 2005-09-27 Jackson Harper <jackson@ximian.com>
14079 * MdiChildContext.cs:
14080 * MonthCalendar.cs:
14086 * ScrollableControl.cs:
14087 * ComboBox.cs: Add implicit controls using the new implict control
14088 functionality in ControlCollection. Also try to block multiple
14089 control add in a suspend/resume layout to save some cycles.
14091 2005-09-27 Jackson Harper <jackson@ximian.com>
14093 * Control.cs: Add functionality to the controls collection to add
14094 'implicit controls' these are controls that are created by the
14095 containing control but should not be exposed to the user. Such as
14096 scrollbars in the treeview.
14097 * Form.cs: The list var of the ControlsCollection is no longer
14098 available because of the potential of implicit controls getting
14099 ignored by someone accessing the list directly.
14101 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
14103 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
14104 loose it's parent. (Fixed bug introduced in r49103 when we added
14105 setting the child parent to null on Remove)
14107 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
14109 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
14110 * Splitter.cs: Added missing attributes for BorderStyle property.
14111 * TextBoxBase.cs: Marked Calculate* methods internal.
14112 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
14115 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
14117 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
14119 2005-09-25 Jackson Harper <jackson@ximian.com>
14121 * TreeView.cs: Update the node bounds correctly regardless of
14122 whether the node is visible.
14124 2005-09-25 Jackson Harper <jackson@ximian.com>
14126 * ImageList.cs: Don't dispose the image after it is added to the
14127 image list. Only reformat images that need to be resized.
14129 2005-09-25 Jackson Harper <jackson@ximian.com>
14131 * ImageList.cs: Don't set the format when changing the image.
14133 2005-09-25 Jackson Harper <jackson@ximian.com>
14135 * TreeView.cs: We can't just assume the node has a font. Use the
14136 treeviews font if no node font is available.
14138 2005-09-25 Jackson Harper <jackson@ximian.com>
14140 * TreeView.cs: Allow the scrollbars to be reset with negative
14142 - Don't add scrollbars to negative sized windows.
14144 2005-09-23 Jackson Harper <jackson@ximian.com>
14146 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
14147 old Mono.Posix. Also remove some stray code that shouldn't have
14150 2005-09-23 Jackson Harper <jackson@ximian.com>
14152 * TreeView.cs: Attempt at proper sizing of the horizontal
14153 scrollbar. Also don't resize the scrollbars unless they are
14156 2005-09-23 Jackson Harper <jackson@ximian.com>
14158 * TreeView.cs: We don't need to expand the invalid area when the
14159 selection changes, as this is all drawn in the node's bounding
14160 box. The area needs to be expanded (previous typo was contracting
14161 it) when the focus rect moves.
14163 2005-09-23 Jackson Harper <jackson@ximian.com>
14165 * TreeView.cs: Display the selection box under the correct
14166 circumstances. We were rendering white text with no selection box
14169 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
14171 * TextControl.cs(Split): Now updates selection start/end if it points
14172 into a line that's being split. Fixes a FIXME and bug #75258
14174 2005-09-23 Jackson Harper <jackson@ximian.com>
14177 * ListControl.cs: Don't use the path when retrieving binding
14178 managers from the binding context. My bat sense tells me that the
14179 path is only used on insertion.
14181 2005-09-22 Jackson Harper <jackson@ximian.com>
14183 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
14185 2005-09-22 Jackson Harper <jackson@ximian.com>
14187 * Splitter.cs: There are special cursors used for splitting.
14188 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
14190 2005-09-22 Jackson Harper <jackson@ximian.com>
14192 * Splitter.cs: Change the cursor appropriately when the splitter
14193 is moused over, so the user actually knows there is a splitter
14196 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14198 * Label.cs : Fix ToString method to give same output as MS.NET
14200 2005-09-22 Jackson Harper <jackson@ximian.com>
14202 * TreeView.cs: Create the scrollbars when the handle is created
14203 and add them right away, just make them invisble. Also account for
14204 the window being shrunk vertically to the point that the vert
14205 scrollbar needs to be added.
14206 - Remove some 0.5 adjustments to get around anti aliasing issues.
14208 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
14210 * MainMenu.cs: Fixes default value
14211 * MenuItem.cs: Fixes default value
14213 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
14215 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
14217 2005-09-21 Jackson Harper <jackson@ximian.com>
14219 * Control.cs: Don't try to set the border style on the window if
14220 it hasn't been created. When the window is created the border
14221 style will be used.
14223 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14225 * Control.cs (Update): Don't call XplatUI if we don't have a
14228 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14230 * ContainerControl.cs: Instead of throwing an exception, print
14231 a one-time warning about Validate not being implemented
14232 * XplatUIWin32.cs: Removed debug output
14234 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14236 * Control.cs: Only set XplatUI background if we expect the windowing
14237 system to handle the background. This stops controls that draw their
14238 own background from flickering
14240 * XplatUIX11.cs: Support custom visuals and colormaps for window
14241 creation. This allows, amongst other things, using MWF X11 windows
14244 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14246 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
14247 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
14248 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
14249 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
14250 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
14251 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
14252 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
14253 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
14254 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
14255 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
14256 GridColumnStylesCollection.cs,
14257 IDataGridColumnStyleEditingNotificationService.cs,
14258 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
14259 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
14260 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
14261 TreeNodeCollection.cs, AmbientProperties.cs,
14262 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
14263 DataObject.cs, ErrorProvider.cs, Splitter.cs,
14264 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
14265 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
14266 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
14267 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
14268 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
14269 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
14270 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
14271 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
14272 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
14273 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
14274 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
14275 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
14276 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
14277 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
14278 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
14279 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
14280 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
14281 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
14282 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
14283 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
14284 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
14285 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
14286 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
14287 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
14288 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
14289 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
14290 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
14291 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
14292 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
14293 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
14294 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
14295 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
14296 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
14297 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
14298 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
14300 2005-09-21 Jackson Harper <jackson@ximian.com>
14302 * TreeNode.cs: Call Before/After Expand not Collapse when
14305 2005-09-20 Jackson Harper <jackson@ximian.com>
14307 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
14309 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
14313 - Fixes proper storing of subitems
14314 - Fixes not updated items
14316 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
14318 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
14319 things if our window handle isn't created yet. Also disabled
14320 debug for TextBoxBase
14322 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
14324 * MenuAPI.cs: Remove filtering of events to allow menu usage
14326 2005-09-20 Miguel de Icaza <miguel@novell.com>
14328 * Cursor.cs: Allow null to be passed to Cursor.Current.
14330 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
14332 * ThemeWin32Classic.cs:
14333 - Change some private methods/fields to protected virtual so that
14334 they can be accessed and overriden in derived classes
14335 - First refactoring of some methods. Derived themes now don't
14336 need to duplicate the complete code from ThemeWin32Classic
14338 - Added nice StatusBar
14339 - Derive from ThemeWin32Classic and not Theme
14340 - Removed duplicate ThemeWin32Classic code
14342 2005-09-20 Miguel de Icaza <miguel@novell.com>
14344 * Control.cs (ControlCollection.Add): If the value null is passed
14345 the control is ignored.
14347 Optimize this loop.
14349 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
14351 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
14352 PostQuitMessage state.
14353 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
14355 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
14357 * Application.cs: Our constructor will never get called, move
14358 initialization to fields; fixes bug #75933
14360 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14363 - Allow files to be selected properly using file name
14365 - Add ability to change diretory (absolute / relative)
14366 using file name combo box.
14368 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
14371 - Fixes Multicolumn listboxes item wrong calculations
14372 - Allows to click when only one item is in the listbox
14373 - Fixes crash when no items using keyboard navigation
14375 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
14377 * ComboBox.cs: Reverted almost everything from the latest patch which
14380 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
14383 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
14385 - When DropDownStyle is Simple, it does not show scrollbar
14386 to the last item of the list.
14387 - When DropDownStyle is Simple, it crashed when the list was
14388 scrolled down with the down cursor key.
14389 - Fixed a bug that when DropDownStyle is DropDownList, the
14390 selected item was not shown.
14391 - The position of the selected item was not preserved when
14392 the next dropdown happened.
14393 * ThemeWin32Classic.cs:
14394 - Items were wrapped at the right end.
14395 * CheckedListBox.cs:
14398 - Items should be fully shown.
14399 - When resizing and vertical scrollbar disappeared, the item
14400 of index 0 should be on the top of the list.
14401 - GetItemRectangle should consider the size of ver. scrollbar
14403 - SizingGrip area should not be allocated when it is not
14405 - Now it reflects MinWidth of the containing panel and
14406 fixed a crash that happens when its width becomes so small.
14408 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
14410 * CheckedListBox.cs: Fixes bug 76028
14411 * ListBox.cs: Fixes bug 76028
14413 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
14415 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
14416 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
14418 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
14420 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
14422 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14424 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
14426 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14428 * IRootGridEntry.cs: Added
14429 * PropertyGridCommands.cs: Added
14430 * PropertiesTab.cs: Added missing methods and property
14431 * PropertyGridView.cs: Made class internal
14432 * PropertyGridTextBox.cs: Made class internal
14434 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14436 * MimeIcon.cs: Try to check some other environment variables
14437 if "DESKTOP_SESSION" returns "default"
14439 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14441 * ThemeNice.cs: Corrected background colors (e.g. menus)
14442 * ColorDialog.cs: Use correct background colors for controls
14444 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14446 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
14448 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
14450 * RichTextBox.cs: Added initial implementation
14451 * lang.cs: Removed. Was accidentally checked in long time ago
14452 * TODO: Removed. Contents were obsolete
14454 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
14456 * PropertiesTab.cs : Added
14458 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
14460 * PropertyGrid.cs : Update
14461 * PropertyGridView.cs : Update
14462 * System.Windows.Forms.resx : Added images and strings
14464 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
14466 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
14468 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
14470 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
14471 a busy loop right after the Ungrab the X11 display is otherwise
14474 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
14476 * ThemeWin32Classic.cs: Optimise the use of clipping
14478 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
14480 * DataGrid.cs: fixes recursion bug
14482 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
14485 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
14488 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
14490 * ThemeNice.cs: Draw nice ProgressBars
14492 2005-09-01 Miguel de Icaza <miguel@novell.com>
14494 * VScrollBar.cs: Another buglet found by Aaron's tool.
14496 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
14499 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
14502 - Added nicer menu drawing
14506 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14508 * CreateParams.cs (ToString): Made output match MS
14509 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
14510 handle is already created (to avoid forcing window creation)
14511 * XplatUIX11.cs: Set window text to caption after creating window,
14512 in case Text was set before window was created
14513 * Form.cs: Use this.Text instead of a static string as caption
14515 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14517 * NotifyIcon.cs: Don't set the window to visible; this screws
14518 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
14519 OnPaint without a bitmap)
14520 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
14521 happen very often anyway; we could add the check to the WM_PAINT
14522 event generation code
14524 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14526 * NotifyIcon.cs: Fill the icon area with a background color, to
14527 avoid 'residue' when transparent icons are drawn
14529 - Handle whole_window == client_window when destroying windows
14530 - SystrayAdd(): Set client_window to whole_window value to
14531 get mouse and other events passed to NotifyIcon
14533 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14535 * Form.cs: Set proper default for Opacity property
14537 - ShowSystray(): Don't bother creating telling the OS
14538 about the systray item if no icon is provided
14539 - Now handles WM_NCPAINT message to deal with whole/client window
14541 - Create window as visible to not get caught by Expose optimization
14542 * Hwnd.cs: Removed debug message
14543 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
14544 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
14545 PaintEventStart/End to use new client argument
14547 - Commented out debug messages
14548 - Switched PaintEventStart/End to use new client argument
14549 * XplatUI.cs: Added client window bool to PaintEventStart()/
14550 PaintEventEnd() calls, to support drawing in non-client areas
14551 * XplatUIDriver.cs:
14552 - Added client window bool to PaintEventStart()/PaintEventEnd()
14553 calls, to support drawing in non-client areas
14554 - Added conditional compile to allow using MWF BeginInvoke
14557 - Added some conditional debug output
14558 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
14559 whole/client window split
14560 - Implemented handling of client argument to PaintEventStart()/End()
14562 - Throw exception if BeginInvoke() is called and the window handle
14563 or one of the window's parent handles is not created
14564 - Added conditional compile to allow using MWF BeginInvoke on
14566 - get_Parent(): Only sets parent if handle is created. This avoids
14567 forcing window handle creation when parent is set.
14568 - Now fires Layout and Parent changed events in proper order
14569 - Switched to use Handle instead of window.Handle for Z-Order setting,
14570 the get_Parent() patch above causes us to possibly get null for 'window'
14571 - Implemented handling of client argument to PaintEventStart()/End()
14572 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
14574 - Now sends a Refresh() to all child windows when Refresh() is called
14576 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
14578 * Form.cs: Added (non-functional) Opacity property
14579 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
14581 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
14582 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
14583 use export MONO_THEME=nice to activate it.
14584 Currently supported controls:
14588 - TabControl (TabAlignment.Top only, other will follow)
14589 * ThemeEngine.cs: Add theme nice
14590 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
14593 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
14595 * Splitter.cs: Resize docked control and its neighbor.
14597 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14598 -- Making Windows with Menus layout correctly --
14599 * Form.cs : The first leg of the fix
14600 Menu setter - adjust Client Size as needed to make space for the menu
14601 SetClientSizeCore - doesn't call base version to be able to pass the
14602 menu handle to XplatUI.CalculateWindowRect
14603 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
14604 * XplatUIX11.cs: The critical second leg of the fix
14605 GetWindowPos needs to use a recalculated client_rect
14606 so that resizing the window doesn't break layout of child controls.
14607 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
14608 Lots of \t\n killed
14610 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
14612 * Label.cs: Now properly recalculates width and height on Font and Text
14613 changes if AutoSize is set
14615 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14616 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
14618 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
14620 * ImageList.cs: Makes ToString method compatible with MS
14622 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
14624 * MenuAPI.cs: fixes bug 75716
14626 2005-08-11 Umadevi S <sumadevi@novell.com>
14627 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
14629 2005-08-11 Umadevi S <sumadevi@novell.com>
14630 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
14632 2005-08-10 Umadevi S <sumadevi@novell.com>
14633 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
14635 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
14637 * Menu.cs: fixes bug 75700
14638 * MenuAPI.cs: fixes navigation issues
14640 2005-08-09 Umadevi S <sumadevi@novell.com>
14641 * CheckedListBox.cs - simple fix for GetItemChecked.
14643 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
14645 * ComboBox.cs: Serveral fixes
14646 * ListBox.cs: Serveral fixes
14648 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14650 * ComboBox.cs: Fixes FindString methods and GetItemHeight
14651 * ListBox.cs: Fixes FindString methods
14653 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14655 * DataGrid.cs: fixes bugs exposed by new tests
14657 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
14659 * Mime.cs: Compile Mono assembly references only if compiling
14660 with Mono (Allows to build with VS.Net again)
14662 2005-07-28 Marek Safar <marek.safar@seznam.cz>
14664 * Control.cs (PaintControlBackground): Draw background image
14666 (CheckForIllegalCrossThreadCalls): Stubbed.
14668 * Form.cs (OnCreateControl): Center when should be centered.
14670 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
14672 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
14674 * Binding.cs: Binding to properties should be case unsensitive
14676 2005-07-18 vlindos@nucleusys.com
14678 * DataGrid.cs: fixes setmember order
14680 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
14682 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
14683 * FileDialog.cs: FileDialog is now resizable and uses the new
14686 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
14688 * DataGridTextBoxColumn.cs: default value
14689 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
14690 * GridTableStylesCollection.cs: fixes checking MappingName
14691 * DataGridDrawingLogic.cs: fixes drawing logic issues
14692 * DataSourceHelper.cs: rewritten to make compatible with more data sources
14693 * DataGrid.cs: fixes
14695 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
14697 * MimeGenerated.cs: Use case sensitive comparer for
14698 NameValueCollections
14700 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
14702 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
14703 * ThemeWin32Classic.cs: bug fixes, code refactoring
14704 * DataGridDrawingLogic.cs: bug fixes, code refactoring
14705 * DataGrid.cs: bug fixes, code refactoring
14706 * DataGridTextBox.cs: bug fixes, code refactoring
14707 * DataGridColumnStyle.cs: bug fixes, code refactoring
14708 * Theme.cs: bug fixes, code refactoring
14710 2005-07-01 Peter Bartok <pbartok@novell.com>
14712 * TextControl.cs: Quick fix for the reported crash on ColorDialog
14713 and other text box usage
14715 2005-07-01 Jackson Harper <jackson@ximian.com>
14717 * TabControl.cs: Make sure the bottom of the tab covers the pages
14720 2005-06-30 Peter Bartok <pbartok@novell.com>
14722 * Form.cs (ShowDialog): Assign owner of the dialog
14723 * TextBoxBase.cs: Always refresh caret size when deleting, caret
14724 might have been moved to a tag with different height
14726 2005-06-30 Jackson Harper <jackson@ximian.com>
14728 * Form.cs: Don't create an infinite loop when setting focus
14729 * MenuItem.cs: Don't dirty the parents if we don't have any
14731 2005-06-29 Ben Maurer <bmaurer@ximian.com>
14733 * LibSupport.cs: Rename
14735 2005-06-29 Peter Bartok <pbartok@novell.com>
14737 * TextBoxBase.cs: Re-align caret after deleting a character
14739 - DeleteChars(): Ensure that tag covers the provided position
14740 - StreamLine(): Drop reference for dropped tag
14742 2005-06-29 Peter Bartok <pbartok@novell.com>
14745 - Selections now work properly, anchoring at the initial location
14746 and properly extending in either direction (SetSelectionToCaret(),
14747 SetSelectionStart() and SetSelectionEnd())
14748 - No longer redraws the whole control on selection change, now
14749 calculates delta between previous and new selection and only
14750 invalidates/redraws that area
14751 - Fixed FindPos() math off-by-one errors
14752 - Changed DeleteChars() to verify the provided tag covers the
14753 provided position, selections may have a tag that doesn't cover
14754 the position if the selection is at a tag border
14755 - Fixed off-by-one errors in DeleteChars()
14756 - Added missing streamlining check in DeleteChars() to remove
14758 - Implemented Invalidate() method, now properly calculates exposures
14759 between two given lines/positions
14760 - Implemented SetSelection()
14761 - Obsoleted and removed FixupSelection()
14762 - Improved RecalculateDocument() logic, removing code duplication
14764 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14766 * LibSupport.cs: changes to match different input/output arguments.
14768 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14770 * LibSupport.cs: added libsupport.so init routine.
14772 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
14774 * ControlBindingsCollection.cs
14775 - Throws an exception on null datasource when adding
14776 - Checks for duplicated bindings when adding
14778 2005-06-28 Jackson Harper <jackson@ximian.com>
14780 * TreeView.cs (OnKeyDown): Support left and right properly
14781 (navigates as well as expanding and collapsing.
14782 - Add support for Multiply, this expands all the selected nodes
14784 - Fix some tabbing.
14786 2005-06-28 Jackson Harper <jackson@ximian.com>
14788 * TreeView.cs: Implement keyboard navigation, currently supports,
14789 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
14790 support for toggling checkboxes with the space bar.
14792 2005-06-28 Jackson Harper <jackson@ximian.com>
14794 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
14797 2005-06-28 Jackson Harper <jackson@ximian.com>
14799 * TreeView.cs: Add missing event.
14801 2005-06-27 Peter Bartok <pbartok@novell.com>
14804 - Made line ending size configurable (now allows for counting
14805 lineendings as \n or \r\n)
14806 - Added margin to viewport to keep caret visible on right side
14807 - Fixed translation routines for line/pos to documentpos to consider
14808 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
14809 - Fixed some line-endings to be unix style
14810 - Fixed Document.FormatText to perform it's calculations 1-based
14811 - Added descriptions for a few methods that might otherwise get
14813 - Added NOTE section with some basic conventions to remember at
14814 the top of the file
14815 - Major fixup for RichTextBox selection drawing:
14816 * Fixed crashes when multiple tags on a single line were selected
14817 * fixed selection box drawing not overlaying text
14818 * fixed bogus offset calculation for tags not starting at index 1
14819 * Switched behaviour from using multiple Substrings of a
14820 StringBuilder.ToString() to using multiple
14821 StringBuilder.ToString(start, length) statements, hoping this is
14822 faster (kept original version commented out in the code, in case
14823 original version was faster)
14824 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
14826 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
14829 2005-06-27 Jackson Harper <jackson@ximian.com>
14831 * TabControl.cs: Move to the left and right with the arrow
14832 keys. These keys don't cycle beyond first and last like
14833 tab. Refresh all the tabs when scrolling them to the left or
14836 2005-06-27 Jackson Harper <jackson@ximian.com>
14839 - ToString: Added method
14840 - CreateParams: Remove TODO and comment
14841 - OnKeyDown: Cycle through bounds properly.
14842 - SelectedIndex: Scroll to the right or left if we need to
14843 display the newly selected tab.
14845 2005-06-23 Jackson Harper <jackson@ximian.com>
14847 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
14850 2005-06-23 Jackson Harper <jackson@ximian.com>
14852 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
14853 CTRL-SHIFT-TAB, and HOME, END are there any others?
14855 2005-06-23 Jackson Harper <jackson@ximian.com>
14857 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
14859 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14861 * DataGridTextBoxColumn.cs: fixes and enhancements
14862 * ThemeWin32Classic.cs: fixes and enhancements
14863 * DataGridBoolColumn.cs: fixes and enhancements
14864 * DataGridDrawingLogic.cs: fixes and enhancements
14865 * CurrencyManager.cs: fixes and enhancements
14866 * DataGrid.cs: fixes and enhancements
14867 * DataGridColumnStyle.cs: fixes and enhancements
14869 2005-06-22 Jackson Harper <jackson@ximian.com>
14871 * TabControl.cs: Add some missing methods that just call into the
14872 base. Make the TabPageCollection's IList interface behave in the
14873 same manner as the MS implementation.
14875 2005-06-22 Peter Bartok <pbartok@novell.com>
14877 * TextControl.cs: Added sanity check
14879 - Fixed wrapping behaviour, don't set wrap on single line controls
14880 (this fixes the breakage of colordialog introduced in an earlier
14882 - Added rudimentary support for autoscrolling right-aligned controls
14883 (still needs fixing, also, center alignment scroll is missing)
14885 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14887 * ScrollBar.cs: Fixes thumbpos on Maximum values
14889 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
14891 * PropertyGridView.cs: Pass context information to UITypeEditors
14893 2005-06-21 Peter Bartok <pbartok@novell.com>
14896 - Now calling PositionCaret with absolute space coordinates
14897 - Enabled vertical scrolling
14898 - Better tracking of scrollbar changes, tied into WidthChange
14900 - Improved cursor tracking
14901 - Removed debug output
14903 - PositionCaret coordinates are now works in absolute space, not
14905 - Improved tracking of document size
14906 - Added events for width and height changes
14908 2005-06-21 Peter Bartok <pbartok@novell.com>
14910 * Form.cs: Set focus to active control when form is activated
14912 - Added word-wrap functionality to RecalculateLine()
14913 - Added some short function descriptions for VS.Net to aid in
14914 writing dependent controls
14915 - Added Caret property, returning the current coords of the caret
14916 - Added ViewPortWidth and ViewPortHeight properties
14917 - Added Wrap property
14918 - Added CaretMoved event
14919 - Removed some old debug code
14920 - Split() can now create soft splits
14921 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
14922 - Added method to format existing text
14923 - Fixed size/alignment calculations to use viewport
14924 - RecalculateDocument now can handle changing line-numbers while
14928 - Added some wrap logic, we don't wrap if alignment is not left
14929 - Added casts for scrollbar var, base class switched types to
14930 also support RichTextBoxA
14931 - Implemented handling of scrollbar visibility flags
14934 - Switched scrollbars type to RichTextBoxScrollBars to support
14936 - Added tracking of canvas width/height
14937 - Switched scrollbars to be not selectable (to keep focus on text)
14938 - Added central CalculateDocument() method to handle all redraw
14940 - Added ReadOnly support
14941 - Added WordWrap support
14942 - Fixed handling of Enter key (we now treat it as a DialogKey)
14943 - Fixed caret positioning when h or v scroll is not zero
14944 - Fixed placing/generation of vertical scrollbar
14945 - Added CalculateScrollBars() method to allow updating scrollbar
14946 limits and visibility
14947 - Fixed handling of horizontal scroll
14948 - Added handling of vertical scroll
14949 - Implemented auto-'jump' when caret moves to close to a left or
14950 right border and there is text to be scrolled into view (currently
14951 there's the potential for a stack overflow, until a bug in
14952 scrollbar is fixed)
14954 2005-06-21 Geoff Norton <gnorton@customerdna.com>
14956 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
14958 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
14962 - return application/x-zerosize for files with size zero
14963 (if no extension pattern matches).
14964 - check matches collection for strings too.
14965 - return only the first mime type if the name value
14966 collection has more than one mime type.
14968 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
14970 * PropertyGrid.cs: Cleaned up some TODOs
14971 * PropertyGridView.cs: Added support for UITypeEditors
14973 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14975 * DataGrid.cs: clears cached value
14977 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14979 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
14980 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
14981 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
14982 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
14984 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
14986 * ThemeWin32Classic.cs: fixes colour
14988 2005-06-15 Peter Bartok <pbartok@novell.com>
14990 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
14991 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
14992 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
14993 * Control.cs: Added some MWFCategory and MWFDescription attributes
14994 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
14996 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
14998 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
15001 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
15003 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
15004 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
15005 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
15006 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
15007 * DataGrid.cs: default datagrid settings for Default Styles, fixes
15008 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
15010 2005-06-13 Jackson Harper <jackson@ximian.com>
15012 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
15013 isn't printed when the user enables dropping. (X11 does accept
15016 2005-06-13 Jackson Harper <jackson@ximian.com>
15018 * TreeView.cs: Remove some TODOS.
15020 2005-06-13 Jackson Harper <jackson@ximian.com>
15022 * Form.cs: Hook into the mdi framework.
15023 * MdiClient.cs: Use the base control collections add method so
15024 parents get setup correctly. Set the default back colour and dock
15026 * MdiChildContext.cs: New class, this bad actor handles an
15027 instance of an MDI window. Right now there is only basic
15028 support. You can drag, close, and resize windows. Minimize and
15029 Maximize are partially implemented.
15031 2005-06-13 Jackson Harper <jackson@ximian.com>
15033 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
15034 freaky when both vals are negative. NOTE: There are probably other
15035 places in XplatUIX11 that this needs to be done.
15037 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
15039 * DataGrid.cs: implement missing methods, move KeyboardNavigation
15040 * DataGridColumnStyle.cs: fixes signature
15042 2005-06-12 Jackson Harper <jackson@ximian.com>
15044 * XplatUIX11.cs: Use sizing cursors similar to the ones on
15047 2005-06-11 Jackson Harper <jackson@ximian.com>
15049 * StatusBarPanel.cs: Signature cleanups. Implement
15052 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
15054 * DataGridTextBoxColumn.cs: Honors aligment
15055 * GridColumnStylesCollection.cs: Contains is case unsensitive
15056 * GridTableStylesCollection.cs: several fixes
15057 * DataGridTableStyle.cs: default column creation
15058 * DataGridDrawingLogic.cs: fixes
15059 * CurrencyManager.cs: ListName property
15060 * DataGrid.cs: multiple styles support
15061 * DataGridColumnStyle.cs: fixes
15064 2005-06-10 Peter Bartok <pbartok@novell.com>
15066 * Control.cs(Select): Moved SetFocus call to avoid potential
15067 loops if controls change the active control when getting focus
15068 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
15069 the up/down buttons
15071 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
15073 * ImageListConverter.cs: Implemented
15075 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
15077 * MonthCalendar.cs: Wired in NumericUpDown control for year
15079 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
15081 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
15082 DoubleClick events, since they are not meant to be fired.
15084 2005-06-09 Peter Bartok <pbartok@novell.com>
15086 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
15087 Jonathan's standalone controls into MWF, implemented missing
15088 events, attributes and methods; added xxxAccessible classes
15089 * AccessibleObject.cs: Made fields internal so other classes
15090 can change them if needed
15092 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
15094 * UpDownBase.cs: Complete implementation
15095 * NumericUpDown.cs: Complete implementation
15096 * DomainUpDown.cs: Complete implementation
15098 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
15100 * DataGridTextBoxColumn.cs: drawing fixes
15101 * DataGridCell.cs: fixes ToString method to match MSNet
15102 * DataGridTableStyle.cs: fixes
15103 * DataGridBoolColumn.cs: fixes, drawing
15104 * DataGridDrawingLogic.cs: fixes, new methods
15105 * DataGridTextBox.cs: Keyboard and fixes
15107 - Keyboard navigation
15109 - Row selection (single, multiple, deletion, etc)
15112 2005-06-07 Jackson Harper <jackson@ximian.com>
15114 * ThemeWin32Classic.cs: Clear the background area when drawing
15117 2005-06-06 Peter Bartok <pbartok@novell.com>
15119 * ImageListStreamer.cs: Fixed signature for GetData
15120 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
15122 - Added missing ChildAccessibleObject class
15123 - Added missing OnXXXFocus overrides, switched to using those
15124 instead of the event handler
15126 - Added Parent property for ControlAccessibleObject
15129 - Added ResetBindings()
15130 * ListBindingConverter.cs: Implemented some methods
15131 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
15132 * ImageList.cs: Implemented basic handle scheme, removed TODOs
15133 * ContainerControl.cs: Fixed signature, now subscribing to the
15134 ControlRemoved event instead of overriding the handler, LAMESPEC
15135 * CurrencyManager.cs: Added missing attribute
15136 * MonthCalendar.cs: Added missing properties
15138 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
15140 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
15142 2005-06-06 Gaurav Vaish and Ankit Jain
15144 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
15145 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
15147 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
15149 * Control.cs: fixes CreateParams Width / Height.
15151 2005-06-05 Peter Bartok <pbartok@novell.com>
15153 * Win32DnD.cs: Removed compilation warnings
15155 2005-06-05 Peter Bartok <pbartok@novell.com>
15157 * Control.cs (CreateParams): Since we don't know if one of the
15158 properties we use is overridden, lets make sure if we fail accessing
15159 we continue with a backup plan
15161 2005-06-05 Peter Bartok <pbartok@novell.com>
15164 - Removed debug output
15165 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
15167 - Plugged resource leak
15168 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
15171 2005-06-05 Peter Bartok <pbartok@novell.com>
15173 * XplatUIWin32.cs: Removed DnD code
15174 * Win32DnD.cs: Implemented drop source and drop target functionality
15176 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15178 * UpDownBase.cs: remove duplicate addition of event, enable some code
15179 that was commented out.
15180 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
15181 Validate input when a key is pressed. It works fine now for every
15182 combination of Hexadecimal. Only missing some drawing love when sharing
15183 space with other controls.
15185 2005-06-04 Peter Bartok <pbartok@novell.com>
15188 - We need to pass a window for DragDrop, so enable callback events
15189 - Added DnD callback events when being a DragSource
15190 * XplatUI.cs (StartDrag): Added window handle argument
15191 * XplatUIDriver.cs (StartDrag): Added window handle argument
15192 * QueryContinueDragEventArgs: Made fields internally accessible so
15193 drivers can set them
15194 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
15197 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
15199 * DataGridTextBoxColumn.cs: column text editing
15200 * DataGridTableStyle.cs: Respect columns styles created by the user
15201 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
15202 * DataGridBoolColumn.cs: bool column editing
15203 * DataGrid.cs: fixes to scrolling, properties, etc
15204 * DataGridTextBox.cs: handle keyboard
15205 * DataGridColumnStyle.cs: fixes
15207 2005-06-02 Jackson Harper <jackson@ximian.com>
15209 * ImageListStreamer.cs: Somewhat broken implementation of
15210 GetObjectData. The RLE needs some work to match MS properly.
15212 2005-06-02 Jackson Harper <jackson@ximian.com>
15214 * X11Dnd.cs: Attempting to keep at least one file in MWF
15217 2005-06-02 Peter Bartok <pbartok@novell.com>
15219 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
15222 2005-06-02 Peter Bartok <pbartok@novell.com>
15224 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
15225 * XplatUI.cs: Added DoDragDrop() method
15226 * XplatUIDriver.cs: Added DoDragDrop() method
15228 2005-06-02 Jackson Harper <jackson@ximian.com>
15230 * Splitter.cs: Implement BorderStyle.
15232 2005-06-02 Jackson Harper <jackson@ximian.com>
15234 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
15235 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
15238 2005-06-02 Peter Bartok <pbartok@novell.com>
15241 - Added Data setter
15242 - Fixed broken insertion code for SetData, now also
15243 overwrites any existing entry of the same format name
15244 * Hwnd.cs: Added list of pointers that automatically gets
15245 freed when the window is disposed
15246 * XplatUI.cs: Call driver initialization method when loading
15249 - OnDragLeave takes EventArgs, not DragEventArgs
15250 - Added setting of WS_EX_ACCEPTFILES style when dropping is
15252 - Forces style update when drop state changes
15253 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
15254 not perfect since we cannot (yet) call the IDataObject.GetData()
15255 method, we keep getting 0x80004005 error, dunno why)
15257 2005-06-02 Peter Bartok <pbartok@novell.com>
15259 * DragEventArgs.cs: Make fields internal so we can cache the
15260 object and re-set the fields from XplatUI
15262 2005-06-02 Jackson Harper <jackson@ximian.com>
15264 * Control.cs: Add some internal methods so the DnD subsystem can
15265 raise DnD events. Also call into the driver when AllowDrop is set.
15267 * XplatUIDriver.cs: New method for setting whether or not a window
15268 is allowed to accept drag and drop messages.
15270 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
15272 * ScrollBar.cs: Make sure that values sent in Scroll events
15273 are always between Maximum and Minimum.
15275 2005-06-01 Marek Safar <marek.safar@seznam.cz>
15277 * Menu.cs: Call MenuChanged when menuitem visibility has been
15279 * MenuItem.cs: Rebuild menu when item is (not) visible.
15280 * MainMenu.cs: MainMenu has special MenuChanged.
15281 * Theme.cs: Caption and FrameBorderSize are not fixed.
15282 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
15283 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
15285 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
15286 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
15288 2005-05-30 Jackson Harper <jackson@ximian.com>
15290 * DataFormat.cs: We can't statically initialize this stuff because
15291 it calls into the xplatui and could create a loop. So we lazy init
15294 2005-05-28 Jackson Harper <jackson@ximian.com>
15296 * Control.cs: Proper implementation of Product(Name/Version).
15298 2005-05-27 Jackson Harper <jackson@ximian.com>
15300 * DataObject.cs: Dont crash if no data is found.
15302 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
15303 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
15304 as per status page, guessing it should be set to true
15306 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
15308 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
15309 * DataGridTableStyle.cs: set proper formatting text, def header text
15310 * ThemeWin32Classic.cs: new themable paramaters
15311 * DataGridBoolColumn.cs: paint check box, get data, fixes
15312 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
15313 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
15314 * DataGridColumnStyle.cs: fixes
15315 * Theme.cs: new themable paramaters
15317 2005-05-26 Peter Bartok <pbartok@novell.com>
15319 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
15321 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15322 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
15324 2005-05-24 Peter Bartok <pbartok@novell.com>
15326 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
15327 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
15328 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
15329 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
15330 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
15331 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
15332 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
15333 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
15334 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
15335 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
15336 missing attributes, etc
15337 * DataGridPreferredColumnWidthTypeConverter.cs: Added
15339 2005-05-24 Peter Bartok <pbartok@novell.com>
15341 * Help.cs: Added, implemented trivial functions, throws up MessageBox
15342 when user tries to get help
15343 * DataObject.cs, DataFormats.cs, LinkArea.cs,
15344 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
15345 to suppress warnings
15346 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
15347 avoid unreachable code warning
15349 2005-05-20 Peter Bartok <pbartok@novell.com>
15351 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
15353 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15355 * DataGridTextBoxColumn.cs: Basic painting methods
15356 * DataGridTableStyle.cs: Set table style in the column
15357 * ThemeWin32Classic.cs: Use Theme for colors
15358 * DataGridDrawingLogic.cs: Implement more drawing
15359 * DataGrid.cs: drawing, theming, enhacements, fixes
15360 * DataGridColumnStyle.cs: fixes, drawing
15361 * Theme.cs: theming for Datagrid
15363 2005-05-20 Peter Bartok <pbartok@novell.com>
15365 * Cursor.cs: Implemented GetObjectData() method
15367 2005-05-20 Peter Bartok <pbartok@novell.com>
15369 * Cursors.cs: Added setting of cursor name
15371 - Implemented constructors
15372 - Implemented Draw and DrawStretched
15373 - Implemented Current property
15374 - Implemented == and != operators
15375 - Implemented Dispose()
15376 - Implemented ToString
15377 - Added missing attributes
15379 - Added missing reset for OverrideCursor when DoEvents is called
15380 - Fixed creation of cursor, logic was wrong
15382 - Added missing reset for OverrideCursor when DoEvents is called
15383 - Fixed creation of cursor, bit arrays were swapped
15384 * Clipboard.cs: Removed obsolete MonoTODO attribute
15386 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15388 * ComboBox.cs: fixes OnSelectedItemChanged
15389 * ControlBindingsCollection.cs: fixes item range check
15391 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15394 - Calc preferred height properly
15395 - Implement missing properties
15397 * NumericUpDown.cs: Implement missing events
15399 2005-05-19 Jackson Harper <jackson@ximian.com>
15401 * TabControl.cs: New method that resizes the tab pages before
15402 redrawing them. This as needed as the control is double buffered
15403 and sizing will not be recalculated unless ResizeTabPages is
15405 * TabPage.cs: Set base.Text instead of Text in the constructor so
15406 that UpdateOwner does not get called. Use the new Redraw method of
15407 TabControl instead of Refresh so the sizing is recalculated.
15408 * ThemeWin32Classic.cs: Draw the text for button tabs.
15410 2005-05-19 Jackson Harper <jackson@ximian.com>
15412 * Control.cs: Paint control background images. Fix typo where
15413 PaintControlBackground was not getting called correctly.
15415 2005-05-19 Peter Bartok <pbartok@novell.com>
15417 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
15418 I can investigate, apparently I broke FileDialog
15420 2005-05-19 Marek Safar <marek.safar@seznam.cz>
15422 * AxHost.cs: Some simple properties.
15423 * Control.cs: window must be accessible after ctor.
15424 * Form.cs: Added TransparencyKey property.
15425 * TextBoxBase.cs: Implemented Clear. Text property can be null.
15426 * XplatUIWin32.cs: SetBorderStyle implemented.
15428 2005-05-18 Peter Bartok <pbartok@novell.com>
15430 * DataObject.cs: Entries are not global but particular to the
15431 DataObject, now it behaves that way
15432 * XplatUIWin32.cs: Implemented Clipboard methods
15433 * Clipboard.cs: Implemented
15434 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
15435 * XplatUIOSX.cs: Updated to final clipboard prototypes
15436 * XplatUIX11.cs: Implemented Clipboard methods
15437 * XplatUIDriver.cs: Updated to final clipboard prototypes
15438 * XplatUIStructs.cs:
15439 - Added BITMAPINFOHEADER struct
15440 - Added ClipboardFormats enum
15442 - Added ClipboardStruct
15443 - Added Atom enum items for clipboard types
15444 - Fixed atom types for Selection event structures
15446 - Added internal properties and methods for drivers to enumerate
15448 - Switched initialization method to allow drivers to assign their
15449 own IDs even for the MS predefined clipboard IDs
15450 * XplatUI.cs: Updated to final clipboard interface
15452 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15453 * PropertyGridView.cs: Fixed compiler warnings.
15455 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15456 * PropertyGrid.cs: Added some event calls
15457 * PropertyGridView.cs: Change drawing code to use double buffering
15458 * PropertyGridTextBox.cs: Changed Text property name
15459 * GridItem.cs: Added Bounds property.
15460 * GridEntry.cs: Added Bounds property.
15462 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
15464 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
15465 since GetType() may not return the correct type if the object is
15468 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
15470 * TreeNodeCollection.cs: fixes get/set item ranges
15472 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
15474 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
15476 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
15478 * ComboBox.cs: Fix item range comparation
15479 * ListView.cs: Fix item range comparation
15481 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15484 - Clear example panel when OnPaint is called
15485 - Better solution for displaying the example panel text
15486 - Select default indexes in the ListBoxes
15488 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15490 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
15492 2005-05-11 Peter Bartok <pbartok@novell.com>
15494 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
15495 * SelectionRangeConverter.cs: Implemented
15496 * PropertyGrid.cs: Fixed attribute value
15498 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
15499 - Added Sebastien Pouliot's CAS Stack Propagation fixes
15500 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
15501 that's common to all drivers. First methods to go there are
15502 Sebastien Pouliot's CAS Stack Propagation helper methods
15503 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
15504 Sebastien Pouliot for CAS Stack Propagation
15506 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15509 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
15511 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
15513 * DataGridTextBoxColumn.cs: fixed some members
15514 * GridColumnStylesCollection.cs: indexed column is case insensitive
15515 * DataGridTableStyle.cs: fixes
15516 * ThemeWin32Classic.cs: add new theme parameter
15517 * Theme.cs: add new theme parameter
15518 * DataGridDrawingLogic.cs: Datagrid's drawing logic
15519 * DataGrid.cs: fixes, new internal properties, etc.
15520 * DataGridColumnStyle.cs: allows to set grid value
15523 2005-05-10 Peter Bartok <pbartok@novell.com>
15525 * AccessibleObject.cs:
15526 - Removed MonoTODO attribute on help, method is correct
15527 - Fixed Bounds property
15528 * AxHost.cs: Moved MonoTODO
15529 * ButtonBase.cs: Now setting AccessibleObject properties
15530 * RadioButton.cs: Setting proper AccessibleObject role
15531 * CheckBox.cs: Setting proper AccessibleObject role
15532 * ControlBindingsCollection.cs: Added properties, methods and attributes
15533 * DataFormats.cs: Fixed awkward internal API, and changed to enable
15534 userdefined DataFormats.Format items as well
15535 * ListControl.cs: Removed data_member from the public eye
15536 * OpenFileDialog.cs:
15537 - Made class sealed
15538 - Added missing attributes
15539 * SaveFileDialog.cs: Added missing attributes
15540 * ImageListStreamer.cs: Fixed code that caused warnings
15541 * LinkLabel.cs: Removed unreachable code
15542 * TreeView.cs: Fixed code that caused warnings
15543 * PropertyGridView.cs: Fixed code that caused warnings
15544 * GridColumnStylesCollection.cs: Added missing attributes
15545 * GridTableStylesCollection: Added missing attribute
15546 * PropertyManager: Added .ctor
15547 * SecurityIDType: Added
15548 * DataObject.cs: Implemented class
15549 * LinkArea.cs: Added missing attribute
15551 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
15553 * RadioButton.cs: call base method to allow to fire OnClick event
15554 * UpDownBase.cs: OnMouseUp call base method
15555 * CheckedListBox.cs: call base method before returning
15556 * TrackBar.cs: call base method before returning
15559 2005-05-10 Peter Bartok <pbartok@novell.com>
15561 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
15564 2005-05-10 Peter Bartok <pbartok@novell.com>
15566 * DataFormats.cs: Implemented
15567 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
15568 XplatUIX11.cs: Added Clipboard APIs
15569 * XplatUIWin32.cs: Implemented Clipboard APIs
15570 * FolderBrowserDialog.cs: Added missing event, attributes
15572 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
15574 * CheckBox.cs: call base method to allow to fire OnClick event
15576 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
15578 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
15580 2005-05-06 Peter Bartok <pbartok@novell.com>
15582 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
15583 * Screen.cs: Implemented
15584 * HelpNavigator.cs: Added
15585 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
15587 * HelpProvider.cs: Implemented all we can do until we have a CHM
15588 help library (which means that "What's This" does work now)
15590 2005-05-06 Jackson Harper <jackson@ximian.com>
15592 * XplatUIX11.cs: Fix waking up the main loop.
15594 2005-05-05 Peter Bartok <pbartok@novell.com>
15596 * XplatUI.cs: Updated revision
15597 * Form.cs: Removed enless loop
15598 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
15599 * Label.cs (OnPaint): Added call to base.OnPaint()
15600 * ToolTip.cs: Made ToolTipWindow reusable for other controls
15601 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
15602 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
15604 * ButtonBase.cs: Moved base.OnPaint() call to end of method
15605 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
15606 to ToolTip.ToolTipWindow for drawing and size methods; this allows
15607 reuse of ToolTipWindow by other controls
15608 * SizeGrip.cs: Moved base.OnPaint() call to end of method
15609 * XplatUIX11.cs: Now clipping drawing area (experimental)
15610 * PictureBox.cs: Moved base.OnPaint() call to end of method
15611 * Theme.cs: Fixed ToolTip abstracts to match new format
15612 * ErrorProvider.cs: Implemented
15614 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
15616 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
15620 - Implements LinkBehavior
15621 - Fixes many issues
15623 2005-05-03 Jackson Harper <jackson@ximian.com>
15625 * ListView.cs: Calculate the scrollbar positioning on resize and
15626 paint, so they get put in the correct place.
15628 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15630 * ColorDialogs.cs: The small color panels are now handled by
15631 SmallColorControl. This fixes drawing of the focus rectangle
15632 and adds a 3D border.
15634 2005-05-03 Peter Bartok <pbartok@novell.com>
15636 * Control.cs: Modified version of Jonathan Chamber's fix for
15639 2005-05-03 Jackson Harper <jackson@ximian.com>
15641 * ListView.cs: Remove redraw variable. Control now handles whether
15642 or not a redraw needs to be done, and will only raise the paint
15643 event if redrawing is needed.
15645 2005-05-03 Jackson Harper <jackson@ximian.com>
15647 * Splitter.cs: No decorations for the splitter form. Cache the
15650 2005-05-03 Jackson Harper <jackson@ximian.com>
15652 * TreeView.cs: Use dashed lines to connect nodes. Use the
15653 ControlPaint method for drawing the focus rect instead of doing
15656 2005-05-02 Peter Bartok <pbartok@novell.com>
15658 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
15660 2005-04-29 Jackson Harper <jackson@ximian.com>
15662 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
15663 entire image buffer. Just clear the clipping rectangle.
15665 2005-04-29 Jackson Harper <jackson@ximian.com>
15667 * ThemeWin32Classic.cs: Don't draw list view items that are
15668 outside the clipping rectangle.
15670 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
15672 * ListBox.cs: added horizontal item scroll
15674 2005-04-29 Jackson Harper <jackson@ximian.com>
15676 * ThemeWin32Classic.cs: Remove some old debug code that was
15677 causing flicker with the new double buffering code.
15679 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
15681 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
15682 behave like combobox and comboboxlist (still not sure if this is
15685 2005-04-28 Jackson Harper <jackson@ximian.com>
15687 * ThemeWin32Classic.cs: Don't fill the middle of progress
15688 bars. This fills areas outside of the clip bounds that don't need
15691 2005-04-28 Jackson Harper <jackson@ximian.com>
15693 * Control.cs: Don't expose functionality to touch the image buffers.
15695 * ListView.cs: We do not need to (and no longer can) manipulate
15696 the image buffers directly. All of this is handled by Control.
15698 2005-04-28 Peter Bartok <pbartok@novell.com>
15700 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
15701 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
15702 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
15704 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15707 - Adjust control's height for non-simple comboboxes (bug fix)
15709 * MenuAPI.cs: remove unused var
15710 * ScrollBar.cs: remove unsed var
15712 * ListBox.cs: unselect items when clearing
15714 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15716 * ListControl.cs: honors OnPositionChanged and default Selected Item
15717 * ListBox.cs: unselect items when clearing
15719 2005-04-27 Jackson Harper <jackson@ximian.com>
15721 * X11Keyboard.cs: Initialize a default keyboard and give a warning
15722 if a "correct" keyboard is not found. This will make us not crash,
15723 but might give some users bad keyboard layouts...seems to be the
15724 same thing rewind does.
15726 2005-04-27 Jackson Harper <jackson@ximian.com>
15728 * BindingManagerBase.cs: Attach the current/position changed
15729 handlers to their respective events.
15731 2005-04-27 Jackson Harper <jackson@ximian.com>
15733 * Control.cs: Make sure that the first WM_PAINT does a full draw,
15735 * ThemeWin32Classic.cs: Don't fill the background for picture
15736 boxes. This could overright user drawing.
15737 * ComboBox.cs: Just fill the clipping rect not the entire client
15738 rect when drawing the background. This prevents pieces of the
15739 image buffer from getting overwritten and is theoretically faster.
15741 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
15743 * ComboBox.cs: Databinding support fixes, fire missing events
15744 * ListControl.cs: implement missing methods and properties, fixes
15745 * ThemeWin32Classic.cs: Databiding support on Drawing
15746 * CheckedListBox.cs: Databinding support fixes, fire missing events
15747 * ListBox.cs: Databinding support fixes, fire missing events
15749 2005-04-25 Peter Bartok <pbartok@novell.com>
15751 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
15753 2005-04-25 Jackson Harper <jackson@ximian.com>
15755 * TreeView.cs: Use the horizontal scrollbars height not width when
15756 determining how much of the client area is available.
15758 2005-04-25 Jackson Harper <jackson@ximian.com>
15760 * Control.cs: Double buffering is handled differently now. As per
15761 the spec, the extra buffer is created in the WM_PAINT message and
15762 passed down to the control's drawing code.
15770 * PropertyGridView.cs:
15782 * DateTimePicker.cs:
15784 * TreeView.cs: Update to new double buffering system.
15785 * MonthCalendar.cs: Uncomment block, as Capture is now
15786 working. Update to new double buffering
15787 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
15788 * PaintEventArgs.cs: New internal method allows us to set the
15789 graphics object. This is used for double buffering.
15790 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
15791 rectangle. The internal paint_area var has been removed from
15792 StatusBar. The clipping rect should be used instead.
15793 * Theme.cs: Give the PictureBox drawing method a clipping rect.
15794 * TabPage.cs: The RefreshTabs method was removed, so just call the
15795 tab controls Refresh method now.
15796 * TabControl.cs: Update to new double buffering. Make sure the
15797 handle is created before sizing the tab pages, otherwise we will
15798 get stuck in a loop.
15800 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
15802 * LinkLabel.cs: Fix typo, bug #74719; patch
15803 from Borja Sanchez Zamorano
15805 2005-04-22 Jackson Harper <jackson@ximian.com>
15807 * TreeNode.cs: Implement Handle stuff.
15808 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
15810 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
15812 * DataGridTextBoxColumn.cs: call base constructors, fixes
15813 * GridColumnStylesCollection.cs: missing events, methods, and functionality
15814 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
15815 * DataGridTableStyle.cs: implements create default column styles
15816 * DataGridBoolColumn.cs: which types can handle
15817 * DataGrid.cs: missing methods, fixes, new functionality
15818 * DataGridColumnStyle.cs: fixes
15820 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
15821 * FolderBrowserDialog.cs:
15822 - Use a thread to fill the TreeView
15823 - Adjusted some sizes
15825 2005-04-19 Peter Bartok <pbartok@novell.com>
15827 * LinkLabel.cs: (Re-)create the pieces when setting the Text
15828 property. Fixes #74360.
15830 2005-04-19 Jackson Harper <jackson@ximian.com>
15832 * XEventQueue.cs: Lock when getting the lockqueue size.
15833 * PictureBox.cs: Call base OnPaint
15835 2005-04-19 Peter Bartok <pbartok@novell.com>
15837 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
15838 messages were no longer being processed (this broke BeginInvoke)
15841 2005-04-18 Jackson Harper <jackson@ximian.com>
15843 * TreeView.cs: buglet that caused node images to get drawn
15844 regardless of whether or not they were in the clipping rectangle.
15846 2005-04-18 Jackson Harper <jackson@ximian.com>
15848 * CurrencyManager.cs: There are four rules for GetItemProperties:
15849 - If the type is an array use the element type of the array
15850 - If the type is a typed list, use the type
15851 - If the list contains an Item property that is not an object, use
15853 - use the first element of the list if there are any elements in
15856 2005-04-17 Jackson Harper <jackson@ximian.oom>
15858 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
15859 click. This handles offsets for scrolling properly and reduces
15860 memory. Also fixed GetNode to not offset now that TopNode works
15862 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
15864 2005-04-17 Jackson Harper <jackson@ximian.com>
15866 * CursorConverter.cs: Initial implementation.
15868 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15870 * ListControl.cs: work towards complex data binding support on ListControl
15871 * CurrencyManager.cs: work towards complex data binding support on ListControl
15872 * ListBox.cs: work towards complex data binding support on ListControl
15875 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15877 * GridTableStylesCollection.cs: fixes name and constructor
15878 * DataGridTableStyle.cs: fixes
15879 * DataGridBoolColumn.cs: fixes names and constructors
15880 * DataGrid.cs: define methods and properties. Some init implementations
15881 * DataGridCell.cs: define methods and properties. Some init implementations
15882 * GridTablesFactory.cs: Define methods and properties
15884 2005-04-15 Geoff Norton <gnorton@customerdna.com>
15886 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
15887 graphics port changes. We still want the coordinates in global screen
15890 2005-04-14 Jackson Harper <jackson@ximian.com>
15892 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
15893 check plus minus or checkbox clicks unless those features are enabled.
15895 2005-04-14 Jackson Harper <jackson@ximian.com>
15897 * TreeView.cs: Add methods for setting the top and bottom visible
15898 nodes. TreeNode::EnsureVisible uses these methods.
15899 * TreeNode.cs: Implement EnsureVisible
15901 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
15903 * Form.cs: Pospone menu assignation if the window has not been created yet
15904 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
15907 2005-04-12 Jackson Harper <jackson@ximian.com>
15909 * TreeView.cs: Set the TopNode properly when scrolling
15910 occurs. This has the added benifit of reducing the amount of
15911 walking that needs to be done when drawing. Also removed an old
15913 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
15915 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
15917 * Timer.cs: fixes interval setting when the timer is already enabled
15919 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
15921 * FolderBrowserDialog.cs: First approach
15923 2005-04-09 Peter Bartok <pbartok@novell.com>
15925 * FolderBrowserDialog: Added
15927 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
15929 * LinkLabel.cs: move drawing code into the theme
15930 * ThemeWin32Classic.cs: drawing code and painting background bugfix
15931 * Theme.cs: define DrawLinkLabel method
15933 2005-04-05 Jackson Harper <jackson@ximian.com>
15935 * BindingContext.cs: Use weak references so these bad actors don't
15936 stay alive longer then they need to.
15938 2005-04-05 Jackson Harper <jackson@ximian.com>
15940 * ListControl.cs: Basic implementation of complex databinding.
15942 * ListBox.cs: Add calls to ListControl databinding methods.
15944 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
15947 - Don't change PopupButtonState to Normal when the
15948 PopupButton gets pressed several times.
15949 - Renamed ButtonPanel to PopupButtonPanel
15951 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
15953 * ColorDialog.cs: Use cached objects instead of creating them
15954 * LinkLabel.cs: Use cached objects instead of creating them
15955 * Splitter.cs: Use cached objects instead of creating them
15956 * FontDialog.cs: Use cached objects instead of creating them
15957 * PropertyGridView.cs: Use cached objects instead of creating them
15958 * MessageBox.cs: Use cached objects instead of creating them
15959 * FileDialog.cs: Use cached objects instead of creating them
15960 * ThemeWin32Classic.cs: Use cached objects instead of creating them
15961 * TreeView.cs: Use cached objects instead of creating them
15963 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
15965 * Control.cs: use Equals to compare the font since no == op
15966 * ScrollBar.cs: use Equals to compare the font since no == op
15968 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
15970 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
15972 2005-04-01 Jackson Harper <jackson@ximian.com>
15974 * Binding.cs: Implement IsBinding.
15975 * BindingManagerBase.cs:
15976 * PropertyManager.cs:
15977 * CurrencyManager.cs: Add IsSuspended property.
15979 2005-04-01 Jackson Harper <jackson@ximian.com>
15981 * Binding.cs: Had some IsAssignableFrom calls backwards.
15983 2005-04-01 Jackson Harper <jackson@ximian.com>
15985 * Binding.cs: Handle null data members when pulling data.
15986 * PropertyManager.cs: Handle the data member being a property that
15989 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15991 * DataGridTextBoxColumn.cs: fixes signature
15992 * DataGrid.cs: calls right constructor
15994 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15996 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
15997 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
15998 * GridTableStylesCollection.cs: implements GridTableStylesCollection
15999 * DataGridTableStyle.cs: implements DataGridTableStyle
16000 * DataGridBoolColumn.cs: implements DataGridBoolColumn
16001 * DataGridTextBox.cs: implements DataGridTextBox
16002 * DataGridColumnStyle.cs: implements DataGridColumnStyle
16004 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
16006 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
16008 2005-03-29 Peter Bartok <pbartok@novell.com>
16011 - Properly implemented CompanyName property
16012 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
16013 returns a path that includes CompanyName, ProductName and
16014 Version (fixes bug #70330)
16016 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
16018 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
16021 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
16023 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
16025 - Added ReadOnly CheckBox
16026 - Further refactoring: moved some code from Open-/SaveFileDialog
16029 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
16031 * OpenFileDialog.cs: Fixed CheckFileExists
16033 Moved FileView and DirComboBox outside FileDialog class.
16034 They can now be used outside FileDialog
16036 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
16038 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
16039 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
16041 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
16043 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
16044 - Added missing CreatePrompt property in SaveDialog
16045 - Overall SaveDialog handling should be better now
16046 - Added non standard ShowHiddenFiles property
16047 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
16048 - Added InitialDirectory and RestoreDirectory support
16050 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
16052 * FileDialog.cs: Made dirComboBox usable
16054 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
16056 * FileDialog.cs: Added Filter support (case sensitiv)
16058 2005-03-24 Jackson Harper <jackson@ximian.com>
16060 * TabControl.cs: Need a couple more pixels for the lines.
16062 2005-03-23 Jackson Harper <jackson@ximian.com>
16064 * TabControl.cs: Give the tab page focus when it is selected.
16066 2005-03-23 Jackson Harper <jackson@ximian.com>
16068 * TabControl.cs: Account for the drawing of tabs borders when
16069 invalidating. If the slider was clicked dont do click detection on
16072 2005-03-23 Jackson Harper <jackson@ximian.com>
16074 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
16076 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
16078 * CategoryGridEntry.cs: Added
16079 * GridItem.cs: Added helper properties
16080 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
16081 * GridEntry.cs: Updated code for collection
16082 * PropertyGrid.cs: Cleaned up some formatting
16083 * PropertyGridView.cs: Added drop down functionality for enums.
16084 * GridItemCollection.cs: Added enumerator logic
16085 * PropertyGridEntry.cs: Added
16087 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
16090 - Removed unnecessary commented code
16091 - Fixed handling for entering the filename manually in the combobox
16093 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
16095 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
16097 2005-03-18 Peter Bartok <pbartok@novell.com>
16099 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
16100 them being touching the border
16102 2005-03-18 Peter Bartok <pbartok@novell.com>
16104 * TextControl.cs: Quick hack to center text better
16106 2005-03-18 Peter Bartok <pbartok@novell.com>
16109 - Don't throw NotImplemented exceptions, just print a notice once
16110 instead (requested by Miguel). This makes running existing SWF
16113 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
16114 - Added context menu trigger on right click
16115 * Panel.cs: Trigger invalidate on resize
16117 - Removed old double-buffer drawing
16118 - Added ResizeRedraw style to force proper update of statusbar
16120 - Removed debug output
16121 * ThemeWin32Classic.cs:
16122 - Fixed drawing of status bar, now draws Text property if there
16123 are no defined panels
16125 2005-03-18 Jackson Harper <jackson@ximian.com>
16127 * ImageList.cs: When the image stream is set pull all the images
16129 * ImageListStreamer.cs: Implement reading image list streams.
16131 2005-03-18 Peter Bartok <pbartok@novell.com>
16133 * ThemeWin32Classic.cs (DrawPictureBox):
16134 - Fixed calculations for centered drawing
16135 - Fixed drawing for normal mode, not scaling the image on normal
16137 2005-03-18 Peter Bartok <pbartok@novell.com>
16139 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
16142 - Made Open/Save button the accept button for FileDialog
16143 - Tied the cancel button to the IButtonControl cancel button
16144 - Save/Open now properly builds the pathname
16145 - Now handles user-entered text
16146 - Preventing crash on right-click if no item is selected
16147 - Fixed Text property, now uses contents of textbox
16148 - Fixed SelectedText property, now just returns the text part that
16149 is selected in the text box
16151 2005-03-18 Jackson Harper <jackson@ximian.com>
16153 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
16154 rect, make sure to de-adjust the interior rect after drawing the
16157 2005-03-18 Peter Bartok <pbartok@novell.com>
16159 * MenuAPI.cs: Remove menu *before* executing selected action to
16160 prevent the menu from 'hanging around'
16162 2005-03-17 Geoff Norton <gnorton@customerdna.com>
16164 * XplatUIOSX.cs: Implemented WorkingArea property
16166 2005-03-17 Peter Bartok <pbartok@novell.com>
16168 * XplatUIX11.cs: Fixed menu coord calculations
16169 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
16170 for calculating offsets
16172 2005-03-17 Peter Bartok <pbartok@novell.com>
16174 * Hwnd.cs: Do not consider menu presence for default client
16175 rectangle location/size
16176 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
16177 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
16178 translation functions
16179 * FileDialog.cs: Fixed (what I presume is a) typo
16181 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
16183 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
16184 X access (avoids X-Async errors)
16186 2005-03-16 Jackson Harper <jackson@ximian.com>
16188 * TabControl.cs: Raise the SelectedIndexChanged event.
16190 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
16192 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
16193 - Removed vertical ToolBar and replaced it with a custom panel
16194 (desktop and home button already work)
16195 - Added Help button (some controls get resized or relocated then)
16196 - Draw correct text depending on Open or Save.
16197 - Fixed some typos...
16199 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
16202 - Only change Maximum and Minimum when need it (bug fix)
16204 2005-03-15 Peter Bartok <pbartok@novell.com>
16206 * Form.cs: Use Handle for icon, to trigger creation if
16207 the window does not yet exist
16209 - CanSelect: Slight performance improvement
16210 - Focus(): Preventing possible recursion
16211 - Invalidate(): Removed ControlStyle based clear flag setting
16212 - WM_PAINT: fixed logic for calling OnPaintBackground
16213 - WM_ERASEBKGND: Fixed logic, added call to new driver method
16214 EraseWindowBackground if the control doesn't paint background
16216 - Moved EraseWindowBackground() method to internal methods
16217 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
16218 is sent via SendMessage on BeginPaint call on Win32
16220 - Added EraseWindowBackground() method
16221 - No longer sends WM_ERASEBKGND on .Expose, but on call to
16222 PaintEventStart, which more closely matches Win32 behaviour
16223 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
16224 - Fixed SetFocus() to properly deal with client and whole windows
16225 * Hwnd.cs: Added ErasePending property
16226 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
16227 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
16229 2005-03-12 Geoff Norton <gnorton@customerdna.com>
16232 - Fix hard loop when timers exist.
16233 - Fix bugs with middle and right click for 3 button mice.
16235 2005-03-11 Peter Bartok <pbartok@novell.com>
16238 - get_WorkingArea: Need to call X directly, GetWindowPos only
16239 returns cached data now
16240 - Added sanity check to GetWindowPos hwnd usage
16242 2005-03-11 Jackson Harper <jackson@ximian.com>
16244 * BindingManagerBase.cs: This method isn't used anymore as
16245 PullData now updates the data in the control.
16247 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
16249 * Form.cs: fixes menu drawing on X11
16250 * MenuAPI.cs: fixes menu drawing on X11
16252 2005-03-11 Peter Bartok <pbartok@novell.com>
16254 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
16255 from Jonathan Gilbert; should fix bug #73606
16256 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
16257 in Screen coordinates. Thanks, Jordi.
16258 * Form.cs: Added missing attribute
16260 2005-03-11 Peter Bartok <pbartok@novell.com>
16263 - Rudimentary Mdi support
16264 - Removed outdated FormParent code
16265 - Implemented lots of missing properties and methods, still missing
16266 transparency support
16267 - Added missing attributes
16268 - Implemented support for MaximumBounds
16269 - Added firing of various events
16270 * XplatUI.cs: Added SetIcon() method
16271 * XplatUIDriver.cs: Added SetIcon() abstract
16272 * XplatUIOSX.cs: Stubbed out SetIcon() method
16274 - Implemented SetIcon() support
16275 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
16276 - Switched to unix line endings
16278 - Made POINT internal so for can access it as part of MINMAX
16279 - Implemented SetIcon() support
16280 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
16281 native Mdi support again, might have to go managed)
16282 * Control.cs: Now fires the StyleChanged event
16283 * MdiClient.cs: Added; still mostly empty
16285 2005-03-10 Peter Bartok <pbartok@novell.com>
16287 * SaveFileDialog.cs: Added emtpy file
16289 2005-03-08 Peter Bartok <pbartok@novell.com>
16291 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
16292 in turn triggers OnCreateContro) when creating a handle for the
16294 * TextControl.cs: Fixed endless loop in certain cases when
16295 replacing the current selection
16297 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
16300 - Honors NewValue changes in Scroll events allowing apps to change it
16301 - Adds First and Last Scroll events
16302 - Fixes Thumb events
16304 2005-03-07 Peter Bartok <pbartok@novell.com>
16306 * Hwnd.cs: Added DefaultClientRectangle property
16307 * XplatUI.cs: Now using the X11 driver Where() method, which provides
16308 more detailed debug information
16310 - Fixed size-change feedback loop, where we would pull an old size
16311 off the queue and mistakenly change our window's size to an
16313 - Now compressing ConfigureNotify events, to reduce looping and
16315 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
16318 2005-03-07 Jackson Harper <jackson@ximian.com>
16320 * Binding.cs: Push data pushes from data -> property. Check if the
16321 property is readonly when attempting to set it.
16323 2005-03-07 Jackson Harper <jackson@ximian.com>
16325 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
16326 instead of IsSubclassOf. Pulling data now sets the value on the
16328 * PropertyManager.cs:
16329 * CurrencyManager.cs: Just need to pull data when updating now,
16330 because PullData will set the value on the control.
16332 2005-03-04 Jackson Harper <jackson@ximian.com>
16334 * Binding.cs: Implement data type parsing and converting on pulled
16335 data. TODO: Are there more ways the data can be converted?
16337 2005-03-04 Jackson Harper <jackson@ximian.com>
16339 * Binding.cs: Support <Property>IsNull checks. Also bind to the
16340 controls Validating method so we can repull the data when the
16341 control loses focus.
16343 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
16346 - Fixes null string format
16349 - Adds enum type checks
16350 - Fixes redrawing and recalc need after changing some properties
16351 - Fixes on focus_item set after the event
16352 - Fixes adding columns after the control has been created
16354 * ThemeWin32Classic.cs:
16355 - Fixes CheckBox focus rectangle
16356 - Fixes ColumnHeader drawing
16359 2005-03-03 Jackson Harper <jackson@ximian.com>
16361 * Binding.cs: Bind to <Property>Changed events so we can detect
16362 when properties are changed and update the data.
16364 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
16367 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
16368 - Fixes ImageList constructor with ImageList container
16369 - Fixes image scaling (wrong parameters at DrawImage)
16371 2005-02-02 Jackson Harper <jackson@ximian.com>
16373 * Binding.cs: Make property searches case-insensitive. Eliminate
16374 some duplicated code.
16376 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
16379 - Handle focus event
16380 - Fix scrollbar events
16381 - Discard highlighted item if remove it
16382 - Fixes SelectedItem with strings
16384 2005-03-01 Peter Bartok <pbartok@novell.com>
16387 - Fixed Visible property, now follows (once again) parent chain
16388 to return false if any control in the chain is visible=false
16389 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
16390 - Fixed several places where is_visible instead of Visible was used
16391 - Implemented FIXME related to focus selection when setting focused
16392 control to be invisible
16394 * XplatUIWin32.cs: Now using proper method to find out if window is
16395 visible. Thanks to Jordi for pointing it out
16397 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
16399 * ComboBox.cs: show/hide scrollbar instead of creating it
16401 2005-02-27 Jackson Harper <jackson@ximian.com>
16403 * CurrencyManager.cs: Add PositionChanged stuff.
16405 2005-02-27 Peter Bartok <pbartok@novell.com>
16407 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
16408 * XplatUIOSX.cs: Added GetMenuOrigin() stub
16409 * XplatUIWin32.cs: Implemented GetMenuOrigin()
16411 - Implemented GetMenuDC()
16412 - Implemented GetMenuOrigin()
16413 - Implemented ReleaseMenuDC()
16414 - Implemented generation of WM_NCPAINT message
16415 - Implemented generation and handling of WM_NCCALCSIZE message
16416 * Form.cs: Added debug helper message for Jordi's menu work
16418 - Modified ClientRect property; added setter, fixed getter to handle
16419 setting of ClientRect
16420 - Added MenuOrigin property
16422 2005-02-26 Peter Bartok <pbartok@novell.com>
16425 - Destroys the caret if a window that's being destroyed contains it
16426 - Ignores expose events coming from the X11 queue for windows that
16427 already are destroyed
16428 - Now uses the proper variable for handling DestroyNotify, before we
16429 marked the wrong window as destroyed
16430 - Improved/added some debug output
16432 2005-02-26 Peter Bartok <pbartok@novell.com>
16434 * X11Keyboard.cs: Fixes to work on 64bit systems
16436 2005-02-26 Peter Bartok <pbartok@novell.com>
16439 - Now calling OnHandleDestroyed from DestroyHandle()
16440 instead of Dispose()
16441 - Removed bogus call to controls.Remove() from DestroyHandle()
16443 2005-02-26 Peter Bartok <pbartok@novell.com>
16445 * Control.cs: Properly destroy child windows when our handle is
16448 2005-02-25 Peter Bartok <pbartok@novell.com>
16451 - Added 'DriverDebug' define to allow tracing XplatUI API calls
16452 - Alphabetized Static Methods and Subclasses
16455 - Added XException class to allow custom handling of X11 exceptions
16456 - Created custom X11 error handler, tied into XException class
16457 - Added support for MONO_XEXCEPTIONS env var to allow the user
16458 to either throw an exception on X errors or continue running
16459 after displaying the error
16460 - Added handling of DestroyNotify message
16461 - Added handler for CreateNotify message (still disabled)
16462 - Improved (tried to at least) Where method to provide file and lineno
16464 - Added XErrorHandler delegate
16465 - Added XRequest enumeration (to suppor translation of errors)
16467 2005-02-25 Jackson Harper <jackson@ximian.com>
16469 * PropertyManager.cs: Implement editing features
16470 * CurrencyManager.cs:
16471 * Binding.cs: First attempt at UpdateIsBinding
16472 * BindingManagerBase.cs: Call UpdateIsBinding before
16473 pushing/pulling data.
16475 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
16477 * MenuAPI.cs: Respect disabled items
16478 * ThemeWin32Classic.cs
16479 - Caches ImageAttributes creation for DrawImageDisabled
16480 - Fixes vertical menu line drawing
16481 - Draws disabled arrows in disable menu items
16483 2005-02-24 Peter Bartok <pbartok@novell.com>
16486 - Added UserData property to allow associating arbitrary objects
16488 - Fixed leak; now removing Hwnd references from static windows array
16490 - Fixed Graphics leak in PaintEventEnd
16491 - Removed usage of HandleData, switched over to Hwnd class
16492 * HandleData.cs: Removed, obsoleted by Hwnd.cs
16494 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16496 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
16497 * ScrollBar.cs: Fixes bug
16498 * TrackBar.cs: removes death code, clipping, mimize refreshes,
16499 keyboard navigation enhancements
16501 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16503 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
16504 * GroupBox.cs: Add control styles
16505 * Label.cs: Add control styles
16506 * UpDownBase.cs: Add control styles
16507 * ListBox.cs: Add control styles
16508 * XplatUIWin32.cs: Fixes wrong parameter order
16511 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
16513 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
16515 2005-02-23 Jackson Harper <jackson@ximian.com>
16517 * PropertyManager.cs: Implement property binding. This doesn't
16518 seem to work yet though as (I think) there are some bugs in
16519 System.ComponentModel.PropertyDescriptor.
16520 * BindingContext.cs: Use new PropertyManager constructor.
16522 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
16524 * ProgressBar.cs: use clip region in ProgressBar
16525 * ThemeWin32Classic.cs: use clip region in ProgressBar
16527 2004-02-22 Jackson Harper <jackson@ximian.com>
16529 * BindingsCollection.cs: Remove some debug code.
16531 2005-02-22 Jackson Harper <jackson@ximian.com>
16533 * BindingContext.cs:
16534 * ControlBindingsCollection.cs:
16535 * CurrencyManager.cs:
16537 * BindingManagerBase.cs: Initial implementation
16538 * BindingsCollection.cs: Add an internal contains method that the
16539 BindingManagerBase uses to ensure bindings aren't added twice to
16541 * PropertyManager.cs: Stubbed out.
16543 * ContainerControl.cs: Hook up databinding
16545 2005-02-22 Geoff Norton <gnorton@customerdna.com>
16548 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
16549 Fixed Invalidate/Update chain.
16550 Fixed tons of other minor bugs (this is almost a complete rewrite).
16552 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
16554 * ComboBox.cs: do subcontrol creation when the control is created
16556 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16558 * Label.cs: fixes image drawing (image and imagelist)
16559 * ThemeWin32Classic.cs: cache brushes
16561 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16563 * Form.cs: Move menu drawing code to Theme class
16564 * ComboBox.cs: Move ComboBox drawing code to Theme class
16565 * MenuItem.cs: Move menu drawing code to Theme class
16566 * MenuAPI.cs: Move menu drawing code to Theme class
16567 * ThemeWin32Classic.cs: New methods
16568 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
16569 * ListBox.cs: Move Listbox drawing code to Theme class
16570 * Theme.cs: New methods
16572 2005-02-20 Peter Bartok <pbartok@novell.com>
16575 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
16576 only process mnemonics on those)
16577 - Fixed event sequence for key handling; first calling
16578 ProcessKeyEventArgs now
16580 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
16581 for processing non-character keys
16582 - Fixed WM_CHAR to generate proper event sequence before processing
16583 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
16586 2005-02-19 Peter Bartok <pbartok@novell.com>
16588 * UserControl.cs: Added TextChanged event; added attributes
16589 * SizeGrip.cs: Implemented resizing and optional display of grip
16590 * Form.cs: Fixed attribute
16591 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16592 Changed meaning of ScrollWindow bool argument; instead of the
16593 clear attribute (which will be true usually anyway), it gives the
16594 option of moving child controls as well.
16596 - Changed to match new ScrollWindow argument
16597 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
16598 now handles the implicit parent window a WM puts around us
16599 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
16601 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
16602 * TreeView.cs: Adjusted to new ScrollWindow arguments
16604 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16606 * Form.cs: Menu integration with non-client area
16607 * MenuItem.cs: Menu integration with non-client area
16608 * MenuAPI.cs: Menu integration with non-client area
16610 2005-02-18 Peter Bartok <pbartok@novell.com>
16612 * MethodInvoker.cs: Added
16613 * MdiLayout.cs: Added
16614 * SendKeys.cs: Started implementation
16615 * ErrorIconAlignment.cs: Added
16617 2005-02-18 Peter Bartok <pbartok@novell.com>
16619 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
16620 * Form.cs: Added handling for Menu-related Non-client messages
16622 2005-02-17 Peter Bartok <pbartok@novell.com>
16624 * UpDownBase.cs: Fixed typo, compilation errors
16625 * DomainUpDown.cs: Fixed attribute value
16627 2005-02-16 Miguel de Icaza <miguel@novell.com>
16629 * UpDownBase.cs: Attach entry events.
16631 Add ForeColor property, Focused, InterceptArrowKeys (interception
16632 does not work yet).
16634 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
16637 - Redraw non client are on Setmenu
16638 - Calc proper menu starting point
16640 2005-02-17 Peter Bartok <pbartok@novell.com>
16642 * Application.cs: Fixed message_filter check
16644 2005-02-17 Peter Bartok <pbartok@novell.com>
16646 * Application.cs: Now calls registered message filters
16647 * DockStyle.cs: Fixed attribute
16648 * Form.cs: Fixed attribute
16649 * Menu.cs: Fixed attribute
16650 * ToolTip.cs: Fixed attribute
16651 * TreeNode.cs: Added missing attributes and arranged in regions
16652 * PropertyGrid.cs: Fixed signatures
16653 * TreeNodeCollection.cs: Added attributes
16654 * Splitter.cs: Added missing attributes; arranged into regions
16655 * TabPage.cs: Added missing attributes; arranged into regions
16656 * TextBoxBase.cs: Added missing attributes
16657 * TextBox.cs: Added missing attributes
16658 * ArrangeDirection.cs: Added missing attributes
16659 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
16660 * ToolBarButton.cs: Fixed attributes
16661 * AnchorStyles.cs: Fixed attribute
16662 * TrackBar.cs: Fixed attributes
16663 * TabControl.cs: Added missing attributes and arranged into regions
16664 * ToolBar.cs: Fixed attribute
16665 * StatusBar.cs: Fixed signature, organized into regions and added
16667 * StatusBarPanel.cs: Fixed attributes
16668 * ContentsResizedEventArgs.cs: Implemented
16669 * ContentsResizedEventHandler.cs: Implemented
16670 * DateBoldEventArgs.cs: Implemented
16671 * DateBoldEventHandler.cs: Implemented
16672 * UpDownEventArgs.cs: Implemented
16673 * UpDownEventHandler.cs: Implemented
16675 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
16677 * Form.cs: first Menu NC refactoring
16678 * MenuAPI.cs: first Menu NC refactoring
16680 2005-02-16 Peter Bartok <pbartok@novell.com>
16682 * ImeMode.cs: Added missing attributes
16683 * Menu.cs: Fixed attribute
16684 * GroupBox.cs: Fixed attribute
16685 * Label.cs: Fixed attribute
16686 * ColorDialog.cs (RunDialog): Removed TODO attribute
16687 * ComboBox.cs: Fixed attributes
16688 * ListControl.cs: Added missing attributes
16689 * PropertyGrid.cs: Fixed attributes
16690 * Control.cs: Fixed attributes
16691 * ListViewItem.cs: Added TypeConverter attribute
16692 * NotifyIcon.cs: Fixed attributes
16693 * ListView.cs: Fixed attributes
16694 * ButtonBase.cs: Fixed attribute
16695 * ImageList.cs: Added missing attributes
16696 * ContainerControl.cs: Fixed signature
16697 * CheckedListBox.cs: Fixed attribute; added missing attributes
16698 * Panel.cs: Fixed attributes
16699 * PropertyTabChangedEventArgs.cs: Added missing attribute
16700 * PropertyValueChangedEventArgs.cs: Added missing attribute
16701 * Binding.cs: Fixed attribute
16702 * ListViewItemConverter: Implemented ListViewSubItemConverter class
16703 * ListBox.cs: Fixed attribute; added missing attributes;
16704 * ScrollableControl.cs: Added missing attributes
16705 * PictureBox.cs: Added missing attributes; implemented missing property
16706 * DateTimePicker.cs: Added missing attributes
16707 * Theme.cs (ToolWindowCaptionHeight): Fixed type
16708 * MonthCalendar.cs: Fixed attributes
16709 * StatusBarPanel.cs: Added missing attributes
16710 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
16712 2005-02-16 Peter Bartok <pbartok@novell.com>
16714 * TextBoxBase.cs: The previous method to enforce height yet remember
16715 the requested high was less than ideal, this is an attempt to do
16717 * Control.cs: Added comment about possible problem
16718 * Copyright: Updated format
16719 * GridItemType.cs: Fixed swapped values
16721 2005-02-15 Jackson Harper <jackson@ximian.com>
16723 * BaseCollection.cs: Use property so we never access an
16724 uninitialized list. Also initialize the list in the property.
16726 2005-02-15 Peter Bartok <pbartok@novell.com>
16728 * GroupBox.cs (ProcessMnemonic): Implemented
16729 * Label.cs (ProcessMnemonic): Implemented
16730 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
16733 2005-02-15 Peter Bartok <pbartok@novell.com>
16735 * RadioButton.cs (ProcessMnemonic): Implemented
16736 * CheckBox.cs (ProcessMnemonic): Implemented
16738 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
16740 - Added internal method to allow calling ProcessMnemonic from other
16742 * ContainerControl.cs:
16743 - Started support for handling validation chain handling
16744 - Implemented ProcessMnemonic support
16745 - Added Select() call to Active, to make sure the active control
16747 * Form.cs: Setting toplevel flag for Forms (this was lost in the
16748 FormParent rewrite)
16749 * ThemeWin32Classic.cs:
16750 - DrawCheckBox(): Fixed stringformat to show hotkeys
16751 - DrawRadioButton(): Fixed stringformat to show hotkeys
16752 * CommonDialog.cs: Removed WndProc override, not needed
16754 2005-02-14 Peter Bartok <pbartok@novell.com>
16756 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
16757 missed those in the rewrite
16759 2005-02-14 Miguel de Icaza <miguel@novell.com>
16761 * NumericUpDown.cs (Increment, ToString): Add.
16762 (DecimalPlaces): implement.
16766 * UpDownBase.cs: Add the designer attributes.
16768 2005-02-13 Peter Bartok <pbartok@novell.com>
16770 * Panel.cs: Removed border_style, now in Control
16771 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
16772 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
16774 2005-02-13 Peter Bartok <pbartok@novell.com>
16776 * MouseButtons.cs: Added missing attributes
16777 * XplatUIStructs.cs: Added enumeration for title styles
16778 * LeftRightAlignment.cs: Added missing attributes
16779 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
16780 it compatible with Graphics.FromHwnd()
16781 * SelectedGridItemChangedEventArgs.cs: Fixed property type
16782 * Keys.cs: Added missing attributes
16783 * SelectionRange.cs: Added missing attributes
16784 * SelectionRangeConverter.cs: Added
16786 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
16787 ReleaseMenuDC methods
16788 - Renamed ReleaseWindow to UngrabWindow
16789 - Added proper startup notice to allow version identification
16791 - Added missing attributes
16792 - Removed FormParent concept
16793 * Label.cs: Removed border_style field, now in Control
16794 * RadioButton.cs: Now properly selects RadioButton when focus is
16796 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
16798 - Added missing attributes
16799 - Added borderstyle handling
16800 - Removed FormParent concept support
16801 - Fixed calls to XplatUI to match changed APIs
16802 - Fixed bug that would case us to use disposed Graphics objects
16803 - Removed unneeded internal methods
16804 - PerformLayout(): Fixed to handle DockStyle.Fill properly
16805 - SelectNextControl(): Fixed to properly check common parents
16806 * TextBoxBase.cs: Removed border_style field (now in Control)
16808 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
16809 fixed calculations for form size
16810 - Added support for localized strings and icons
16811 - Improved form size calculations, added border
16812 * ListView.cs: Removed border_style field (now in Control)
16813 * X11Structs.cs: Moved several structs from X11 driver here
16814 * X11Keyboard.cs: Changed debug message
16815 * Application.cs: Removed FormParent concept support
16817 - Resetting end_modal flag
16818 - Removed FormParent concept support
16819 * NativeWindow.cs: Removed FormParent concept support
16820 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
16821 Client area and Non-Client whole window to allow support for WM_NC
16823 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
16824 prevent using it until it supports Hwnd as per Geoff Norton's request
16825 * ToolBar.cs: Fixed drawing, was not doing proper drawing
16826 * PictureBox.cs: Removed border_style field, now in Control
16827 * XplatUIWin32.cs: Added new driver methods
16829 2005-02-12 Peter Bartok <pbartok@novell.com>
16831 * OpacityConverter.cs: Implemented
16832 * Hwnd.cs: Internal class to support drivers that need to emulate
16833 client area/non-client area window behaviour
16835 2005-02-11 Peter Bartok <pbartok@novell.com>
16837 * KeysConverter.cs: Implemented
16839 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
16841 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
16842 * LinkLabel: Added missing attributes
16843 * MainMenu.cs: fixes ToString
16844 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
16845 * ListBox.cs: fixes event position
16846 * TrackBar.cs: adds missing attributes and events
16848 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
16850 * MenuItem.cs: Use SystemInformation and bug fixes
16851 * MenuAPI.cs: Use SystemInformation and bug fixes
16853 2005-02-09 Jackson Harper <jackson@ximian.com>
16855 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
16856 their keystate otherwise things like VK_MENU get stuck "on".
16858 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
16860 * ListBox.cs: Fixes AddRange bug
16862 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
16865 - Add missing attributes
16866 - Add missing method
16868 * CheckedListBox.cs: Added missing attributes
16869 - Add missing attributes
16870 - Remove extra method
16872 * ComboBox.cs: Added missing attributes
16873 * VScrollBar.cs: Added missing attributes
16874 * ScrollBar.cs: Added missing attributes
16875 * ListBox.cs: Fixes signature, add missing consts
16876 * LinkArea.cs: Added missing attributes
16879 2005-02-08 Peter Bartok <pbartok@novell.com>
16881 * Menu.cs: Added missing attributes
16882 * MainMenu.cs: Added missing attributes
16883 * GroupBox.cs: Added missing attributes
16884 * Label.cs: Added missing attributes
16885 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
16887 - Added Instance and Options properties
16888 - Added missing attributes
16889 * Cursor.cs: Made Serializable
16890 * NotifyIcon: Added missing attributes
16891 * MenuItem.cs: Added missing attributes
16892 * TextBoxBase.cs: Implemented AppendText() and Select() methods
16893 * Panel.cs: Added Missing attributes
16894 * MonthCalendar.cs: Fixed CreateParams
16896 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16900 - Fixes issues with links
16901 - Adds the class attributes
16903 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16906 - Fixes button when no items available in dropdown
16907 - Fixes repainting problems
16908 - Adds the class attributes
16910 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16912 * XplatUIOSX.cs: Detect the menu bar and title bar height from
16913 the current theme. Cache these on startup.
16915 2005-02-07 Jackson Harper <jackson@ximian.com>
16917 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
16918 the scrollbar buttons when they are depressed.
16920 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16922 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
16923 Get the display size from the main displayid. We currently dont
16924 support multiple display configurations.
16926 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16928 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
16930 2005-02-07 Miguel de Icaza <miguel@novell.com>
16932 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
16934 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
16936 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
16938 2005-02-04 Jackson Harper <jackson@ximian.com>
16940 * ThemeWin32Classic.cs: Respect the clipping rect when
16941 drawing. Only fill the intersection of clips and rects so there
16942 isn't a lot of large fills.
16943 * ScrollBar.cs: Pass the correct clipping rect to the theme
16944 engine. Remove some debug code.
16946 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
16948 * DateTimePicker.cs:
16949 - Fixed crash on DateTime.Parse, use Constructor instead
16951 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16955 - Owner draw support (MeasureItem and DrawItem)
16957 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16960 - Implements FindMergePosition and MergeMenu functions (very poor documented)
16961 - Fixes MenuItems.Add range
16963 - MergeMenu and Clone and CloneMenu functions
16965 2005-02-03 Jackson Harper <jackson@ximian.com>
16967 * ScrollBar.cs: Make abstract
16968 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
16971 2005-02-03 Jackson Harper <jackson@ximian.com>
16973 * ScrollBar.cs: First part of my scrollbar fixups. This removes
16974 all the unneeded refreshes and uses invalidates with properly
16977 2005-02-03 Peter Bartok <pbartok@novell.com>
16979 * ComponentModel.cs: Added
16980 * IDataGridEditingService.cs: Added
16981 * Timer.cs: Added missing attributes
16982 * ToolTip.cs: Added missing attributes
16984 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
16986 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
16988 2005-02-03 Peter Bartok <pbartok@novell.com>
16990 * ListBox.cs: Added missing attributes
16992 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
16995 - Fixes font height after font change
16996 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
16998 2005-02-02 Peter Bartok <pbartok@novell.com>
17000 * HandleData.cs: Introduced static methods to allow class
17001 to be more self-contained and track it's own HandleData objects
17002 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
17003 HandleData to use new static methods
17005 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
17008 - Fixes default size and PreferredHeight
17010 - ObjectCollection.Insert implementation
17016 - ObjectCollection.Insert implementation
17017 - No selection after clean
17020 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
17022 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
17024 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
17027 - Caches ItemHeight calculation for OwnerDrawVariable
17028 - Handles dropdown properly
17029 - Fixes several minor bugs
17031 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
17034 - Fixes 71946 and 71950
17035 - Fixes changing Multicolumn on the fly
17036 - Fixes keyboard navigation on Multicolumn listboxes
17038 2005-01-31 Geoff Norton <gnorton@customerdna.com>
17040 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
17041 crash reporter log.
17043 2005-01-31 Geoff Norton <gnorton@customerdna.com>
17045 * XplatUIOSX.cs: Allow applications to actually exit.
17047 2005-01-31 Geoff Norton <gnorton@customerdna.com>
17049 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
17050 their parent at creation time rather than lazily later. Fixes a major
17051 regression we were experiencing.
17053 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
17055 * ThemeWin32Classic.cs: more date time picker painting fixes
17056 * DateTimePicker.cs: more monthcalendar drop down fixes
17057 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
17059 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
17062 - When moving the thumb going outside the control should stop the moving
17063 - Adds the firing of missing events
17064 - Fixes no button show if Size is not specified
17065 - End / Home keys for keyboard navigation
17067 2005-01-30 Peter Bartok <pbartok@novell.com>
17069 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
17070 sanity check to prevent theoretical loop
17071 * XplatUIWin32.cs (SetVisible): Removed debug output
17072 * XplatUIX11.cs (SystrayChange): Added sanity check
17073 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
17074 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
17075 behaviour, valid until the X11 client window rewrite is done
17076 * TextBox.cs (ctor): Setting proper default foreground and background
17079 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
17081 * Theme: Added DrawDateTimePicker to interface
17082 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
17083 * DateTimePicker.cs: Created (still needs keys and painting code)
17084 * DateTimePickerFormat.cs: added
17085 * MonthCalendar.cs: fixed CreateParams for popup window mode
17087 2005-01-29 Peter Bartok <pbartok@novell.com>
17089 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
17090 this should also the calculations for ligher/darker
17091 * Theme.cs: Fixed defaults for ScrollBar widths/heights
17093 2005-01-29 Peter Bartok <pbartok@novell.com>
17095 * ArrangeDirection.cs: Added
17096 * ArrangeStartingPositon.cs: Added
17097 * SystemInformation.cs: Implemented
17098 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17099 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
17100 used by SystemInformation class
17101 * X11Strucs.cs: Added XSizeHints structure
17103 - Fixed CreateParams to make sure the menu window is always visible
17104 - TrackPopupMenu: Added check to make sure we don't draw the
17107 2005-01-29 Peter Bartok <pbartok@novell.com>
17109 * HandleData.cs: Added method for altering invalid area
17110 * TextBoxBase.cs: Implemented TextLength
17112 2005-01-28 Peter Bartok <pbartok@novell.com>
17114 * XplatUIX11.cs: Improvement over last patch, not sending
17115 the WM_PAINT directly anymore, instead we scroll any pending
17116 exposed areas and let the system pick out the WM_PAINT later
17118 2005-01-28 Peter Bartok <pbartok@novell.com>
17120 * SWF.csproj: Deleted, no longer used. Instead,
17121 Managed.Windows.Forms/SWF.csproj should be used
17122 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
17123 directly, to avoid a potential race condition with the next
17126 2005-01-28 Peter Bartok <pbartok@novell.com>
17128 * XplatUI.cs: Made class internal
17130 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
17132 * CheckedListBox.cs:
17135 - Missing methods and events
17137 2005-01-27 Peter Bartok <pbartok@novell.com>
17139 * Application.cs (Run): Don't use form if we don't have one
17141 2005-01-27 Peter Bartok <pbartok@novell.com>
17143 * TextBoxBase.cs (get_Lines): Fixed index off by one error
17145 2005-01-27 Peter Bartok <pbartok@novell.com>
17147 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
17148 * GridItem.cs: Added; Patch by Jonathan S. Chambers
17149 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
17150 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
17151 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
17152 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
17153 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17154 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17155 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17156 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17157 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17158 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17160 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
17163 - Draw focus on Simple Combobox
17164 - Fixes drawing issues
17167 2005-01-27 Peter Bartok <pbartok@novell.com>
17170 - Place window in default location, instead of hardcoded 0/0
17171 - Send initial LocationChanged event
17173 - UpdateBounds after creation to find out where the WM placed us
17174 - Make sure that if the ParentForm changes location the Form
17176 * XplatUIX11.cs: XGetGeometry will not return the coords relative
17177 to the root, but to whatever the WM placed around us.
17178 Translate to root coordinates before returning toplevel
17180 * XplatUIWin32.cs: Removed debug output
17181 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
17182 flag to GetWindowPos, to allow translation of coordinates on X11
17184 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
17186 * ListBox.cs: connect LostFocus Event
17188 2005-01-27 Peter Bartok <pbartok@novell.com>
17190 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17191 XplatUIX11.cs: Extended the Systray API
17192 * Form.cs: Removed debug output
17193 * Application.cs: Fixed focus assignment, always need to call
17194 XplatUI.Activate() since Form.Activate() has rules that may
17196 * NotifyIcon.cs: Should be complete now
17197 * ToolTip.cs: Worked around possible timer bug
17199 2005-01-27 Jackson Harper <jackson@ximian.com>
17202 - Only invalidate the effected tabs when the
17203 selected index changes. This reduces drawing and gets rid of some
17205 - Only refresh if the tabs need to be shifted, otherwise only
17206 invalidate the slider button.
17207 - On windows the tabs are not filled to right if the slider is
17210 2005-01-27 Jackson Harper <jackson@ximian.com>
17212 * TabControl.cs: Only refresh on mouseup if we are showing the
17213 slider. Also only invalidate the button whose state has changed.
17215 2005-01-26 Peter Bartok <pbartok@novell.com>
17217 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
17218 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
17219 and SystrayRemove() methods
17220 * XplatUIOSX.cs: Stubbed Systray methods
17222 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
17224 - Fixed broken XChangeProperty calls (marshalling messed up things)
17225 * X11Structs.cs: Added enums and structs required for Size hinting
17226 * NotifyIcon.cs: Added & implemented
17228 2005-01-26 Jackson Harper <jackson@ximian.com>
17230 * TabControl.cs: Space vertically layed out tabs properly.
17232 2005-01-26 Peter Bartok <pbartok@novell.com>
17234 * Form.cs (CreateClientParams): Always set the location to 0,0
17235 since we're a child window.
17237 * Control.cs (SetVisibleCore): Always explicitly setting the location
17238 of a toplevel window, apparently X11 doesn't like to move windows
17239 while they're not mapped.
17241 2005-01-26 Jackson Harper <jackson@ximian.com>
17243 * TabControl.cs: Implement FillToRight size mode with vertically
17246 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
17248 * ControlPaint.cs, ThemeWin32Classic.cs
17249 - Fixes DrawFocusRectangle
17251 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
17254 - MenuBar tracking only starts when item is first clicked
17255 - Fixes menu hidding for multiple subitems
17256 - Unselect item in MenuBar when item Executed
17259 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
17262 - IsInputKey for ListBox
17265 - Shift and Control item selection
17266 - Implement SelectionMode.MultiExtended
17267 - Fixes RightToLeft
17269 - IsInputKey implemented
17270 - Do not generate OnTextChangedEdit on internal txt changes
17272 2005-01-23 Peter Bartok <pbartok@novell.com>
17274 * AccessibleObject.cs: Partially implemented Select()
17275 * MonthCalendar.cs: Added missing attributes and events
17276 * Form.cs: Fixed CreateParams behaviour, now controls derived from
17277 form can properly override CreateParams.
17278 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17279 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
17280 Control performs Invalidate & Update
17281 * NativeWindow (CreateHandle): Added special handling for Form
17282 and Form.FormParent classes to allow overriding of From.CreateParams
17284 - ControlNativeWindow: Renamed 'control' variable to more intuitive
17286 - ControlNativeWindow: Added Owner property
17287 - Removed usage of Refresh() on property changes, changed into
17288 Invalidate(), we need to wait until the queue is processed for
17289 updates, direct calls might cause problems if not all vars for
17290 Paint are initialized
17291 - Added call to UpdateStyles() when creating the window, to set any
17292 styles that CreateWindow might have ignored.
17293 - Added support for Form CreateParent overrides to UpdateStyles()
17294 * MessageBox.cs: Removed no longer needed FormParent override stuff,
17295 CreateParams are now properly overridable
17296 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
17297 CreateParams are now properly overridable
17299 2005-01-23 Miguel de Icaza <miguel@ximian.com>
17301 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
17304 Capture LostFocus and OnTextBoxChanged. The later introduces a
17305 recursive invocation that I have not figured out yet.
17307 Reset the timer when not using (it was accumulating).
17310 (OnTextBoxChanged): Set UserEdit to true here to track whether the
17311 user has made changes that require validation.
17313 Reset changing to avoid loops.
17315 2005-01-22 Miguel de Icaza <miguel@ximian.com>
17317 * NumericUpDown.cs: Display value at startup.
17319 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
17322 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
17323 filled in. Added some basic parsing of text.
17325 Still missing the OnXXX method overrides, and figuring out the
17326 events that must be emitted.
17328 * UpDownBase.cs: Handle UserEdit on the Text property.
17330 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
17333 - Fixes IntegralHeight
17336 2005-01-21 Jackson Harper <jackson@ximian.com>
17338 * TabControl.cs: Set the SelectedIndex property when SelectedTab
17339 is set so that the page visibility is updated and the tabs are
17342 2005-01-21 Jackson Harper <jackson@ximian.com>
17344 * TabControl.cs: Use cliping rectangle for blitting. Give the
17345 theme the clipping rect so we can do clipping while
17346 drawing. Remove some debug code.
17348 2005-01-21 Jackson Harper <jackson@ximian.com>
17350 * TabPage.cs: Add a new method so tab pages can force the tab
17351 control to recalculate the tab page sizes.
17352 * TabControl.cs: UpdateOwner needs to make the tab control recalc
17355 2005-01-20 Jackson Harper <jackson@ximian.com>
17357 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
17359 2005-01-20 Jackson Harper <jackson@ximian.com>
17361 * TreeView.cs: Set the bounds for nodes properly. They were
17362 getting screwed up when checkboxes were not enabled, but images
17365 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
17368 - Owner draw support
17371 2005-01-20 Jackson Harper <jackson@ximian.com>
17373 * XplatUIStructs.cs: More misc keys
17374 * X11Keyboard.cs: Ignore some control keys.
17376 2005-01-20 Jackson Harper <jackson@ximian.com>
17378 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
17379 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
17381 2005-01-19 Peter Bartok <pbartok@novell.com>
17383 * Control.cs: Un-selecting the control when it is loosing focus
17385 2005-01-19 Jackson Harper <jackson@ximian.com>
17387 * TreeView.cs: Hook up to the text controls leave event so we can
17388 end editing when the users clicks outside the text box.
17390 2005-01-19 Jackson Harper <jackson@ximian.com>
17392 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
17393 get set in the conversion array.
17395 2005-01-19 Peter Bartok <pbartok@novell.com>
17397 * Application.cs (ModalRun): Added a call to CreateControl to ensure
17398 focus is properly set
17400 - Added missing attributes
17401 - removed styles, those are already set in the base class
17403 - Added missing attributes
17404 - Added clip window styles
17405 * CheckBox.cs: Added missing attributes
17407 - FormParentWindow.CreateParams: Added required clip styles
17408 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
17409 also filters modifier keys
17411 - Added assignment of Accept and Cancel button to enable Enter
17412 and Esc keys in MessageBox dialogs
17413 - FormParentWindow.CreateParams: Added required clip styles
17414 * RadioButton.cs: Added missing attributes
17415 * TextControl.cs: No longer draws selection if control does not
17418 - Now draws simple rectangle around test area to make it obvious
17419 there's a control. This is a hack until we properly support borders
17420 - A few simple fixes to support selections better, now erases selected
17421 text when typing, and resets selection when using movement keys
17423 2005-01-19 Miguel de Icaza <miguel@ximian.com>
17425 * UpDownBase.cs: Added some new properties.
17427 * DomainUpDown.cs: Implement a lot to get my test working.
17429 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17431 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
17433 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17435 * OSXStructs (WindowAttributes): Fixed csc complaints
17437 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17440 OSXStructs.cs: Initial refactor to move enums and consts into
17441 OSXStructs and use them in the driver for greater readability.
17443 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17445 * XplatUIOSX.cs: Initial support for Standard Cursors.
17446 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
17448 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
17450 * ComboBox.cs: ability to change style when the ctrl is already
17451 created, missing methods and events, bug fixes, signature fixes
17453 2005-01-19 Peter Bartok <pbartok@novell.com>
17455 * Cursors.cs (ctor): Added ctor to fix signature
17457 2005-01-18 Peter Bartok <pbartok@novell.com>
17459 * Button.cs: Implemented DoubleClick event
17461 - Fixed keyboard handling to behave like MS, where the press of
17462 Spacebar is equivalent to a mousedown, and the key release is
17463 equivalent to mouseup. Now a spacebar push will give the same
17464 visual feedback like a mouse click.
17465 - Added missing attributes
17466 - Added ImeModeChanged event
17467 - Added support for generating DoubleClick event for derived classes
17469 - Implemented DoubleClick event
17470 - Added missing attributes
17471 * CommonDialog.cs: Added missing attribute
17472 * ContextMenu.cs: Added missing attributes
17474 - AutoChecked buttons do not allow to be unselected when clicked
17475 (otherwise we might end up with no selected buttons in a group)
17476 - Added missing attributes
17477 - Implemented DoubleClickEvent
17478 * ThreadExceptionDialog.cs: Enabled TextBox code
17480 2005-01-18 Peter Bartok <pbartok@novell.com>
17482 * Form.cs: Removed debug output
17483 * Button.cs: Added support for DoubleClick method
17485 2005-01-18 Peter Bartok <pbartok@novell.com>
17488 - Added method to parent window that allows triggering size
17489 calculations when a menu is added/removed
17490 - set_Menu: Cleaned up mess from early days of Form and Control,
17491 now properly triggers a recalc when a menu is added/removed
17492 - Added case to select form itself as focused form if no child
17494 - Added PerformLayout call when showing dialog, to ensure properly
17497 - Select(): Made internal so Form can access it
17498 - Focus(): Only call Xplat layer if required (avoids loop), and sets
17500 * Application.cs (Run): Removed hack and calls PerformLayout instead
17501 to trigger calculation when Form becomes visible
17503 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
17505 * ComboBox.cs: fixes for ownerdraw
17507 2005-01-18 Peter Bartok <pbartok@novell.com>
17510 - Sentinel is no longer static, each Document gets it's own, this
17511 avoids locking or alternatively overwrite problems when more
17512 than one text control is used simultaneously.
17513 - Switched to use Hilight and HilightText brushes for text selection
17515 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
17517 2005-01-18 Peter Bartok <pbartok@novell.com>
17520 - Hooked up the following events:
17528 o SystemColorsChanged
17529 o ParentFontChanged
17531 - Removed debug output
17532 - Added a call to the current theme's ResetDefaults when a color change
17534 * Form.cs: Now setting the proper ImeMode
17535 * Theme.cs: Defined a method to force recreation of cached resources
17536 and rereading of system defaults (ResetDefaults())
17537 * ThemeWin32Classic.cs: Added ResetDefaults() stub
17539 2005-01-17 Peter Bartok <pbartok@novell.com>
17541 * Control.cs: Added missing attributes
17543 2005-01-17 Jackson Harper <jackson@ximian.com>
17545 * TreeNode.cs: Implement editing. Add missing properties selected
17547 * TreeView.cs: Implement node editing. Also some fixes to use
17548 Invalidate (invalid area) instead of Refresh when selecting.
17550 2005-01-17 Peter Bartok <pbartok@novell.com>
17553 - Implemented InvokeGotFocus() method
17554 - Implemented InvokeLostFocus() method
17555 - Implemented InvokePaint() method
17556 - Implemented InvokePaintBackground() method
17557 - Implemented InvokeClick() method
17558 - Implemented FindForm() method
17559 - Implemented RectangleToClient() method
17560 - Implemented ClientToRectangle() method
17561 - Implemented ResetBackColor() method
17562 - Implemented ResetCursor() method
17563 - Implemented ResetFont() method
17564 - Implemented ResteForeColor() method
17565 - Implemented ResetImeMode() method
17566 - Implemented ResetLeftToRight() method
17567 - Implemented ResetText() method
17568 - Implemented Scale() methods
17569 - Implemented ScaleCore() method
17570 - Implemented Update() method
17571 - Removed unused variables
17572 - Stubbed AccessibilityNotifyClients and
17573 ControlAccessibleObject.NotifyClients() methods (dunno what to do
17575 - Now setting proper default for RightToLeft property
17576 - Fixed bug in SetClientSizeCore that would cause windows to get
17578 - Now sending Click/DoubleClick events
17579 - Now selecting controls when left mouse button is clicked on
17581 * AccessibleEvents.cs: Added
17582 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
17583 * XplatUIOSX.cs: Stubbed UpdateWindow() method
17584 * XplatUIWin32.cs: Implemented UpdateWindow() method
17585 * XplatUIX11.cs: Implemented UpdateWindow() method
17586 * Form.cs: Removed stray semicolon causing CS0162 warning
17587 * ThemeWin32Classic.cs: Fixed unused variable warnings
17588 * ScrollableControl.cs: Now calls base method for ScaleCore
17589 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
17590 style to avoid interference with internal click handler (which is
17591 different than standard Control click handling)
17593 - Now unchecks all sibling radio buttons when control is
17594 selected (Fixes #68756)
17595 - Removed internal tabstop variable, using the one inherited from
17598 2005-01-17 Jackson Harper <jackson@ximian.com>
17600 * NavigateEventArgs.cs: Fix base type.
17601 * LinkLabel.cs: Sig fix
17603 2005-01-17 Jackson Harper <jackson@ximian.com>
17605 * TreeView.cs: Only invalidate the effected nodes bounds when
17608 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17610 * XplatUIWin32.cs: fixes Win32 marshaling
17611 * XplatUIX11.cs: fixes method signature
17613 2005-01-17 Peter Bartok <pbartok@novell.com>
17615 * XplatUIX11.cs: Clean up resources when we no longer need them
17617 2005-01-17 Peter Bartok <pbartok@novell.com>
17619 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
17620 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
17621 and DestroyCursor() methods.
17622 * Cursor.cs: Partially implemented, now supports standard cursors;
17623 still contains some debug code
17624 * Cursors.cs: Implemented class
17626 - WndProc(): Added handling of WM_SETCURSOR message, setting the
17628 - Implemented Cursor property
17629 - Replaced break; with return; more straightforwar and possibly
17631 - Now properly setting the result for WM_HELP
17632 * X11Structs.cs: Added CursorFontShape enum
17633 * XplatUIStructs.cs:
17634 - Added StdCursor enum (to support DefineStdCursor() method)
17635 - Added HitTest enum (to support sending WM_SETCURSOR message)
17637 - Now sends the WM_SETCURSOR message
17638 - Implemented new cursor methods
17639 * XplatUIOSX.cs: Stubbed new cursor methods
17641 - Implemented new cursor methods
17642 - Added GetSystemMetrics function and associated enumeration
17644 2005-01-15 Peter Bartok <pbartok@novell.com>
17647 - WndProc(): Now handles EnableNotifyMessage
17648 - SelectNextControl(): Fixed bug where if no child or sibling
17649 controls exist we looped endlessly
17651 2005-01-14 Jackson Harper <jackson@ximian.com>
17653 * TreeView.cs: Recalculate the tab pages when a new one is added
17654 so that the proper bounding rects are created.
17656 2005-01-14 Jackson Harper <jackson@ximian.com>
17658 * TreeView.cs: Draw a gray box instead of a grip in the lower
17659 right hand corner when there are both horizontal and vertical
17662 2005-01-14 Jackson Harper <jackson@ximian.com>
17664 * Control.cs: When erasing backgrounds use FromHwnd instead of
17665 FromHdc when there is a NULL wparam. This occurs on the X driver.
17666 * XplatUIX11.cs: Set the wparam to NULL.
17668 2005-01-13 Jackson Harper <jackson@ximian.com>
17670 * PictureBox.cs: Implement missing methods (except ToString, need
17671 to test that on windows) and events. When visibility is changed we
17672 need to redraw the image because the buffers are killed. When size
17673 is changed refresh if the sizemode needs it.
17675 2005-01-13 Peter Bartok <pbartok@novell.com>
17677 * Control.cs (SelectNextControl): Was using wrong method to select
17680 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17682 * ComboBox.cs: fixes dropstyle
17684 2005-01-13 Peter Bartok <pbartok@novell.com>
17687 - Implemented Select() override
17688 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
17689 - Now sets keyboard focus on startup
17690 * Control.cs (SelectNextControl): Now properly handles directed=true
17692 - WndProc: Now passes tab key on to base if AcceptTabChar=false
17693 - Added (really bad) focus rectangle (mostly for testing)
17694 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
17695 to enforce redraw on focus changes
17696 * ContainerControl.cs:
17697 - Fixed detection of Shift-Tab key presses
17698 - Fixed traversal with arrow keys
17699 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
17700 gonna keep this or if it's complete yet
17702 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17704 * ComboBox.cs: missing properties, fixes
17706 2005-01-13 Peter Bartok <pbartok@novell.com>
17708 * Panel.cs (ctor): Setting Selectable window style to off
17709 * Splitter.cs (ctor): Setting Selectable window style to off
17710 * GroupBox.cs (ctor): Setting Selectable window style to off
17711 * Label.cs (ctor): Setting Selectable window style to off
17713 2005-01-12 Miguel de Icaza <miguel@ximian.com>
17715 * UpDownBase.cs (InitTimer): If the timer has been already
17716 created, enable it.
17718 Use a TextBox instead of a Label.
17720 2005-01-12 Jackson Harper <jackson@ximian.com>
17722 * TreeView.cs: Refresh the tree after sorting the nodes. Always
17723 draw the connecting node lines (when ShowLines is true).
17724 * TreeNode.cs: The nodes index can now be updated. This is used
17725 when a node collection is sorted.
17726 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
17727 insert or an existing unsorted node collection can be sorted.
17729 2005-01-12 Peter Bartok <pbartok@novell.com>
17731 * ContainerControl.cs: Implemented ProcessDialogKeys()
17733 2005-01-12 Peter Bartok <pbartok@novell.com>
17736 - Implemented SelectNextControl() method
17737 - Several focus related bug fixes
17738 - Fixed Docking calculations to match MS documentation and
17741 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
17743 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
17746 2005-01-12 Peter Bartok <pbartok@novell.com>
17749 - Fixed broken Contains() method
17750 - Implemented GetNextControl() method. Finally. This is the pre-
17751 requisite for focus handling.
17753 2005-01-12 Peter Bartok <pbartok@novell.com>
17755 * OSXStrucs.cs: Added
17757 2005-01-12 Peter Bartok <pbartok@novell.com>
17760 - Removed PeekMessageFlags
17761 - Implemented SetWindowStyle() method
17762 * XplatUIStructs.cs: Added PeekMessageFlags
17763 * X11Structs: Added missing border_width field to XWindowChanges struct
17765 - PeekMessage: Now throws exception if flags which are not yet
17766 supported are passed
17767 - Implemented SetWindowStyle() method
17768 - Fixed SetZOrder to handle AfterHwnd properly
17769 * XplatUI.cs: Added SetWindowStyle() method
17770 * XplatUIDriver.cs: Added SetWindowStyle() abstract
17772 - Implemented UpdateStyles() method
17773 - Implemented UpdateZOrder() method
17774 * XplatUIOSX.cs: Added SetWindowStyle() stub
17776 2005-01-12 Geoff Norton <gnorton@customerdna.com>
17778 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
17782 2005-01-11 Jackson Harper <jackson@ximian.com>
17784 * TreeView.cs: Still need to draw lines to siblings even if out of
17785 the current node is out of the clip.
17787 2005-01-11 Jackson Harper <jackson@ximian.com>
17789 * TreeView.cs: When setting the hbar/vbar/grip position use
17790 SetBounds so that perform layout is only called once. Also suspend
17791 and resume layout so layout is only done once for all controls.
17792 - Removed some debug fluff
17793 * SizeGrip.cs: Call base implmentation in overriding methods.
17794 - When visibility is changed the drawing buffers are killed so we
17797 2005-01-11 Jackson Harper <jackson@ximian.com>
17799 * TreeView.cs: Calculate the open node count while drawing. This
17800 saves us an entire tree traversal for every paint operation. Use
17801 a member var for the open node count so less vars are passed around.
17803 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
17805 * MonthCalendar.cs:
17806 - fixed selection to use mousemove, not mouse polling on timer
17807 * ThemeWin32Classic.cs
17808 - removed redundant unused variable "no_more_content"
17810 2005-01-11 Peter Bartok <pbartok@novell.com>
17812 * XplatUIX11.cs (DoEvents): Needs to return when no more events
17813 are pending, so it now calls PeekMessage instead of GetMessage;
17814 implemented a incomplete version of PeekMessage
17816 2005-01-11 Peter Bartok <pbartok@novell.com>
17818 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
17820 * TextBoxBase.cs: Added sending of TextChanged event
17822 2005-01-10 Jackson Harper <jackson@ximian.com>
17824 * TreeView.cs: Try not to draw outside the clipping rectangle on
17827 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
17829 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
17831 2005-01-10 Jackson Harper <jackson@ximian.com>
17834 - Implement fast scrolling. Now only the newly
17835 exposed nodes are drawn and the old image is moved using the
17836 XplatUI::ScrollWindow method.
17837 - Factor in height of nodes when calculating whether or not the
17838 node is in the clipping rect.
17840 2005-01-10 Jackson Harper <jackson@ximian.com>
17842 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
17844 2005-01-10 Peter Bartok <pbartok@novell.com>
17846 * Application.cs: Added temporary hack to resolve all our resize
17847 required issues on startup. This will get fixed properly at
17848 some point in the future
17850 2005-01-10 Jackson Harper <jackson@ximian.com>
17852 * SizeGrip.cs: New internal class that is used as a sizing
17853 grip control...hence the name.
17855 2005-01-10 Peter Bartok <pbartok@novell.com>
17857 * Control.cs: Implemented proper TabIndex handling, now assigning
17858 a tabindex when a control is added to a container
17859 * GroupBox.cs (ctor): Now sets the Container style bit, required
17860 for Control.GetNextControl()
17862 2005-01-09 Jackson Harper <jackson@ximian.com>
17864 * TextBoxBase.cs: Clear window when scrolling (fixes build).
17866 2005-01-09 Peter Bartok <pbartok@novell.com>
17868 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17869 XplatUIX11.cs: Added ability to control ScrollWindow expose and
17870 an overload for ScrollWindow to allow only scrolling a rectangle
17872 2005-01-09 Peter Bartok <pbartok@novell.com>
17875 - Implemented SetDesktopBounds method
17876 - Implemented SetDesktopLocation method
17878 2005-01-08 Jackson Harper <jackson@ximian.com>
17880 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
17881 the node count has changed, this removes to VScroll::Refresh calls
17884 2005-01-08 Geoff Norton <gnorton@customerdna.com>
17886 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
17888 2005-01-07 Jackson Harper <jackson@ximian.com>
17890 * TreeNode.cs: Just update the single node when it is
17891 checked. Don't refresh after toggling, the Expand/Collapse already
17893 * TreeView.cs: Respect clipping a little more when drawing. Try
17894 not to redraw things that don't need to be redrawn. Just hide the
17895 scrollbars when they are no longer needed instead of removing
17896 them, so they don't have to be created again and again.
17898 2005-01-07 Geoff Norton <gnorton@customerdna.com>
17900 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
17901 coordinates to window space to place the caret properly, FIXED.
17902 Implement GetWindowState & SetWindowState
17904 2005-01-06 Peter Bartok <pbartok@novell.com>
17907 - Implemented ClientSize property
17908 - Implemented DesktopBounds property
17909 - Implemented DesktopLocation property
17910 - Implemented IsRestrictedWindow property
17911 - Implemented Size property
17912 - Implemented TopLevel property
17913 - Implemented FormWindowState property
17915 - Implemented GetTopLevel() method
17916 - Implemented SetTopLevel() method
17917 * X11Structs.cs (Atom):
17918 - Added AnyPropertyType definition
17919 - Added MapState definiton and updated XWindowAttribute struct
17920 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
17921 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
17922 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
17924 - Implemented GetWindowState() and SetWindowState() methods
17925 - Fixed Win32GetWindowLong return type
17927 - Introduced central function for sending NET_WM messages
17928 - Implemented GetWindowState() and SetWindowState() methods
17929 * TextBoxBase.cs (set_Lines):
17930 - Now uses Foreground color for text added via Text property (Duh!)
17931 - Added code to remember programmatically requested size (fixes
17932 behaviour when Multiline is set after Size)
17933 - Added AutoSize logic
17935 2005-01-06 Jackson Harper <jackson@ximian.com>
17937 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
17939 2005-01-06 Jackson Harper <jackson@ximian.com>
17941 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
17942 set to less then 0.
17944 2005-01-06 Jackson Harper <jackson@ximian.com>
17946 * ScrollableControl.cs: Lazy init the scrollbars.
17948 2005-01-06 Jackson Harper <jackson@ximian.com>
17950 * Theme.cs: Speed up getting pens and solid brushes, by using
17951 their ARGB as a hash instead of tostring and not calling Contains.
17953 2005-01-06 Peter Bartok <pbartok@novell.com>
17956 - Implemented OnActivated and OnDeactivate event trigger
17957 - Implemented Activate() method
17958 - Fixed ShowDialog() to activate the form that was active before
17959 the dialog was shown
17961 - Added global active_window var that tracks the currently active
17963 - Now always grabs Property changes from the root window to always
17964 catch changes on the active window property
17965 - Added code to PropertyNotify handler to send Active/Inactive
17966 messages when state changes. This puts X11 and Win32 en par on
17967 WM_ACTIVATE notifications (except for double notifications when
17968 the user clicks away from our modal window to another one of our
17971 2005-01-05 Jackson Harper <jackson@ximian.com>
17973 * ImageList.cs: Implment ctor
17975 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17977 * XplatUIOSX.cs: Implement Activate/SetTopmost
17979 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17981 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
17983 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17985 * XplatUIOSX.cs: Implement GetActive/SetFocus.
17987 2005-01-05 Peter Bartok <pbartok@novell.com>
17989 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
17990 XplatUIOSX.cs: Added GetActive method to return the currently
17991 active window for the application (or null, if none is active)
17993 - Implemented ActiveForm
17994 - Commented out owner assignment for modal dialogs (causes problems
17995 on Win32, since the owner will be disabled)
17996 - Reworked some Active/Focus handling (still incomplete)
17997 * CommonDialog.cs: Commented out owner assignment for modal dialogs
17998 (causes problems on Win32, since the owner will be disabled)
17999 * IWin32Window: Added ComVisible attribute
18001 2005-01-05 Peter Bartok <pbartok@novell.com>
18003 * ToolTip.cs (WndProc): Enable setting focus now that we have the
18004 required XplatUI functions.
18006 2005-01-05 Peter Bartok <pbartok@novell.com>
18008 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
18009 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
18010 to implement focus and activation handling; still incomplete and
18013 2005-01-04 Peter Bartok <pbartok@novell.com>
18015 * TextBoxBase.cs: Changed access level for Document property to
18016 match switch to internal for TextControl
18018 2005-01-04 Peter Bartok <pbartok@novell.com>
18020 * AccessibleObject: Added ComVisible attribute
18022 2005-01-04 Jackson Harper <jackson@ximian.com>
18024 * X11Keyboard.cs: Remove unneeded var.
18026 2005-01-04 Jackson Harper <jackson@ximian.com>
18028 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
18030 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
18031 ClientMessage. This makes apps exit cleanly (more often).
18033 2005-01-04 Jackson Harper <jackson@ximian.com>
18035 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
18036 handling focus, return correct colors and fonts,
18037 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
18038 handle selection, horizontal scrolling, and mouse interaction.
18040 2005-01-04 Peter Bartok <pbartok@novell.com>
18042 * ICommandExecutor.cs: Added
18043 * IDataGridColumnStyleEditingNotificationService.cs: Added
18044 * IFeatureSupport.cs: Added
18045 * IFileReaderService.cs: Added
18046 * IDataObject.cs: Added ComVisible attribute
18047 * AmbientProperties.cs: Added
18048 * BaseCollection.cs: Added missing attributes
18049 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
18050 * BaseCollection.cs: Added missing attributes
18051 * Binding.cs: Added TypeConverter attribute
18052 * BindingContext.cs: Added DefaultEvent attribute
18053 * BindingsCollection.cs: Added DefaultEvent attribute
18054 * Button.cs: Added DefaultValue attribute
18055 * DragEventArgs.cs: Added ComVisible attribute
18056 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
18057 * KeyEventArgs.cs: Added ComVisible attribute
18058 * KeyPressEventArgs.cs: Added ComVisible attribute
18059 * MouseEventArgs.cs: Added ComVisible attribute
18060 * NavigateEventArgs.cs: Added
18061 * NavigateEventHandler.cs: Added
18062 * FeatureSupport.cs: Added
18063 * OSFeature.cs: Added
18064 * Theme.cs: Added abstract Version property to support OSFeature
18065 * ThemeWin32Classic.cs: Added Version property to
18066 support OSFeature.Themes
18067 * ProgressBar.cs: Removed OnPaintBackground override, not required since
18068 the proper styles to avoid background drawing are set, also doesn't
18070 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
18071 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
18072 * ScrollEventArgs.cs: Added ComVisible attribute
18073 * SplitterEventArgs.cs: Added ComVisible attribute
18074 * AccessibleSelection.cs: Added Flags attribute
18075 * Appearance.cs: Added ComVisible attribute
18076 * Border3DSide.cs: Added ComVisible attribute
18077 * Border3DStyle.cs: Added ComVisible attribute
18078 * BorderStyle.cs: Added ComVisible attribute
18079 * DragAction.cs: Added ComVisible attribute
18080 * ErrorBlinkStyle.cs: Added
18081 * ScrollEventType.cs: Added ComVisible attribute
18082 * AnchorStyles.cs: Added Editor attribute
18083 * DockStyle.cs: Added Editor attribute
18084 * HorizontalAlignment.cs: Added ComVisible attribute
18085 * HelpEventArgs.cs: Added ComVisible attribute
18086 * PaintEventArgs.cs: Added IDisposable
18088 2005-01-04 Peter Bartok <pbartok@novell.com>
18090 * TextControl.cs: Switched Line, LineTag and Document classes to
18093 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
18095 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
18096 Simple mode, fixes, IntegralHeight, etc.
18098 2005-01-04 Peter Bartok <pbartok@novell.com>
18100 * TextBoxBase.cs: Using proper font variable now
18102 2005-01-04 Peter Bartok <pbartok@novell.com>
18104 * Form.cs (ShowDialog): Set parent to owner, if provided
18105 * GroupBox.cs: Removed unused vars
18107 - Added GetHashCode() for Document and LineTag classes
18108 - Removed unused variables
18109 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
18110 to allow translation between continuous char position and line/pos
18111 * CheckBox.cs: Removed vars that are provided by base class
18112 * RadioButton.cs: Removed vars that are provided by base class, added
18113 new keyword where required
18114 * LinkLabel.cs: Added new keyword where required
18115 * Control.cs (WndProc): Removed unused variable
18117 - Finished SelectionLength property
18118 - Implemented SelectionStart property
18119 - Implemented Text property
18120 - Removed unused vars
18121 * MessageBox.cs: Added new keyword where required
18122 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
18124 * MenuAPI.cs: Added new keyword where required
18125 * ButtonBase.cs: Removed vars that are provided by base class, added
18126 new keyword where required
18127 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
18128 argument to double, to allow compiling with csc 2.0 (Atsushi ran
18130 * Application.cs (Run): Now triggers the ThreadExit event
18131 * CommonDialog.cs: Added new keyword where required; now properly sets
18132 parent (owner) for dialog
18133 * XplatUIX11.cs: Commented out unused vars
18134 * StatusBar.cs: Fixed signature for Text property
18135 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
18137 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
18139 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
18140 TrackBar.cs, MonthCalendar.cs: remove unused vars
18142 2005-01-03 Jackson Harper <jackson@ximian.com>
18144 * ThemeWin32Classic.cs:
18145 * X11Keyboard.cs: Remove unused vars.
18147 2005-01-03 Peter Bartok <pbartok@novell.com>
18150 - set_Text: Tied into TextControl
18151 - set_TextAlignment: Tied into TextControl
18153 - Added alignment properties and implemented alignment handling
18154 and drawing (still has a bug, not generating proper expose events)
18155 - Added new Line() constructor to allow passing the line alignment
18156 - Fixed selection setting, properly handling end<start now
18157 - Added aligment considerations to RecalculateDocument()
18159 - Now properly enforces control height for single line controls
18160 - Added support for CharacterCasing
18161 - Added IsInputKey override
18162 - Fixed Keys.Enter logic
18163 - Added SetBoundsCore override
18164 - Fixed mouse selection handling
18166 2005-01-03 Jackson Harper <jackson@ximian.com>
18169 - Collapse and uncheck all nodes when CheckBoxes is disabled.
18170 - Checkboxes are always aligned to the bottom of the node,
18171 regardless of item height.
18172 - Use the node bounds to draw the text so we can center it when
18173 the item height is greater then the font height.
18174 - Node::Bounds are only the text part of the node.
18175 * TreeNode.cs: New method to combine collapsing and unchecking all
18178 2005-01-02 Jackson Harper <jackson@ximian.com>
18180 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
18181 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
18182 tree when a check is changed. TODO: Only refresh the checked node.
18184 2004-12-30 Jackson Harper <jackson@ximian.com>
18186 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
18187 * TreeNode.cs: When collapsing make sure to never collapse the
18190 2004-12-29 Jackson Harper <jackson@ximian.com>
18192 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
18194 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
18196 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
18198 2004-12-28 Peter Bartok <pbartok@novell.com>
18200 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
18203 2004-12-28 Peter Bartok <pbartok@novell.com>
18205 * Control.cs (WndProc): Added WM_HELP handler, now generates
18206 HelpRequested event
18207 * Form.cs: Added HelpButton property and required support code
18208 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
18210 2004-12-28 Peter Bartok <pbartok@novell.com>
18213 - Made DialogForm.owner variable internal
18214 - Added check to ensure owner form is set before setting
18215 owner properties in CreateParams
18217 2004-12-28 Geoff Norton <gnorton@customerdna.com>
18219 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
18220 swizzling. Implement ClientToScreen and ScreenToClient. Implement
18221 GetCursorPos. Fix major visibility issues. Rework the windowing
18222 system to support borderless/titleless windows (implements menus).
18223 Fix GetWindowPos. Implement initial background color support for
18226 2004-12-28 Peter Bartok <pbartok@novell.com>
18228 * Form.cs (get_CreateParams): Make sure we have an owner before using
18229 the owner variable. Implement proper default if no owner exists
18231 2004-12-28 Peter Bartok <pbartok@novell.com>
18233 * In preparation for making Managed.Windows.Forms the default build target
18234 for System.Windows.Forms, the following stubbed files were added.
18235 Dialogs are currently being implemented by contributors and are only
18236 short-term place holders.
18237 * ColorDialog.cs: Initial check-in (minmal stub)
18238 * DataGrid.cs: Initial check-in (minimal stub)
18239 * DataGridLineStyle.cs: Initial check-in (minimal stub)
18240 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
18241 * DataGridTableStyle.cs: Initial check-in (minimal stub)
18242 * FontDialog.cs: Initial check-in (minimal stub)
18243 * FileDialog.cs: Initial check-in (minimal stub)
18244 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
18245 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
18246 * OpenFileDialog: Initial check-in (minimal stub)
18247 * IComponentEditorPageSite.cs: Initial check-in
18248 * Splitter.cs: Initial check-in (for Jackson)
18249 * SplitterEventArgs.cs: Initial check-in (for Jackson)
18250 * SplitterEventHandler.cs: Initial check-in (for Jackson)
18251 * TextBox.cs: Initial check-in; still needs some wiring to
18252 TextControl backend
18253 * Form.cs: Implemented ControlBox property
18254 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
18255 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
18256 * TextControl.cs: Added selection functionality; added todo header
18258 - Implemented Lines property
18259 - Implemented TextHeight property
18260 - Implemented SelectedText property
18261 - Implemented SelectionLength property
18262 - Implemented SelectAll method
18263 - Implemented ToString method
18264 - Removed and cleaned up some debug code
18265 - Implemented (still buggy) mouse text selection
18267 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
18269 * ComboBox.cs: Complete DropDownList implementation, fixes.
18271 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
18273 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
18274 * ComboBoxStyle.cs: ComboBoxStyle enum
18275 * ComboBox.cs: Initial work on ComboBox control
18277 2004-12-21 Peter Bartok <pbartok@novell.com>
18279 * Control.cs (ctor, CreateParams): Moved setting of is_visible
18280 forward so that anything that creates a window gets the default,
18281 also no longer uses Visible property in CreateParams to avoid
18282 walking up the parent chain and possibly get the wrong visible
18283 status. Fixed IsVisible to no longer walk up to the parent.
18285 2004-12-21 Peter Bartok <pbartok@novell.com>
18287 * Form.cs (ShowDialog): Unset modality for the proper window
18289 2004-12-20 Peter Bartok <pbartok@novell.com>
18291 * CommonDialog.cs: Initial check-in
18293 2004-12-20 Peter Bartok <pbartok@novell.com>
18295 * Control.cs (Visible): Now uses the parent window instead of the
18296 client area window for the property
18299 - ShowDialog(): Now uses the proper window for modality
18300 - The default visibility state for the form parent is now false. This
18301 will prevent the user from seeing all the changes to the form and
18302 its controls before the application hits Application.Run()
18303 - Removed some stale commented out code
18306 - Added FindWindow() method to have a method to check for existence
18308 - Added ability to override default exception handling (for example
18309 when debugging with VS.Net; to do this the ExternalExceptionHandler
18311 - Removed some useless debug output
18314 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
18315 not working as expected
18316 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
18317 property to allow switching back to the modal window if focus is
18318 given to another one of our windows (Application Modal)
18319 - Now only sets override_redirect if we create a window
18321 - Moved EventMask selection before mapping of newly created window
18322 so we can catch the map event as well
18323 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
18324 - Added various Atom related DllImports
18325 - Implemented Exit() method
18326 - .ctor() : No longer shows window if WS_VISIBLE is not defined
18327 in the CreateParams
18329 * MessageBox.cs: Now properly deals with the FormParent window by
18330 providing an override the FormParent CreateParams property to
18331 set as POPUP instead of OVERLAPPED window.
18333 2004-12-19 Geoff Norton <gnorton@customerdna.com>
18335 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
18336 Minor code cleanup.
18338 2004-12-19 Geoff Norton <gnorton@customerdna.com>
18340 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
18342 2004-12-18 Peter Bartok <pbartok@novell.com>
18344 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
18345 implementing SetModal() method
18347 2004-12-18 Peter Bartok <pbartok@novell.com>
18349 * X11Structs.cs (XGCValues): Fixed type of function element
18350 * XplatUI.cs: Added ScrollWindow() method
18351 * XplatUIDriver.cs: Added ScrollWindow() abstract
18352 * XplatUIWin32.cs: Implemented ScrollWindow() method
18353 * XplatUIX11.cs: Implemented ScrollWindow() method
18354 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
18356 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18358 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
18359 Some more keyboard support (INCOMPLETE)
18361 2004-12-17 Peter Bartok <pbartok@novell.com>
18364 - Added color attribute to line tags.
18365 - Added color argument to all functions dealing with tags
18366 - Added color argument support to various functions
18367 - Fixed miss-calculation of baseline/shift in certain circumstances
18369 * TextBoxBase.cs: Added new color option to test code
18371 2004-12-17 Jackson Harper <jackson@ximian.com>
18374 * MonthCalendar.cs: Signature fixes
18376 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18378 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
18379 keyboard event moved it. Create a new graphics context for each paint resolves this
18381 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18383 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
18384 Make caret exist and go blink blink. Initial keyboard support.
18385 Fix exception handler, Add Invalidate support. Change way RefreshWindow
18388 2004-12-17 Jackson Harper <jackson@ximian.com>
18390 * XplatUIStructs.cs: Updated set of virtual keycodes.
18391 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
18393 2004-12-17 Jackson Harper <jackson@ximian.com>
18395 * XplatUIX11.cs: Prune old keyboard code.
18397 2004-12-17 Jackson Harper <jackson@ximian.com>
18399 * XplatUIX11.cs: When generating mouse wparams get the modifier
18400 keys from the ModifierKeys property.
18402 2004-12-17 Jackson Harper <jackson@ximian.com>
18404 * X11Keyboard.cs: Send up/down input when generating
18405 messages. Remove some unused vars.
18407 2004-12-17 Jackson Harper <jackson@ximian.com>
18410 * TreeView.cs: get rid of warnings.
18412 2004-12-17 Jackson Harper <jackson@ximian.com>
18414 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
18416 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
18418 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
18419 CheckedListBox.cs: Implementation
18421 2004-12-17 Peter Bartok <pbartok@novell.com>
18423 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
18425 2004-12-16 Peter Bartok <pbartok@novell.com>
18428 - InsertCharAtCaret(): Fixed start pos fixup
18429 - CaretLine_get: No longer derives the line from the tag, the tag
18430 could be stale if lines in the document have been added or deleted
18431 - RebalanceAfterDelete(): Fixed bug in balancing code
18432 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
18433 - Line.Streamline(): Now can also elminate leading empty tags
18434 - DumpTree(): Added a few more tests and prevented exception on
18436 - Added Debug section for Combining lines
18437 - Delete(): Now copies all remaining properties of a line
18440 - Left mousebutton now sets the caret (and middle button still acts
18441 as formatting tester, which must go away soon)
18442 - Added Debug section for Deleting/Combining lines
18443 - Fixed calculations for UpdateView after Combining lines
18445 2004-12-16 Peter Bartok <pbartok@novell.com>
18447 * TextControl.cs: Now properly aligns text on a baseline, using the
18448 new XplatUI.GetFontMetrics() method. Simplified several calculations
18449 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
18452 2004-12-16 Peter Bartok <pbartok@novell.com>
18454 * XplatUI.cs: Added GetFontMetrics() method
18455 * XplatUIDriver.cs: Added GetFontMetrics() abstract
18456 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
18457 into libgdiplus, our private GetFontMetrics function
18458 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
18459 * XplatUIWin32.cs: Implemented GetFontMetrics() method
18461 2004-12-16 Jackson Harper <jackson@ximain.com>
18463 * XplatUIStruct.cs: Add enum for dead keys
18464 * X11Keyboard.cs: Map and unmap dead keys.
18466 2004-12-16 Jackson Harper <jackson@ximian.com>
18468 * X11Keyboard.cs: Detect and use the num lock mask.
18470 2004-12-16 Peter Bartok <pbartok@novell.com>
18472 * Control.cs (CreateGraphics): Added check to make sure the
18473 handle of the window exists before calling Graphics.FromHwnd()
18475 2004-12-16 Peter Bartok <pbartok@novell.com>
18477 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
18478 contains a lot of code that's not supposed to be there for the
18479 real thing, but required for developing/testing the textbox
18482 2004-12-16 Peter Bartok <pbartok@novell.com>
18485 - Fixed Streamline method
18486 - Added FindTag method to Line
18487 - Added DumpTree method for debugging
18488 - Added DecrementLines() method for deleting lines
18489 - Fixed UpdateView to update the cursor to end-of-line on single-line
18491 - Added PositionCaret() method
18492 - Fixed MoveCaret(LineDown) to move into the last line, too
18493 - Added InsertChar overload
18494 - Fixed InsertChar tag offset calculations
18495 - Added DeleteChar() method
18496 - Added Combine() method for folding lines
18497 - Fixed Delete() method, no longer allocates wasted Line object and
18498 now copies all properties when swapping nodes
18499 - Delete() method now updates document line counter
18501 2004-12-15 Jackson Harper <jackson@ximian.com>
18503 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
18504 * X11Keyboard.cs: Expose the currently selected modifier keys
18505 through a property.
18507 2004-12-15 Peter Bartok <pbartok@novell.com>
18509 * TextControl.cs: Initial check-in. Still incomplete
18511 2004-12-15 Jackson Harper <jackson@ximian.com>
18514 * TreeView.cs: Fix build on csc (second time today ;-))
18516 2004-12-15 Jackson Harper <jackson@ximian.com>
18518 * TreeView.cs: Store the treenodes plus/minus box bounds when it
18519 is calculated and use this for click testing.
18520 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
18522 2004-12-15 Jackson Harper <jackson@ximian.com>
18524 * TreeView.cs: Pass the nodes image index to the image list when
18525 drawing that image.
18527 2004-12-15 Jackson Harper <jackson@ximian.com>
18529 * X11Keyboard.cs: Set messages hwnd.
18530 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
18531 post_message calls.
18533 2004-12-15 Jackson Harper <jackson@ximian.com>
18535 * X11Keyboard.cs: Fix to compile with csc.
18537 2004-12-15 Jackson Harper <jackson@ximian.com>
18539 * X11Structs.cs: Add key mask values
18540 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
18541 * X11Keyboard.cs: New file - Extrapolates and interpolates key
18542 down/up foo into WM_CHAR foo
18543 * KeyboardLayouts.cs: Common keyboard layouts
18544 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
18545 post messages into the main queue.
18547 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
18549 * Button.cs: implement ProcessMnemonic
18550 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
18552 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
18553 * ButtonBase.cs: Show HotkeyPrefix (not the &)
18555 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
18557 * MonthCalendar.cs: Implemented click-hold for next/previous month
18560 2004-12-11 Peter Bartok <pbartok@novell.com>
18563 - Added XKeyboardState (moved from XplatUIX11.cs)
18564 - Added XCreateGC related enums and structures
18565 - Added GXFunction for XSetFunction
18567 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
18569 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
18570 CaretVisible() calls
18572 * ToolTip.cs: Added code to prevent stealing focus from app windows
18574 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
18575 DestroyCaret, SetCaretPos and CaretVisible)
18578 - Added implementation for caret functions
18579 - Moved hover variables into a struct, to make it a bit easier
18580 on the eyes and to debug
18581 - Removed XKeyboardState (moved to XplatUIX11.cs)
18582 - Moved Keyboard properties into the properties region
18584 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
18585 call to get a graphics context for our control
18587 * XplatUIOSX.cs: Added empty overrides for the new caret functions
18589 * TreeView.cs: Fixed bug. No matter what color was set it would always
18590 return SystemColors.Window
18592 * XplatUIWin32.cs: Implemented caret overrides
18594 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
18596 * ListBox.cs: fire events, implement missing methods and properties,
18599 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
18601 * MonthCalendar.cs: invalidation bug fixing
18602 * ThemeWin32Classic.cs: paint fixing
18604 2004-12-09 Geoff Norton <gnorton@customerdna.com>
18606 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
18607 prepare the CGContextRef there now.
18609 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
18611 * MonthCalendar.cs:
18612 - optimisationL only invalidate areas that have changed
18613 * ThemeWin32Classic.cs:
18614 - only paint parts that intersect with clip_area
18616 2004-12-09 Peter Bartok <pbartok@novell.com>
18618 * Application.cs: Undid changes from r37004 which cause problems
18621 2004-12-09 Ravindra <rkumar@novell.com>
18623 * ToolBar.cs: Added support for displaying ContextMenu
18624 attached to a button on ToolBar.
18625 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
18628 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18630 * Label.cs: autosize works in text change and removes unnecessary
18633 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18635 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
18638 2004-12-08 Geoff Norton <gnorton@customerdna.com>
18640 * XplatUIOSX.cs: Added mouse move/click/grab support
18641 Remove some debugging WriteLines not needed anymore.
18642 Add window resizing/positioning.
18643 Fix visibility on reparenting.
18645 2004-12-08 Peter Bartok <pbartok@novell.com>
18647 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
18649 2004-12-07 Geoff Norton <gnorton@customerdna.com>
18651 * XplatUIOSX.cs: Initial checkin
18652 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
18654 2004-12-03 Ravindra <rkumar@novell.com>
18656 * ListView.cs: Added some keybindings and fixed scrolling.
18657 ScrollBars listen to ValueChanged event instead of Scroll
18658 Event. This would let us take care of all changes being
18659 done in the scrollbars' values programmatically or manually.
18660 * ListView.cs (CanMultiselect): Added a check for shift key.
18661 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
18662 * ListViewItem.cs (Clone): Fixed. We need to make a copy
18663 of ListViewSubItemCollection as well.
18665 2004-12-06 Peter Bartok <pbartok@novell.com>
18667 * Control.cs (Parent): Added check and exception to prevent
18670 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
18672 * ListBox.cs: implemented clipping, selection single and multiple,
18675 2004-12-03 Ravindra <rkumar@novell.com>
18677 * ListView.cs (ListView_KeyDown):
18678 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
18679 when CTRL key is pressed.
18680 * ListViewItem.cs (Selected): Fixed setting the property.
18682 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18684 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
18686 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
18687 MinimizeBox, ShowInTaskbar, TopMost properties.
18689 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
18690 will be implemented).
18692 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18694 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
18696 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
18699 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
18701 * TreeView.cs: BackColor is Colors.Window.
18703 2004-12-01 Jackson Harper <jackson@ximian.com>
18705 * TreeView.cs: When resizing the tree if the user is making it
18706 smaller we don't get expose events, so we need to handle adding
18707 the horizontal scrollbar in the size changed handler as well as
18708 the expose handler.
18710 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
18712 * DrawItemState.cs: fixes wrong enum values
18714 2004-12-01 Jackson Harper <jackson@ximian.com>
18716 * TreeView.cs: Resize the hbar as well as the vbar on resize.
18718 2004-12-01 Jackson Harper <jackson@ximian.com>
18720 * NodeLabelEditEventArgs.cs:
18721 * NodeLabelEditEventHandler.cs:
18722 * OpenTreeNodeEnumerator.cs:
18724 * TreeNodeCollection.cs:
18726 * TreeViewAction.cs:
18727 * TreeViewCancelEventArgs.cs:
18728 * TreeViewCancelEventHandler.cs:
18729 * TreeViewEventArgs.cs:
18730 * TreeViewEventHandler.cs: Initial implementation.
18732 2004-12-01 Ravindra <rkumar@novell.com>
18734 * ListView.cs (CalculateListView): Fixed scrolling related
18735 calculations. Also, removed some debug statements from other
18737 * ListViewItem.cs: Changed access to 'selected' instance variable
18738 from private to internal.
18739 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
18741 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
18743 * ThemeWin32Classic.cs: remove cache of brush and pens for
18744 specific controls and use the global system, fixes scrollbutton
18745 bugs (for small sizes, disabled, etc)
18747 * ScrollBar.cs: does not show the thumb for very small controls
18748 (as MS) and allow smaller buttons that the regular size
18750 2004-12-01 Miguel de Icaza <miguel@ximian.com>
18752 * UpDownBase.cs: Add abstract methods for the interface.
18753 Add new virtual methods (need to be hooked up to TextEntry when it
18755 Add override methods for most features.
18756 Computes the size, forces the height of the text entry.
18758 * NumericUpDown.cs: Put here the current testing code.
18760 * Set eol-style property on all files that do not have mixed line
18761 endings, to minimize the future problems. There are still a few
18762 files with mixed endings, and someone should choose whether they
18763 want to move it or not.
18765 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
18767 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
18770 2004-11-30 Ravindra <rkumar@novell.com>
18772 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
18773 drawing and replaced use of SystemColors by theme colors.
18774 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
18775 * ListView.cs (ListViewItemCollection.Add): Throw exception when
18776 same ListViewItem is being added more than once.
18778 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
18780 * MonthCalendar.cs:
18781 - ControlStyles love to make the control not flicker
18783 2004-11-30 Peter Bartok <pbartok@novell.com>
18785 * CharacterCasing.cs: Added
18787 2004-11-29 Peter Bartok <pbartok@novell.com>
18789 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18790 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
18791 I am removing these files as they conflict with already completed
18792 work. While it is fantastic to get contributions to MWF, I
18793 respectfully ask that everyone please coordinate their contributions
18794 through mono-winforms-list or #mono-winforms at this time. We're
18795 explicitly avoiding stubbing and don't want controls that don't have
18796 their basic functionality implemented in svn. Please also see
18797 http://www.mono-project.com/contributing/winforms.html
18800 2004-11-29 Marek Safar <marek.safar@seznam.cz>
18802 * Application.cs (ModalRun): Don't hang after exit.
18804 * Theme.cs: New TreeViewDefaultSize property.
18806 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
18807 with less hardcoded SystemColors constant.
18808 Implemented TreeViewDefaultSize.
18810 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18811 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
18814 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
18816 * MonthCalendar.cs:
18817 - Fix NextMonthDate and PrevMonthDate click moving calendar
18819 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18821 * MonthCalendar.cs:
18822 - Fix usage of ScrollChange Property when scrolling months
18824 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
18826 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
18827 - Fixes menu destroying
18828 - Support adding and removing items on already created menus
18830 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18832 * MonthCalendar.cs:
18833 - Re-worked all bolded dates handling to match win32
18834 * ThemeWin32Classic.cs:
18835 - Fixed rendering with bolded dates
18837 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
18839 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
18840 - Horizontal scroolbar
18845 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
18847 * MonthCalendar.cs:
18848 - Fix Usage of MaxSelectionCount from SelectionRange
18849 - Fixed Shift + Cursor Selection
18850 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
18851 - Fixed normal cursor selection to be compat with win32
18852 - Fixed Shift + Mouse Click selection
18854 2004-11-24 Peter Bartok <pbartok@novell.com>
18856 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
18857 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
18859 - CreatedKeyBoardMsg now updates keystate with Alt key
18860 - Added workaround for timer crash to CheckTimers, Jackson will
18861 develop a proper fix and check in later
18862 - Implemented DispatchMessage
18863 - Removed calling the native window proc from GetMessage (call
18864 now moved to DispatchMessage)
18866 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
18867 the keydata (Fixes bug #69831)
18870 - (DispatchMessage): Switched to return IntPtr
18871 - Added DllImport for SetFocus
18873 2004-11-24 Ravindra <rkumar@novell.com>
18875 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
18876 background drawing.
18877 * ListViewItem.cs: Fixed various properties, calculations
18878 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
18879 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
18880 and some internal properties. Fixed MouseDown handler and Paint
18883 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18885 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
18887 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18889 * ContainerControl.cs: correct accidental check in of local changes
18891 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18893 * ThemeWin32Classic.cs:
18894 - Fixed Drawing Last month in grid (sometimes not showing)
18895 * MonthCalendar.cs:
18896 - Fixed title width calculation bug (makeing title small)
18898 2004-11-23 Peter Bartok <pbartok@novell.com>
18901 - Added generation of WM_MOUSEHOVER event
18902 - Added missing assignment of async_method atom
18903 - Fixed WM_ERASEBKGND; now only redraws the exposed area
18905 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18907 * ThemeWin32Classic.cs:
18908 - Fixed Drawing of today circle when showtodaycircle not set
18909 - fixed drawing of first and last month in the grid (gay dates)
18910 * MonthCalendar.cs:
18911 - Fixed Drawing of today circle
18912 - Fixed drawing of grady dates
18913 - Fixed HitTest for today link when ShowToday set to false
18914 - Fixed DefaultSize to obey ShowToday
18916 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18918 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
18919 * System.Windows.Forms/Theme.cs
18920 * MonthCalendar.cs: added for MonthCalendar
18921 * SelectionRange.cs: added for MonthCalendar
18922 * Day.cs: added for MonthCalendar: added for MonthCalendar
18923 * DateRangeEventArgs.cs: added for MonthCalendar
18924 * DateRangeEventHandler.cs: added for MonthCalendar
18926 2004-11-22 Ravindra <rkumar@novell.com>
18928 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
18931 2004-11-22 Miguel de Icaza <miguel@ximian.com>
18933 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
18936 * NumericUpDown.cs: Added new implementation.
18937 * UpDownBase.cs: Added new implementation.
18939 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
18942 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
18945 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
18948 2004-11-21 Miguel de Icaza <miguel@ximian.com>
18950 * Timer.cs (Dispose): Should call the base dispose when
18953 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18955 * ScrollBar.cs: updates thumb position when max, min or increment
18958 2004-11-21 Ravindra <rkumar@novell.com>
18960 * ListView.cs: Implemented item selection, activation and
18961 column header style. Fixed properties to do a redraw, if
18962 required. Added support for MouseHover, DoubleClick, KeyDown
18963 and KeyUp event handling and some minor fixes.
18964 * ListViewItem.cs: Fixed constructor.
18965 * ThemeWin32Classic.cs: Improved drawing for ListView.
18967 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18969 * ThemeWin32Classic.cs: initial listbox drawing code
18970 * DrawMode.cs: new enumerator
18971 * ListControl.cs: stubbed class
18972 * ListBox.cs: initial implementation
18973 * Theme.cs: new methods definitions
18974 * SelectionMode.cs: new enumerator
18976 2004-11-17 Peter Bartok <pbartok@novell.com>
18978 * XplatUIWin32.cs: Added double-click events to the class style
18979 * Control.cs (WndProc):
18980 - Added handling of click-count to MouseDown/ MouseUp events.
18981 - Added handling of middle and right mouse buttons
18982 - Removed old debug code
18984 2004-11-17 Jackson Harper <jackson@ximian.com>
18986 * XplatUIX11.cs: Use the new Mono.Unix namespace.
18988 2004-11-17 Ravindra <rkumar@novell.com>
18990 * ListView.cs: Added event handling for MouseMove/Up/Down.
18991 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
18992 * ThemeWin32Classic.cs: We need to clear the graphics context and
18993 draw column header in a proper state.
18996 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
18998 * Menu.cs: fixes signature
19000 2004-11-16 Peter Bartok <pbartok@novell.com>
19002 * XplatUIX11.cs (GetMessage): Implemented generation of
19003 double click mouse messages
19005 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
19007 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
19010 2004-11-11 Peter Bartok <pbartok@novell.com>
19012 * HandleData.cs: Added Visible property
19013 * XplatUIX11.cs (IsVisible): Now uses Visible property from
19015 * XplatUIX11.cs: Removed old debug leftovers
19016 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
19017 * Control.cs (WndProc): Removed old debug leftovers,
19018 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
19019 needed WM_SIZE handling
19021 2004-11-11 Jackson Harper <jackson@ximian.com>
19023 * OwnerDrawPropertyBag.cs:
19024 * TreeViewImageIndexConverter.cs: Initial implementation
19026 2004-11-10 Jackson Harper <jackson@ximian.com>
19028 * ThemeWin32Classic.cs:
19029 * TabControl.cs: instead of moving tabs by the slider pos just
19030 start drawing at the tab that is offset by the slider. This way
19031 scrolling always moves by exactly one tab.
19033 2004-11-10 Jackson Harper <jackson@ximian.com>
19035 * TabControl.cs: You can only scroll left when the slider has
19036 already ben moved right.
19038 2004-11-10 Jackson Harper <jackson@ximian.com>
19040 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
19043 2004-11-10 Jackson Harper <jackson@ximian.com>
19045 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
19048 2004-11-09 Jackson Harper <jackson@ximian.com>
19050 * TabControl.cs (CalcXPos): New helper method so we can determine
19051 the proper place to start drawing vertical tabs.
19052 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
19054 2004-11-09 Jackson Harper <jackson@ximian.com>
19056 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
19057 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
19058 and Bottom, left and right are illegal values for this and
19059 multiline is enabled when the alignment is set to left or right.
19060 (DrawTab): Each alignment block should draw the text itself now
19061 because Left requires special love. Also add rendering for Left
19064 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
19066 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
19067 does not destroy the windows, removes debugging messages
19069 2004-11-09 jba <jba-mono@optusnet.com.au>
19071 * ThemeWin32Classic.cs
19072 (DrawButtonBase): Fix verticle text rect clipping in windows
19073 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
19074 rendering and incorrect text rect clipping
19075 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
19076 rendering and incorrect text rect clipping
19078 2004-11-08 Jackson Harper <jackson@ximian.com>
19080 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
19081 bottom when they are bottom aligned so the bottoms of the tabs get
19083 * TabControl.cs (DropRow): Move rows up instead of down when the
19084 tab control is bottom aligned.
19086 2004-11-08 13:59 pbartok
19089 - Added handling for various window styles
19090 - Added handling for popup windows
19091 - Added SetTopmost handling
19093 2004-11-08 13:55 pbartok
19096 - Added argument to SetTopmost method
19097 - Fixed broken ClientToScreen function
19099 2004-11-08 13:53 pbartok
19101 * XplatUIStructs.cs:
19102 - Added missing WS_EX styles
19104 2004-11-08 13:53 pbartok
19106 * XplatUI.cs, XplatUIDriver.cs:
19107 - Added argument to SetTopmost
19109 2004-11-08 13:52 pbartok
19112 - Added XSetWindowAttributes structure
19113 - Improved XWindowAttributes structure
19114 - Added SetWindowValuemask enum
19115 - Added window creation arguments enum
19116 - Added gravity enum
19117 - Added Motif hints structure
19118 - Added various Motif flags and enums
19119 - Added PropertyMode enum for property functions
19121 2004-11-08 13:50 pbartok
19124 - Fixed arguments for updated SetTopmost method
19126 2004-11-08 13:49 pbartok
19129 - Fixed arguments for updated SetTopmost function
19130 - Fixed usage of PointToClient
19132 2004-11-08 13:44 pbartok
19135 - Added Clipping of children and siblings
19137 2004-11-08 13:41 pbartok
19140 - Removed SetMenuBarWindow call. We do this in Form.cs
19142 2004-11-08 13:40 jackson
19144 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
19145 scrolling jimmi in the correct location with bottom aligned tabs
19147 2004-11-08 13:36 pbartok
19149 * ContainerControl.cs:
19150 - Implemented BindingContext
19151 - Implemented ParentForm
19153 2004-11-08 12:46 jackson
19155 * TabControl.cs: Put bottom rendered tabs in the right location
19157 2004-11-08 07:15 jordi
19159 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
19162 2004-11-05 17:30 jackson
19164 * TabControl.cs: When selected tabs are expanded make sure they
19165 don't go beyond the edges of the tab control
19167 2004-11-05 14:57 jackson
19169 * TabControl.cs: Reset show_slider so if the control is resized to
19170 a size where it is no longer needed it's not displayed anymore
19172 2004-11-05 13:16 jackson
19174 * TabControl.cs: Make tab pages non visible when added to the
19177 2004-11-05 12:42 jackson
19179 * TabControl.cs: Implement SizeMode.FillToRight
19181 2004-11-05 12:16 jackson
19183 * Control.cs: Do not call CreateHandle if the handle is already
19186 2004-11-05 11:46 jackson
19188 * TabControl.cs: Remove superflous call to CalcTabRows
19190 2004-11-05 09:07 jackson
19192 * XplatUIX11.cs: Update for Mono.Posix changes
19194 2004-11-05 07:00 ravindra
19196 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
19199 2004-11-04 22:47 jba
19201 * ThemeWin32Classic.cs:
19202 - Fix Button rendering for FlatStyle = Flat or Popup
19203 - Fix RadioButton and CheckBox rendering when Appearance = Button
19204 (normal and flatstyle).
19205 - Correct outer rectangle color when drawing focus rectangle
19206 - Adjust button bounds to be 1 px smaller when focused
19207 - Make button not draw sunken 3d border when pushed (windows compat)
19208 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
19209 - Offset the text in RadioButton and Checkbox when being rendered as
19211 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
19213 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
19214 - Fixed disabled text rendering for normally rendered radiobuttons
19216 2004-11-04 10:26 jackson
19218 * TabControl.cs: Recalculate tab rows when resizing
19220 2004-11-04 07:47 jordi
19222 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
19223 collection completion, drawing issues, missing features
19225 2004-11-04 05:03 ravindra
19228 - We need to recalculate the Thumb area when
19229 LargeChange/maximum/minimum values are changed.
19230 - We set the 'pos' in UpdatePos() method to minimum, if it's less
19231 than minimum. This is required to handle the case if large_change is
19232 more than max, and use LargeChange property instead of large_change
19234 - We return max+1 when large_change is more than max, like MS does.
19236 2004-11-04 04:29 ravindra
19238 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
19239 - Changed default value signatures (prefixed all with ListView).
19240 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
19242 - Fixed calculations for ListViewItem and implemented Clone()
19245 2004-11-04 04:26 ravindra
19247 * Theme.cs, ThemeWin32Classic.cs:
19248 - Changed default ListView values signatures (prefixed all with
19250 - Fixed default size values for VScrollBar and HScrollBar.
19251 - Fixed DrawListViewItem method.
19253 2004-11-04 04:05 ravindra
19255 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
19257 2004-11-04 04:04 ravindra
19259 * ImageList.cs: Implemented the missing overload for Draw method.
19261 2004-11-03 19:29 jackson
19263 * TabControl.cs: Handle dropping rows on selection properly
19265 2004-11-03 11:59 jackson
19267 * TabControl.cs: remove debug code
19269 2004-11-03 11:52 jackson
19271 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
19272 the scrolly widgerywoo
19274 2004-11-02 13:52 jackson
19276 * TabControl.cs: Resize the tab pages and tabs when the tab control
19279 2004-11-02 13:40 jackson
19281 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
19282 selected tab to the bottom
19284 2004-11-02 13:39 jackson
19286 * TabPage.cs: Store the tab pages row
19288 2004-11-02 12:33 jordi
19290 * MenuItem.cs: fixes handle creation
19292 2004-11-02 11:42 jackson
19294 * TabControl.cs: signature fix
19296 2004-11-02 08:56 jackson
19298 * TabControl.cs: Calculate whether the tab is on an edge properly.
19299 Remove top secret debugging code
19301 2004-11-01 19:57 jackson
19303 * TabControl.cs: Add click handling, and proper sizing
19305 2004-11-01 19:47 jackson
19307 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
19310 2004-11-01 19:39 jackson
19312 * TabPage.cs: add internal property to store the bounds of a tab
19315 2004-10-30 04:23 ravindra
19317 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
19320 2004-10-30 04:21 ravindra
19322 * ListView.cs, ListViewItem.cs: Added support for scrolling and
19323 fixed calculations.
19325 2004-10-30 03:06 pbartok
19328 - Removed extension of DllImported libs
19330 2004-10-29 09:55 jordi
19332 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
19333 navigation, itemcollection completion, menu fixes
19335 2004-10-27 22:58 pbartok
19338 - Now throws a nice error message when no X display could be opened
19340 2004-10-26 13:51 jordi
19342 * ListView.cs: removes warning
19344 2004-10-26 03:55 ravindra
19346 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
19347 ThemeWin32Classic.cs: Some formatting for my last checkins.
19349 2004-10-26 03:36 ravindra
19351 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
19352 control and default values.
19354 2004-10-26 03:35 ravindra
19356 * Theme.cs: Added some default values for ListView control.
19358 2004-10-26 03:33 ravindra
19360 * ToolBar.cs: ToolBar should use the user specified button size, if
19361 there is any. Added a size_specified flag for the same.
19363 2004-10-26 03:33 ravindra
19365 * ColumnHeader.cs: Added some internal members and calculations for
19368 2004-10-26 03:32 ravindra
19370 * ListViewItem.cs: Calculations for ListViewItem.
19372 2004-10-26 03:31 ravindra
19374 * ListView.cs: Added some internal members and calculations for
19377 2004-10-22 13:31 jordi
19379 * MenuAPI.cs: speedup menus drawing
19381 2004-10-22 13:16 jackson
19383 * XplatUIX11.cs: Make sure to update exposed regions when adding an
19386 2004-10-22 11:49 jackson
19390 2004-10-22 11:41 jackson
19392 * Control.cs: Check to see if the window should have its background
19393 repainted by X when drawing.
19395 2004-10-22 11:31 jackson
19397 * XplatUIX11.cs: When invalidating areas only use XClearArea if
19398 clear is true, this way we do not get flicker from X repainting the
19401 2004-10-22 11:28 jackson
19403 * XEventQueue.cs: Queue properly
19405 2004-10-21 09:38 jackson
19407 * XEventQueue.cs: Fix access modifier
19409 2004-10-21 09:36 jackson
19411 * XEventQueue.cs: Don't loose messages
19413 2004-10-21 09:22 jackson
19415 * XEventQueue.cs: Don't loose messages
19417 2004-10-20 04:15 jordi
19419 * BootMode.cs: enum need it by SystemInfo
19421 2004-10-19 21:58 pbartok
19424 - Small sanity check
19426 2004-10-19 21:56 pbartok
19429 - Added private FormParentWindow class which acts as the container
19430 for our form and as the non-client area where menus are drawn
19431 - Added/Moved required tie-ins to Jordi's menus
19432 - Fixed/Implemented the FormStartPosition functionality
19434 2004-10-19 21:52 pbartok
19437 - Removed unneeded locals
19438 - Added code to all size and location properties to understand and
19439 deal with the parent container of Form
19441 2004-10-19 21:33 pbartok
19444 - Fixed to deal with new Form subclasses for menus
19446 2004-10-19 17:48 jackson
19448 * XEventQueue.cs: commit correct version of file
19450 2004-10-19 16:50 jackson
19452 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
19454 2004-10-19 16:15 jordi
19456 * MenuAPI.cs: MenuBarCalcSize returns the height
19458 2004-10-19 08:31 pbartok
19461 - Added missing call to PreProcessMessage before calling OnXXXKey
19464 2004-10-19 00:04 ravindra
19466 * ToolTip.cs: Fixed constructor.
19468 2004-10-18 09:31 jordi
19470 * MenuAPI.cs: menuitems in menubars do not have shortcuts
19472 2004-10-18 09:26 jordi
19474 * MenuItem.cs: fixes MenuItem class signature
19476 2004-10-18 08:56 jordi
19478 * MenuAPI.cs: prevents windows from showing in the taskbar
19480 2004-10-18 00:28 ravindra
19482 * ToolTip.cs: Suppressed a warning message.
19484 2004-10-18 00:27 ravindra
19486 * Control.cs: Default value of visible property must be true.
19488 2004-10-17 23:19 pbartok
19491 - Complete implementation
19493 2004-10-17 23:19 pbartok
19496 - Added EnableWindow method
19497 - Added SetModal stub
19498 - Added generation of WM_ACTIVATE message (still needs testing)
19499 - Added SetTopMost stub
19500 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
19502 2004-10-17 23:17 pbartok
19505 - Removed VirtualKeys to XplatUIStructs
19506 - Implemented SetTopMost method
19507 - Implemented EnableWindow method
19508 - Bugfix in ScreenToClient()
19509 - Bugfixes in ClientToScreen()
19511 2004-10-17 22:51 pbartok
19513 * XplatUIStructs.cs:
19514 - Added WS_EX styles to WindowStyles enumeration
19516 2004-10-17 22:50 pbartok
19518 * XplatUI.cs, XplatUIDriver.cs:
19519 - Added method for enabling/disabling windows
19520 - Added method for setting window modality
19521 - Added method for setting topmost window
19523 2004-10-17 22:49 pbartok
19525 * ThemeWin32Classic.cs:
19526 - Added ToolTip drawing code
19528 2004-10-17 22:49 pbartok
19531 - Added ToolTip abstracts
19533 2004-10-17 22:47 pbartok
19536 - Fixed Form.ControlCollection to handle owner relations
19537 - Added Owner/OwnedForms handling
19538 - Implemented Z-Ordering for owned forms
19539 - Removed unneeded private overload of ShowDialog
19540 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
19542 - Fixed Close(), had wrong default
19543 - Added firing of OnLoad event
19544 - Added some commented out debug code for Ownership handling
19546 2004-10-17 22:16 pbartok
19549 - Fixed/implemented flat list of controls
19551 2004-10-17 22:14 pbartok
19554 - Added code to simulate modal dialogs on Win32
19556 2004-10-17 16:11 jordi
19558 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
19561 2004-10-17 13:39 jordi
19563 * MenuAPI.cs: menu drawing fixes
19565 2004-10-15 09:10 ravindra
19567 * StructFormat.cs: General Enum.
19569 2004-10-15 09:09 ravindra
19571 * SizeGripStyle.cs: Enum for Form.
19573 2004-10-15 09:08 ravindra
19575 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
19576 in Theme for ListView.
19578 2004-10-15 09:06 ravindra
19580 * ColumnHeader.cs: Flushing some formatting changes.
19582 2004-10-15 09:05 ravindra
19584 * ListViewItem.cs: Implemented GetBounds method and fixed coding
19587 2004-10-15 09:03 ravindra
19589 * ListView.cs: Implemented Paint method and fixed coding style.
19591 2004-10-15 07:34 jordi
19593 * MenuAPI.cs: fix for X11
19595 2004-10-15 07:32 ravindra
19597 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
19598 - Renamed Paint() method to Draw() for clarity. Also, moved
19599 DrawImage() to OnPaint().
19601 2004-10-15 07:25 ravindra
19603 * CheckBox.cs, RadioButton.cs:
19604 - Removed Redraw (), we get it from ButtonBase.
19605 - Implemented Paint (), to do class specific painting.
19607 2004-10-15 07:16 ravindra
19610 - Redraw () is not virtual now.
19611 - Added an internal virtual method Paint (), so that
19612 derived classes can do their painting on their own.
19613 - Modified OnPaint () to call Paint ().
19615 2004-10-15 06:43 jordi
19617 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
19618 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
19620 2004-10-15 00:30 ravindra
19623 - MessageBox on windows does not have min/max buttons.
19624 This change in CreateParams fixes this on Windows. We
19625 still need to implement this windowstyle behavior in
19628 2004-10-14 05:14 ravindra
19631 - Changed Redraw () to do a Refresh () always.
19632 - Fixed the MouseMove event handling when mouse is pressed,
19633 ie drag event handling.
19634 - Replaced the usage of ToolBarButton.Pressed property to
19635 ToolBarButton.pressed internal variable.
19637 2004-10-14 05:10 ravindra
19639 * ToolBarButton.cs:
19640 - Added an internal member 'inside' to handle mouse move
19641 with mouse pressed ie mouse drag event.
19642 - Changed 'Pressed' property to return true only when
19643 'inside' and 'pressed' are both true.
19644 - Some coding style love.
19646 2004-10-14 00:17 ravindra
19648 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
19651 2004-10-14 00:15 ravindra
19653 * ButtonBase.cs: Redraw () related improvements.
19655 2004-10-14 00:14 ravindra
19657 * MessageBox.cs: Moved InitFormSize () out of Paint method and
19658 removed unnecessary calls to Button.Show () method.
19660 2004-10-13 17:50 pbartok
19664 - Removed destroying of window until we solve the problem of X
19665 destroying the window before us on shutdown
19667 2004-10-13 16:32 pbartok
19670 - Now Redraws on MouseUp for FlatStyle Flat and Popup
19672 2004-10-13 14:18 pbartok
19675 - Added code to destroy the X window
19677 2004-10-13 14:18 pbartok
19680 - Added code to destroy a window
19682 2004-10-13 14:12 pbartok
19685 - Added the Redraw on Resize that got dropped in the last rev
19687 2004-10-13 09:06 pbartok
19689 * ThemeWin32Classic.cs:
19690 - Path from John BouAntoun:
19691 * Fix check rendering (centre correctly for normal style, offset
19692 correctly for FlatStyle).
19693 * Fix border color usage (use backcolor) for FlatStyle.Popup
19694 * Use checkbox.Capture instead of checkbox.is_pressed when
19695 rendering flatstyle states.
19697 2004-10-12 21:48 pbartok
19699 * ThemeWin32Classic.cs:
19700 - Removed all occurences of SystemColors and replaced them with the
19701 matching theme color
19703 2004-10-12 21:41 pbartok
19705 * ThemeWin32Classic.cs:
19706 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
19707 him using the function for flatstyle drawing
19708 - Changed functions to use the new version of CPDrawBorder3D
19710 2004-10-12 21:15 pbartok
19713 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
19714 match MS documentation. They need to return defined colors if the
19715 passed color matches the configured control color. Thanks to John
19716 BouAntoun for pointing this out.
19718 2004-10-12 20:57 pbartok
19721 - Fix from John BouAntoun: Raise ForeColorChanged event when text
19724 2004-10-12 20:46 pbartok
19727 - Fix from John BouAntoun: Now properly sets the Appearance property
19729 2004-10-12 20:45 pbartok
19731 * ThemeWin32Classic.cs:
19732 - Fixes from John BouAntoun: now handles forecolors and backcolors
19733 for flatstyle rendered controls much better; It also fixes normal
19734 checkbox rendering when pushed or disabled.
19736 2004-10-08 02:50 jordi
19738 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
19741 2004-10-07 08:56 jordi
19743 * ThemeWin32Classic.cs: Removes deletion of cached brushes
19745 2004-10-06 03:59 jordi
19747 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
19748 XplatUIWin32.cs: removes warnings from compilation
19750 2004-10-05 12:23 jackson
19752 * RadioButton.cs: Fix ctor
19754 2004-10-05 11:10 pbartok
19757 - Partial implementation by Benjamin Dasnois
19759 2004-10-05 10:15 jackson
19761 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
19764 2004-10-05 03:07 ravindra
19767 - Removed a private method, Draw ().
19768 - Fixed the ButtonDropDown event handling.
19769 - Fixed MouseMove event handling.
19771 2004-10-05 03:04 ravindra
19773 * ThemeWin32Classic.cs:
19774 - Added DrawListView method and ListViewDefaultSize property.
19775 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
19776 - Changed DOS style CRLF to Unix format (dos2unix).
19778 2004-10-05 03:03 ravindra
19781 - Added DrawListView method and ListViewDefaultSize property.
19783 2004-10-05 02:42 ravindra
19785 * ToolBarButton.cs: Added an internal member dd_pressed to handle
19786 clicks on DropDown arrow.
19788 2004-10-04 22:56 jackson
19790 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
19791 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
19792 Control handle the buffers, derived classes should not have to
19793 CreateBuffers themselves.
19795 2004-10-04 21:20 jackson
19797 * StatusBar.cs: The control handles resizing the buffers now.
19799 2004-10-04 21:18 jackson
19801 * Control.cs: When resizing the buffers should be invalidated. This
19802 should be handled in Control not in derived classes.
19804 2004-10-04 14:45 jackson
19808 2004-10-04 02:14 pbartok
19810 * LeftRightAlignment.cs:
19813 2004-10-04 01:09 jordi
19815 * ThemeWin32Classic.cs: fixes right button position causing right
19816 button not showing on horizontal scrollbars
19818 2004-10-02 13:12 pbartok
19821 - Simplified the Invalidate method by using an X call instead of
19822 generating the expose ourselves
19823 - Added an expose when the window background is changed
19824 - Implemented ClientToScreen method
19826 2004-10-02 13:08 pbartok
19829 - Added Win32EnableWindow method (test for implementing modal
19831 - Added ClientToScreen method and imports
19833 2004-10-02 13:07 pbartok
19835 * XplatUI.cs, XplatUIDriver.cs:
19836 - Added ClientToScreen coordinate translation method
19838 2004-10-02 13:06 pbartok
19840 * KeyPressEventArgs.cs:
19841 - Fixed access level for constructor
19843 2004-10-02 13:06 pbartok
19846 - Changed access level for the window_collection hash table
19848 2004-10-02 13:05 pbartok
19851 - Added KeyPreview property
19852 - Added Menu property (still incomplete, pending Jordi's menu work)
19853 - Implemented ProcessCmdKey
19854 - Implemented ProcessDialogKey
19855 - Implemented ProcessKeyPreview
19857 2004-10-02 13:02 pbartok
19860 - Added private method to get the Control object from the window
19862 - Implemented ContextMenu property
19863 - Implemented PointToScreen
19864 - Implemented PreProcessMessage
19865 - Implemented IsInputChar
19866 - Implemented IsInputKey
19867 - Implemented ProcessCmdKey
19868 - Completed ProcessKeyEventArgs
19869 - Fixed message loop to call the proper chain of functions on key
19871 - Implemented ProcessDialogChar
19872 - Implemented ProcessDialogKey
19873 - Implemented ProcessKeyMessage
19874 - Implemented ProcessKeyPreview
19875 - Added RaiseDragEvent stub (MS internal method)
19876 - Added RaiseKeyEvent stub (MS internal method)
19877 - Added RaiseMouseEvent stub (MS Internal method)
19878 - Added RaisePaintEvent stub (MS Internal method)
19879 - Added ResetMouseEventArgs stub (MS Internal method)
19880 - Implemented RtlTranslateAlignment
19881 - Implemented RtlTranslateContent
19882 - Implemented RtlTranslateHorizontal
19883 - Implemented RtlTranslateLeftRight
19884 - Added generation of KeyPress event
19886 2004-10-02 05:57 ravindra
19888 * ListViewItem.cs: Added attributes.
19890 2004-10-02 05:32 ravindra
19892 * ListView.cs: Added attributes.
19894 2004-10-01 11:53 jackson
19896 * Form.cs: Implement the Close method so work on MessageBox can
19899 2004-09-30 14:06 pbartok
19904 2004-09-30 11:34 jackson
19906 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
19908 2004-09-30 07:26 ravindra
19910 * ListViewItemConverter.cs: Converter for ListViewItem.
19912 2004-09-30 07:26 ravindra
19914 * SortOrder.cs: Enum for ListView control.
19916 2004-09-30 07:25 ravindra
19918 * ColumnHeader.cs: Supporting class for ListView control.
19920 2004-09-30 07:24 ravindra
19922 * ListView.cs, ListViewItem.cs: Initial implementation.
19924 2004-09-30 07:20 ravindra
19926 * ItemActivation.cs: Enum for ListView Control.
19928 2004-09-29 20:29 pbartok
19931 - Added lookup of pixel value for background color; tries to get a
19932 color 'close' to the requested color, it avoids having to create a
19933 colormap. Depending on the display this could mean the used color
19934 is slightly off the desired color. Might have to change it to a more
19935 resource intensive colormap approach, but it will work as a
19936 workaround to avoid red screens.
19938 2004-09-29 14:27 jackson
19940 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
19942 2004-09-28 12:44 pbartok
19944 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
19945 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
19946 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
19947 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
19948 TrackBar.cs, VScrollBar.cs:
19949 - Streamlined Theme interfaces:
19950 * Each DrawXXX method for a control now is passed the object for
19951 the control to be drawn in order to allow accessing any state the
19952 theme might require
19954 * ControlPaint methods for the theme now have a CP prefix to avoid
19955 name clashes with the Draw methods for controls
19957 * Every control now retrieves it's DefaultSize from the current
19960 2004-09-28 12:17 jackson
19962 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
19965 2004-09-24 14:57 jackson
19967 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
19968 Gives us a nice little performance boost.
19970 2004-09-24 12:02 jackson
19972 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
19973 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
19974 Control and supporting classes. Initial checkin
19976 2004-09-23 13:08 jackson
19978 * Form.cs: Temp build fixage
19980 2004-09-23 01:39 ravindra
19982 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
19983 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
19984 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
19985 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
19986 EventHandlers needed by ListView Control.
19988 2004-09-22 14:12 pbartok
19990 * ScrollableControl.cs:
19991 - Implemented DockPadding property
19992 - Implemented AutoScroll property
19993 - Implemented AutoScrollMargin property
19994 - Implemented AutoScrollMinSize property
19995 - Implemented AutoScrollPosition property
19996 - Implemented DisplayRectangle property (still incomplete)
19997 - Implemented CreateParams property
19998 - Implemented HScroll property
19999 - Implemented VScroll property
20000 - Implemented OnVisibleChanged property
20002 2004-09-22 14:09 pbartok
20005 - Added Form.ControllCollection class
20006 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
20007 RemoveOwnedForm (still incomplete, missing on-top and common
20008 minimize/maximize behaviour)
20009 - Added StartPosition property (still incomplete, does not use when
20011 - Added ShowDialog() methods (still incomplete, missing forcing the
20014 2004-09-22 14:05 pbartok
20017 - Added message loop for modal dialogs
20019 2004-09-22 14:02 pbartok
20022 - Fixed wrong types for events
20024 2004-09-22 14:00 pbartok
20026 * Shortcut.cs, FormWindowState.cs:
20027 - Fixed wrong values
20029 2004-09-22 12:01 jackson
20031 * Control.cs: Text is never null
20033 2004-09-20 22:14 pbartok
20036 - Fixed accessibility level for Idle handler
20038 2004-09-20 18:54 jackson
20040 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20041 XplatUIX11.cs: New message loop that uses poll so we don't get a
20044 2004-09-17 10:43 pbartok
20047 - Fixed behaviour of arrow buttons. Now properly behaves like
20048 Buttons (and like Microsoft's scrollbar arrow buttons)
20050 2004-09-17 10:14 pbartok
20053 - Added missing release of keyboard/mouse capture
20055 2004-09-17 06:18 jordi
20057 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
20058 Theme.cs: Very early menu support
20060 2004-09-16 17:45 pbartok
20063 - Fixed sending a window to the front
20064 - Added overload for SetWindowPos to avoid casting
20066 2004-09-16 17:44 pbartok
20069 - Added SendToBack and BringToFront methods
20071 2004-09-16 07:00 ravindra
20073 * Copyright: Added Novell URL.
20075 2004-09-16 07:00 ravindra
20077 * ToolBar.cs: Invalidate should be done before redrawing.
20079 2004-09-15 21:19 ravindra
20081 * ColumnHeaderStyle.cs: Enum for ListView Control.
20083 2004-09-15 21:18 ravindra
20085 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
20088 2004-09-13 18:26 jackson
20090 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
20093 2004-09-13 18:13 jackson
20095 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
20096 a second thread and post messages into the main threads message
20097 queue. This makes timing much more consistent. Both win2K and XP
20098 have a minimum timer value of 15 milliseconds, so we now do this
20101 2004-09-13 15:18 pbartok
20103 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20105 - Added Z-Ordering methods
20107 2004-09-13 10:56 pbartok
20110 - Fixed #region names
20111 - Moved properties and methods into their proper #regions
20113 2004-09-13 10:51 pbartok
20116 - Added Accept and CancelButton properties
20117 - Added ProcessDialogKey() method
20119 2004-09-13 08:18 pbartok
20121 * IWindowTarget.cs:
20124 2004-09-10 21:50 pbartok
20127 - Added DoDragDrop() [incomplete]
20128 - Properly implemented 'Visible' handling
20129 - Added SetVisibleCore()
20130 - Implemented FindChildAtPoint()
20131 - Implemented GetContainerControl()
20132 - Implemented Hide()
20134 2004-09-10 19:28 pbartok
20137 - Moved methods into their appropriate #regions
20138 - Reordered methods within regions alphabetically
20140 2004-09-10 18:57 pbartok
20142 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20143 - Added method to retrieve text from window
20145 2004-09-10 18:56 pbartok
20148 - Moved some internal functions into the internal region
20149 - Implemented FontHeight
20150 - Implemented RenderRightToLeft
20151 - Implemented ResizeRedraw
20152 - Implemented ShowFocusCues
20153 - Implemented ShowKeyboardCues
20154 - Implemented FromChildHandle
20155 - Implemented FromHandle
20156 - Implemented IsMnemonic
20157 - Implemented ReflectMessage
20158 - All public and protected Static Methods are now complete
20160 2004-09-10 16:54 pbartok
20163 - Implemented remaining missing public instance properties
20164 - Alphabetized some out of order properties
20166 2004-09-10 05:51 ravindra
20168 * PictureBox.cs: Added a check for null image.
20170 2004-09-10 00:59 jordi
20172 * GroupBox.cs: remove cvs tag
20174 2004-09-09 05:25 ravindra
20176 * ToolBar.cs: Make redraw accessible from ToolBarButton.
20178 2004-09-09 05:23 ravindra
20180 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
20183 2004-09-09 02:28 pbartok
20185 * ThemeWin32Classic.cs:
20186 - Improve disabled string look
20188 2004-09-09 01:15 jordi
20190 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
20193 2004-09-08 23:56 ravindra
20195 * ItemBoundsPortion.cs: It's enum, not a class!
20197 2004-09-08 23:47 ravindra
20199 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
20202 2004-09-08 21:13 ravindra
20204 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
20207 2004-09-08 21:03 ravindra
20209 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
20212 2004-09-08 21:01 ravindra
20214 * ScrollableControl.cs: Removed unreachable code.
20216 2004-09-08 06:45 jordi
20218 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
20220 2004-09-08 01:00 jackson
20222 * XplatUIX11.cs: Only run the timers when updating the message
20223 queue. This effectively gives X messages a higher priority then
20224 timer messages. Timers still need love though
20226 2004-09-07 14:01 jackson
20228 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
20229 this for us and the handle is no longer valid.
20231 2004-09-07 13:59 jackson
20233 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
20234 loop that manages to not crash. TODO: Add poll and cleanup timers
20236 2004-09-07 11:12 jordi
20238 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
20240 2004-09-07 03:40 jordi
20242 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
20243 fixes, methods, multiple links
20245 2004-09-06 06:55 jordi
20247 * Control.cs: Caches ClientRectangle rectangle value
20249 2004-09-05 02:03 jordi
20251 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
20254 2004-09-04 11:10 jordi
20256 * Label.cs: Refresh when font changed
20258 2004-09-02 16:24 pbartok
20261 - Added sanity check to creation of double buffer bitmap
20263 2004-09-02 16:24 pbartok
20266 - Fixed selection of text color
20267 - Fixed handling of resize event; now properly recreates double
20269 - Added missing assignment of TextAlignment
20270 - Added proper default for TextAlignment
20272 2004-09-02 14:26 pbartok
20275 - Added missing RadioButton.RadioButtonAccessibleObject class
20277 2004-09-02 14:26 pbartok
20280 - Added missing Control.ControlAccessibleObject class
20281 - Started to implement Select()ion mechanisms, still very incomplete
20283 2004-09-02 14:25 pbartok
20285 * AccessibleObject.cs:
20286 - Added missing methods
20288 2004-09-02 14:23 pbartok
20290 * AccessibleNavigation.cs, AccessibleSelection.cs:
20293 2004-09-02 10:32 jordi
20295 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
20296 pool for pens, brushes, and hatchbruses
20298 2004-09-01 15:30 jackson
20300 * StatusBar.cs: Fix typo
20302 2004-09-01 14:44 pbartok
20307 2004-09-01 14:39 pbartok
20309 * Button.cs, RadioButton.cs:
20310 - Functional initial check-in
20312 2004-09-01 14:01 pbartok
20315 - Added missing default
20316 - Added missing region mark
20318 2004-09-01 09:10 jordi
20320 * Label.cs: fixes method signatures, new methods, events, fixes
20323 2004-09-01 07:19 jordi
20325 * Control.cs: Init string variables with an empty object
20327 2004-09-01 04:20 jordi
20329 * Control.cs: fires OnFontChanged event
20331 2004-08-31 20:07 pbartok
20334 - Enabled display of strings
20336 2004-08-31 20:05 pbartok
20339 - Added (partial) implementation of DialogResult; rest needs to be
20340 implemented when the modal loop code is done
20342 2004-08-31 19:55 pbartok
20345 - Fixed to match the removal of the needs_redraw concept
20347 2004-08-31 19:55 pbartok
20350 - Removed the rather odd split between 'needs redraw' and redrawing
20351 - Now handles the events that require regeneration (ambient
20352 properties and size)
20354 2004-08-31 19:41 pbartok
20357 - Added firing of BackColorChanged event
20358 - Added TopLevelControl property
20359 - Fixed handling of WM_ERASEBKGRND message
20361 2004-08-31 12:49 pbartok
20367 2004-08-31 12:48 pbartok
20370 - Finished (famous last words)
20372 2004-08-31 04:35 jordi
20374 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
20375 scrolling bugs, adds new methods
20377 2004-08-30 14:42 pbartok
20380 - Implemented CheckBox drawing code
20382 2004-08-30 14:42 pbartok
20385 - Made Redraw() and CheckRedraw() virtual
20386 - Improved mouse up/down/move logic to properly track buttons
20388 2004-08-30 09:44 pbartok
20391 - Updated to fix broken build. Not complete yet.
20393 2004-08-30 09:28 pbartok
20398 2004-08-30 09:17 pbartok
20403 2004-08-27 16:12 ravindra
20405 * ToolBarButton.cs: Added TypeConverter attribute.
20407 2004-08-27 16:07 ravindra
20409 * ImageIndexConverter.cs: Implemented.
20411 2004-08-27 14:17 pbartok
20414 - Removed unneeded stack vars
20415 - First attempt to fix sizing issues when layout is suspended
20417 2004-08-25 15:35 jordi
20419 * ScrollBar.cs: more fixes to scrollbar
20421 2004-08-25 14:04 ravindra
20423 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
20424 Added the missing divider code and grip for ToolBar Control.
20426 2004-08-25 13:20 pbartok
20429 - Control now properly passes the ambient background color to child
20432 2004-08-25 13:20 jordi
20434 * ScrollBar.cs: small bug fix regarding bar position
20436 2004-08-25 12:33 pbartok
20439 - Now only calls SetTimer or KillTimer if the enabled state has
20442 2004-08-25 12:33 pbartok
20445 - Fixed timer handling, now seems to work
20446 - Improved error message for window creation
20448 2004-08-25 12:32 pbartok
20451 - Fixed generation of MouseUp message
20453 2004-08-25 12:29 jordi
20455 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
20456 and fixes for progressbar
20458 2004-08-24 18:43 ravindra
20460 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
20461 in ToolBar control.
20463 2004-08-24 17:15 pbartok
20467 - Added missing events
20470 2004-08-24 17:14 pbartok
20472 * StatusBar.cs, PictureBox.cs:
20473 - Now uses Control's CreateParams
20475 2004-08-24 16:36 pbartok
20478 - Fixed background color handling
20479 - Fixed sending of enter/leave events on a grab
20481 2004-08-24 16:35 pbartok
20484 - Refined definitions for CrossingEvent
20486 2004-08-24 12:37 jordi
20488 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
20489 formmating, methods signature, and adds missing events
20491 2004-08-24 12:24 jordi
20493 * Control.cs: fire OnEnabledChanged event
20495 2004-08-24 11:17 pbartok
20498 - Implemented SetTimer() and KillTimer()
20500 2004-08-24 11:16 pbartok
20503 - Now uses Remove instead of Add to kill the timer
20505 2004-08-24 10:16 jackson
20507 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
20508 picture boxes in the theme now. Draw picture box borders and obey
20511 2004-08-24 05:49 jackson
20513 * Timer.cs: Remove top secret debugging code
20515 2004-08-24 05:34 jackson
20517 * PictureBox.cs: Temp hack to make picture boxes draw their full
20520 2004-08-24 05:29 jackson
20522 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20523 XplatUIX11.cs: Move timers to the driver level. On X they are
20524 queued by the driver and checked on idle.
20526 2004-08-24 01:07 jackson
20528 * XplatUIX11.cs: Use a queue for async messages instead of passing
20529 them as ClientMessages since that was totally broken. Also simply
20530 check for events and return an idle message if none are found. This
20531 gives us an idle handler, and prevents deadlocking when no messages
20534 2004-08-23 18:19 ravindra
20536 * XplatUIWin32.cs: Removed the unwanted destructor.
20538 2004-08-23 17:27 pbartok
20541 - Finishing touches. Works now, just needs some optimizations.
20543 2004-08-23 16:53 jordi
20545 * ScrollBar.cs: small fix
20547 2004-08-23 16:45 pbartok
20550 - Removed debug output
20553 2004-08-23 16:43 jordi
20555 * ScrollBar.cs: [no log message]
20557 2004-08-23 16:10 pbartok
20560 - Fixed handling of WM_CLOSE message
20561 - Removed debug output
20563 2004-08-23 16:09 pbartok
20566 - Added handling of Idle event
20567 - Added handling of form closing
20568 - Fixed reporting of MessageLoop property
20569 - Removed some unneeded code, should provide a bit of a speedup
20571 2004-08-23 15:22 pbartok
20574 - Added InitLayout() method
20575 - Added code to properly perform layout when Anchor or Dock property
20577 - Changed 'interpretation' of ResumeLayout. MS seems to have a
20578 LAMESPEC, tried to do it in a way that makes sense
20580 2004-08-23 14:10 jordi
20582 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
20583 properties and methods
20585 2004-08-23 13:55 pbartok
20588 - Properly fixed Jordi's last fix
20589 - Now uses Cursor's Position property instead of calling XplatUI
20592 2004-08-23 13:44 jordi
20594 * PaintEventHandler.cs: Adding missing attribute
20596 2004-08-23 13:39 pbartok
20599 - Implemented Position property
20601 2004-08-23 13:39 pbartok
20603 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20604 - Added method to move mouse cursor
20606 2004-08-23 13:39 pbartok
20609 - Fixed setting of background color
20610 - Added method to move mouse cursor
20612 2004-08-23 13:16 jordi
20614 * Control.cs: avoids null exception
20616 2004-08-22 17:46 jackson
20618 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
20621 2004-08-22 17:40 jackson
20623 * XplatUIX11.cs: Add some missing locks
20625 2004-08-22 15:10 pbartok
20627 * Control.cs, Form.cs:
20628 - Removed OverlappedWindow style from Control, instead it's default
20630 - Made form windows OverlappedWindow by default
20632 2004-08-22 13:34 jackson
20634 * ScrollBar.cs: Update the position through the Value property so
20635 the OnValueChanged event is raised.
20637 2004-08-22 12:04 pbartok
20640 - Added Cursor.cs and UserControl.cs
20642 2004-08-22 12:03 pbartok
20645 - Started implementation, not usable yet
20647 2004-08-22 12:00 pbartok
20650 - Implemented UserControl (complete)
20652 2004-08-21 19:20 ravindra
20654 * ToolBar.cs: Correcting the formatting mess of VS.NET.
20656 2004-08-21 18:49 ravindra
20658 * ToolBar.cs: Probably this completes the missing attributes in
20661 2004-08-21 18:03 ravindra
20663 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
20664 Fixed toolbar control signatures.
20666 2004-08-21 16:32 pbartok
20671 2004-08-21 16:30 pbartok
20676 2004-08-21 16:19 pbartok
20678 * Control.cs, Label.cs:
20681 2004-08-21 15:57 pbartok
20684 - Added loads of debug output for development
20685 - Fixed typo in method name
20687 2004-08-21 15:52 pbartok
20689 * ToolBarButtonClickEventArgs.cs:
20690 - Added missing base class
20692 2004-08-21 14:53 pbartok
20695 - Updated to match new GrabWindow signature
20697 2004-08-21 14:51 pbartok
20699 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20700 - Added method to get default display size
20702 2004-08-21 14:23 pbartok
20704 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20705 - Added method to query current grab state
20706 - Added argument to allow confining a grab to a window
20708 2004-08-21 14:22 pbartok
20711 - Added [Flags] attribute so that modifiers can be used in bitwise
20714 2004-08-21 14:21 pbartok
20716 * TrackBar.cs, ScrollBar.cs:
20717 - Replaced direct XplatUI calls with their Control counterpart
20719 2004-08-21 13:32 pbartok
20722 - Implemented Created property
20724 2004-08-21 13:28 pbartok
20727 - Implemented ContainsFocus
20729 2004-08-21 13:26 pbartok
20732 - Implemented CausesValidation
20734 2004-08-21 13:21 pbartok
20737 - Implemented CanFocus
20738 - Implemented CanSelect
20739 - Implemented Capture
20741 2004-08-21 12:35 pbartok
20744 - Fixed bug with Async message handling
20745 - Implemented getting the ModifierKeys
20747 2004-08-21 12:32 jackson
20749 * AsyncMethodResult.cs: Make sure we have the mutex before we
20750 release it. Fixes BeginInvoke on windows
20752 2004-08-21 11:31 pbartok
20754 * XplatUIWin32.cs, XplatUIX11.cs:
20755 - Drivers now return proper mouse state
20757 2004-08-21 10:54 jackson
20759 * Control.cs: Implement EndInvoke
20761 2004-08-21 10:48 jackson
20763 * Timer.cs: Remove unneeded finalizer
20765 2004-08-20 19:52 ravindra
20767 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
20768 in mouse event handling in the ToolBar control.
20770 2004-08-20 19:50 ravindra
20772 * ImageList.cs: Changed draw method to use the arguments passed in
20775 2004-08-20 18:58 pbartok
20777 * XplatUIStructs.cs:
20778 - Added private message for async communication
20780 2004-08-20 17:38 ravindra
20782 * Control.cs: Made RightToLeft property virtual and removed a
20785 2004-08-20 14:39 jordi
20787 * ThemeGtk.cs: use style_attach
20789 2004-08-20 14:39 pbartok
20792 - Added jackson's Async code from X11 to Win32
20794 2004-08-20 14:09 pbartok
20797 - Added all new files
20799 2004-08-20 14:09 pbartok
20802 - Added call to set window background color
20804 2004-08-20 14:03 pbartok
20806 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
20807 - Added method for setting the window background
20809 2004-08-20 14:02 pbartok
20812 - Added method for setting the background color
20813 - Added handling for erasing the window background
20815 2004-08-20 13:45 jordi
20817 * TrackBar.cs: fixes timer, new properties and methods
20819 2004-08-20 13:34 jackson
20821 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
20824 2004-08-20 13:22 jackson
20826 * Timer.cs: Timer Tick events are now handed through Controls Async
20827 mechanism so the callbacks are executed in the same thread as X
20829 2004-08-20 13:19 jackson
20831 * XplatUIDriver.cs: Expose functionality to send async messages
20834 2004-08-20 13:18 jackson
20836 * Control.cs: Implement Begininvoke
20838 2004-08-20 13:14 jackson
20840 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
20841 messages through the driver
20843 2004-08-20 13:12 jackson
20845 * XplatUIX11.cs: Lock before all X operations. Also added Async
20846 method functionality through XSendEvent
20848 2004-08-20 13:11 jackson
20850 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
20851 This will screw up on 64 bit systems)
20853 2004-08-20 13:10 jackson
20855 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
20856 Async messages through X/Win32
20858 2004-08-19 19:39 pbartok
20861 - Updated code to match new HandleData.DeviceContext type
20863 2004-08-19 19:38 pbartok
20866 - Made DeviceContext a generic object to allow usage from various
20868 - Added support for queueing Windows messages
20870 2004-08-19 19:37 pbartok
20873 - Added generation of MouseEnter, MouseLeave and MouseHover events
20874 - Added cleanup on EndPaint
20876 2004-08-19 19:17 pbartok
20879 - Added handling of WM_MOUSEHOVER
20880 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
20883 2004-08-19 18:55 jordi
20885 * ThemeGtk.cs: fixes button order
20887 2004-08-19 18:12 jordi
20889 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
20891 2004-08-19 17:09 pbartok
20894 - Added Right property
20895 - Added RightToLeft property
20897 2004-08-19 16:27 jordi
20899 * ThemeGtk.cs: experimental GTK theme support
20901 2004-08-19 16:26 jordi
20903 * ITheme.cs, Theme.cs: move themes from an interface to a class
20905 2004-08-19 16:25 jordi
20907 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
20910 2004-08-19 16:04 pbartok
20913 - Added colormap basics
20914 - Added a way to re-initialize with a different display handle
20915 - Fixed setting of the window background color
20916 - Added various X11 imports related to colors and colormaps
20918 2004-08-19 15:51 pbartok
20921 - Removed packing hints (Paolo suggested this a while back)
20922 - fixed colormap type
20923 - Added default Atom types
20924 - Added Screen and color structs and enums
20926 2004-08-19 15:39 pbartok
20929 - Added missing Draw() method
20930 - Added missing RecreateHandle event
20932 2004-08-19 15:30 pbartok
20935 - Added handling of WM_CLOSE
20937 2004-08-18 13:16 jordi
20939 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
20942 2004-08-18 09:56 jordi
20944 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
20946 2004-08-17 15:31 ravindra
20948 * SWF.csproj: Updated project.
20950 2004-08-17 15:25 pbartok
20953 - Drawing improvement; don't call UpdateBounds if we are not visible
20954 (or have been minimized)
20956 2004-08-17 15:24 pbartok
20959 - Finished IsVisible
20960 - Added Win32GetWindowPlacement
20962 2004-08-17 15:08 jackson
20964 * Panel.cs: Initial checkin of the Panel
20966 2004-08-17 14:25 pbartok
20969 - Fixed broken handling of default window sizes
20971 2004-08-17 13:29 jackson
20973 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
20974 has a large startup time.
20976 2004-08-17 10:25 jackson
20978 * HandleData.cs: union areas properly
20980 2004-08-17 10:12 jackson
20982 * HandleData.cs: union areas properly
20984 2004-08-16 20:00 ravindra
20986 * ToolBar.cs, ToolBarButton.cs: Added attributes.
20988 2004-08-16 18:48 ravindra
20990 * ToolBar.cs: Added attributes.
20992 2004-08-16 17:17 ravindra
20994 * SWF.csproj: Updated project.
20996 2004-08-16 17:16 jackson
20998 * XplatUIX11.cs: Check for more expose events before sending a
20999 WM_PAINT so they can all be grouped together. This makes dragging a
21000 window across another window redraw in a sane way.
21002 2004-08-16 15:47 pbartok
21005 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
21006 support OnMouseEnter/Leave()
21007 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
21010 2004-08-16 15:46 pbartok
21012 * XplatUIStructs.cs, XplatUIX11.cs:
21013 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
21014 OnMouseEnter/Leave()
21016 2004-08-16 15:34 jackson
21018 * XplatUIX11.cs: Group multiple expose events in HandleData, make
21019 sure messages get the message field set to WM_NULL if they are not
21022 2004-08-16 15:24 jackson
21024 * HandleData.cs: HandleData is used for storing message information
21027 2004-08-15 17:23 ravindra
21029 * ColorDepth.cs: Added attribute.
21031 2004-08-15 17:23 ravindra
21033 * SWF.csproj: Updated project for ToolBar Control.
21035 2004-08-15 17:20 ravindra
21037 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
21038 control and also dos2unix format.
21040 2004-08-15 17:13 ravindra
21042 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
21043 ToolBarButtonClickEventArgs.cs,
21044 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
21045 ToolBarTextAlign.cs: First Implementation of ToolBar control.
21047 2004-08-15 15:31 pbartok
21050 - First (mostly) working version
21052 2004-08-13 16:15 pbartok
21055 - Fixed Anchor default
21057 2004-08-13 15:43 pbartok
21060 - Changed GetCursorPos signature
21062 2004-08-13 15:42 pbartok
21064 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
21065 - Changed signature for GetCursorPos
21067 2004-08-13 15:25 pbartok
21071 - Fixed resizing/exposure handling
21073 2004-08-13 15:22 jordi
21075 * ThemeWin32Classic.cs: removes redundant code and fixes issues
21078 2004-08-13 14:55 jordi
21080 * TrackBar.cs: change from wndproc to events
21082 2004-08-13 13:00 jordi
21084 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21085 XplatUIX11.cs: implements PointToClient (ScreenToClient)
21087 2004-08-13 12:53 pbartok
21090 - Changed GetWindowPos to also provide client area size
21091 - Fixed broken prototypes for several win32 functions
21093 2004-08-13 12:53 pbartok
21095 * XplatUI.cs, XplatUIDriver.cs:
21096 - Changed GetWindowPos to also provide client area size
21098 2004-08-13 12:52 pbartok
21101 - Added generation of WM_POSCHANGED
21102 - Changed GetWindowPos to also provide client area size
21104 2004-08-13 12:52 pbartok
21107 - Added Dispose() and destructor
21108 - Fixed resizing and bounds calculation
21110 - Added memory savings for invisible windows
21112 2004-08-13 12:46 jordi
21114 * TrackBar.cs: adds timer and grap window
21116 2004-08-13 10:25 jackson
21118 * Timer.cs: SWF Timer
21120 2004-08-12 16:59 pbartok
21122 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21123 - Implemented method to get current mouse position
21125 2004-08-12 14:29 jordi
21127 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
21128 enhancement, fix mouse problems, highli thumb, etc
21130 2004-08-12 13:31 pbartok
21133 - Fixed Anchoring bugs
21135 2004-08-12 13:01 jackson
21137 * StatusBar.cs: Don't forget things
21139 2004-08-12 12:54 jackson
21141 * ThemeWin32Classic.cs: Handle owner draw status bars
21143 2004-08-12 12:54 jackson
21145 * StatusBar.cs: Implement missing properties, events, and methods.
21146 Handle mouse clicking
21148 2004-08-12 10:19 jackson
21150 * StatusBarPanelClickEventArgs.cs,
21151 StatusBarPanelClickEventHandler.cs: Classes for handling status
21152 bar panel click events
21154 2004-08-12 10:10 jackson
21156 * Control.cs: Add missing properties
21158 2004-08-12 09:46 pbartok
21160 * BindingsManagerBase.cs:
21161 - Name changed to BindingManagerBase.cs
21163 2004-08-12 09:25 jordi
21165 * ScrollableControl.cs: calls ctrlbase instead of exeception
21167 2004-08-11 16:28 pbartok
21169 * InputLanguageChangingEventArgs.cs:
21170 - Never check in before compiling. Fixes the last check-in
21172 2004-08-11 16:26 pbartok
21174 * InputLanguageChangingEventArgs.cs:
21175 - More signature fixes
21177 2004-08-11 16:20 pbartok
21179 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
21180 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
21181 ImageListStreamer.cs, InputLanguage.cs,
21182 InputLanguageChangedEventArgs.cs,
21183 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
21184 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
21185 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
21186 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21189 2004-08-11 16:16 pbartok
21193 - Added .Net 1.1 method
21195 2004-08-11 15:25 pbartok
21198 - Fixed BindingManagerBase.cs filename
21200 2004-08-11 15:22 pbartok
21202 * BindingManagerBase.cs:
21203 - Was checked in with wrong filename
21205 2004-08-11 14:50 pbartok
21210 2004-08-11 13:41 jordi
21212 * XplatUIWin32.cs: Fixes ClientRect
21214 2004-08-11 13:19 pbartok
21216 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21218 - We had SetWindowPos and MoveWindow to set window positions and
21219 size, removed MoveWindow. We have GetWindowPos, so it made sense to
21220 keep SetWindowPos as matching counterpart
21221 - Added some X11 sanity checking
21223 2004-08-11 12:59 pbartok
21226 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
21227 (It seems that SetBounds is just a front for SetBoundsCore and
21228 SetBoundsCore updates the underlying window system and
21229 UpdateBounds is responsible for updating the variables associated
21230 with the Control and sending the events)
21231 - Major cleanup of Size handling; we now have two sizes, client_size
21232 and bounds. Bounds defines the window with decorations, client_size
21235 2004-08-11 12:55 pbartok
21237 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21238 - Added method to calculate difference between decorated window and
21241 2004-08-11 12:54 pbartok
21244 - Forcing redraw on resize
21246 2004-08-11 11:43 pbartok
21249 - Removed disposing of the actual images when the list is disposed
21251 2004-08-11 09:13 pbartok
21254 - Now properly reparents windows
21256 2004-08-11 08:37 pbartok
21261 2004-08-11 07:47 pbartok
21264 - Rewrote the collection stuff. Might not be as fast now, not
21265 keeping the number of children around and accessible directly, but
21266 it's more straightforward
21268 2004-08-11 07:44 pbartok
21270 * AccessibleObject.cs:
21271 - Fixed to match ControlCollection rewrite
21273 2004-08-11 07:43 pbartok
21276 - Added missing creation of the collection list
21278 2004-08-10 20:08 jackson
21280 * StatusBar.cs: Get the paint message from WndProc
21282 2004-08-10 19:31 jackson
21284 * ThemeWin32Classic.cs: Create Brushes as little as possible
21286 2004-08-10 19:20 jackson
21288 * UICues.cs: Add Flags attribute
21290 2004-08-10 19:19 jackson
21292 * StatusBarPanel.cs: Signature cleanup
21294 2004-08-10 19:10 jackson
21296 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
21297 Initial implementation of status bar item drawing
21299 2004-08-10 17:27 jordi
21301 * TrackBar.cs: add missing methods, properties, and restructure to
21304 2004-08-10 16:24 jackson
21306 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
21307 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
21310 2004-08-10 13:21 jordi
21312 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
21313 enhancements and standarize on win colors defaults
21315 2004-08-10 12:52 jackson
21317 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
21318 ThemeWin32Classic.cs: Implement DrawItem functionality
21320 2004-08-10 12:47 jordi
21322 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
21324 2004-08-10 12:32 jordi
21326 * Control.cs: throw ontextchange event
21328 2004-08-10 11:43 pbartok
21331 - Added more to the still unfinished Dock/Anchor layout code
21333 2004-08-10 11:39 pbartok
21335 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
21336 - Added GetWindowPos method
21338 2004-08-10 11:36 pbartok
21341 - Implemented several methods
21343 2004-08-10 09:47 jackson
21345 * TrackBar.cs: Allow control to handle buffering
21347 2004-08-10 09:41 jackson
21349 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
21351 2004-08-10 09:24 jackson
21353 * Label.cs, LinkLabel.cs: Let Control handle buffering.
21355 2004-08-10 09:09 jackson
21357 * StatusBar.cs: Let Control handle all the buffering.
21359 2004-08-10 09:08 jackson
21361 * Control.cs: Control will now handle the buffering code, so each
21362 control does not have to implement this.
21364 2004-08-10 08:34 jackson
21366 * XplatUIDriver.cs: Use default colors from the theme
21368 2004-08-09 17:12 pbartok
21371 - Fixed several bugs Ravindra pointed out
21373 2004-08-09 16:11 pbartok
21376 - Added incomplete dock layout code
21377 - Added support for mouse wheel
21379 2004-08-09 16:09 pbartok
21382 - Added handling for middle and right mousebutton
21383 - Added handling for mouse wheel
21384 - Added handling for key state and mouse state and position
21385 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
21388 2004-08-09 15:40 jackson
21390 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
21391 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
21394 2004-08-09 15:37 jackson
21396 * StatusBar.cs: Initial implementation of StatusBar
21398 2004-08-09 15:36 jackson
21400 * ITheme.cs: Add support for drawing status bar and getting status
21403 2004-08-09 15:35 pbartok
21408 2004-08-09 15:34 jackson
21410 * ThemeWin32Classic.cs: Add support for drawing status bar and get
21411 status bar item sizes
21413 2004-08-09 15:21 jackson
21415 * ThemeWin32Classic.cs: Use known colors for default control
21418 2004-08-09 15:12 jackson
21420 * ThemeWin32Classic.cs: Make the default font static, it is static
21421 in control so this doesn't change functionality and creating fonts
21424 2004-08-09 14:56 pbartok
21427 - Added GrabMode enum
21429 2004-08-09 14:55 pbartok
21431 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21432 - Removed Run method, was only required for initial development
21434 2004-08-09 14:51 pbartok
21436 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21437 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
21440 2004-08-09 13:48 pbartok
21443 - Fixed default sizing for child windows
21445 2004-08-09 12:56 pbartok
21448 - Added generation of WM_DESTROY message
21449 - Added handling of window manager induced shutdown
21451 2004-08-09 11:31 jackson
21453 * ThemeWin32Classic.cs: New names for control properties
21455 2004-08-09 11:25 jackson
21457 * Control.cs: Use new color names
21459 2004-08-09 11:02 jackson
21461 * XplatUI.cs: Get default window properties from the theme
21463 2004-08-09 11:01 jackson
21465 * ITheme.cs: The theme engine now controls default window
21468 2004-08-09 11:00 jackson
21470 * ThemeWin32Classic.cs: Add default window color properties
21472 2004-08-09 10:17 jackson
21474 * ThemeWin32Classic.cs: Use correct default back color
21476 2004-08-09 10:05 jackson
21478 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
21481 2004-08-09 09:56 jackson
21483 * XplatUI.cs: Remove defaults, these are handled by the theme now.
21485 2004-08-09 09:54 jackson
21487 * Control.cs: Get default properties from the theme.
21489 2004-08-09 09:53 jackson
21491 * ITheme.cs: Themes now handle default control properties
21493 2004-08-09 09:53 jackson
21495 * ThemeWin32Classic.cs: Themes now handle default control
21496 properties so coloring will be consistent
21498 2004-08-08 16:54 jordi
21500 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
21502 2004-08-08 15:08 jordi
21504 * XplatUIX11.cs: fixes keyboard crash
21506 2004-08-08 13:47 jordi
21508 * Label.cs: add cvs header info
21510 2004-08-08 12:09 jackson
21512 * ThemeWin32Classic.cs: Add pen_buttonface
21514 2004-08-08 11:52 jordi
21516 * Label.cs, LinkLabel.cs: [no log message]
21518 2004-08-08 11:34 jordi
21520 * ThemeWin32Classic.cs: Use Windows Standard Colours
21522 2004-08-07 17:32 jordi
21524 * TrackBar.cs: throw exceptions of invalid enums values
21526 2004-08-07 17:31 jordi
21528 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
21531 2004-08-07 16:56 jackson
21533 * HorizontalAlignment.cs: Initial checkin
21535 2004-08-07 13:16 jordi
21537 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
21540 2004-08-07 13:05 jordi
21542 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
21543 GetSysColor defines
21545 2004-08-06 18:01 pbartok
21547 * ThemeWin32Classic.cs:
21548 - Fixed some rounding issues with float/int
21550 2004-08-06 18:00 jackson
21552 * DockStyle.cs, AnchorStyles.cs:
21554 Add flags and serializable attributes.
21556 2004-08-06 17:46 pbartok
21559 - Implemented GetParent
21561 2004-08-06 17:18 pbartok
21564 - Fixed some rounding issues with float/int
21566 2004-08-06 17:17 pbartok
21568 * X11Structs.cs, XplatUIX11.cs:
21569 - Fixed Refresh and Invalidate
21571 2004-08-06 15:30 pbartok
21573 * Control.cs, X11Structs.cs, XplatUIX11.cs:
21574 - Fixed recursive loop when resizing
21575 - Improved/fixed redrawing on expose messages
21577 2004-08-06 09:53 jordi
21579 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
21580 keyboard navigation
21582 2004-08-06 08:02 pbartok
21584 * X11Structs.cs, XplatUIX11.cs:
21585 - Fixed reparenting
21586 - Fixed window border creation
21588 2004-08-05 15:38 pbartok
21591 - Attempted fix for reparenting problems
21593 2004-08-04 15:14 pbartok
21596 - Fixed Invalidation bug (calculated wrong client area)
21597 - Added ClientSize setter
21599 2004-08-04 15:13 pbartok
21602 - Added AutoScale properties
21604 2004-08-04 15:13 pbartok
21607 - Added latest files
21609 2004-08-04 14:11 pbartok
21611 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21613 - Added Invalidate handling
21615 2004-08-03 17:09 jordi
21617 * XplatUIDriver.cs: fixes spelling mistake
21619 2004-07-27 09:53 jordi
21621 * TrackBar.cs: fixes trackbar events, def classname, methods
21624 2004-07-27 09:29 jordi
21626 * ScrollBar.cs: fixes scrollbar events
21628 2004-07-27 04:38 jordi
21630 * Control.cs: changes to be able to run winforms samples
21632 2004-07-26 11:42 jordi
21634 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
21635 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
21637 2004-07-26 05:41 jordi
21639 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
21640 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
21643 2004-07-22 09:22 jordi
21645 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
21646 check link overlapping, implement events, and fixes
21648 2004-07-21 10:28 jordi
21650 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
21652 2004-07-21 10:19 jordi
21654 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
21655 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
21656 LinkLabelLinkClickedEventArgs.cs,
21657 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
21658 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
21661 2004-07-19 13:09 jordi
21663 * Control.cs, Label.cs: label control re-written: added missing
21664 functionlity, events, and properties
21666 2004-07-19 10:49 jordi
21668 * Control.cs: fixes SetBounds logic
21670 2004-07-19 01:29 jordi
21672 * Control.cs: Call RefreshWindow only if the window has created
21674 2004-07-15 14:05 pbartok
21676 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
21677 - Implemented ImageList and ImageList.ImageCollection classes
21678 - Added ColorDepth enumeration
21679 - Updated SWF VS.Net project
21681 2004-07-15 11:06 jordi
21683 * XplatUIStructs.cs: added MsgButons enum
21685 2004-07-15 11:03 jordi
21687 * Control.cs: added basic mouse handeling events
21689 2004-07-15 03:38 jordi
21691 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
21692 Vertical TrackBar control implementation
21694 2004-07-13 09:33 jordi
21696 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
21698 2004-07-13 09:31 jordi
21700 * Control.cs, Form.cs: commit: new properties and fixes form size
21703 2004-07-09 14:13 miguel
21705 * ProgressBar.cs: Spelling
21707 2004-07-09 11:25 pbartok
21710 - Removed usage of Rectangle for drawing. Miguel pointed out it's
21713 2004-07-09 11:17 miguel
21715 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
21717 * ProgressBar.cs: Fixed spelling for `block'
21719 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
21722 Avoid using the += on rect.X, that exposed a bug in the compiler.
21724 2004-07-08 23:21 pbartok
21726 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
21727 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
21728 BaseCollection.cs, Binding.cs, BindingContext.cs,
21729 BindingMemberInfo.cs, BindingsCollection.cs,
21730 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
21731 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
21732 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
21733 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
21734 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
21735 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
21736 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
21737 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
21738 FrameStyle.cs, GiveFeedbackEventArgs.cs,
21739 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
21740 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
21741 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
21742 InputLanguageChangedEventArgs.cs,
21743 InputLanguageChangedEventHandler.cs,
21744 InputLanguageChangingEventArgs.cs,
21745 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
21746 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
21747 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
21748 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
21749 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
21750 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
21751 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
21752 QueryAccessibilityHelpEventArgs.cs,
21753 QueryAccessibilityHelpEventHandler.cs,
21754 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
21755 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
21756 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
21757 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
21758 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
21759 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
21760 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
21761 XplatUIX11.cs, lang.cs: