1 2006-12-31 Chris Toshok <toshok@ximian.com>
3 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
4 override the layout style (anchor/dock) of the control. assign to
5 Dock instead. Fixes bug #80416.
9 2006-12-31 Andreia Gaita <avidigal@novell.com>
11 * ContainerControl.cs: Use ContainerSelected flag to check if
12 a Container is directly selected, or if Select is called on a
13 non-container. If a container is directly selected, focus events
15 Apply #80411 patch to throw exception on set_ActiveControl if
16 control is the same as the current one.
18 * Control.cs: Use ContainerSelected flag (see above).
19 Add invalidation check to raise event but not invalidate if
24 2006-12-31 Everaldo Canuto <everaldo@simios.org>
26 * MenuAPI.cs: After click, dont close popup menu when menu is
27 ContextMenu. Fixes #80399.
29 2006-12-30 Chris Toshok <toshok@ximian.com>
31 * ContainerControl.cs: make sure we throw the exception if the
32 container control doesn't contain the control we're setting
35 2006-12-30 Chris Toshok <toshok@ximian.com>
37 * Control.cs (SetTopLevel): fix the exception raised by
38 SetTopLevel for child controls.
39 (set_Anchor): call UpdateDistances when setting the anchor type.
40 This fixes bug #80336.
42 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
44 * Theme.cs: For now, revert back to 8pt font.
46 2006-12-29 Everaldo Canuto <everaldo@simios.org>
48 * MenuAPI.cs: Set popup as active when open a ContextMenu.
51 2006-12-29 Chris Toshok <toshok@ximian.com>
53 * Control.cs: reorder the code in OnResize to give the same event
56 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
58 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
59 TileHorizontally and TileVertically.
61 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
63 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
64 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
65 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
66 Corrected copyright and email adress.
68 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
70 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
71 of Exception in FullPath property if no TreeView is associated with
74 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
76 * Theme.cs: Marked default_font as private, and initialize it in ctor
77 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
79 * ThemeGtk.cs: Removed default_font intialization.
80 * ThemeWin32Classic.cs: Removed default_font initialization.
82 2006-12-28 Chris Toshok <toshok@ximian.com>
84 * Control.cs: fix a couple of place where we were creating handles
85 more aggressively than we should be. Fixes ControlRefresh unit
88 2006-12-28 Chris Toshok <toshok@ximian.com>
90 * Control.cs: contrary to what the comment said, Control.Dock does
91 not supercede Control.Anchor - the last one you assign to decides
92 the layout behavior. so we need to keep track of which was the
93 last set. Also, fix some of the affected property arguments in
94 PerformLayout calls, and remove an redundant parent.PerformLayout
97 Add a VisibleInternal property, which returns is_visible. We
98 can/should get rid of all the usage of this field elsewhere.
100 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
102 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
103 control style, not DoubleBuffer. Added UseDoubleBuffering property
104 that indicates whether doublebuffering is enabled and supported.
105 (comment from and code based on Gert Driesen's patch in #80324).
108 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
110 * Control.cs: Fixed a NRE.
112 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
114 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
117 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
119 * Control.cs: Rewrote double buffering, now a seperate
120 class handles all the buffering, no Graphics is disposed of
121 until the painting is finished (earlier implementation
122 would crash if the control was resized in the OnPaint,
123 since it would cause the double buffer to be recreated
124 and the old one disposed), a separate Graphics is
125 created for every paint (MS behaviour and anyways the state
126 of the Graphics would have to be saved and restored otherwise)
130 * XplatUI.cs: Added and implemented GetOffscreenGraphics
131 so that we can get the graphics for the back buffer without
132 having to create a new one and remove the offscreen_dc parameter
133 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
135 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
137 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
138 Also make virtual all the key-related methods.
140 * ListViewItem.cs: Make virtual the key related methods for
141 ListViewSubItemCollection.
143 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
147 * ThemeWin32Classic.cs:
148 * Theme.cs: Initial support for Tile view in ListView,
149 as well as the implementation of the required bits for it (Item
152 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
154 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
155 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
156 Provide useful exception messages.
158 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
160 * TrackBar.cs: Remove a warning.
161 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
162 when used by DateTimePicker, fixes #80287. This also requires that
163 MonthCalendar implements it's own drawing for the yearly updown control,
164 otherwise the Capture tracking would be too complicated. Removed the Click
165 and DoubleClick events (according to comments they were hiding the base class
166 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
167 raise these events, not that they cannot be raised. It is possible to raise
168 them by calling OnClick and OnDoubleClick). Added two internal fields in
169 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
170 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
171 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
172 event, no longer needed.
174 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
176 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
177 true if new value differs from current value.
179 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
181 * Control.cs: ControlCollection.Count must be public. Fixed build of
184 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
186 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
188 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
190 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
192 2006-12-26 Everaldo Canuto <everaldo@simios.org>
194 * Control.cs: Invalidates control including when Width and Height is
195 equal zero or is not visible, only Paint event must be care about
198 2006-12-26 Chris Toshok <toshok@ximian.com>
200 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
201 more corcompare work.
203 * DataGridView.cs: fix compiler warning.
205 * ColumnHeader.cs: some corcompare work, and also take the
206 opportunity to make the internal fields private.
208 * ListView.cs: fix the fallout from the above field change.
210 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
212 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
213 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
214 ToolStripTextBox.cs: Fixes to events and corcompare.
216 2006-12-26 Everaldo Canuto <everaldo@simios.org>
218 * ListView.cs: Call owner.OnMousexx event to propagate events from
219 item to ListView. Fixes #80367.
221 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
223 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
224 if value is less than one. ItemHeight should not be set to a value
225 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
228 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
230 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
231 * ToolStripStatusLabel.cs: Add Spring for Moma.
233 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
235 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
236 Fixed code formatting. Removed debug code.
237 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
239 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
241 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
242 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
243 ArgumentOutOfRangeException if ColumnCount is negative. In
244 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
245 less than 4 or higher than 32768.
246 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
247 Fixed FormatProvider to return CurrentCulture unless explicitly set.
248 Fixed IsFormatProviderDefault to return true if FormatProvider has
249 not been explicitly set.
251 2006-12-25 Chris Toshok <toshok@ximian.com>
253 * Application.cs: add a couple of 2.0 events.
255 2006-12-25 Chris Toshok <toshok@ximian.com>
257 * Control.cs: fix compiler warning.
259 * AxHost.cs: corcompare fixes.
261 * ApplicationContext.cs: corcompare fixes.
263 2006-12-25 Chris Toshok <toshok@ximian.com>
265 * Control.cs: only update dist_right/dist_bottom if the
266 width/height is > 0. this fixes anchored controls being resized
267 smaller until they disappear and then resized larger again.
269 2006-12-25 Chris Toshok <toshok@ximian.com>
271 * Control.cs: a couple of changes. Remove dist_left and dist_top,
272 since they're nothing more than X/Left and Y/Top, respectively.
274 Also, move back to a per-control Bitmap/Graphics for
275 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
276 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
279 2006-12-25 Miguel de Icaza <miguel@novell.com>
281 * MessageBox.cs: Implemented overload that takes a new "bool
282 displayHelpButton" by adding a new internal field "show_help".
283 When clicked this will raise the HelpRequested on the owner or the
286 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
287 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
289 * ListView.cs: Add support ColumnWidthChanged and
292 Add support for ColumnReordered event.
293 (ReorderColumn): Add NET_2_0 specific support for cancelling the
298 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
300 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
302 2006-12-24 Chris Toshok <toshok@ximian.com>
304 * GridTablesFactory.cs: 2.0 corcompare work.
306 * ToolStripContainer.cs: add "override" to
307 ContextMenuStripChanged, and remove the local event object.
309 * ToolStripDropDown.cs: same with a couple properties.
311 * ToolStripPanel.cs: same with AutoSizeChanged event.
313 * TextBoxBase.cs: add "override" to AutoSizeChanged.
315 * Form.cs: add the remaining 2.0 events, and do some corcompare
318 * DateTimePicker.cs: add "new" to padding.
320 * ButtonBase.cs: use Control's use_compatible_text_rendering.
322 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
324 * DataGridView.cs: PaddingChanged is overridden.
326 2006-12-24 Chris Toshok <toshok@ximian.com>
328 * Control.cs: corecompare work here too.
330 * DataGridViewElement.cs, DataGridView.cs,
331 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
332 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
333 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
334 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
337 2006-12-24 Miguel de Icaza <miguel@novell.com>
339 * Control.cs: Switched the error message on the console for a
340 todo. A review of the code will have to cope with this anyways
341 (since its a large feature, it is in our radar) and it was
342 producing too much output when running PDN.
344 * ToolStripComboBox.cs: Set the text when the SelectedIndex
345 changes. Applications depend on this (PDN 2.72)
347 2006-12-23 Chris Toshok <toshok@ximian.com>
349 * TableLayoutSettings.cs: finish up the corcompare work for this
352 2006-12-23 Chris Toshok <toshok@ximian.com>
354 * Control.cs: make SetImplicitBounds internal, do some futzing
355 with LayoutEngine so that it's available in 1.1, and remove the
356 entire duplicated code mess from PerformLayout. Use
357 System.Windows.Forms.Layout.DefaultLayout instead.
359 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
361 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
363 * Form.cs: Add MainMenuStrip property.
365 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
367 * Control.cs: Add ContextMenuStrip property and implementation.
368 Fix ContextMenu implementation to show menu centered on control when
369 activated using the keyboard instead of showing at screen (0,0).
371 * ToolStripDropDown.cs: Fix needed overload of Show ().
373 2006-12-23 Everaldo Canuto <everaldo@simios.org>
375 * Menu.cs: Name property added for 2.0 profile.
377 2006-12-23 Everaldo Canuto <everaldo@simios.org>
379 * Menu.cs: Update information about FindMenuItem, method to be
382 2006-12-23 Everaldo Canuto <everaldo@simios.org>
384 * MenuAPI.cs: When deselect items deselect also selected subitems.
386 2006-12-23 Everaldo Canuto <everaldo@simios.org>
388 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
389 FindSubItemByCoord to found itens that is not active, also an
390 cheking added to FindSubItemByCoord to search for items only
391 in visible popup windows. Fixes #80274.
393 2006-12-22 Everaldo Canuto <everaldo@simios.org>
395 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
396 internal property, it be care about change ExStyle.
398 2006-12-22 Andreia Gaita <avidigal@novell.com>
400 * ContainerControl.cs: set activeControl for parent forms up the
401 tree when the new activecontrol is a container.
402 When validating the active control, if it is a container, also
403 raise up the validation for it's active control. Fixes #80280
405 * Control.cs: Add internal property flag and check to prevent
406 Focus events from getting raised when Select() is called for
407 a ContainerControl. There are still too many focus events being
408 raised at the moment though.
409 Cleaned up the code a bit.
411 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
413 * Control.cs: Added all missing 2.0 events.and
414 fixed a couple of corcompare issues.
415 * TrackBar.cs: Implemented missing 2.0 bits.
418 * MdiClient.cs: Fixed some corcompare issues.
420 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
422 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
423 SplitterPanel.cs: corecompare work.
425 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
427 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
428 Clean up warnings for BackgroundImageChanged and PaddingChanged
429 events now that they are implemented in Control.cs.
431 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
433 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
435 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
436 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
437 of TableLayoutPanel and supporting cast.
439 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
442 - GrabWindow now confines the mouse pointer to the confine window.
443 - Added Win32ClipCursor and Win32GetClipCursor.
446 - Added CaptureWithConfine to be able to capture and confine
449 * InternalWindowManager.cs:
450 - Call CaptureWithConfine instead of Capture if we're an
451 MdiChild (fixes #79982).
453 2006-12-21 Chris Toshok <toshok@ximian.com>
455 * DataGrid.cs: guard against the initial state of selection, where
456 selection_start == -1. make sure we only select from index >= 0.
459 2006-12-21 Chris Toshok <toshok@ximian.com>
461 * Control.cs: we don't need to be so draconian with
462 UpdateDistances, and we thusly don't need to call it before
463 calling PerformLayout in ResumeLayout. Fixes bug #80289.
465 2006-12-21 Daniel Nauck <dna@mono-project.de>
468 TextBox.cs: Implemented AutoComplete properties.
470 2006-12-20 Chris Toshok <toshok@ximian.com>
472 * DataGridView*.cs: some corecompare work.
474 2006-12-20 Jackson Harper <jackson@ximian.com>
476 * XplatUIX11.cs: We need to hide the caret when deleting it,
477 otherwise you get carets left lying around everywhere.
478 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
479 prevents getting some weird half drawn caret tracers when
481 * TextControl.cs: Attempt to reduce the number of times we need to
484 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
486 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
488 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
491 - Implemented missing 2.0 bits.
492 - Changed some default values to match MS.
494 2006-12-20 Jackson Harper <jackson@ximian.com>
496 * TextBoxBase.cs: When changing the font across the document we
497 can't recalculate after changing each line, since that will cahnge
499 - PreferredHeight is a little different than i thought.
500 - When backspacing, move the caret before we do the actual char
501 delete, because when that delete crosses a wrap boundary the
502 positional information will change.
504 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
506 * Control.cs: Added some missing 2.0 bits:
507 BackgroundImageLayout, BackgroundImageLayoutChanged,
508 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
509 add IBindableComponent and IDropTarget implementation.
512 - Added all missing 2.0 features:
513 BackgroundImageLayout, RightToLeftLayout,
514 OnHandleDestroyed, RightToLeftLayoutChanged,
515 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
517 - Rewrote all the BoldDate code, it was completely broken.
518 - Fixed all the tests (the tests can now be re-enabled, the
519 problems were not with the tests, but with the control, it was
522 * DateTimePicker.cs: Changed the location where the
523 MonthCalendar is shown.
525 2006-12-19 Chris Toshok <toshok@ximian.com>
527 * DataGridView.cs: add IDropTarget implementation.
529 * ToolStripPanel.cs: add IDropTarget implementation.
531 2006-12-19 Jackson Harper <jackson@ximian.com>
533 * TextControl.cs: soft now means something different than what it
534 used to mean, we want to move the caret regardless of whether or
535 not this break was soft (would we really have wanted the caret
536 to not move with the break in the old context?)
537 * TreeView.cs: Make sure we factor in the vert scrollbar when
538 calculating the horizontal scrollbar's maximum.
540 2006-12-19 Andreia Gaita <avidigal@novell.org>
542 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
543 check for keywords in alternate casing, close bug #80049.
545 2006-12-19 Chris Toshok <toshok@ximian.com>
547 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
548 methods (which all do nothing).
550 * IDropTarget.cs: add the 4 missing methods.
552 2006-12-19 Chris Toshok <toshok@ximian.com>
554 * TableLayoutRowStyleCollection.cs: corcompare work.
556 * TableLayoutSettings.cs: same.
558 * TableLayoutStyle.cs: same.
560 * TableLayoutColumnStyleCollection.cs: same.
562 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
564 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
565 TableLayoutPanel I've had in my local tree for way too long.
567 2006-12-19 Miguel de Icaza <miguel@novell.com>
569 * TableLayoutSettings.cs: Finish the public API (still needs all
570 the logic to update on changes).
572 * TableLayoutPanelCellPosition.cs: new file.
574 * TableLayoutRowStyleCollection.cs,
575 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
576 TableLayoutSettings.cs: Track the final 2.0 table api.
578 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
580 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
581 and Image List 2.0 members for ColummnHeader.
582 * ListView.cs: Add key-related 2.0 methods for
583 ColumnHeaderCollection.
585 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
587 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
588 ArgumentNullException if items argument is null. Ignore null item in
589 arrays. Removed extra tabs.
591 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
593 * MonthCalendar.cs: Fixed InvalidCastException.
595 2006-12-19 Jackson Harper <jackson@ximian.com>
597 * TextControl.cs: Don't increment the position here.
598 - When calculating char positions only add in the line break size
599 for hard line breaks.
601 2006-12-19 Andreia Gaita <avidigal@novell.org>
603 * SendKeys.cs: Changed some things to match ms.net behaviour
604 when parsing shifted capital letters.
606 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
607 Add window handle as parameter to SendInput. X11 needs the
608 window handle, and the handle being passed to it in the keys
609 queue is the active control handle (which windows needs), not
612 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
613 to support SendKeys on X.
615 * X11Keyboard: Implement helper method to lookup a linux keycode
616 given the virtual keycode. Added table of keycode-2-virtualkey
617 values to support this.
619 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
621 * ListView.cs: Add support for SelectedIndexCollection
622 and SelectedItemCollection 2.0 methods. Implement support
624 * ListViewItem.cs: Add support for ListViewSubItemCollection
625 2.0 methods. Also, fix an incorrect behavior of AddRange method
626 (it shouldn't call Clear).
627 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
629 2006-12-19 Jackson Harper <jackson@ximian.com>
632 * TextBoxBase.cs: New args for FormatText
633 * TextControl.cs: Rewrote the main drawing method, this version
634 feels a little easier to understand and debug to me. Hopefully it
636 - Fix FormatText to OR in the new formating values. Added
637 FormatSpecified param, basically this works in the same way as
638 BoundsSpecified in Control.
639 - Set the caret properties when the caret is positioned.
640 - When wrapping text make sure that we calculate the width of the
642 - when calculating alignments we might have wrapped down to the
643 next line, so don't search for an individual tag, search for the
645 - We need to invalidate the selection area when we replace the
648 2006-12-19 Daniel Nauck <dna@mono-project.de>
650 * Application.cs: add Restart () 2.0 support
652 2006-12-18 Everaldo Canuto <everaldo@simios.org>
654 * MenuItem.cs: Invalidate menu item rectangle after change Enable
655 property. Fixes #80268.
657 2006-12-18 Everaldo Canuto <everaldo@simios.org>
659 * MenuAPI.cs: Dont trigger select event when closes top menu
662 2006-12-18 Everaldo Canuto <everaldo@simios.org>
664 * MenuAPI.cs: When you click on menuitem only trigger onselect
665 event for top menu itens. Fixes #80271.
667 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
669 * MdiWindowManager.cs: Make IconicBounds depend on
670 the bottom of MdiClient, not the top (fixes #80267)
672 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
674 * MdiClient.cs: Added missing 2.0 attribute
676 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
678 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
679 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
681 2006-12-18 Everaldo Canuto <everaldo@simios.org>
683 * MenuAPI.cs: Fix click when menuitem is not popup,
684 this regression was caused by last commit (#80272).
686 2006-12-17 Everaldo Canuto <everaldo@simios.org>
688 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
689 fire click event or close menu. Fixes #80272.
691 2006-12-17 Daniel Nauck <dna@mono-project.de>
693 * ListViewHitTestInfo.cs: add
695 2006-12-17 Daniel Nauck <dna@mono-project.de>
697 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
698 * FlatButtonAppearance.cs: add
699 * DockingAttribute.cs: add
701 2006-12-17 Chris Toshok <toshok@ximian.com>
703 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
704 and rebind our columns when it does - this way, if you make
705 changes to the DataTable (or set the Table attribute on a DataView
706 after setting it as the DataGrid's DataSource, the changes are
707 made visible.) Fixes bug #80107.
709 2006-12-17 Daniel Nauck <dna@mono-project.de>
711 * ListViewGroup.cs: add internal Location property for layouting.
712 * Theme.cs: add abstract ListViewGroupHeight function.
713 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
715 2006-12-16 Andreia Gaita <avidigal@novell.com>
717 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
718 Added reset of selected index to 0 when adding first tab page.
721 * NumericUpDown.cs: Fix NET_2_0 check
723 2006-12-16 Daniel Nauck <dna@mono-project.de>
725 * ListViewGroup.cs: fixed DefaultValueAttribute value
727 2006-12-16 Daniel Nauck <dna@mono-project.de>
729 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
731 2006-12-15 Miguel de Icaza <miguel@novell.com>
733 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
734 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
735 ScrollableControl.cs: Add a handful of methods that are
738 2006-12-15 Chris Toshok <toshok@ximian.com>
740 * XplatUIWin32.cs: initial implementation of the Reversible
741 drawing functions. there are some problems. DrawReversibleFrame
742 doesn't seem to work at all for Dashed FrameStyle, and in the
743 Thick case there are drawing errors at the corners (we probably
744 need to bind Rectangle instead of doing moveto/lineto's.)
746 2006-12-16 Andreia Gaita <avidigal@novell.com>
748 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
749 to send blocks of key messages. Send accumulates keys to send with Flush,
750 while SendWait sends all keys immediately.
752 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
753 XplatUIX11.cs, XplatUIX11-new.cs:
754 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
756 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
758 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
759 testing for ms.net on this class is very tricky, as the tests run too fast
760 to allow the hook to release, essentially freezing the keyboard and the
761 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
764 2006-12-16 Daniel Nauck <dna@mono-project.de>
766 * Padding.cs: fixed serialization compability to MS ("_var" field names),
767 added missing attributes.
769 2006-12-15 Daniel Nauck <dna@mono-project.de>
771 * ListViewGroup.cs: Added missing attributes.
772 * ListViewGroupCollection.cs: Added missing attributes.
774 2006-12-15 Daniel Nauck <dna@mono-project.de>
776 * ListViewItem.cs: fixed ListViewSubItem text property.
778 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
780 * Control.cs: Added missing 2.0 attributes
782 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
784 * MdiClient.cs: Added missing 2.0 attribute.
785 * MonthCalendar.cs: Added some missing 2.0 attributes
788 2006-12-15 Daniel Nauck <dna@mono-project.de>
790 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
792 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
794 * MainMenu.cs: Add the new 2.0 constructor to help out people
795 using the MainMenu in VS2005.
797 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
799 * MdiChildContext.cs: Removed it, no longer used.
800 * MdiClient.cs: Added missing 2.0 attributes.
802 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
804 * InternalWindowManager.cs: Fix a NullRef with previous
805 changes for toolwindows.
807 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
810 - Added AfterTopMostControl to allow for certain controls
811 to always stay on top when normal controls are brought to
815 - (DrawInversibleRectangle): Get window rectangle from Win32
816 in stead of from control, since Win32 doesn't calculate
817 screen coords correctly from control's Location if it
818 have docked siblings.
820 * MdiWindowManager.cs:
821 - Correct the control menu popup location when clicked on
822 the maximized form icon. (fixes #80223.1)
823 - Don't show moving rectangle if mouse hasn't moved from
824 the original clicked point.
825 - Removed FormGotFocus handler (not used).
826 - Calculate the control buttons location from the main
827 window's size and not client size (fixes #79770).
828 - Form is now closed when the form icon is double-clicked
830 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
832 * InternalWindowManager.cs:
833 - Moved some MDI-only methods to MdiWindowManager.
834 - Removed unused properties and methods.
835 - Unified method naming for methods handling wm messages.
836 - Moved all message handling to seperate methods for
839 * ThemeWin32Classic.cs:
840 - DrawManagedWindowDecorations now draws the title bar
841 with a gradient brush.
842 - Add a CPDrawButtonInternal that allows us to specify
843 light, normal and dark colors for the buttons (control
844 buttons for MDI children were drawn with the same light
845 color as the background, therefore loosing the 3D effect).
848 - Add a CapturedControl property that is used to
849 determine the control to resize (defaults to parent).
850 Needed for MdiClient, since its SizeGrip's parent is
851 MdiClient, but the control to resize is the main form.
854 - Set SizeGrip's CapturedControl to the main form in order
855 to resize the main form and not the MdiClient.
856 - Override AfterTopMostControl to leave the scrollbars
859 2006-12-15 Daniel Nauck <dna@mono-project.de>
861 * ListView.cs: fixed ListViewItemCollection AddRange and
862 implemented ListViewItemCollection AddRange 2.0 support.
864 2006-12-15 Daniel Nauck <dna@mono-project.de>
866 * ListViewGroup.cs: Add.
867 * ListViewGroupCollection.cs: Add
868 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
869 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
870 stub for ImageKey 2.0 support.
872 2006-12-14 Mike Kestner <mkestner@novell.com>
874 * ListView.cs: add text padding to the autocalculation for columns
875 of width -2. Fixes #80207.
877 2006-12-14 Mike Kestner <mkestner@novell.com>
879 * ListView.cs: add some index guarding for partial row navigation
882 2006-12-14 Mike Kestner <mkestner@novell.com>
884 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
885 are added or inserted to the collection. Fixes #81099.
887 2006-12-13 Everaldo Canuto <everaldo@simios.org>
889 * MenuAPI.cs: Closes menu when right click out side of popup
890 it fix problem in ContextMenu and MainMenu. Fixes #80252.
892 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
894 * ListViewItem.cs: Fix dumb error.
896 * ListView.cs: Add Find and ContainsKey methods in
897 ListViewItemCollection, and also return true for IsReadOnly
898 and IsFixedSize (changes for 2.0).
900 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
902 * Control.cs: Allow Region to be set to null.
904 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
906 * MdiWindowManager.cs: Remove unused (commented out) code.
907 * Form.cs: When the MdiChild is maximized, the form needs
908 WM_NCMOUSELEAVE, so request it.
909 * InternalWindowManager.cs:
910 - Added tooltips to control buttons.
911 - Removed duplicated control button handling code.
912 - Removed unused (commented out) code.
914 2006-12-12 Everaldo Canuto <everaldo@simios.org>
916 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
917 was used because we must set cursor without trigger ChangeCursor event
918 and without change Cursor control property. Fixes #79963.
920 2006-12-12 Andreia Gaita <avidigal@novell.com>
922 * Control.cs: Check if Region setter value is null, and ignore
924 2006-12-12 Jackson Harper <jackson@ximian.com>
926 * TextControl.cs: We were almost always drawing one more line then
927 needed, since the GetLineByPixel will return the last line found
928 at that pixel. In most cases though, we were invalidating up to
929 the junction between two lines.
930 - Improve debug code.
932 2006-12-12 Chris Toshok <toshok@ximian.com>
934 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
935 and FillReversibleRectangle.
937 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
938 and FillReversibleRectangle.
940 * XplatUIWin32.cs: add stubs which do nothing for
941 DrawReversibleFrame, DrawReversibleLine, and
942 FillReversibleRectangle.
944 * XplatUIOSX.cs: add stubs which raise NIE for
945 DrawReversibleFrame, DrawReversibleLine, and
946 FillReversibleRectangle.
948 * XplatUIX11.cs: add working implementation for
949 DrawReversibleFrame, DrawReversibleLine, and
950 FillReversibleRectangle.
952 * ControlPaint.cs: implement DrawReversibleFrame,
953 DrawReversibleLine, and FillReversibleRectangle, by calling into
954 the appropriate XplatUI method.
956 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
958 * Form.cs: Make MdiClient have the focus even if it's
959 not selectable, since it should receive WM_KEY* and WM_MOUSE
960 messages. Fixes #79907.
962 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
964 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
965 queried after the window is created.
967 * XplatUIX11.cs: Added SendParentNotify to implement
968 WM_PARENTNOTIFY logic. Fixes #79965.
970 * Control.cs: Added MakeParam.
972 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
974 * MdiClient.cs: Resume Layout before setting window
975 states (fixes #80201).
977 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
979 * MenuAPI.cs: Deselect a menu item after performing
980 the click (fixes #80197).
982 2006-12-11 Jackson Harper <jackson@ximian.com>
984 * TextBoxBase.cs: We need to cap this value, since Maximum -
985 ViewPortHeight can be less than zero.
986 - Only do selection with the left mouse button.
987 * TextBox.cs: Don't tell the world that we have a context menu.
988 * Control.cs: New method so that we can control whether or not the
989 context menu is visible outside MWF.
991 2006-12-11 Everaldo Canuto <everaldo@simios.org>
993 * ToolBarButton.cs: Fix text positon.
995 2006-12-11 Miguel de Icaza <miguel@novell.com>
997 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
999 * Control.cs (DoubleBuffered): Add implementation.
1001 * Application.cs (OpenForms): Add.
1003 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
1005 * Form.cs: Use opacity instead of Opactiy to determine if we need
1006 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
1008 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
1010 * Control.cs: Fix NRE if Control.Site was set to null.
1012 2006-12-11 Chris Toshok <toshok@ximian.com>
1014 * Control.cs: ControlCollection.Remove should return if the arg is
1015 null, and ControlCollection.SetChildIndex should raise a ANE.
1017 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
1019 * Control.cs: Verify value set for Dock property. Code formatting
1022 2006-12-11 Jackson Harper <jackson@ximian.com>
1024 * TextControl.cs: Draw the caret and the selection when a flag is
1026 * TextBoxBase.cs: We want to draw the caret and the selection for
1027 TextBox but not for TextBoxBase.
1028 - If the window is resized and scrolling is no longer needed (the
1029 whole doc is visible) set the scroll position to zero.
1030 - The default SelectWord (the one TextBox uses) should move the
1031 caret to the end of the word.
1032 - SelectAll moves the caret to the end of the selection.
1033 * TextBox.cs: We don't selectall on focus, we just do it when the
1036 2006-12-11 Mike Kestner <mkestner@novell.com>
1038 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
1040 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1042 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
1044 * ListViewItem.cs: Add Name 2.0 property.
1046 2006-12-11 Andreia Gaita <avidigal@novell.com>
1048 * TabControl.cs: Set visibility on selected or default tab
1049 when tabcontrol handle is created, so that it's contents
1050 actually show up (duh). Fixes #80193
1051 Don't redraw the control if there is no handle created, as
1052 the selected index might be completely invalid. Added some tests
1055 2006-12-11 Everaldo Canuto <everaldo@simios.org>
1057 * ToolBar.cs: Uses maximun width and height of all buttons as
1058 button rectangle when ButtonSize specified, it looks strange but
1059 is what happens in Win32. Fixes #80189.
1061 2006-12-11 Jackson Harper <jackson@ximian.com>
1063 * TextControl.cs: Need to track undo levels ourself, since
1064 compound actions will mess them up.
1066 2006-12-10 Andreia Gaita <avidigal@novell.com>
1068 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
1069 SelectedIndex value is changed (even if it's not valid).
1070 Reset SelectedIndex to 0 when the handle is created and if
1071 the current index is invalid.
1072 Fixes SelectdeIndex unit tests and #80128
1074 2006-12-08 Chris Toshok <toshok@ximian.com>
1076 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
1077 calls EndEdit, it needs to be called before we set current_cell to
1078 its new value. Otherwise, we end up committing the value in the
1079 textbox to the new cell as well. Fixes bug #80160.
1081 2006-12-08 Chris Toshok <toshok@ximian.com>
1083 * Form.cs (set_CancelButton): if the button's DialogResult is
1084 None, set it to Cancel. Fixes bug 80180.
1086 2006-12-08 Jackson Harper <jackson@ximian.com>
1088 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
1089 to watch ourselves when setting the canvas size and setting the
1092 2006-12-08 Chris Toshok <toshok@ximian.com>
1094 * DataGrid.cs: comment out the two MakeTransparent calls for the
1095 time being so people using trunk (and not 1.2.2) on windows can
1096 actually use the datagrid. This deals with bug #80151.
1098 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
1100 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
1101 Graphics.DrawImage (image, int, int, int, int) overload instead
1102 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
1103 the dpi difference and was blurring images it drew.
1106 2006-12-08 Chris Toshok <toshok@ximian.com>
1108 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
1109 rowcnt is 0 (such as with an empty datasource), and make sure we
1110 initialize not_usedarea.Y to cells.Y, so we don't draw over the
1111 other areas (caption, parent row, etc, etc). Fixes bug #80095.
1113 2006-12-08 Chris Toshok <toshok@ximian.com>
1115 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
1118 2006-12-08 Chris Toshok <toshok@ximian.com>
1120 [ Fixes bug #80167 ]
1122 * ThemeWin32Classic.cs: don't draw the image if the button's flat
1123 style is FlatStyle.System.
1125 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
1126 ButtonBase.flat_style private, and switch uses of it to the public
1129 2006-12-08 Chris Toshok <toshok@ximian.com>
1131 [ Fixes bug #80121 ]
1133 * ThemeWin32Classic.cs: center the caption text in the datagrid
1136 * DataGrid.cs: lessen the amount we add to the caption height from
1137 6 to 2. 6 was making it huge.
1139 2006-12-08 Andreia Gaita <avidigal@novell.com>
1141 * UpDownBase: Handle MouseWheel call directly instead of capturing
1142 the inner textbox's OnMouseWheel. Fixes #80166
1144 2006-12-08 Jackson Harper <jackson@ximian.com>
1146 * TextControl.cs: We need to invalidate the textbox when we empty
1147 it (how had this not been discovered before?)
1149 2006-12-08 Jackson Harper <jackson@ximian.com>
1151 * TextBoxBase.cs: Reworked the mouse down code so I could get it
1152 to behave like MS, we now ignore the eventargs.Click and just
1153 track state ourself, which we were already doing anyways.
1154 - Constrain the double click handler to the double click size.
1156 2006-12-08 Chris Toshok <toshok@ximian.com>
1158 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
1159 direction if that scrollbar isn't shown. fixes bug #80158.
1161 2006-12-08 Andreia Gaita <avidigal@novell.com>
1163 * NumericUpDown.cs: Update value on getter. Fixes #79950
1165 2006-12-08 Chris Toshok <toshok@ximian.com>
1167 * MenuItem.cs: add back in the event cloning code. I didn't know
1168 how to do it in the face of the EventHandlerList work i'd done
1169 last week. Fixes bug #80183.
1171 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
1173 * Control.cs: Add an invalidate to the BackgroundImage setter.
1176 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
1178 * ToolStrip*: Add some small properties reported by MoMA, fix event
1179 firing and default properties based off of unit tests, and add some
1180 attributes based off of the class status page.
1182 2006-12-07 Jackson Harper <jackson@ximian.com>
1184 * TextBoxBase.cs: Take HideSelection into account when determining
1185 whether or not to show the selection.
1186 * RichTextBox.cs: After inserting the RTF into the document move
1187 the cursor to the beginning of the document.
1189 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
1191 * Control.cs: Remove static ArrayList "controls" which maintained
1192 a reference to every control created.
1193 * Application.cs: Create a static FormCollection to maintain a reference
1194 to every form created. Use it in places that formerly enumerated through
1195 the controls one looking for forms.
1196 * Form.cs: Add and remove self from above FormCollection.
1198 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
1200 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
1201 not libgdk (though it makes me wonder why I didn't have any
1204 2006-12-07 Chris Toshok <toshok@ximian.com>
1206 [ you had to know this was coming after that last commit...]
1208 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
1209 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
1210 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
1213 2006-12-07 Chris Toshok <toshok@ximian.com>
1215 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
1216 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
1217 all the behavior we need for double buffering.
1219 * XplatUIDriver.cs: implement the 3 double buffer methods using a
1220 client side Bitmap, just like the old Control-based double buffer
1221 code did. The methods are virtual, so each XplatUI driver
1222 subclass can replace the implementation to use a faster, platform
1225 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
1226 double buffer code, and clean things up a bit in the process.
1228 2006-12-06 Chris Toshok <toshok@ximian.com>
1230 * Control.cs: reindent WndProc.
1232 2006-12-06 Chris Toshok <toshok@ximian.com>
1234 [ I wanna be like BenM when I grow up ]
1236 * Hwnd.cs: create a single static Graphics object on the static
1237 Bitmap we create. use this for our text measurements.
1239 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
1240 This was causing us to allocate a backbuffer for every control,
1241 even when it wasn't flagged as double buffered. Instead use the
1242 single graphics instance. This might have implications for
1243 multithreaded applications. If we run into problems we can switch
1244 to creating 1 Graphics per control, on the static Hwnd bitmap.
1246 this change nets us a 7M savings in private dirty mappings when
1247 running FormsTest.exe.
1249 2006-12-06 Chris Toshok <toshok@ximian.com>
1251 * ListView.cs: the BackgroundImage override is just to set
1252 attributes. chain up to base.BackgroundImage.
1254 * RichTextBox.cs: same.
1256 * ToolBar.cs: same, but we need to also redraw the toolbar when it
1257 changes, so instead a handler for BackgroundImageChanged.
1259 * Control.cs: make background_image private.
1261 2006-12-06 Chris Toshok <toshok@ximian.com>
1263 * ScrollBar.cs: change the assignment of cursor to Cursor. not
1264 sure we even need this assignment, but roll with it for now.
1266 * Control.cs: make the cursor field private.
1268 2006-12-06 Chris Toshok <toshok@ximian.com>
1270 * Form.cs: we don't need to explicitly set ImeMode to
1271 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
1272 behavior in the face of ImeMode.Inherit.
1274 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
1275 change the ctor's assignment to use ImeMode instead of ime_mode.
1277 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
1278 ImeModeInherit. Only check for the parent's imemode (and return
1279 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
1280 This fixes the button unit test, which sets both ImeMode and
1281 DefaultImeMode to ImeMode.Disable.
1283 also make the ime_mode field private.
1285 2006-12-06 Chris Toshok <toshok@ximian.com>
1287 * Control.cs: make control_style private.
1289 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
1290 setting the styles to true, then setting them to false instead of
1291 reverting to their previous values.
1293 also, call SetStyle on the scrollbars instead of using
1294 control_style directly.
1296 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
1298 * FormCollection.cs: Implement. [2.0]
1300 2006-12-06 Chris Toshok <toshok@ximian.com>
1302 * Control.cs: make tab_stop private.
1304 * Label.cs: set TabStop, not tab_stop. reformat some event
1305 add/remove methods to make them more compact.
1307 2006-12-06 Chris Toshok <toshok@ximian.com>
1309 * RadioButton.cs: fix TabStop handling.
1311 2006-12-06 Chris Toshok <toshok@ximian.com>
1313 * TextBox.cs: remove the explicit assignments to has_focus.
1316 * ButtonBase.cs: remove the assignment to has_focus. Control will
1319 2006-12-06 Chris Toshok <toshok@ximian.com>
1321 * ButtonBase.cs: remove all uses of is_enabled from this code.
1322 it's always true when any of the code containing the checks is
1325 2006-12-06 Chris Toshok <toshok@ximian.com>
1327 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
1328 with different semantics (some are present in both 1.1 and 2.0
1329 profiles) so that we match MS's behavior in our unit tests.
1331 2006-12-06 Jackson Harper <jackson@ximian.com>
1333 * TextControl.cs: Make this operation undoable.
1334 * TextBoxBase.cs: Factor the border width into the preferred
1336 - implement Modified as per the spec.
1338 2006-12-06 Chris Toshok <toshok@ximian.com>
1340 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
1342 2006-12-06 Chris Toshok <toshok@ximian.com>
1344 * Control.cs: make right_to_left and context_menu fields private.
1346 2006-12-06 Chris Toshok <toshok@ximian.com>
1348 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
1349 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
1350 Control.child_controls private. switch all uses over to
1353 2006-12-06 Chris Toshok <toshok@ximian.com>
1355 * System.Windows.Forms/GroupBox.cs,
1356 System.Windows.Forms/AccessibleObject.cs,
1357 System.Windows.Forms/ErrorProvider.cs,
1358 System.Windows.Forms/Control.cs,
1359 System.Windows.Forms/UpDownBase.cs,
1360 System.Windows.Forms/ScrollBar.cs,
1361 System.Windows.Forms/DateTimePicker.cs,
1362 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
1363 System.Windows.Forms/ToolTip.cs,
1364 System.Windows.Forms/RadioButton.cs,
1365 System.Windows.Forms/LinkLabel.cs,
1366 System.Windows.Forms/Splitter.cs,
1367 System.Windows.Forms/TextBoxBase.cs,
1368 System.Windows.Forms/ToolStripTextBox.cs,
1369 System.Windows.Forms/ContainerControl.cs,
1370 System.Windows.Forms/ThemeWin32Classic.cs,
1371 System.Windows.Forms/SizeGrip.cs,
1372 System.Windows.Forms/ToolStripDropDown.cs,
1373 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
1374 private. switch all uses over to Control.Parent.
1376 2006-12-06 Chris Toshok <toshok@ximian.com>
1378 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
1379 Control does this before calling emitting these events.
1381 * TabControl.cs: same.
1383 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
1384 Control.client_rect.
1386 * ButtonBase.cs: use the ClientSize property instead of the
1389 * ScrollableControl.cs: same.
1391 * Control.cs: another pass at making properties private. also,
1392 move the initialization of tab_stop to the ctor.
1394 2006-12-05 Andreia Gaita <avidigal@novell.com>
1396 * TabControl.cs: Let the selected index be set freely if the
1397 control handle is not yet created.
1399 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1401 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
1402 internal until I can rewrite DefaultLayout.
1403 * ToolStrip.cs: Fix build error and some general cleaning.
1404 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
1405 Fix build errors caused by making some of Control's fields private.
1407 2006-12-05 Jackson Harper <jackson@ximian.com>
1409 * TextControl.cs: Redo Insert a little so that it use IndexOf
1410 instead of Split, this prevents it from messing up on things like
1411 \n\n\n. Also more effecient since the split array doesn't need to
1413 * TextBoxBase.cs: AppendText doesnt handle multiline and non
1414 multiline text differently, this is the first of many fixes that
1415 will make multiline/non-multiline the same thing as far as the
1416 TextBoxBase is concerned.
1417 - Don't split the text and insert lines, this can lose some line
1418 endings (like is the last line a soft or hard break). Instead use
1420 - Fix an off by one when combining all the lines in the Text
1422 - Remove separate multiline handling from the Text getter/setter.
1424 2006-12-05 Chris Toshok <toshok@ximian.com>
1426 * ButtonBase.cs: a few changes:
1428 - don't reinitialize internal Control fields in the ctor when they
1429 have the same values as Control sets them.
1431 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
1432 this before calling those methods.
1434 - we don't need to call Refresh for anything. use Invalidate
1437 - OnEnabledChanged doesn't need to redraw at all - Control.cs
1438 calls Refresh in its OnEnabledChanged.
1440 - several of the events we were registered for in the ctor to
1441 redraw ourselves already include calls to Invalidate in the
1442 property setters that raise the events. remove the extra
1445 - reformat a switch statement that was 83274658 columns wide.
1447 2006-12-05 Mike Kestner <mkestner@novell.com>
1449 * ComboBox.cs: fix a unit test regression from a TextBox
1450 SelectionLength return of -1 when there's no selection.
1452 2006-12-05 Chris Toshok <toshok@ximian.com>
1454 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
1455 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
1456 cleaning up some of the internal Control fields being used by
1459 2006-12-05 Mike Kestner <mkestner@novell.com>
1461 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
1462 listbox after AddImplicit calls since it defaults to hidden. Add a
1463 hack to preserve requested heights across DropDownStyle changes.
1465 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1467 * PropertyGrid.cs: Hide FindFirstItem method from public API.
1469 2006-12-05 Chris Toshok <toshok@ximian.com>
1471 * DataGridView.cs: fix compiler warnings.
1473 * PrintControllerWithStatusDialog.cs: same.
1477 * FolderBrowserDialog.cs: same.
1479 * Splitter.cs: same.
1481 * DataGridViewComboBoxCell.cs: same.
1483 * XplatUIWin32.cs: same.
1485 * PictureBox.cs: same.
1487 * Win32DnD.cs: same.
1489 * PageSetupDialog.cs: same.
1491 * FileDialog.cs: same.
1493 * PrintDialog.cs: same.
1495 * DataGridTextBoxColumn.cs: same.
1497 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
1499 2006-12-05 Chris Toshok <toshok@ximian.com>
1501 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
1502 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
1503 System.ComponentModel.EventHandlerList work.
1505 2006-12-05 Jonathan Chambers <joncham@gmail.com>
1507 * DrawTreeNodeEventArgs.cs: Added.
1509 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1511 * InternalWindowManager.cs: Remove an unused field.
1513 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1515 * InternalWindowManager.cs:
1516 - Save the point where the title bar is clicked.
1518 * MdiWindowManager.cs:
1519 - Only allow moving of the window as long as the
1520 clicked point on the title bar does not get out of
1521 MdiClient's rectangle. Fixes #79982.
1524 - Added Horizontal/VerticalScrollbarVisible.
1525 - Simplified the scrollbar sizing algorithm.
1526 - Cache the difference in scrolled value in
1527 H/VBarValueChanged and move the calculation out
1530 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1532 * Control.cs: Make the Console.WriteLine in WndProc
1535 2006-12-05 Chris Toshok <toshok@ximian.com>
1537 * ToolStripManager.cs, ToolStripButton.cs,
1538 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
1539 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
1540 ToolStripSplitButton.cs, ToolStripSeparator.cs,
1541 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
1542 ToolStripProgressBar.cs, ToolStripContainer.cs,
1543 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
1544 to using System.ComponentModel.EventHandlerList.
1546 2006-12-04 Chris Toshok <toshok@ximian.com>
1548 * LinkLabel.cs: fix up compiler warnings.
1550 * TableLayoutSettings.cs: same.
1552 * TreeView.cs: same.
1556 * TabControl.cs: same.
1558 * RichTextBox.cs: same.
1560 * ListViewItem.cs: same.
1562 * PropertyGrid.cs: same.
1564 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
1568 * TextRenderer.cs: fix up compiler warnings.
1572 * Form.cs: corcompare fixes.
1574 * PictureBox.cs: fix up compiler warnings.
1576 * ImageListStreamer.cs: same.
1578 * TrackBar.cs: corcompare fix.
1580 * Control.cs: fix up compiler warnings.
1582 * SplitterPanel.cs: same.
1584 * NumericTextBox.cs: same.
1586 * ImageList.cs: same.
1588 * StatusStrip.cs: same.
1590 * ProgressBar.cs: corcompare fix.
1592 * ToolStripButton.cs: fix up compiler warnings.
1594 * ToolStripStatusLabel.cs: same.
1596 * ToolStripSplitButton.cs: same.
1598 * ToolStripSeparator.cs: same.
1600 * ToolStripProgressBar.cs: same.
1602 * ToolStripDropDownMenu.cs: same
1604 * ToolStripDropDown.cs: same.
1606 * ToolStripDropDownButton.cs: same.
1608 * ToolStrip.cs: same.
1610 * ToolStripControlHost.cs: same.
1612 * ToolStripContentPanel.cs: same.
1614 * ToolStripDropDown.cs: same.
1616 * ToolStripContainer.cs: same.
1618 * ToolStripPanel.cs: same, and add "new" where we need it to work
1619 with the new ArrangedElementCollection.
1621 * ToolStripItemCollection.cs: add "new" where we need it to work
1622 with the new ArrangedElementCollection.
1624 2006-12-04 Andreia Gaita <avidigal@novell.com>
1626 * TabControl.cs: Fix default tab selection to after TabControl
1627 gets focus and not before. Fixes #80128
1629 2006-12-04 Chris Toshok <toshok@ximian.com>
1631 * DataGridTableStyle.cs: remove the gross calling of
1632 datagrid.Refresh from here. It's a broken idea and it doesn't
1635 * DataGrid.cs: instead, just register/unregister from the
1636 DataGridTableStyle events in CurrentTableStyle. we play it
1637 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
1638 even though some would most likely not require it. Fixes bug
1639 #80115 (and one portion of #80117 as a side effect).
1641 2006-12-04 Chris Toshok <toshok@ximian.com>
1643 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
1644 so the textbox (if any) goes away. Fixes bug #80117.
1646 2006-12-04 Chris Toshok <toshok@ximian.com>
1648 * DataGridColumnStyle.cs: set the column's readonly property
1649 initially based on the property descriptor's IsReadOnly. Fixes
1652 2006-12-04 Chris Toshok <toshok@ximian.com>
1654 * ComboBox.cs: wrap the dropdown style changing work in
1655 SuspendLayout/ResumeLayout. Fixes bug #79968.
1657 2006-12-04 Jackson Harper <jackson@ximian.com>
1659 * TextBoxBase.cs: Fix off by one, since these are one-based.
1660 * TextBox.cs: Select all the text when we get focus. The TextBox
1661 does this but the RTB does not.
1663 2006-12-04 Chris Toshok <toshok@ximian.com>
1665 * DataGridTextBoxColumn.cs: remove some spew.
1667 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
1668 but some part of me is saying "it shouldn't be here.." At any
1669 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
1672 2006-12-04 Chris Toshok <toshok@ximian.com>
1674 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
1675 to reassign the propertydescriptor.
1677 2006-12-04 Jackson Harper <jackson@ximian.com>
1680 * TextControl.cs: Remove some unused variables. Maybe this will
1681 patch things up between mike and I.
1682 - don't split lines less then one char wide, if the viewport is
1683 that small text won't be visible anyways.
1685 2006-12-04 Jackson Harper <jackson@ximian.com>
1687 * TextBoxBase.cs: Default selection length is -1, need to do some
1688 more testing on windows to see when this is used for the property.
1689 - Redid the Lines [] property to that we properly remove soft line
1691 - added support for preserving carriage returns
1692 - CanUndo is not a variable like 'is undo enabled' it just returns
1693 true if there is undo operations available.
1694 - AppendText doesn't need to grab the last tag itself anymore,
1695 this happens automatically when we move the cursor.
1696 * TextControl.cs: Add CompoundActions to the undo class. This
1697 allows combining the other operations into one big option. ie a
1698 paste will combine { delete old, insert new, move cursor }
1699 - Add InsertString undo operation
1700 - New method for deleting multiline text
1701 - Add carriage returns to lines. So we can preserve carriage
1702 returns when text is 'roundtripped'
1704 2006-12-04 Chris Toshok <toshok@ximian.com>
1706 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
1707 minimum 0. Fixes the scrollbar exception in bug #80136.
1709 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1712 * MdiWindowManager: Removed unused fields and methods.
1714 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1716 * StatusBar.cs: Update all panels when a AutoSize=Contents
1717 panel needs updating.
1719 * StatusBarPanel.cs: Remove twidth and only use initialize.
1722 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1724 * Form.cs: When a form's MdiParent is set add it directly
1725 on top of the z-order in stead of relying on MdiClient's
1726 ActivateChild to do it. Fixes #80135.
1729 - Remove original_order, mdi_child_list is already doing
1731 - Create mdi_child_list on construction in
1732 stead of first use (avoids a few null checks).
1734 * MenuItem.cs: Use an already existing list of mdi children
1735 to get the correct order of children and remove the other
1738 2006-12-04 Chris Toshok <toshok@ximian.com>
1740 * PropertyGridView.cs: cached_splitter_location is only used in
1743 * PropertyGrid.cs: implement the ComComponentNameChanged event
1744 using Events, hoping that would fix the warning. Looks like a
1745 compiler bug instead (#80144).
1747 * PropertyManager.cs: remove unused method.
1749 2006-11-04 Everaldo Canuto <everaldo@simios.org>
1751 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
1752 include parentesis to fix expression evaluation. Fixes #79634.
1754 2006-11-02 Everaldo Canuto <everaldo@simios.org>
1757 - Changes to fix behavior in Menu control, some reported in #80097
1758 and other detected during behavior refactory like a select event
1760 - Remove unneded "if's" conditions.
1761 - Created an internal to flag when popup is active in control, we need
1762 it because in .NET you can have menu active but without popup active
1763 when you active menu using popup without visible items.
1764 - Mimic win32 behavior for Select and Popup events.
1765 - Dont open popup menu when you dont have visible subitems.
1766 - Do nothing when click on disabled menu item.
1767 - Some small changes to follow the coding style guidelines.
1768 - Unselect menu only when another control gives focus. Fixes #80097.
1769 - Remove unused code.
1771 * MenuItem.cs: internal VisibleItems method to check if menu
1772 theres visible subitems, it will be usefull to fix some
1773 behavior in Menu control.
1775 2006-11-01 Everaldo Canuto <everaldo@simios.org>
1777 * Timer.cs: Tag property for 2.0 profile.
1779 2006-12-01 Chris Toshok <toshok@ximian.com>
1781 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
1783 * Win32DnD.cs: comment out some unused fields.
1785 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
1786 some unused properties/methods.
1788 * XplatUIX11.cs: fix MousePosition so we override the base class's
1789 property instead of conflicting with it.
1791 * PictureBox.cs: comment out some unused fields
1793 * OSXStructs.cs: make some struct fields public.
1795 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
1796 MousePosition so we override the base class's property instead of
1797 conflicting with it.
1799 * X11Dnd.cs: comment out some unused fields
1801 * X11DesktopColors.cs: fix some struct field visibility to quiet
1804 * X11Dnd.cs: remove some debug code.
1806 * ThemeClearlooks.cs: comment out unused field.
1808 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
1810 * ThemeGtk.cs: comment out some unused pinvokes.
1812 * Timer.cs: remove some unused fields.
1814 * ThemeClearlooks.cs: comment out unused field.
1816 * UpDownBase.cs: comment out unused field.
1818 * DataObject.cs: comment out unused field.
1820 * DataGridBoolColumn.cs: reomve unused field.
1822 * DataGrid.cs: remove unused field.
1824 * Cursor.cs: remove old ToBitmap code.
1826 * ControlPaint.cs: remove unused method.
1828 * ScrollBar.cs: remove unused fields.
1830 * ComboBox.cs: remove unused field, and chain up to
1831 AccessibleObject ctor.
1833 * ListBox.cs: remove unused field.
1835 * ButtonBase.cs: wrap a couple fields in NET_2_0.
1837 * GridEntry.cs: remove unused fields.
1839 * Binding.cs: remove unused fields.
1841 * AxHost.cs: remove unused method.
1843 * ContainerControl.cs: remove unused field.
1845 * ScrollableControl.cs: remove unused fields.
1847 2006-12-01 Chris Toshok <toshok@ximian.com>
1849 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
1850 the Where/WhereString stuff. it's easy enough to CWL
1851 Environment.StackTrace.
1853 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
1854 unused private fields.
1856 2006-12-01 Jackson Harper <jackson@ximian.com>
1858 * TextControl.cs: Do not update the view while inserting multiline
1859 text. If we update the view we might wrap lines, before entering
1860 the new lines, which causes the new line insertion calculations to
1862 - Remove an old TODO
1863 - Make debug output a little nicer
1865 2006-12-01 Chris Toshok <toshok@ximian.com>
1867 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
1869 2006-12-01 Chris Toshok <toshok@ximian.com>
1871 [ fix the majority of the CS0108 warnings we've been suppressing ]
1873 * TreeView.cs: mark BackgroundImageChanged as 'new'.
1875 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
1876 to "LayoutToolBar" to quiet mcs.
1878 * TabControl.cs: mark our ControlCollection class as 'new'.
1880 * TextBoxBase.cs: mark some events as 'new'.
1882 * Splitter.cs: TabStop is 'new'.
1884 * ControlBindingsCollection.cs: mark a few methods as new since
1885 they change the visibility from protected to public.
1887 * RadioButton.cs: DoubleClick -> base class, and remove unused
1890 * MonthCalendar.cs: ImeMode property -> base class, and mark many
1893 * NumericUpDown.cs: TextChanged -> base class.
1895 * CheckedListBox.cs: mark our ObjectCollection class as new to
1898 * FolderBrowserDialog.cs: make HelpRequest event new and have it
1899 muck with the base class.
1901 * StatusBar.cs: fix some mcs warnings about Update being the same
1902 name as a base class method.
1904 * RichTextBox.cs: mark some events as new, and make them do things
1905 to the base class impl.
1907 * UserControl.cs: mark TextChanged as new, and have it manipulate
1910 * UpDownBase.cs: mark some things new.
1912 * CheckBox.cs: mark DoubleClick "new", and add some text about
1913 what we need to look at.
1915 * Panel.cs: make the events "new", and manipulate the base
1916 version. these are just here for attributes.
1918 * AccessibleObject.cs: make owner private.
1920 * Control.cs: deal with AccessibleObject.owner being private.
1921 cache our own copy if we need it.
1923 * Button.cs: add "new" to the DoubleClickEvent.
1925 * ListBox.cs: no need to track our own has_focus here. let
1926 Control.has_focus do it for us. Also some other work to clear up
1927 warnings about not overriding base class methods of the same name.
1929 * ComboBox.cs: clear up some warnings about not override base
1930 class methods of the same name.
1932 2006-12-01 Chris Toshok <toshok@ximian.com>
1934 * Form.cs: flag a few things as "new" to quiet some of the mcs
1939 * PrintPreviewDialog.cs: same.
1941 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
1942 now DGV isn't so horrible on the class status page. also, move
1943 all events to using System.ComponentModel.EventHandlerList. my
1946 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
1948 * MdiWindowManager.cs:
1949 - Set form to active mdi child if shown,
1950 and update the active mdi child to the next
1951 remaining child in the z-order if the form is hidden.
1954 - Track if the form has been visible and if its
1955 visibility is beeing changed, so that the MdiClient
1956 can properly decide the ActiveMdiChild. The MdiClient
1957 cannot track this since the form can change visibility
1958 before MdiClient is created.
1961 - Don't activate anything of the parent form is changing
1963 - Rework ActiveMdiChild to only return visible mdi
1964 children and take into account several other corner
1967 2006-12-01 Chris Toshok <toshok@ximian.com>
1969 * IBindableComponent.cs: new 2.0 interface.
1971 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
1973 * DataGrid.cs: Font for caption area is bold by default.
1975 2006-12-01 Everaldo Canuto <everaldo@simios.org>
1977 * Menu.cs: Tag property for 2.0.
1979 2006-11-01 Everaldo Canuto <everaldo@simios.org>
1981 * ThemeWin32Classic.cs: Adjust menu separator drawing.
1983 2006-12-01 Chris Toshok <toshok@ximian.com>
1985 * TreeView.cs: doh, the Begin* events should be
1986 TreeViewCancelEventHandler.
1988 2006-12-01 Chris Toshok <toshok@ximian.com>
1990 * Form.cs: Form.ControlCollection already stores off the
1991 form_owner field. don't access the base class's internal "owner"
1994 * Control.cs: make all the fields in Control.ControlCollection
1995 private. there's no need for any internal fields here.
1997 2006-12-01 Chris Toshok <toshok@ximian.com>
1999 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
2000 OnHandleCreated. Fixes bug #80109.
2002 2006-12-01 Chris Toshok <toshok@ximian.com>
2004 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
2005 SplitContainer.cs, Control.cs, StatusStrip.cs,
2006 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
2007 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
2008 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
2009 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
2010 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
2011 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
2012 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
2013 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
2014 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
2015 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
2017 do most of the work to convert our code over to use
2018 System.ComponentModel.Component.Events for
2019 adding/removing/dispatching events.
2022 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
2024 * DataGridView.cs: Fix an ArgumentNullException reported
2027 2006-11-30 Mike Kestner <mkestner@novell.com>
2029 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
2030 grabbed listbox. Fixes #80036 and #80101.
2032 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2034 * Message.cs: Changed ToString() to match MS.
2036 2006-11-30 Jackson Harper <jackson@ximian.com>
2038 * TextBoxBase.cs: You can still change the selected text on a read
2040 * TextControl.cs: Lower magic number for wrap calculations. This
2041 lets text get closer to the right (far) edge.
2043 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
2045 * Control.cs: Tweak 2.0 layout properties.
2046 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
2047 * TextRenderer.cs: Add a new overload.
2048 * ToolStrip*: Huge amount of changes and new features.
2050 2006-11-30 Mike Kestner <mkestner@novell.com>
2052 * ComboBox.cs: fixes for LargeChange and Maximum to get the
2053 scroll range correct. Fixes #79994.
2055 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2057 * MdiWindowManager.cs: Update main form's text when
2058 a form is closed. (fixes #80038)
2060 2006-11-30 Everaldo Canuto <everaldo@simios.org>
2063 - Fix an regression in ButtonSize.
2064 - Get ImeMode default value change to "Disable".
2065 - Get ShowTooltips default value change to true, default value is
2066 "false" but after make a test in .NET we get "true" result as default.
2068 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
2070 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
2072 2006-11-29 Chris Toshok <toshok@ximian.com>
2074 * XplatUIWin32.cs (GetWindowTransparency): check return value of
2075 GetLayeredWindowAttributes. if it's 0, return 1.0, as
2076 SetWindowTransparency hasn't been called.
2078 2006-11-29 Chris Toshok <toshok@ximian.com>
2080 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
2082 (set_AllowTransparency): reorder things a little so that the
2083 WS_EX_LAYERED style is removed properly.
2085 2006-11-29 Chris Toshok <toshok@ximian.com>
2087 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
2089 * Form.cs: only call the XplatUI transparency method (get/set) if
2090 SupportsTransparency says it's supported. Otherwise fallback to
2091 doing nothing (in the set case) or returning the instance field we
2092 cache (in the get case).
2094 * XplatUIStructs.cs: add TransparencySupport flag enum.
2096 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
2097 change to SupportsTransparency.
2099 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
2100 TransparencySupport.None from SupportsTransparency.
2102 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
2103 TransparencySupport.Set from SupportsTransparency.
2105 * XplatUIWin32.cs: implement GetWindowTransparency calling
2106 GetLayeredWindowAttributes, and implement SupportsTransparency by
2107 checking whether or not both
2108 GetWindowTransparency/SetWindowTransparency are available
2109 entrypoints. We need to do this since SetWindowTransparency is
2110 available as of win2k, but GetWindowTransparency requires winxp.
2113 * XplatUI.cs: Add GetWindowTransparency, and change
2114 SupportsTransparency to allow for either/both Get/Set.
2116 2006-11-29 Chris Toshok <toshok@ximian.com>
2118 * DataGrid.cs: keep from going into an infinite loop redrawing a
2119 datagrid that has no datasource. Fixes bug #80033.
2121 2006-11-29 Chris Toshok <toshok@ximian.com>
2123 * MenuItem.cs: fix the NRE when we assign text (and therefore call
2124 Invalidate) before the mainmenu has been assigned to a control.
2126 2006-11-29 Chris Toshok <toshok@ximian.com>
2128 * DataGrid.cs: detect when we should be double the double click
2129 row/column autosize stuff, although that codepath has yet to be
2130 written. part of the work for bug #79891.
2132 2006-11-29 Chris Toshok <toshok@ximian.com>
2134 * Binding.cs (SetControl): fix unit test.
2136 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2138 * PageSetupDialog.cs: Validate the margins and set them in
2140 * NumericTextBox.cs: New class to mimic the behavior of the
2141 textboxes used in the printing dialogs.
2143 2006-11-29 Andreia Gaita <avidigal@novell.com>
2145 * Form.cs: Revert previous change (remove call UpdateBounds
2146 from form constructor), because it messes with the handle creation
2147 order, and that one needs lots and lots of love.
2148 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
2149 for valid printer and throw InvalidPrinterException if document
2150 is set but printer not valid), adding a MonoTODO. Once
2151 handle creation is done properly, we can put this back in.
2153 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2155 * MenuItem.cs: Create a invalidate method for menu item, to be
2156 calling from set text, it make text changes to imadiate update
2157 on screen. Fixes #80013.
2159 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2161 * ToolBar.cs: Fixes and simplify toolbar button layout, it
2162 fixes bug #80070 and some other problem on toolbar buttons
2165 2006-11-28 Everaldo Canuto <everaldo@simios.org>
2167 * ThemeWin32Classic.cs: Paint toolbar toggle button background
2168 with dotted brush. Fixes #79564
2170 2006-11-28 Andreia Gaita <avidigal@novell.com>
2172 * Form.cs: Removed call to UpdateBounds on Form
2173 constructor, it was causing a call to CreateHandle
2174 before it was supposed to.
2175 * PrintControllerWithStatusDialog: Applied patch
2176 by Chris Toshok to hide controller when there are
2177 no printers available.
2178 PrintDialog.cs: initialize printer settings to
2179 null - correct DefaultValues test #5
2180 * PrintPreviewControl.cs: Move PrintController
2181 initialization to GeneratePreview
2182 * PrintPreviewDialog.cs:
2183 - Remove Preview generation from Document_set(). It is
2185 - Throw InvalidPrinterException on CreateHandle if
2186 a Document is set but there are no printers or
2187 printer is not valid.
2188 * ThemeWin32Classic: don't paint PrintPreviewControl
2189 if there is nothing to paint
2191 2006-11-28 Miguel de Icaza <miguel@novell.com>
2193 * Form.cs: Add another popular method.
2195 * TabPage.cs: ditto.
2197 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2199 * MenuItem.cs: Fixed a warning.
2200 * InternalWindowManager: Fixed a warning.
2202 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2205 - When cloning a menu also clone MdiList and clone the
2206 window menu items properly (as the forms and menuitems
2207 are kept in an internal hashtable, these need updating
2209 - Rewrote the window menu code, menu items are added in the
2210 order the forms were added to their parent, and they are
2211 updated every time the window menu is shown (before the
2212 list was only generated once, in the current order of the
2213 forms, and would never be updated). A checkmark is shown
2214 next to the item corresponding to the active mdi child.
2216 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2218 * XplatUIStructs.cs:
2219 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
2222 - Added TME_NONCLIENT to TMEFlags.
2223 - Handles WM_NCMOUSEMOVE in GetMessage to
2224 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
2227 - Now merges mdi child menu to parent menu when maximized.
2228 - Recalculate NC areas of both mdi child and mdi parent.
2230 on window state and size changes.Fixes #79844 (3).
2231 - Handle WM_NCCALCSIZE to properly calculate borders.
2234 - Add/remove to the mdi containers list of mdi children
2235 in the order they are added.
2236 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
2237 to the maximized mdi child.
2239 * InternalWindowManager.cs:
2240 - Only execute a click on the control buttons on the mouse up,
2241 not on the mouse down. Show the state of the button
2242 (was only showing Normal state, never Pressed state). The
2243 pressed button now follows the mouse (if you click the Close
2244 button and move the mouse over the Maximize button, the
2245 Maximize button will be shown as pressed). Since Win32 does
2246 not generate WM_NCLBUTTONUP if you release the button outside
2247 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
2250 * ThemeWin32Classic.cs:
2251 - Draw a missing border around mdi child forms. Fixes #79844 (2).
2254 - Added a list of forms which contains the order the forms are
2255 added to the mdi parent.
2256 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
2257 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
2258 - If the active form changes set the scrollbars to the top
2259 of the Z order, otherwise the form could hide them.
2260 - Scrollbars are now sized according to ClientSize, not
2261 to Size, and they take into account the other scrollbar
2262 to determine maximum.
2264 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2271 - Added RequestAdditionalWM_NCMessages for windows to
2272 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
2273 Currently only implemented in XplatUIWin32.
2275 2006-11-27 Chris Toshok <toshok@ximian.com>
2277 * Hwnd.cs: only add the hwnd to the windows hash in
2278 set_WholeWindow and set_ClientWindow if whole_window/client_window
2279 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
2281 2006-11-27 Mike Kestner <mkestner@novell.com>
2283 * ComboBox.cs: remove redundant OnDropDown call. It is called
2284 from the ComboListBox.ShowWindow code. Fixes #79969.
2286 2006-11-27 Chris Toshok <toshok@ximian.com>
2288 * Hwnd.cs: remove the setters for ExposePending and
2289 NCExposePending - noone uses them.
2291 2006-11-27 Jackson Harper <jackson@ximian.com>
2293 * TextControl.cs: new param for ReplaceSelection which determines
2294 whether we select the new selection, or set the cursor to the end
2295 of the new selection.
2296 * TextBoxBase.cs: Use new param for ReplaceSelection. When
2297 pasting, select the new text.
2298 * RichTextBox.cs: Use new param for ReplaceSelection.
2300 2006-11-27 Jackson Harper <jackson@ximian.com>
2302 * TextBoxBase.cs: Set the selection to the caret after the caret
2303 is moved, otherwise they get out of sync.
2305 2006-11-26 Everaldo Canuto <everaldo@simios.org>
2307 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
2310 2006-11-26 Everaldo Canuto <everaldo@simios.org>
2312 * ThemeWin32Classic.cs:
2313 - Fix toolbar drop down arrow position.
2314 - Fix drop down appearance when ToolBar.Appearance is normal,
2317 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
2319 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
2321 * UpDownBase.cs: Same.
2322 * ButtonBase.cs: Same.
2323 * ScrollBar.cs: Same.
2324 * TrackBar.cs: Same.
2325 * PictureBox.cs: Same.
2326 * UserControl.cs: Same.
2328 * ListControl.cs: Same.
2329 * TextBoxBase.cs: Same.
2330 * ListView.cs: Same.
2331 * RichTextBox.cs: Same.
2332 * TreeView.cs: Same.
2334 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
2337 - Text label for where
2338 - Text label comment was not shown
2340 2006-11-23 Everaldo Canuto <everaldo@simios.org>
2342 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
2344 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2346 * InternalWindowManager.cs:
2347 - Handle WM_PARENTNOTIFY to activate the form
2348 if any child control is clicked.
2349 - The form is only sizable if not minimized.
2351 * MdiWindowManager.cs:
2352 - Save the IconicBounds if the form is moved.
2353 - Rework SetWindowState, now the window bounds
2354 are stored only if the old window state is Normal.
2357 - In SetWindowStates store the old window state if
2358 the window is maximized and restore window state if
2359 the window looses focus.
2360 - Don't handle any scrollbar value changes if
2361 initializing the scroll bars. Fixes #79771.
2362 - Reworked ArrangeIconicWindows. Current algorithm
2363 tests bounds agains all other minimized windows, if
2364 any intersections create new bounds (going left to
2365 right, bottom to top) and then test again. When
2366 successful the bounds are saved and never computed
2367 again. Fixes #79774.
2369 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2371 * InternalWindowManager.cs: Added HandleTitleBarUp.
2373 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2375 * NumericUpDown.cs: In .NET 1.1, user entered text is still
2376 hexadecimal in ParseUserEdit.
2379 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2381 * MdiWindowManager.cs:
2382 - Handle a click on the form's icon to show the
2383 system menu (when maximized). Fixes #79775.
2384 - Change the existing click handler for the form's
2385 icon when not maximized to show on MouseUp.
2388 * Form.cs: In OnResize only layout the mdi child's
2389 parent if it actually has a parent. Might not if
2390 the window is closing.
2393 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2395 * MdiClient.cs: Ignore active MDI client for text of parent, if
2396 child has no text set.
2398 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2400 * ToolBar.cs: Fixed ToString to match MS.
2402 2006-11-22 Andreia Gaita <avidigal@novell.com>
2405 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
2406 update inner values on set. Fixes #79966.
2407 - Override OnLostFocus to update value on NET 2. Fixes #79950.
2408 - Fix hexadecimal parsing.
2410 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
2411 parent. Fixes #79957
2413 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2415 * Control.cs: After calling SetWindowsPos in SetBoundsCore
2416 the actual size has to be queried, since if height /
2417 width is negative Win32 changes it to 0.
2418 Fixes #79999 on Windows.
2420 * XplatUIX11.cs: Set height / width to 0 if negative
2421 in SetWindowPos. Fixes #79999 on Linux.
2423 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2425 * ThemeWin32Classic.cs: Fix text redenring when button is
2428 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2430 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
2431 and later navigate by mouse. Fixes #79528.
2433 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2435 * ToolBar.cs: Set default value for TabStop to false in
2436 constructor, it fixes remaining behavior of bug #79863.
2438 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2440 * MdiWindowManager.cs:
2441 * InternalWindowManager.cs:
2442 - Moved a few methods specific to Mdi from
2443 InternalWindowManager to MdiWindowManager.
2446 2006-11-21 Chris Toshok <toshok@ximian.com>
2448 * XplatUIOSX.cs: stub out InvalidateNC.
2450 * XplatUIWin32.cs: implement InvalidateNC using the call I found
2451 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
2453 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
2455 * XplatUIDriver.cs: add InvalidateNC abstract method.
2457 * XplatUI.cs: add InvalidateNC.
2459 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2461 * ToolBar.cs: Invalidate complete button area when pressed status
2463 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
2464 * ThemeWin32Classic.cs: Increase vertical and horizontal position
2465 by 1 when button is pressed.
2467 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2469 * ToolButton.cs: Invalidate middle of DropDown button when
2470 ToolBar theres DropDownArrows.
2471 * ThemeWin32Classic.cs: Change position of DropDown arrow and
2472 fix DropDown drawing operations.
2474 2006-11-20 Chris Toshok <toshok@ximian.com>
2476 * NativeWindow.cs: fix the formatting of functions ('{' on the
2477 following line), and enable the thread exception dialog.
2479 * Application.cs: remove the duplicate exception catching from
2482 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2484 * Toolbar.cs: Triggers button click event when click on icon
2485 of dropdown ToolBarButton. Fixes #79912.
2487 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2490 * ThemeWin32Classic.cs:
2491 - Added a property WindowBorderFont to enable themeing
2492 of mdi child windows' Text.
2494 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2496 * InternalWindowManager.cs:
2499 * MdiWindowManager.cs:
2500 - If mdi child is maximized, set mdi parent's
2501 text to "Parent - [Child]". Fixes #79770.
2502 - If there is any maximized mdi child windows, only the active
2503 window (and any new windows) is maximized, the rest are normal.
2504 - On a WindowState change only save mdi child's window bounds
2505 if the old window state was normal. Fixes #79774.
2506 - The scroll bars are now calculated on hopefully all
2507 necessary events. Fixed #79771 / #79844->6 / #79906.
2508 - MdiClient.SizeScrollBars() now takes into account docked
2509 controls in the parent when calculating available space.
2510 - InternalWindowManager now always repaints the entire title
2511 area. Fixes #79844->1/4/5.
2512 - Added RequestNCRecalc on mdi child windowstate changes.
2515 2006-11-20 Mike Kestner <mkestner@novell.com>
2517 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
2518 in the MouseUp handler of the listbox and move the return handling
2519 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
2521 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2523 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
2525 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2527 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
2528 working in 1.2.x anymore. So, updated.
2530 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
2532 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
2533 NumberGroupSeparator of current culture instead of assuming en-US.
2536 2006-11-17 Mike Kestner <mkestner@novell.com>
2538 * Control.cs: Add the concept of implicit bounds setting so that
2539 dock/undock round trips preserve explicitly set size/locations.
2542 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2544 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
2545 can't handle those filters. (Fixes bug #79961)
2547 2006-11-17 Chris Toshok <toshok@ximian.com>
2549 [ fixes the exit/crashes associated with #79835. it's clearly
2550 suboptimal though, we need to figure out a better way to solve
2553 * PrintPreviewControl.cs: deal with the new invalid printer
2556 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
2557 and return false (so CommonDialog.ShowDialog doesn't actually show
2560 * PrintDialog.cs: enable/disable the Ok button depending on
2561 whether or not the printer is valid.
2563 * CommonDialog.cs (ShowDialog): only actually show the form if
2564 RunDialog returns true.
2566 2006-11-17 Jackson Harper <jackson@ximian.com>
2568 * TextControl.cs: When soft splitting a line, mark it as a soft
2569 split line. Also carry over the current line break to the next
2572 2006-11-17 Chris Toshok <toshok@ximian.com>
2574 * XplatUIX11.cs: when scrolling a window with an invalid area, we
2575 only want to shift the part of the invalid area that overlaps the
2576 area we're scrolling. we also don't want to clear the invalid
2577 area unless the invalid area was entirely contained within the
2580 2006-11-16 Chris Toshok <toshok@ximian.com>
2582 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
2583 also make sure to free the memory returned by XGetWindowProperty
2586 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
2588 2006-11-16 Chris Toshok <toshok@ximian.com>
2590 * XplatUI.cs: add a new super secret way to get at the totally
2591 unsupported X11 backend.
2593 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
2595 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
2597 2006-11-16 Jackson Harper <jackson@ximian.com>
2599 * TreeView.cs: Allow more explicit setting of top node position
2600 for scrollbars. Slower algo, but more accurate.
2601 - CollapseAll should maintain the current top node.
2602 * TextBoxBase.cs: When positioning the caret, use the line, pos
2603 method, since the x, y method does not grab the correct tag, and
2604 the caret height never gets set correctly. (Maybe I should just do
2605 away with the caret having its own height, and always use the
2606 carets current tag for height).
2608 2006-11-16 Jonathan Pobst <monkey@jpobst.com
2610 [Fixes 79778, 79923]
2612 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
2613 Parent to the FosterParent instead.
2615 2006-11-16 Jackson Harper <jackson@ximian.com>
2617 * TreeView.cs: Need to recalc the topnode when we expand or
2618 collapse. The scrolling methods can't handle this on their own,
2619 since they use differences between the last scroll position, and
2620 those difference get completely messed up since we are expanding
2621 nodes. This problem should probably be fixed in the scrolling
2622 methods, so they can figure out exactly where they are, but this
2623 will slow things down a little.
2624 * ThemeWin32Classic.cs: Special case for groupboxes with empty
2625 strings, makes nunit-gui look a lot nicer.
2627 2006-11-16 Chris Toshok <toshok@ximian.com>
2629 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
2630 the broken multithreaded event handling we have in here. File
2631 this entry under "Why we should move to the new X11 backend".
2633 Any thread can make it into UpdateMessageQueue, which gets events
2634 from the X socket - some of which could belong to hwnds being
2635 managed by a different thread. We can also have multiple threads
2636 in UpdateMessageQueue at the same time, with each one reading from
2637 the X socket. This leads to many problems, with the following
2640 We can't use hwnd.Queue.Enqueue anywhere in here and must use
2643 The MotionNotify compression we do can't work across threads
2644 (without locking the entire queue, perhaps) since we call
2645 hwnd.Queue.Peek, so we just punt and don't compress motion events
2646 unless the owning thread is the one which got the X event.
2648 ConfigureNotify is another fun one, since it modifies the hwnd's
2649 bounds and then enqueues the event. We add a lock to Hwnd which
2650 is held when setting configure_pending to true (and enqueuing the
2653 There is a race wrt the wake socket. we need to make sure that
2654 only 1 thread is waiting on that socket, or else a thread could
2655 sleep waiting for data that never comes. It's difficult (but not
2656 impossible) to make happen, because it seems to require something
2659 1. Thread 1 polls on wake_receive
2661 2. poll returns saying there's data to be read on
2664 3. Thread 2 polls on wake_receive and immediately returns
2665 saying there's data to be read.
2667 4. Thread 2 reads the wakeup byte from wake_receive
2669 5. Thread 1 attempts to read the wakeup byte from
2672 6. Thread 2 exits (due to a form closing, perhaps).
2674 7. Thread 1 blocks forever.
2678 Fixing the Expose handling isn't done yet, and the races inherent
2679 in that piece of code are responsible for the drawing mistakes you
2680 see when generating expose events in a MT app (like NPlot). This
2681 one is the likely to be the hardest to bandaid, and it doesn't
2682 appear to cause anything but drawing problems. The other issues
2683 caused apps to exit or hang.
2685 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
2686 called from a different thread than the one that should be calling
2689 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
2691 2006-11-15 Chris Toshok <toshok@ximian.com>
2693 * Application.cs: null out the context's MainForm when we exit
2694 RunLoop. Fixes a newly checked in unit test as well as the last
2695 ODE from bug #79933.
2697 2006-11-15 Chris Toshok <toshok@ximian.com>
2699 * Form.cs (set_Owner): allow a null value so we can clear the
2701 (Dispose): set all our owned_form's Owner properties to null, and
2702 clear the owned_forms collection.
2703 (WM_CLOSE): clean up this a little bit.. still not right though.
2705 * ApplicationContext.cs: OnMainFormClosed should only call
2706 ExitThreadCore if the main form isn't recreating. Fixes unit
2709 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2713 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
2715 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2719 * Hwnd.cs: Add a flag to show a window, but not activate it, to
2720 keep popup window types from stealing focus from the main form
2723 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
2725 * MenuAPI.cs: Set above flag to true.
2727 2006-11-15 Chris Toshok <toshok@ximian.com>
2729 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
2730 the button being released is not in wParam.
2732 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2734 * Form.cs: Add the released button to MouseEventArgs.Button
2735 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
2738 2006-11-15 Chris Toshok <toshok@ximian.com>
2740 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
2741 GetText(). untested because it's unused in our implementation.
2742 Control.Text always caches the text, even if
2743 ControlStyles.CacheText is not set.
2747 2006-11-15 Chris Toshok <toshok@ximian.com>
2751 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
2752 message. no hiding, no disposing.
2754 in the WM_CLOSE handler, hide the form if it's modal.
2756 2006-11-15 Chris Toshok <toshok@ximian.com>
2758 * XplatUIX11.cs: use AddExpose instead of sending a message.
2759 fixes textbox border drawing.
2761 2006-11-15 Chris Toshok <toshok@ximian.com>
2763 * PropertyGridView.cs: keep from crashing on mouse move/down when
2764 the property grid is empty.
2766 2006-11-14 Jackson Harper <jackson@ximian.com>
2768 * TextControl.cs: Make PageUp and PageDown more like the MS
2770 * TextBoxBase.cs: When we set the text property position the
2771 cursor at the beginning of the document.
2773 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2775 * Form.cs: if a mdi child's WindowState has changed
2776 before it's creation, it would display wrong control
2779 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
2781 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
2784 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2786 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
2787 the window gets to paint its borders even if the window is
2790 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
2791 otherwise the old control buttons would still be painted
2792 if the window gets bigger.
2794 * PaintEventArgs.cs: add an internal method so that the clip
2795 rectangle can be changed.
2797 2006-11-13 Chris Toshok <toshok@ximian.com>
2799 [ fixes bug #79745 ]
2801 * NotifyIcon.cs: lots of cleanup.
2803 * X11Structs.cs: add an enum for XEMBED messages.
2805 * XplatUIX11.cs: reindent one of the giant switch statements, it
2806 was taking up an additional tab stop, and this file is already way
2807 too wide for my laptop's screen.
2809 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
2810 we get it, resize the hwnd to the WMNormalHints max_width/height.
2812 2006-11-13 Jackson Harper <jackson@ximian.com>
2814 * TextBoxBase.cs: Compute the value changes for the mouse wheel
2817 2006-11-13 Chris Toshok <toshok@ximian.com>
2819 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
2820 #79898. force a reference to the Region to stick around so the
2821 unmanaged object isn't collected (rendering our handle in the MSG
2824 2006-11-13 Chris Toshok <toshok@ximian.com>
2826 * XplatUIX11.cs: fix #79917 for window managers which support
2828 using XStoreName on the raw utf8, and we need to convert to
2829 COMPOUND_TEXT if it's non-latin1.
2831 2006-11-13 Chris Toshok <toshok@ximian.com>
2833 * Form.cs (set_DialogResult): we need to set closing to false if
2834 we're setting our result to None. fixes bug #79908.
2836 2006-11-13 Jackson Harper <jackson@ximian.com>
2838 * TextControl.cs: When formatting text, compute the adjusted tag
2839 lengths correctly, using FindTag for the end tag instead of trying
2840 to figure it out outselves.
2841 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
2842 the item, ItemHeight doesn't work, because trees with large
2843 imagelists use those for their height
2844 * TreeView.cs: ActualItemHeight factors in the image height
2845 - compute left edge of checkboxes correctly
2846 - when expanding/collapsing move the bottom down one pixel, so we
2847 aren't moving part of the node
2849 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2851 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
2852 stack in PaintEventStart so that it won't get disposed by the gc
2853 before reaching PaintEventEnd.
2855 2006-11-13 Jackson Harper <jackson@ximian.com>
2857 * TextBoxBase.cs: Don't select the word if we are on a line with
2859 - We don't need to position the caret on mouse up, since the mouse
2860 move handler should be doing this
2861 - When double clicking a blank line, the caret is advanced to the
2864 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
2866 * TreeNodeCollection.cs: Avoid duplicating indexer code.
2868 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
2870 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
2871 Fixes part of bug #79910.
2873 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
2875 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
2876 (bug #79903). Some minor string updates to match ms.
2878 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2880 * FileDialog.cs: Don't add an extension if the filename
2881 already ends with that extension.
2883 2006-11-10 Jackson Harper <jackson@ximian.com>
2885 * TreeView.cs: Use the currently highlighted node for the
2887 * TextBoxBase.cs: There is no need to expand selection on
2889 - CanUndo means 'is there any undo operations', not 'is undo
2890 allowed on this textcontrol. Fixed ClearUndo unit test.
2892 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
2894 * Button.cs: only perform click when button is Selectable (so as
2895 not to activate default buttons when they're disabled)
2897 * Control.cs: Rewrite of the SelectNextControl and related
2898 methods. HandleClick now selects next control if the current one
2901 * Form.cs: OnActivated selects next active control only if Load
2902 has already occurred. If Load hasn't run, there's no point in
2903 selecting here, Load might change the state of controls.
2905 * FocusTest.cs: Tests marked as working again for these fixes
2907 2006-11-10 Chris Toshok <toshok@ximian.com>
2909 * XplatUIX11.cs: a couple of fixes.
2911 - use XInternAtoms with almost all the atoms we need to register,
2912 instead of many, many calls to XInternAtom. should help a bit on
2913 startup time, at the expense of making the code look a little
2916 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
2917 isn't reparented (which seems to be a clue that we're running fon
2918 compiz) and they have an Owner form. This fixes the tool windows
2919 in paint.net when running under compiz.
2921 - when setting the opacity of a window, support both the case
2922 where the window has been reparented and also when it hasn't been.
2923 Since compiz/beryl doesn't seem to reparent windows, and these are
2924 the only window managers which support translucency, I'm not sure
2925 why we need the hwnd.reparented case at all.. but leave it in.
2926 now we get translucent windows in paint.net under compiz/beryl.
2928 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2930 * FileDialog.cs: Always return the value for FilterIndex that
2931 was set. Internally convert it to values that make sense.
2933 2006-11-10 Everaldo Canuto <everaldo@simios.org>
2935 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
2937 2006-11-10 Everaldo Canuto <everaldo@simios.org>
2939 * Toolbar.cs: Change default value of DropDownArrows to true, the
2940 signature still using false to make it compatible with MS but the
2941 initial value is true. Fixes #79855.
2943 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2945 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
2946 only available on Linux.
2948 2006-11-09 Everaldo Canuto <everaldo@simios.org>
2950 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
2951 reduce number of calls to redraw method during toolbar creation.
2953 2006-11-09 Mike Kestner <mkestner@novell.com>
2955 * ListView.cs : raise SelectedIndexChanged when an item is selected
2956 programmatically via the Item.Selected property. Gert's nice
2957 ListViewSelectedIndexChanged test fixture now runs clean.
2959 2006-11-09 Mike Kestner <mkestner@novell.com>
2961 * ListView.cs : raise SelectedIndexChanged when a selected item is
2962 removed from the item collection using Remove or RemoveAt.
2964 2006-11-09 Mike Kestner <mkestner@novell.com>
2966 * ListView.cs : raise SelectedIndexChanged once per selected item
2967 for compat with MS. Fixes #79849+.
2969 2006-11-09 Chris Toshok <toshok@ximian.com>
2971 * TabControl.cs: initialize row_count to 0, and set it to 1 when
2972 we need to (if we have any tab pages). Fixes unit test.
2974 2006-11-09 Chris Toshok <toshok@ximian.com>
2976 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
2977 width is 0, not 3. Fixes a unit test.
2979 2006-11-09 Mike Kestner <mkestner@novell.com>
2981 * ListView.cs : use Implicit scrollbars so that focus isn't
2982 stolen from the listview when they are clicked. Fixes #79850.
2984 2006-11-09 Chris Toshok <toshok@ximian.com>
2986 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
2987 have a root item. Fixes #79879.
2989 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
2993 - An ArgumentException is now thrown if a wrong filter
2994 is applied (matches ms). The previous filter doesn't change
2995 anymore if an exception is thrown.
2996 - Changing the FileName property also affects FileNames
2997 * ColorDialog.cs: The length of the CustomColors array is always
2998 16. It doesn't matter if we use a smaller array or null to update
2999 or change the custom colors property.
3000 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
3001 for RootFolder if we get a undefined value.
3003 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3005 * StatusBarPanel.cs:
3006 - Width is set to MinWidth if Width is smaller than
3007 MinWidth. Fixes #79842.
3008 - MinWidth now always overrides Width (MSDN says MinWidth
3009 is set to Width when AutoSize = None, but they do not
3011 - Style has now the the correct default value.
3013 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
3016 - The control is completely invalidated on
3017 Got/LostFocus to draw the focus rectangle correctly.
3018 - When AutoSize then height is always 45 (width for
3021 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
3022 on the mouse when moved and it doesn't move when grabbed
3023 until the mouse moves as well. Also fixed some wrong
3024 calculations when clicking on the thumb (control thought
3025 click was outside of thumb and didn't grab it).
3026 Fixes some of the issues in #79718.
3028 2006-11-08 Everaldo Canuto <everaldo@simios.org>
3030 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
3032 2006-11-08 Chris Toshok <toshok@ximian.com>
3034 * PropertyGridView.cs: only call ToggleValue if the item is not
3037 2006-11-08 Jackson Harper <jackson@ximian.com>
3039 * TextBoxBase.cs: The RichTextBox and textbox have very different
3040 word selection methods. Implement the textbox's simple word
3041 selection here, and let the RichTextBox override and provide it's
3043 - Don't do extra selection on mouseup
3044 * RichTextBox.cs: Use the documents word selection algorithm, I
3045 think ideally, this function will be pulled into the
3046 RichTextBox.cs code someday.
3048 2006-11-08 Chris Toshok <toshok@ximian.com>
3050 * RootGridEntry.cs: new class to represent GridItemType.Root.
3052 * CategoryGridEntry.cs: reformat, and add boilerplate.
3054 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
3055 returns the UI parent anyway, and we need special handling to
3056 implement the GetTarget method in the face of it. Also, implement
3059 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
3060 a root grid item, and use that instead of PropertyGrid.grid_items.
3061 Also, make use of TypeConverters (and add limitted support for
3062 ICustomTypeDescriptors) when initially populating the grid.
3063 Arrays now show up more or less properly.
3065 2006-11-08 Chris Toshok <toshok@ximian.com>
3067 * Application.cs: set the modal dialog to non modal after we close
3068 it. Fixes bug #79866.
3070 2006-11-08 Jackson Harper <jackson@ximian.com>
3072 * TextControl.cs: When combining lines carry over the line end
3073 style from the end line.
3074 - Invalidate the selected area when setting it, if it is visible.
3075 * TextBoxBase.cs: Only rich text box can do full line selects.
3076 - Make sure to set the cursor position when there is a click,
3077 otherwise two clicks in separate areas could cause a large chunk
3080 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3082 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
3085 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3087 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
3088 time. Remove tooltips when ToolButton click events. Fixes #79856.
3090 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3092 * MenuAPI.cs: Ignore right click for menu actions and fixes
3093 menu border when clicked. Fixes #79846.
3095 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3097 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
3098 MouseState after create wParam for message, this fixes mouse button
3099 equal none in mouse up events.
3101 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
3103 * Control.cs : Focus() now calls Select to set the Container's
3104 Active Control and to give it focus. To avoid infinite recursion
3105 (because ActiveControl also calls Focus at one point), a check
3106 is made in Focus with the help of a new internal variable
3109 2006-11-07 Mike Kestner <mkestner@novell.com>
3111 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
3112 if there's a selection. Fixes #79849.
3114 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
3116 * PropertyGrid.cs: Avoid fixed height of help description label.
3117 Fixes part of bug #79829.
3119 2006-11-07 Chris Toshok <toshok@ximian.com>
3121 * XplatUIX11.cs: fix #79790 again, by using the
3122 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
3124 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3126 * ToolBar.cs: Fix left click checking.
3128 2006-11-07 Chris Toshok <toshok@ximian.com>
3130 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
3132 2006-11-07 Chris Toshok <toshok@ximian.com>
3134 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
3135 PropertyManager unit tests.
3137 * PropertyManager.cs: make property_name internal.
3139 2006-11-07 Chris Toshok <toshok@ximian.com>
3141 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
3142 pass a unit test. Also, don't set image_index to anything in
3143 response to setting the ImageList property.
3145 2006-11-07 Everaldo Canuto <everaldo@simios.org>
3147 * ToolBar.cs: Ignore click events when mouse button is not a
3148 left button, only accepts other button for dropdown menus.
3151 2006-11-07 Chris Toshok <toshok@ximian.com>
3153 * DataGrid.cs: make the back and parent row buttons a little less
3156 2006-11-07 Jackson Harper <jackson@ximian.com>
3158 * TextBoxBase.cs: When converting to Text don't put line breaks in
3159 for soft line breaks.
3160 * TextControl.cs: There is an initial "fake" line in the document,
3161 this is now a soft break line, so that an extra line feed doesn't
3162 get added to the end of documents.
3164 2006-11-07 Chris Toshok <toshok@ximian.com>
3168 * CurrencyManager.cs: if the list is readonly, don't bother
3169 checking if IBindingList.AllowNew is true.
3171 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
3172 for non-DataRowView datasources.. or rather, make it not crash.
3173 (DataGridPaintRelationRow): make sure we limit the row painting to
3174 the area not covered by the row header, and make our cell width at
3175 least large enough to cover the relation area. This allows grids
3176 that have relations but no rows to render correctly.
3177 (DataGridPaintRowContents): same type of changes here.
3178 (SetDataSource): move back to always calling
3179 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
3180 navigating back through relations.
3181 (HitTest): handle the case where we have no cells but have
3182 relations. Right now we generate a hit in cell 0 of whatever the
3183 row is, not sure if this is strictly correct, but it works for our
3186 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
3187 bother doing anything.
3189 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
3191 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
3192 early version of StatusStrip. Not responsible for eaten
3193 application or firstborn children.
3195 2006-11-06 Chris Toshok <toshok@ximian.com>
3197 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
3198 call GetTabRect with a -1 index. Fixes #79847.
3200 2006-11-06 Jackson Harper <jackson@ximian.com>
3202 * TreeNodeCollection.cs: Update scrollbars after clearing.
3204 2006-11-06 Chris Toshok <toshok@ximian.com>
3206 * NumericUpDown.cs: fix the ToString method for some unit test
3209 2006-11-06 Chris Toshok <toshok@ximian.com>
3212 - set the initial SelectedGridItem if we can.
3214 - Exclude non-mergable properties only if we're merging > 1
3215 object. Merging 1 object isn't really merging, obviously.
3217 - Handle PropertySort.NoSort just like Alphabetical, which is
3218 wrong of course, but at least gets things on the screen.
3220 * PropertyGridView.cs:
3221 - Add method "FindFirstItem" which finds the first property grid
3222 item, so we can select it by default.
3224 - make use of GridEntry.CanResetValue.
3226 - Don't call RedrawBelowItemOnExpansion here anymore, the
3227 individual GridEntry's will do that.
3229 - Remove the ITypeDescriptorContextImpl internal class.
3232 - this class needs to implement ITypeDescriptorContext, as it's
3233 what MS's PropertyDescriptorGridEntry does, which means we can
3234 remove the ITypeDescriptorContextImpl internal class from
3235 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
3237 - keep a reference to our PropertyGridView, and move the call to
3238 RedrawBelowItemOnExpansion here from PGV. This means
3239 programmaticly setting Expanded actually does something visible.
3241 - add a CanResetValue() function which takes into account our
3242 possibly multiple "selected_objects" in the merged case. Shifting
3243 PropertyGridView to use this method fixes another unreported
3244 crasher found running the test for #79829.
3246 - when Top or Bounds is updated, make sure the PropertyGridTextBox
3247 is updated to reflect this.
3249 * CategoryGridEntry.cs: the ctor takes the PGV now.
3251 2006-11-06 Jackson Harper <jackson@ximian.com>
3253 * TextControl.cs: These are 1 based.
3254 * TextBoxBase.cs: When setting the selected text, don't change the
3255 selected text tags, this is done by ReplaceText, just position the
3256 cursor at the end of the new text.
3258 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
3260 * ListView.cs: Allow label edit only when, when LabelEdit is
3263 2006-11-06 Jackson Harper <jackson@ximian.com>
3265 * TextControl.cs: If a suitable wrapping position isn't found,
3266 just wrap right in the middle of a word.
3268 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
3270 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
3273 2006-11-06 Jackson Harper <jackson@ximian.com>
3275 * TreeView.cs: Can't use the VisibleCount property when setting
3276 scrollbar heights, because this doesn't take into account whether
3277 or not the horz scrollbar just came visible.
3279 2006-11-05 Everaldo Canuto <everaldo@simios.org>
3281 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
3282 activated. Fixes #79369, #79832.
3284 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
3286 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
3287 had to remove support for links that point to a directory. FileInfo
3288 returns no usefull information (means, the directory they point to)
3289 for such links. Replaced some empty string ("") with String.Empty.
3291 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3293 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
3294 NullReferenceException when attempting to remove node that is not in
3295 collection. Throw NullReferenceException when null is passed to
3296 Remove. Allow first element of the collection to be removed. Fixes
3297 bug #79831. In GetEnumerator ().Current return null if positioned
3298 before the first element of the collection. In GetEnumerator ().Reset,
3299 position before first element of the collection.
3301 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3303 * PropertyGrid.cs: To match MS, remove default title and description
3304 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
3307 2006-11-04 Chris Toshok <toshok@ximian.com>
3309 * Theme.cs: add a Clamp method, just for kicks.
3311 * ThemeWin32Classic.cs: clamp all color components to [0..255].
3313 2006-11-04 Chris Toshok <toshok@ximian.com>
3315 * Form.cs: if the form isn't visible, Close() does nothing.
3317 2006-11-03 Chris Toshok <toshok@ximian.com>
3319 * Form.cs (Close): if the form is modal, don't Dispose of it, only
3321 (WndProc): don't Dispose after handling the WM_CLOSE message.
3323 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
3324 them as such, instead of using casts from Control to Form. Also,
3325 don't Dispose of the modal dialog when we fall out of the loop -
3330 2006-11-03 Chris Toshok <toshok@ximian.com>
3332 * Control.cs (Dispose): only go through the dispose thing if we're
3333 @disposing, and we haven't already been disposed. Fixes bug
3336 * Form.cs: no reason to call "base.Dispose()" here instead of
3339 2006-11-03 Mike Kestner <mkestner@novell.com>
3341 * ComboBox.cs : use ToString instead of casts in AddItem for
3342 sorting functionality. Fixes #79812.
3344 2006-11-03 Chris Toshok <toshok@ximian.com>
3346 * Application.cs: pave the way for actually using the thread
3347 exception dialog. it's ifdefed out at the moment.
3349 2006-11-03 Chris Toshok <toshok@ximian.com>
3351 * ThreadExceptionDialog.cs: until we get a better layout, actually
3352 hide the details textbox and label when we shouldn't see them.
3354 2006-11-03 Jackson Harper <jackson@ximian.com>
3356 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
3357 multiline textboxes anymore. This method also determines the
3358 width/height of a textboxes canvas area.
3359 - Sorta a revert of the last patch. For multiline just position
3360 the controls, then bail. This way the scrollbar width won't be
3363 2006-11-03 Everaldo Canuto <everaldo@simios.org>
3365 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
3366 it dont need. Fixes #79537.
3368 2006-11-02 Jackson Harper <jackson@ximian.com>
3370 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
3371 send the status after firing the DndOver event.
3373 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3375 * TrackBar.cs: Now orientation only switches height / width if
3376 the control's handle is created (Win32 does it like this). Also
3377 fixed a typo in ToString() for a test to pass, changed the
3378 exception thrown in set_LargeChange and set_SmallChange to
3379 match Win32 behaviour, and added TrackBar tests to the unit
3382 2006-11-02 Chris Toshok <toshok@ximian.com>
3384 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
3385 not _NET_WM_STATE_NO_TASKBAR.
3387 2006-11-02 Jackson Harper <jackson@ximian.com>
3389 * TextControl.cs: Increment count by one, since in the update view
3392 2006-11-02 Jackson Harper <jackson@ximian.com>
3394 * TextBoxBase.cs: Use client rectangle not bounds for checking if
3395 the mouse is in the client rectangle (duh).
3397 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3399 * TrackBar.cs: Fixed trackbar jumping around when clicking
3400 on it - the trackbar was not detecting correctly at which
3401 side of the thumb the click was done. (fixes #79718)
3403 2006-11-02 Everaldo Canuto <everaldo@simios.org>
3405 * ListBox.cs: scroll visible area when change SelectedIndex to
3406 a non visible area. Fixes #79481.
3408 2006-11-01 Jackson Harper <jackson@ximian.com>
3410 * TextControl.cs: When replacing the selection move the selection
3411 start/end/anchor to the end of the new text.
3413 2006-11-01 Jackson Harper <jackson@ximian.com>
3415 * XplatUIWin32.cs: When setting the parent change the controls
3416 visibility to it's visibility flag, not to it's old parents
3417 visibility (.Visible walks the parent chain).
3419 2006-11-01 Chris Toshok <toshok@ximian.com>
3421 * XplatUIX11.cs: revert the #79790 fix, as the simple.
3422 XSetTransientForHint fix breaks paint .net's tool windows. more
3423 work needed for that one.
3425 2006-11-01 Chris Toshok <toshok@ximian.com>
3427 * ScrollBar.cs: throw ArgumentException instead of Exception in
3428 LargeChange/SmallChange setters. fixes unit tests.
3430 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3432 * ContainerControl.cs: reverted rev.67183 (which was itself
3433 a reversion of rev.66853... eh).
3435 * Control.cs: Fixes Reflector hang by changing Focus() call
3436 to what it was before rev.66643 (calling Select() here sets
3437 ActiveControl, which in some situations calls back Focus and
3438 eventually does a stack overflow). Temp fix.
3439 Changes to GetNextControl() to not look for children to select when
3440 parent cannot be selectable (so it looks for siblings instead)
3442 2006-10-31 Mike Kestner <mkestner@novell.com>
3444 * CheckedListBox.cs : off by one error in returned index from
3445 ObjectCollection.Add. Fixes #79758.
3447 2006-10-31 Chris Toshok <toshok@ximian.com>
3449 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
3450 calls for the textbox/spinner, to keep from recursing to the point
3451 where we crash. Fixes #79760.
3453 2006-10-31 Chris Toshok <toshok@ximian.com>
3455 * ListControl.cs (set_SelectedValue): don't throw exceptions on
3456 null/"" value, just return. matches ms's behavior and fixes some
3459 2006-10-31 Chris Toshok <toshok@ximian.com>
3461 * Control.cs (set_Capture): make a logic a little easier to
3464 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
3465 if it's being destroyed. A necessary fix surely, but a bandaid
3466 also, to fix the stuck capture problem in bug #78413.
3468 2006-10-31 Chris Toshok <toshok@ximian.com>
3470 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
3471 convention of clearing hwnd.ClientRect when we set the
3472 width/height (so it'll be recalculated by Hwnd).
3474 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3476 * ContainerControl.cs: reversed Contains check from
3477 ActiveControl due to hanging problems. This fix
3478 partly regresses #79667 (button does not have
3479 initial focus), so this might be a symptom for
3480 a larger parenting problem (set_ActiveControl
3481 is being called but the child control does
3482 not have the parent set yet?)
3484 2006-10-31 Mike Kestner <mkestner@novell.com>
3486 * MenuAPI.cs : fix keynav when menu is click activated.
3488 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
3490 * ToolStrip*: Version 0.2.
3492 * MenuStrip.cs: Version 0.1.
3494 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
3496 2006-10-30 Chris Toshok <toshok@ximian.com>
3498 [ fixes the oversized notify icon issue in bug #79745 ]
3500 * NotifyIcon.cs: scale the icon down to the size we're given by
3501 the XplatUI layer (this would be faster if we did it once instead
3502 of whenever we paint..) Also, remove the WM_NCPAINT handling,
3503 since it's never invoked.
3505 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
3506 pixels high by default, so let's hardcode our systray icon to that
3507 size. The SYSTEM_TRAY protocol should really have a way for
3508 client apps to query for the correct icon size.. but oh well. A
3509 couple of patches to deal with the screwy client_window ==
3510 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
3511 instance, and also make sure we don't XSelectInput twice).
3513 2006-10-30 Chris Toshok <toshok@ximian.com>
3515 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
3516 recreating forms. Control recreation is the bane of my existence.
3517 Fix it in a way that keeps everyone happy.
3519 2006-10-30 Chris Toshok <toshok@ximian.com>
3521 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
3522 just non-CHILD ones. otherwise sometimes scrollbars end up with
3523 client_windows not being resized to the proper size (ReportBuilder
3524 shows this extremely well).
3526 2006-10-30 Chris Toshok <toshok@ximian.com>
3528 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
3529 for non-WS_EX_APPWINDOW windows. This is what keeps them from
3530 showing up in the gnome taskbar. Fixes bug #79790.
3532 2006-10-30 Chris Toshok <toshok@ximian.com>
3534 * ApplicationContext.cs: guard against a NRE.
3536 * Application.cs: null out the old MainForm for the context, so we
3537 don't try to use it again once it's disposed. Fixes bug #79783.
3539 2006-10-30 Chris Toshok <toshok@ximian.com>
3541 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
3542 BindingContext, set the data source directly, otherwise do the
3543 lazy approach - the actual ListManager will be created when we get
3544 a BindingContext. Fixes bug #79700.
3546 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3548 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
3549 XplatUIX11.cs: Remove old 2 parameter SetVisible.
3551 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
3553 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3555 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
3556 of SetVisible that allows a window to be shown, but not activated.
3557 This is needed on Windows for MenuStrip, and can probably be used
3558 with MainMenu and ComboBox to fix the focus stealing issues on
3561 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
3563 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
3565 * PictureBox.cs: Fix the output of the ToString method.
3567 2006-10-29 Chris Toshok <toshok@ximian.com>
3569 * Control.cs (get_TopLevelControl): fix bug #79781.
3571 2006-10-29 Chris Toshok <toshok@ximian.com>
3573 * ListControl.cs (set_DataSource): throw Exception here, not
3574 ArgumentException, to match MS behavior.
3576 2006-10-29 Chris Toshok <toshok@ximian.com>
3578 * Form.cs: remove the try-catch's around calls to GetWindowState.
3579 We can just check the return value.
3581 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
3584 * XplatUI.cs: Add note about additional return value for
3587 2006-10-29 Chris Toshok <toshok@ximian.com>
3589 * Control.cs (CreateHandle): when we create our handle, we also
3590 create the handles of our child controls. Fixes one of the
3591 Control unit tests (CH11).
3593 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3595 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
3597 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3599 * ThemeClearlooks.cs: A little speedup.
3601 2006-10-27 Chris Toshok <toshok@ximian.com>
3603 * Control.cs: implement Control.FromChildHandle in a way that
3604 matches the docs (and fixes the failed test.)
3606 2006-10-27 Chris Toshok <toshok@ximian.com>
3608 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
3611 * DataGrid.cs: implement ResetForeColor such that the tests
3614 2006-10-27 Chris Toshok <toshok@ximian.com>
3616 * ToolBarButton.cs: setting text/tooltiptext to null results in it
3617 being set to "". Fixes bug #79759.
3619 2006-10-27 Jackson Harper <jackson@ximian.com>
3621 * TextControl.cs: We need to clear the entire selection area when
3622 setting the start, otherwise multiline selections are still
3625 2006-10-26 Chris Toshok <toshok@ximian.com>
3627 * PropertyGridView.cs:
3629 - ifdef all the code specific to the double
3630 buffer case, and provide some alternatives in the non-doublebuffer
3631 code, which makes heavy use of XplatUI.ScrollWindow to move things
3632 around without having to invalidate (and cause flicker). There
3633 are still some drawing problems in the non-doublebuffered case, so
3634 DOUBLEBUFFER is defined by default.
3636 - Fix the way dropdowns are handled. now we explicitly watch for
3637 the events which might cause the dropdown to close, and break out
3638 of the nested event loop there. This gets rid of all Capture
3639 code, at the expense of the Msg special casing. Seems to work,
3640 though, and fixes bug #79743.
3642 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3643 * Control.cs: SetIsRecreating now recreates implicitly added
3644 child controls as well. Finally fixes #79629. The flag passed to
3645 SetIsRecreating has also been removed since it wasn't used.
3647 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3649 * PageSetupDialog.cs: Clean some code, fix some bits,
3650 add some checks, and add a printer sub-dialog.
3652 2006-10-26 Chris Toshok <toshok@ximian.com>
3654 * PropertyGrid.cs: make set_SelectedObject call
3655 set_SelectedObjects, and move the duplicate logic to the
3656 SelectedObjects setter. Also, raise SelectedObjectsChanged.
3658 * PropertyGridView.cs: hide the textbox when we get a
3659 SelectedObjectsChanged event.
3663 2006-10-26 Chris Toshok <toshok@ximian.com>
3665 * PropertyGridView.cs: deal with the type converter not supporting
3666 GetStandardValues() or GetStandardValues() returning null, which
3667 is does in the default case. Fixes #79742.
3669 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3671 * CheckedListBox.cs: nunit no longer crashes when selecting
3672 Project/Edit menu option
3674 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3676 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
3677 is no menu selected. fixes #79739
3679 2006-10-25 Chris Toshok <toshok@ximian.com>
3681 * PropertyGridView.cs: factor out the splitter invalidation code
3682 into the SplitterPercent setter, and for kicks implement the
3683 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
3684 amount in either direction.
3686 2006-10-25 Chris Toshok <toshok@ximian.com>
3688 * PropertyGridView.cs: do some cleanup of the brush used to draw
3689 text - read only fields should be grayed out. not sure how to do
3690 this with the textbox, though. but the textbox's should also be
3691 readonly now at least. Also, hide/show the textbox when resizing
3694 * CursorConverter.cs: use System.Reflection when getting the
3695 properties of Cursors, as TypeDescriptor.GetProperties isn't
3696 returning static properties.
3698 2006-10-25 Chris Toshok <toshok@ximian.com>
3700 * PropertyGridView.cs: factor out the up/down handling, and reuse
3701 it for page up/down. also add End/Home support.
3703 2006-10-25 Chris Toshok <toshok@ximian.com>
3705 * PropertyGridView.cs:
3707 - ensure the selected grid item is visible in the scrolled area,
3710 - fix Keys.Down handling when you're on the last item in the
3713 2006-10-25 Mike Kestner <mkestner@novell.com>
3715 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
3716 clicks too. Fixes #79725.
3718 2006-10-24 Chris Toshok <toshok@ximian.com>
3720 * PropertyGrid.cs: use property.Converter instead of
3721 TypeDescriptor.GetConverter(property.PropertyType), so we catch
3722 TypeConverters declared on the property as well as on the
3723 PropertyType. Fixes bug #79678.
3725 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
3727 * MimeIcon.cs, Mime.cs:
3728 Fallback to the default platform handler if no shared mime info
3729 stuff exists (fixes #79693).
3731 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3732 * ContainerControl.cs: Incorrect contains check in ActiveControl
3733 from previous fix (duh).
3735 2006-10-20 Chris Toshok <toshok@ximian.com>
3737 * PropertyGridView.cs: the dropdown should be MIN(number of items
3738 in list, 15). Fixes #79551.
3740 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3741 Fixes #79384, #79394, #79652, #79667
3744 - Modal windows are now destroyed in the proper order for windows
3746 * ContainerControl.cs:
3748 - ActiveControl setter has more conditions on when to return:
3749 - if we're reselecting the active control, but it actually
3750 didn't have focus (window hidden or some such), it runs
3751 - if the active control being selected doesn't actually
3752 exist in the container, it returns
3756 - The ShowDialog now gets the current form as the owner when
3757 invoking without parameters, and correctly activates the owner
3762 - MessageBox now catches the Escape key to exit
3764 2006-10-20 Chris Toshok <toshok@ximian.com>
3766 * PropertyGridView.cs: fix a number of issues (bug #78565, and
3767 most of bug #79676):
3769 - you can navigate around the property grid with the arrow keys.
3771 - the dropdown is sized properly when the pg has a vertical
3774 - fix the indentation for subentries, and properly select the
3777 - fix the gray bar's drawing (only draw it to the last element,
3778 not for the height of the control. Also make sure we draw that
3779 last horizontal grid line.
3781 - use the same mechanism the datagrid uses wrt the editing textbox
3782 when scrolling/resizing/etc. Namely, we hide it first, do the
3783 operation, then show it again (if it's still visible).
3785 - aggressively remove a lot of unnecessary refreshes (and also
3786 calls to Invalidate(). call more limited variants, and only redraw
3791 - when we're populating the merged collection, fill in the UI
3792 parent with either the passed in item, or the category item we
3795 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
3797 * GridItem.cs: drop some fully qualified names.
3799 * GridEntry.cs: add a "UIParent", which is basically the parent
3802 * GridItemCollection.cs: add an IndexOf method.
3804 2006-10-20 Mike Kestner <mkestner@novell.com>
3806 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
3807 a working win32 NC invalidation mechanism, we can't invalidate
3808 menus. [Fixes #79705]
3810 2006-10-20 Mike Kestner <mkestner@novell.com>
3812 * ListBox.cs : don't update the VScrollbar if the list is empty,
3813 just hide it. [Fixes #79692]
3815 2006-10-20 Jackson Harper <jackson@ximian.com>
3817 * RichTextBox.cs: Handle some special chars better, and don't skip
3818 the entire group when we encounter a special char that we don't
3821 2006-10-18 Chris Toshok <toshok@ximian.com>
3823 * PropertyGridView.cs: address a number of issues from bug #79676,
3824 mostly of the cosmetic variety.
3826 - The highlight rectangle for indented items not extends all the
3829 - Indented items aren't indented so much.
3831 - the dropdown is properly sized width-wise if the pg has a
3834 2006-10-18 Chris Toshok <toshok@ximian.com>
3836 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
3837 systray stuff is rather convoluted to begin with.
3839 systray icons are a single window for some reason (that I haven't
3840 figured out yet), and for them, client_window == whole_window.
3841 Given the way the tests are structured elsewhere to determine
3842 which paints are pending (client vs. nc), that situation will
3843 always yield PAINT, not NCPAINT. So, if we have a pending
3844 nc_expose and no pending expose, remove the hwnd from the paint
3845 queue, and also set nc_expose_pending to false, to keep us from
3846 blocking further expose's adding the hwnd to the paint queue.
3848 phew. like i said, a rather convoluted change. Fixes the
3849 notifyicon repaint issues in bug #79645.
3851 2006-10-18 Chris Toshok <toshok@ximian.com>
3853 * Form.cs: when getting the backcolor of the form, don't get
3854 base.BackColor, as this allows parents to influence the background
3855 color. This breaks mdi forms. Instead, if the background_color
3856 is empty, return the default.
3858 2006-10-18 Chris Toshok <toshok@ximian.com>
3860 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
3861 to being private instead of internal static.
3863 * Control.cs: remove all the stupid ParentWaitingOnRecreation
3864 crap, it wasn't working for more deeply nested controls anyway,
3865 and we already have the is_recreating flag - use that instead.
3866 Before calling DestroyHandle in RecreateHandle, recurse through
3867 the control tree setting it to true. this returns the recreate
3868 code to much of its original simplicity, while now guaranteeing we
3869 actually recreate everything we're supposed to. This change gets
3870 fyireporting actually showing mdi children.
3872 2006-10-17 Chris Toshok <toshok@ximian.com>
3874 * Form.cs: remove some debug spew, and collapse some duplicate
3875 code at the end of SetClientSizeCore.
3878 - add some more debug spew here too wrt Destroy handling.
3879 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
3880 in Control's handling of WM_DESTROY.
3881 - Remove the handling of zombie window DestroyNotifies from the
3882 event loop - we don't need it. Now the only DestroyNotifies we
3883 actually handle are ones generated by X.
3884 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
3885 match gtk's (functioning) handling of this. This keep metacity
3886 from leaving droppings in the form of wm borders with no window
3887 contents all over the place.
3890 - add a bunch of debug spew wrt control recreation.
3891 - fix a bug where we weren't tracking Visible properly on
3893 - fixed the WM_PAINT double buffer handling to support re-entrant
3894 calls (yes, i know it's gross, but it's happening to us).
3896 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3897 * ThemeWin32Classic.cs: changed drawing of selected days
3898 to make them look better.
3900 2006-10-16 Chris Toshok <toshok@ximian.com>
3902 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
3903 drawing_stack. Nuke the ClientDC/NonClientDC properties.
3905 * XplatUIX11.cs: move away from using hwnd.client_dc and
3906 hwnd.non_client_dc and on to a stack of dc's (and in window's
3907 case, PAINTSTRUCT's), so we can deal with nested Paint calls
3908 without puking or not disposing of Graphics objects.
3910 * XplatUIOSX.cs: same.
3912 * XplatUIWin32.cs: same.
3914 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
3916 * FileDialog.cs: Don't call on_directory_changed inside
3917 OnSelectedIndexChanged (it changes the SelectedIndex too).
3918 Instead move it to OnSelectionChangeCommitted.
3920 2006-10-13 Chris Toshok <toshok@ximian.com>
3922 * XplatUIX11.cs: more Destroy work. the current code does the
3923 following things, in order:
3925 1. Enumerates all handles of all controls at or below the one
3926 being destroyed, in pre-order. As it is doing this, it marks the
3927 handles as zombie and clears all references to them.
3929 2. calls XDestroyWindow on the window passed in.
3931 3. SendMessage's WM_DESTROY to all he handles in the accumulated
3934 2006-10-13 Chris Toshok <toshok@ximian.com>
3936 * XplatUIX11.cs: set hwnd.zombie to true before calling
3937 SendMessage (WM_DESTROY). this keeps us from marking the new
3938 window a zombie, and also keeps us from calling sendmessage at
3941 2006-10-13 Jackson Harper <jackson@ximian.com>
3943 * TextControl.cs: Do not show the caret and selection at the same
3944 time. Reduces ugliness by 35%.
3946 2006-10-13 Chris Toshok <toshok@ximian.com>
3948 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
3949 zombie after we do the recursive call, so we actually do call
3950 SendMessage on the children controls.
3951 (GetMessage): if we find a pending paint event for a zombie hwnd,
3952 remove the hwnd from the paint queue, or else it will always be
3953 there (and we'll effectively loop infinitely)
3955 2006-10-13 Mike Kestner <mkestner@novell.com>
3957 * MenuItem.cs : add Selected format under keynav too.
3960 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3962 * PropertyGrid.cs: Fixed some NRE's and small difference between our
3963 implementation and that of MS.
3965 2006-10-13 Chris Toshok <toshok@ximian.com>
3967 * Control.cs (OnInvalidated) only futz with the invalid_region if
3968 the control is double buffered. this fixes the apparent hang in
3969 the ListView unit tests. Someone needs to make the
3970 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
3972 2006-10-13 Chris Toshok <toshok@ximian.com>
3974 * PropertyGridView.cs:
3976 - do a little refactoring so that only one place calls
3977 dropdown_form.Hide, and that is CloseDropDown. make everywhere
3978 else call that. Also make it Refresh, since there are redraw bugs
3979 otherwise (we should take a look at that...)
3981 - do a little more refactoring work to share the body of code
3982 involved with the drop down. it was duplicated in the code
3983 dealing with the listbox handling and in the code dealing with the
3986 - add a Capture to the dropdown form's control once it's
3987 displayed, and add a MouseDown handler that checks to make sure
3988 the position is inside the control. If it's not, close the
3989 dropdown. This fixes #78190.
3991 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
3992 if the value is different than the initial value.
3994 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
3996 * Control.cs: see #78650
3997 - Fixed GetNextControl for several cases:
3998 - Changed FindFlatForward to return
3999 correct sibling control when more than one
4000 control has same TabIndex as the currently
4002 - Changed FindFlatBackward to loop children
4003 from last to first and apply same logic as in
4005 - Changed FindControlForward to search for
4006 children when control is not a container
4007 but has children, or search for siblings if
4008 control is a container...
4009 - Changed FindControlBackward to continue
4010 searching for child controls when hitting
4013 - Fixed Focus method to update ActiveControl
4014 (FocusTest.FocusSetsActive failure)
4017 - Focus rectangle now refreshes when gaining
4019 - Removed grab for Tab key on IsInputKey that
4020 was keeping tab navigation from working (#78650)
4022 2006-10-13 Chris Toshok <toshok@ximian.com>
4024 * PropertyGridView.cs:
4025 - Rewrite SetPropertyValue to loop over SelectedGridItem's
4028 - Deal with GridItem.Value == null a few places.
4031 - replace the PopulateGridItemCollection with a pair of methods
4032 which compute the intersection of all the properties in the
4033 SelectedObjects array. Fixes #79615.
4035 - Throw ArgumentException from set_SelectedObjects if there's a
4038 - Add GetTarget method which can be used to traverse up the
4039 GridItem.Parent chain. It depends on the assumption that
4040 selected_objects for different GridEntries are always in the same
4041 order (a safe assumption). Use this method and loop over all the
4042 selected objects in the entry when calling RemoveValueChanged and
4045 * GridEntry.cs: Make this handle multiple selected objects.
4046 .Value returns null if not all the selected objects share the same
4049 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
4050 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
4051 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
4052 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
4053 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
4054 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
4055 add additional functionality.
4057 2006-10-12 Mike Kestner <mkestner@novell.com>
4059 * ErrorProvider.cs : new ToolTipWindow ctor sig.
4060 * HelpProvider.cs : new ToolTipWindow ctor sig.
4061 * ToolTip.cs : remove ToolTip param from Window sig since it is
4063 * ToolBar.cs : add tooltip support. Fixes #79565.
4065 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4067 * ComboBox.cs: move the events in set_SelectedIndex to
4068 after the call to HighlightIndex in order to avoid
4069 possible recursion and subsequent problems with the call
4070 to HighlightIndex and include a range check in
4071 set_HighlightIndex. Fixes #79588
4073 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4075 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
4076 to ui thread's settings instead of sunday.
4077 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
4079 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
4083 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
4084 and implement missing functionality (selecting different parts
4085 of the date and edit them individually with the keyboard).
4087 2006-10-11 Chris Toshok <toshok@ximian.com>
4089 * Control.cs (OnInvalidated): fix NRE relating to last change.
4091 2006-10-11 Chris Toshok <toshok@ximian.com>
4093 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
4094 atoms in _NET_WM_STATE here if the window is maximized. We need
4095 to do this because we're *replacing* the existing _NET_WM_STATE
4096 property, so those atoms will be lost otherwise, and any further
4097 call to GetWindowState will return Normal for a window which is
4098 actually maximized. Fixes #79338.
4100 2006-10-11 Jackson Harper <jackson@ximian.com>
4102 * TextControl.cs: Special case for setting selection end to
4103 selection start, we basically kill the anchor.
4104 - some todo comments.
4106 2006-10-11 Chris Toshok <toshok@ximian.com>
4108 * Control.cs: switch to using an "invalid_region" to track which
4109 parts of the image buffer need updating. This is more code than
4110 the simple fix from r66532. That version just attempted to always
4111 fill the entire buffer on redraw, which turns out to be
4112 inefficient when invalidating small rectangles. This version
4113 simply adds the invalid rectangle to the invalid region. When we
4114 get any WM_PAINT message we see if it can be filled using the
4115 image buffer, and if it can't (if the paint event's clip rectangle
4116 is visible in the invalid region) we first fill the image buffer.
4117 So, the image buffer is still a cache, we just fill it lazily.
4119 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
4122 2006-10-11 Chris Toshok <toshok@ximian.com>
4124 * XplatUIX11.cs (SetWindowPos): we need to update both position as
4125 well as size after calling XMoveResizeWindow. This keeps us from
4126 ignoring future SetWindowPos calls. Fixes the disappearing
4127 DateTimePicker in the ToolBarDockExample from bug #72499.
4129 2006-10-11 Chris Toshok <toshok@ximian.com>
4131 * TextBoxBase.cs: reorder things a bit when it comes to
4132 resizing-causing-recalculation. we were recalculating the
4133 document when our position was changed, which shouldn't happen.
4134 We only care about size changes. Clear up some more redundant
4135 recalculation calls while I'm at it. This makes the toolbar dock
4136 example snappy when you're just dragging toolbars around (since it
4137 causes a relayout whenever you move one.)
4139 2006-10-11 Chris Toshok <toshok@ximian.com>
4141 * ToolBarButton.cs (get_Rectangle): this only returns
4142 Rectangle.Empty if Visible == false, or Parent == null.
4143 Parent.Visible doesn't matter.
4145 2006-10-10 Chris Toshok <toshok@ximian.com>
4147 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
4148 by .net 1.1, so switch to an internal method instead.
4150 2006-10-10 Chris Toshok <toshok@ximian.com>
4152 * Control.cs (WM_PAINT): when a control is double buffered we draw
4153 initially to the ImageBuffer and then copy from there. But when a
4154 parent control which has child controls is double buffered, the
4155 initial drawing doesn't encompass the entire ClientRectangle of
4156 the parent control, so we end up with uninitialized bits (this is
4157 easily seen by dragging the top toolbar in
4158 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
4159 manually set the ClipRectangle of the paint_event (only the one we
4160 use to populate the ImageBuffer) to ClientRectangle. Fixes more
4161 of the nastiness in bug #72499.
4163 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
4164 which we use in Control.cs's WM_PAINT handling.
4166 2006-10-10 Jackson Harper <jackson@ximian.com>
4168 * TextBoxBase.cs: Finish off the autoscrolling stuff.
4170 2006-10-10 Chris Toshok <toshok@ximian.com>
4172 * Cursor.cs: Apply a slightly different patch to the one suggested
4175 2006-10-10 Jackson Harper <jackson@ximian.com>
4177 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
4178 not the parent form.
4179 * TextControl.cs: use difference in old line count vs new count to
4180 calculate how many lines were added, this takes into account soft
4181 line breaks properly.
4183 2006-10-10 Chris Toshok <toshok@ximian.com>
4185 * LinkLabel.cs: don't call MeasureCharacterRanges against a
4186 rectangle located at 0,0 and the size of the text. Use
4187 ClientRectangle instead. This fixes rendering of non-left aligned
4190 2006-10-10 Jackson Harper <jackson@ximian.com>
4192 * TextBoxBase.cs: When we set the selection start position the
4194 * TextControl.cs: Need to update the caret when we decrement it to
4196 - Make sure that the selection_visible flag gets reset to false if
4197 the selection isn't visible. Before this you could get it set to
4198 visible by changing the selection start, then changing the end to
4201 2006-10-09 Jackson Harper <jackson@ximian.com>
4203 * TreeView.cs: Don't update scrollbars when we aren't visible.
4204 * TreeNodeCollection.cs: Only need to update scrollbars if being
4205 added to an expanded visible node or the root node.
4207 2006-10-09 Chris Toshok <toshok@ximian.com>
4209 * XplatUIX11.cs (SendMessage): fix NRE.
4211 2006-10-09 Jackson Harper <jackson@ximian.com>
4213 * TextBoxBase.cs: Implement horizontal autoscrolling.
4214 * TextControl.cs: Add a movement types that allows moving forward
4215 and backwards without wrapping.
4217 2006-10-09 Mike Kestner <mkestner@novell.com>
4219 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
4220 with focus "expansion" of labels. Fixes #79532 and then some.
4221 * ThemeWin32Classic.cs : add LineLimit to ListView label format
4224 2006-10-09 Jackson Harper <jackson@ximian.com>
4226 * TextBoxBase.cs: Set the default max values to MaxValue since
4227 we use the scrollbar for autoscrolling and the default value is
4228 100. If we don't do this the caret won't keep up with typing
4229 after about 18 characters.
4230 * TextControl.cs: Make sure the selection is offset by the
4231 viewport x. This fixes selection when using auto scrolling.
4233 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
4235 * Form.cs: The active control should be selected after the
4236 OnLoad so that any child control initialization that affects
4237 the selection is done. Fixes #79406
4239 2006-10-06 Chris Toshok <toshok@ximian.com>
4241 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
4242 to have no evil effects.
4244 - Stop selecting StructureNotifyMask on non-toplevel windows.
4246 The only way children should be resized is by using the SWF api,
4247 and we already send WM_WINDOWPOSCHANGED messages in those cases.
4248 Toplevel windows can be interacted with via the window manager,
4249 and so we keep the input mask there.
4251 The other event StructureNotifyMask gives us (that we care
4252 about) is DestroyNotify. The code is already structured such
4253 that it assumes we won't be getting a DestroyNotify event for
4254 the window we pass to XDestroyWindow (which is what
4255 StructureNotifyMask is supposed to guarantee.) So, that code
4256 shouldn't be affected by this either.
4258 - Stop selecting VisibilityChangeMask altogether.
4260 We weren't doing anything with the resulting events anyway.
4262 This vastly reduces the number of X requests and events we see
4263 when resizing/laying out a large ui.
4265 2006-10-06 Chris Toshok <toshok@ximian.com>
4267 * ScrollableControl.cs (DisplayRectangle): we need to take into
4268 account the DockPadding regardless of whether or not auto_scroll
4269 == true. rework this slightly to this effect, and fix bug #79606,
4270 and part of #72499 (you can now see the drag handles and drag
4273 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
4275 * ListViewItem.cs: Collections of selected and checked items are now
4276 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
4277 we mark the collection "dirty".
4278 * ListView.cs: Marked collections readonly. Modified UpdateSelection
4279 to only clear SelectedItems when a new item is selected and MultiSelect
4280 is enabled. CheckedItems and SelectedItems now subscribe to Changed
4281 event of ListViewItemCollection, and mark its list dirty whenever
4282 that event is fire. This allows us to return selected/checked items
4283 in the same order as they are in the Items collection. This matches
4286 2006-10-06 Chris Toshok <toshok@ximian.com>
4288 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
4289 right mouse clicks. Fixes bug #79593.
4291 2006-10-06 Chris Toshok <toshok@ximian.com>
4293 * Splitter.cs: doh, fix splitters that don't want to cancel the
4294 movement when you drag them. Also, impose the limits on the
4295 values we send to the SplitterMovingEvent. Fixes #79598.
4297 2006-10-06 Jackson Harper <jackson@ximian.com>
4299 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
4300 since we use this for auto scrolling also.
4302 2006-10-05 Chris Toshok <toshok@ximian.com>
4304 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
4305 beginning to think that most datagrid column types don't need this
4306 method. Fixes bug #79392.
4308 2006-10-05 Chris Toshok <toshok@ximian.com>
4310 * DataGrid.cs: move back to a more lazy scheme for creating the
4311 CurrencyManager, so we aren't updating it every time you set
4312 either DataSource or DataMember. Also, don't call
4313 RecreateDataGridRows if the currency manager hasn't changed.
4315 2006-10-05 Chris Toshok <toshok@ximian.com>
4317 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
4318 emitted, SelectedIndex should already be updated. Fixes bug
4321 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
4323 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
4324 ToolStripTextBox.cs: Initial commit.
4325 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
4327 2006-10-05 Jackson Harper <jackson@ximian.com>
4329 * TabControl.cs: We need to invalidate the tab control area when
4330 new ones are added (duh).
4332 2006-10-03 Chris Toshok <toshok@ximian.com>
4334 * Form.cs (ProcessDialogKey): if the focused control is in this
4335 form and is a button, call its PerformClick method here. Fixes
4338 2006-10-04 Jackson Harper <jackson@ximian.com>
4340 * TabPage.cs: Ignore setting of Visible, and add an internal
4341 method for setting the controls visibility. TabPage's Visible
4342 property is a little strange on MS, this seems to make us
4343 compatible, and fixes cases where people set all the tab pages to
4345 * TabControl.cs: Use the new internal setting on tab pages
4348 2006-10-03 Mike Kestner <mkestner@novell.com>
4350 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
4352 2006-10-03 Mike Kestner <mkestner@novell.com>
4354 * ListView.cs : use is_visible instead of Visible to check if
4355 scrollbars should be placed/sized. Also some max_wrap_width
4356 love for LargeIcon view. [Fixes #79533]
4358 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
4361 Make set_TextAlign() do actually update the align. Fixed #78403.
4363 2006-10-03 Chris Toshok <toshok@ximian.com>
4365 * DataGrid.cs: fix a crash when switching datasources if the
4366 vertical scrollbar is at someplace other than Value = 0. Also,
4367 reduce the number of recalculation passes we do in SetDataSource
4370 2006-10-03 Jackson Harper <jackson@ximian.com>
4372 * TextBoxBase.cs: Move the if value the same bail check up, we
4373 don't want to empty the document if it is already empty, this
4374 seems to severly mess up the caret. TODO: I should probably fix
4375 the empty statement to update teh caret somehow.
4377 2006-10-03 Chris Toshok <toshok@ximian.com>
4379 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
4380 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
4381 reflection, an internal row type, properties on said type, etc.)
4382 will work with our datagrid. Fixes #79531.
4384 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
4386 * FileDialog.cs: Don't crash if a path is not accessible
4387 (System.UnauthorizedAccessException). Fixes #79569.
4388 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
4389 a ':' too. Return unknown icon for those paths/files.
4391 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
4393 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
4394 GetContainerControl returns null.
4396 2006-10-02 Chris Toshok <toshok@ximian.com>
4398 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
4399 call to XGetWindowAttributes instead of "handle". fixes an X
4400 error using notifyicon after the NotifyIconWindow to Form base
4403 2006-10-02 Chris Toshok <toshok@ximian.com>
4405 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
4406 server grab and looping we need to do to get down to the most
4407 deeply nested child window.
4408 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
4409 QueryPointer again after the WarpPointer so we can generate a
4410 proper (fake) MotionNotify event to be enqueued in the destination
4412 (GetCursorPos): call QueryPointer.
4416 2006-10-02 Jackson Harper <jackson@ximian.com>
4418 * NotifyIcon.cs: Derive the notify icon from a form, so things
4419 like FindForm work on it.
4420 - Swallow the WM_CONTEXTMENU message, since that is generated on
4421 mouse down, and context menu is a mouse up kinda guy. I believe
4422 the correct fix here is probably to make the notify icon entirely
4423 NC area, but this seems to work fine for anyone not manipulating
4426 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
4428 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
4429 ToolStripItemCollection.cs, ToolStripLabel.cs,
4430 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
4431 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
4432 Initial implementation.
4433 * TextRenderer.cs: Provide padding to MeasureText.
4435 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
4437 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
4438 of ButtonBaseAccessibleObject. Fix bug #79552.
4440 2006-10-02 Jackson Harper <jackson@ximian.com>
4442 * MdiWindowManager.cs: When maximizing use the containers client
4443 rect, not it's bounds, so nc area is accounted correctly.
4444 - Use the parent form's size for the menu position, since the
4445 client isn't always the full form size.
4447 2006-10-01 Chris Toshok <toshok@ximian.com>
4449 * ScrollableControl.cs: make sure neither right_edge or
4450 bottom_edge are < 0, since they're used as LargeChange for the
4451 horiz/vert scrollbars respectively. Fixes #79539.
4453 2006-10-01 Chris Toshok <toshok@ximian.com>
4455 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
4456 the xplatuix11 code can cause us to destroy/recreate our handle.
4460 - this code can be invoked many times for the same Hwnd. Make
4461 sure we only destroy the client window once (the first time this
4462 method is called). This fixes bug #79544.
4463 - Remove the call to the improperly bound XSync. why we had two
4464 bindings to this, I will never know, but this call resulted in
4465 events being discarded from the queue(!).
4466 - correct a misunderstanding of _XEMBED_INFO - the second atom is
4467 not our current state but the state we wish to be in. So, 0 if
4468 we don't want to be mapped. Change it to 1.
4469 (SystrayRemove): The XEMBED spec makes mention of the fact that
4470 gtk doesn't support the reparent of client windows away from the
4471 embedder. Looking at gtksocket-x11.c seems to agree with this.
4472 The only avenue we have for removing systray icons is to destroy
4473 them. We don't want the handle to go away for good, though, so
4474 call InternalRecreateHandle on the NotifyIconWindow. Fixes
4477 2006-10-01 Chris Toshok <toshok@ximian.com>
4479 * Form.cs (WndProc): inline the native_enabled variable usage into
4480 the cases in which it's used. Fixes #79536.
4482 2006-09-29 Mike Kestner <mkestner@novell.com>
4484 * ListView.cs : toggle the selection state for ctrl clicks in
4485 multiselect mode. [Fixes #79417]
4487 2006-09-29 Mike Kestner <mkestner@novell.com>
4489 * ListView.cs : kill CanMultiSelect and refactor the selection
4490 code to support multiselection in the absence of mod keys. Steal
4491 arrow/home/end keys by overriding InternalPreProcessMessage to
4492 restore regressed keynav behavior.
4495 2006-09-29 Jackson Harper <jackson@ximian.com>
4497 * MdiClient.cs: Repaint the titlebars when the active window is
4500 2006-09-29 Chris Toshok <toshok@ximian.com>
4502 * Application.cs: when entering a runloop with a modal, make sure
4503 the hwnd is enabled. Fixes #79480.
4505 2006-09-29 Chris Toshok <toshok@ximian.com>
4507 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
4508 when ListManager.CanAddRows == false, bump us back one.
4510 * DataGridColumnStyle.cs (ParentReadOnly): remove the
4511 listmanager.CanAddRows check. This makes ArrayLists uneditable
4512 using a datagrid, which is not right.
4513 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
4514 is an IEditable, but call property_descriptor.SetValue regardless.
4517 2006-09-29 Chris Toshok <toshok@ximian.com>
4519 * DataGridBoolColumn.cs: we need to test equality in the face of
4520 possible null values (as is the case with the default NullValue).
4521 This patch keeps us from crashing in that case.
4523 2006-09-29 Jackson Harper <jackson@ximian.com>
4525 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
4526 here, since it will get called for every node collection in the
4527 tree. This is now done in the treeview once the sorting is
4529 * TreeView.cs: Recalculate the visible order, and update the
4530 scrollbars after sorting, set the top nope to the root so that the
4531 recalc actually works.
4533 2006-09-29 Chris Toshok <toshok@ximian.com>
4535 * LinkLabel.cs: more handling of the default link collection in
4536 the face of LinkArea manipulation. The default link collection
4537 contains 1 element (start=0,length=-1). If the user sets LinkArea
4538 to anything and the links collection is the default, clear it.
4539 Then only add the link if its nonempty. Fixes #79518.
4541 2006-09-29 Chris Toshok <toshok@ximian.com>
4543 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
4544 piece correctly when we hit a '\n'. Fixes #79517.
4546 2006-09-29 Chris Toshok <toshok@ximian.com>
4548 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
4549 change the binding of gdk_init_check to take two IntPtr's, and
4550 pass IntPtr.Zero for both of them. Fixes #79520.
4552 2006-09-29 Mike Kestner <mkestner@novell.com>
4554 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
4557 2006-09-28 Jackson Harper <jackson@ximian.com>
4559 * XplatUIX11.cs: When translating NC messages make sure we go from
4560 whole window to screen, not client window to screen.
4561 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
4562 method doesn't exist
4563 - Skip over controls that aren't forms when arranging.
4565 2006-09-28 Jackson Harper <jackson@ximian.com>
4567 * XplatUIWin32.cs: Clip the rect to the parent window.
4568 * XplatUIStructs.cs: Add clipping modes struct.
4569 * InternalWindowManager.cs: New private method that factors title
4570 bar heights in when calculating the pos of an NC mouse message.
4571 - Use SendMessage to force a paint when the form's size is changed
4572 instead of painting the decorations immediately.
4573 - Don't let the NC button click messages get to DefWndProc,
4574 because they will attempt to handle windowing themself, and this
4575 messes up z-order (it will put them in front of the scrollbars).
4576 * XplatUIX11.cs: Make sure that we don't reset window managers if
4577 we already have one (ie the window is an MDI window).
4579 2006-09-28 Chris Toshok <toshok@ximian.com>
4581 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
4582 menu code really needs going over.
4584 2006-09-27 Chris Toshok <toshok@ximian.com>
4586 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
4587 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
4588 window is maximizable. So, we need to make sure that even if we
4589 clear the border/wm frame of those functions, they're still
4590 available (basically, we remove the decoration without removing
4591 the function). Half the fix for #79338.
4593 2006-09-27 Chris Toshok <toshok@ximian.com>
4595 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
4598 2006-09-27 Chris Toshok <toshok@ximian.com>
4600 * Splitter.cs: reorder things a bit so that we don't actually
4601 draw/move the splitter until after calling OnSplitterMoving. This
4602 lets users cancel/disallow the movement by explicitly setting
4603 event.SplitX/SplitY. Fixes #79372.
4605 2006-09-27 Jackson Harper <jackson@ximian.com>
4607 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
4608 because it is most likely on a window being destroyed, and that
4609 will give us an X11 error.
4611 2006-09-27 Chris Toshok <toshok@ximian.com>
4613 * PropertyGridView.cs: half of the fix for #78190. Clicking on
4614 the dropdown button now toggles between showing and hiding the
4615 dropdown. Also, get rid of dropdown_form_showing and just use
4616 dropdown_form.Visible. We still don't do a grab, but I'll leave
4617 that part to someone who has handled Capture-fu before.
4619 2006-09-27 Chris Toshok <toshok@ximian.com>
4621 * DataGrid.cs: return false if alt isn't pressed when '0' is
4622 pressed. this keeps the '0' key from being swallowed, and fixes
4625 2006-09-27 Chris Toshok <toshok@ximian.com>
4627 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
4628 Calling Refresh (in response to a scrollbar event) screws up the
4629 scrollbar painting. Fixes bug #78923.
4631 2006-09-27 Chris Toshok <toshok@ximian.com>
4633 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
4634 then insert into hashtable" blocks threadsafe.
4636 2006-09-27 Chris Toshok <toshok@ximian.com>
4638 * MessageBox.cs (CreateParams): the styles should be |'ed with our
4639 baseclass's, since otherwise the
4640 ControlBox/MinimizeBox/MaximizeBox assignments above have no
4641 effect. This gets the close button back in messageboxes.
4643 2006-09-27 Chris Toshok <toshok@ximian.com>
4645 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
4646 flag, not just != 0. this makes flags that are actually multiple
4647 bits (like WS_CAPTION) work. fixes bug #79508.
4649 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
4651 * PageSetupDialog.cs: add support for getting and settings the
4652 paper size, source and orientation.
4654 2006-09-26 Chris Toshok <toshok@ximian.com>
4656 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
4657 and caption == "", we need to remove the resize handles as well as
4660 * Control.cs (set_Text): turns out that setting Text on a form
4661 should change the WM styles on the window, since if ControlBox ==
4662 false, the only way to get a window border is to have a non-""
4663 Text property. check winforms/forms/text.cs for an example. so,
4664 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
4665 update both window styles and title. This fixes a lot of dialogs
4666 (including the preferences dialog in MonoCalendar.)
4668 2006-09-26 Chris Toshok <toshok@ximian.com>
4670 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
4671 control isn't a Form), call Win32ShowWindow to hide the window,
4672 but don't update the control Visible property. When we reparent
4673 back to a parent control, call SetVisible in order for the
4674 window's visibility to be reinstated.
4676 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
4679 * Control.cs (ControlCollection.Remove): remove that value.Hide()
4680 call for good, since it breaks MonoCalendar (and other things I'm
4681 sure.) Also, set all_controls to null *after* the owner calls,
4682 which end up regenerating it.
4683 (ChangeParent): allow new_parent to be == null, passing
4684 IntPtr.Zero down to XplatUI.
4686 this fixes #79294 the right way.
4688 2006-09-26 Mike Kestner <mkestner@novell.com>
4690 * GridEntry.cs : internal SetParent method.
4691 * PropertyGrid.cs : attach to property changed on the proper
4692 target if we have a hierarchical grid with subobjects. Setup
4693 GridItem.Parent for hierarchical items.
4694 * PropertyGridView.cs : Set value on the correct target for
4695 hierarchical grids. [Fixes #78903]
4697 2006-09-26 Chris Toshok <toshok@ximian.com>
4699 * Control.cs (ChildNeedsRecreating): this should return true if
4700 either we're being recreated and the child is in our list, or our
4701 parent is waiting for our recreation.
4703 2006-09-26 Chris Toshok <toshok@ximian.com>
4705 * Control.cs (ControlCollection.Remove): reinstate the
4706 value.Hide() call as suggested in bug #79294.
4708 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
4710 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
4711 coordinates (versus a relative move).
4713 2006-09-26 Chris Toshok <toshok@ximian.com>
4715 * Control.cs: rework child recreation a little bit. It turns out
4716 that we race between the DestroyNotify the WM_DESTROY message. If
4717 the parent gets its DestroyNotify before the child gets the
4718 WM_DESTROY message, the child ends up not recreating (since the
4719 parent finishes its recreation on DestroyNotify, and the child
4720 checks ParentIsRecreating.)
4722 So, instead we store off a list of all the child controls which
4723 need to be recreated when the parent control starts to recreate
4724 itself. Then, when child controls get their WM_DESTROY message we
4725 check to see if they're in the parent's pending recreation list,
4726 and if so, we recreate. This removes all dependency on ordering
4727 from the code and fixes the initial MonoCalendar upgrade dialog.
4729 2006-09-26 Jackson Harper <jackson@ximian.com>
4731 * TextControl.cs: Use the Line to get the length of the line,
4732 since soft line breaks can change the end line.
4734 2006-09-26 Chris Toshok <toshok@ximian.com>
4736 * Control.cs (ControlCollection.AddImplicit): don't add the
4737 control again if it's already in one of our lists. This keeps us
4738 from adding controls over and over again for comboboxes when their
4739 handle gets recreated (as the combobox adds implicit controls in
4740 OnHandleCreated). Fixes the X11 errors in bug #79480.
4742 2006-09-26 Jackson Harper <jackson@ximian.com>
4744 * TextControl.cs: When deleting characters make sure that any
4745 orphaned zero lengthed tags get deleted.
4746 - Fix ToString for zero lengthed tags.
4748 2006-09-25 Jackson Harper <jackson@ximian.com>
4750 * TextControl.cs: When getting a tag at the location there can be
4751 multiple tags at the same spot, these are 0-lengthed tags that
4752 appear when extra formatting has been stuck in a location. We
4753 need to pull out the last of these 0 lengthed tags.
4755 2006-09-25 Jackson Harper <jackson@ximian.com>
4757 * TextControl.cs: Fix print out in debug method.
4758 * TextBoxBase.cs: When text is set bail if we are setting to the
4761 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
4763 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
4764 It is now possible to change the selected index in a FontXXXListBox
4765 with the up and down arrow keys from the FontXXXTextBoxes.
4766 Also, send the FontXXXTextBox mouse wheel event to the corresponding
4767 FontXXXListBoxes to match ms.
4769 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
4771 * SystemInformation.cs: Return a clone of the theme's MenuFont because
4772 anyone can dispose it, anytime. All other properties returns enums,
4773 structs or basic types so they don't need such tricks.
4775 2006-09-22 Jackson Harper <jackson@ximian.com>
4782 * XplatUIDriver.cs: Update interface to add a primary selection
4783 flag, so the driver can use the primary selection buffer if
4785 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
4787 * RichTextBox.cs: We need to supply the data object to paste now
4788 (so we can choose to supply CLIPBOARD or PRIMARY).
4789 * TextBoxBase.cs: Supply data object to paste (see above).
4790 - Middle click uses the primary selection data object.
4792 2006-09-21 Chris Toshok <toshok@ximian.com>
4794 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
4795 of SetWMStyles. It's still a rat's nest and is largely
4796 order-dependent which I dislike immensely. This also fixes the X
4797 button disappearing from toplevel forms.
4799 2006-09-21 Mike Kestner <mkestner@novell.com>
4801 * ListBox.cs: move Jordi's click/dblclick raising code to the
4804 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
4806 * ListBox.cs: Fixes 79450
4808 2006-09-21 Mike Kestner <mkestner@novell.com>
4810 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
4811 to deal with people updating the TreeNodeCollection after the tree
4812 is disposed. "Fixes" 79330.
4814 2006-09-20 Jackson Harper <jackson@ximian.com>
4816 * TextControl.cs: Push the cursor record onto the undo stack
4817 before the delete action. This fixes 78651.
4819 2006-09-20 Jonathan Chambers <joncham@gmail.com>
4821 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
4822 CreateParams. Fixes 79329.
4824 2006-09-19 Chris Toshok <toshok@ximian.com>
4826 * XplatUIX11.cs: a couple of blanket code massage passes to clean
4827 things up a bit. First, get rid of the NetAtoms array (and the NA
4828 enum), and just embed the atoms as static fields. Also, add a
4829 couple of functions (StyleSet and ExStyleSet) to clean up all the
4830 bitmask testing of styles.
4832 * X11Structs.cs: remove the NA enum, not needed anymore.
4834 2006-09-19 Chris Toshok <toshok@ximian.com>
4836 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
4837 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
4838 added cleanup to get MessageBox titles appearing again, which were
4839 broken by my earlier fix for caption-less/ControlBox-less windows.
4841 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
4843 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
4844 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
4845 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
4846 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
4847 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
4848 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
4849 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
4850 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
4851 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
4852 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
4853 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
4855 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
4856 ToolStripButton.cs: Stubs needed for above.
4857 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
4859 2006-09-15 Chris Toshok <toshok@ximian.com>
4862 - make the MessageQueues hashtable Synchronized.
4864 - SendMessage: if the Hwnd is owned by a different thread, use the
4865 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
4866 thread. Fixes bug #79201.
4868 2006-09-15 Chris Toshok <toshok@ximian.com>
4870 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
4871 ControlBox == false, we disallow maximize/minimize/close. If the
4872 form Caption is "" we also disallow move (and get rid of the Title
4873 decoration). Unfortunately, regardless of how things are set,
4874 we're stuck with the Title and WM menu.
4876 2006-09-15 Chris Toshok <toshok@ximian.com>
4878 * Application.cs: add locking around the static message_filters
4879 ArrayList, part of #79196.
4881 2006-09-15 Chris Toshok <toshok@ximian.com>
4883 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
4884 Form.ControlBox == false, the window has no titlebar nor resize
4885 handles. fixes bug #79368.
4887 2006-09-15 Chris Toshok <toshok@ximian.com>
4889 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
4890 >= 0. Fixes bug #79370.
4892 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
4893 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
4895 Add properties: LayoutEngine, Margin, DefaultMargin.
4896 Add method: GetPreferredSize.
4897 Move layout logic from PerformLayout to layout engines.
4899 2006-09-13 Chris Toshok <toshok@ximian.com>
4901 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
4902 fix for #79326 broke #78718, so this change addresses that.
4904 - in SendWMDestroyMessages remove the call to
4905 CleanupCachedWindows, since we might be recreating the control and
4906 need to maintain the references to right Hwnd handles. Also, set
4907 the zombie flag to true for each of the children in the hierarchy
4908 instead of calling hwnd.Dispose. This will cause GetMessage to
4909 ignore all events for the window except for DestroyNotify.
4911 - In GetMessage, ignore messages except for DestroyNotify for
4914 * Control.cs: revert the is_recreating fix from the last
4915 ChangeLog. It's definitely "right", but it breaks switching from
4916 an MDI form to a non-MDI form. Will need to revisit that.
4918 * Hwnd.cs: add a zombie flag, which means "the
4919 client_window/whole_window handles are invalid, but we're waiting
4920 for the DestroyNotify event to come in for them". Set the flag to
4921 false explicitly if setting WholeWindow/ClientWindow, and also
4924 2006-09-13 Chris Toshok <toshok@ximian.com>
4926 * XplatUIX11.cs: rework window destruction slightly.
4928 - when destroying the windows associated with a control, we don't
4929 need 2 separate XDestroyWindow calls. Just the one for the
4930 whole_window (or for client_window if whole_window is somehow
4931 IntPtr.Zero -- can this happen?) is enough.
4933 - reworked SendWMDestroyMessages slightly, so we always dispose
4934 the child control hwnd's after sending the messages.
4936 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
4937 the two places it was used (one was even using hwnd.Handle and the
4938 other hwnd.client_window. ugh), adding another call in
4939 SendWMDestroyMessages. We need this new call because now the
4940 DestroyNotify events in the queue will be ignored for the child
4941 controls (as their hwnd's were disposed, and the window id's
4942 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
4944 - this fixes bug #79326.
4946 2006-09-13 Chris Toshok <toshok@ximian.com>
4948 * Control.cs: don't always set is_recreating to false at the end
4949 of RecreateHandle, since sometimes we're not done (and won't be
4950 until WndProc handles the WM_DESTROY message). Also, set
4951 is_recreating to false in the WM_DESTROY handling code. Part of
4952 the fix for bug #79326.
4954 2006-09-13 Miguel de Icaza <miguel@novell.com>
4956 * X11DesktopColors.cs: Start the droppage of debugging messages.
4958 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
4960 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
4962 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
4964 2006-09-12 Chris Toshok <toshok@ximian.com>
4966 * DataGrid.cs (get_ListManager): if the list_manager is null, try
4967 to create it using SetDataSource. Fixes bug #79151.
4969 2006-09-11 Chris Toshok <toshok@ximian.com>
4971 * XEventQueue.cs: add a DispatchIdle property.
4973 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
4974 either the queue is null, or the queue has DispatchIdle set to
4976 (DoEvents): set queue.DispatchIdle to false around the
4977 peek/translate/dispatch message loop in this method. This keeps
4978 Application.Doevents from emitting idle events. Part of the fix
4981 2006-09-11 Chris Toshok <toshok@ximian.com>
4983 * DataGrid.cs (set_DataSource): make this work for both the
4984 winforms/datagrid test and ReportBuilder. It seems as though when
4985 we've created a ListManager (or maybe it's if we have a
4986 BindingContext?), when we set the DataSource it clears the
4987 DataMember to "". otherwise we reuse the datamember. Fixes bug
4990 2006-09-11 Chris Toshok <toshok@ximian.com>
4992 * XplatUIX11.cs: deal with queue being null, which happens in all
4993 the Clipboard functions. Fixes one of the two problems mentioned
4996 2006-09-11 Chris Toshok <toshok@ximian.com>
4998 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
4999 button on various spots (including outside the menu) works closer
5000 to MS, and doesn't crash. Fixes #79343.
5002 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
5004 * ListView.cs: Do not initialize item_sorter in init. To match MS,
5005 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
5006 and the internal comparer is set. When a new ListViewItemSorter is set,
5007 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
5008 was specified. No further processing is necessary if SortOrder is set
5009 to it's current value. If Sorting is modified to None, and View is
5010 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
5011 (either custom or our internal ItemComparer) to null, on 1.0 profile
5012 only set item_sorter to null if its our internal IComparer. If Sorting
5013 is modified to Ascending or Descending, then use our internal IComparer
5014 if none is set, and if the current IComparer is our internal one then:
5015 on 2.0 profile always replace it with one for new Sorting, and on 1.0
5016 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
5017 Enum.IsDefined to verify whether a valid View value is specified in
5018 its setter. Automatically sort listview items when listview is
5019 created. In Sort, do nothing if ListView is not yet created, or if
5020 no item_sorter is set (no Sorting was set, Sorting was explicitly set
5021 to None or ListViewItemSorter was set to null). Added Sort overload
5022 taking a bool to indicate whether the ListView should be redrawn when
5023 items are sorted (we use this in ListViewItemCollection to avoid double
5024 redraws). Modified our internal IComparer to take the sort order into
5025 account. In Add and AddRange methods of ListViewItemCollection, also
5026 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
5027 view), but use overload with noredraw option to avoid double redraw.
5028 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
5029 true when View is Tile, and do the same when attempting to set View to
5030 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
5031 for selected/checked indices, as it involves overhead when sorting is
5032 done while these collections are not used all that often. Instead
5033 we'll build the indices on demand. Modified IList implementation of
5034 CheckedIndexCollection to use public methods if object is int.
5035 Modified CheckedListViewItemCollection to hide checked items if
5036 ListView.CheckBoxes is false. Removed LAMESPEC remark in
5037 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
5038 IList implementation in SelectedIndexCollection to use public methods
5039 if object is int. Modified SelectedListViewItemCollection to hide
5040 selected items if listview is not yet created.
5041 * ListViewItem.cs: CheckedIndices list no longer needs to be
5042 maintained separately (see ListView changes). Also clone font, fixes
5045 2006-09-11 Mike Kestner <mkestner@novell.com>
5047 * ComboBox.cs: if we are updating the contents of the currently
5048 selected index, refresh the control or the textbox selection.
5051 2006-09-11 Mike Kestner <mkestner@novell.com>
5053 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
5054 the 'specified' logic has been moved there. This seems like a bug
5055 in Control.cs, since our current SetBoundsCore completely ignores
5056 the specified parameter. Peter's commit seems to indicate that is
5057 the way the MS control implementation works. [Fixes #79325]
5059 2006-09-10 Jonathan Chambers <joncham@gmail.com>
5061 * XplatUI.cs: Set default_class_name to be composed
5062 of current domain id. This allows MWF to be loaded in multiple
5065 2006-09-09 Miguel de Icaza <miguel@novell.com>
5067 * X11Keyboard.cs: If we are unable to obtain the input method, do
5068 not call CreateXic to create the input context. Should fix
5071 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
5073 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
5074 Simplified gnome support by adding more pinvokes to get the
5075 icon for a file or mime type.
5077 2006-09-08 Jackson Harper <jackson@ximian.com>
5079 * MenuAPI.cs: Deslect popup context menu items before closing the
5080 window, so that you don't see the previously selected item
5081 selected when you reopen the menu.
5082 * TextControl.cs: Update the cursor position even if we don't have
5083 focus. This fixes typing in things like the ComboBox. I'm not
5084 totally sure we should always set the visibility if we don't have
5085 focus, but couldn't find any corner cases where the cursor showed
5086 up when it shouldn't.
5088 2006-09-08 Chris Toshok <toshok@ximian.com>
5090 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
5091 our arrays are length 256. & 0xff before indexing. Fixes the
5092 crash in bug #78077.
5094 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096 * ThemeWin32Classic.cs:
5097 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
5098 is true. Handle that check box too.
5100 2006-09-07 Chris Toshok <toshok@ximian.com>
5102 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
5105 2006-09-07 Chris Toshok <toshok@ximian.com>
5107 * Control.cs: in set_BackColor only do the work if
5108 background_color != value.
5110 * XplatUIX11.cs: move the clearing of invalid areas (both client
5111 and nc) to the same block of code where we set (nc_)expose_pending
5112 to false. That is, move it from PaintEventEnd to PaintEventStart,
5113 so things that cause invalidates from within OnPaint will trigger
5114 another call to OnPaint. Fixes bug #79262.
5116 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
5118 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
5119 * FileDialog.cs: Fix typo
5121 2006-09-07 Jackson Harper <jackson@ximian.com>
5123 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
5124 for tab pages if they have any.
5126 2006-09-06 Mike Kestner <mkestner@novell.com>
5128 * Splitter.cs: use the "current" rect when finishing drag handle
5129 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
5131 2006-09-06 Mike Kestner <mkestner@novell.com>
5133 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
5134 support offset splitters. [Fixes #79298]
5136 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
5138 * Mime.cs: Fixed a bug that could override the global mime type
5141 2006-09-05 Jackson Harper <jackson@ximian.com>
5143 * TabControl.cs: Better calculation method for setting the slider
5144 pos. Prevents crashes on really wide tabs.
5145 - Draw Image on tab pages if an image list is used.
5147 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5149 * MonthCalendar.cs: When Font changes, the Size should be
5150 updated to fit the new font's space requirements.
5152 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
5154 * ListBox.cs: If the items are cleared with Items.Clear set
5157 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5159 * MonthCalendar.cs: Handle arrow keys as input keys. Also
5160 fire DateChanged event instead of DateSelected event when
5161 the date was changed by keyboard interaction.
5163 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5165 * DateTimePicker.cs: Handle DateChanged for the associated
5166 month_calendar control, and set month_calendar.Font from
5167 OnFontChanged method, as well as resize the height of the
5168 control when needed. Make PreferredHeight proportional.
5170 2006-09-01 Chris Toshok <toshok@ximian.com>
5172 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
5175 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
5177 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
5179 * FileDialog.cs: Set ClientSize instead of window size, to allow space
5180 for decorations (Fixes #79219)
5182 2006-09-01 Mike Kestner <mkestner@novell.com>
5184 * ComboBox.cs: first stab at sorting plus some selection handling
5185 fixes to bring us more in line with MS behavior. Also switches back
5186 to index based selection. Alternative patches for index-based
5187 selection were provided by Jackson Harper, Carlos Alberto Cortez,
5188 and latency@gmx.de on bug 78848. I assume they were similar to this
5189 code I've had simmering in my tree forever.
5192 2006-09-01 Chris Toshok <toshok@ximian.com>
5194 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
5195 when setting list position guard against ending up with a -1 index
5196 (the other part of the fix for #78812). Should probably make sure
5197 we don't need the analogous fix in the ItemDeleted case.
5200 - in SetDataSource, work around the fact that the way
5201 OnBindingContextChanged is invoked will cause us to re-enter this
5202 method. I'll remove the hack once I investigate
5203 OnBindingContextChanged.
5205 - fix the logic in set_DataSource and set_DataMember (basically
5206 what to do if the other of the two is null.)
5208 - in OnListManagerItemChanged, we need to take into account the
5209 edit row when deciding whether or not to call RecreateDataGridRows
5210 (part of the fix for #78812).
5212 2006-09-01 Jackson Harper <jackson@ximian.com>
5214 * Splitter.cs: Don't do anything if there is no control to affect
5215 (prevents us from crashing in weird tet cases).
5216 * TreeView.cs: Bounding box for the mouse movement reverting
5217 focus/selection back to previously selected node. This matches
5218 MS, and makes the tree a lot more useable.
5219 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
5220 use clipping so they are not drawn. This fixes when the control
5221 is set to have a transparent background, or if it was over an
5224 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
5226 * MimeIcon.cs: Improved handling for reading default icons when
5227 using gnome (2.16 made it necessary). Check and read svg icons
5228 first, then 48x48 and then 32x32 icons.
5230 2006-08-31 Chris Toshok <toshok@ximian.com>
5232 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
5235 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
5236 ProcessKeyPreview. Fixes part of #77806.
5238 * DataGrid.cs: big patch.
5240 - revert the queueing up of DataSource/DataMember if inside
5241 BeginInit/EndInit calls. That's not the way the datagrid achieves
5242 its delayed databinding. Instead, call SetDataSource in
5243 OnBindingContextChanged. This mimic's MS's behavior, and fixes
5246 - Also, it wasn't mentioned in #78811, but the test case exhibits
5247 behavior that was lacking in our datagrid implementation - Columns
5248 that have mapping names that don't exist in the datasource's
5249 properties aren't shown. Yuck. To fix this I added the bound
5250 field to the column style, and basically any calculation to figure
5251 out anything about columns uses a loop to find the bound columns.
5252 still need to investigate if I can cache an array of the bound
5253 columns or if the indices must be the same.
5255 - When setting CurrentCell, we no longer abort if the cell being
5256 edited was in the add row. This fixes the other part of #77806.
5258 - The new code also fixes #78807.
5260 * ThemeWin32Classic.cs: perpetrate the same disgusting
5261 column.bound field hack, and only render bound fields.
5263 2006-08-31 Chris Toshok <toshok@ximian.com>
5265 * DataGridColumnStyle.cs: add bound field. this field is true if
5266 the datasource has a property corresponding to the mapping name.
5268 * DataGridTableStyle.cs: set the bound field on the column styles
5269 depending on whether or not we have a column for that property.
5271 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
5273 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
5274 splitter control (fixes #79228)
5276 2006-08-31 Chris Toshok <toshok@ximian.com>
5278 * DataGridColumnStyle.cs: we need to delay the assignment of
5279 property descriptor until the last possible moment due to the lazy
5280 databinding stuff in the datagrid. Also, fix the exceptions
5281 thrown by CheckValidDataSource to match MS.
5283 2006-08-31 Jackson Harper <jackson@ximian.com>
5285 * Form.cs: When activated select the active control, if there is
5286 no active control, we select the first control.
5287 * XplatUIX11.cs: If there is no focus control when we get a
5288 FocusIn event, find the toplevel form and activate it. This
5289 occurs when you popup a window, it becomes the focus window, then
5290 you close that window, giving focus back to the main window.
5292 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5295 * ThemeWin32Classic.cs: Cache Font in bold style, as well
5296 as StringFormat with Center alignments in MonthCalendar,
5297 instead of creating new ones when drawing the control.
5298 Also, draw the month name in bold style.
5300 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
5303 - PerformLayout(): It would seem MS performs the fill even if the
5304 control is not visible (part of #79218 fix)
5305 - ResetBackColor(): Use the setter to reset the color, to allow
5306 overriders to catch the change.
5308 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
5309 - CreateHandle(): dito (part of $79218 fix)
5310 - Don't set an icon if we have a dialog
5311 * ScrollableControl.cs:
5312 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
5313 - ScrollIntoView(): No need to scroll if control is already visible
5314 (resolves fixme and fixes #79218)
5316 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5318 * MonthCalendar.cs: Change proportions in SingleMonthSize
5319 to match the aspect of the original control.
5321 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
5323 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
5324 get updated when they get maximized.
5326 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
5328 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
5330 2006-08-29 Chris Toshok <toshok@ximian.com>
5332 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
5334 2006-08-29 Jackson Harper <jackson@ximian.com>
5336 * TreeView.cs: Need to track selected node and highlighted node,
5337 they aren't always the same thing, when the mouse is down on a
5338 node it is hilighted, but not selected yet.
5339 - Do the HideSelection stuff right
5340 - Need to focus on rbutton mouse down. And redraw selection when
5341 right click is mouse upped.
5343 2006-08-29 Mike Kestner <mkestner@novell.com>
5345 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
5346 when SubItems.Count < Columns.Count. [Fixes #79167]
5348 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
5350 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
5352 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
5354 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
5355 from X. Only send based on ConfigureNotify if we don't have the
5356 correct location in hwnd (if the window manager moved us)
5358 2006-08-28 Mike Kestner <mkestner@novell.com>
5360 * ListView.cs: remove a TODO.
5361 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
5362 [Fixes ListView part of #79166]
5364 2006-08-28 Mike Kestner <mkestner@novell.com>
5366 * ListView.cs: move wheel handler to parent since it is focused
5367 instead of the item_control now. [Fixes #79177]
5369 2006-08-28 Mike Kestner <mkestner@novell.com>
5371 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
5372 when the control is focused. [Fixes #79171]
5374 2006-08-28 Mike Kestner <mkestner@novell.com>
5376 * ListView.cs: size the item and header controls for empty and
5378 * ThemeWin32Classic.cs: draw disabled backgrounds.
5381 2006-08-28 Chris Toshok <toshok@ximian.com>
5383 * Form.cs: remove unused "active_form" static field.
5385 * Hwnd.cs: lock around accesses to static windows collection.
5387 * Application.cs: lock threads in Exit ().
5389 2006-08-28 Chris Toshok <toshok@ximian.com>
5391 * NativeWindow.cs: lock around accesses to window_collection.
5393 2006-08-28 Chris Toshok <toshok@ximian.com>
5395 * Control.cs: err, fix this the right way, by locking on controls
5396 when using it. not by making it synchronized.
5398 2006-08-28 Chris Toshok <toshok@ximian.com>
5400 * Control.cs: make the static "controls" field synchronized, as it
5401 gets updated from multiple threads.
5403 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5405 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
5406 Prevent other threads from exiting when calling thread sets quit state.
5407 * XEventQueue.cs: Added PostQuitState property
5409 2006-08-27 Chris Toshok <toshok@ximian.com>
5411 * AsyncMethodData.cs: add a slot for the window handle.
5413 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
5414 window (the destination control's window, not the foster window).
5416 * Control.cs (BeginInvokeInternal): store the window's handle in
5417 the AsyncMethodData.
5420 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5423 - PostQuitMessage: Removed resetting S.D display handle, we might have
5424 another loop started after calling PostQuitMessage (Fixes #79119)
5425 - Created destructor to reset S.D handle
5427 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5429 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
5431 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5433 * TextControl.cs (Insert): Update the caret position even if we don't
5434 have a handle yet, just don't call the driver in that case.
5435 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
5436 to the end of the new selection text (Fixes #79184)
5438 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5440 * Form.cs (Activate): Only activate if the handle is created)
5442 - Mark window as invisible when it's disposed
5443 - Check if window handle is created when setting window visible,
5444 instead of relying just on the is_created variable
5445 - Check if object is disposed when creating the control (Fixes #79155)
5447 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5449 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
5450 when allowing layout again. Otherwise we re-generate the anchoring
5451 distance to the border again and actually alter what the user wanted
5452 This is ugly, it'd be better if we used DisplayRectangle instead of
5453 ClientRectangle for Control.UpdateDistances, but that causes us to
5454 have other problems (initial anchoring positons would be wrong)
5457 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5460 - The size and location setters shouldn't go directly to
5461 SetBoundsCore, but to SetBounds, which triggers layout on the
5462 parent, then calls SetBoundsCore. (Related to fix for #78835)
5463 - SetBounds: Moved actual location update code into this function
5464 from SetBoundsCore, to match MS. Added call to PerformLayout if
5465 we have a parent (to trigger resizing of anchored parents if the
5466 child size has changed (see testcase for #78835)
5467 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
5469 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
5471 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5473 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
5474 System.Drawing when a toplevel window gets closed; there might
5475 be other toplevel windows belonging to the same app (Fixes #78052)
5477 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
5479 * FileDialog.cs: After reading FileDialog settings from mwf_config
5480 use Desktop prefix only if a real folder doesn't exist anymore.
5481 * FontDialog.cs: Added char sets.
5482 It is now possible to select the font, size or style with the
5485 2006-08-25 Kornél Pál <kornelpal@gmail.com>
5487 * PrintPreviewDialog.cs: Use assembly name constants.
5489 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5491 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
5492 scrollbar from whacking it's buttons)
5494 2006-08-24 Chris Toshok <toshok@ximian.com>
5496 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
5497 in this patch (aggregating setting Left/Top/Width/Height to
5498 setting Bounds on the scrollbars), but the crux of the fix is in
5499 Recalculate, where we scroll by the remaining scroll_position if
5500 we're hiding a scrollbar. The 2*$5 reward in the comment is
5503 2006-08-24 Jackson Harper <jackson@ximian.com>
5506 * MdiWindowManager.cs: If the form is made a non-mdi window we
5507 need to remove the form closed event so that closing forms works
5510 2006-08-24 Jackson Harper <jackson@ximian.com>
5512 * Control.cs: Make IsRecreating internal so that the driver can
5514 - Temporarily remove the Hide when controls are removed, its
5515 making a whole bunch of things not work because visibility isn't
5516 getting reset elsewhere correctly
5517 * Form.cs: Need to do a full handle recreation when the mdi parent
5519 * XplatUIX11.cs: If we are recreating handles don't dispose the
5520 HWNDs. What was happening is the handles were being recreated in
5521 SendWMDestroyMessages, but then flow continued on in that method
5522 and destroyed the new handles.
5524 2006-08-23 Jackson Harper <jackson@ximian.com>
5526 * Form.cs: MdiClient is always at the back of the bus
5527 * Control.cs: When the order of items in the collection is changed
5528 we need to reset the all_controls array
5529 - do the same sorta setup thats done when adding a control when a
5530 control is set on the collection.
5532 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5534 * TextBoxBase.cs (get_Text): Return an empty array if our document
5535 is empty (fixes #79052)
5537 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5539 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
5540 on WM_SYSCHAR messages (fixes #79053)
5542 2006-08-23 Chris Toshok <toshok@ximian.com>
5544 * DataGrid.cs: fix flickering when scrolling vertically.
5546 2006-08-23 Chris Toshok <toshok@ximian.com>
5548 * DataGrid.cs (EndEdit): only invalidate the row header when we
5551 2006-08-23 Chris Toshok <toshok@ximian.com>
5553 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
5554 methods. fixes the flicker when scrolling around.
5556 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5558 * FileDialog.cs: Making sure the control is created before we get a
5559 chance to use it with BeginInvoke (Fixes #79096)
5561 2006-08-23 Chris Toshok <toshok@ximian.com>
5563 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
5564 width to use when painting the rows.
5566 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5569 - Throw ArgumentException if a negative value is passed to SelectionLength
5570 - Update the selection end if start is moved. end needs to be always
5571 after start. (Fixes #79095)
5572 - Track selection length; MS keeps the selection length even if start
5573 is changed; reset on all other operations affection selection
5575 2006-08-22 Jackson Harper <jackson@ximian.com>
5577 * TreeView.cs: Make sure both scrollbars get displayed and sized
5578 correctly when the other bar is visible.
5579 - Use the original clip rectangle for checking if the area between
5580 the two scrollbars is visible, not the viewport adjusted clipping
5583 2006-08-22 Jackson Harper <jackson@ximian.com>
5585 * Binding.cs: We don't use IsBinding because it requires the
5586 control to be created, which really shouldn't be necessary just to
5587 set a property on the control.
5589 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5591 * ComboBox.cs: Some CB.ObjectCollection methods must throw
5592 ArgumentNullReferenceException when the argument is null.
5594 2006-08-21 Jackson Harper <jackson@ximian.com>
5596 * Timer.cs: Track the thread that the timer is started in (NOT
5597 CREATED), this way messages for it will only be triggered on its
5599 * XEventQueue.cs: Track the timers here, this makes timers per
5601 * XplatUIX11.cs: The timers are moved to the XEventQueue.
5603 2006-08-19 Chris Toshok <toshok@ximian.com>
5605 * XplatUIX11.cs: after further communication with pdb, we get the
5606 best of both worlds. SetZOrder working for un-Mapped windows, and
5607 no X errors for un-mapped windows.
5609 2006-08-19 Chris Toshok <toshok@ximian.com>
5611 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
5612 as it was causing pdn toolbars to not have the correct stacking.
5614 2006-08-18 Mike Kestner <mkestner@novell.com>
5616 * ListView.cs : guard against negative ClientArea.Width in scrollbar
5617 calculation. Not sure why control should ever be setting a negative
5618 width though. Fixes #78931.
5620 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5622 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
5623 null items in ObjectCollection class.
5624 * ListBox.cs.: Likewise.
5626 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
5628 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
5629 as the base method in ThemeWin32Classic should work fine.
5632 2006-08-18 Jackson Harper <jackson@ximian.com>
5634 * Binding.cs: When validating if the value entered doesn't convert
5635 properly reset to the old value.
5636 * RadioButton.cs: Don't fire click when we get focus.
5638 2006-08-18 Jackson Harper <jackson@ximian.com>
5640 * FileDialog.cs: Paint the selection on the directory combobox the
5643 2006-08-17 Jackson Harper <jackson@ximian.com>
5645 * ErrorProvider.cs: Don't allow the error control to be selected.
5646 * Control.cs: Don't send the SetFocus messages, the control
5647 activation will do this, and if we do it blindly here validation
5650 2006-08-17 Jackson Harper <jackson@ximian.com>
5653 * ContainerControl.cs: Make validation events fire in the correct
5654 order. TODO: For some reason the first validation event is not
5657 2006-08-17 Mike Kestner <mkestner@novell.com>
5659 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
5661 2006-08-17 Mike Kestner <mkestner@novell.com>
5663 * ComboBox.cs : implement scroll wheel support for popped-down
5664 state. Fixes #78945.
5666 2006-08-17 Jackson Harper <jackson@ximian.com>
5668 * TreeView.cs: Specify treeview actions (old patch that didn't get
5669 committed for some reason).
5670 - Don't let the mouse wheel scroll us too far. Just want to make
5671 the bottom node visible, not scroll it all the ways to the top.
5673 2006-08-17 Jackson Harper <jackson@ximian.com>
5675 * XplatUIX11.cs: Mouse wheel events go to the focused window.
5677 2006-08-17 Mike Kestner <mkestner@novell.com>
5679 * ComboBox.cs : don't do mouseover selection in simple mode.
5681 2006-08-16 Jackson Harper <jackson@ximian.com>
5683 * Form.cs: Fire the closing events for all the mdi child windows
5684 when a window is closed. If the cancel args are set to true, the
5685 main window still gets the event fired, but it doesn't not close.
5686 * MdiWindowManager.cs: Do this closing cleanup in a Closed
5687 handler, instead of when the button is clicked, so cancelling the
5688 close works correctly.
5689 * ComboBox.cs: Send the mouse down to the scrollbar.
5691 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5693 * ListBox.cs: When passing 'null' to SelectedItem,
5694 set SelectedIndex to -1, to unselect items. This is the
5695 observed behaviour in .Net.
5697 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
5699 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
5700 MS flags saying there won't be any. (fixes #78800)
5701 * Control.cs (HandleClick): Made virtual
5703 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
5705 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
5706 cultures. Fixed bug #78399.
5708 2006-08-16 Jackson Harper <jackson@ximian.com>
5710 * Form.cs: Use the MdiClients MdiChildren property to access
5711 MdiChildren instead of creating the array from the child controls.
5712 * MdiClient.cs: Maintain a separate array of the mdi children, so
5713 that insertion order is maintained when the Z-order is changed.
5715 2006-08-16 Mike Kestner <mkestner@novell.com>
5717 * ListView.cs : add an ItemComparer and default to it for sorting.
5718 Fixes #79076, but sorting needs a complete overhaul to be compat with
5721 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5723 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
5725 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5727 * Hwnd.cs (Mapped): Properly traverse the tree
5729 2006-08-15 Chris Toshok <toshok@ximian.com>
5731 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
5732 pass manager.Current.GetType() to ParseData. It has to be the
5733 property type. So, hold off doing the ParseData until we're in
5734 SetPropertyValue where we know the type. This fixes the crash in
5735 #78821 but the textbox is still empty.
5737 2006-08-15 Chris Toshok <toshok@ximian.com>
5740 - when we're scrolling, only call Edit() again if the
5741 current cell is still unobscured. Fixes bug #78927.
5742 - when handling mousedown on a cell, ensure the cell is visible
5743 before calling Edit.
5744 - remove the properties from DataGridRow, and remove the
5745 DataGridParentRow class altogether.
5748 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5750 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
5751 fire OnTextChanged by ourselves. There's no point calling base,
5752 we don't set the base value anywhere else. Fixes #78773.
5754 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5756 * ListBox.cs: Call CollectionChanged when modifying
5757 an item from Items indexer, to update the actual items
5760 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5762 * PrintDialog.cs: Small fixes for focus and a pair of checks,
5763 to match .Net behaviour.
5765 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5767 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
5769 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5771 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
5773 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5775 * MessageBox.cs: Prevent potential NRE exception.
5776 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
5778 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5780 * MessageBox.cs: Calculate the owner of a messagebox, also make
5781 it topmost. Fixes #78753
5783 2006-08-14 Chris Toshok <toshok@ximian.com>
5785 * XplatUIX11.cs: A couple of fixes so that metacity will let us
5786 programmatically move windows. first, set the PPosition hint as
5787 well as the USPosition hint. Second include some code from pdb
5788 that sets the window type to NORMAL when we set the transient for
5789 hint. This is because, in the absence of a window type, metacity
5790 thinks any window with TransientFor set is a dialog, and refuses
5791 to let us move it programmatically. fascists.
5793 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5795 * XplatUIX11.cs: When setting normal hints, take into consideration
5796 an different hints previously set so we don't delete them (fixes #78866)
5798 2006-08-12 Chris Toshok <toshok@ximian.com>
5800 * ToolBarButton.cs: make Layout return a boolean, if something to
5801 do with the button's layout changed.
5804 - add another parameter to Redraw, @force, which all existing
5806 - make the Layout function return a boolean which is true if the
5807 layout has actually changed. Redraw now uses this (and @force)
5808 to determine when to invalidate. At present the only place
5809 where @force can be false is the call from OnResize, when
5810 background_image == null. So, resizing a toolbar when the
5811 layout doesn't change results in no drawing.
5813 2006-08-12 Chris Toshok <toshok@ximian.com>
5815 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
5816 the VScrollBar and HScrollbar reversed. oops.
5818 * DataGrid.cs: fix the logic that assigns sizes to the implicit
5819 scrollbars. we were assigning them twice (once in
5820 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
5821 therefore causing two scrollbar resizes (and redraws?) to happen
5824 2006-08-12 Chris Toshok <toshok@ximian.com>
5826 * ToolBarButton.cs: redraw the entire button if the theme tells us
5829 * Theme.cs: add ToolBarInvalidateEntireButton.
5831 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
5832 buttons, just the border.
5834 * ThemeNice.cs: redraw the entire toolbar button since we need to
5835 draw the highlight image.
5837 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
5838 we need to redraw the entire button (not just the border).
5840 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5842 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
5843 for vertical bars. Fixes the mismatches shown by #78513
5845 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
5847 * FileDialog.cs: If a saved/remembered path doesn't exist
5848 anymore, fall back to "Desktop".
5850 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5852 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
5853 parent. It's apparently legal to not have one
5855 - SetZOrder: Don't try to set Z-Order on an unmapped window
5856 - CreateWindow: 0,0 are legal coordinates for a window. don't move
5857 it unless the coordinates are negative
5859 2006-08-10 Mike Kestner <mkestner@novell.com>
5861 * ListControl.cs: allow null for DataSource. Clear DisplayMember
5862 when setting to null per msdn docs. Fixes #78854.
5864 2006-08-10 Chris Toshok <toshok@ximian.com>
5866 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
5867 flickering by setting a clip rectangle on the Graphics when we
5868 need to redraw just a particular menuitem. Also, rename "OnClick"
5869 to "OnMouseDown" to reflect what it actually is.
5871 * Form.cs: track the OnMouseDown change.
5873 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
5875 * CommonDialog.cs: Properly inherit the CreateParams from the form
5876 and only change what we need. Fixes #78865
5878 2006-08-10 Chris Toshok <toshok@ximian.com>
5880 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
5881 flickering in flat mode (and most of the flickering in general) by
5882 only invalidating the button border (and not the entire rectangle)
5883 when the state changes. A couple of cases still flicker:
5884 ToggleButtons, and the dropdown arrow case when the user mouse
5887 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
5889 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
5890 for german keyboards. Numlock state shouldn't affect the behaviour
5891 of the Del key. Fixes bug #78291.
5893 2006-08-10 Chris Toshok <toshok@ximian.com>
5895 * ListControl.cs: remove the items.Clear line from BindDataItems,
5896 as this is the first thing done by both subclasses in their
5897 SetItemsCore overrides. Also, add a ItemChanged handler, and when
5898 passed -1, refresh the list. This gets databinding working when
5899 the datasource is set on the list before the datasource is
5900 populated (as in wf-apps/ReportBuilder.)
5902 * ComboBox.cs: remove the argument to BindDataItems. This call
5903 should really go away, and be initiated by the ListControl code.
5907 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5909 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
5910 if no data is in the document when the control is displayed
5912 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5914 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
5917 - PositionCaret: Allow positioning of caret but don't call methods
5918 requiring a handle if the window isn't created yet
5919 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
5920 - owner_HandleCreated: Don't position the caret, just update it's
5921 location. User might have already set a different position
5923 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5925 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
5926 windows. Screws up the returned coordinates for child windows.
5927 Fixes #78825. I'm hoping this doesn't break something, since the
5928 code was explicitly put in 8 months ago, but no bug was attached.
5929 Menus still seem to work properly.
5931 2006-08-08 Chris Toshok <toshok@ximian.com>
5933 * DataGrid.cs: make BeginInit/EndInit actually do what they're
5934 supposed to do - delay data binding until the EndInit call. Also,
5935 make the table style collection's CollectionChangeAction.Refresh
5938 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
5939 (with action = Refresh) when a consituent table's MappingName is
5942 2006-08-08 Chris Toshok <toshok@ximian.com>
5944 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
5945 Invalidate, since changing the text can change the size of the all
5948 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
5950 * Form.cs (AddOwnedForm): Still need to add the form to our listif
5951 we don't have it yet
5953 2006-08-08 Chris Toshok <toshok@ximian.com>
5955 * PrintControllerWithStatusDialog.cs: don't .Close() the status
5956 dialog, as this causes X errors later on, since we actually
5957 destroy the window. Instead, .Hide() it.
5959 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
5961 * ComboBox.cs: Added focus reflection for popup window
5963 - Removed transient setting for non-app windows for now, not sure it
5965 - Fixed logic checking if we have captions when deciding
5966 override_redirect, WS_CAPTION is two bits and a 0 check was not
5968 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
5971 - AddOwnedForm: Don't just add the form to the list, call the property
5972 to ensure the driver is informed about the ownership as well
5973 - CreateHandle: Set the TopMost status in the driver if we have an owner
5974 * XplatUI.cs: Fixed debug statement
5976 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
5977 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
5978 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
5979 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
5980 TrackBarRenderer.cs: Make constructor private.
5981 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
5982 * ProfessionalColorTable.cs: Make properties virtual.
5984 2006-08-06 Duncan Mak <duncan@novell.com>
5986 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
5989 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
5990 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
5991 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
5992 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
5993 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
5994 Initial import of new 2.0 classes.
5996 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
5997 * Application.cs: Add 2.0 VisualStyles properties.
5999 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
6000 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6001 XplatUIX11.cs: Create property to allow access to existing private
6002 variable "themes_enabled"
6004 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6006 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
6007 file size, as otherwise our class libraries fail using windows. Fixes
6010 2006-08-04 Jackson Harper <jackson@ximian.com>
6013 * XplatUIX11.cs: Move the toolwindow window manager creation into
6014 the X11 driver, this way on win32 we can let windows create/handle
6017 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6019 * PrintDialog.cs: Remove some redundant checks, add some others,
6020 clean some code, and move the focus to the text boxes when the
6021 values are incorrect.
6023 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
6025 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
6027 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
6029 * NumericUpDown.cs: Setting the Minimum and Maximum is now
6030 handled correctly. Fixes bug #79001.
6032 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6034 * PrintDialog.cs: The "Copies" numeric up down must have
6035 set the Minimum property to 1; only if the value is bigger
6036 than 1, activate "Collate" check box. This is the behaviour of .Net.
6037 Also modify the Document elements only if it is not null.
6039 2006-08-03 Jackson Harper <jackson@ximian.com>
6041 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
6042 length. (We have a larger array then actual node count).
6044 2006-08-03 Jackson Harper <jackson@ximian.com>
6046 * ComboBox.cs: Don't show selection by default.
6047 - The SelectAll isn't needed here, since the focus code should do
6049 - DDL style lists to manual selection drawing, so when they
6050 get/lose focus they have to invalidate.
6052 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
6054 * TextBoxBase.cs: Don't always show all selections by default.
6056 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
6057 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
6058 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
6059 Fixed various typos.
6061 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
6063 * Control.cs: Removing the controls in a ControlCollection with
6064 Clear now hides the controls as expected. Fixes bug #78804.
6066 2006-08-03 Jackson Harper <jackson@ximian.com>
6068 * Control.cs: Revert previous focus patch, it breaks reflector.
6070 2006-08-03 Jackson Harper <jackson@ximian.com>
6072 * ComboBox.cs: Cleanup selection and focus with the combobox.
6073 This also eliminates some duplicated keyboard code, since now
6074 everything is handled by the main class.
6075 - Make list selection work on mouse up instead of down, to match
6078 2006-08-02 Jackson Harper <jackson@ximian.com>
6080 * Control.cs: Setting focus needs to go through the whole
6081 selection mechanism.
6083 2006-08-02 Chris Toshok <toshok@ximian.com>
6085 * PrintPreviewDialog.cs: change MinimumSize to use
6086 base.MinimumSize so it works.
6088 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
6091 - UpdateCaret: Added sanity check in case caret isn't defined yet
6092 - Line.Delete: Now updating selection and caret markers if we're
6093 transfering a node (Properly fixes #78323)
6094 - SetSelectionEnd: Added sanity check
6095 * TextBoxBase.cs: Removed broken attempt to fix #78323
6097 2006-08-01 Chris Toshok <toshok@ximian.com>
6099 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
6100 Close() call is handled in Form, not here.
6102 2006-08-01 Chris Toshok <toshok@ximian.com>
6104 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
6107 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
6108 for sizes < 100% zoom. The code now aggressively attempts to keep
6109 from calling document.Print (), and tries not to use the scaling
6110 g.DrawImage whenever possible (it still does if you scale to >
6111 100%, since usually that involves huge images).
6113 * PrintPreviewControl.cs: hook up the close button.
6115 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
6116 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
6117 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
6118 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
6119 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
6120 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
6121 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
6122 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
6123 Removed [Serializable] for 2.0 Event Handlers.
6125 2006-07-31 Jackson Harper <jackson@ximian.com>
6127 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
6128 * TextControl.cs: Uncomment out the body of this method.
6130 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
6132 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
6135 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6137 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
6138 that embed TextBox and need selections visible even if textbox is not
6139 focused to enforce that behaviour.
6140 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
6143 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6146 - Added new SetSelectionStart/SetSelectionEnd overloads
6147 - Fixed viewport width assignment to be accurate
6148 - Adjusted alignment line shift calculations to allow cursor on right
6149 aligned lines to be always visible at the right border (like MS)
6151 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
6152 - TextBoxBase_SizeChanged: recalculating canvas on size changes
6153 - CalculateScrollBars: Use ViewPort size instead of window size, to
6154 properly consider space occupied by the border and scrollbars
6156 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
6157 calculations; no longer leaves artifacts
6158 - CaretMoved: Adjusted window scrolling to match MS and fixed several
6159 calculation bugs (Still missing right/center align calculations)
6161 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6163 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
6164 use of both scroll rect and clip rect, as they do the same.
6166 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
6168 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
6169 in the event handler (fixes #78912)
6171 2006-07-31 Chris Toshok <toshok@ximian.com>
6173 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
6174 grid.ListManager.Count, since grid.ListManager might be null.
6175 This of course begs the question "why are we drawing rows for a
6176 grid with no list manager (and therefor no rows)?" Fixes the
6177 crash in bug #78929.
6179 2006-07-31 Chris Toshok <toshok@ximian.com>
6181 * RelatedPropertyManager.cs: Don't always chain up to the parent
6182 ctor. instead, call SetDataSource if the parent's position is !=
6183 -1. Fixes the crash in #78822.
6185 2006-07-31 Chris Toshok <toshok@ximian.com>
6187 * DataGrid.cs (get_ListManager): use field instead of property
6188 accessors for datasource and datamember.
6189 (RowsCount): make internal again.
6190 (OnMouseDown): end edits before resizing columns/rows.
6191 (OnMouseUp): restart edits after resizing columns/rows.
6193 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
6195 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
6196 This fixes the situation where the last set cursor is displayed
6197 whenever the mouse is over scrollbars.
6199 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6201 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
6202 Document properties, as well as initial values.
6204 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
6206 * XplatUIWin32.cs (SetBorderStyle): Setting both border
6207 and ClientEdge results in a 3-pixel border, which is
6210 2006-07-28 Jackson Harper <jackson@ximian.com>
6212 * TreeNodeCollection.cs: Fix the clear method.
6213 - Fix the Shrink also
6215 2006-07-27 Jackson Harper <jackson@ximian.com>
6217 * TreeView.cs: Make sure the visible order is computed when we
6218 attempt to size the scrollbars (for trees that mess with the
6219 scrolling when they shouldn't.
6220 - Make sure to give the scrollbars valid values.
6222 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
6224 * XplatUIX11.cs: Move motion compression code to where it
6225 has less performance impact
6227 2006-07-26 Jackson Harper <jackson@ximian.com>
6229 * UpDownBase.cs: When the control is selected make the child
6230 controls non selectable, so that a click on them won't do a
6231 focus/unfocus cycle.
6232 - Don't give focus to the text box when the spinner is selected.
6233 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
6235 2006-07-26 Chris Toshok <toshok@ximian.com>
6237 * ThemeWin32Classic.cs: add print preview rendering. I'm not
6238 satisfied with this solution. If the bitmaps are small, we should
6239 just cache them in the PrintPreviewDialog and draw them here.
6240 Also, the layout is broken for the 2-up and 3-up cases.
6242 * Theme.cs: add PrintPReviewControlPaint.
6244 * PrintPreviewDialog.cs: first pass implementation.
6246 * PrintPreviewControl.cs: first pass implementation. No
6249 * PrintDialog.cs: only validate fields if that particular portion
6250 of the UI is enabled. Also, set the document's controller to a
6251 PrintControllerWithStatusDialog wrapping the document's print
6254 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
6255 bring up a SaveFileDialog (i hope we don't want to match the
6256 behavior of the crappy windows file entry) and set the
6257 PrinterSettings.PrintFileName accordingly.
6259 2006-07-26 Jackson Harper <jackson@ximian.com>
6261 * ContainerControl.cs: Add a field that disables auto selecting
6262 the next control in a container when the container is activated.
6263 * UpDownBase.cs: Don't select the text box when the up down is
6266 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
6268 * XEventQueue.cs: Added methods for peeking (used for compression
6269 of successive events)
6270 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
6271 mouse move events (fixes #78732)
6273 2006-07-25 Jackson Harper <jackson@ximian.com>
6275 * UpDownBase.cs: Use an internal class for the textbox so that we
6276 can control focus. the updown control should always have focus,
6277 if either the text area or the buttons are clicked.
6278 - Send the key messages to the textbox, since it never actually
6280 - Activate and decativate the textbox caret.
6282 2006-07-24 Jackson Harper <jackson@ximian.com>
6284 * Control.cs: Use the directed select when selecting a control,
6285 this way the container controls override will get called and the
6286 whole ActiveControl chain will get triggered. TODO: probably need
6287 to make sure this gets done everywhere instead of the old
6289 * ContainerControl.cs: Implement the directed Select method to
6290 find and activate the correct child control.
6292 2006-07-22 Mike Kestner <mkestner@novell.com>
6294 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
6295 menu handling code so that clicks without a grab work too.
6298 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
6300 * FileDialog.cs: Enable the BackButton when dirstack has one element.
6301 Added some small optimizations.
6303 2006-07-21 Matt Hargett <matt@use.net>
6305 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
6307 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
6309 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
6310 tests pass and match MS in some strange border cases.
6312 2006-07-21 Chris Toshok <toshok@ximian.com>
6314 * ThemeWin32Classic.cs: handle drawing of the relation links and
6317 * Theme.cs: change args to DataGridPaintParentRow.
6319 * DataGrid.cs: Don't use controls for the relation links and
6320 parent buttons, so we have to handle all their interactions in
6321 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
6322 when we're navigating through child tables, so we can reinstate
6323 selection, expanded state, current cell, etc.
6325 2006-07-20 Chris Toshok <toshok@ximian.com>
6327 * ToolBar.cs: When we redraw a button, for whatever reason,
6328 there's no reason to redraw the entire toolbar. Also, don't call
6329 Control.Refresh from within Redraw, as it's much heavier than
6330 Invalidate (which is really what we want).
6332 2006-07-20 Chris Toshok <toshok@ximian.com>
6334 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
6335 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
6336 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
6337 traces from within a debug IBindingList datasource
6338 (in mono/winforms/datagrid) for *days*, I've finally gotten things
6339 to work in a similar fashion.
6341 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6343 * ListBox.cs: Don't call Sort () when setting
6344 the Sorted property to false (avoid an unnecessary sort).
6346 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6348 * ListControl.cs: DataSource should throw an ArgumentException
6349 instead of a normal exception when the argument is not of the
6352 2006-07-20 Mike Kestner <mkestner@novell.com>
6354 * Control.cs: add InternalPreProcessMessage to allow us to steal
6355 key events before MWF gets its paws on them. Adapted from a
6357 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
6358 up/down/left/right navigation. Override the new internal control
6359 method to steal the events since they never make it to WndProc.
6360 * ToolBarButton.cs: don't worry about pushed when setting hilight
6361 since the drawing code prefers pushed to hilight. Invalidate on
6362 Hilight changes. Fixes #78547 and #78525.
6364 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6366 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
6367 the canvas size. Fixes #78868
6369 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6371 * Splitter.cs: Track requested split position until first layout
6372 is performed. Fixes #78871
6374 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
6376 * Application.cs: Removed code that forces 1.x for the version
6377 number if the version started with 0. Not sure why that code was
6378 there and I couldn't find any bugs that indicated we needed it.
6381 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
6383 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
6384 ResetDefaults(), just write some output to the console until it's
6385 implemented. Fixes bug #78907 for now. Eliminated two warnings.
6387 2006-07-19 Jonathan Chambers <joncham@gmail.com>
6389 * PropertyGridView.cs: set StartPosition of drop down forms
6390 so they appear in correct initial spot. Fixes #78190.
6392 2006-07-19 Mike Kestner <mkestner@novell.com>
6394 * ThemeWin32Classic.cs: use parent background color when drawing
6395 flat toolbars. Restructure the conditionals to make sure non-flat
6396 non-Divider toolbars are filled too. Fixes #78837.
6398 2006-07-19 Mike Kestner <mkestner@novell.com>
6400 * ListBox.cs: Sort on collection changes even if the handle
6401 isn't created yet. Fixes #78813.
6403 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6405 * ListControl.cs: DisplayMember should never be null,
6406 and now we assign String.Empty when null is passed to it (this
6409 2006-07-17 Mike Kestner <mkestner@novell.com>
6411 * ListViewItem.cs: restructure Font and subitem Font handling
6412 to hold a specific font and refer back to owner on null.
6415 2006-07-17 Mike Kestner <mkestner@novell.com>
6417 * ToolBar.cs: bandaid for side-effect of previous patch which was
6418 discarding explicit heights for non-AutoSize toolbars. Need to
6419 extend my format tester to deal with AutoSize=false. Fixes #78864.
6421 2006-07-15 Jackson Harper <jackson@ximian.com>
6423 * LabelEditTextBox.cs:
6424 * TreeView.cs: Use a new LabelEdit class for node editing, this
6425 class automatically 'closes' itself when it gets the enter key or
6427 - Use the client rectangle when setting the trees scrollbars, so
6428 border style is taken into account.
6430 2006-07-14 Jackson Harper <jackson@ximian.com>
6433 * TreeView.cs: Make the editing work similar to MSs, firing the
6434 events correctly and ending edits correctly.
6436 2006-07-14 Mike Kestner <mkestner@novell.com>
6439 * ToolBar.cs: layout restructuring and redraw enhancements to support
6440 formatting changes gracefully, like setting TextAlign, ImageList,
6441 ButtonSize, and Appearance. Handles explicit button sizing quirks
6442 of the MS controls. Things like flat toolbars ignoring button size
6443 but becoming constant sized at the largest button's size. Normal
6444 toolbars with an image set cannot be shrunk smaller than the image,
6445 but text can be clipped/ignored.
6446 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
6447 is zero. Seems like DrawString should be smart enough to not put
6448 anything on screen though. Also trim labels and ellipsize at the char
6450 Fixes #78711 and #78483.
6452 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6454 * FolderBrowserDialog.cs: Disable "New Folder" button and
6455 "New Folder" contextmenu menuitem if a folder like "My Computer"
6458 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6460 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
6461 * FolderBrowserDialog.cs:
6462 - Use MWFConfig to store and read size and position settings
6463 - Added code to create a new folder (button or context menu).
6464 Use TreeView labeledit to change the name of the new folder.
6466 2006-07-14 Jackson Harper <jackson@ximian.com>
6468 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
6469 when the tree is scrolled we end editing.
6471 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6473 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
6476 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6478 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
6479 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
6480 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
6481 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
6482 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
6483 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
6484 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
6485 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
6486 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
6487 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
6488 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
6489 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
6490 ListViewItemSelectionChangedEventHandler.cs,
6491 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
6492 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
6493 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
6494 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
6495 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
6496 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
6497 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
6498 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
6499 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
6500 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
6501 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
6502 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
6503 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
6504 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
6505 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
6506 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
6507 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
6508 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
6509 WebBrowserNavigatingEventHandler.cs,
6510 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
6512 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6514 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
6515 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
6516 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
6517 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
6518 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
6519 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
6520 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
6521 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
6522 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
6523 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
6524 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
6525 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
6526 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
6527 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
6528 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
6529 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
6530 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
6531 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
6532 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
6533 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
6534 ListViewItemStates.cs, MaskFormat.cs: Added
6536 2006-07-13 Jonathan Chambers <joncham@gmail.com>
6538 * PropertyGridView.cs: Fix keyboard navigation of drop down.
6539 Patch from eno for bug 78558.
6541 2006-07-13 Jackson Harper <jackson@ximian.com>
6543 * TreeView.cs: When an edit is finished make sure that the
6544 selected node is visible.
6545 - When setting the top/bottom use the scrollbars is_visible, so
6546 everything will be set correctly even if the tree isn't visible
6549 2006-07-13 Jackson Harper <jackson@ximian.com>
6551 * ComboBox.cs: Revert the item->index part of my previous patch.
6552 * TreeView.cs: Use LostFocus instead of Leave for detecting when
6553 the edit box has lost focus (duh).
6554 - Just make the edit box not visible when we get return, that will
6555 take the focus, which will call EndEdit
6556 * TreeNode.cs When we start editing, notify the treeview.
6558 2006-07-12 Jackson Harper <jackson@ximian.com>
6560 * ComboBox.cs: Clear out old items before setting the item list.
6561 This prevents databound controls from having their items added
6563 - Switch the combobox to use indices whereever possible instead of
6564 using Item's. This allows usto navigate through lists that have
6565 more then one item with the same string value (ie a, b, b, a).
6566 - Scroll the listboxes scrollbar when a non visible item is
6568 - Allow keypress to cycle through all the possible values. For
6569 example if you have b1, b2, b3 and hold down the B key all the
6570 values will be cycled through.
6572 2006-07-12 Jackson Harper <jackson@ximian.com>
6575 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
6576 this using the internal methods.
6577 * Control.cs: Add OnGotFocusInternal. A new method that allows
6578 controls to "override" OnGotFocus and change focus behavior if
6580 - Same thing for LostFocus
6581 * ComboBox.cs: Pass off focus to the text control properly.
6583 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
6585 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
6586 * FolderBrowserDialog.cs: Almost a complete rewrite.
6587 - Better support for Environment.Specialfolders
6588 - Added support for MWFVFS
6589 - Made setting SelectedPath work
6591 2006-07-12 Jackson Harper <jackson@ximian.com>
6593 * Control.cs: Optimze getting all the controls.
6595 2006-07-11 Jackson Harper <jackson@ximian.com>
6597 * ContainerControl.cs: Override SETFOCUS in the container control,
6598 so that it is not selected on mouse click.
6600 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6602 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
6603 Hopefully we will have a better way once all of focus is complete.
6605 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6607 * ThemeWin32Classic.cs: Commented out some debug code and fixed
6608 a compile error with csc.
6610 2006-07-11 Jackson Harper <jackson@ximian.com>
6612 * Control.cs: When hiding a control only select the next control
6613 if the current control was focused.
6614 - Don't handle enter/leave when setting/killing focus, this is
6615 done by the container control.
6616 - Remove is_selected, it's not needed anymore.
6617 - Add utility methods for selecting a child control, and for
6618 firing the Enter/Leave events.
6619 * ContainerControl.cs: When a control is activated fire the
6621 - Don't wrap when processing the tab key, so that focus can be
6622 moved outside of the container.
6623 - Use the correct active control
6625 2006-07-11 Jackson Harper <jackson@ximian.com>
6627 * ComboBox.cs: Remove some debug code that was blinding me.
6628 * UpDownBase.cs: These controls actually aren't implicit, they are
6629 visible to the user.
6631 2006-07-10 Chris Toshok <toshok@ximian.com>
6633 * DataGrid.cs: move back to the is_adding boolean field. god i
6634 hate this is_editing/is_adding/is_changing stuff.
6636 2006-07-10 Chris Toshok <toshok@ximian.com>
6638 * DataGridTableStyle.cs: just check if the property type is bool.
6639 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
6640 Don't use CanRenderType.
6642 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
6643 if our text == NullText. Remove CanRenderType.
6645 * DataGridBoolColumn.cs: nuke CanRenderType.
6647 * DataGrid.cs: reenable some code to end the current edit inside
6648 of set_CurrentCell. This fixes the other 1.1.16 regression.
6649 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
6650 Also, remove the visible_row_count arg from CalcRowHeaders, since
6651 we don't need to worry about the actual height of the area.
6653 2006-07-10 Chris Toshok <toshok@ximian.com>
6655 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
6658 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
6659 the real sense of the IsInEditOrNavigateMode property (true =
6660 navigate, false = edit). Also, update OnKeyPress to reflect this.
6662 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
6663 column style exists, we still need to set its property descriptor
6664 to match up with our list manager.
6666 2006-07-10 Chris Toshok <toshok@ximian.com>
6668 * ThemeWin32Classic.cs: implement the new row/header painting
6669 approach. The parent row painting will likely go away and
6670 replaced with label controls, but the rest seems to work ok (and
6673 * Theme.cs: change the way we draw datagrid rows. we don't draw
6674 the row headers as a block now. Instead we draw them in the
6675 normal draw-row loop. Add some calls for drawing parent rows and
6678 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
6679 a default table style. Set the defaults from ThemeEngine.Current,
6680 not SystemColors. Fix lots of misc issues with property setters.
6682 * DataGrid.cs: move loads of style information out of this class
6683 as it's being duplicated with DataGridTableStyle. keep track of a
6684 special DataGridTableStyle for the properties we used to mirror
6685 here. Switch all the style properties to access this table style
6686 instead of instance fields of this class. Also add a internal
6687 class to represent parent rows (more needs to be stored here, like
6688 the selection state from the parent table, as well as the
6689 expansion state.) Also, for datasources with relations, do the
6690 right thing for collapse/expand, and add support for the
6691 navigation/parent row buttons.
6693 Lastly, fix the crash in the 1.1.16 build.
6695 * GridTableStylesCollection.cs: make the explicit interface
6696 implementations call the class's methods as opposed to duplicating
6699 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
6700 0 so the text doesn't jump around when we move the cursor.
6702 2006-07-10 Jackson Harper <jackson@ximian.com>
6705 * ListBox.cs: Match MS's ToString (this makes debugging focus
6706 stuff infinitely easier).
6708 2006-07-10 Jackson Harper <jackson@ximian.com>
6710 * Control.cs (SelectNextControl): When checking the control's
6711 parent use this instead of ctrl.parent so that null can be passed
6712 to SelectNextControl. (I have unit tests for this).
6713 - Remove unused var.
6715 2006-07-10 Chris Toshok <toshok@ximian.com>
6717 * CurrencyManager.cs: correct one regression, the removal of the
6718 finalType field. Also, add a MonoTODO on CanAddRows, implement
6719 Refresh() correctly, and fix some event emission in
6722 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6724 * FileDialog.cs: Don't use brackets for new folders if they exist
6725 under *nix. Instead use -(number of existing folders +1).
6727 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6730 - Fixed really nasty bug #78771
6731 - Don't block the whole GUI when reading directories with a lot of
6732 entries. Use an other thread instead and call BeginInvoke to
6733 update the ListView in MWFFileView
6735 2006-07-07 Chris Toshok <toshok@ximian.com>
6737 * Control.cs (Dispose): release any Capture when disposing.
6739 2006-07-07 Chris Toshok <toshok@ximian.com>
6741 * LinkLabel.cs (Select): if we chain up to the parent, set
6742 focused_index to -1 so we'll search for the first available link
6743 the next time the user tabs into us. Also, if the direction is
6744 backward and focused_index == -1, start the search from the last
6747 2006-07-07 Chris Toshok <toshok@ximian.com>
6749 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
6750 is beyond the end of the text, don't do anything.
6751 (CreateLinkPieces): set our ControlStyles.Selectable based on
6752 whether or not we have any links.
6753 (Link.Invalidate): use a loop instead of foreach.
6754 (Link.set_Start): null out owner.sorted_links so it'll be
6755 recreated by CreateLinkPieces.
6757 2006-07-06 Chris Toshok <toshok@ximian.com>
6759 * LinkLabel.cs: revert the SetStyle change.
6761 2006-07-06 Chris Toshok <toshok@ximian.com>
6763 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
6764 (OnEnableChanged): s/Refresh/Invalidate
6765 (OnGotFocus): if we have a focused index already, refocus it (so
6766 if we mouse out/in to the window it'll focus the right link).
6767 (OnKeyDown): move the tab handling out of here.
6768 (OnLostFocus): don't set focused_index to -1, so we can refocus it
6770 (OnMouseDown): don't Capture here - Control handles it. Also,
6771 focus the active link.
6772 (OnMouseUp): don't deal with Capture.
6773 (OnPaintBackgroundInternal): remove.
6774 (OnTextAlignChanged): CreateLinkPieces before calling the
6775 superclass's method.
6776 (OnTextChanged): call CreateLinkPieces before calling superclass's
6778 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
6780 (Select): implement this, moving the selection between different
6781 links, and call parent.SelectNextControl if we don't have another
6782 link to focus in the given direction.
6783 (CreateLinkPieces): call Invalidate instead of Refresh.
6785 2006-07-06 Chris Toshok <toshok@ximian.com>
6787 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
6788 new LinkLabel internals.
6790 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
6791 over pieces looking for active/focused/etc links. also, deal with
6792 runs of text (and links) with embedded \n's in them, and use
6793 MeasureCharacterRanges instead of MeasureString to figure out the
6794 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
6797 2006-07-04 Jackson Harper <jackson@ximian.com>
6799 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
6800 XKB or key auto repeat, do it manually. Without key auto repeat,
6801 when a key is held down we get key press, key release, key press,
6802 key release, ... with auto repeat we get key press, key press, key
6803 press ..., and then a release when the key is actually released.
6805 2006-07-03 Jackson Harper <jackson@ximian.com>
6808 * ThemeWin32Classic.cs: Tabs do not obey normal background color
6809 rules, they are always control color regardless of the background
6812 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
6814 * FileDialog.cs: Added internal class MWFConfig.
6815 Removed Registry support and replaced it with support for the new
6816 MWFConfig class. See MWFConfig comments for more information.
6818 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
6820 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
6821 rectangle. Added some patches from eno from bug #78490 and fixed
6822 the arrow position for small up and down CPDrawScrollButtons.
6824 2006-06-30 Jackson Harper <jackson@ximian.com>
6826 * InternalWindowManager.cs: Remove some debug code.
6827 * Form.cs: When an MdiParent is set to null, the window is
6828 "detatched" and becomes a normal window.
6829 * MdiClient.cs: Don't bring the new child form to the front until
6830 it is activated (setting it as active does this), this makes the
6831 previously active forms titlebar get redrawn as inactive.
6833 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
6835 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
6838 2006-06-29 Mike Kestner <mkestner@novell.com>
6840 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
6841 arrow in keynav state. Fixes #78682.
6843 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6845 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
6846 order (fixes #78393)
6848 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
6850 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
6851 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
6852 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
6853 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
6854 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
6855 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
6856 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
6857 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
6858 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
6859 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
6860 enumerations (FlagsAttribute, SerializableAttribute, added/removed
6863 2006-06-28 Mike Kestner <mkestner@novell.com>
6865 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
6867 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6870 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
6871 item lines from other area (It also makes BackColor consistent and
6872 compatible with .NET). Fixed bug #78564.
6874 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
6876 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
6877 Patch from Eno for #78555.
6879 2006-06-27 Chris Toshok <toshok@ximian.com>
6881 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
6883 * DataGridColumnStyle.cs: same.
6885 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
6887 * DataGridDrawingLogic.cs: nuke.
6889 2006-06-27 Chris Toshok <toshok@ximian.com>
6891 * DataGridTableStyle.cs: clean up the constructors, and build the
6892 list of child relations for this table. I have no idea if this is
6893 where we should be doing it (it probably isn't), but since we're
6894 already iterating over the properties..
6896 * DataGrid.cs: add row resizing. for now we add a DataGridRow
6897 struct and array for keeping track of row information, similar to
6898 what's shown in a hack on
6899 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
6901 * Theme.cs: be consistent about the naming of DataGrid methods,
6902 prefering ColumnWidths and RowHeights over columnsWidths and
6905 * ThemeWin32Classic.cs: same, and also add support for variable
6906 sized rows (and the +/- expansion icons for related rows).
6908 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6910 * TextBoxBase.cs: Applied Eno's patch from #78660
6912 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6914 * Form.cs (ScaleCore): We don't want to scale our form if it's
6915 state is minimized or maximized, but we still need to scale our
6916 child windows. Also, added try/finally block to ensure layout
6917 gets reset (Fixes #78697)
6919 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6921 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
6923 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6925 * Form.cs: Fixed c+p error and added check to resize form if minimum
6926 size is bigger than current size (Fixes #78709)
6928 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
6930 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
6932 2006-06-26 Mike Kestner <mkestner@novell.com>
6934 * ComboBox.cs: only do Keypress handling in the combo when there
6935 are items in the collection. Fixes #78710.
6937 2006-06-26 Chris Toshok <toshok@ximian.com>
6939 * Binding.cs: make this work bi-directionally. also, clear up
6940 other mixups between Push/Pull Data (e.g. we're supposed to pull
6941 data when validating).
6943 * BindingManagerBase.cs: trim some fully qualified collection
6946 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
6948 2006-06-23 Chris Toshok <toshok@ximian.com>
6950 * PropertyManager.cs: It appears (according to the unit tests)
6951 that PropertyManager doesn't use
6952 PropertyDescriptor.AddValueChanged to track propery value changes
6953 in its datasource, but uses the same scheme as Binding, where it
6954 looks for a <Property>Changed event and binds to it.
6956 Also, according to the docs, IsSuspended always returns false for
6957 a property manager with a non-null datasource.
6959 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
6961 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
6962 need to update the actual DialogResult. (Fixes #78613)
6964 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
6966 * Form.cs (ShowDialog): Release any captures before running the
6967 new message pump (fixes #78680)
6969 2006-06-22 Mike Kestner <mkestner@novell.com>
6971 * ListView.cs: Layout column widths properly in details mode even
6972 if HeaderStyle.None is set. Fixes #78691.
6974 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
6976 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
6978 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
6980 * Control.cs (ContainsFocus): Using new driver method to get focused
6981 window, instead of trying to use internal tracking var, which can
6982 recursion issues (Fixes #78685)
6983 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6984 XplatUIWin32.cs: Added GetFocus method to return focused window
6986 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6988 * ColorDialog.cs: when the mouse button is pressed inside the color
6989 matrix, don't let the cursor move out of it until the button is
6990 released, which is the behavior on windows. Changed 'colours' by
6991 'colors' to use the same word consistently.
6993 2006-06-21 Chris Toshok <toshok@ximian.com>
6995 * DataGrid.cs: add in some basic navigation stuff (navigating to a
6996 child relation and back, using a stack). Also, remove
6997 GetDataSource and the code that calls it - it's not needed. Also,
6998 track CurrencyManager.ListName's removal.
7000 2006-06-21 Chris Toshok <toshok@ximian.com>
7002 * CurrencyManager.cs: push some of the original type checking from
7003 BindingContext.CreateBindingManager to here, and remove some of
7004 the finalType stuff. Need more tests to make sure I've got the
7005 ListName part right, and we might need more in SetDataSource.
7007 * PropertyManager.cs: add a ctor that takes just the datasource,
7008 and no property name. Make SetDataSource work with a null
7009 property_name, and make Current return the data_source if the
7010 property descriptor is null. this makes 'string foo = "hi";
7011 BindingContext[foo].Current' return "hi" as it should.
7013 * RelatedCurrencyManager.cs: make this code more generic - there's
7014 no reason the parent manager has to be CurrencyManager, and
7015 there's no reason to pass the DataRelation. It suffices to use a
7016 BindingManagerBase and PropetyDescriptor.
7018 * RelatedPropertyManager.cs: make a similar change here.
7020 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
7021 flower I knew it could be.
7023 2006-06-20 Chris Toshok <toshok@ximian.com>
7025 * PropertyManager.cs: the PropertyChangedHandler is invoked when
7026 data in the source has changed and we need to update the control,
7027 so s/PullData/PushData.
7029 * CurrencyManager.cs: Refresh is meant to update the control from
7030 data in the datasource. So, s/PullData/PushData.
7032 * BindingContext.cs: add more ugliness (we weren't handling the
7033 case where data_source = DataTable and data_member = column_name).
7035 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
7036 from the perspective of the datasource. PullData pulls from the
7037 control, PushData pushes to the control.
7039 2006-06-20 Chris Toshok <toshok@ximian.com>
7041 * BindingContext.cs: rewrite the CreateBindingManager code to
7042 handle navigation paths more or less properly. This could
7043 definitely stand some more work, in particular to push the
7044 recursion up to the toplevel. But that relies on fixes in other
7045 places (System.Data comes to mind).
7047 Also, move to a flat hashtable (and encode the twolevel nature of
7048 the dictionary into the hash key). This lets us implement the
7049 IEnumerable.GetEnumerator method.
7051 * RelatedCurrencyManager.cs: new class. Update our view based on
7052 our relation and our parent CurrencyManager's position.
7054 * CurrencyManager.cs: split out some logic from the ctor into
7055 SetView, so it can be called from the new RelatedCurrencyManager
7058 * RelatedPropertyManager.cs: new class. Update our datasource
7059 based on the position of our parent CurrencyManager.
7061 * PropertyManager.cs: split out some logic from the ctor into
7062 SetDataSource, so it can be called from the new RelatedDataSource
7063 subclass. Also, make the Current getter return the value
7064 of the PropertyDescriptor, not the data_source.
7066 * Binding.cs: no need to duplicate the string splitting code here.
7068 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
7071 - set_Enabled: OnEnabledChanged is not called if the inherited state
7072 of the control is not altered, even though we might be changing the
7073 internal state of the control (#78458)
7074 - set_Enabled: (Re)Moved the enabling/disabling of the window to
7075 OnEnabledChanged, to allow easy altering of any child window state
7076 - OnEnabledChanged: Added code to enable/disable driver window state
7077 - OnParentEnabledChanged: Instead of firing the event, call
7078 OnEnabledChanged, which will fire the event and also a) set driver
7079 window state and pass the enabled state to any grandchildren (#78458)
7081 2006-06-19 Jackson Harper <jackson@ximian.com>
7083 * InternalWindowManager.cs: We don't set the cursor explicitly
7084 thats done via the response to NCHITTESTs.
7085 - Don't need to adjust for titlebar heights anymore, the
7086 coordinates are coming in the correct coordinates now (see peters
7090 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
7092 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
7093 being translated relative to whole window, instead of client window.
7094 That caused broken offsets on mouseclick (and caused gas for our
7095 InternalWindowManager)
7097 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
7100 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
7101 - Undo(): Added replay of cursor move on DeleteChars action; added
7102 calling Undo() again if a recorded cursor move is invalid (to
7103 ensure that some action is performed on Undo)
7104 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
7106 2006-06-16 Jackson Harper <jackson@ximian.com>
7108 * MdiClient.cs: Instead of just sizing maximized windows when
7109 there is a resize we also have to adjust the Y of minimized
7110 windows, so they stay pinned to the bottom of the mdi container.
7111 - Eliminate separate tracking of the active control, we can just
7112 get this from the controls collection.
7113 - Paint the decorations for the newly activated titlebar so we get
7115 * InternalWindowManager.cs:
7116 * ThemeWin32Classic.cs: Minimized windows get all three buttons
7117 even if they are a tool window.
7119 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
7121 * TextControl.cs (Undo): Handle non-existent cursor locations in the
7122 undo buffer, these can happen when text was deleted and the cursor
7123 was recorded first. Since we will also have a recorded cursor
7124 after the delete this is not an issue. (Fixes #78651)
7126 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
7128 * AccessibleObject.cs: Remove dependence on Control.is_selected;
7129 instead properly track control states internally (allows us to
7130 remove is_selected from Control)
7132 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7134 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
7135 whose width is not a multiple of 8.
7137 2006-06-13 Jackson Harper <jackson@ximian.com>
7139 * MdiClient.cs: Only maximize the next child if the current one
7142 2006-06-13 Chris Toshok <toshok@ximian.com>
7144 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
7145 modified. Also, guard against grid or grid_drawing being null in
7148 * DataGrid.cs: Reformat tons of getters/setters. In the
7149 DataMember setter, just call SetNewDataSource instead of
7150 duplicating some of its functionality. In SetNewDataSource, don't
7151 check ListManager for null, since the property getter creates the
7154 * DataGridTableStyle.cs: don't set TableStyle or call
7155 SetDataGridInternal on the column here, it's done in
7156 GridColumnStylesCollection.Add.
7158 * GridColumnStylesCollection.cs: fix all the explicit interface
7159 implementations to just call our methods. Nuke AddInternal() and
7160 move the body of it to Add(). Also, add a call to
7161 column.SetDataGridInternal to Add().
7163 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
7164 base()+duplicate code. Also, use the Format property instead of
7165 format to generate an Invalidate ala MS. Lastly, create the
7166 textbox here, unconditionally.
7167 (set_Format): call Invalidate.
7168 (get_TextBox): no need to call EnsureTextBox.
7169 (Commit): remove the message box.
7170 (Edit) remove the call to EnsureTextBox.
7171 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
7172 (EnterNullValue): no need to check textbox for null.
7173 (HideEditBox): no need to check textbox for null.
7174 (SetDataGridInColumn): add the textbox to the grid's controls.
7175 (EnsureTextBox): nuke.
7177 2006-06-13 Jackson Harper <jackson@ximian.com>
7179 * MdiWindowManager.cs: Hook up to the maximized menus paint event
7180 and redraw the buttons when needed. Unhook when the window is
7182 * MainMenu.cs: Add an internal Paint event, the mdi window manager
7183 needs this so that it can redraw its buttons when the menu is
7185 * InternalWindowManager.cs:
7186 * Form.cs: The method order has changed for DrawMaximizedButtons,
7187 so that it can be a PaintEventHandler.
7189 2006-06-13 Jackson Harper <jackson@ximian.com>
7191 * MdiClient.cs: When we close a maximized mdi window, the next mdi
7192 window is activated and maximized, even if it wasn't before.
7193 - When a new window is activated repaint the decorations of the
7194 old one, so that it no longer has the Active "look" (the blue
7196 * InternalWindowManager.cs: Open up CreateButtons to base classes
7197 so they can recreate the buttons on state changes.
7198 - If a window is maximized give it all three buttons
7199 * MdiWindowManager.cs: Create the titlebar buttons when the state
7200 is changed, this is needed because a toolwindow will not have all
7201 three buttons until it is maximized.
7203 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
7205 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
7208 2006-06-12 Jackson Harper <jackson@ximian.com>
7210 * KeysConverter.cs: Make sure we handle the Ctrl special case
7211 if its the only key.
7213 2006-06-12 Jackson Harper <jackson@ximian.com>
7215 * Theme.cs: Add a method to get the size of a managed window
7217 * InternalWindowManager.cs: Remove the ButtonSize property, this
7218 should be retrieved from the theme.
7219 * MdiWindowManager.cs: Get the button size from the theme
7220 * ThemeWin32Classic.cs: Make the method to get the managed window
7221 titlebar button size public.
7222 - Handle the different button sizes of maximized toolwindows
7223 (should match any maximized window).
7224 - Get the titlebar height from the theme, not the WM (which gets
7227 2006-06-12 Jackson Harper <jackson@ximian.com>
7229 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
7230 event down to the mdi window manager.
7231 - Expose some extra stuff to base classes
7232 - Make sure to end the Capture on an NC Mouse up, so that we can
7233 get double clicks properly, and the sizing doens't stick.
7234 - When doing PointToClient contain it in the workable desktop
7235 area, this prevents windows from changing size when the cursor is
7236 pulled outside of the working area while sizing.
7237 * MdiWindowManager.cs: When we get a double click maximize the
7239 - Reset the cursor after handling mode changes.
7241 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
7243 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
7244 current desktop, instead of just assuming a 0, 0 origin. This
7245 is needed for our internal window manager, to know the top
7246 margin of the desktop
7248 2006-06-12 Chris Toshok <toshok@ximian.com>
7250 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
7251 we need this to get rid of the selected background in the bool
7253 (CancelEditing): move the ConcedeFocus call to above the Abort
7254 call. Also, set is_changing to false and invalidate the row
7255 header if we were changing before.
7256 (ProcessKeyPreviewInternal): remove, since noone outside this
7257 class calls it anymore. Roll the code into ProcessKeyPreview.
7258 (EndEdit): remove the internal version.
7259 (InvalidateCurrentRowHeader): make private.
7261 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
7262 Keys.Escape handling (and with it the last call to
7263 DataGrid.EndEdit from outside the class.)
7266 2006-06-12 Chris Toshok <toshok@ximian.com>
7268 * DataGridTextBox.cs (.ctor): isedit defaults to false.
7269 (OnKeyPress): set isedit to true.
7270 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
7271 already handled by the grid.
7273 * DataGrid.cs (set_CurrentCell): more work here. it's still not
7275 (set_DataSource): SetDataSource always returns true, so stop
7276 putting it in an if statement.
7277 (EndEdit): get rid of some {}'s
7278 (ProcessGridKey): return true in case Keys.Escape.
7279 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
7280 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
7281 PositionChanged, stopped connecting to CurrentChanged.
7282 (GetDataSource): simplify this a bunch.
7283 (SetDataSource): change return type from bool to void.
7284 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
7285 to this, and make sure we don't set ListManager.Position inside
7287 (OnListManagerItemChanged): if we're passed an actual index,
7290 * CurrencyManager.cs (set_Position): don't call PullData here.
7292 2006-06-09 Jackson Harper <jackson@ximian.com>
7294 * TreeNode.cs: Recalculate the visible order before doing the
7295 Expand/Collapse Below calls, because those calls generate an
7297 - Reduce calls to the TreeView property, which is mildly expensive
7298 by using a local var.
7299 * Form.cs: Layout the MDI child windows when creating the parent
7301 - Don't use the internal constructor anymore
7302 * MdiClient.cs: use the parent form width/height (if available)
7303 when laying out the child windows, we do this because the
7304 mdiclient isn't docked yet when the initial layout is done.
7305 - Don't need an internal constructor anymore.
7307 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7309 * FileDialog.cs: handle access errors when trying to create a folder
7310 or changing to a directory. No need to initialize out parameters.
7312 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7314 * FileDialog.cs: Append a number when creating a new folder if the
7315 folder already exists (use parenthesis instead of square brackets)
7317 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7320 - Disabled registry support for windows and added better registry
7321 error checking for other systems (need to investigate why it
7322 works perfectly on my system)
7323 - If a folder already exist show an error MessageBox instead of
7324 trying to create an indexed name.
7325 - Fixed a non intentional typo.
7327 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7329 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
7331 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7333 * FileDialog.cs: When creating a new folder don't crash if the
7334 folder already exists.
7336 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7338 * FileDialog.cs: Allmost a complete rewrite.
7339 - added a "virtual" file system that handles the differences
7340 between unix and windows file systems (especially the directory
7341 structure). Moved most of the directory and file handling code
7343 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
7344 UnixFileSystem and FSEntry.
7345 - Recently used folder/directory, size, location and used file names
7346 (file name ComboBox) are now stored in the registry and get read
7347 before the dialog shows up (fixes part 6 of bug #78446).
7348 - Creation of new folders/directories is now possible (context menu
7349 or ToolBar). Added TextEntryDialog for this that fills in the gap
7350 until ListView.LabelEdit works.
7351 - Fixed cursor handling (bug #78527) and focus handling for
7353 - Various "Search in" ComboBox enhancements. The content of the
7354 dropdown listbox now almost matches ms.
7355 - Changed the behaviour when the user switches to SpecialFolder
7356 Recent to show the ListView in View.Details.
7357 - Beside using the ToolBar to change the View property of the
7358 file ListView it is now possible to use the context menu too.
7360 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
7362 * ComboBox.cs: Don't create a new ObjectCollection when an item
7363 gets inserted. Just insert the item in the existing object_items
7366 2006-06-08 Jackson Harper <jackson@ximian.com>
7368 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
7369 that the treeview and root node checks are done also, this fixes a
7370 regression i caused in the unit tests.
7372 2006-06-07 Wade Berrier <wberrier@novell.com>
7374 * RichTextBox.cs: More ISO8859-1 -> unicode
7376 2006-06-07 Mike Kestner <mkestner@novell.com>
7378 * ComboBox.cs : use items to hold highlight/selection so that
7379 collection insertions don't require synchronization.
7381 2006-06-07 Jackson Harper <jackson@ximian.com>
7383 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
7384 routine. We now always keep the sized edge at the cursor instead
7385 of computing movement and adjusting rects. There is one buglet
7386 with this method though when the cursor is moved over area that
7387 the window can not expand too (such as the toolbars on the desktop).
7389 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7391 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
7392 here. Fixes crash on startup in AlbumSurfer.
7394 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
7396 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
7399 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7401 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
7402 statement to avoid calling XNextEvent which will block if another thread
7403 took the event that we were expecting. Fixes bug #78605.
7405 2006-06-07 Mike Kestner <mkestner@novell.com>
7407 * ListView.cs : isolated checkbox clicking from the selection logic.
7408 Toggle check state on item doubleclicks. Really fixes #78454 part2.
7410 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7412 * Form.cs: Check that the value passed to Form.DialogResult
7413 is a valid enum value.
7415 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7417 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
7418 Computer'. Clicking it in the network view goes to 'My Computer'.
7419 Added CIFS filesystem type. Display the mount point of filesystems.
7420 Avoid duplicate mount points (happens for me with CIFS);
7422 2006-06-06 Jackson Harper <jackson@ximian.com>
7424 * InternalWindowManager.cs: Draw the maximized windows buttons
7427 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7429 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
7430 all other dialogs. Fixes bug #78585.
7432 2006-06-06 Mike Kestner <mkestner@novell.com>
7434 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
7435 Only invalidate checkbox on checkstate changes to avoid flicker.
7436 * ListBox.cs : avoid unselect/select when clicking selected item.
7437 avoid reselection flicker for already multiselected items.
7440 2006-06-06 Jackson Harper <jackson@ximian.com>
7442 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
7443 the parent form so that the menu is removed if needed.
7445 2006-06-06 Mike Kestner <mkestner@novell.com>
7447 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
7448 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
7450 2006-06-06 Mike Kestner <mkestner@novell.com>
7452 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
7455 2006-06-06 Jackson Harper <jackson@ximian.com>
7457 * Control.cs: Use the property (instead of the field) to get the
7458 default cursor so it is instantiated correctly.
7459 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
7460 resizes so we need to manually repaint the window decorations here.
7461 - Set the titlebar button locations as soon as they are created,
7462 otherwise they are not set correctly on win32.
7464 2006-06-06 Chris Toshok <toshok@ximian.com>
7466 * CurrencyManager.cs (set_Position): call PullData before
7468 (AddNew): after calling IBindingList.AddNew, update our
7469 listposition, and call OnCurrentChanged/OnPositionChanged (without
7471 (OnCurrentChanged): remove the call to PullData from here.
7472 (OnItemChanged): remove the call to PushData from here.
7473 (OnPositionChanged): change the test from == null to != null to
7474 match the other methods.
7475 (ListChangedHandler): the grossest part of the patch. Implement
7476 this such that it passes the unit tests in CurrencyManagerTest and
7477 the output more or less matches that of MS's implementation.
7479 2006-06-06 Mike Kestner <mkestner@novell.com>
7481 * ListView.cs : only update check state on single click.
7482 * ThemeWin32Classic.cs : fix focus drawing for details view without
7483 fullrowselect. Fixes #78454.
7484 * XplatUIX11.cs : fix for double click emission.
7486 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
7488 * PropertyGridView.cs : Applied Atsushi's patch to fix
7489 font dialog bug (#78197).
7491 2006-06-05 Jackson Harper <jackson@ximian.com>
7493 * TreeNode.cs: Compute the next node for expanding/collapsing
7494 correctly. We now factor in nodes without a NextNode
7495 correctly. (Fixes somes cases in nunit-gui).
7496 * InternalWindowManager.cs: Set the bounds when updating the
7497 virtual position of a tool window.
7499 2006-06-05 Chris Toshok <toshok@ximian.com>
7501 * DataGrid.cs: rename cached_currencymgr to list_manager.
7502 (set_CurrentCell): move SetCurrentCell code here, and clean it up
7504 (CurrentRow, CurrentColumn): single accessors so we can make the
7505 cursor movement code a lot easier to understand.
7506 (CurrentRowIndex): implement this in terms of CurrentRow.
7507 (BeginEdit): clean this up a bit.
7508 (CancelEditing): sort out the is_editing/is_changing/is_adding
7510 (EndEdit): minor changes.
7511 (OnKeyDown): add a comment about a (most likely) unnecessary
7513 (OnMouseDown): cancel editing when we click on a row header. And
7514 use the CurrentRow setter, not CurrentCell.
7515 (ProcessDialogKey): directly call ProcessGridKey.
7516 (UpdateSelectionAfterCursorMove): factor out this common block of
7517 code (it's used everywhere that we move the cursor by updating row
7519 (ProcessGridKey): pretty substantial overhaul. Use the
7520 CurrentRow/CurrentColumn properties to make the code a lot more
7521 readable. Only use the CurrentCell property when we have to
7522 modify both row and column at once. Tab behavior is still broken,
7523 and Delete is untested.
7524 (Select): if we have no selected rows, set selection_start to
7526 (EditCurrentCell): rename EditCell this. It was only ever invoked
7527 with CurrentCell as the arg, so drop the arg and rename it.
7529 * DataGridColumnStyle.cs: clean up the constructors a little, and
7530 drop CommonConstructor().
7532 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
7533 actually get notified when the user hits it.
7534 (ProcessKeyMessage): *substantially* simplify this method.
7535 There's no reason (that I can see) for the textbox to be making
7536 calls into the datagrid at all. Remove all of them but the ones
7537 for Enter handling. those will take some more work.
7539 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
7540 calling HideEditBox.
7541 (HideEditBox): if we have an active textbox, render it invisible
7542 without causing a re-layout of the datagrid.
7544 2006-06-05 Mike Kestner <mkestner@novell.com>
7546 * ListView.cs : fix NRE crasher when focuseditem is cleared by
7547 collection changes by resetting it to Items[0]. Fixes #78587.
7549 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7551 * MessageBox.cs: if the height of the text is larger than the icon_size,
7552 use that. Fixes bug #78575.
7554 2006-06-05 Jackson Harper <jackson@ximian.com>
7556 * TreeView.cs: Fix line drawing when scrolling. To do this each
7557 node is basically responsible for drawing its entire horizontal
7558 area. When drawing a node it draws its parent node lines if
7560 - Adjust the clip area to the viewport rectangle
7561 - Fix Left/Right key handling to match MS. (It expand/collapses
7562 and moves to parents/first child but does not move selection to
7564 - Fix SetTop to work with new bound calculation code
7565 - When scrollbars are no longer needed we need to reset scrolling
7566 vars and recalculate the visible order so the redraw is correct
7567 * TreeNode.cs: We can't expand/collapse nodes with no children.
7569 2006-06-03 John Luke <john.luke@gmail.com>
7571 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
7572 so the colors work without dev packages
7574 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
7577 - Select: Implemented to just use activate. Seems to match MS
7578 behaviour closest. Documented to only do actual control walking
7579 based on it's parameters if in a container control so I moved
7581 - Removed selection check logic from our internal Select() method
7582 * ContainerControl.cs:
7583 - Select: Moved selection logic from Control here, since MS documents
7584 that containers obey the bool arguments. No longer calling base
7586 2006-06-02 Jackson Harper <jackson@ximian.com>
7588 * TreeView.cs: If the selected node isn't changed when we get
7589 focus update the previously selected node so that we see the
7592 2006-06-02 Mike Kestner <mkestner@novell.com>
7594 * ComboBox.cs: restructure grab and general mouse event handling.
7595 Make the composite control raise mouse events like it was a single
7596 control for leaves/enters/motion/up/down events. fix dropdown list
7597 coordinate mangling and refactor it into the scrollbar subclass to
7598 reduce code duplication. Fixes #78282 #78361 and #78457.
7600 2006-06-02 Mike Kestner <mkestner@novell.com>
7602 * ScrollBar.cs: remove Capture setting/clearing, as it happens
7603 automatically in the Control.WndProc.
7605 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7607 * FileDialog.cs: fix crash when running SharpChess, which sets the
7608 FilterIndex to 2 with only one Filter.
7610 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7612 * ToolBar.cs: add SizeSpecified property.
7613 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
7614 try to figure out our real size, otherwise fallback to what the
7617 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7619 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
7620 * Control.cs (WndProc): MS always calls the DefWndProc to pass
7623 2006-06-01 Mike Kestner <mkestner@novell.com>
7625 * ListView.cs: revamp the focus management in ListView. It still
7626 causes churn of LostFocus/GotFocus emissions on clicks, but it's
7627 better than not handling focus at all. Will revisit when pdb feels
7628 the general focus handling is solid. Fixes #78526.
7630 2006-06-01 Jackson Harper <jackson@ximian.com>
7632 * TreeView.cs: Set the default border style in the constructor.
7633 - Move painting to use OnPaintInternal instead of capturing
7634 WM_PAINT, this is the correct way of doing things
7635 - UpdateBelow shouldn't invalidate the scrollbar area
7636 - Cap the top on update below in case the node was above the top
7637 of the viewport rectangle.
7638 - ExpandBelow and Collapse below need to obey Begin/End Update.
7639 * TreeNode.cs: Make is_expanded internal so the treenode
7640 collection can change it without firing the whole event chain.
7641 * TreeNodeCollection.cs: When clearing all the child nodes make
7642 sure to recalc the visible order.
7643 - Improve algo for remove the top node
7645 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7647 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
7648 SendMessage directly calling window procedures, which in turn might
7651 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7653 * Control.cs: Don't handle WM_SETFOCUS if the same window already
7654 has focus (works around X11 sending a FocusIn after our SetFocus)
7655 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
7657 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
7659 * Mime.cs: Fix for the NET_2_0 build.
7660 NameValueCollection needs StringComparer now.
7662 2006-05-31 Chris Toshok <toshok@ximian.com>
7664 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
7665 return (via an out parameter) the starting X of the column.
7666 (UpdateVisibleColumn): track change to FromPixelToColumn.
7667 (HitTest): add a ColumnResize case here.
7668 (DrawResizeLine): new function, probably poorly named.
7670 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
7671 only need to keep one reference.
7672 (set_ListManager): same.
7673 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
7674 Also, add support for HitTestType.ColumnResize.
7675 (OnMouseMove): add column resize behavior here, and change the
7676 cursor to the correct one as we move around the datagrid.
7677 (OnMouseUp): terminate the column resize if we're resizing.
7678 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
7679 for the current cell.
7680 (ConnectListManagerEvents): use cached_currencymgr.
7681 (DisconnectListManagerEvents): fill this in, using
7683 (SetCurrentCell): remove cached_currencymgr_events handling.
7684 (SetDataMember): only call DisconnectListManagerEvents if
7685 cached_currencymgr is != null.
7686 (SetDataSource): same.
7687 (OnListManagerCurrentChanged): cached_currencymgr_events ->
7690 2006-05-31 Jackson Harper <jackson@ximian.com>
7692 * BindingManagerBase.cs: Remove somedebug code that creeped into
7694 * TreeNode.cs: We get the indent level dynamically right now, so
7695 don't track it as a member.
7696 * TreeNodeCollection.cs: Make sure all nodes added to the list
7697 have parents, treeviews/topnodes setup properly.
7698 - Don't attempt to track indent level.
7700 2006-05-30 Jackson Harper <jackson@ximian.com>
7702 * BindingContext.cs: Create the currency manager tables here.
7703 This allows us to more easily create null tables (when bad data
7704 members are used), and more easily create related currency
7706 * CurrencyManager.cs: All the table creation stuff is done by the
7707 binding context now.
7708 - Current should throw an exception if listposition is -1.
7709 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
7712 2006-05-30 Mike Kestner <mkestner@novell.com>
7714 * ListView.cs: allow reexpansion of zero-width column headers.
7717 2006-05-28 Chris Toshok <toshok@ximian.com>
7719 * CurrencyManager.cs (get_Current): after the late binding
7720 listposition = -1 fix, we need to guard against it here and return
7721 null, otherwise we raise an exception (which is swallowed
7722 elsewhere, and breaks datagrid databinding.)
7724 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7726 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
7727 than WM_SYSKEY, don't throw if get something unexpected (#78507)
7729 2006-05-26 Jackson Harper <jackson@ximian.com>
7732 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
7733 values, it's faster and it's all we care about (we don't care if
7734 the names aren't equal).
7735 * KeyboardLayouts.cs: Eliminate some dead code.
7737 * X11Keyboard.cs: Lazy init keyboard detection.
7738 - Cleanup access modifiers a little.
7740 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7742 * XplatUIX11.cs: Once again, attempting to get layout just right.
7744 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7746 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
7747 the sizes of each link section, that will result in sizes that
7748 match DrawString's layout (Fixes #78391)
7750 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
7752 * FileDialog.cs: If AddExtension property is true autocomplete the
7753 extensions in SaveFileDialog correctly. Fixes bug #78453.
7754 Set MyNetwork and MyComputer to "C:\" for windows. This should
7755 fix part 8 of bug #78446 for now.
7757 2006-05-26 Chris Toshok <toshok@ximian.com>
7759 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
7760 invalidate the current row header if we need to, but presumably
7761 we'll invalidate the row corrsponding to the bounds or
7763 (GridHScrolled): switch back to this method, as it's part of the
7765 (GridVScrolled): same.
7766 (OnMouseWheel): hack up something that more or less works. Call
7767 GridHScrolled/GridVScrolled directly, instead of duplicating much
7769 (EnsureCellVisibility): reinstate a bunch of this code, since we
7770 can't just set the scrollbar Value and expect to do all the work
7771 in the ValueChanged handler. Also, Call Update() after scrolling
7772 in one direction so the other XplatX11.ScrollWindow call has the
7773 proper stuff in the proper places.
7774 (EditCell): set is_editing to true before calling .Edit.
7776 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
7777 don't bother comparing first.
7778 (OnKeyPress): call grid.ColumnStartedEditing before calling
7779 base.OnKeyPress. this will set is_changing and invalidate the row
7780 header if necessary.
7781 (ProcessKeyMessage): for WM_CHAR messages, call
7782 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
7785 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
7786 it's done in the DataGrid.
7787 (NextState): call grid.ColumnStartedEditing, which takes care of
7788 invalidating the row header (and setting is_changing).
7790 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
7791 here. it's done in the DataGrid.
7793 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7795 * Control.cs: allow changing the cursor when the mouse position is
7796 out of bounds but Capture is set.
7797 * LinkLabel.cs: handle the case when the mouse button is pressed on the
7798 linklabel but released somewhere else.
7800 2006-05-25 Jackson Harper <jackson@ximian.com>
7802 * TreeView.cs: When we get focus if there is no selected node make
7804 - Remove some uneeded setup code from Draw.
7805 * TreeNodeCollection.cs: If the tree doesn't have a top node when
7806 a new node is inserted make the new node the top.
7808 * Timer.cs: Use Utc time so that no local time zone stuff needs to
7809 be used (should be faster).
7811 2006-05-25 Chris Toshok <toshok@ximian.com>
7813 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
7814 problem with the last commit.
7816 2006-05-25 Chris Toshok <toshok@ximian.com>
7818 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
7819 need the invalidate call here, while scrolling right-to-left via
7820 the left arrow key (i.e. moving the editing cell while scrolling).
7822 * DataGrid.cs (.ctor): remove the initialization of
7823 ctrl_pressed/shift_pressed. We no longer track them using key
7824 up/down handlers, but by using Control.ModifierKeys. Also, switch
7825 to using ValueChanged handlers on the scrollbars instead of
7826 Scrolled event handlers. This simplifies a bunch of the scrolling
7828 (GridHValueChanged): rename from GridHScrolled, and change it to
7829 work with the new event args.
7830 (GridVValueChanged): same.
7831 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
7832 (OnMouseWheel): actually scroll the datagrid. Don't change the
7834 (ProcessGridKey): correct all the keyboard navigation stuff I
7835 could find. Ctrl up/down/left/right/home/end work now.
7836 (EnsureCellVisibility): correct method name spelling. Also,
7837 simplify this a touch by not explicitly calling the
7838 ScrollToRow/ScrollToColumnInPixels methods. We just set the
7840 (OnKeyUpDG): no need for this method now.
7842 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7844 * LinkLabel.cs: display the OverrideCursor when hovering the label.
7847 2006-05-25 Chris Toshok <toshok@ximian.com>
7849 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
7852 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
7854 * Application.cs: Moved setting of is_modal and closing to before
7855 we create the control, to allow the event handlers called as a
7856 result of creation affect closing. Also removed Gonzalo's previous
7857 change to setting DialogResult, the behaviour has been moved to
7860 - ShowDialog(): Removed explicit creation of the form, let RunLoop
7862 - ShowDialog(): If no dialog result is set, we need to return Cancel
7863 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
7864 the close is cancelled
7866 2006-05-25 Jackson Harper <jackson@ximian.com>
7868 * StatusBar.cs: We only need to update the sizes of the other
7869 panels when we have auto size contents. Also we are only updating
7870 the contents of the panel, not the borders, so compensate for the
7871 border width (TODO: get this width from the theme somehow).
7872 * TreeView.cs: Scrollable is true by default
7873 - Use invalidate instead of refresh where needed
7874 - Factor the scrollable value into scrollbar updating
7875 - Update the scrollbars if the Scrollable property is altered
7876 - Update the selected node if its ImageIndex is changed
7877 - Handle null nodes in UpdateNode (mainly so we don't have to
7878 check if selected is null when updating it
7879 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
7880 are factored into the visible count
7881 - Use VisibleCount for clarity in the code
7882 - When the font is changed we need to recurse through all the
7883 nodes and invalidate their sizes
7885 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7887 * Application.cs: set the DialogResult to fixed when the main form is
7888 hidden or destroyed while being modal.
7890 2006-05-25 Miguel de Icaza <miguel@novell.com>
7892 * Theme.cs: Use Tangoified messagebox icons.
7894 (GetSizedResourceImage): Also cope with width = 0 and do not
7895 trigger a warning in that case (0 means "give me your icon from
7896 the resouce, no special size needed).
7898 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
7900 * Application.cs: Leave runloop if the the main modal form is
7901 hidden (fixes #78484)
7903 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
7905 * BindingContext.cs : reject null datasource in Contains() and
7907 * CurrencyManager.cs : check data_member validity when data_source
7908 is dataset. When it is late binding, the initial position is -1.
7910 2006-05-24 Jackson Harper <jackson@ximian.com>
7912 * TreeNodeCollection.cs: Dont't recalculate the visible order on
7913 inserted nodes that aren't visible. This changes the
7914 max_visible_order which confuses scrollbar settings.
7915 - Use the enumerator to get the prev node instead of duplicating
7917 * TreeView.cs: Use new method for setting scrollbar values
7918 - Don't set the bounds every time the scrollbar is updated
7919 - When updating below the root node use an invalidate instead of a
7920 refresh to prevent the child controls (scrollbars) from being
7921 refreshed. (UpdateBelow still needs to be reworked anyways).
7922 - Reenable SetBottom now that visible orders are set correctly,
7923 added some debug code incase we ever get bad values there again.
7924 - Set the scrollbar max to 2 less then the max value, this
7925 compensates for the max value being one above the node count, and
7926 for scrollbars adding one extra "notch".
7927 - When drawing image nodes if there is an imagelist we draw the
7928 first image in the list if the supplied image index is out of the
7929 image list's bounds.
7931 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7933 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
7934 we receive a size change from the WM (Fixes #78503)
7936 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7938 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
7939 rectangle (Fixes #78501)
7941 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7944 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
7946 - Fixed MouseMove to no longer switch pressed state unless the left
7947 mouse button is pressed. Atsushi provided the original patch (#78485)
7949 2006-05-24 Jackson Harper <jackson@ximian.com>
7951 * ScrollBar.cs: New internal methods that allow us to change a
7952 couple values on the scrollbar (the most common case is maximum
7953 and large change) without getting multiple invalidates.
7955 2006-05-24 Chris Toshok <toshok@ximian.com>
7957 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
7958 (Edit): save off the original state in oldState, and set
7959 grid.is_editing to true.
7960 (OnKeyDown): abort editing if escape is pressed. also, call
7961 NextState if space is pressed.
7962 (OnMouseDown): call NextState.
7963 (NextState): factor out shared code from OnKeyDown and OnMouseDown
7964 here. Also, only invalidate the row header once (on the initial
7965 is_changing switch) to save on redraws.
7967 2006-05-24 Chris Toshok <toshok@ximian.com>
7969 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
7970 if the value in the cell is different than it was before. This
7971 keeps us from triggering a layout when we move around a datarid
7972 with a highlighted cell.
7973 (Edit): suspend layout when creating/positining the text box, and
7974 resume passing false so we don't ever actually re-layout.
7975 (ReleaseHostedControl): same.
7976 (EnsureTextBox): reformat slightly, and set WordWrap to false.
7978 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
7979 control-key sequences should go to the datagrid - remove that
7980 lock. Also, modify the conditions under which we move between
7981 cells when moving the cursor within a cell, and remove the "this"
7982 and "base" from field accesses. We weren't even consistent, given
7983 they all were in the base class.
7985 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
7987 * Binding.cs : (.ctor)
7988 An obvious NRE fix for BindingTest.CtorNullTest().
7990 2006-05-23 Chris Toshok <toshok@ximian.com>
7992 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
7993 them between lines. This fixes some quirks editing cells in the
7996 2006-05-23 Jackson Harper <jackson@ximian.com>
7998 * TreeView.cs: Use begin/end update when doing expand/collapse all
7999 so that we don't get flicker on the scrollbar.
8001 2006-05-23 Jackson Harper <jackson@ximian.com>
8003 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
8004 treenode calculations to be independant of the painting code. To
8005 do this nodes track a visible order which is calculated by the
8007 - Call new methods for expanding/collapsing nodes. These methods
8008 use scrollwindow so we don't have to update everything below the
8010 * TreeView.cs: Refactored drawing and scrolling code. We don't
8011 need to update nodes when drawing anymore or calculate scrollbar
8013 - Added new methods for expanding/collapsing nodes. These methods
8014 use ScrollWindow so as to not have to redraw all the nodes below.
8015 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
8016 we add/remove nodes or sort.
8017 - Handle removing the selected and the top node properly.
8019 2006-05-23 Chris Toshok <toshok@ximian.com>
8021 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
8022 maybe this should actually happen in the datagrid code?
8023 (EndEdit): no need to invalidate anything, given that
8024 ReleaseHostedControl causes the datagrid to relayout, which
8025 invalidates everything anyway.
8027 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
8029 (set_SelectionBackColor): call InvalidateSelection instead of
8031 (set_SelectionForeColor): same.
8032 (BeginEdit): Flesh this out a bit.
8033 (CancelEditing): only do any of this if we're editing/adding.
8035 (OnMouseDown): there's no need to cancel editing here, it's done
8037 (SetCurrentCell): only invalidate the current row header if it's a
8038 different row than the new one.
8039 (ShiftSelection): fix this to work like MS does.
8040 (ResetSelection): factor out the invalidation of selected_rows to
8041 InvalidateSelection.
8042 (SetDataSource): cancel any editing that's going on.
8044 * DataGridColumnStyle.cs
8045 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
8046 call the non-interface version.
8048 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
8049 header rectangle with the clip rectangle so we don't redraw the
8050 entire header for just a small area. Gets rid of the last flicker
8051 when horizontally scrolling.
8052 (DataGridPaintRow): same.
8054 2006-05-23 Mike Kestner <mkestner@novell.com>
8056 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
8057 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
8058 poorly placed checkbox on the MS control. Fixes Alex's unfiled
8059 Critical bug report.
8061 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
8063 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
8064 and this fixes #78493
8066 2006-05-23 Miguel de Icaza <miguel@novell.com>
8068 * Theme.cs (GetSizedResourceImage): Scale images if the proper
8071 * FileDialog.cs: Do not change the background for the side bar as
8072 it wont work nicely with the theme, and also reduces the artifacts
8073 in rendering the icons (which I want to fix too).
8075 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
8076 resources, not resgen resources.
8078 (PlatformDefaultHandler): Pull images using the new API.
8080 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
8082 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
8083 a reference to the hwnd and will not remove it unless there are
8084 no pending exposures (fixes #78341)
8085 * XplatUI.cs: Improved debug
8087 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
8089 * MenuAPI.cs : don't handle OnClick event when it was not the left
8090 button. Fixed bug #78487.
8092 2006-05-23 Mike Kestner <mkestner@novell.com>
8094 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
8095 prefer submenus to the top menu for item lookup, to avoid popping down
8098 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
8100 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
8101 Graphics.FillRectangle as the visual results are really bad (even
8102 on win). We now draw perfect arrows (and perfect shadows when the
8103 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
8104 Pen.DashPattern to draw the dots of each line.
8106 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
8108 * FileDialog.cs: Update the filename combobox when navigating through
8109 the ListView with the cursor keys. Fixes part 7 of bug #78446.
8111 2006-05-22 Mike Kestner <mkestner@novell.com>
8113 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
8116 2006-05-22 Mike Kestner <mkestner@novell.com>
8118 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
8119 requests. Fix a misspelled parameter and a copy paste exception error
8122 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
8124 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
8125 to get the same width/height (5/13) on X11 as the default font has on
8126 win32. This means that our DefaultFont emSize is smaller than the
8127 the MS SWF equivalent (even thought the width/height stays the same)
8129 2006-05-20 Jackson Harper <jackson@ximian.com>
8132 * MdiWindowManager.cs:
8133 * InternalWindowManager.cs: Make sure to use the border width from
8136 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
8138 * PrintDialog.cs: Implements printer details
8140 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
8142 * FileDialog.cs: Added focus handling for PopupButtonPanel.
8143 Fixes part 1 and 2 of bug #78446
8145 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
8147 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
8148 instead of sticking to the first ever calculated value
8150 2006-05-19 Mike Kestner <mkestner@novell.com>
8152 * ComboBox.cs: fix mouse motion selection to use MousePosition and
8153 PointToClient, since Capture is set. Fixes #78344.
8155 2006-05-19 Mike Kestner <mkestner@novell.com>
8157 * ListView.cs: match MS behavior in Details view where items are not
8158 drawn if Columns.Count == 0.
8159 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
8160 Use a separate pen to draw the check, since changing the width affects
8161 the box as well. Fixes #78454.
8163 2006-05-18 Miguel de Icaza <miguel@novell.com>
8165 * ListView.cs: ArgumentOutOfRangeException, single versions of the
8166 exception should throw the name of the invalid argument.
8168 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
8169 there are no files listed.
8171 2006-05-18 Jackson Harper <jackson@ximian.com>
8173 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
8176 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8178 * Control.cs: Brought back our old UpdateZOrder method as a private
8179 function and switched our calls from UpdateZOrder to the new one.
8180 This fixes the Paint.Net canvas disappearing bug.
8182 2006-05-18 Jackson Harper <jackson@ximian.com>
8185 * ThemeWin32Classic.cs:
8186 * InternalWindowManager.cs: Move the drawing into the theme,
8187 expose everything the theme should need from the window manager.
8189 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8191 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
8192 from the call to NativeWindow to avoid walking up the parent chain
8193 further than needed (speeds up setting cursors and avoids setting
8194 the wrong cursor if a parent has another cursor defined)
8195 * Cursor.cs: When loading an icon as cursor, MS uses the center of
8196 the icon as hotspot, not what's contained as hotspot in the icon
8197 file. This fixes the perceived drawing offset seen with Paint.Net
8199 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8202 - Store the calculated rectangle in Hwnd object and use it when
8203 setting the client size
8204 - Force Toolwindows to always be type Dock, to ensure they're on top
8206 2006-05-18 Mike Kestner <mkestner@novell.com>
8208 * ComboBox.cs: first pass at ComboBox rework. Layout is more
8209 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
8210 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
8211 Substantial refactoring to remove confusing nested classes. Coding
8212 standard and Get+Set->property refactorings. Shift to index based
8213 highlighting in ComboListBox instead of constantly using IndexOf and
8214 Items[]. Add invalidations on resize for DropDownList to fix ugliness
8215 in FileDialog growth. Draw borders manually since Simple mode needs
8216 to look like two independent controls. Make listbox border
8217 conditional to DropDownStyle. Improved OwnerDraw support.
8219 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
8221 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
8222 Don't set the disposed graphics to null, so we can throw the "right"
8223 exception if the graphics is reused later (added a flag to avoid
8224 double disposing). Some behaviours are different under 2.0 and are
8225 filled under bug #78448.
8227 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
8229 * Control.cs: When double-buffering is enabled, we need to reset
8230 our graphics context between paint calls. Otherwise, any
8231 transformations and other alterations on the context will
8232 become cumulative (#77734)
8234 2006-05-18 Mike Kestner <mkestner@novell.com>
8236 * ListView.cs: do focused item selection like MS on clicks.
8237 Rework focus handling for ItemControl so LostFocus invalidates as
8239 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
8240 the ListView ItemControl has focus.
8242 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
8244 * XplatUIX11.cs: If client_window ends up being width or height zero
8245 due to border settings, move it off window inside whole_window (#78433)
8247 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
8249 * Mime.cs: Shrink the mime file cache correctly.
8251 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
8253 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
8255 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8257 * XplatUIX11.cs (AddExpose): More sanity checks
8259 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8262 - AddExpose: Don't add expose ranges outside the size of our
8264 - Cast opacity values to Int32 to avoid crashes with certain
8266 - Added disabled code paths that protect against illegal cross-
8267 thread painting (Developers.exe)
8269 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8271 * ProgressBar.cs: Invalidate the control when it's resized
8272 since block size is based on control size. (#78388)
8274 2006-05-16 Miguel de Icaza <miguel@novell.com>
8276 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
8277 of setting the incoming argument to the "reset" value, we set the
8278 this.datamember to string.empty (before we were invalidating the
8283 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8285 * Form.cs: Only apply transparency settings after the form
8286 is created. (Fixes #77800)
8288 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8290 * ApplicationContext.cs: Grab the HandleDestroyed event so
8291 we know when to fire OnMainFormClosed
8293 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8295 * Application.cs: Introduced sub-class to allow tracking of
8296 threads and centralized triggering of the event mess for
8297 ThreadExit, AppExit, etc.. (#76156)
8299 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
8302 - Do not return a null icon index value for a mime subclass.
8303 Instead try the main mime type class too.
8304 - Seems that some newer distributions don't have a link to some
8305 gnome default icons anymore. So check the default gnome dir too.
8308 2006-05-16 Jackson Harper <jackson@ximian.com>
8310 * MdiClient.cs: Don't paint the parent background image if we have
8311 our own background image.
8313 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
8316 - PerformLayout: Do not shrink space filled by DockStyle.Fill
8317 controls, all filled controls are supposed to overlap (#78080)
8318 - UpdateZOrder is supposed to update the control's z-order in the
8319 parent's z-order chain. Fixed to behave like that
8320 - BringToFront: Removed obsolete code
8321 - SendToBack: Simplyfied
8322 - SetChildIndex: Trigger layout calculations when Z-order changes
8323 since layout is done by z-order
8325 2006-05-16 Chris Toshok <toshok@ximian.com>
8327 [ fixes bug #78410 ]
8328 * DataGrid.cs (set_AlternatingBackColor): use
8329 grid_drawing.InvalidateCells instead of Refresh().
8330 (set_BackColor): call grid_drawing.InvalidateCells.
8331 (set_BackgroundColor): use Invalidate instead of Refresh.
8333 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
8334 invalidate the cell area.
8336 2006-05-15 Chris Toshok <toshok@ximian.com>
8338 [ fixes bug #78011 ]
8339 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
8340 on to DataGridPaintRow.
8341 (DataGridPaintRow): take a clip argument, and only draw the cells
8342 which intersect it. same with the not_usedarea.
8344 * Theme.cs (DataGridPaintRow) add @clip parameter.
8346 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
8347 XplatUI.ScrollWindow.
8348 (ScrollToRow): same.
8350 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
8351 with last column which was causing a gray swath to appear with the
8352 XplatUI.ScrollWindow code.
8354 2006-05-15 Chris Toshok <toshok@ximian.com>
8356 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
8357 use XplatUI.ScrollWindow.
8358 (VerticalScrollEvent): use XplatUI.ScrollWindow.
8360 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8362 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
8364 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8366 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
8367 file since there are no equivalent X11 cursors
8369 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
8371 * MonthCalendar.cs : DateTimePicker should reflect selected date
8372 on mouse*up*, not mouse*down*. Fixed originally reported part of
8375 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
8377 * TabControl.cs : When argument index is equal or more than tab
8378 count, just ignore. Fixed bug #78395.
8380 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8382 * Control.cs: Dispose all child controls when control is diposed (#78394)
8384 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8386 * ColorDialog.cs: Finally it is possible to select the color with
8389 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8391 * PrintDialog.cs: Fix typo
8393 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8395 * PrintDialog.cs: PrintDialog is not resizable
8396 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
8397 color. Made some ToolBar drawing methods protected virtual.
8399 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
8401 * PrintDialog.cs: Implementation of the PrintDialog
8403 2006-05-12 Chris Toshok <toshok@ximian.com>
8405 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
8406 thumb, instead use MoveThumb. This has the side effect of making
8407 most of the other thumb moving machinery use MoveThumb as well.
8408 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
8409 need to actually invalidate the rectangle where the new thumb will
8411 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
8412 We force an Update() after, so it's not as fast as it could be,
8413 but at least there's zero flicker and no droppings.
8414 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
8415 (UpdateThumbPos): add another argument (dirty), which says whether
8416 or not to calculate/add dirty regions which we later invalidate.
8417 For cases where we know we're going to use MoveThumb, we pass
8418 false for this. Otherwise, pass true.
8420 2006-05-12 Jackson Harper <jackson@ximian.com>
8422 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
8425 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
8427 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
8428 and GetClipRegion methods and UserClipWontExposeParent property.
8429 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
8430 overriding UserClipWontExposeParent property, setting to false, since
8431 Win32 handles the required expose messages to draw our clipped parent
8433 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
8434 PaintEventStart to set the user clip region if set.
8436 - Now internally tracking the Region for the control since we need to
8437 store it if the handle is not yet created and only set it when it
8438 becomes created. Before setting the region forced handle creation
8439 - Added code to draw the parents underneath a user-clipped region
8440 * Hwnd.cs: Added UserClip property
8442 2006-05-12 Chris Toshok <toshok@ximian.com>
8444 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
8445 (set_Maximum): same.
8446 (set_Minimum): same.
8447 (set_SmallChange): same.
8448 (OnMouseUpSB): remove the call to refresh when releasing the
8449 thumb. We shouldn't need it.
8451 2006-05-12 Miguel de Icaza <miguel@novell.com>
8453 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
8454 AutoSize set to None, we do not need to relayout everything, we
8455 just need to invalidate the current region.
8457 (Draw): Do not draw the entire ClientArea, just redraw the
8458 clip area being passed.
8460 * MdiClient.cs: Make MdiClient constructor with the Form argument
8463 2006-05-12 Jackson Harper <jackson@ximian.com>
8465 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
8466 parents background image, but strangely not their own.
8467 - (DrawStatusBarPanel): Take into account horizontal alignment
8468 when drawing the strings and icons.
8470 2006-05-12 Mike Kestner <mkestner@novell.com>
8472 * ListBox.cs: avoid invalidations for focus when the collection is
8475 2006-05-12 Chris Toshok <toshok@ximian.com>
8477 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
8478 invalidate the entire thumb area. Call InvalidateDirty which
8479 limits the redraw to the thumb itself and surrounding pixels.
8481 * XplatUIX11.cs (ScrollWindow): optimize copying.
8483 2006-05-12 Chris Toshok <toshok@ximian.com>
8485 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
8486 Figure out the positioning/layout in a single pass instead of
8487 multiple recursive invocations. Speeds up the initial display of
8488 the data grid. Also, make many things private that were
8489 originally public but unused outside this class.
8491 2006-05-11 Jackson Harper <jackson@ximian.com>
8493 * MdiClient.cs: Improved layout code.
8495 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
8497 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
8500 2006-05-11 Chris Toshok <toshok@ximian.com>
8502 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
8503 union of that will always be {0,0,width,height}.
8505 2006-05-11 Jackson Harper <jackson@ximian.com>
8507 * Form.cs: Match MS's DefaultSize for forms (they must have
8508 changed the size in sp2).
8510 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8512 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
8514 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8516 * TextControl.cs : Fixed bug #78109. This incorrect position
8517 comparison caused crash on automatic line split.
8518 * TextBoxBase.cs : reduce duplicate code.
8520 2006-05-10 Jackson Harper <jackson@ximian.com>
8522 * MdiClient.cs: Active form is only sent to the back when using
8523 the Next form functionality, when a form is clicked the current
8524 active shouldn't be sent to the back.
8525 - Layout the mdi windows when the container is first made visible.
8526 * Form.cs: Give the MdiClient a ref to the containing form when we
8529 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8531 * LinkLabel.cs : link_font could be uninitialized, so populate one
8532 before actual use. Fixed bug #78340.
8534 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8536 * XplatUIX11.cs : clipboard format native value is IntPtr.
8539 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8542 - Instead of showing context menus directly we send WM_CONTEXTMENU,
8543 which is passed up the parent chain by DefWndProc
8544 - We now handle WM_CONTEXTMENU to display any menu, or pass it
8545 to DefWndProc (#77956)
8546 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
8548 2006-05-10 Jackson Harper <jackson@ximian.com>
8550 * MdiClient.cs: We need to remove the controls from the mdi
8551 collection, when we close the window.
8552 * MdiWindowManager.cs: Special handling of closing mdi windows.
8553 * InternalWindowManager.cs: Make the close method virtual so the
8554 mdi window manager can handle it specially.
8556 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
8559 - Recalculate grid when the data source has changed
8560 - Matches styles provided by user from all data sources types
8561 * DataGridTableStyle.cs: For columns that provided by the user set the
8562 with the preferred value is there was unassigned.
8563 * CurrencyManager.cs: throw OnItemChanged event
8565 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8567 * PictureBox.cs: Don't animate until handle is created. Start animation
8568 when handle is created.
8570 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8572 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
8574 * XEventQueue.cs: We don't need to provide the extra info
8576 2006-05-10 Jackson Harper <jackson@ximian.com>
8578 * MdiClient.cs: If the mdi clients parent form has a background
8579 image set, we draw that background image for the mdi area's
8582 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8584 * TextBoxBase.cs: Set IBeam cursor (#78347)
8586 2006-05-10 Mike Kestner <mkestner@novell.com>
8588 * ToolBar.cs: fix some text padding issues with ButtonSize
8589 calculation. Update the default size to match MS documentation.
8590 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
8591 button size. Fixes #78296.
8593 2006-05-10 Mike Kestner <mkestner@novell.com>
8595 * ListBox.cs: use is_visible for scrollbar positioning in case the
8596 control isn't on screen yet. Fix off by one with Right vs Width
8597 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
8599 2006-05-10 Jackson Harper <jackson@ximian.com>
8601 * X11Dnd.cs: Drop to a control with another control on top of it.
8602 * ToolBar.cs: Work on a copy of the buttons list, so that it can
8603 be modified in click handlers. TODO: Look for similar problems in
8606 2006-05-09 Jackson Harper <jackson@ximian.com>
8608 * Form.cs: Window managers need the old window state when setting
8610 * InternalWindowManager.cs: Allow the base mdi window manager to
8611 handle more of the MDI only stuff (like maximize buttons).
8612 * MdiWindowManager.cs: Fix some snafus in changing the window
8613 state. Add all the menu functionality, for both popup and
8615 * MdiClient.cs: When a new form is selected the currently
8616 activated form is sent to the back, this matches MS.
8617 - Implement a new method to activate the next mdi child window.
8619 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8622 - Added new InternalCapture method to allow controls to prevent
8623 the capture behaviour on the click handlers
8624 - Switched to use InternalCapture
8626 - Using InternalCapture to prevent mouse captures from being released
8627 on mouse button release (Fixes #78100)
8628 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
8629 returns Form borders if a caption is present. (Fixes #78310)
8631 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8633 * TreeNode.cs: Changed serialization .ctor to not require every field
8634 to be present. (#78265)
8635 * OwnerDrawPropertyBag.cs: Added serialization .ctor
8637 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
8639 * MimeIcon.cs: for is faster than foreach for strings.
8641 2006-05-05 Mike Kestner <mkestner@novell.com>
8643 * CheckedListBox.cs: update check handling code to not use selected.
8644 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
8645 behavior for visual feedback, motion response, shift/ctrl handling,
8646 and properly deal with all 4 selection modes. Updates to bounds
8647 handling logic. Add scroll wheel support. [Fixes #77842]
8649 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8652 - Moved adding of Implicit controls into .ctor. That way, subsequent
8653 creation of the controls will not cause them to think they are
8654 toplevel windows (fixes #78200 header problem)
8655 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
8656 - Switched visibility setting of header control to use internal field
8657 to avoid triggering handle creation
8658 - Now checking if handle is created before causing a refresh when items
8659 are added (This makes us now match handle creation time with MS)
8660 * Splitter.cs: Removed loading of private splitter cursor, switched to
8661 Cursors version now that that is loading the right ones
8662 * Cursors.cs: Load proper splitter cursors from resources
8663 * Cursor.cs: Added second method of loading resource cursors for the
8664 VS.Net users amongst us
8666 2006-05-05 Mike Kestner <mkestner@novell.com>
8668 * ListView.cs: give header_control a minimum size based on the
8671 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8673 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
8674 window seems to do that with metacity, so set that type. (#78120)
8676 2006-05-05 Mike Kestner <mkestner@novell.com>
8678 * ListViewItem.cs: fix Details mode checkbox layout bug.
8679 * ThemeWin32Classic.cs: draw a ListView column header for unused space
8680 at the end of the header, if it exists. [Fixes for #78200]
8682 2006-05-04 Jackson Harper <jackson@ximian.com>
8684 * MdiClient.cs: Add a helper property to get the container form.
8685 * MdiWindowManager.cs: We have to make sure to use the menu origin
8686 when drawing the icons and buttons, this fixes maximized window
8687 icons/buttons on win32.
8688 * InternalWindowManager.cs: Reset the restore captions when a
8689 window goes from Maximized to Minimized and vice versa. Move the
8690 DrawMaximizedButtons into the MdiWindowManager source, tool
8691 windows can't be maximized. NOTE: This could use a little
8692 refactoring if time ever permits.
8694 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8696 * TextBox.cs: Add MWFCategoryAttributes
8697 * TextBoxBase.cs: Add MWFCategoryAttributes
8698 * Form.cs: Add MWFCategoryAttributes
8700 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8702 * Control.cs: Add MWFCategoryAttributes
8703 * ScrollableControl.cs: Add MWFCategoryAttributes
8705 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
8707 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
8708 Divider is true. Fix a little glitch in PropertyToolBar
8711 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
8714 - Dispose: Call base.Dispose, this causes the disposed event
8715 to be fired (and probably other, more important stuff)
8716 - SetVisibleCore: Set is_visible to true after creating the
8717 window so that the window still gets created invisible (if
8718 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
8719 to generate a WM_ACTIVE message
8720 * Form.cs: Call Dispose when we want to destroy the window, instead of
8721 just destroying the handle (Dispose will do that for us)
8723 - RootWindow also needs a queue, so we can properly process the
8724 property change events from RootWindow (like Activate)
8725 - Generatic synthetic WM_ACTIVE message when the active window is
8728 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8730 * LinkLabel.cs: Trigger a recalc of our label dimensions when
8733 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8735 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
8736 for determining width and height (image might not be assigned if
8737 we're drawing an imagelist)
8739 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8741 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
8742 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
8744 * Theme.cs: No longer returns hardcoded menu height, instead calls
8746 * Form.cs (OnLoad): Scaling happens before triggering Load events
8749 2006-05-01 Mike Kestner <mkestner@novell.com>
8751 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
8753 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8755 * TextBoxBase.cs: Removed Fixme
8756 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
8758 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8761 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
8762 the rectangle relative to the parent, considering borders. We
8763 don't really want that.
8764 - ScrollWindow: Fixed warning to be more understandable
8765 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
8766 scrollbars and scroll only the visible area
8767 * RichTextBox.cs: Removed debug output
8769 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8771 * NumericUpDown.cs (Text): Just use base
8772 * UpDownBase.cs: Ensure txtView is created before using it
8774 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8776 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
8777 casting to IntPtr to avoid 64bit overflow errors
8779 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8782 - AllowDrop: Don't force handle creation.
8783 - CreateHandle: Added call to tell driver if we're allowed to drop
8785 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8787 * FileDialog.cs: Remember the last directory not only for the
8788 current instance but also for new FileDialog instances.
8790 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8792 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
8793 broke sending async messages
8795 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8798 - ScrollWindow: Fixed method. We finally generate expose events again
8799 for scrolled areas. This was causing 'garbage' when scrolling
8800 textbox and other controls that used ScrollWindow
8801 - Switched from using the regular queue for paint events to the MS
8802 model of 'generating' paint events when the queue is empty.
8803 We use the new XQueueEvent.Paint subclass to store which windows
8805 - AddExpose now takes the x/y/width/height of the exposed area
8806 and inserts the window into the paint queue if not already there
8807 - InvalidateWholeWindow: Switched to use new AddExpose method
8808 - UpdateMessageQueue: Added which queue to monitor for paint events
8809 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
8810 the unlikely case nothing above handles it. We reset the expose
8811 pending states to get them off the queue.
8812 - GetMessage: Now pulls a paint event if no other events are in the
8814 - Invalidate: Switched to new AddExpose method
8815 - PeekMessage: Updated to understand pending paint events
8816 - UpdateWindow: Fixed logic bug. We were only updating if the window
8817 didn't need updating. Also switched to sending WM_PAINT directly,
8819 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
8820 and random access Remove(). The random access is needed to handle
8821 UpdateWindow() where a WM_PAINT is sent directly without accessing
8823 * ScrollBar.cs: Added Update() calls to cause immediate updates to
8824 allow for better feedback when scrolling. Scrollbars are small and
8825 the immediate update should make it 'feel' more responsive without
8826 slowing things down. ScrollBar still needs it's invaliate logic
8827 updated to not always invalidate the whole bar on certain changes.
8829 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8832 (BackColor): if the control does not support a transparent background,
8833 return the default backcolor when the parent backcolor is transparent.
8835 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
8837 * Application.cs: Updated to new StartLoop/GetMessage API
8838 * RichTextBox.cs: Provide some output on RTF parsing errors
8839 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
8840 new queue_id argument to GetMessage and PeekMessage to allow faster
8841 handling of per-thread queues in drivers.
8842 * Hwnd.cs: Added Queue tracking and property
8843 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
8844 * XEventQueue.cs: Added thread trackingA
8845 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
8847 - Implemented new per-thread queue
8848 - GetMessage: Fixed return/break behaviour on several cases. We were
8849 returning stale messages in some cases, instead of just processing
8852 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8854 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
8856 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
8858 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
8859 fixed off-by-one comparisons between Width/Height and Right/Bottom.
8861 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8863 * PropertyGridView.cs: Fix drop down width.
8865 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8867 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
8868 a mess in DrawToolBar, so I removed one of them.
8870 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8872 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
8873 needed (clip). Otherwise we get artifacts.
8875 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8877 * FixedSizeTextBox.cs: Added constructor to allow specifying which
8879 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
8880 and switched FixedSizeTextBox to only be fixed vertical (#78116)
8881 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
8882 if it matches the scale base font (avoids unneeded scaling)
8884 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
8886 * X11DesktopColors.cs: One gtk_init_check should be enough
8888 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8890 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
8893 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8896 - Generate OnTextChanged for Backspace even if we're only deleting
8897 the current selection
8898 - When setting the Text property, only select all text if the
8899 control does not have focus when it is being set. Otherwise
8900 just place the cursor at the beginning of the control
8902 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
8904 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
8905 Added a little helper to draw PropertyGrid ToolBar with a different
8906 border and a different BackColor.
8907 * PropertyGrid.cs: Some background parts didn't get painted with the
8908 correct background color. Added a class that helps us to draw the
8909 correct border for PropertyGridView and a class that helps us to
8910 draw ToolBars with a different backcolor
8911 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
8913 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
8915 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
8916 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
8918 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8920 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
8921 into the palette entries. Also, since we're working on a copy
8922 we needed to copy the palette back onto the bitmap.
8923 * Cursor.cs: Same fix as XplatUIWin32.cs.
8925 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8927 * ImageListStreamer.cs: Need to read the var (or we're off)
8929 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8931 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
8932 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
8933 TextBoxBase.cs: Unused var fixes
8934 * AxHost.cs: Small 2.0 fix
8935 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
8936 as it seems that is what at least Metacity expects. This will make
8937 icons show up on 64bit platforms. We still have some 64bit size
8938 issues, though, since the startup app window size still won't match.
8940 2006-04-25 Mike Kestner <mkestner@novell.com>
8942 * *.cs: cleanup newly reported exception var unused warnings.
8944 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8946 * ThemeWin32Classic.cs: Button image alignment now matches exactly
8949 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8951 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
8952 image. The image position is always the same, no matter if the
8953 button is pressed or not.
8955 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8957 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
8958 selection and set the correct filename for SaveFileDialog.
8959 Patch by Emery Conrad.
8961 2006-04-24 Mike Kestner <mkestner@novell.com>
8963 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
8964 check for item.X outside the ClientRect instead of item.Y. Fixes
8967 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8969 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
8970 trust that value blindly and do some sanity check. Fixes bug #77814.
8972 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8974 * ImageListStreamer.cs: save the mask as a 1bpp image.
8976 2006-04-21 Mike Kestner <mkestner@novell.com>
8978 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
8979 pass Checked and Indeterminate to the Theme Engine. Improve
8980 encapsulation with ListBox.
8981 * ListBox.cs: Keep a StringFormat instead of calculating it every item
8982 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
8983 nested types. Move all CheckState functionality to CheckedListBox.
8984 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
8985 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
8986 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
8987 single base list. Fix scrollbar sizing and placement to mirror MS.
8988 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
8990 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
8991 for CheckedListBox by using new DrawItemState info. Center the
8992 checkboxes on the items. Use new StringFormat property.
8994 2006-04-18 Jackson Harper <jackson@ximian.com>
8996 * Form.cs: MdiChildren don't do default locations the same way as
8997 regular forms. This prevents a crash when trying to position the
9000 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
9002 * PropertyGridTextBox.cs: Formatting, copyright
9003 * PropertiesTab.cs: Formatting
9004 * PropertyGrid.cs: Formatting
9005 * PropertyGridView.cs: Formatting, fix drop down, enabled double
9006 click toggling of values
9008 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
9010 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
9011 * Control.cs (.ctor): verify_thread_handle is static, don't reset
9012 every time a control is created
9013 * Application.cs: Removed obsolete EnableRTLMirroring method
9015 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
9017 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
9018 SelectedIndex to -1. Fixes bug #78121.
9020 2006-04-17 Jackson Harper <jackson@ximian.com>
9022 * Binding.cs: Handle null values for Current and BindingContext.
9023 This occurs when binding is a little delayed.
9024 * CurrencyManager.cs: return null for Current when there are no
9026 - Hookup to the listchanged event on the DataView and update
9027 bindings when the list is changed. This fixes late binding of
9030 2006-04-17 Jackson Harper <jackson@ximian.com>
9033 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
9036 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
9038 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
9040 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
9041 with the correct ButtonState
9043 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
9045 * XplatUIX11.cs: Improved distinguishing between window types to
9046 tell the WM a type closer to what the app wants (Fixes #78107)
9048 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
9050 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
9053 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
9055 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
9056 drawing code to reflect the size grip changes
9058 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9060 * ImageListStreamer.cs: fix handling of the mask that follows the main
9061 bitmap when deserializing and serialize it properly. The generated mask
9062 should better be a 1bpp image, but I'll do that later.
9064 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
9066 * FileDialog.cs: Show something in the DirComboBox on *nix if the
9067 path doesn't fit into some of our Current.Places
9069 2006-04-13 Jackson Harper <jackson@ximian.com>
9071 * ComboBox.cs: Use borders instead of drawing our own decorations,
9072 try to obey correct rules for heights.
9075 * ThemeClearLooks.cs:
9076 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
9077 this is now handled by borders.
9078 - Remove unused DrawListBoxDecorationSize method.
9080 2006-04-13 Mike Kestner <mkestner@novell.com>
9082 * MenuAPI.cs: null guarding for the disbled click check fixes crash
9085 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
9087 * ThemeWin32Classic.cs:
9088 - Fixed CPDrawStringDisabled
9089 - Corrected drawing of disabled menu items
9090 - Fixed drawing of disabled radio buttons (bug #78095)
9091 - Draw check in a disabled CheckBox with color ControlDark
9093 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9095 * Form.cs: Use the provided width when calculating the menu size;
9096 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
9097 and ClientSize.Width won't be updated yet
9098 * Application.cs: Use Visible instead of Show() to make form visible,
9099 this way we create the handle later and menusize is considered
9101 2006-04-12 Mike Kestner <mkestner@novell.com>
9103 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
9106 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9108 * TextBox.cs: Implemented context menu
9110 2006-04-12 Mike Kestner <mkestner@novell.com>
9112 * ListView.cs: implement box selection. fixes #77838.
9113 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
9115 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9117 * XplatUIX11.cs: Added setting of window type when transient window
9118 is created (metacity would move it otherwise)
9119 * X11Structs.cs: Added WINDOW_TYPE atoms
9120 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
9121 background (the control is Opaque but still wants transparent
9124 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9126 * Control.cs: Added OnPaintBackgroundInternal to allow controls
9127 that set Opaque but don't mean it (like all ButtonBase-derived
9128 controls) to still draw their background
9129 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
9132 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9134 * Control.cs (PaintControlBackground): Set the graphics object
9135 on our PaintEvent to null to prevent it from being disposed
9136 when the PaintEvent gets disposed
9138 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
9140 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
9141 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
9143 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
9146 - Added transparency check to BackColor property. Transparent
9147 backgrounds are only allowed if the control styles permit it
9148 - Added recursive painting of parent control background and
9149 foreground if a control with a transparent backcolor is drawn
9150 (Thanks to Tim Ringenback for providing his 'hack' as a base
9151 for this patch) Fixes #77985 and #78026.
9152 - Added Opaque style check before calling OnPaintBackground, no
9153 need to draw the background if the control is opaque
9154 - Removed ControlAccessibleObject owner variable (inherited from
9155 base, no need to define again)
9156 - Added some documentation links explaining the drawing events
9159 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9161 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
9162 that the affected control is the located at the left border of our
9163 parent (Fixes #77936)
9165 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9167 * TextBoxBase.cs: When rendering disabled or readonly controls,
9168 draw the background with 'Control' instead of 'Window' color as
9169 long as the user hasn't specifically set a color
9171 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9173 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
9174 since that won't be updated if the user types text (only if it's
9175 programatically set)
9177 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9179 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
9180 layout changes do to app-triggered resizes will have the proper
9181 display rectangle for layout
9183 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
9185 * ThemeWin32Classic.cs:
9186 - Make use of the SystemBrushes and SystemPens wherever possible
9187 - Corrected some highlight colors
9188 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
9190 * Theme.cs: Added Empty field to CPColor struct
9192 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
9194 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
9195 is displayed when calculating the display rectangle. Thanks to Mike
9196 for teaching me the err of my ways.
9198 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
9200 * ScrollableControl.cs:
9201 - Rewrote DisplayRectangle code, now returning the proper x/y coords
9202 (instead of 0,0) and we now return the real width/height instead of
9203 just the clientrectangle, adjusted for padding. The rectangle is
9204 now cached and created by the new CalculateDisplayRectangle method.
9205 - Created new CalculateDisplayRectange method, which basically does
9206 what get_DisplayRectangle() did originally, but now using the
9207 right edge instead of DisplayRectangle to determine the size of
9209 - get_Canvas(): Fixed it to properly calculate canvas for
9210 right/bottom controls which seem to be placed to the right/bottom
9211 of any controls that have a fixed location
9212 - Removed TODO that's taken care of
9213 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
9214 and SetDisplayRectLocation according to new MSDN2 docs
9215 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
9216 event when that is called, this is added for compatibility
9217 - ScrollControlIntoView(): Implemented.
9218 - Switched scrollbars to be implicit, they shouldn't be selectable
9219 * ContainerControl: Now that ScrollControlIntoView is implemented, we
9220 call it when the active control is set/changed
9221 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
9222 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
9223 implicit_control variable (used for native Win32 message generation)
9224 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
9225 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
9226 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
9227 * XplatUIStructs.cs: Added ScrollBarCommands enum
9229 2006-04-10 Jackson Harper <jackson@ximian.com>
9232 * CheckedListBox.cs:
9239 * PrintPreviewControl.cs:
9245 * UpDownBase.cs: Fixup base event overrides.
9247 2006-04-06 Mike Kestner <mkestner@novell.com>
9249 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
9250 all user-initiated value changes to min <= value <= max-thumbsz+1.
9251 (set_Value): check for vert/horiz when calculating new thumb position.
9252 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
9254 (OnMouseMoveSB): refactor the thumb dragging code and refine
9255 invalidation logic to reduce flicker.
9256 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
9257 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
9258 (UpdateThumbPosition): small code readability cleanup
9260 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
9262 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
9265 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
9267 * ThemeNice.cs: Use a better graphics effect when a button is pressed
9269 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
9271 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
9272 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
9273 This dramatically reduces the number of Pen.Dispose calls.
9274 Where possible call ResPool methods only once instead of calling it
9275 over and over again (for example for the same color).
9277 2006-04-06 Mike Kestner <mkestner@novell.com>
9279 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
9280 Also remove an unused private field on the collection. Fixes #77972.
9282 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
9284 * ThemeNice.cs: Added ToolBar drawing code
9286 2006-04-06 Mike Kestner <mkestner@novell.com>
9288 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
9289 I'm assuming that means we need to look up the toplevel for the
9290 provided control. Fixes the crash trace in #77911 but exposes another
9291 crash in some strange reflection usage in NDocGui.
9293 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
9295 * ThemeNice.cs: Gave it a little silver touch and added Images
9297 * FontDialog.cs: FontDialog is not resizable
9298 * FileDialg.cs: Added SizeGripStyle.Show
9300 2006-04-05 Jackson Harper <jackson@ximian.com>
9302 * KeyboardLayouts.cs: Remove warning.
9304 2006-04-05 Jackson Harper <jackson@ximian.com>
9306 * Control.cs: Enable OnPaintInternal so we can use it for drawing
9307 all of our controls instead of Paint +=.
9322 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
9323 use OnPaintInternal. Remove Width/Height and Visible checks in
9324 paint handler, this is done at a higher level now.
9325 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
9326 * PaintEventArgs.cs: Add a handled flag so controls that don't
9327 want anymore painting after OnPaintInternal can make sure OnPaint
9330 2006-04-05 Mike Kestner <mkestner@novell.com>
9332 * Form.cs: fix the menu WndProc hacks to respect the native enabled
9333 state of the form, so that we don't process events when Modal dialogs
9334 are up. Fixes #77922.
9336 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
9338 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
9341 2006-04-05 Mike Kestner <mkestner@novell.com>
9343 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
9345 2006-04-05 Mike Kestner <mkestner@novell.com>
9347 * ListView.cs (HeaderMouseMove): null guarding for the over column
9348 when setting up the drag_to_index. Fixes #78015.
9350 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
9352 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
9353 in the taskbar. Transient windows seem to accomplish that.
9355 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
9358 - Re-enabled CreateParams.X/Y code for FormStartPosition
9359 - Added code for manual placement when creating the Control
9360 - Incomplete patch to treat MDI forms differently when
9361 setting the ClientSizeCore. (Still need to figure out handling
9364 - When we're explicitly setting the X/Y position of a non-Child
9365 window, let the WM know. Metacity really wants this.
9367 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9369 * ThemeNice.cs: Added CPDrawButton
9371 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9373 * ThemeNice.cs: Changed the color for focused buttons and activated
9374 the arrows for small scroll buttons.
9376 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
9378 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
9379 anymore. Changed some method modifiers to protected (virtual)
9380 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
9382 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
9383 Updated drawing of menus, buttons and progressbars; added
9386 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9388 * ImageListStreamer.cs: implemented serialization/deserialization
9391 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
9393 * ThemeWin32Classic.cs:
9394 - Removed all the DrawFrameControl stuff; CPDrawButton,
9395 CPDrawCheckBox and CPDrawRadioButton are now handled directly
9397 - Updated and corrected the drawing code of CPDrawButton,
9398 CPDrawCheckBox and CPDrawRadioButton to better match ms
9399 - Updated theme checkbox and radiobutton code to use the CP*
9402 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9404 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
9407 2006-03-31 Jackson Harper <jackson@ximian.com>
9409 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
9411 * UpDownBase.cs: Don't CreateGraphics manually, use a
9412 Refresh. Ideally we would invalidate the correct areas here.
9414 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9417 - We now track the mapping state of windows. If a window (or
9418 one of it's parents) is not mapped we no longer permit
9419 WM_PAINT messages to be generated since we'd otherwise get
9420 lots of BadMatch X errors. Jackson did all the work figuring
9422 - Destroying the caret if the window it's contained in is
9423 destroyed. Can't use regular DestroyCaret method since it
9424 might fall into a drawing function (trying to remove the
9425 caret) and with that generate new BadMatch errors. Again,
9426 Jackson tracked this down.
9427 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
9428 make sure we send the messages to all windows. (The old code
9429 would send the WM_DESTROY to the window, and then all child
9430 windows would be 'gone' because the WM_DESTROY handle lookup
9431 would no longer find the destroyed window)
9432 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
9433 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
9435 2006-03-31 Jackson Harper <jackson@ximian.com>
9437 * ScrollableControl.cs: Dont recalc if we are not visible.
9439 2006-03-31 Mike Kestner <mkestner@novell.com>
9441 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
9442 the visibility branch.
9444 2006-03-31 Jackson Harper <jackson@ximian.com>
9446 * ScrollBar.cs: Cap values when incrementing/decrementing.
9448 2006-03-31 Mike Kestner <mkestner@novell.com>
9450 * MenuAPI.cs: setup menu.tracker for popup/context menus.
9451 * ToolTip.cs: guard against timer expirations with no active control.
9452 Not sure why it happened.
9454 2006-03-31 Mike Kestner <mkestner@novell.com>
9456 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
9458 * ToolTip.cs: Position the tooltip based on where the cursor is at
9459 popup time, not at MouseEnter time. Add a Down state so that we don't
9460 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
9461 positioning offset. Lookup DisplaySize at positioning time, since it
9462 can theoretically change during invocation.
9463 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
9464 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
9466 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9468 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
9469 Fixes behaviour when the Text property of the box is String.Empty
9471 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9473 * XplatUIX11.cs: Only send mouseleave for our client windows, not
9474 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
9477 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9479 * FileDialog.cs: Visual enhancement for the popup buttons in
9482 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9484 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
9487 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
9489 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
9490 highlighted menu items to match ms
9492 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
9494 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
9496 2006-03-30 Mike Kestner <mkestner@novell.com>
9498 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
9499 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
9500 go active to account for HotLight to Selected transition.
9501 * MenuItem.cs: add internal Selected prop. Fill out the Status
9502 property by calculating it from item info. Add HotLight,
9503 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
9505 2006-03-30 Mike Kestner <mkestner@novell.com>
9507 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
9509 2006-03-29 Jackson Harper <jackson@ximian.com>
9511 * Form.cs: Implement TODO.
9513 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9515 * PrintPreviewDialog.cs: Implemented missing methods and events; still
9516 missing proper dialog setup in the constructor
9518 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9520 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
9522 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
9523 - Fixed ResetBindings and removed TODO
9524 - Added check for cross-thread calls to get_Handle()
9525 - Added Marshaller attribute for set_Font to satisfy class status
9526 * FontDialog.cs: Removed TODOs that seemed implemented
9527 * UpDownBase.cs: Removed unneeded TODO and Fixme
9528 * MessageBox.cs: Implemented support for Default button and removed TODO
9529 * FileDialog.cs: Removed obsolete TODO
9530 * DomainUpDown.cs: Removed obsolete TODO
9531 * ButtonBase.cs: Removed obsolete TODO
9532 * XplatUIWin32.cs: Removed obsolete TODO
9534 - Removed obsolete TODO
9535 - Calling CheckAcceptButton when the acceptbutton is changed to allow
9536 internal status updates
9537 - Making sure the active control is selected when the control is created
9538 * CurrencyManager.cs: Removed obsolete TODO
9540 2006-03-29 Mike Kestner <mkestner@novell.com>
9542 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
9543 of PrintPreviewDialog and RichTextBox.
9545 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9547 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
9548 DarkDark, Light and LightLight colors for a specific color
9549 * ThemeWin32Classic.cs:
9550 - Use Button drawing code to draw RadioButtons and CheckBoxes with
9552 - Make use of the new ResPool helper CPColor
9553 - Draw ProgressBar and StatusBar with correct 3D borders
9555 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9557 * ColorDialog.cs: Return selected color. Fixes bug #77940.
9559 2006-03-28 Mike Kestner <mkestner@novell.com>
9561 * ListView.cs: fix Icon layout to plan for scrollbar widths when
9562 calculating col/row counts.
9564 2006-03-28 Mike Kestner <mkestner@novell.com>
9570 switch to explicit interface method implementation for some methods
9571 corcompare identifies as inconsistent with MS.
9573 2006-03-28 Mike Kestner <mkestner@novell.com>
9577 add a few missing methods from the class status output.
9579 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
9581 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
9584 2006-03-28 Mike Kestner <mkestner@novell.com>
9586 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
9588 2006-03-27 Mike Kestner <mkestner@novell.com>
9590 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
9591 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
9593 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
9595 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
9597 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9599 * ThemeWin32Classic.cs:
9600 - GroupBox: Inserted a little gap between the text and the lines
9602 - Made the code in CPDrawBorder3D more readable
9603 - Corrected the drawing location of the up and down arrows in
9606 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9608 * ControlPaint.cs: Corrected line widths in DrawBorder for
9609 ButtonBorderStyle Inset and Outset
9611 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9613 * ThemeWin32Classic.cs:
9614 - Rewrote the totally broken CPDrawBorder3D method. That was
9615 one of the main problems for the terrific ThemeWin32Classic
9617 - Updated and corrected Button drawing
9618 - Correct the dimensions of the SizeGrip to match ms ones
9619 - Removed a small drawing glitch in DrawComboBoxEditDecorations
9620 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
9621 Border3DStyle.Sunken to match ms.
9623 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9625 * ThemeWin32Classic.cs: First small part of the "de-uglify
9626 ThemeWin32Classic" effort, SizeGrip
9628 2006-03-24 Jackson Harper <jackson@ximian.com>
9630 * XplatUIX11.cs: Give a max idle time of one second, this matches
9631 MS and forces an Idle event every second when there are no other
9632 events in the queue.
9634 2006-03-24 Mike Kestner <mkestner@novell.com>
9636 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
9637 * ListView.Item.cs: fix layout issues with null image lists and images
9638 smaller than checkbox size.
9639 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
9640 mode like MS does. It's weird, but consistent. ;-)
9643 2006-03-24 Mike Kestner <mkestner@novell.com>
9645 * ListView.cs: Scroll wheel support for the item control. Fixes
9648 2006-03-23 Jackson Harper <jackson@ximian.com>
9650 * ScrollableControl.cs: Special case negative sized areas, not
9652 * MonthCalendar.cs: Save the rect of the clicked date so we can
9653 use it for invalidation.
9654 - Try to cut down on the number of invalidates
9655 - Invalidate the rect the mouse is over and was over when moving
9656 the mouse, so we get the focus box following the cursor.
9658 2006-03-23 Mike Kestner <mkestner@novell.com>
9660 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
9661 focus rectangle drawing. Fixes #77835.
9663 2006-03-23 Mike Kestner <mkestner@novell.com>
9665 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
9666 the if and else if and reverting back to the original == check on the
9669 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9671 * FontDialog.cs: Update the example panel if the selected index of
9672 the fontListBox changes.
9674 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9676 * FileDialog.cs: Make FileDialog remember which directory it was in
9677 last in the same execution.
9679 2006-03-22 Mike Kestner <mkestner@novell.com>
9681 * FileDialog.cs: make the DropDownMenu on the toolbar display
9682 RadioChecks since they are mutually exclusive and that's what MS does.
9684 2006-03-22 Mike Kestner <mkestner@novell.com>
9686 * Theme.cs: add Color param to CPDrawMenuGlyph.
9687 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
9688 checks and radio marks and arrows are visible on highlighted items.
9689 * ControlPaint.cs: update to use new Theme signature.
9691 2006-03-22 Mike Kestner <mkestner@novell.com>
9693 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
9694 is active. Fixes #77870.
9696 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9698 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
9699 to be focused/selected after startup
9701 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9704 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
9705 CustomColors and ShowHelp properties
9706 - Some internal rewrites to get better results when using the
9709 2006-03-22 Mike Kestner <mkestner@novell.com>
9711 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
9712 HoverSelection. Fixes #77836.
9714 2006-03-22 Mike Kestner <mkestner@novell.com>
9716 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
9717 ToggleButtons. (De)Sensitize the Back button around a stack count of
9718 1, not 0. Update ButtonSize based on a pixel count of the win32
9719 control. Adjust the toolbar size/location for new button size.
9721 2006-03-22 Jackson Harper <jackson@ximian.com>
9723 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
9725 * ScrollBar.cs: When doing increments and decrements we need to
9726 set the Value property so that ValueChanged gets raised. A
9727 possible optimization here would be to make an internal SetValue
9728 that doesn't invalidate immediately.
9729 * ToolTip.cs: Tooltips get added to their container (when
9730 supplied) so they get disposed when the container is disposed.
9731 - Don't create tooltips for String.Empty. This prevents all these
9732 little 2-3 pixel windows from showing up when running nunit-gui
9734 * Form.cs: Don't set topmost when setting the owner if the handles
9735 haven't been created yet. The topmost set will happen when the
9736 handles are created.
9738 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
9741 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
9742 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
9743 visible (to allow them to recalculate their sizes)
9745 2006-03-21 Mike Kestner <mkestner@novell.com>
9747 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
9748 methods. Removed a ton of redundant code. Still not really happy with
9749 the border rendering, but I think that's mainly because of the
9750 ControlDarkDark being black instead of a dark grey. Depending on how
9751 close we want to be, we might want to revisit those color choices.
9752 Among the new features added during the refactor were DropDownArrow
9753 pressed rendering, Disabled image rendering. Proper flat appearance
9754 boundary rendering. Removed the Divider and Wrapping dividers since I
9755 can't figure out any combination of themes and conditions to make the
9756 MS control draw a horizontal line on a toolbar despite what the
9757 Divider property docs indicate.
9758 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
9759 conditions and incorrect layout. Updated to coding standard.
9760 * ToolBarButton.cs: refactored layout and positioning code from
9761 ToolBar to here. Invalidate wherever possible instead of forcing
9762 redraws of the whole toolbar.
9763 (Known remaining issues: explicit ButtonSize smaller than provided
9766 2006-03-21 Mike Kestner <mkestner@novell.com>
9768 * ContextMenu.cs (Show): use the position parameter instead of just
9769 showing at the MousePosition.
9771 2006-03-21 Jackson Harper <jackson@ximian.com>
9773 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
9774 control handle this.
9775 * TreeNodeCollection.cs: If we are clearing the root node we need
9776 to reset top_node so calcs can still happen.
9777 * ThemeWin32Classic.cs: This is a Flags so we need to check
9780 2006-03-21 Jackson Harper <jackson@ximian.com>
9782 * DataGrid.cs: Create columns when the binding context has been
9784 * X11Structs.cs: Keysyms are uints.
9785 - Add size to fix build.
9787 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
9789 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9791 - Added ResetMouseHover method to allow controls to retrigger
9792 hovering if they need it more than once
9793 - Implemented MouseHoverTime and MouseHoverSize properties
9794 * Timer.cs: Start() must reset the interval
9795 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
9798 2006-03-21 Jackson Harper <jackson@ximian.com>
9800 * X11Keyboard.cs: improved layout detection. Move the nonchar
9801 tables into this file.
9802 * KeyboardLayouts.cs: Move the tables into resource files.
9804 2006-03-21 Mike Kestner <mkestner@novell.com>
9806 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
9808 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
9810 * Mime.cs: Various speed optimizations. Looking up mime types
9811 is now 2 times faster than before
9813 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9815 * CreateParams.cs: Added internal menu field
9817 - Switched call order for UpdateBounds; now we always call
9818 the one that also takes ClientSize, and we're calculating the
9819 client size via driver method in the others. The previous
9820 method of tracking client size by difference wasn't working
9821 for forms where even the starting client size wouldn't match
9822 the overall form size (due to borders) (Part of fix for #77729)
9823 - CreateParams(): Do not use parent.Handle unless the handle is
9824 already created. Causes havoc with Nexxia and throws off our
9825 creation of controls
9827 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
9828 - Switched handling of ConfigureNotify over to new PerformNCCalc
9829 method (consolidates code)
9830 - Changed RequestNCRecalc to use new PerformNCCalc method
9831 - Added calls to RequestNCRecalc when menus and borders are changed
9832 to allow app to set NC size. (Part of fix for #77729) This matches
9833 when MS send a WM_NCRECALC on Win32 windows.
9834 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
9835 (Part of fix for #77729). This matches what MS does, they also
9836 send that message when the form is made visible.
9837 - XException.GetMessage: Improved usability of X errors by including
9838 a translation of the window into Hwnd and Control class
9839 - Improved debug info for window creation, reparenting and destruction
9840 - Created helper method WindowIsMapped() [Currently not used]
9841 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
9843 - CreateParams: Now setting our menu on the new internal menu field
9844 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
9845 avoid calculating the same property twice
9847 - Improved usability of ToString() for debugging purposes
9848 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
9849 determine the height of the menu, instead of just the font. This
9850 required to also create a graphics context and to keep a bmp
9851 around (for performance reasons)
9853 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9855 * MenuAPI.cs: Added OnMouseUp method
9857 - Now remembering the requested client size, avoids size errors
9858 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
9859 instead of base if the menu is active. This is required due to
9860 control now capturing and releasing on down/up and it would
9861 prematurely release our menu capture
9863 2006-03-17 Jackson Harper <jackson@ximian.com>
9865 * KeyboardLayouts.cs: Add the czech layouts.
9867 2006-03-16 Jackson Harper <jackson@ximian.com>
9869 * Control.cs: Use the viewport space when sizing not the controls
9870 client size, so things like ScrollableControl that effect the
9871 viewport size (when scrollbars are added) are computed correctly.
9872 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
9874 - Handle creating BindingManagers for null data sources.
9875 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
9876 source, otherwise when rows are added they are added to the 'fake'
9877 datasource and we will crash when trying to set the position in
9879 - Use Implicit scrollbars on the datagrid so they arent
9882 2006-03-16 Jackson Harper <jackson@ximian.com>
9885 * InternalWindowManager.cs:
9886 * MdiWindowManager.cs:
9887 * X11Keyboard.cs: I really want Mike to love me again (fix
9890 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
9893 - OnMouseDown: Switch to editing mode when clicking on the cell
9894 even if we're clicking on the cell that's currently
9896 - ProcessGridKey: Left/Right now wrap like MS.Net does
9897 - ProcessGridKey: Tab now knows to add a new row when tab is
9898 pressed in the cell of the last column of the
9900 - ProcessGridKey: Enter now adds another row if pressed in the last
9901 row and selectes the new row, same column cell
9902 - ProcessGridKey: Home/End navigate columns, not rows, like
9903 originally implemented
9904 - Broke ProcessKeyPreview code out into an extra Internal method
9905 so it can be called from the edit code
9906 * DataGridTextBox.cs (ProcessKeyMessage):
9907 - Switched to accept Tab keypresses
9908 - Added F2 handling to allow jumping to the end of the edited cell
9909 - Added logic to allow moving caret left/right inside edited cell
9910 and making the edited cell jump when the caret hits cell borders
9911 - Tab and Enter are now passed to the datagrid after being handled
9913 - Removed capture code now that Control handles it
9914 - set_SelectionStart now ensures caret is visible
9916 2006-03-16 Jackson Harper <jackson@ximian.com>
9918 * TrackBar.cs: Debackwards the increment/decrement for handling
9919 mouse clicks on the bar with vertical trackbars.
9920 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
9923 2006-03-16 Mike Kestner <mkestner@novell.com>
9925 * ListView.cs: make shift/ctrl keyboard and mouse selection
9926 consistent with the MS control. Fix a bug in
9927 SelectedListViewItemCollection.Clear that was pissing me off for the
9928 better part of a day because the collection was being altered
9929 underneath us as we walked the list.
9931 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
9933 * Control.cs: Not sure how we could miss this so long, but it seems
9934 that MS.Net has Capture set all the way from before calling
9935 OnMouseDown through sending the mouse events until after
9936 OnMouseUp. This will fix DataGrid's selection being set to end
9937 at the location of the MouseUp.
9939 2006-03-15 Jackson Harper <jackson@ximian.com>
9941 * BindingContext.cs: Check the binding after its added so that it
9942 can initialize the binding managers and hookup to events.
9943 * Binding.cs: Data members seem to sometimes include rows/cols in
9944 the format Row.Column we now take this into account.
9945 - Hookup to the position changed event so we can update the
9946 control when the position has changed in the data set.
9947 * CurrencyManager.cs: Take into account the row/col naming
9948 convention when creating dataset tables.
9949 * BindingContext.cs: Using a newer better way of storing
9950 datasource/datamember pairs. Hopefully this better matches MS for
9951 looking up binding managers.
9954 2006-03-15 Jackson Harper <jackson@ximian.com>
9956 * BindingContext.cs: The currency manager needs the data member
9957 name, if the member is a data set we use the name to find the
9959 * CurrencyManager.cs: When creating the list prefer an IList over
9961 - Attempt to create a DataTable from a DataSet (TODO: might need
9962 some better error checking here, although MS doesn't seem to have much)
9963 - If we have a DataTable create a view and use it as our list.
9965 2006-03-15 Mike Kestner <mkestner@novell.com>
9967 * ListView.cs: keep a matrix of the icon mode layout to facilitate
9968 keyboard navigation. Support Up/Down/Left/Right selection correctly
9969 for all 4 View modes.
9970 * ListViewItem.cs: add internal row/col fields for icon layouts.
9972 2006-03-15 Jackson Harper <jackson@ximian.com>
9974 * TabControl.cs: Redraw the tabs when we resize so their newly
9975 calculated sizes are drawn on screen.
9976 * X11Keyboard.cs: Begginnings of XIM support. We also now support
9977 composite characters.
9978 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
9979 - filter events so that composite characters can be created
9981 * X11Structs.cs: Add XIMProperties enum.
9983 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9985 * Control.cs (BringToFront, SendToBack): Don't use window or handle
9988 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9990 * Control.cs (PerformLayout): We don't need to consider visiblity
9991 for anchoring, only for docking. This fixes 'whacky' alignment
9992 in listbox and other controls that use implicit scrollbars after
9993 the previous PerformLayout patch
9994 * ListBox.cs: Switched to use implicit scrollbars
9996 2006-03-14 Mike Kestner <mkestner@novell.com>
10000 - chain up the "new event" overrides to base and use
10001 OnEvent to raise them. Part of fix for bug #76509.
10003 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
10005 * FileDialog.cs: Do not select an item in the parent directory
10008 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10010 * Control.cs (PerformLayout): It would seem that we considered
10011 invisible windows for our layout. Not quite the right thing
10012 to do. Now we don't any longer, thereby fixing bug #76889.
10014 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
10016 * Control.cs (CanFocus): I goofed. A control can have focus
10017 even though it's not selectable. Made it match MS docs.
10019 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10021 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
10022 center by default (fixes #76895)
10023 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
10024 all uses of Border3DSides.All with the explicit ORd together
10025 Left|Right|Top|Bottom because I assume that nobody was aware
10026 that All also implies a center fill. Most places I checked had
10027 a fill right above.
10028 * ProgressBarStyle.cs: Added
10030 2006-03-13 Mike Kestner <mkestner@novell.com>
10032 * ListView.cs: fix breakage in drag shadow header positioning
10033 from Peter's csc compilation fix.
10035 2006-03-13 Mike Kestner <mkestner@novell.com>
10037 * ListView.cs: fix NRE produced by backspacing twice in a focused
10040 2006-03-13 Mike Kestner <mkestner@novell.com>
10042 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
10044 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10046 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
10048 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
10049 the allowed size before making programmatic size changes
10051 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10053 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
10054 set, metacity is broken and will still use the emty sizes in
10055 the struct. (Fix for #77089)
10057 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
10059 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
10060 WindowExStyles and marked both enums as Flags
10061 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
10062 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
10063 to match WindowStyles split
10065 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
10066 - Updated to match WindowStyles split
10068 - Fixed FosterParent creation, was using ExStyle on the Style field
10069 (This should help with Popup focus issues)
10070 - Updated to match WindowStyles split
10072 2006-03-13 Jackson Harper <jackson@ximian.com>
10074 * MdiWindowManager.cs: Use the system menu height. Fixes some
10075 strange sizing issues.
10077 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10079 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
10081 - Scroll to caret after inserting text (#77672)
10082 - Make scroll range one pixel higher, fixes off-by-one error (and
10083 makes underlines visible on the last line)
10085 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10087 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
10088 the keyboard state from being stuck with keys in 'pressed' state when
10089 focus is switched away via keyboard
10090 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
10091 reset the keyboard if no X11 KeyUp events are expected to come
10092 * X11Structs.cs: Switched type of Visible to bool to match driver
10094 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
10097 - Switched caret to be just 1 pixel wide, matches MS and looks less
10099 - Moved caret display 1 pixel down from the top of the control
10101 - InsertCharAtCharet: Update the selection start if moving the caret
10102 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
10103 - No longer always creating the caret when the caret methods are
10104 called. Only the actual ShowCaret/HideCaret will do that now
10105 - Only setting caret visible if the owner control has focus
10106 - UpdateView: Added invalidation-shortcut logic for center and right
10107 aligned text. Previously we'd update all according to the left
10108 logic which caused drawing errors. Also fixed height of invalidated
10109 areas, now properly invalidating the whole area (was off-by-one)
10110 - owner_HandleCreated: Always generate the document when the
10111 handle is created; this ensures that
10113 - Fixed situation where caret would disappear under the right
10114 window border, also improved scrolling behaviour on left-
10116 - Fixed right-aligned textboxes to have a border to the
10117 right instead of the caret being under the right border
10119 - Switched from 'nested' to simple visible/not visible tracking
10120 for caret (part of fix for #77671)
10121 - No longer passing through translated FocusIn/FocusOut messages
10122 since we were notifying too often and the wrong windows. Instead
10123 we just notify our focussed window of receiving or loosing focus
10124 * XplatUIWin32.cs: Switched from 'nested' show/hide
10125 counting for caret to simple visible yes/no behaviour (part of
10128 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
10130 * Mime.cs: Remove debug code...
10132 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
10134 * MimeGenerated.cs: Removed
10135 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
10136 and subclasses) from /usr/(local/)share/mime and
10137 $HOME/.local/share/mime.
10139 2006-03-10 Jackson Harper <jackson@ximian.com>
10141 * MdiWindowManager.cs: Recalc the NC area when a window is
10142 maximized/restored so that the menu area is drawn on forms that
10145 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10147 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10148 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
10149 us to force a WM_NCCALCRESIZE message being sent. This is needed
10150 for MDI maximizing.
10152 2006-03-10 Jackson Harper <jackson@ximian.com>
10154 * Form.cs: We need to use the ActiveMenu when calculating menu
10156 - Fix nullref when the window manager hasn't been created yet.
10157 * Control.cs: Fix nullref when we try to bring a control to the
10158 front that has no parent.
10159 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
10161 - Add a dummy item to the maximized menu so it always has the
10162 correct height. Otherwise when there are no menus we don't get our
10166 2006-03-10 Jackson Harper <jackson@ximian.com>
10168 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
10170 * Form.cs: Make the window_state internal so the window managers
10172 - When an MDI child is maximized let its window manager create the
10173 main menu (so it can add its icon).
10174 - Notify the window managers of state changes
10175 - Let the window manager paint its buttons and handle button
10176 clicks on the menu when it is maximized.
10177 * InternalWindowManager.cs: Move the prev_bounds into the mdi
10178 window manager, since tool windows don't use it, only mdi windows.
10179 - Tell the main form that we don't want it to handle NCPAINT
10180 itself to avoid extra painting.
10181 - Handle clicks on a maximized windows menu.
10182 - Handle window state changes
10183 - Handle minimize/maximize clicks correctly by setting the window state.
10184 * MdiWindowManager.cs: Add an icon menu that (the menu you get
10185 when clicking on the forms icon).
10186 - New method to create a forms maximized menu. This is its normal
10188 - Handle window state changes.
10189 - Handle sizing of maximized windows. Maximized windows are just
10190 drawn bigger then the parent visible area. All controls are still
10191 there, they are just outside the visible area (this matches windows).
10192 * MdiClient.cs: No scrollbars when a child window is maximized.
10193 - Let the children windows figure out how big they should be when
10194 sizing maximized windows.
10195 - Implement a version of ArrangeIconicWindows somewhat similar to
10196 Windows version. There are some little differences, but I don't
10197 think any app will rely on the layout of minimized mdi windows.
10199 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10201 * Padding.cs: Several fixes to allow compiling with csc 2.0
10203 2006-03-09 Jackson Harper <jackson@ximian.com>
10206 * MenuItem.cs: Cheap hack so we can add items to the list without
10207 the events being raised. This allows adding mdi items during
10208 drawing. TODO: Should probably find a better time to add the items.
10210 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10212 * ThemeWin32Classic.cs:
10213 - CheckBox_DrawText: Added logic to not wrap if not enough space
10214 is available (Fix for bug #77727)
10215 - RadioButton_DrawText: Added logic not to wrap if not enough
10216 space is available (Fix for bug #77727). Also removed some
10217 duplicate code, DrawString always drawing the regular text
10218 before hitting the if statement.
10220 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10222 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
10224 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
10226 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
10227 * ContainerControl.cs: Partial implementation of some 2.0 scaling
10228 methods. Moved the new 2.0 properties into alphabetical order with
10229 other properties and added MonoTODO tags
10231 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10233 * AutoScaleMode.cs: Added. Fix build.
10235 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10237 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10238 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
10239 and was requiring premature handle creation for calls from above
10240 * Form.cs, Control.cs: Removed handle arguments from calls to
10241 CalculateClientRect()
10243 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10245 * ListView.cs (HeaderMouseMove): Fix csc compilation.
10246 drag_column.column_rect is MarshalByRef and can't be used that way
10248 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10250 * AxHost.cs: Added deserialization constructor for
10251 AxHost+State (fixes 77743)
10253 2006-03-09 Mike Kestner <mkestner@novell.com>
10256 - Added column drag reordering for details view.
10257 - fixed behavior when mouse is dragged off column and
10258 AllowColumnReorder is false.
10259 * ColumnHeader.cs: clone the format too in Clone.
10260 * Theme.cs: add DrawListViewHeaderDragDetails method.
10261 * ThemeWin32Classic.cs:
10262 - impl new method for drawing drag column shadows and targets.
10263 - support column offset for details mode in DrawListViewItem.
10265 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10267 * TextControl.cs: Reset the char_count when the document is cleared
10268 (Fixes bug reported on mono-winforms mailing list)
10270 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10272 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
10273 of calling base we simply process the key ourselves, since both
10274 DefWindowProc and the handled method would set m.Result.
10277 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
10279 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
10280 method also moves the window; instead implemented a copy of
10281 Control.ScaleCore (Part of fix for #77456)
10283 - Created new CreateGraphicsInternal method to allow providing
10284 a graphics context when no handle is created without triggering
10285 handle creation. (Part of fix for #77456)
10286 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10288 - Switched Constructor to require TextBoxBase instead of Control (to
10289 allow uncast access to CreateGraphicsInternal)
10290 - Safeguarded use of owner.Handle property. No longer accessing it
10291 unless the handle is already created.
10292 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10293 - Now triggering a recalc when owning control becomes visible
10294 * TextBox.cs, RichTextBox.cs: Switched to use new internal
10295 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
10296 premature handle creation (Part of fix for #77456)
10298 - We now only destroy our double-buffering buffers when the
10299 control is resized or disposed, but not when visibility
10300 changes. (The code even re-created them twice every time)
10301 - Now requiring a redraw of the buffer on visibility changes
10302 (fixes bug 77654 part 2)
10303 - Not passing OnParentVisibleChanged up unless the control
10305 - CanFocus: Fixed to match MS documentation
10306 - Focus: Fixed to return actual focus state and to check if
10307 setting focus is legal before setting it
10309 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
10311 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
10312 when to draw focus rectangle by looking at parent focus and
10313 selected state instead. This fixes TabPages on Linux sometimes
10314 having none or multiple focus rectangles.
10315 * XplatUIX11.cs (SetFocus):
10316 - Don't set the focus if the same window already has focus
10317 - Use SendMessage instead of PostMessage (like it's Win32
10318 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
10319 to match MS behaviour
10320 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
10321 are not selectable.
10323 2006-03-07 Jackson Harper <jackson@ximian.com>
10325 * PictureBox.cs: Revert line I accidently committed last week.
10327 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
10330 - Added new IsRecreating and ParentIsRecreating properties to
10331 allow testing if RecreateHandle has been called on ourselves
10332 or one of our parents
10333 - WndProc(WM_DESTROY): If our control handle is being recreated
10334 we immediately need to create the handle when receiving the
10335 destroy, that way our child windows find a valid parent handle
10336 when they themselves are being recreated upon WM_DESTROY receipt
10337 (fix for bug #77654 part 1)
10339 - DestroyWindow: WM_DESTROY must be sent to our own window before
10340 notifying any child windows. MS documents that child windows
10341 are still valid when WM_DESTROY is received. (Control now relies on
10343 - Added some fine-grain debug options
10345 2006-03-06 Jackson Harper <jackson@ximian.com>
10347 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
10348 box and base calculations off this.
10349 * MdiChildContext.cs:
10350 * MdiWindowManager.cs: Don't need to ensure scrollbars here
10353 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
10355 * Splitter.cs: In situations where the affected control is added
10356 to the parent's control list after the splitter, we would not
10357 populate affected. Now we try populating it on mousedown, if
10358 it's not already set, and force it to be re-set whenever our
10361 2006-03-03 Matt Hargett <matt@use.net>
10363 * Control.cs: implement Control.Padding
10364 * Padding.cs: -Padding.All returns -1 when constructing with the
10365 implicit default ctor
10366 -Padding.ToString() matches MS.NET
10367 * ContainerControl.cs: implement
10368 ContainerControl.AutoScaleDimensions
10369 * ListControl.cs: implement ListControl.FormattingEnabled
10370 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
10372 * TabPage.cs: Implement UseVisualStyleBackColor.
10373 * PictureBox.cs: Implement PictureBox.InitialImage.
10375 2006-03-03 Mike Kestner <mkestner@novell.com>
10377 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
10378 event declarations to proxy to base event.
10379 * ListViewItem.cs: update to use ItemControl.
10380 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
10381 * ThemeWin32Classic.cs: update to new ListView theme API and fix
10382 column header label rendering for 0 width columns.
10384 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
10386 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
10387 that causes the control to be created. Fixes #77476.
10389 2006-03-02 Jackson Harper <jackson@ximian.com>
10391 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
10394 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
10396 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
10397 passed in for the EventArgs (fixes #77690)
10399 2006-03-01 Jackson Harper <jackson@ximian.com>
10401 * ScrollBar.cs: Refresh afterbeing resized.
10403 2006-02-28 Mike Kestner <mkestner@novell.com>
10405 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
10406 Clean up a tracker compile warning.
10407 * MenuItem.cs: add internal PerformPopup method.
10410 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10412 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
10413 implicit expose) when the text is set to null
10415 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10417 * RichTextBox.cs (FlushText): When newline is true, we always
10418 need to split the line, even if no text is on it and we may
10419 never eat newlines. (Fixes #77669)
10421 2006-02-28 Mike Kestner <mkestner@novell.com>
10423 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
10424 and set Selected instead.
10425 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
10428 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10430 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
10432 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
10435 - Got rid of the panel. All controls are now directly added to
10437 - It is now possible to set a font with the Font property
10438 - MinSize and MaxSize property do now what they should
10439 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
10440 - Searching and selecting a font with the font textbox works now,
10441 the same applies to the style and size textbox
10442 - Draw the correct 3D border in the example panel
10443 - Fixed a little mem leak (unused fonts didn't get disposed)
10444 - Many other internal updates/rewrites...
10447 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10450 - InsertRTFFromStream: Added 'number of characters inserted' argument
10451 - set_SelectedRTF: Now using the number of characters to calculate
10452 the new location for the selection and cursor (x/y cannot be used
10453 due to potentially already wrapped text)
10455 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10457 * TextControl.cs: Added property and implemented means to allow
10458 disabling recalculation of a document (can be used to speed up
10459 multiple inserts and is needed to make RTF inserts predictable, see
10461 * RichTextBox.cs: Using the new NoRecalc property of Document to
10462 keep x/y insert locations predictable. Also makes it faster inserting
10463 large chunks of RTF
10465 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10467 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
10468 it's easier for a child control to handle the other messages without
10469 having to duplicate the special functionality
10471 - WndProc: Removed calling base handler for WM_KEYDOWN and added
10472 code to handle processing the key ourselves, in order to get
10473 access to the result of KeyEventArgs.Handled. We now only call
10474 ProcessKey if they key hasn't been handled already. Fixes #77526.
10475 - set_Text: If null or empty string is given, just clear the
10476 document. Fixes part of #77526
10478 2006-02-27 Jackson Harper <jackson@ximian.com>
10480 * SizeGrip.cs: Paint the background color before painting the grip
10481 so things look right.
10482 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
10484 2006-02-27 Mike Kestner <mkestner@novell.com>
10487 - Restructure layout and invalidation model to remove a ton of
10488 flicker from the control and speed up performance in general.
10489 - Add manual column resize, flickers like crazy, but I already have
10490 some ideas on how I'll fix that. (#76822)
10491 - Merge the three Icon-based views into a single layout method.
10492 - Move item selection interaction logic from the item since
10493 interaction with the collections is more appropriate to the view.
10494 - Deselection on non-item clicks.
10496 - Encapsulate most of the layout. Add some internal props to trigger
10497 layout. Move to a model where Items invalidate themselves instead
10498 of just invalidating the whole control every time something changes.
10499 - Invalidate on Text/Caption changes.
10500 - switch to an offset based layout model to avoid having to absolute
10501 position every element on item moves.
10502 - correct checkbox layout to conform to MS layout.
10503 * ThemeWin32Classic.cs:
10504 - refactor some column header drawing code.
10505 - fix string justification for column headers (#76821)
10506 - make SmallIcon labels top justified for compat with MS impl.
10507 * ThemeClearlooks.cs:
10508 - adjust to new ListViewItem internal checkbox bounds api.
10510 2006-02-27 Jackson Harper <jackson@ximian.com>
10512 * Control.cs: Change where implicit controls fall in the zorder.
10513 They are now on top of all children.
10514 - Synced AddImplicit code with Add
10515 - Removed unused enumerator.
10516 * SizeGrip.cs: Remove the TODO as its been TODONE.
10518 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10520 * TextControl.cs(Insert): Combine the last lines unless the insertion
10521 string ends with \n\n, otherwise we leave one line too many (Fixes
10522 something I noticed with the testapp for #77526; the bug itself was
10523 already fixed in the previous checkin)
10525 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10528 - SelectionColor and SelectionFont methods no longer set absolute
10529 styles. Instead, the keep font or color respectively (This
10530 resolves a long-standing FIXME in the code)
10531 - When flushing RTF text, the insert code now considers text trailing
10532 behind the insertion point (Fixes the bug where when replacing
10533 the selected text via SelectedRTF the remainder of the line behind
10534 the selection would stay on the first insertion line)
10536 - AppendText now updates the selection points after inserting text
10537 - AppendText now ensures that the last tag (sometimes 0-length) of
10538 the document is used for the style information (Fixes part of
10541 - Created new FontDefiniton class to allow describing partial style
10543 - StreamLine() now takes a lines argument, to allow it to decide
10544 whether an encountered zero-length tag is the last in the document
10545 (which must be kept to not loose the font/color contained in it,
10547 - Created Combine() and Split() methods for Marker structs, to
10548 support marker updates due to reformatted documents (soft line
10550 - Implemented Document.CaretTag setter
10551 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
10552 of the last line (Not the cause, but also exposed by bug #77220)
10553 - Added LineTag argument to InsertString method, to allow callers
10554 to force a certain tag to be used (required to force use of the
10555 trailing zero-length tag of a document)
10556 - Now updating markers in Combine(), to avoid stale tag markers
10557 - Added some method descriptions to aid maintenance
10558 - Implemented new FormatText concept, allowing additive/subtractive
10559 formatting by only specifying the components that are to be
10560 changed. This was needed for resolving the RTB.SelectedColor/
10561 RTB.SelectedFont fixmes
10562 - Added Break() support method to allow breaking up linetags (used
10563 for partial formatting)
10564 - Added GenerateTextFormat() method. It is used for partial
10565 formatting and allows to generate a full font/color from given
10566 attributes and an existing tag.
10568 2006-02-26 Jackson Harper <jackson@ximian.com>
10570 * XplatUIX11.cs: Use the correct caption height.
10571 - Translate hittest coordinates to screen coords to match MS.
10572 * XplatUIWin32.cs: When we create MDI windows we need to reset
10573 some of the style flags, so we get a nice blank window, and can
10574 draw all the decorations ourselves.
10575 - Set a clipping rectangle on the non client paint event, the
10576 window manager drawing code needs one.
10577 * Form.cs: The window manager needs to know when the window state
10579 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
10580 don't need to factor in border and title sizes in these
10581 methods. TODO: Remove the args and fix the call points.
10582 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
10584 - Let the driver set the cursors.
10585 - Improve active window handling
10586 - Correct sizes for title bars and buttons.
10587 - Match MS drawing better
10588 * MdiWindowManager.cs: We don't need to handle border style
10589 updates specially anymore.
10590 - Check for scrollbars when windows are done moving
10591 - Handle Active properly.
10592 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
10593 correctly. I am spewing the exception though, so we don't hide the
10596 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
10598 * DataGridViewRowPostPaintEventArgs.cs,
10599 DataGridViewCellPaintingEventArgs.cs,
10600 DataGridViewRowCollection.cs,
10601 DataGridViewRowPrePaintEventArgs.cs,
10602 DataGridViewCell.cs: Clear a few warnings and implement a few
10603 exceptions that should be thrown.
10605 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10607 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
10608 'inheriting' our parent's (non-default) cursor. (Part of
10609 the fix for #77479)
10611 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10613 * XplatUIX11.cs: Fixed cast to make csc happy
10615 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10617 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
10618 it's for the client area (part of fix for #77479 and needed
10619 for MDI window cursor handling)
10621 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
10622 the appropriate default cursors and also passing the message
10623 up the parent chain
10624 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
10625 for non-client areas
10627 2006-02-15 Jackson Harper <jackson@ximian.com>
10629 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
10630 is a real MDI window
10632 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
10634 * X11DesktopColors.cs: Instead of checking the desktop session
10635 string for "KDE" check if it starts with "KDE"
10637 2006-02-10 Jackson Harper <jackson@ximian.com>
10639 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
10642 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10644 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
10647 - Got rid of the panel. All controls are now directly added to
10649 - Changed to mono coding style
10651 2006-02-10 Jackson Harper <jackson@ximian.com>
10653 * InternalWindowManager.cs: We don't need the set visibility to
10654 false hack anymore now that peter has written beautiful shutdown
10657 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
10659 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
10660 where already explicitly destroyed
10662 2006-02-10 Jackson Harper <jackson@ximian.com>
10664 * MdiClient.cs: Handle the case where windows are too high or to
10665 the left and we need scrollbars.
10667 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10669 * MimeIcon.cs: Added some icons
10672 - Got rid of the panel. All controls are now directly added to
10674 - Changed to mono coding style
10675 - On Linux "My Computer" and "My Network" will now show some
10676 more usefull information. A new class, MasterMount, gathers
10677 this information from /proc/mount. Updated MWFFileView to make
10678 use of this information
10679 - Fixed a bug that caused FileDialog to crash when
10680 ".recently_used" file had a zero size
10681 - FilterIndex does now what it should
10683 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
10686 2006-02-09 Jackson Harper <jackson@ximian.com>
10688 * ComboBox.cs: Don't touch if null.
10690 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
10692 * Cursor.cs: 64bit safeness fix
10693 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
10695 2006-02-09 Jackson Harper <jackson@ximian.com>
10697 * Form.cs: If a form is made into an MDI form update the styles so
10698 all the props can get set correctly.
10699 - Kill the mdi_container when we dont need it anymore.
10700 * InternalWindowManager.cs: Add missing NOT
10702 2006-02-08 Jackson Harper <jackson@ximian.com>
10704 * InternalWindowManager.cs: Respek clipping when drawing MDi
10707 2006-02-08 Jackson Harper <jackson@ximian.com>
10709 * Hwnd.cs: Add bits to track non client expose events.
10710 * XplatUIX11.cs: Track non client expose events on the hwnd. This
10711 gives us a proper invalid rect and will allow for some nice
10712 optimizations with NC client drawing
10713 - MDI windows are children windows, so move their style handling
10714 into the child window block.
10715 * InternalWindowManager.cs: Remove a state reset that was
10716 getting invoked at the wrong time. Fixes managed windows getting
10717 into a 'stuck' captured state.
10719 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10721 * TextControl.cs (Document.ctor): Now initializing
10722 selection_anchor. Fixes #77493
10724 2006-02-07 Jackson Harper <jackson@ximian.com>
10726 * TrackBar.cs: The increment/decrements were backwards.
10728 2006-02-07 Mike Kestner <mkestner@novell.com>
10730 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
10731 to the instance itself.
10733 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10735 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
10736 on ulongs and pointers, the size differs between 32bit and 64bit
10739 2006-02-07 Mike Kestner <mkestner@novell.com>
10741 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
10742 for 64 bit platforms to work around a metacity bug.
10744 2006-02-07 Jackson Harper <jackson@ximian.com>
10746 * TrackBar.cs: Process the input keys we need, and hookup to
10747 KeyDown instead of using WndProc, so we get key messages.
10749 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10751 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
10753 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
10754 we need to translate the XdndVersion atoms array before sending it
10756 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10759 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
10760 number of bits for the property, not the number of bytes. The
10761 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
10762 but would not crash since it specified 8 bits instead of 4 bits)
10763 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
10764 defined as XID -> long in the C headers)
10765 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
10766 references since those are now IntPtr to begin with
10767 - Switched all Atom.XXX 'int' casts to IntPtr casts
10768 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
10769 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
10770 - Added XChangeActivePointerGrab DllImport (for X11DnD)
10772 - Changed 'int' type for Atoms in XEvent structures to IntPtr
10773 - Changed atom in HoverStruct to be IntPtr
10775 - Removed local DllImports, switched code to use those from XplatUIX11
10776 - Removed/fixed casts related to the switch of Atom to be a IntPtr
10778 2006-02-06 Mike Kestner <mkestner@novell.com>
10780 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
10781 method signatures in the import region. There may still be some
10782 lingering struct marshaling issues, as I didn't drill down into those.
10785 2006-02-06 Jackson Harper <jackson@ximian.com>
10787 * ComboBox.cs: Dont manually set the top_item, this is computed
10788 when the scrollbar position is set.
10790 2006-02-06 Mike Kestner <mkestner@novell.com>
10792 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
10793 startup crashes on amd64. There's other fixes needed. All pinvoke
10794 usage of Atom needs to be mapped to IntPtr for example. And there are
10795 likely other int/long issues to be addressed.
10797 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
10799 * FileDialog.cs: One more...
10801 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10803 * FileDialog.cs: Next try
10805 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10807 * FileDialog.cs: First part of fix for #77464
10809 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10811 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
10812 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
10813 AcceptButton border drawing.
10815 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10817 * Form.cs: Moved positioning of form after auto scaling is applied,
10818 otherwise it would possibly use wrong form size.
10820 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10822 * Control.cs (RecreateHandle): No need to re-create any child
10823 controls, the child windows will get destroyed automatically by
10824 the windowing system or driver, and re-created when the handle
10825 is being accessed the first time. Fixes #77456
10826 * Form.cs: No longer setting the form to closing if the handle is
10827 being recreated. This seems like the right thing to do, don't
10828 have a bug or testcase for this, though.
10830 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10832 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
10833 controls to avoid unwanted side effects
10835 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10838 - ScaleCore needs to scale the bounds, not the ClientSize of the
10839 control. Fixes #77416.
10840 - DefaultSize is 0,0 for control
10842 - DefaultSize is 100, 20
10843 - SetBoundsCore: Now enforcing the height, no matter if the provided
10844 height is more or less than the preferred one, as long as AutoSize
10846 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
10848 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10851 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
10852 call unless both performLayout is true *and* we have a pending
10854 - ResumeLayout: MS does not completely nest Suspend and Resume,
10855 they bottom out at 0, fixed our code to match that.
10856 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
10857 SetBoundsCore, we were updating even when we shouldn't. This fixes
10858 swf-anchors mis-anchoring when resizing the app fast and lots.
10859 - UpdateDistances: Now only setting the left and top distance if
10860 we have a parent and are not suspended, this is based on
10861 a suggestion by Don Edvaldson in bug #77355.
10862 - OnVisibleChanged: Fixed logic when to create the control. We may
10863 not create the control if we have no parent or if it's not visible;
10864 switched to using Visible property instead of is_visible field
10865 since the property also considers parent states. This fixes a bug
10866 when starting Paint.Net
10868 2006-02-02 Jackson Harper <jackson@ximian.com>
10870 * Form.cs: If the forms handle hasn't been created yet don't call
10871 into xplatui to make it top most, just set the topmost flag on the
10872 form in CreateParams
10873 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
10875 2006-02-01 Jackson Harper <jackson@ximian.com>
10877 * ScrollableControl.cs: Refactored the Recalculate method a
10878 little, this wasn't handling all the variants of bottom and right
10879 bars needed to be added and added/removed based on their
10880 counterparts being added/removed (which changes the drawable
10881 size). Also we special case client widths and heights of 0 and
10882 don't add the scrollbar for those.
10884 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
10887 - Added method to get AbsoluteGeometry(); currently unused, but might
10888 be used in the future, if we try again to figure out toplevel
10889 coordinates with some more crappy window managers
10890 - Added FrameExtents() method to retrieve the WM set decoration size
10891 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
10892 to deal with at least KDE, FVWM and metacity (Fixes #77092)
10894 - Added whacky_wm tracking var for metacity
10895 - Added logic to have default menu height if the actual menu height
10896 has not yet been calculated (part of fix for #77426)
10897 * Form.cs: Keep track whether client size has been set and re-set
10898 it if a menu is added/removed afterwards (Fixes #77426)
10900 2006-01-31 Jackson Harper <jackson@ximian.com>
10902 * Control.cs: When a new Site is set on the component attempt to
10903 pull the AmbientProperties from it.
10905 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
10907 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
10908 in the background of the owning form. Fixes #77332
10910 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
10912 * MimeIcon.cs: Fix for #77409
10914 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
10916 * XplatUIX11GTK.cs: Initial import
10918 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
10920 * FixedSizeTextBox: fixes class signature
10922 2006-01-30 Jackson Harper <jackson@ximian.com>
10924 * FixedSizeTextBox.cs: New internal class that represents a
10925 textBox that will not be scaled.
10928 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
10931 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
10933 * XplatUIX11.cs: Retrieve default screen number instead of
10934 assuming 0. Attempted fix for #77318
10936 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
10939 - GetWindowPos: When a window is parented by FosterParent, use
10940 the desktop instead of FosterParent as the base to get coordinates
10941 - CreateWindow: Don't make FosterParent the parent window for Popups
10942 if we don't want a taskbar entry, Popups automatically don't get one
10943 * Hwnd.cs: Need to call remove to actually remove the key from the
10946 2006-01-30 Mike Kestner <mkestner@novell.com>
10948 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
10950 2006-01-30 Jackson Harper <jackson@ximian.com>
10953 * TreeNode.cs: Raise events no matter how the treenode is
10954 checked. Patch by Don Edvalson.
10956 2006-01-30 Jackson Harper <jackson@ximian.com>
10958 * TreeNode.cs: Signature fix.
10960 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
10962 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
10964 2006-01-20 Mike Kestner <mkestner@novell.com>
10966 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
10967 event forwarding when menus are active.
10968 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
10969 Most of the patch is pdb's with a little rework.
10971 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10973 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
10974 Removed GetMenuDC and ReleaseMenuDC methods; replaced
10975 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
10976 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
10977 * InternalWindowManager.cs: Added use of PaintEventStart/End to
10978 handling of WM_NCPAINT message, now passing the PaintEventArgs to
10979 the PaintWindowDecorations method
10980 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
10981 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
10982 * MenuAPI.cs: Made tracker window invisible
10984 - Removed GetMenuDC and ReleaseMenuDC methods
10985 - Implemented the client=false path for PaintEventStart and
10988 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10990 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
10991 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
10994 - MaximizeBox, MinimizeBox: Recreate the handle when setting
10996 - CreateParams: Reworked the styles to match MS look'n'feel,
10997 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
10998 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
11000 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11002 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
11003 window is not mapped, since otherwise every form that's being
11004 created is considered minimized, which is wrong.
11005 * Form.cs: Catching the exception and returning our internal value
11008 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
11010 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
11011 SetWindowMinMax() to have means to tell the driver about the minimum,
11012 maximum and maximized state window sizes. (Part of the fix for #76485)
11014 - Implemented tracking of minimum and maximum window size, now calling
11015 new SetWindowMinMax() driver method to tell the driver (Part of the
11017 - Finished handling of WM_GETMINMAXINFO method, now setting all values
11018 (Completes fix for #76485)
11019 - Calling new SetWindowMinMax driver method when the handle for a
11020 form is created, to make sure the driver knows about it even if
11021 the values have been set before the window was created
11022 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
11023 to avoid messing up our anchoring calculations (partial fix
11025 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
11027 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
11028 - Improved GetWindowState() to detect 'Minimized' state on Metacity
11029 (and presumably other freedesktop.org compliant WMs). Left the
11030 assumption unmapped=minimized, needed for SetVisible to work.
11031 - Now setting the window state when creating windows
11032 - Fixed SetVisible to consider/set the window state when mapping
11033 a Form. We cannot set the state before it's mapped, and we cannot
11034 use Form.WindowState once it's mapped (since it would ask the
11035 driver and get 'normal'. Therefore, we grab the state before
11036 mapping, map, and then set state.
11037 - Implmemented SetWindowMinMax method; Metacity does not seem to
11038 honor the ZoomHints, though.
11040 - Removed MINMAXINFO (moved to XplatUIStructs)
11041 - Added SetWindowMinMax stub (on Win32 the only way to set that
11042 information is in response to the WM_GETMINMAXINFO message, which
11043 is handled in Form.cs)
11044 - Added logic to SetVisible to set the proper window state when a
11045 form is made visible (fixes #75720)
11047 2006-01-26 Jackson Harper <jackson@ximian.com>
11049 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
11050 same way we handle them with Invoke.
11052 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
11055 - Added tracking of window state so CreateParams can return
11056 the appropriate style
11057 - Moved setting of WS_CAPTION style in CreateParams to allow
11058 styles without caption
11059 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
11060 control if the TextBox property is accessed. Fixes #77345
11062 - get_Created: now uses is_disposed and is_created to determine
11063 return value (suggested by Jackson)
11064 - CreateHandle: No longer exits if the handle is being recreated
11065 - RecreateHandle: If the handle is not yet created call the
11066 appropriate method to create either control or handle. If the
11067 control is already created CreateHandle will simply exit instead
11068 of just creating the handle
11069 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
11070 now SendMessage WM_DESTROY directly to the control when DestroyWindow
11073 - When DestroyWindow is called, instead of waiting for the
11074 DestroyNotification from X11, we directly post it to the WndProc
11075 and immediately dispose the hwnd object.
11076 Same applies to DestroyChildWindows, and this obsoletes the
11077 expose_pending tracking. Contrary to Win32 behaviour we destroy our
11078 child windows before our own, to avoid X11 errors.
11079 - Removed the direct sending of WM_PAINT on UpdateWindow
11081 - Reworked DoEvents and GetMessage to allow access to internal queue
11082 even when trying non-blocking access to the queue. Fixes #77335.
11083 Based on a patch suggestion by Don Edvalson. The new private
11084 GetMessage can now also be used as a backend for a PeekMessage
11086 * XplatUI.cs: Improved debug output for CreateWindow
11088 2006-01-25 Jackson Harper <jackson@ximian.com>
11090 * Help.cs: Allow param to be null. Patch by Don Edvalson.
11092 2006-01-24 Jackson Harper <jackson@ximian.com>
11094 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
11095 when we have a MaxDropItems lower then the selected index.
11097 2006-01-24 Jackson Harper <jackson@ximian.com>
11099 * Control.cs: Don't allow selection of non visible controls, allow
11100 selection of controls without parents.
11102 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
11104 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
11105 * DataGridDrawingLogic.cs: Add editing row only when is necessary
11107 2006-01-23 Jackson Harper <jackson@ximian.com>
11109 * UpDownBase.cs: Make the textbox handle all the selection and
11110 tabbing. This fixes tabing to updown controls.
11112 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
11114 * TextBoxBase.cs: fixes exception thown the object was null
11116 2006-01-23 Jackson Harper <jackson@ximian.com>
11118 * ButtonBase.cs: Just use the base CreateParams. They set
11119 visibility and enabled correctly.
11122 * MonthCalendar.cs: Lets let the base set as much of the
11123 createparams as possible so we don't have duplicate code all over
11126 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
11128 * ThemeGtk.cs: Added TrackBar and some experimental code to
11129 get double buffering back
11131 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
11133 * DataGrid.cs: Allows row number set internally higher than the last
11134 when creating a new row. Restores the editing functionality.
11136 2006-01-20 Mike Kestner <mkestner@novell.com>
11138 * MimeIcon.cs: delay Image creation until the icons are accessed
11139 instead of creating 190 scaled images on GnomeHandler startup.
11141 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
11143 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
11144 first call base before processing the event. Fixes #77279
11146 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
11148 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
11149 that the stride for the GDI bitmap would match the stride of
11152 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
11154 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
11156 2006-01-19 Jackson Harper <jackson@ximian.com>
11158 * ComboBox.cs: Hookup the text controls keydown event so we get
11159 those when the text control has the focus.
11161 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11163 * Label.cs: Now using the base events instead of defining new ones;
11164 this allows us to just call the base properties without having to
11165 duplicate all base property logic
11167 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11169 * Label.cs: A label by default is not a tabstop (Fixes one of our
11170 failing nunit tests)
11172 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11174 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
11175 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
11177 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
11179 * Cursor.cs: Reimplemented creating cursor bitmaps without using
11180 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
11183 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
11184 constructor creates images that can't be saved. Part of the fix
11186 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
11187 - SetWindowState: Switched ShowWindow flags (part of an upcoming
11188 bug fix for handling window state in forms properly)
11190 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11192 * ThemeGtk.cs: Simplify ScrollBar drawing
11194 2006-01-18 Jackson Harper <jackson@ximian.com>
11196 * Splitter.cs: Set the default dock style for the splitter control
11197 in the constructor.
11199 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11201 * ThemeGtk.cs: Corrected StateType and ShadowType for
11204 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11206 * Control.cs: Make use of Theme.DoubleBufferingSupported
11208 - Added drawing for flat style buttons
11209 - Added ScrollBar drawing
11211 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
11213 * ThemeClearlooks.cs: Removed some unneeded code.
11214 * ThemeGtk.cs: First part of ThemeGtk enhancements.
11216 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
11218 * LinkLabel.cs: We need to update the hover drawing when
11219 leaving the control as well.
11221 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
11223 * DataGrid.cs: Clicking on non empty areas in the columns
11224 area was giving an exception
11226 2006-01-17 Jackson Harper <jackson@ximian.com>
11228 * ThemeWin32Classic.cs:
11229 * ListView.cs: Do not draw/clip the headers when the header style
11232 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
11234 * DataGrid.cs: Fixes 77260
11236 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
11238 * DataGrid.cs: Clicking on a column on a empty grid was giving
11241 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
11243 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
11244 or any keypress will crash the grid.
11246 2006-01-17 Mike Kestner <mkestner@novell.com>
11248 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
11249 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
11250 invisible/previously-visible items.
11253 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
11255 * ThemeClearlooks.cs:
11256 - Added CL_Draw_Button method; now other theme controls that are
11257 not derived from button or do not have a button can draw buttons
11259 - Updated ComboBox drawing
11260 - Beautified RadioButton drawing
11261 - Corrected drawing of bottom and left tabs
11262 - Beautified DateTimePicker and MonthCalendar
11263 - Added CPDrawButton and CPDrawRadioButton
11265 2006-01-16 Jackson Harper <jackson@ximian.com>
11267 * ComboBox.cs: Set the initial value of the scrollbar to the
11268 current index. Reduce the numbers of refreshs and IndexOfs called.
11270 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
11272 * FileDialog.cs: When the file listview is focused hitting the
11273 backspace key moves the fileview to the parent directory
11275 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11278 - Added RecreateHandle call when changing taskbar visibility to
11279 trigger reparenting in Win32 driver (Fixes #75719)
11280 - If a window has minimize or maximize buttons, it cannot have
11283 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
11284 the toplevel form with FosterParent (A toolwindow not on the
11285 taskbar) (Fixes #75719)
11286 - Made FosterParent a toolwindow
11288 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11290 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
11292 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11294 * ToolTip.cs: If SetToolTip is called from a control and the mouse
11295 is currently over that control, make sure that tooltip_window.Text
11298 2006-01-13 Mike Kestner <mkestner@novell.com>
11300 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
11302 2006-01-13 Jackson Harper <jackson@ximian.com>
11304 * TreeView.cs: On MS GetNodeAt never actually factors in the X
11305 value passed. Also redraw the selected node when we recieve
11306 focus, so tabbing between trees works correctly.
11308 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
11310 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
11311 ~/.gconf/%gconf-tree.xml, so use
11312 .gconf/desktop/gnome/interface/%gconf.xml
11314 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11316 * TextControl.cs: Draw text in gray if control is disabled
11318 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11320 * TreeView.cs: Draw the focus rectangle outside the highlight, to
11321 make sure it's always visible. Fixes #76680.
11323 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
11325 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
11327 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
11329 * PageSetupDialog.cs: Added.
11330 * PrintDialog.cs: Attributes.
11331 * PrintPreviewControl.cs: Updates.
11332 * PrintPreviewDialog.cs: Updates.
11334 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11336 * Control.cs: Undid my selection check fix, since it's not needed
11338 - Now considering the presence of hscroll/vscroll when sizing
11339 vscroll/hscroll respectively. Fixed bug #77077
11340 - Added Left/Up/Down/Right to IsInputKey list to prevent
11341 ContainerControl from stealing them. This fixes what I broke
11342 with my last checkin.
11344 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11346 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
11347 I finally understand how the property can be set without a setter :-)
11349 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11352 - Switched RunLoop to use static Message.Create to create a
11354 - Added PreProcessMessage call in runloop for keyboard events; this
11355 is part of the fix for #77219, I overlooked this originally in the
11356 MSDN doc for PreProcessMessage
11358 - Removed call to PreProcessMessage from handling of keyboard
11359 messages; it's supposed to be done in the message pump
11360 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
11361 per MSDN documentation.
11362 - IsInputChar: All chars are input chars by default; removed the
11363 parent calling chain, MS does not document that
11364 - PreProcessMessage: If IsInputChar is true, we want to return false
11365 to allow dispatching of the message
11366 - When selecting the next control, now also check that we're not
11367 selecting ourselves again and therefore return a false positive.
11369 - Tried to match return values for IsInputKey and ProcessDialogKey
11370 to what MS returns; moved processing of our special keys outside
11371 ProcessDialogKey since MS does not seem to return true on those.
11372 - Moved code that previously was in ProcessDialogKey into new private
11373 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
11374 - Reworked handling of WM_CHAR to not have to duplicate code from
11375 Control.cs anymore, instead we simply call down to base.
11377 2006-01-12 Jackson Harper <jackson@ximian.com>
11379 * ComboBox.cs: We always need to refresh the text area when
11380 EndUpdate is called. Fixes the combobox in the file dialog.
11381 * Control.cs: Don't create the creator_thread until the controls
11382 handle is created. Also in InvokeRequired we check if the
11383 creator_thread is null. This gives the effect of InvokeRequired
11384 returning true if the controls handle is not created yet, and
11387 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11390 - Added StartLoop() driver method. This is used to allow drivers to
11391 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
11392 loop for a particular thread
11393 - Added EndLoop() driver method. This is called once the message
11394 pump for the thread is shut down
11395 - Added SupportsTransparency method to allow the driver to indicate
11396 opacity support for windows
11398 - Removed TODO attribute, completed AllowTransparency property
11399 - Added documented logic to Opacity
11400 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
11401 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
11402 versions of CompatibleTextRendering
11403 * X11Structs.cs: Added opacity atom to our atom enumeration
11404 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
11405 of a form might be set before it's reparented by the WM, and we need
11406 the opacity value without calling up to Form)
11407 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
11408 SupportsTransparency() driver methods
11409 * Application.cs: Now calling StartLoop and EndLoop driver methods
11411 - Added opacity atom registration
11412 - Added StartLoop()/EndLoop() methods. They're empty right now but
11413 will need to get implemented when we switch to a per-thread queue
11414 - Implemented SupportsTransparency() method
11415 - Implemented SetWindowTransparency() method
11416 - Added support for setting the opacity value when a window is
11417 reparented (since the opacity needs to be set on the WM frame)
11418 * XplatUIOSX.cs, XplatUIWin32.cs:
11419 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
11421 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11423 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
11425 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11427 * FileDialog.cs: Added ToolTip for MWFFileView
11428 * MimeIcon.cs: Rewrote GnomeHandler.
11429 - Get currently used gnome icon theme from
11430 ($HOME)/.gconf/%gconf-tree.xml
11431 - Make use of inherited icon themes
11432 - Support SVG icon themes like Tango via librsvg
11434 2006-01-12 Miguel de Icaza <miguel@novell.com>
11436 Revert's Jackson's revert which broke 2.0 builds. Fix both
11439 * Application.cs: Move the use_compatible_text_rendering outside
11440 the NET_2_0 define. If we ever need to use the
11441 use_compatible_text_rendering on the individual controls they will
11442 access the variable from the common shared code paths.
11444 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11447 - Added more granular debug options
11448 - Added method to print both window text and id
11449 - Switched debug output to use new Window() debug method
11450 - Added IsEnabled() driver method
11451 - Added EnableWindow() driver method
11453 - Removed end_modal; no longer needed, new loop handles termination
11454 via 'closing' variable
11455 - If form is modal, setting DialogResult will now initiate loop
11456 termination via 'closing' variable
11457 - Added support for is_enabled/WS_DISABLED to CreateParams
11458 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
11460 - Removed code that's now in RunLoop from ShowDialog()
11461 - Added various documented sanity checks to ShowDialog()
11462 - Added handling of WM_DESTROY message; we set 'closing' on getting
11463 the message to indicate the message pump to terminate
11464 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
11465 send by the Application.ExitThread method. (We send the message
11466 to destroy the window after all other events have been
11467 processed through the queue, instead of destroying the handle
11469 - Moved code from Close() method to WM_CLOSE handler; added logic
11470 to only send close-related events if the form is not displayed
11472 * Splitter.cs (..ctor): Fixed typo in resource name
11474 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
11476 - set_Cursor: Now only setting calling into XplatUI if the handle for
11477 the control is already created; this avoids implict handle creation
11478 or crashes if it's not created
11479 - set_Enabled: Now setting the enabled state via the new driver method
11480 instead of just tracking it
11481 - CreateParams: Added logic to set WS_DISABLED based on enabled state
11482 - CreateControl: Reordered event firing and method calls to more
11483 closely fire events in the order MS does. Now setting the
11484 enabled state in the driver when creating the control.
11485 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
11487 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
11488 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
11489 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
11491 - Added tracking of window enabled state (get_Enabled/set_Enabled)
11492 - Added EnabledHwnd property to easily allow a driver to find the
11493 handle of the first enabled window in the parent chain (this is
11494 used by drivers to pass up input events of disabled windows)
11495 * XplatUIDriver.cs: Added IsEnabled() method
11497 - Removed crude and obsolete exiting tracking variable
11498 - Removed internal ModalRun(); replaced by RunLoop()
11499 - Implemented private CloseForms() method to allow closing all
11500 windows owned by a particular (or all) threads
11501 - Exit() now properly closes all windows without forcing the message
11503 - Removed obsolete InternalExit() method
11504 - Changed Run() methods to use new RunLoop() message pump
11505 - Implemented new RunLoop() method for both modal and non-modal forms
11507 - get_CreateParams: Added setting of WS_DISABLED
11508 - Simplified ShowDialog(); now all the work is done in RunLoop(),
11509 invoked via Form.ShowDialog()
11510 * NativeWindow.cs: We don't remove the window from the collection when
11511 the handle is destroyed; there might still be messages for it in the
11512 queue (mainly the resulting WM_DESTROY); instead it will be removed
11513 when Control calls InvalidateHandle in the WM_DESTROY handler
11515 - CreateWindow: Added logic to handle the WS_DISABLED window style
11516 - EnableWindow: Implemented based on Hwnd.Enabled
11517 - GetMessage: Reset PostQuitState so the method can be called again
11518 - Implemented support for disabled windows (passing messages to the
11519 first enabled parent) in handling all input messages
11520 - Added optimizations for handling Expose events
11521 - Implemeted new driver method IsEnabled()
11522 - Now always resetting paint pending tracking vars when we start paint
11523 - Re-implemented UpdateWindow via just sending a WM_PAINT message
11524 * XplatUIOSX.cs: Added IsEnabled method stub
11525 * XplatUIWin32.cs: Implemented new IsEnabled() method
11527 2006-01-11 Jackson Harper <jackson@ximian.com>
11529 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11530 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
11531 variables a little.
11532 * ColorDialog.cs: Clear out the old form before adding the new
11535 2006-01-11 Jackson Harper <jackson@ximian.com>
11537 * X11Dnd.cs: Make sure to add all the text formats when adding
11538 strings to the data object.
11539 * TreeNodeCollection.cs: When adding to a sorted tree we need to
11540 do some redrawing too. Also change the UpdateNode to an
11541 UpdateBelow so the newly added node gets painted.
11543 2006-01-11 Miguel de Icaza <miguel@novell.com>
11545 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11546 LinkLabel.cs, PropertyGrid.cs: Implement the
11547 UseCompatibleTextRendering property for 2.x
11549 * Application.cs (SetCompatibleTextRenderingDefault): Add.
11551 2006-01-11 Jackson Harper <jackson@ximian.com>
11553 * TreeView.cs: Use the property for setting the selected node so
11554 the correct events get raised.
11555 * TreeNode.cs: Update the tree when the fore/back colours of a
11558 2006-01-10 Jackson Harper <jackson@ximian.com>
11560 * TreeView.cs: Allow setting SelectedNode to null.
11562 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11564 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
11566 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11568 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
11570 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11572 * PrintDialog.cs: Added attributes and set default property values.
11574 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11576 * PrintControllerWithStatusDialog.cs:
11577 Added PrintControllerWithStatusDialog.
11579 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11581 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11582 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
11584 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11586 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
11588 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
11590 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
11591 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
11593 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11595 * MimeIcon.cs: Added internal class SVGUtil.
11597 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11599 * FileDialog.cs: Don't crash if there are two files with the
11600 same name but different locations.
11602 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
11604 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
11605 dates across multiple month grids. Used to not highlight entire
11606 month, but does now.
11608 2006-01-06 Jackson Harper <jackson@ximian.com>
11610 * MonthCalendar.cs: Removed DoEvents call to prevent a running
11611 message loop. Change timer intervals to numbers that seem more
11614 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
11616 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
11617 object for location info since screen object is now implemented.
11619 2006-01-05 Jackson Harper <jackson@ximian.com>
11621 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
11622 * AsyncMethodResult.cs: We no longer use a WeakReference for the
11623 AsyncMethodResult, this is because we ALWAYS want the
11624 ManualResetEvent to get set.
11625 * Control.cs: When disposing use an async invoke to call shutdown
11626 code, so that thigns don't block on the finalizer thread. Also
11627 check if we even have a message loop before trying to send
11628 messages, if we don't then don't bother sending messages.
11629 - No more weak references for async methods
11630 * XplatUIDriver.cs: No more weak references for async methods.
11632 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11634 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
11635 returns two FontFamily with the same name
11637 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11639 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
11640 drawing disabled text. Instead using the ColorGrayText color
11642 2006-01-04 Jackson Harper <jackson@ximian.com>
11644 * TreeNode.cs: redraw the node when its image index is changed.
11646 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11648 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
11649 time I checked there are no others like it.
11651 2006-01-04 Jackson Harper <jackson@ximian.com>
11653 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
11654 this gives the behavoir I was looking for.
11655 * Control.cs: Special case Invoking EventHandlers, this matches MS
11656 and fixes part of bug #76326.
11658 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11660 * ThemeClearlooks.cs, FileDialog.cs:
11661 - Reflect the latest Theme class changes
11662 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
11665 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11667 * Theme.cs: Cache UI resource images and resize them if needed
11669 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11671 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
11672 is called. This fixes the crash in Nexxia when setting the font
11673 attributes in the chat. [However, RTF needs a look-over to make sure
11674 that all SelectionXXX methods handle the special case that selection
11675 is empty and therefore the change must be applied to all text starting
11676 at the cursor/selection start]
11678 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11680 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11681 XplatUIOSX.cs: Added SendMessage and PostMessage methods
11682 * X11Keyboard.cs: Switched to new way of calling PostMessage
11684 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11686 * Theme.cs: Added theme interface for images to allow the theme to
11687 control what images are used for things like FileDialog, MessageBox
11689 * MessageBox.cs: Now uses the new Theme icon/image interfaces
11691 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
11694 - Removed some dead code
11695 - Opening a recently used file does work now
11696 - Small UI enhancements
11699 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11701 * FileDialog.cs: Forgot too add __MonoCS__
11703 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11705 * FileDialog.cs: We are able to read recently used files now let's
11706 go on and write them.
11708 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
11710 * FileDialog.cs: Breathe some life into "last open"/"recently used"
11712 * MimeIcon.cs: Do a check for the top level media type also
11714 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11716 * ThemeClearlooks.cs:
11717 - Added CPDrawStringDisabled
11718 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
11719 some chars if the text doesn't fit into text_rect
11720 - DrawListViewItem: If View = View.LargeIcon center the image;
11721 rewrote the drawing of ListViewItem.Text if View =
11724 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11726 * MimeIcon.cs: Use default KDE icon theme if there is no
11727 "48x48" directory for the current icon theme, fixes #77114
11728 * Mime.cs: Disable not working and actually not used code.
11729 * ThemeWin32Classic.cs:
11730 - Replace "new SolidBrush" in GetControlBackBrush and
11731 GetControlForeBrush with ResPool.GetSolidBrush
11732 - Changed DrawListViewItem from private to protected virtual
11734 - Added form.MaximizeBox = true
11735 - Don't throw an exception if there is a broken symbolic link
11737 2005-12-23 Jackson Harper <jackson@ximian.com>
11739 * TabControl.cs: Give the panels focus, keyboard navigation is
11740 fixed so this works correctly now.
11741 - We need these key events also.
11742 * ToolBar.cs: Remove some of the poor mans double buffering.
11744 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
11746 * ComboBox.cs: The internal TextBox now returns the focus.
11748 2005-12-23 Jackson Harper <jackson@ximian.com>
11750 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
11752 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11754 * Control.cs: Removed debug code
11755 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
11758 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11760 * Control.cs: When creating the control, update the Z-order after
11761 all it's children are created, too. (Fixes nexxia not showing
11764 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11766 * Control.cs: Do not update the anchoring distances if layout is
11767 suspended, instead do it once layout is resumed
11769 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11772 - After many hours of debugging, for both Jackson and
11773 myself, it turns out that it helps to set the parent of a control
11774 if you want to actually see it onscreen. In the spirit of that
11775 discovery, we're now setting the parent of the control and
11776 it's children when the control's handle is created. This fix
11777 will make Lutz Roeder's Reflector run happily.
11778 - now just creating the handle instead of the whole control when
11779 getting a graphics context for the control.
11781 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11783 * ScrollableControl.cs: When calculating the canvas, don't consider
11784 the scrollbar widths. Instead, predict if horizontal scrollbar
11785 will affect canvas when deciding on vertical display and vice versa.
11787 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11789 * RichTextBox.cs: Set default RTF font for documents that don't
11790 have a font table (Fixes #77076)
11792 2005-12-22 Jackson Harper <jackson@ximian.com>
11794 * TextBoxBase.cs: It's difficult to do, but you can have an empty
11795 clipboard. This prevents a NullRef in that case.
11796 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
11797 clipboard. PRIMARY is for the currently selected text only. (We
11798 should implement PRIMARY at some point.
11800 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11802 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
11803 a Unicode function with a structure that was defined in Ansi way.
11806 2005-12-21 Jackson Harper <jackson@ximian.com>
11808 * StatusBar.cs: Statusbar handles its fore/back colours on it's
11809 on. Because thats how it rolls. (and this avoids it using ambient
11811 * ThemeWin32Classic.cs: Use the proper back color for filling.
11812 * Menu.cs: Use the system menu bar color for drawing menu
11813 bars. Using the window back color will bring ambient colours into
11816 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
11818 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
11819 Bitmaps were created and not disposed.
11821 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11823 * Control.cs (CreateControl): Don't do anything if the control is
11824 already created, otherwise we'd fire the OnCreated event more than
11827 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11829 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
11830 will always match. Instead return -1. Fixes #76464.
11832 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11834 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
11835 neither the beginning nor the end of the line (Fixes bug #76479)
11837 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11840 - ControlNativeWindow.ControlFromHandle(): Now handling situation
11841 where handle is invalid
11842 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
11843 instead of slower linear search
11844 * NativeWindow.cs: Don't remove the window from the hashtable until
11845 after the driver has destroyed it (since the driver might use
11846 Control.FromHandle to lookup the control object
11847 * Hwnd.cs: Added DestroyPending property to track if a window is
11848 already destroyed as far as the driver is concerned and only hasn't
11849 yet notified the control
11851 - Activate(): Check if the window is still valid before using the
11853 - Implemented DestroyChildWindow() method to mark child windows as
11854 destroyed when a window is destroyed. This prevents situations
11855 where we might call an X method based on queued events for a
11856 window that already has been destroyed but we haven't yet pulled
11857 the destroy method from the queue.
11858 - Added a call to the new DestroyChildWindow() method to the drivers
11859 DestroyWindow code. Also now marking the destroyed window itself
11862 2005-12-20 Jackson Harper <jackson@ximian.com>
11865 * StatusBarPanel.cs: Don't calculate panel sizes on draw
11866 anymore. Just do them when needed, also track the rects of panels
11867 so that we can optimize refreshing more in the future.
11869 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
11871 * ColorDialog.cs: Fixed focus drawing in small color controls
11873 2005-12-19 Jackson Harper <jackson@ximian.com>
11875 * InternalWindowManager.cs:
11876 * MdiWindowManager.cs: Cleanup some coordinate system changes so
11877 moving windows works properly.
11879 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
11882 - Removed call to InitLayout() from SetBoundsCore(); doc says
11883 it's only called when a control is added to a container
11884 - Split InitLayout logic, moved to separate UpdateDistances() method
11885 since we need to perform those calculations more often than just
11886 when adding the control to a container. (Needed to fix #77022)
11887 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
11888 - Reduced the OnBindingContextChanged events count, don't send them
11889 unless the control is created, we still aren't totally matching
11890 MS, but I can't quite figure out some of their rules
11892 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11894 * ThemeClearlooks.cs: Corrected distance between ProgressBar
11897 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11899 * ThemeClearlooks.cs:
11900 - Updated ProgressBar drawing
11901 - Corrected drawing of ScrollBars and scroll buttons
11902 - Some temporary fixes for minor pixel artefacts
11904 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
11907 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
11908 cause events to be sent in the same order as MS does.
11909 - Added ChangeParent() method to trigger various OnXXXChanged events
11910 that need to be fired when a parent changes (This is a reworking
11911 of the patch from r54254, with the X11 errors fixed)
11912 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
11913 since on MS we get OnLayoutChanged events when calling Clear()
11914 - Changed Enabled property to consider parent state as well, if a
11915 parent is not enabled, the control will not be either
11916 - Changed Parent property to simply call Controls.Add() since that
11917 now does all the work required, this way we avoid code duplication
11918 - Threw in a few OnBindingsContextChanged calls to try and match
11919 when MS sends them. We seem to send a few too many, though.
11920 - Added call to CreateControl when adding the control to a parent.
11921 We were never calling CreateControl. Still needs some work, in
11922 some places we treat HandleCreated and ControlCreated as equal,
11924 - Removed obsolete commented out code from UpdateZOrder()
11926 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11928 * ThemeClearlooks.cs: Updated TrackBar drawing.
11930 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
11932 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
11934 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
11936 * FileDialog.cs: Add the Help button and the open readonly
11937 checkbox only if needed
11939 2005-12-16 Jackson Harper <jackson@ximian.com>
11941 * Control.cs: Make sure we have an active menu before trying to
11942 process commands on it. Prevents menu-less forms from crashing
11943 when Alt is pressed.
11944 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
11946 * RichTextBox.cs: Expand statement to help out gmcs and fix the
11949 2005-12-16 Jackson Harper <jackson@ximian.com>
11951 * InternalWindowManager.cs: Don't translate tool windows screen
11952 coordinates. This fixes windows 'bouncing' around when being moved.
11954 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
11957 - MaxLength now treats 2^31-1 equal to unlimited length (this is
11958 not quite MS compatible, MS uses that number only for single line
11959 and 2^32-1 for multi-line, but I figure it won't hurt keeping
11961 - Now enforcing the MaxLength limit when entering characters
11962 - Added argument to internal Paste() method to track if it's called
11963 from programatically or via keyboard, since keyboard driven pastes
11964 need to enforce max-length
11965 - Added logic to Paste to only paste as many chars as MaxLength
11967 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
11969 - Added Length property to return number of characters in document
11970 - Added private CharCount property which only tracks actual chars
11971 in the document (no linefeeds) and fires event when CharCount
11973 - Added tracking of character count to all methods that alter it
11974 - Added LengthChanged event to allow applications to subscribe
11975 to any changes to the document
11977 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
11980 - Removed local password_char field (moved to TextBoxBase)
11981 - Now setting the document's password var when password is
11984 - Added password_char field (needed here so MultiLine can
11986 - Added logic to MultiLine property setter to set the document's
11987 variable when password display is allowed
11988 - Removed debug code and made some debug code conditional
11990 - Added RecalculatePasswordLine() method to handle special password
11992 - Added PasswordChar property, also added related tracking vars
11993 - Draw() method now uses local text var for grabbing text to draw,
11994 this var is set to line.text unless we're doing password display,
11995 then it is set to the pre-generated all-password-chars line
11996 - Added calling RecalculatePasswordLine() method for password lines
11998 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
12001 - Added Reparented property to allow tracking of Window Manager
12002 reparenting actions (which affect X/Y calculations of toplevel
12004 - Made ToString() print window handles in hex
12006 - AddConfigureNotify(): Now uses reparented state off Hwnd to
12007 determine if X/Y needs offsetting
12008 - AddConfigureNotify(): Fixed offset calculations
12009 - Now adds ReparentNotify messages into the queue
12010 - Now processes ReparentNotify messages and causes a
12011 WM_WINDOWPOSCHANGED message to be sent upstream if a window
12012 is reparented (as most likely it's X/Y coordinates are changed
12015 2005-12-14 Jackson Harper <jackson@ximian.com>
12017 * XplatUIX11.cs: Tool windows still need to respek focus.
12019 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
12021 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
12022 have a working release
12024 2005-12-13 Jackson Harper <jackson@ximian.com>
12026 * Form.cs: Update styles after setting the border style regardless
12027 of whether or not the window is using a window manager.
12029 2005-12-13 Jackson Harper <jackson@ximian.com>
12031 * Form.cs: We now hook into an internal window manager instead of just an
12032 MDI subsystem, this is so we can have properly behaving tool windows.
12033 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
12034 * InternalWindowManager.cs: New internal class that acts as a
12035 window manager for tool windows and as a base for mdi windows.
12036 * MdiWindowManager.cs: New class that acts as a window manager for
12039 2005-12-12 Jackson Harper <jackson@ximian.com>
12041 * Control.cs: Updates so we match behavoir for for implicit
12042 controls. Fixes explosions in MDI.
12044 2005-12-12 Jackson Harper <jackson@ximian.com>
12046 * Control.cs: Implement Invalidate (Region).
12048 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
12051 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
12052 the same events as MS does. MS fires events for each property
12053 except, for unknown reasons, Cursor, when the control is reparented.
12054 I can't seem to totally match add/remove since MS also fires some
12055 VisibleChanged events, which makes no sense. Consolidated the
12056 parenting code into a separate method so it can be called from
12057 both Add and Remove. set_Parent no longer needs any special logic
12058 as it calls the parent's add method which implicitly fires
12060 - Removed some obsolete code and debug output
12061 - Enabled state is inherited from parents, if this is enabled
12063 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
12065 * Form.cs: Removed commented out code
12067 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
12070 - Added internal version of Invoke, with additional argument
12071 indicating if we're calling it from a Dispose() handler. That
12072 way we can avoid BeginInvoke throwing an exception if we're
12073 calling for an already destroyed window.
12074 - Added a dispose argument to BeginInvokeInternal, and made the
12075 check if a valid window handle chain exists conditional on
12076 it not being a dispose call
12077 - Removed code in DestroyHandle to destroy our children. Since we
12078 now handle the WM_DESTROY message we will catch all our children
12080 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
12082 - Added a field to track the application context of the form.
12083 - No need to set closing variable as response to WM_CLOSE, instead
12084 we destroy the window. We also call PostQuitMessage if the form
12085 has an application context (which makes it the main app form,
12086 which, when closed terminates the app)
12088 - Dropped Exit() method, it's naming was confusing
12089 - Added PostQuitMessage() which causes GetMessage to return false
12090 once the message queue is empty
12091 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
12093 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
12094 no longer a valid XplatUI method, but left it in since it's used
12095 internally. Added empty PostQuitMessage() method.
12096 * MenuAPI.cs: Replaced call to Exit() with call to
12097 PostQuitMessage, even though this is probably no longer needed.
12098 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
12099 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
12101 - Replaced call to XplatUI.Exit() with PostQuitMessage()
12102 - Removed old debug code that would call XplatUI for exception
12103 display, enabled standard exception handling (Still not enabled
12104 though, until NativeWindow's ExternalExceptionHandler define
12107 - Added internal method to allow control to update NativeWindow
12108 after a window has been destroyed
12109 - Added handling of already destroyed windows when calling i
12111 - Added removal of handle from list on ReleaseHandle
12113 - Dropped GetMessageResult var and related code
12114 - Added PostQuitState to field to track if PostQuitMessage has been
12116 - Dropped Exit() method
12117 - Added PostQuitMessage() method
12118 - GetMessage now will return false if PostQuitState is set and no
12119 more messages are in the queue.
12120 - Expose handler will no longer generate WM_PAINT messages if we are
12121 in PostQuitState since it's very likely any windows have already
12122 been destroyed, and since Hwnd won't get updated until we have
12123 processed the DestroyNotify we'd be causing X errors.
12125 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12127 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
12128 Thanks to Mike for pointing out the err of my ways.
12130 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12132 * Control.cs(PreProcessMessage): Moved menu handling back, but
12133 after all other key handling, to match MS (who handles Menu in
12135 * Menu.cs (WndProc): Removed my brainfart
12137 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12139 * Control.cs(PreProcessMessage): Removed special menu handling
12140 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
12142 2005-12-07 Mike Kestner <mkestner@novell.com>
12144 * Control.cs : special case SYSKEYUP so that we can adjust keynav
12145 state according in tracker.
12146 * Menu.cs : promote tracker field to base class and provide a tracker
12147 lookup capability. Add/Remove shortcuts dynamically if the top menu
12148 has a tracker. Unparent items that are removed from the collection.
12149 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
12150 * Theme*.cs: add always_show_hotkeys field to support configurability
12151 of mnemonic display. win32 doesn't show mnemonics until Alt is
12154 2005-12-07 Jackson Harper <jackson@ximian.com>
12156 * MdiChildContext.cs: Use Control.ResetCursor.
12157 * Control.cs: ResetCursor needs to set the property so that the
12158 correct XplatUI call gets made.
12160 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12162 * Control.cs: More fixes to make our key events match MS. We
12163 were not setting the modifier state on KeyData, and we were
12164 not generating any events when Alt was pressed with a key
12165 since handling of WM_SYSxxx was missing for the OnKey methods.
12167 2005-12-07 Jackson Harper <jackson@ximian.com>
12169 * MdiChildContext.cs: reenable the sizing code.
12170 - When the mouse leaves a window reset its cursor.
12172 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
12174 * ThemeClearlooks.cs: Reflect latest Hwnd changes
12176 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
12178 * Hwnd.cs: Now using the theme 3d bordersize to calculate
12179 widths of Fixed3D borders
12181 2005-12-07 Jackson Harper <jackson@ximian.com>
12183 * MdiClient.cs: Fix warnings. Earn Mike's love.
12185 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
12187 * ThemeClearlooks.cs:
12188 - Adjusted mouse over button color
12189 - Added first parts of CheckBox drawing
12190 - Added correct color for selected text background
12191 - Fixed ComboBox drawing
12192 - Added CPDrawBorder3D and CPDrawBorder
12194 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12196 * XplatUIX11.cs: Added call to XBell for AudibleAlert
12198 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12200 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12201 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
12202 alert users via sound. We could add an enum arg with different
12203 types of alerts in the future
12205 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
12207 * Control.cs: Fix behaviour problems pointed out by Mike
12209 2005-12-05 Mike Kestner <mkestner@novell.com>
12211 * StatusBarPanel.cs: add Invalidate method and hook it into all the
12212 prop setters. Calls parent.Refresh for now, but could be maybe be
12213 optimized with an internal method on StatusBar at some point.
12216 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
12218 * RichTextBox.cs: Implemented get_SelectionColor
12220 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
12222 * ThemeClearlooks.cs:
12223 - Removed dead code
12224 - Draw black button border only if button is Form.AcceptButton
12225 - Draw correct button color for pressed RadioButton if the mouse
12226 has entered the button
12227 - Updated ProgressBar drawing!
12228 - Updated CPDrawSizeGrip drawing
12229 - Updated StatusBarPanel drawing
12231 2005-12-05 Mike Kestner <mkestner@novell.com>
12233 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
12234 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
12236 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
12238 * ThemeClearlooks.cs: Initial check-in, activate with
12239 export MONO_THEME=clearlooks
12240 * ThemeEngine.cs: Added ThemeClearlooks
12242 2005-12-03 Mike Kestner <mkestner@novell.com>
12244 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
12247 2005-12-02 Jackson Harper <jackson@ximian.com>
12249 * Form.cs: If the child form has no menu the default main menu is
12250 used as the active menu.
12252 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12254 * ListBox.cs: Check if any items exist before trying to resolve
12255 coordinates into items
12257 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12259 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
12260 as the second color for the background hatch
12262 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
12264 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
12265 * RichTextBox.cs: FormatText position arguments are 1-based, now making
12266 sure that what we pass to FormatText is always 1-based. Fixes #76885
12268 2005-11-29 Miguel de Icaza <miguel@novell.com>
12270 * NumericUpDown.cs (EndInit): When we are done initializing,
12271 reflect any updates on the UI.
12273 2005-12-02 Jackson Harper <jackson@ximian.com>
12275 * ImplicitHScrollBar.cs:
12276 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
12277 their container controls.
12278 * TreeView.cs: Use the new implicit scrollbars.
12280 2005-12-02 Jackson Harper <jackson@ximian.com>
12282 * TreeView.cs: Make top_node internal so the TreeNodeCollections
12284 * TreeNodeCollection.cs: If we remove the topnode we need to
12285 update topnode to the next node in line.
12286 - When clearing nodes go through the same process as removing
12287 them, so they get depareneted and checked if they are top node.
12289 2005-12-01 Jackson Harper <jackson@ximian.com>
12291 * TreeView.cs: When imagelists are used the image area is
12292 selectable as well as the text.
12293 - If there are no selected nodes select the first one.
12294 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
12295 so don't do it more then we need to.
12297 2005-12-01 Jackson Harper <jackson@ximian.com>
12299 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
12300 that arrows can be scaled.
12302 2005-12-01 Jackson Harper <jackson@ximian.com>
12304 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
12305 fail. Patch by Dieter Bremes
12307 2005-11-30 Jackson Harper <jackson@ximian.com>
12309 * Form.cs: Property is 2.0 only
12310 * PrintDialog.cs: Signature fix.
12312 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
12315 - No longer artificially moves text 2 pixels down (now that we have
12316 borders this is no longer needed)
12317 - Added calcs for left, hanging and right indent
12319 2005-11-23 Mike Kestner <mkestner@novell.com>
12321 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
12323 2005-11-30 Jackson Harper <jackson@ximian.com>
12325 * MdiChildContext.cs: Set the cloned menus forms, as these don't
12326 get cloned as part of CloneMenu ().
12327 * Menu.cs: Make sure the parent of the items get set correctly
12328 when they are added. And the owners are notified of the changes.
12329 * Form.cs: Create an ActiveMenu property, so that when MDI is used
12330 we can change the menu being displayed/handled by the form without
12331 changing the menu assosciated with the form.
12332 - Don't let Mdi children draw/handle menus.
12334 2005-11-30 Jackson Harper <jackson@ximian.com>
12336 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
12337 a MenuChanged event. Just to make the API a little more
12340 * MenuItem.cs: Use the new OnMenuChanged
12341 * MdiChildContext.cs: Handle menu merging.
12342 * Form.cs: Implement MergedMenu.
12344 2005-11-30 Jackson Harper <jackson@ximian.com>
12346 * Menu.cs: We were misusing Add. Add goes behind the specified
12347 index according to the docs, and does not replace the specified
12348 index. So I added an Insert method.
12350 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
12352 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
12353 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
12355 * RichTextBox.cs: Added calls to base for DnD events
12357 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
12360 - Fixed drag-selection related crash; style fixes
12361 - Implemented undo class
12362 o Implemented method to capture document state for specified
12363 range in document tree
12364 o Implemented method to restore captured document state
12365 o Implemented cursor tracking
12366 o Implemented basic undo stack
12367 - Added undo cursor tracking to methods altering cursor location
12368 - Added undo tracking to selection deletion (still missing
12369 other text-altering hookups)
12371 - Added SelectionLength property
12372 - Implemented CanPaste()
12373 - Implemented Paste()
12374 - Added missing protected methods
12375 - Fixed RTF->Document conversion; now uses font index 0 and color
12376 index 0 as the default font for the parsed text
12377 - Fixed RTF<->Document font size translation
12378 - Fixed RTF generation, now properly handles cross-tag boundaries
12379 for single line selection
12380 - No longer always appends blank line to generated RTF
12382 - Added missing attributes
12383 - Hooked up undo-related methods
12385 - Implemented Copy()
12386 - Implemented Paste()
12387 - Implemented Cut()
12388 - Fixed caret mis-behaviour on backspace across line-boundaries
12390 2005-11-29 Jackson Harper <jackson@ximian.com>
12392 * MdiClient.cs: Add a method for activating mdi children. Very
12393 basic right now. I imagine someday it might need more girth.
12394 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
12395 children windows names are added to the menu item.
12396 * ThemeWin32Classic.cs: Draw the arrow if the item is an
12397 mdilist. This happens regardless of whether or not there are any
12398 mdi windows to see in the list, and according to my tests happens
12399 before the items are even added. Also happens if there isn't even
12400 an mdi client to get windows from.
12402 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
12404 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
12405 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
12407 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
12409 * DataGridTableStyle.cs:
12410 - Create always the styles for the missing columns even if they are
12411 provided by the user (not default table style)
12414 - Fixes SetDataBinding (always re-attach source)
12415 - Fixes SetNewDataSource (only clear styles if they are not for
12417 - Expands OnTableStylesCollectionChanged to handle style refresh
12418 and remove properly
12420 2005-11-29 Jackson Harper <jackson@ximian.com>
12422 * FileDialog.cs: Implement missing bits, remove some dead
12424 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
12425 creation of the panel so that the options set on the dialog are
12426 seen when the panel is created.
12427 * TreeView.cs: raise a click when items are clicked.
12429 2005-11-29 Jackson Harper <jackson@ximian.com>
12431 * MdiClient.cs: Pass some signature methods through to base.
12433 2005-11-28 Jackson Harper <jackson@ximian.com>
12435 * ListView.cs: Raise the click event when items are clicked.
12437 2005-11-28 Jackson Harper <jackson@ximian.com>
12439 * MdiClient.cs: Make this algorithm even more beautiful. And fix
12442 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
12444 * ThemeNice.cs: - Removed 1 pixel bitmaps
12445 - Use SmoothingMode.AntiAlias where it makes sense
12446 (ScrollButton arrow for example)
12447 - Enhanced Button focus drawing
12448 - Fixed ComboBox drawing (no artefacts anymore, focus
12449 rectangle is back again, reduced size of ComboButton, etc.)
12450 - Fixed RadioButton focus drawing for Appearence.Button
12451 - Slight ScrollButton redesign
12452 - Some LinearGradientBrush size fixes
12453 - GroupBoxes have now rounded edges
12454 - Fixed StatusBar drawing
12456 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
12458 * ThemeNice.cs: - Remove dead code
12459 - use correct background colors for menus, etc.
12460 - Fake pixel drawing with 1 pixel bitmaps
12462 2005-11-24 Jackson Harper <jackson@ximian.com>
12464 * MdiClient.cs: Size the scrollbars when resizing the window.
12465 - Resize the maximized windows when the client is resized
12466 * Form.cs: Make the child context available
12468 2005-11-23 Jackson Harper <jackson@ximian.com>
12470 * MdiChildContext.cs: Don't size windows if they are maximized.
12472 2005-11-23 Mike Kestner <mkestner@novell.com>
12474 * ContextMenu.cs: use MenuTracker.
12475 * Control.cs: remove menu handle usage.
12476 * Form.cs: remove menu handle usage.
12477 * Hwnd.cs: remove menu handle usage.
12478 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
12479 motion and clicks to the new Tracker handlers.
12480 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
12482 * MenuAPI.cs: refactored to combine popup and menubar event handling.
12483 Killed the MENU and MENUITEM data types and associated collections
12484 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
12485 MenuTracker class that exposes the leftovers from the old MenuAPI
12486 static methods. Restructured Capture handling so that only one grab is
12487 done for the entire menu hierarchy instead of handing off grabs to
12488 submenus. Tracker now has an invisible control to Capture when active.
12489 * MenuItem.cs: add sizing accessors, kill Create
12491 * Theme.cs: remove menu handle and MENU(ITEM) usage.
12492 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
12493 MENU(ITEM). remove menu handle usage, use Menu directly.
12494 * XplatUIDriver.cs: remove menu handle usage.
12495 * XplatUIOSX.cs: remove menu handle usage.
12496 * XplatUIWin32.cs: remove menu handle usage.
12497 * XplatUIX11.cs: remove menu handle usage.
12499 2005-11-22 Jackson Harper <jackson@ximian.com>
12501 * Hwnd.cs: Don't compute the menu size for
12502 DefaultClientRectangle.
12503 - Reenable menu sizes being computed for GetClienRectangle.
12504 * Form.cs: Remove comment of trechery
12506 2005-11-22 Jackson Harper <jackson@ximian.com>
12508 * Hwnd.cs: The adjustments for the menu bar are made when it is
12509 attached to the form.
12511 2005-11-19 Jackson Harper <jackson@ximian.com>
12513 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
12514 (just like on windows).
12516 2005-11-19 Jackson Harper <jackson@ximian.com>
12518 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
12519 use real buttons anymore because they are in non client area. The
12520 one TODO here is that I need to somehow invalidate a section of
12521 the non client area.
12523 2005-11-18 Jackson Harper <jackson@ximian.com>
12525 * Control.cs: Put the enum check back in now that MDI doesnt have
12526 to use this to set border styles.
12527 * Form.cs: Only set mdi child windows borders if the handle has
12529 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
12530 this directly on to the driver.
12531 - Get the move start position before adjusting for the titlebar
12532 height, this fixes the windows "skipping" when they are first
12535 2005-11-18 Jackson Harper <jackson@ximian.com>
12537 * XplatUIX11.cs: Just compute the mdi borders separately as they
12538 don't totally match up with normal form borders.
12540 2005-11-18 Jackson Harper <jackson@ximian.com>
12542 * Control.cs: Set WS_ styles for borders, so that the driver does
12543 not have to retrieve the control instance to figure out what kind
12544 of borders it should have.
12545 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
12546 driver can know its an mdi child easily.
12547 * XplatUIX11.cs: Get the border styles and whether the window is
12548 MDI from the Styles and ExStyles params instead of having to get a
12549 control. This prevents a chicken and egg problem.
12551 2005-11-18 Jackson Harper <jackson@ximian.com>
12553 * MdiClient.cs: Fix typo so scrollbars show up correctly.
12555 2005-11-18 Jackson Harper <jackson@ximian.com>
12557 * MdiClient.cs: Calculate when to add and remove scrollbars
12559 * MdiChildContext.cs: Adjust the y position to take the titlebar
12561 - No height for FormBorderStyle.None
12563 2005-11-18 Jackson Harper <jackson@ximian.com>
12565 * Control.cs: Allow non enum values to be used for
12566 InternalBorderStyle. MDI does this to set a special border style.
12567 - New utility methods for converting points to/from client coords
12568 - Add the newly created control to the Controls collection before
12569 updating its style. This way UpdateStyle can walk the control
12570 heirarchy to find the control if needed.
12571 so I don't need to create a new Point object all the time.
12572 * Form.cs: Let MDI windows handle their border styles.
12573 - Set styles on MDI windows so the correct title style is derived.
12574 * MdiChildContext.cs: Move all the painting and window handling
12575 into the non client area.
12576 - Use correct sizing and put correct buttons on frames based on
12577 the FormBorderStyle.
12578 - Notify the mdi client about scrolling
12579 - Need to handle the buttons ourselves now, because they are all
12580 in non client areas and we can't add controls there.
12581 * MdiClient.cs: Halfway to scrolling, this implementation is
12582 somewhat broken though, we need to check to make sure other
12583 windows aren't causing scrolling before removing the bars. Also
12584 the bars need to be drawn on top, maybe I can switch implicit
12585 controls to be on top.
12586 * Hwnd.cs: caption_height and tool_caption_height are now
12587 properties of an hwnd, this way they can be set by the driver
12588 based on the type of window they are. In X11 the window manager
12589 handles the decorations so caption_height is zero unless its an
12591 - Add 3 pixel borders for MDI windows (0xFFFF).
12592 - Get rid of some code duplication, have DefaultClientRectanle
12593 just call GetClientRectangle.
12594 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
12596 - Set border styles differently for mdi windows.
12597 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
12600 2005-11-15 Mike Kestner <mkestner@novell.com>
12602 * Menu.cs: when adding an item to the collection, if item is already
12603 parented, remove it from the parent.
12605 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
12607 * X11DesktopColors.cs: Added KDE support
12609 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
12612 - Clipboard methods now can translate Rtf format
12613 - No longer removes clipboard contents whenever a new format is added
12614 to allow placing multiple formats on the clipboard
12615 * Clipboard.cs: Clipboard now supports getting a IDataObject and
12616 will place all formats contained in it onto the clipboard. Also
12617 now cleans the clipboard before placing a new object onto it
12619 - Implemented set_Rtf
12620 - Implemented set_SelectedRtf
12621 - Created InsertRTFFromStream() method to allow single code base
12622 for all properties and methods that insert RTF into document
12623 - Removed debug output
12625 - Fixed Delete(int) to fix up line numbers
12626 - Fixed ReplaceSelection to combine start and end line
12627 - Fixed serious DeleteChars bug that would leave the document tree
12629 - Improved DumpTree with several logic checks to detect broken
12631 - Removed debug lines
12632 - Fixed Caret.WordForward/WordBack moving code, now always also
12633 updates caret.tag (fixes crash when word-selecting across tag
12634 boundaries via keyboard)
12635 - Added Insert() method for inserting multiline text into documents
12636 - Fixed DeleteChars() calculation errors that would cause a broken
12637 tag chain with multiple tag lines
12638 - DeleteChars() no longer crashes on multi-tag lines if not all tags
12639 - Split() no longer moves caret if split is at caret location
12640 - ReplaceSelection() now updates the cursor and re-displays it
12641 - ReplaceSelection() now uses new Insert() method to avoid code
12643 - FormatText() can now handle formatting partial lines
12645 - Append now uses new TextControl.Insert() method (this avoids
12647 - Implemented Ctrl-X (Cut) (
12648 - Implemented Ctrl-C (Copy)
12649 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
12650 regeneration when pasting text; roundtripping Copy&Paste within
12651 edit control still fails due to some calculation bugs in GenerateRTF)
12652 - The Delete key will now remove the current selection if it is visible
12653 * TextBox.cs: Removed debug lines
12654 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
12655 driver to be initialized and can't therefore be done via a static ctor)
12657 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
12659 * TextControl.cs: Added backend code for finding char arrays and strings
12661 - Added mouse wheel scroll support
12662 - Added support for VScroll and HScroll events
12664 - Implemented all seven Find() variants
12665 - Implemented GetCharFromPosition()
12666 - Implemented GetCharIndexFromPosition()
12667 - Implemented GetLineFromIndex()
12668 - Implemented GetPositionFromCharIndex();
12669 - Implemented SaveFile for PlainText and UnicodeText
12670 - Fixed set_Font, now setting a new font applies that font to
12672 - Implemented generic Document to RTF converter
12673 - Implemented SaveFile for RichText format (still missing unicode
12674 conversion for non-ansi chars)
12675 - Implemented get_Rtf
12676 - Implemented get_SelectedRtf
12678 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
12680 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
12681 to allow any captures to be released before triggering OnClick. This
12682 way a click handler may capture the mouse without interference.
12683 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
12684 This way we send them even though X may not allow a grab (if the window
12685 isn't visible, for example)
12687 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
12689 * DataGridViewRowEventArgs.cs: DataGridView implementation
12690 * DataGridViewElement.cs: DataGridView implementation
12691 * DataGridViewComboBoxCell.cs: DataGridView implementation
12692 * DataGridViewDataErrorContexts.cs: DataGridView implementation
12693 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
12694 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
12695 * ImageLayout.cs: DataGridView implementation
12696 * DataGridViewComboBoxColumn.cs: DataGridView implementation
12697 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
12698 * DataGridViewSelectionMode.cs: DataGridView implementation
12699 * IDataGridViewEditingControl.cs: DataGridView implementation
12700 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
12701 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
12702 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
12703 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
12704 * DataGridViewColumnSortMode.cs: DataGridView implementation
12705 * DataGridView.cs: DataGridView implementation
12706 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
12707 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
12708 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
12709 * Padding.cs: DataGridView implementation
12710 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
12711 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
12712 * DataGridViewRowEventHandler.cs: DataGridView implementation
12713 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
12714 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
12715 * DataGridViewButtonCell.cs: DataGridView implementation
12716 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
12717 * DataGridViewEditMode.cs: DataGridView implementation
12718 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
12719 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
12720 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
12721 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
12722 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
12723 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
12724 * DataGridViewCellEventHandler.cs: DataGridView implementation
12725 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
12726 * DataGridViewCellStyleConverter.cs: DataGridView implementation
12727 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
12728 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
12729 * DataGridViewColumnEventArgs.cs: DataGridView implementation
12730 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
12731 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
12732 * QuestionEventArgs.cs: DataGridView implementation
12733 * IDataGridViewEditingCell.cs: DataGridView implementation
12734 * DataGridViewTriState.cs: DataGridView implementation
12735 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
12736 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
12737 * DataGridViewColumnCollection.cs: DataGridView implementation
12738 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
12739 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
12740 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
12741 * DataGridViewColumn.cs: DataGridView implementation
12742 * DataGridViewCellBorderStyle.cs: DataGridView implementation
12743 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
12744 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
12745 * DataGridViewRow.cs: DataGridView implementation
12746 * DataGridViewImageCellLayout.cs: DataGridView implementation
12747 * DataGridViewImageCell.cs: DataGridView implementation
12748 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
12749 * DataGridViewCheckBoxCell.cs: DataGridView implementation
12750 * DataGridViewHeaderCell.cs: DataGridView implementation
12751 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
12752 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
12753 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
12754 * DataGridViewTextBoxColumn.cs: DataGridView implementation
12755 * QuestionEventHandler.cs: DataGridView implementation
12756 * DataGridViewCellStyleScopes.cs: DataGridView implementation
12757 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
12758 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
12759 * DataGridViewCell.cs: DataGridView implementation
12760 * DataGridViewCellEventArgs.cs: DataGridView implementation
12761 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
12762 * DataGridViewCellStyle.cs: DataGridView implementation
12763 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
12764 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
12765 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
12766 * TextFormatFlags.cs: DataGridView implementation
12767 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
12768 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
12769 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
12770 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
12771 * DataGridViewButtonColumn.cs: DataGridView implementation
12772 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
12773 * HandledMouseEventArgs.cs: DataGridView implementation
12774 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
12775 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
12776 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
12777 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
12778 * DataGridViewRowCollection.cs: DataGridView implementation
12779 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
12780 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
12781 * DataGridViewHitTestType.cs: DataGridView implementation
12782 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
12783 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
12784 * DataGridViewColumnEventHandler.cs: DataGridView implementation
12785 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
12786 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
12787 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
12788 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
12789 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
12790 * DataGridViewContentAlignment.cs: DataGridView implementation
12791 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
12792 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
12793 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
12794 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
12795 * DataGridViewPaintParts.cs: DataGridView implementation
12796 * DataGridViewCellCollection.cs: DataGridView implementation
12797 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
12798 * DataGridViewImageColumn.cs: DataGridView implementation
12799 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
12800 * DataGridViewElementStates.cs: DataGridView implementation
12801 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
12802 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
12803 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
12804 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
12805 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
12806 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
12807 * DataGridViewRowHeaderCell.cs: DataGridView implementation
12808 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
12809 * DataGridViewTextBoxCell.cs: DataGridView implementation
12810 * DataGridViewBand.cs: DataGridView implementation
12811 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
12812 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
12813 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
12814 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
12815 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
12816 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
12817 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
12818 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
12819 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
12820 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
12821 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
12823 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
12825 * ThemeWin32Classic.cs:
12826 - Draw the outside focus rectangle around buttons
12827 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
12828 doesn't use end caps for every dash of a line anymore. This
12829 workaround ignores the forecolor.
12831 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
12833 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
12836 2005-11-07 Jackson Harper <jackson@ximian.com>
12838 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
12840 2005-11-07 Jackson Harper <jackson@ximian.com>
12842 * ScrollableControl.cs: Calculate the maximum and change vars
12843 (more) correctly so that scrollbars appear as a sensible size.
12845 2005-11-04 Jackson Harper <jackson@ximian.com>
12847 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
12849 * TreeView.cs: When the tree is sorted null out the top_node so
12850 that it is recalculated.
12851 - Use dotted lines instead of dashed lines to match MS better.
12853 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
12856 - Implements key search for items. Useful when browsing files with FileDialog
12857 - When changing view mode or when clear the items reset scrollbar positions
12859 2005-11-04 Jackson Harper <jackson@ximian.com>
12861 * CurrencyManager.cs: Implement the MetaDataChanged event, the
12862 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
12863 as to what the method may do as there is no real way of creating a
12864 derived CurrencyManager and calling the method.
12866 2005-11-03 Jackson Harper <jackson@ximian.com>
12868 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
12869 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
12870 method which seems to just be used internally to refresh the tabs.
12872 2005-11-03 Jackson Harper <jackson@ximian.com>
12874 * TabControl.cs: Implement the remove method. Fix some broken
12877 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12879 * DateTimePicker.cs:
12880 - Added missing DateTimePickerAccessibleObject class
12881 - Added missing events
12882 - Added OnFontChanged method
12883 * Form.cs: Added missing attributes
12884 * TreeView.cs: Added missing attributes
12886 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12888 * GridItemCollection.cs: Fix signatures
12890 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12892 * XplatUI.cs: Updated build rev/date
12893 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
12894 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
12895 * Application.cs: Trigger context-specific ExitThread events
12897 2005-11-03 Jackson Harper <jackson@ximian.com>
12901 * GridTableStylesCollection.cs:
12906 * MonthCalendar.cs: Signature fixes
12908 2005-11-03 Jackson Harper <jackson@ximian.com>
12910 * TreeNodeCollection.cs: Remove should not be virtual.
12911 * TreeView.cs: Implement the last of the missing methods.
12913 2005-11-03 Jackson Harper <jackson@ximian.com>
12915 * TreeNodeConverter.cs: Implement to get off my class-status back.
12917 2005-11-03 Jackson Harper <jackson@ximian.com>
12919 * TreeView.cs: Hookup the bits for drag and drop.
12920 * TreeNode.cs: Don't cache the tree_view or index anymore, now
12921 that nodes can be moved from tree to tree easily this just causes
12922 all sorts of problems.
12923 * TreeNodeCollection: Don't need to give treenodes an index and
12924 treeview anymore when they are added, these are computed on the
12925 fly. Also make sure to remove a node before its added.
12927 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12930 - Added CaretSelection enum
12931 - Added comparison methods to Marker struct, makes selection code
12933 - Added SelectionStart and SelectionEnd as 'moveable' location for
12934 the CaretDirection enum and handler
12935 - Added selection_prev variable to track optimized invalidation for
12936 word and line selection
12937 - Added SelectionVisible property (returns true if there is a valid
12939 - Switched CaretHasFocus to only display the caret if there is no
12941 - Avoiding StringBuilder.ToString to retrieve a single char, instead
12942 using the direct character index; should be much faster
12943 - Added various conditional debug statements
12944 - Fixed invalidation calculation for selection ranges
12945 - Added ExpandSelection() method to support word and line selection
12946 - Switched SetSelectionToCaret to use new Marker compare overloads
12947 - Added central IsWordSeparator() method to determine word
12948 separators/whitespace and FindWordSeparator() to streamline common
12949 usage of IsWordSeparator()
12951 - Removed unneeded grabbed variable, it was just mirroring
12953 - No longer firing OnTextChanged event when Text setter is called,
12954 since the base will fire the event for us
12955 - Added handling of Ctrl-Up/Down selection
12956 - Added handling of Shift-Cursorkey selection
12957 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
12959 - Added handling of Shift and Ctrl-Shift-Home/End selection
12960 - Removed some debug output
12961 - Added handling for single/double/tripple-click to place caret/
12962 select word/select line respectively (Fixes bug #76031)
12963 - Added support for drag expansion of word/line selection
12964 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
12967 2005-11-02 Jackson Harper <jackson@ximian.com>
12969 * X11Dnd.cs: If the drag is going to and from a MWF window just
12970 copy the data instead of sending it out through the X Selection
12973 2005-11-02 Jackson Harper <jackson@ximian.com>
12976 * XplatUIX11.cs: When in a drag we don't want motion notify
12977 messages to get passed on to the other controls. This prevents
12978 mouse move messages from showing up in the drag source.
12980 2005-11-02 Jackson Harper <jackson@ximian.com>
12982 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
12983 the correct button is release to end a drag.
12984 * XplatUIX11.cs: Make the button state internal so the drag system
12985 can access it. Dragging needs to know about all button releases,
12986 not just left button.
12988 2005-11-02 Miguel de Icaza <miguel@novell.com>
12990 * Form.cs (Icon): If the icon is null, reset the icon to the
12993 * Cursor.cs: When writing the AND-mask bitmap do not include the
12994 number of colors, but hardcode those to two (black and white),
12995 fixes the loading of color cursors (Paint Dot Net).
12997 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
12998 turn off autoscaling.
13000 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
13002 2005-11-02 Jackson Harper <jackson@ximian.com>
13004 * X11Dnd.cs: Make sure to send a status message if the pointer
13005 enters a control that can not accept a drop, otherwise the cursor
13006 isn't updated correctly. Also tried to compress the lines of code
13009 2005-11-02 Jackson Harper <jackson@ximian.com>
13011 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
13012 set actions correctly. This isn't perfect as XDND and win32 have
13013 some differences on how you allow actions. I'll clear this up by
13014 adding a path for drag from MWF to MWF windows.
13015 * XplatUIX11.cs: Hook into the dnd system.
13017 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
13019 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
13020 previously shown but they are no longer need it. Very obvious when
13021 browsing files with FileDialog.
13023 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
13025 * Control.cs: We always need to call OnPaintBackground. We pretty much
13026 ignore AllPaintingInWmPaint and always do the painting there, whether
13027 it's set or not, since we always ignore the WM_ERASEBKGND message
13028 (which we don't generate on X11). This fixes #76616.
13029 * Panel.cs: Removed unneeded background painting. This happens properly
13030 in Control.cs already
13032 2005-10-31 Mike Kestner <mkestner@novell.com>
13034 * Menu.cs: Add items to collection before setting their index.
13035 * MenuItem.cs : add range checking with ArgumentException like MS.
13038 2005-10-31 Jackson Harper <jackson@ximian.com>
13040 * ListBox.cs: Invalidate if the area is visible at all not just
13041 contained in the visible rect. Fixes unselection of semi visible
13044 2005-10-31 Jackson Harper <jackson@ximian.com>
13046 * Control.cs: Consistently name the dnd methods. Make them
13047 internal so we can override them to match some MS behavoir
13049 * Win32DnD.cs: Use the new consistent names.
13051 2005-10-31 Jackson Harper <jackson@ximian.com>
13053 * TreeView.cs: Don't draw the selected node when we lose focus.
13055 2005-10-31 Jackson Harper <jackson@ximian.com>
13057 * X11Dnd.cs: We still need to reset the state even though a full
13058 reset isn't being done, otherwise status's still get sent all over
13061 2005-10-31 Jackson Harper <jackson@ximian.com>
13063 * Control.cs: Make the dnd_aware flag internal so the dnd
13064 subsystem can check it. Catch exceptions thrown in dnd handlers to
13066 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
13067 * X11Dnd.cs: Handle null data in the converters. Set the XDND
13068 version when sending a XdndEnter. Use the control/hwnd dnd_aware
13069 flags to reduce the number of dnd enters/status's sent.
13071 2005-10-31 Jackson Harper <jackson@ximian.com>
13073 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
13075 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
13077 * PictureBox.cs: Fixes 76512
13079 2005-10-28 Jackson Harper <jackson@ximian.com>
13081 * X11Dnd.cs: Early implementation to support winforms being a drag
13082 source for data on X11. Also restructured the converters so they
13083 can go both ways now.
13084 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
13086 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
13088 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
13091 2005-10-27 Jackson Harper <jackson@ximian.com>
13093 * TreeNode.cs: Implement serialization so my DnD examples will work.
13095 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
13097 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
13098 TreeView.cs: Don't dispose objects that are not owned.
13100 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
13102 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
13103 should retrieve the current cursor and report that, but XplatUI
13104 doesn't (yet) have an interface for that (and I'm not sure I even
13106 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
13107 until any message loop processing is done (and the WM_SETCURSOR
13108 replaces the cursor to the proper one)
13110 - Fixed override behaviour, we can't set the cursor globally on X11,
13111 just for our windows.
13112 - Invalidating the System.Drawing X11 display handle when we are
13114 * Control.cs: Fix to make csc happy
13116 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
13119 - get_Text: Add last line (without trailing newline) to returned
13120 value (Fixes 76212)
13121 - get_TextLength: Count last line in returned length
13122 - ToString: Call Text property instead of duplicating code
13124 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
13126 * ImageList.cs: Dispose ImageAttributes objects.
13128 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
13130 * ImageList.cs: Use attribute constructors with less arguments where
13133 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
13135 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
13136 Use typeof instead of strings when assembly is referenced. Added
13137 some more comments.
13139 2005-10-21 Jackson Harper <jackson@ximian.com>
13141 * ListView.cs: Raise a double click event. Also tried to somewhat
13142 fix when the selectedindexchanged event is raised. Its still
13145 2005-10-21 Jackson Harper <jackson@ximian.com>
13147 * TreeView.cs: New method to invalidate the plus minus area of a
13148 node without invalidating the whole node (maybe this can be used
13149 in some more places).
13150 * TreeNodeCollection.cs: When adding to an empty node we need to
13151 invalidate its plus minus area so the little block shows up.
13153 2005-10-21 Jackson Harper <jackson@ximian.com>
13155 * TreeView.cs: Make sure that when we invalidate a node the bounds
13156 are big enough to cover the selected box and the focus
13157 rectangle. Use a different colour for the lines connecting nodes
13158 so they show up with all themes.
13160 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13162 * NativeWindow.cs: Don't call anything that could call into the driver,
13163 we might be on a different thread.
13165 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13167 * Control.cs(Dispose): Since Dispose might run on a different thread,
13168 make sure that we call methods that could call into the driver via
13169 invoke, to avoid thread issues
13171 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
13173 * XplatUI.cs: Removed finalizer
13174 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
13175 not allowing to be called on the finalizer thread.
13177 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
13180 - Reverted r51889 and r51891.
13181 - Added ImageListItem class that stores unmodified image items and image
13182 properties required to create list images until handle is created.
13183 - Added AddItem and moved image creation logic to AddItemInternal.
13184 - Added CreateHandle method that creates images based on unmodified items.
13185 - Added DestroyHandle that changes state to store unmodified items.
13186 - Add and AddStrip methods no more create handle.
13187 - ReduceColorDepth has no return value.
13188 - Dispose destroys handle.
13189 - Modified other methods to reflect the above changes.
13190 - Implemented key support.
13191 - Added profile 2.0 members and attributes.
13192 - Added private Reset and ShouldSerialize methods that provide the same
13193 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
13194 them as they are private.
13195 - Added some more comments about implementation details.
13197 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13199 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
13201 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13203 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
13205 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
13207 * DataGridDrawingLogic.cs: Fixes column hit calcultation
13208 * DataGridColumnStyle.cs: Remove debug message
13210 2005-10-20 Jackson Harper <jackson@ximian.com>
13212 * TreeView.cs: We can always get input keys regardless of whether
13213 or not editing is enabled. They are used for navigation.
13215 2005-10-20 Jackson Harper <jackson@ximian.com>
13217 * TreeNode.cs: Use the viewport rect for determining if a node
13218 needs to be moved for visibility. Don't use Begin/End edit. This
13219 calls a full refresh when its done.
13220 * TreeView.cs: New SetBottom works correctly. Make the viewport
13221 rect property internal so the treenodes can see it. When clicking
13222 on a node we need to ensure that its visible because it might just
13223 be partly visible when clicked.
13225 2005-10-20 Jackson Harper <jackson@ximian.com>
13227 * TreeNodeCollection.cs: Remove debug code.
13229 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
13231 * Datagrid.cs: Implements column sorting in Datagrid
13232 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
13234 2005-10-20 Jackson Harper <jackson@ximian.com>
13236 * TreeNodeCollection.cs: Remove items properly. Update the correct
13237 area after removing them.
13239 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
13241 * Datagrid.cs: Should not call base.OnPaintBackground
13243 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13245 * XplatUIX11.cs (GetMessage):
13246 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
13247 window instead of client window
13248 - Now properly calculates NC_xBUTTONUP message coordinates
13249 - ScreenToMenu now properly calculates it's coordinates of whole
13250 window, since menus are in the whole window, not in the client
13252 - Added WholeToScreen coordinate translation method
13254 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13256 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
13257 want to return a message, loop back to the beginning of the function
13258 and grab the next real message to process instead.
13260 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
13262 * Splitter.cs: Properly set limits if no filler control is used
13264 2005-10-19 Jackson Harper <jackson@ximian.com>
13266 * ColorDialog.cs: Don't show the help button if it is not enabled
13267 instead of disabling it (this is what MS does). Don't create the
13268 panel until the dialog is run, otherwise the vars (such as
13269 ShowHelp) are not set yet.
13271 2005-10-19 Jackson Harper <jackson@ximian.com>
13273 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
13274 are reduced when adding nodes.
13276 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
13279 2005-10-19 Jackson Harper <jackson@ximian.com>
13281 * FolderBrowserDialog.cs: End editing our treeview so the window
13282 actually gets refreshed.
13284 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
13286 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
13287 Obsoleted handling of WM_ERASEBKGND, now always draws our background
13290 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13292 * MenuAPI.cs: Returns after Hidding window
13293 * XplatUIX11.cs: Added TODO found while debugging menu issues
13295 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
13297 * XplatUIX11.cs: Do not re-map the whole window when it's size
13298 becomes non-zero unless it's supposed to be actually visible
13300 2005-10-18 Jackson Harper <jackson@ximian.com>
13302 * TreeView.cs: We don't need to keep a count anymore.
13303 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
13304 use the Grow method.
13306 2005-10-18 Jackson Harper <jackson@ximian.com>
13308 * TreeNodeCollection.cs: Insert is not supported on arrays, so
13309 implement it manually here.
13311 2005-10-18 Jackson Harper <jackson@ximian.com>
13313 * ImageList.cs: Dont kill the list when the colour depth is
13314 changed, just change the colour depth of all the images.
13315 - Same goes for setting the image size. Just resize them all
13316 instead of killing the list softly.
13318 2005-10-18 Jackson Harper <jackson@ximian.com>
13320 * Control.cs: Don't invalidate empty rectangles.
13322 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13325 - Adds checked item to the Checked/Item lists (where empty before)
13326 - Do not add items to the Selected lists if they are already present
13328 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
13329 - When deleting items make sure that we delete them for the Selected
13330 and Checked list also.
13332 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
13334 * Label.cs: Dispose objects no longer used
13335 * ThemeWin32Classic.cs: Dispose objects no longer used
13337 2005-10-18 Jackson Harper <jackson@ximian.com>
13339 * TabControl.cs: Don't refresh the whole control when the tabs are
13340 scrolled, we just need to refresh the tab area.
13342 2005-10-17 Jackson Harper <jackson@ximian.com>
13344 * XplatUIX11.cs: Compress code a little bit. Only calculate the
13345 after handle when we need it.
13347 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
13349 * Control.cs: When the parent size changes, recalculate anchor
13350 positions. Partial fix for #76462
13352 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
13354 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
13355 drawn. Fixes #76462
13357 2005-10-17 Jackson Harper <jackson@ximian.com>
13359 * MonthCalendar.cs: Don't create the numeric up down until our
13360 handle is created. Otherwise our handle is created in the
13361 constructor and we don't know if we are a WS_CHILD or WS_POPUP
13364 2005-10-17 Jackson Harper <jackson@ximian.com>
13366 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
13369 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
13370 * TreeNode.cs : small logical fix (was using local var instead of field)
13372 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
13374 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
13376 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
13378 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
13380 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
13383 - Re-implemented anchoring code. My first version was really broken.
13384 This fixes bug #76033. Unlike the previous implementation we will
13385 no longer have round errors since all numbers are calculated from
13386 scratch every time. Removed various anchor-related obsolete vars.
13387 - InitLayout no longer causes layout event firing and layout to be
13390 2005-10-16 Jackson Harper <jackson@ximian.com>
13392 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
13395 2005-10-16 Jackson Harper <jackson@ximian.com>
13397 * TabControl.cs: Remove debug code.
13399 2005-10-16 Jackson Harper <jackson@ximian.com>
13401 * XEventQueue.cs: Increase the default queue size (very simple
13402 apps needed to grow the queue).
13403 * Hwnd.cs: No finalizer so we don't need to suppress
13404 finalization. Compute the invalid area manually so a new rectangle
13405 does not newto be created.
13406 * ScrollableControl.cs: Don't set any params (otherwise visibility
13407 isn't set correctly).
13408 * MdiChildContext.cs: New constructor takes the mdi parent so it
13409 doesn't have to be computed and avoids a crash on windows. Draw
13410 the window icon properly, and allow the text to be seen.
13411 * Form.cs: Use new MdiChildContext constructor. Make sure the
13412 child context isn't null in wndproc.
13413 * TabControl.cs: Don't set focus, this is muddling keyboard
13414 behavoir. Expand the tab rows when a window size increase will
13415 allow extra tabs to be seen. Don't allow tabs smaller than the
13416 width of a window to be scrolled out of view.
13418 * TreeView.cs: Use measure string to calculate a nodes width, the
13419 width is cached and only updated when the text or the font is
13420 changed. Don't check for expand/collapse clicks on the first level
13421 nodes if root lines are disabled.
13423 2005-10-16 Ritvik Mayank <mritvik@novell.com>
13425 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
13427 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13429 * DataGridBoolColumn.cs: fixes warning
13431 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13433 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
13434 to match more to match more precisely the MS Net behavior
13436 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13438 * Hwnd.cs: Added field to track if window is mapped
13440 - Unmap windows if they become 0-size, re-map when
13441 they are >0 again; fixes #76035
13442 - Re-set our error handler after initializing X11Desktop
13443 to override any error handlers Gtk or whatever was called
13446 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13448 * CheckedListBox.cs: Removed unused vars
13449 * ListView.cs: Fixed signatures
13450 * RichTextBox.cs: Removed unused vars
13451 * TextBoxBase.cs: Removed unused vars
13452 * XplatUIWin32.cs: Removed unused vars
13453 * XplatUIX11.cs: Removed unused vars
13454 * XplatUI.cs: Updated version and date to latest published
13456 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13458 * Cursor.cs: Added private .ctor to work around a bug in
13459 resourceset (Thanks to Geoff Norton for the help on this)
13460 * SplitterEventArgs.cs: Made fields accessible so we don't
13461 waste boatloads of objects and can reuse the same one
13463 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
13464 any captions and borders when generating screen coordinates
13465 * Splitter.cs: Reimplemented control, now fully complete, uses
13466 rubberband drawing, supports and obeys all properties, has
13469 2005-10-13 Miguel de Icaza <miguel@novell.com>
13471 * Form.cs (Form): Setup default values for autoscale and
13472 autoscale_base_size; Make these instance variables, not static
13475 (OnLoad): on the first load, adjust the size of the form.
13477 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13479 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
13480 width argument to DrawReversibleRectangle()
13481 * XplatUIWin32.cs, XplatUIX11.cs:
13482 - Implemented width for DrawReversibleRectangle()
13483 - Added logic to DrawReversibleRectangle that recognizes a zero
13484 width or height and only draws a line in that situation
13486 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13488 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
13489 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
13490 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
13491 method (it uses our FosterParent window to get a graphics context)
13493 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13495 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
13496 and SetWindowBackground methods
13498 - Setting proper ControlStyles
13499 - We no longer call XplatUI.SetWindowBackground and XplatUI.
13500 EraseWindowBackground, instead we draw the window background
13501 ourselves in PaintControlBackground. This behaviour is
13502 required to match MS, where, when OnPaintBackground is not
13503 called, the background is not drawn.
13504 - Removed unneeded Refresh() in set_Text
13505 * Hwnd.cs: Dropped the ErasePending support. No longer needed
13507 - Created DeriveStyles method to translate from CreateParams to
13508 FormBorderStyle and TitleStyle, also handles BorderStyle (which
13509 matches FormBorderStyle enum values)
13510 - Consolidated SetHwndStyles and CalculateWindowRect border/title
13511 style calculations into single DeriveStyles method
13512 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
13513 from redrawing the whole window on any resize or expose.
13514 - Fixed CreateWindow usage of SetWindowValuemask. Before not
13515 all styles were applied to our whole/client window appropriately
13516 - Removed EraseWindowBackground() and SetWindowBackground() methods
13517 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
13518 no longer clear/redraw the background through X
13519 - Removed handling of erase_pending bit, we have no use for it (or
13522 - Removed generation and handling of WM_ERASEBKGND message
13523 - Removed EraseWindowBackground() and SetWindowBackground() methods
13524 - Removed handling of hwnd.ErasePending flag
13526 - Removed EraseWindowBackground() and SetWindowBackground() methods
13527 - We no longer call EraseWindowBackground on PaintEventStart, we
13528 ignore the fErase flag, erasing is handled in Control in the
13530 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
13531 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
13532 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
13533 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
13534 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
13535 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
13536 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
13538 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
13540 * PropertyGrids.cs: Get sub properties
13541 * PropertyGridView.cs: Fix drawing code
13543 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13545 * ListBox.cs: Fixes 76383
13547 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13549 * DataGridTextBoxColumn.cs: Sets location and size before attachment
13550 * ThemeWin32Classic.cs: Fixes border drawing and calculations
13551 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
13554 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13556 * ComboBox.cs: Fixes border drawing
13558 2005-10-10 Miguel de Icaza <miguel@novell.com>
13560 * MimeIcon.cs: Ignore errors if the file can not be read.
13562 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13564 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
13565 - Fixed border calculations
13566 - Fixed horizontal scrolling in single column listboxes
13567 - Fixed drawing issues
13569 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
13571 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
13572 FormBorderStyle enum
13573 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
13574 code to determine FormBorderStyles from CreateParams
13576 - Fixed bug where we'd set the wrong window styles if we were
13577 not creating an MDI window
13578 - Added call to XplatUI.SetBorderStyle when form borders are set
13579 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
13581 - Removed obsolete edge style
13582 - Switched from BorderStyle to FormBorderStyle
13584 2005-10-10 Jackson Harper <jackson@ximian.com>
13586 * Form.cs: Use the property to get the window handle instead of
13587 accessing it directly. Prevents a null reference exception.
13589 2005-10-10 Jackson Harper <jackson@ximian.com>
13591 * TreeView.cs: Don't adjust the rect given to DrawString now that
13592 our libgdiplus draws correctly.
13594 2005-10-08 Jackson Harper <jackson@ximian.com>
13596 * TreeView.cs: Don't try to find the clicked on node if there are
13597 no nodes in the tree.
13599 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13605 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13607 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
13608 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
13610 Use ResPool for brushes and dispose System.Drawing objects that
13611 are not used anymore.
13613 2005-10-07 Jackson Harper <jackson@ximian.com>
13615 * MdiChildContext.cs: Use the new borders instead of drawing them
13618 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13620 * Calling UpdateBounds after changing the window's BorderStyle
13621 since the style can change the ClientSize
13623 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13625 * Control.cs: Made PaintControlBackground virtual
13626 * Panel.cs: Overriding PaintControlBackground instead of using paint
13627 event; paint event method was interfering with 'real' users of the
13630 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13632 * ThemeWin32Classic.cs: remove border drawing since it is handled
13633 by the base control class now and was causing double border drawing.
13635 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13637 * Panel.cs: Redraw our background on paint. Not a pretty solution,
13638 but it does seem to match MS behaviour. This fixes bug #75324
13640 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13642 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
13643 somewhat hackish looking
13645 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13648 - We now accept Enter even if AcceptEnter is false, if the containing
13649 form does not have an AcceptButton configured (fixes bug #76355)
13650 - Calculations are now fixed to no longer use Width/Height, but
13651 ClientSize.Width/Height, since we now support borders (this was
13652 a result of fixing borders and therefore bug #76166)
13653 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
13654 true (fixes bug #76354)
13656 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13659 - Defaulting BorderStyle and setting it in XplatUI when our window
13661 - Added enum check to InternalBorderStyle setter
13663 - Added drawing of window borders
13664 - Now properly calculates WM decorations offset for toplevel
13665 windows (fixes bug #74763)
13667 - Implemented BorderStyles for windows (we're letting win32 draw
13669 - Fixed the signature for SetWindowLong
13670 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
13671 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
13673 * UpDownBase.cs: Remove drawing of borders, this is handled by
13674 the driver, outside the client area
13675 * ListView.cs: Removed bogus border calculations. The control should
13676 be oblivious to borders, since those are not part of the client
13678 * X11DesktopColors.cs: Commented out (currently) unneeded variables
13679 * ThemeWin32Classic.cs: Removed border calculations from ListView
13682 2005-10-06 Jackson Harper <jackson@ximian.com>
13684 * MdiChildContext.cs: Clear out the old virtual position remove
13685 all the unneeded calls to CreateGraphics.
13687 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13689 * TextControl.cs: Use proper color for highlighted text; fixes #76350
13691 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13694 - Added loading and setting of our new default icon
13695 - Only set icon if window is already created
13697 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13700 - Do not explicitly set the foreground and background colors, to
13701 allow inheriting from parents (fixes #76302)
13702 - Use Control's InternalBorderStyle property to deal with borders
13704 2005-10-06 Jackson Harper <jackson@ximian.com>
13706 * MdiChildContext.cs: Use the new xplatui function to draw a
13709 2005-10-06 Jackson Harper <jackson@ximian.com>
13711 * Form.cs: Add the parent before creating the child context cause
13712 we need the parent when setting up the child.
13714 2005-10-06 Jackson Harper <jackson@ximian.com>
13716 * FolderBrowserDialog.cs: redo the tree population code so a
13717 second thread isn't used. Should be a lot faster and more stable
13720 2005-10-05 Jackson Harper <jackson@ximian.com>
13722 * TreeView.cs: There are no expand/collapse boxes if the node has
13725 2005-10-05 Jackson Harper <jackson@ximian.com>
13727 * X11DesktopColors.cs: Get menu colours for the gtk theme.
13729 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
13731 * FileDialog.cs: Fix InitialDirectory
13733 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13736 - Fixes changing between styles
13737 - Fixes simple mode
13738 - Fixes last item crashing when navigating with keyboard
13740 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13742 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
13744 2005-10-05 Jackson Harper <jackson@ximian.com>
13746 * TreeView.cs: If updating the root node do a full refresh.
13747 * TreeNode.cs: The root node should be expanded by default. Also
13748 added a utility prop to tell if we are the root node.
13749 * TreeNodeCollection.cs: Only refresh if the node we are being
13750 added to is expanded. Also added a comment on a potential
13753 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
13755 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
13756 in dispose method. Fixes #76330
13758 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
13760 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
13762 - Implements vertical and horizontal scrolling using XplatUI
13763 - Fixes keyboard navagation
13764 - Fixes EnsureVisible
13766 - Handles and draws focus properly
13769 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
13771 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
13772 Create handle. NET_2_0: Destroy handle when value is null.
13774 2005-10-03 Jackson Harper <jackson@ximian.com>
13776 * ScrollBar.cs: My last scrollbar patch was broken. This is a
13777 revert and a new patch to prevent the thumb from refreshing so
13780 2005-10-02 Jackson Harper <jackson@ximian.com>
13782 * ScrollBar.cs: Don't update position if it hasn't actually
13783 changed. This occurs when you hold down the increment/decrement
13784 buttons and the thumb gets to the max/min.
13786 2005-10-01 Jackson Harper <jackson@ximian.com>
13789 * MdiChildContext.cs:
13790 * MdiClient.cs: Implement ActiveMdiChild in Form.
13792 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
13794 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
13796 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
13798 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
13801 2005-09-30 Jackson Harper <jackson@ximian.com>
13803 * ListBox.cs: Don't do a full refresh unless some data has
13806 2005-09-30 Jackson Harper <jackson@ximian.com>
13808 * TreeView.cs: Make sure that the checkboxes size is factored in
13809 even when not visible.
13811 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13813 * FileDialog.cs: Fix Jordi's build break
13815 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13818 - Use standard the Windows colours for the combobox as espected
13819 - Dispose objects that use resouces when no longer need them
13821 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13823 * X11DesktopColors.cs: Initial incomplete implementation
13824 * XplatUIX11.cs: Added call to initialize X11DesktopColors
13826 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13829 - Switched Theme color names to match the names defined in
13830 System.Drawing.KnownColors. Life's hard enough, no need to make
13832 - Added setters to all theme color properties so themes can set
13833 their color schemes. The setters also propagate the color changes
13834 to System.Drawing.KnownColors via reflection
13835 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
13836 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
13837 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
13838 use the new, more logical theme color names
13839 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
13841 * ThemeWin32Classic.cs:
13842 - Removed code to set the old classic Windows colors. Instead it
13843 now relies on the colors returned by System.Drawing.KnownColors
13844 which will be either modern static colors (Unix) or colors
13845 read from the user's configuration (Win32)
13846 - Updated to use the new, more logical theme color names
13847 - Switched DataGrid drawing code to use only Theme colors instead of
13848 a mix of System.Drawing.KnownColors and Theme colors
13849 - DrawFrameControl(): Removed code that fills the button area, the
13850 fill would overwrite any previous fill done by a control. This
13852 - Added DrawReversibleRectangle() stub
13853 * ScrollableControl.cs: Set visible state to false when scrollbars
13854 are removed (pdn fix)
13855 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
13856 DrawReversibleRectangle() method to allow drawing primitive
13858 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
13860 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13862 * ImageList.cs: Add(Icon): Create handle.
13864 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13867 * ThemeWin32Classic.cs:
13868 - Fixes detail mode
13870 - Issues with drawing
13872 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13874 * ImageList.cs: Moved RecreateHandle back to ImageList as event
13875 source has to be the ImageList.
13877 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13879 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
13881 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13883 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
13885 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13887 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
13889 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
13890 * GridItem.cs: Fixed TODOs
13891 * GridItemCollection.cs: Added ICollection interface
13893 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13895 * ImageList.cs: Resize icons when needed.
13897 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
13900 - Fixes GetBounds and returns on screen rects
13902 - Fixes vertical and horzintal scrolling of items
13903 * ThemeWin32Classic.cs:
13906 2005-09-29 Raja R Harinath <harinath@gmail.com>
13908 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
13910 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
13912 * ImageList.cs: Added comments about handle creation. Moved Handle,
13913 HandleCreated and OnRecreateHandle implementations to ImageCollection.
13914 Handle is created in Add methods.
13916 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
13918 * DataGridDrawingLogic.cs:
13919 - Takes rows into account on Colum calculations
13920 - Returns the column when clickig
13922 - Fixes default HitTestInfo values
13923 - Fixes HitTestInfo.ToString
13924 - Fixes ResetBackColor
13926 2005-09-28 Jackson Harper <jackson@ximian.com>
13928 * MdiChildContext.cs: Obey rules for fixed sized windows (no
13929 sizing or cursor changes). Also added some temp code to draw the
13930 titlebars text (Makes dev a little easier).
13932 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
13934 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
13936 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
13938 * ListBox.cs: Fixes bug 76253
13940 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
13942 * ImageList.cs: Added comments about the current implementation. Added
13943 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
13944 Format32bppArgb to preserve transparency and can use Graphics.FromImage
13945 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
13946 with Bitmap.LockBits for better performance. Revised the whole file to
13947 match MS.NET behaviour and provide better performance. Non-public
13948 interface members are calling public members even when they throw
13949 NotSupportedException for better maintainability. Moved ColorDepth,
13950 ImageSize, ImageStream and TransparentColor implementations to
13951 ImageCollection for better performance as these properties are not used
13953 * ImageListStreamer.cs: Added a new internal constructor that takes an
13954 ImageList.ImageCollection and serializes Images based on
13955 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
13956 match ImageList property name.
13958 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
13960 * ListBox.cs: Fixes IndexFromPoint for last item
13962 2005-09-27 Jackson Harper <jackson@ximian.com>
13964 * Form.cs: Set the position of new mdi children correctly.
13966 2005-09-27 Jackson Harper <jackson@ximian.com>
13968 * MdiClient.cs: New mdi children need to be added to the back of
13969 the controls collection so the zorder is set correctly. Also add a
13970 count of all the child windows that have been created.
13972 2005-09-27 Jackson Harper <jackson@ximian.com>
13974 * Form.cs (CreateParams): Setup MDI forms correctly.
13976 2005-09-27 Jackson Harper <jackson@ximian.com>
13978 * MdiChildContext.cs:
13979 * MonthCalendar.cs:
13985 * ScrollableControl.cs:
13986 * ComboBox.cs: Add implicit controls using the new implict control
13987 functionality in ControlCollection. Also try to block multiple
13988 control add in a suspend/resume layout to save some cycles.
13990 2005-09-27 Jackson Harper <jackson@ximian.com>
13992 * Control.cs: Add functionality to the controls collection to add
13993 'implicit controls' these are controls that are created by the
13994 containing control but should not be exposed to the user. Such as
13995 scrollbars in the treeview.
13996 * Form.cs: The list var of the ControlsCollection is no longer
13997 available because of the potential of implicit controls getting
13998 ignored by someone accessing the list directly.
14000 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
14002 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
14003 loose it's parent. (Fixed bug introduced in r49103 when we added
14004 setting the child parent to null on Remove)
14006 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
14008 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
14009 * Splitter.cs: Added missing attributes for BorderStyle property.
14010 * TextBoxBase.cs: Marked Calculate* methods internal.
14011 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
14014 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
14016 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
14018 2005-09-25 Jackson Harper <jackson@ximian.com>
14020 * TreeView.cs: Update the node bounds correctly regardless of
14021 whether the node is visible.
14023 2005-09-25 Jackson Harper <jackson@ximian.com>
14025 * ImageList.cs: Don't dispose the image after it is added to the
14026 image list. Only reformat images that need to be resized.
14028 2005-09-25 Jackson Harper <jackson@ximian.com>
14030 * ImageList.cs: Don't set the format when changing the image.
14032 2005-09-25 Jackson Harper <jackson@ximian.com>
14034 * TreeView.cs: We can't just assume the node has a font. Use the
14035 treeviews font if no node font is available.
14037 2005-09-25 Jackson Harper <jackson@ximian.com>
14039 * TreeView.cs: Allow the scrollbars to be reset with negative
14041 - Don't add scrollbars to negative sized windows.
14043 2005-09-23 Jackson Harper <jackson@ximian.com>
14045 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
14046 old Mono.Posix. Also remove some stray code that shouldn't have
14049 2005-09-23 Jackson Harper <jackson@ximian.com>
14051 * TreeView.cs: Attempt at proper sizing of the horizontal
14052 scrollbar. Also don't resize the scrollbars unless they are
14055 2005-09-23 Jackson Harper <jackson@ximian.com>
14057 * TreeView.cs: We don't need to expand the invalid area when the
14058 selection changes, as this is all drawn in the node's bounding
14059 box. The area needs to be expanded (previous typo was contracting
14060 it) when the focus rect moves.
14062 2005-09-23 Jackson Harper <jackson@ximian.com>
14064 * TreeView.cs: Display the selection box under the correct
14065 circumstances. We were rendering white text with no selection box
14068 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
14070 * TextControl.cs(Split): Now updates selection start/end if it points
14071 into a line that's being split. Fixes a FIXME and bug #75258
14073 2005-09-23 Jackson Harper <jackson@ximian.com>
14076 * ListControl.cs: Don't use the path when retrieving binding
14077 managers from the binding context. My bat sense tells me that the
14078 path is only used on insertion.
14080 2005-09-22 Jackson Harper <jackson@ximian.com>
14082 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
14084 2005-09-22 Jackson Harper <jackson@ximian.com>
14086 * Splitter.cs: There are special cursors used for splitting.
14087 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
14089 2005-09-22 Jackson Harper <jackson@ximian.com>
14091 * Splitter.cs: Change the cursor appropriately when the splitter
14092 is moused over, so the user actually knows there is a splitter
14095 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14097 * Label.cs : Fix ToString method to give same output as MS.NET
14099 2005-09-22 Jackson Harper <jackson@ximian.com>
14101 * TreeView.cs: Create the scrollbars when the handle is created
14102 and add them right away, just make them invisble. Also account for
14103 the window being shrunk vertically to the point that the vert
14104 scrollbar needs to be added.
14105 - Remove some 0.5 adjustments to get around anti aliasing issues.
14107 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
14109 * MainMenu.cs: Fixes default value
14110 * MenuItem.cs: Fixes default value
14112 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
14114 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
14116 2005-09-21 Jackson Harper <jackson@ximian.com>
14118 * Control.cs: Don't try to set the border style on the window if
14119 it hasn't been created. When the window is created the border
14120 style will be used.
14122 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14124 * Control.cs (Update): Don't call XplatUI if we don't have a
14127 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14129 * ContainerControl.cs: Instead of throwing an exception, print
14130 a one-time warning about Validate not being implemented
14131 * XplatUIWin32.cs: Removed debug output
14133 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14135 * Control.cs: Only set XplatUI background if we expect the windowing
14136 system to handle the background. This stops controls that draw their
14137 own background from flickering
14139 * XplatUIX11.cs: Support custom visuals and colormaps for window
14140 creation. This allows, amongst other things, using MWF X11 windows
14143 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
14145 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
14146 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
14147 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
14148 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
14149 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
14150 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
14151 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
14152 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
14153 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
14154 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
14155 GridColumnStylesCollection.cs,
14156 IDataGridColumnStyleEditingNotificationService.cs,
14157 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
14158 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
14159 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
14160 TreeNodeCollection.cs, AmbientProperties.cs,
14161 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
14162 DataObject.cs, ErrorProvider.cs, Splitter.cs,
14163 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
14164 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
14165 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
14166 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
14167 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
14168 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
14169 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
14170 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
14171 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
14172 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
14173 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
14174 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
14175 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
14176 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
14177 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
14178 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
14179 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
14180 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
14181 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
14182 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
14183 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
14184 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
14185 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
14186 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
14187 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
14188 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
14189 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
14190 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
14191 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
14192 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
14193 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
14194 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
14195 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
14196 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
14197 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
14199 2005-09-21 Jackson Harper <jackson@ximian.com>
14201 * TreeNode.cs: Call Before/After Expand not Collapse when
14204 2005-09-20 Jackson Harper <jackson@ximian.com>
14206 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
14208 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
14212 - Fixes proper storing of subitems
14213 - Fixes not updated items
14215 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
14217 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
14218 things if our window handle isn't created yet. Also disabled
14219 debug for TextBoxBase
14221 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
14223 * MenuAPI.cs: Remove filtering of events to allow menu usage
14225 2005-09-20 Miguel de Icaza <miguel@novell.com>
14227 * Cursor.cs: Allow null to be passed to Cursor.Current.
14229 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
14231 * ThemeWin32Classic.cs:
14232 - Change some private methods/fields to protected virtual so that
14233 they can be accessed and overriden in derived classes
14234 - First refactoring of some methods. Derived themes now don't
14235 need to duplicate the complete code from ThemeWin32Classic
14237 - Added nice StatusBar
14238 - Derive from ThemeWin32Classic and not Theme
14239 - Removed duplicate ThemeWin32Classic code
14241 2005-09-20 Miguel de Icaza <miguel@novell.com>
14243 * Control.cs (ControlCollection.Add): If the value null is passed
14244 the control is ignored.
14246 Optimize this loop.
14248 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
14250 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
14251 PostQuitMessage state.
14252 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
14254 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
14256 * Application.cs: Our constructor will never get called, move
14257 initialization to fields; fixes bug #75933
14259 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14262 - Allow files to be selected properly using file name
14264 - Add ability to change diretory (absolute / relative)
14265 using file name combo box.
14267 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
14270 - Fixes Multicolumn listboxes item wrong calculations
14271 - Allows to click when only one item is in the listbox
14272 - Fixes crash when no items using keyboard navigation
14274 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
14276 * ComboBox.cs: Reverted almost everything from the latest patch which
14279 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
14282 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
14284 - When DropDownStyle is Simple, it does not show scrollbar
14285 to the last item of the list.
14286 - When DropDownStyle is Simple, it crashed when the list was
14287 scrolled down with the down cursor key.
14288 - Fixed a bug that when DropDownStyle is DropDownList, the
14289 selected item was not shown.
14290 - The position of the selected item was not preserved when
14291 the next dropdown happened.
14292 * ThemeWin32Classic.cs:
14293 - Items were wrapped at the right end.
14294 * CheckedListBox.cs:
14297 - Items should be fully shown.
14298 - When resizing and vertical scrollbar disappeared, the item
14299 of index 0 should be on the top of the list.
14300 - GetItemRectangle should consider the size of ver. scrollbar
14302 - SizingGrip area should not be allocated when it is not
14304 - Now it reflects MinWidth of the containing panel and
14305 fixed a crash that happens when its width becomes so small.
14307 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
14309 * CheckedListBox.cs: Fixes bug 76028
14310 * ListBox.cs: Fixes bug 76028
14312 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
14314 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
14315 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
14317 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
14319 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
14321 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14323 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
14325 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14327 * IRootGridEntry.cs: Added
14328 * PropertyGridCommands.cs: Added
14329 * PropertiesTab.cs: Added missing methods and property
14330 * PropertyGridView.cs: Made class internal
14331 * PropertyGridTextBox.cs: Made class internal
14333 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14335 * MimeIcon.cs: Try to check some other environment variables
14336 if "DESKTOP_SESSION" returns "default"
14338 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14340 * ThemeNice.cs: Corrected background colors (e.g. menus)
14341 * ColorDialog.cs: Use correct background colors for controls
14343 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
14345 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
14347 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
14349 * RichTextBox.cs: Added initial implementation
14350 * lang.cs: Removed. Was accidentally checked in long time ago
14351 * TODO: Removed. Contents were obsolete
14353 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
14355 * PropertiesTab.cs : Added
14357 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
14359 * PropertyGrid.cs : Update
14360 * PropertyGridView.cs : Update
14361 * System.Windows.Forms.resx : Added images and strings
14363 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
14365 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
14367 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
14369 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
14370 a busy loop right after the Ungrab the X11 display is otherwise
14373 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
14375 * ThemeWin32Classic.cs: Optimise the use of clipping
14377 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
14379 * DataGrid.cs: fixes recursion bug
14381 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
14384 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
14387 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
14389 * ThemeNice.cs: Draw nice ProgressBars
14391 2005-09-01 Miguel de Icaza <miguel@novell.com>
14393 * VScrollBar.cs: Another buglet found by Aaron's tool.
14395 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
14398 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
14401 - Added nicer menu drawing
14405 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14407 * CreateParams.cs (ToString): Made output match MS
14408 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
14409 handle is already created (to avoid forcing window creation)
14410 * XplatUIX11.cs: Set window text to caption after creating window,
14411 in case Text was set before window was created
14412 * Form.cs: Use this.Text instead of a static string as caption
14414 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14416 * NotifyIcon.cs: Don't set the window to visible; this screws
14417 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
14418 OnPaint without a bitmap)
14419 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
14420 happen very often anyway; we could add the check to the WM_PAINT
14421 event generation code
14423 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14425 * NotifyIcon.cs: Fill the icon area with a background color, to
14426 avoid 'residue' when transparent icons are drawn
14428 - Handle whole_window == client_window when destroying windows
14429 - SystrayAdd(): Set client_window to whole_window value to
14430 get mouse and other events passed to NotifyIcon
14432 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14434 * Form.cs: Set proper default for Opacity property
14436 - ShowSystray(): Don't bother creating telling the OS
14437 about the systray item if no icon is provided
14438 - Now handles WM_NCPAINT message to deal with whole/client window
14440 - Create window as visible to not get caught by Expose optimization
14441 * Hwnd.cs: Removed debug message
14442 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
14443 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
14444 PaintEventStart/End to use new client argument
14446 - Commented out debug messages
14447 - Switched PaintEventStart/End to use new client argument
14448 * XplatUI.cs: Added client window bool to PaintEventStart()/
14449 PaintEventEnd() calls, to support drawing in non-client areas
14450 * XplatUIDriver.cs:
14451 - Added client window bool to PaintEventStart()/PaintEventEnd()
14452 calls, to support drawing in non-client areas
14453 - Added conditional compile to allow using MWF BeginInvoke
14456 - Added some conditional debug output
14457 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
14458 whole/client window split
14459 - Implemented handling of client argument to PaintEventStart()/End()
14461 - Throw exception if BeginInvoke() is called and the window handle
14462 or one of the window's parent handles is not created
14463 - Added conditional compile to allow using MWF BeginInvoke on
14465 - get_Parent(): Only sets parent if handle is created. This avoids
14466 forcing window handle creation when parent is set.
14467 - Now fires Layout and Parent changed events in proper order
14468 - Switched to use Handle instead of window.Handle for Z-Order setting,
14469 the get_Parent() patch above causes us to possibly get null for 'window'
14470 - Implemented handling of client argument to PaintEventStart()/End()
14471 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
14473 - Now sends a Refresh() to all child windows when Refresh() is called
14475 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
14477 * Form.cs: Added (non-functional) Opacity property
14478 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
14480 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
14481 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
14482 use export MONO_THEME=nice to activate it.
14483 Currently supported controls:
14487 - TabControl (TabAlignment.Top only, other will follow)
14488 * ThemeEngine.cs: Add theme nice
14489 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
14492 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
14494 * Splitter.cs: Resize docked control and its neighbor.
14496 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14497 -- Making Windows with Menus layout correctly --
14498 * Form.cs : The first leg of the fix
14499 Menu setter - adjust Client Size as needed to make space for the menu
14500 SetClientSizeCore - doesn't call base version to be able to pass the
14501 menu handle to XplatUI.CalculateWindowRect
14502 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
14503 * XplatUIX11.cs: The critical second leg of the fix
14504 GetWindowPos needs to use a recalculated client_rect
14505 so that resizing the window doesn't break layout of child controls.
14506 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
14507 Lots of \t\n killed
14509 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
14511 * Label.cs: Now properly recalculates width and height on Font and Text
14512 changes if AutoSize is set
14514 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14515 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
14517 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
14519 * ImageList.cs: Makes ToString method compatible with MS
14521 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
14523 * MenuAPI.cs: fixes bug 75716
14525 2005-08-11 Umadevi S <sumadevi@novell.com>
14526 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
14528 2005-08-11 Umadevi S <sumadevi@novell.com>
14529 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
14531 2005-08-10 Umadevi S <sumadevi@novell.com>
14532 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
14534 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
14536 * Menu.cs: fixes bug 75700
14537 * MenuAPI.cs: fixes navigation issues
14539 2005-08-09 Umadevi S <sumadevi@novell.com>
14540 * CheckedListBox.cs - simple fix for GetItemChecked.
14542 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
14544 * ComboBox.cs: Serveral fixes
14545 * ListBox.cs: Serveral fixes
14547 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14549 * ComboBox.cs: Fixes FindString methods and GetItemHeight
14550 * ListBox.cs: Fixes FindString methods
14552 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14554 * DataGrid.cs: fixes bugs exposed by new tests
14556 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
14558 * Mime.cs: Compile Mono assembly references only if compiling
14559 with Mono (Allows to build with VS.Net again)
14561 2005-07-28 Marek Safar <marek.safar@seznam.cz>
14563 * Control.cs (PaintControlBackground): Draw background image
14565 (CheckForIllegalCrossThreadCalls): Stubbed.
14567 * Form.cs (OnCreateControl): Center when should be centered.
14569 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
14571 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
14573 * Binding.cs: Binding to properties should be case unsensitive
14575 2005-07-18 vlindos@nucleusys.com
14577 * DataGrid.cs: fixes setmember order
14579 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
14581 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
14582 * FileDialog.cs: FileDialog is now resizable and uses the new
14585 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
14587 * DataGridTextBoxColumn.cs: default value
14588 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
14589 * GridTableStylesCollection.cs: fixes checking MappingName
14590 * DataGridDrawingLogic.cs: fixes drawing logic issues
14591 * DataSourceHelper.cs: rewritten to make compatible with more data sources
14592 * DataGrid.cs: fixes
14594 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
14596 * MimeGenerated.cs: Use case sensitive comparer for
14597 NameValueCollections
14599 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
14601 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
14602 * ThemeWin32Classic.cs: bug fixes, code refactoring
14603 * DataGridDrawingLogic.cs: bug fixes, code refactoring
14604 * DataGrid.cs: bug fixes, code refactoring
14605 * DataGridTextBox.cs: bug fixes, code refactoring
14606 * DataGridColumnStyle.cs: bug fixes, code refactoring
14607 * Theme.cs: bug fixes, code refactoring
14609 2005-07-01 Peter Bartok <pbartok@novell.com>
14611 * TextControl.cs: Quick fix for the reported crash on ColorDialog
14612 and other text box usage
14614 2005-07-01 Jackson Harper <jackson@ximian.com>
14616 * TabControl.cs: Make sure the bottom of the tab covers the pages
14619 2005-06-30 Peter Bartok <pbartok@novell.com>
14621 * Form.cs (ShowDialog): Assign owner of the dialog
14622 * TextBoxBase.cs: Always refresh caret size when deleting, caret
14623 might have been moved to a tag with different height
14625 2005-06-30 Jackson Harper <jackson@ximian.com>
14627 * Form.cs: Don't create an infinite loop when setting focus
14628 * MenuItem.cs: Don't dirty the parents if we don't have any
14630 2005-06-29 Ben Maurer <bmaurer@ximian.com>
14632 * LibSupport.cs: Rename
14634 2005-06-29 Peter Bartok <pbartok@novell.com>
14636 * TextBoxBase.cs: Re-align caret after deleting a character
14638 - DeleteChars(): Ensure that tag covers the provided position
14639 - StreamLine(): Drop reference for dropped tag
14641 2005-06-29 Peter Bartok <pbartok@novell.com>
14644 - Selections now work properly, anchoring at the initial location
14645 and properly extending in either direction (SetSelectionToCaret(),
14646 SetSelectionStart() and SetSelectionEnd())
14647 - No longer redraws the whole control on selection change, now
14648 calculates delta between previous and new selection and only
14649 invalidates/redraws that area
14650 - Fixed FindPos() math off-by-one errors
14651 - Changed DeleteChars() to verify the provided tag covers the
14652 provided position, selections may have a tag that doesn't cover
14653 the position if the selection is at a tag border
14654 - Fixed off-by-one errors in DeleteChars()
14655 - Added missing streamlining check in DeleteChars() to remove
14657 - Implemented Invalidate() method, now properly calculates exposures
14658 between two given lines/positions
14659 - Implemented SetSelection()
14660 - Obsoleted and removed FixupSelection()
14661 - Improved RecalculateDocument() logic, removing code duplication
14663 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14665 * LibSupport.cs: changes to match different input/output arguments.
14667 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14669 * LibSupport.cs: added libsupport.so init routine.
14671 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
14673 * ControlBindingsCollection.cs
14674 - Throws an exception on null datasource when adding
14675 - Checks for duplicated bindings when adding
14677 2005-06-28 Jackson Harper <jackson@ximian.com>
14679 * TreeView.cs (OnKeyDown): Support left and right properly
14680 (navigates as well as expanding and collapsing.
14681 - Add support for Multiply, this expands all the selected nodes
14683 - Fix some tabbing.
14685 2005-06-28 Jackson Harper <jackson@ximian.com>
14687 * TreeView.cs: Implement keyboard navigation, currently supports,
14688 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
14689 support for toggling checkboxes with the space bar.
14691 2005-06-28 Jackson Harper <jackson@ximian.com>
14693 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
14696 2005-06-28 Jackson Harper <jackson@ximian.com>
14698 * TreeView.cs: Add missing event.
14700 2005-06-27 Peter Bartok <pbartok@novell.com>
14703 - Made line ending size configurable (now allows for counting
14704 lineendings as \n or \r\n)
14705 - Added margin to viewport to keep caret visible on right side
14706 - Fixed translation routines for line/pos to documentpos to consider
14707 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
14708 - Fixed some line-endings to be unix style
14709 - Fixed Document.FormatText to perform it's calculations 1-based
14710 - Added descriptions for a few methods that might otherwise get
14712 - Added NOTE section with some basic conventions to remember at
14713 the top of the file
14714 - Major fixup for RichTextBox selection drawing:
14715 * Fixed crashes when multiple tags on a single line were selected
14716 * fixed selection box drawing not overlaying text
14717 * fixed bogus offset calculation for tags not starting at index 1
14718 * Switched behaviour from using multiple Substrings of a
14719 StringBuilder.ToString() to using multiple
14720 StringBuilder.ToString(start, length) statements, hoping this is
14721 faster (kept original version commented out in the code, in case
14722 original version was faster)
14723 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
14725 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
14728 2005-06-27 Jackson Harper <jackson@ximian.com>
14730 * TabControl.cs: Move to the left and right with the arrow
14731 keys. These keys don't cycle beyond first and last like
14732 tab. Refresh all the tabs when scrolling them to the left or
14735 2005-06-27 Jackson Harper <jackson@ximian.com>
14738 - ToString: Added method
14739 - CreateParams: Remove TODO and comment
14740 - OnKeyDown: Cycle through bounds properly.
14741 - SelectedIndex: Scroll to the right or left if we need to
14742 display the newly selected tab.
14744 2005-06-23 Jackson Harper <jackson@ximian.com>
14746 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
14749 2005-06-23 Jackson Harper <jackson@ximian.com>
14751 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
14752 CTRL-SHIFT-TAB, and HOME, END are there any others?
14754 2005-06-23 Jackson Harper <jackson@ximian.com>
14756 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
14758 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14760 * DataGridTextBoxColumn.cs: fixes and enhancements
14761 * ThemeWin32Classic.cs: fixes and enhancements
14762 * DataGridBoolColumn.cs: fixes and enhancements
14763 * DataGridDrawingLogic.cs: fixes and enhancements
14764 * CurrencyManager.cs: fixes and enhancements
14765 * DataGrid.cs: fixes and enhancements
14766 * DataGridColumnStyle.cs: fixes and enhancements
14768 2005-06-22 Jackson Harper <jackson@ximian.com>
14770 * TabControl.cs: Add some missing methods that just call into the
14771 base. Make the TabPageCollection's IList interface behave in the
14772 same manner as the MS implementation.
14774 2005-06-22 Peter Bartok <pbartok@novell.com>
14776 * TextControl.cs: Added sanity check
14778 - Fixed wrapping behaviour, don't set wrap on single line controls
14779 (this fixes the breakage of colordialog introduced in an earlier
14781 - Added rudimentary support for autoscrolling right-aligned controls
14782 (still needs fixing, also, center alignment scroll is missing)
14784 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14786 * ScrollBar.cs: Fixes thumbpos on Maximum values
14788 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
14790 * PropertyGridView.cs: Pass context information to UITypeEditors
14792 2005-06-21 Peter Bartok <pbartok@novell.com>
14795 - Now calling PositionCaret with absolute space coordinates
14796 - Enabled vertical scrolling
14797 - Better tracking of scrollbar changes, tied into WidthChange
14799 - Improved cursor tracking
14800 - Removed debug output
14802 - PositionCaret coordinates are now works in absolute space, not
14804 - Improved tracking of document size
14805 - Added events for width and height changes
14807 2005-06-21 Peter Bartok <pbartok@novell.com>
14809 * Form.cs: Set focus to active control when form is activated
14811 - Added word-wrap functionality to RecalculateLine()
14812 - Added some short function descriptions for VS.Net to aid in
14813 writing dependent controls
14814 - Added Caret property, returning the current coords of the caret
14815 - Added ViewPortWidth and ViewPortHeight properties
14816 - Added Wrap property
14817 - Added CaretMoved event
14818 - Removed some old debug code
14819 - Split() can now create soft splits
14820 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
14821 - Added method to format existing text
14822 - Fixed size/alignment calculations to use viewport
14823 - RecalculateDocument now can handle changing line-numbers while
14827 - Added some wrap logic, we don't wrap if alignment is not left
14828 - Added casts for scrollbar var, base class switched types to
14829 also support RichTextBoxA
14830 - Implemented handling of scrollbar visibility flags
14833 - Switched scrollbars type to RichTextBoxScrollBars to support
14835 - Added tracking of canvas width/height
14836 - Switched scrollbars to be not selectable (to keep focus on text)
14837 - Added central CalculateDocument() method to handle all redraw
14839 - Added ReadOnly support
14840 - Added WordWrap support
14841 - Fixed handling of Enter key (we now treat it as a DialogKey)
14842 - Fixed caret positioning when h or v scroll is not zero
14843 - Fixed placing/generation of vertical scrollbar
14844 - Added CalculateScrollBars() method to allow updating scrollbar
14845 limits and visibility
14846 - Fixed handling of horizontal scroll
14847 - Added handling of vertical scroll
14848 - Implemented auto-'jump' when caret moves to close to a left or
14849 right border and there is text to be scrolled into view (currently
14850 there's the potential for a stack overflow, until a bug in
14851 scrollbar is fixed)
14853 2005-06-21 Geoff Norton <gnorton@customerdna.com>
14855 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
14857 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
14861 - return application/x-zerosize for files with size zero
14862 (if no extension pattern matches).
14863 - check matches collection for strings too.
14864 - return only the first mime type if the name value
14865 collection has more than one mime type.
14867 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
14869 * PropertyGrid.cs: Cleaned up some TODOs
14870 * PropertyGridView.cs: Added support for UITypeEditors
14872 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14874 * DataGrid.cs: clears cached value
14876 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14878 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
14879 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
14880 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
14881 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
14883 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
14885 * ThemeWin32Classic.cs: fixes colour
14887 2005-06-15 Peter Bartok <pbartok@novell.com>
14889 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
14890 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
14891 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
14892 * Control.cs: Added some MWFCategory and MWFDescription attributes
14893 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
14895 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
14897 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
14900 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
14902 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
14903 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
14904 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
14905 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
14906 * DataGrid.cs: default datagrid settings for Default Styles, fixes
14907 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
14909 2005-06-13 Jackson Harper <jackson@ximian.com>
14911 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
14912 isn't printed when the user enables dropping. (X11 does accept
14915 2005-06-13 Jackson Harper <jackson@ximian.com>
14917 * TreeView.cs: Remove some TODOS.
14919 2005-06-13 Jackson Harper <jackson@ximian.com>
14921 * Form.cs: Hook into the mdi framework.
14922 * MdiClient.cs: Use the base control collections add method so
14923 parents get setup correctly. Set the default back colour and dock
14925 * MdiChildContext.cs: New class, this bad actor handles an
14926 instance of an MDI window. Right now there is only basic
14927 support. You can drag, close, and resize windows. Minimize and
14928 Maximize are partially implemented.
14930 2005-06-13 Jackson Harper <jackson@ximian.com>
14932 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
14933 freaky when both vals are negative. NOTE: There are probably other
14934 places in XplatUIX11 that this needs to be done.
14936 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
14938 * DataGrid.cs: implement missing methods, move KeyboardNavigation
14939 * DataGridColumnStyle.cs: fixes signature
14941 2005-06-12 Jackson Harper <jackson@ximian.com>
14943 * XplatUIX11.cs: Use sizing cursors similar to the ones on
14946 2005-06-11 Jackson Harper <jackson@ximian.com>
14948 * StatusBarPanel.cs: Signature cleanups. Implement
14951 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
14953 * DataGridTextBoxColumn.cs: Honors aligment
14954 * GridColumnStylesCollection.cs: Contains is case unsensitive
14955 * GridTableStylesCollection.cs: several fixes
14956 * DataGridTableStyle.cs: default column creation
14957 * DataGridDrawingLogic.cs: fixes
14958 * CurrencyManager.cs: ListName property
14959 * DataGrid.cs: multiple styles support
14960 * DataGridColumnStyle.cs: fixes
14963 2005-06-10 Peter Bartok <pbartok@novell.com>
14965 * Control.cs(Select): Moved SetFocus call to avoid potential
14966 loops if controls change the active control when getting focus
14967 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
14968 the up/down buttons
14970 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
14972 * ImageListConverter.cs: Implemented
14974 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
14976 * MonthCalendar.cs: Wired in NumericUpDown control for year
14978 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
14980 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
14981 DoubleClick events, since they are not meant to be fired.
14983 2005-06-09 Peter Bartok <pbartok@novell.com>
14985 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
14986 Jonathan's standalone controls into MWF, implemented missing
14987 events, attributes and methods; added xxxAccessible classes
14988 * AccessibleObject.cs: Made fields internal so other classes
14989 can change them if needed
14991 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
14993 * UpDownBase.cs: Complete implementation
14994 * NumericUpDown.cs: Complete implementation
14995 * DomainUpDown.cs: Complete implementation
14997 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
14999 * DataGridTextBoxColumn.cs: drawing fixes
15000 * DataGridCell.cs: fixes ToString method to match MSNet
15001 * DataGridTableStyle.cs: fixes
15002 * DataGridBoolColumn.cs: fixes, drawing
15003 * DataGridDrawingLogic.cs: fixes, new methods
15004 * DataGridTextBox.cs: Keyboard and fixes
15006 - Keyboard navigation
15008 - Row selection (single, multiple, deletion, etc)
15011 2005-06-07 Jackson Harper <jackson@ximian.com>
15013 * ThemeWin32Classic.cs: Clear the background area when drawing
15016 2005-06-06 Peter Bartok <pbartok@novell.com>
15018 * ImageListStreamer.cs: Fixed signature for GetData
15019 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
15021 - Added missing ChildAccessibleObject class
15022 - Added missing OnXXXFocus overrides, switched to using those
15023 instead of the event handler
15025 - Added Parent property for ControlAccessibleObject
15028 - Added ResetBindings()
15029 * ListBindingConverter.cs: Implemented some methods
15030 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
15031 * ImageList.cs: Implemented basic handle scheme, removed TODOs
15032 * ContainerControl.cs: Fixed signature, now subscribing to the
15033 ControlRemoved event instead of overriding the handler, LAMESPEC
15034 * CurrencyManager.cs: Added missing attribute
15035 * MonthCalendar.cs: Added missing properties
15037 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
15039 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
15041 2005-06-06 Gaurav Vaish and Ankit Jain
15043 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
15044 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
15046 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
15048 * Control.cs: fixes CreateParams Width / Height.
15050 2005-06-05 Peter Bartok <pbartok@novell.com>
15052 * Win32DnD.cs: Removed compilation warnings
15054 2005-06-05 Peter Bartok <pbartok@novell.com>
15056 * Control.cs (CreateParams): Since we don't know if one of the
15057 properties we use is overridden, lets make sure if we fail accessing
15058 we continue with a backup plan
15060 2005-06-05 Peter Bartok <pbartok@novell.com>
15063 - Removed debug output
15064 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
15066 - Plugged resource leak
15067 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
15070 2005-06-05 Peter Bartok <pbartok@novell.com>
15072 * XplatUIWin32.cs: Removed DnD code
15073 * Win32DnD.cs: Implemented drop source and drop target functionality
15075 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15077 * UpDownBase.cs: remove duplicate addition of event, enable some code
15078 that was commented out.
15079 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
15080 Validate input when a key is pressed. It works fine now for every
15081 combination of Hexadecimal. Only missing some drawing love when sharing
15082 space with other controls.
15084 2005-06-04 Peter Bartok <pbartok@novell.com>
15087 - We need to pass a window for DragDrop, so enable callback events
15088 - Added DnD callback events when being a DragSource
15089 * XplatUI.cs (StartDrag): Added window handle argument
15090 * XplatUIDriver.cs (StartDrag): Added window handle argument
15091 * QueryContinueDragEventArgs: Made fields internally accessible so
15092 drivers can set them
15093 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
15096 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
15098 * DataGridTextBoxColumn.cs: column text editing
15099 * DataGridTableStyle.cs: Respect columns styles created by the user
15100 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
15101 * DataGridBoolColumn.cs: bool column editing
15102 * DataGrid.cs: fixes to scrolling, properties, etc
15103 * DataGridTextBox.cs: handle keyboard
15104 * DataGridColumnStyle.cs: fixes
15106 2005-06-02 Jackson Harper <jackson@ximian.com>
15108 * ImageListStreamer.cs: Somewhat broken implementation of
15109 GetObjectData. The RLE needs some work to match MS properly.
15111 2005-06-02 Jackson Harper <jackson@ximian.com>
15113 * X11Dnd.cs: Attempting to keep at least one file in MWF
15116 2005-06-02 Peter Bartok <pbartok@novell.com>
15118 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
15121 2005-06-02 Peter Bartok <pbartok@novell.com>
15123 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
15124 * XplatUI.cs: Added DoDragDrop() method
15125 * XplatUIDriver.cs: Added DoDragDrop() method
15127 2005-06-02 Jackson Harper <jackson@ximian.com>
15129 * Splitter.cs: Implement BorderStyle.
15131 2005-06-02 Jackson Harper <jackson@ximian.com>
15133 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
15134 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
15137 2005-06-02 Peter Bartok <pbartok@novell.com>
15140 - Added Data setter
15141 - Fixed broken insertion code for SetData, now also
15142 overwrites any existing entry of the same format name
15143 * Hwnd.cs: Added list of pointers that automatically gets
15144 freed when the window is disposed
15145 * XplatUI.cs: Call driver initialization method when loading
15148 - OnDragLeave takes EventArgs, not DragEventArgs
15149 - Added setting of WS_EX_ACCEPTFILES style when dropping is
15151 - Forces style update when drop state changes
15152 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
15153 not perfect since we cannot (yet) call the IDataObject.GetData()
15154 method, we keep getting 0x80004005 error, dunno why)
15156 2005-06-02 Peter Bartok <pbartok@novell.com>
15158 * DragEventArgs.cs: Make fields internal so we can cache the
15159 object and re-set the fields from XplatUI
15161 2005-06-02 Jackson Harper <jackson@ximian.com>
15163 * Control.cs: Add some internal methods so the DnD subsystem can
15164 raise DnD events. Also call into the driver when AllowDrop is set.
15166 * XplatUIDriver.cs: New method for setting whether or not a window
15167 is allowed to accept drag and drop messages.
15169 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
15171 * ScrollBar.cs: Make sure that values sent in Scroll events
15172 are always between Maximum and Minimum.
15174 2005-06-01 Marek Safar <marek.safar@seznam.cz>
15176 * Menu.cs: Call MenuChanged when menuitem visibility has been
15178 * MenuItem.cs: Rebuild menu when item is (not) visible.
15179 * MainMenu.cs: MainMenu has special MenuChanged.
15180 * Theme.cs: Caption and FrameBorderSize are not fixed.
15181 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
15182 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
15184 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
15185 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
15187 2005-05-30 Jackson Harper <jackson@ximian.com>
15189 * DataFormat.cs: We can't statically initialize this stuff because
15190 it calls into the xplatui and could create a loop. So we lazy init
15193 2005-05-28 Jackson Harper <jackson@ximian.com>
15195 * Control.cs: Proper implementation of Product(Name/Version).
15197 2005-05-27 Jackson Harper <jackson@ximian.com>
15199 * DataObject.cs: Dont crash if no data is found.
15201 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
15202 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
15203 as per status page, guessing it should be set to true
15205 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
15207 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
15208 * DataGridTableStyle.cs: set proper formatting text, def header text
15209 * ThemeWin32Classic.cs: new themable paramaters
15210 * DataGridBoolColumn.cs: paint check box, get data, fixes
15211 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
15212 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
15213 * DataGridColumnStyle.cs: fixes
15214 * Theme.cs: new themable paramaters
15216 2005-05-26 Peter Bartok <pbartok@novell.com>
15218 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
15220 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15221 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
15223 2005-05-24 Peter Bartok <pbartok@novell.com>
15225 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
15226 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
15227 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
15228 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
15229 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
15230 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
15231 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
15232 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
15233 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
15234 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
15235 missing attributes, etc
15236 * DataGridPreferredColumnWidthTypeConverter.cs: Added
15238 2005-05-24 Peter Bartok <pbartok@novell.com>
15240 * Help.cs: Added, implemented trivial functions, throws up MessageBox
15241 when user tries to get help
15242 * DataObject.cs, DataFormats.cs, LinkArea.cs,
15243 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
15244 to suppress warnings
15245 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
15246 avoid unreachable code warning
15248 2005-05-20 Peter Bartok <pbartok@novell.com>
15250 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
15252 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15254 * DataGridTextBoxColumn.cs: Basic painting methods
15255 * DataGridTableStyle.cs: Set table style in the column
15256 * ThemeWin32Classic.cs: Use Theme for colors
15257 * DataGridDrawingLogic.cs: Implement more drawing
15258 * DataGrid.cs: drawing, theming, enhacements, fixes
15259 * DataGridColumnStyle.cs: fixes, drawing
15260 * Theme.cs: theming for Datagrid
15262 2005-05-20 Peter Bartok <pbartok@novell.com>
15264 * Cursor.cs: Implemented GetObjectData() method
15266 2005-05-20 Peter Bartok <pbartok@novell.com>
15268 * Cursors.cs: Added setting of cursor name
15270 - Implemented constructors
15271 - Implemented Draw and DrawStretched
15272 - Implemented Current property
15273 - Implemented == and != operators
15274 - Implemented Dispose()
15275 - Implemented ToString
15276 - Added missing attributes
15278 - Added missing reset for OverrideCursor when DoEvents is called
15279 - Fixed creation of cursor, logic was wrong
15281 - Added missing reset for OverrideCursor when DoEvents is called
15282 - Fixed creation of cursor, bit arrays were swapped
15283 * Clipboard.cs: Removed obsolete MonoTODO attribute
15285 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15287 * ComboBox.cs: fixes OnSelectedItemChanged
15288 * ControlBindingsCollection.cs: fixes item range check
15290 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
15293 - Calc preferred height properly
15294 - Implement missing properties
15296 * NumericUpDown.cs: Implement missing events
15298 2005-05-19 Jackson Harper <jackson@ximian.com>
15300 * TabControl.cs: New method that resizes the tab pages before
15301 redrawing them. This as needed as the control is double buffered
15302 and sizing will not be recalculated unless ResizeTabPages is
15304 * TabPage.cs: Set base.Text instead of Text in the constructor so
15305 that UpdateOwner does not get called. Use the new Redraw method of
15306 TabControl instead of Refresh so the sizing is recalculated.
15307 * ThemeWin32Classic.cs: Draw the text for button tabs.
15309 2005-05-19 Jackson Harper <jackson@ximian.com>
15311 * Control.cs: Paint control background images. Fix typo where
15312 PaintControlBackground was not getting called correctly.
15314 2005-05-19 Peter Bartok <pbartok@novell.com>
15316 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
15317 I can investigate, apparently I broke FileDialog
15319 2005-05-19 Marek Safar <marek.safar@seznam.cz>
15321 * AxHost.cs: Some simple properties.
15322 * Control.cs: window must be accessible after ctor.
15323 * Form.cs: Added TransparencyKey property.
15324 * TextBoxBase.cs: Implemented Clear. Text property can be null.
15325 * XplatUIWin32.cs: SetBorderStyle implemented.
15327 2005-05-18 Peter Bartok <pbartok@novell.com>
15329 * DataObject.cs: Entries are not global but particular to the
15330 DataObject, now it behaves that way
15331 * XplatUIWin32.cs: Implemented Clipboard methods
15332 * Clipboard.cs: Implemented
15333 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
15334 * XplatUIOSX.cs: Updated to final clipboard prototypes
15335 * XplatUIX11.cs: Implemented Clipboard methods
15336 * XplatUIDriver.cs: Updated to final clipboard prototypes
15337 * XplatUIStructs.cs:
15338 - Added BITMAPINFOHEADER struct
15339 - Added ClipboardFormats enum
15341 - Added ClipboardStruct
15342 - Added Atom enum items for clipboard types
15343 - Fixed atom types for Selection event structures
15345 - Added internal properties and methods for drivers to enumerate
15347 - Switched initialization method to allow drivers to assign their
15348 own IDs even for the MS predefined clipboard IDs
15349 * XplatUI.cs: Updated to final clipboard interface
15351 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15352 * PropertyGridView.cs: Fixed compiler warnings.
15354 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15355 * PropertyGrid.cs: Added some event calls
15356 * PropertyGridView.cs: Change drawing code to use double buffering
15357 * PropertyGridTextBox.cs: Changed Text property name
15358 * GridItem.cs: Added Bounds property.
15359 * GridEntry.cs: Added Bounds property.
15361 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
15363 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
15364 since GetType() may not return the correct type if the object is
15367 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
15369 * TreeNodeCollection.cs: fixes get/set item ranges
15371 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
15373 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
15375 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
15377 * ComboBox.cs: Fix item range comparation
15378 * ListView.cs: Fix item range comparation
15380 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15383 - Clear example panel when OnPaint is called
15384 - Better solution for displaying the example panel text
15385 - Select default indexes in the ListBoxes
15387 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15389 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
15391 2005-05-11 Peter Bartok <pbartok@novell.com>
15393 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
15394 * SelectionRangeConverter.cs: Implemented
15395 * PropertyGrid.cs: Fixed attribute value
15397 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
15398 - Added Sebastien Pouliot's CAS Stack Propagation fixes
15399 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
15400 that's common to all drivers. First methods to go there are
15401 Sebastien Pouliot's CAS Stack Propagation helper methods
15402 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
15403 Sebastien Pouliot for CAS Stack Propagation
15405 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15408 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
15410 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
15412 * DataGridTextBoxColumn.cs: fixed some members
15413 * GridColumnStylesCollection.cs: indexed column is case insensitive
15414 * DataGridTableStyle.cs: fixes
15415 * ThemeWin32Classic.cs: add new theme parameter
15416 * Theme.cs: add new theme parameter
15417 * DataGridDrawingLogic.cs: Datagrid's drawing logic
15418 * DataGrid.cs: fixes, new internal properties, etc.
15419 * DataGridColumnStyle.cs: allows to set grid value
15422 2005-05-10 Peter Bartok <pbartok@novell.com>
15424 * AccessibleObject.cs:
15425 - Removed MonoTODO attribute on help, method is correct
15426 - Fixed Bounds property
15427 * AxHost.cs: Moved MonoTODO
15428 * ButtonBase.cs: Now setting AccessibleObject properties
15429 * RadioButton.cs: Setting proper AccessibleObject role
15430 * CheckBox.cs: Setting proper AccessibleObject role
15431 * ControlBindingsCollection.cs: Added properties, methods and attributes
15432 * DataFormats.cs: Fixed awkward internal API, and changed to enable
15433 userdefined DataFormats.Format items as well
15434 * ListControl.cs: Removed data_member from the public eye
15435 * OpenFileDialog.cs:
15436 - Made class sealed
15437 - Added missing attributes
15438 * SaveFileDialog.cs: Added missing attributes
15439 * ImageListStreamer.cs: Fixed code that caused warnings
15440 * LinkLabel.cs: Removed unreachable code
15441 * TreeView.cs: Fixed code that caused warnings
15442 * PropertyGridView.cs: Fixed code that caused warnings
15443 * GridColumnStylesCollection.cs: Added missing attributes
15444 * GridTableStylesCollection: Added missing attribute
15445 * PropertyManager: Added .ctor
15446 * SecurityIDType: Added
15447 * DataObject.cs: Implemented class
15448 * LinkArea.cs: Added missing attribute
15450 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
15452 * RadioButton.cs: call base method to allow to fire OnClick event
15453 * UpDownBase.cs: OnMouseUp call base method
15454 * CheckedListBox.cs: call base method before returning
15455 * TrackBar.cs: call base method before returning
15458 2005-05-10 Peter Bartok <pbartok@novell.com>
15460 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
15463 2005-05-10 Peter Bartok <pbartok@novell.com>
15465 * DataFormats.cs: Implemented
15466 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
15467 XplatUIX11.cs: Added Clipboard APIs
15468 * XplatUIWin32.cs: Implemented Clipboard APIs
15469 * FolderBrowserDialog.cs: Added missing event, attributes
15471 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
15473 * CheckBox.cs: call base method to allow to fire OnClick event
15475 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
15477 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
15479 2005-05-06 Peter Bartok <pbartok@novell.com>
15481 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
15482 * Screen.cs: Implemented
15483 * HelpNavigator.cs: Added
15484 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
15486 * HelpProvider.cs: Implemented all we can do until we have a CHM
15487 help library (which means that "What's This" does work now)
15489 2005-05-06 Jackson Harper <jackson@ximian.com>
15491 * XplatUIX11.cs: Fix waking up the main loop.
15493 2005-05-05 Peter Bartok <pbartok@novell.com>
15495 * XplatUI.cs: Updated revision
15496 * Form.cs: Removed enless loop
15497 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
15498 * Label.cs (OnPaint): Added call to base.OnPaint()
15499 * ToolTip.cs: Made ToolTipWindow reusable for other controls
15500 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
15501 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
15503 * ButtonBase.cs: Moved base.OnPaint() call to end of method
15504 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
15505 to ToolTip.ToolTipWindow for drawing and size methods; this allows
15506 reuse of ToolTipWindow by other controls
15507 * SizeGrip.cs: Moved base.OnPaint() call to end of method
15508 * XplatUIX11.cs: Now clipping drawing area (experimental)
15509 * PictureBox.cs: Moved base.OnPaint() call to end of method
15510 * Theme.cs: Fixed ToolTip abstracts to match new format
15511 * ErrorProvider.cs: Implemented
15513 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
15515 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
15519 - Implements LinkBehavior
15520 - Fixes many issues
15522 2005-05-03 Jackson Harper <jackson@ximian.com>
15524 * ListView.cs: Calculate the scrollbar positioning on resize and
15525 paint, so they get put in the correct place.
15527 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15529 * ColorDialogs.cs: The small color panels are now handled by
15530 SmallColorControl. This fixes drawing of the focus rectangle
15531 and adds a 3D border.
15533 2005-05-03 Peter Bartok <pbartok@novell.com>
15535 * Control.cs: Modified version of Jonathan Chamber's fix for
15538 2005-05-03 Jackson Harper <jackson@ximian.com>
15540 * ListView.cs: Remove redraw variable. Control now handles whether
15541 or not a redraw needs to be done, and will only raise the paint
15542 event if redrawing is needed.
15544 2005-05-03 Jackson Harper <jackson@ximian.com>
15546 * Splitter.cs: No decorations for the splitter form. Cache the
15549 2005-05-03 Jackson Harper <jackson@ximian.com>
15551 * TreeView.cs: Use dashed lines to connect nodes. Use the
15552 ControlPaint method for drawing the focus rect instead of doing
15555 2005-05-02 Peter Bartok <pbartok@novell.com>
15557 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
15559 2005-04-29 Jackson Harper <jackson@ximian.com>
15561 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
15562 entire image buffer. Just clear the clipping rectangle.
15564 2005-04-29 Jackson Harper <jackson@ximian.com>
15566 * ThemeWin32Classic.cs: Don't draw list view items that are
15567 outside the clipping rectangle.
15569 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
15571 * ListBox.cs: added horizontal item scroll
15573 2005-04-29 Jackson Harper <jackson@ximian.com>
15575 * ThemeWin32Classic.cs: Remove some old debug code that was
15576 causing flicker with the new double buffering code.
15578 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
15580 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
15581 behave like combobox and comboboxlist (still not sure if this is
15584 2005-04-28 Jackson Harper <jackson@ximian.com>
15586 * ThemeWin32Classic.cs: Don't fill the middle of progress
15587 bars. This fills areas outside of the clip bounds that don't need
15590 2005-04-28 Jackson Harper <jackson@ximian.com>
15592 * Control.cs: Don't expose functionality to touch the image buffers.
15594 * ListView.cs: We do not need to (and no longer can) manipulate
15595 the image buffers directly. All of this is handled by Control.
15597 2005-04-28 Peter Bartok <pbartok@novell.com>
15599 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
15600 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
15601 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
15603 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15606 - Adjust control's height for non-simple comboboxes (bug fix)
15608 * MenuAPI.cs: remove unused var
15609 * ScrollBar.cs: remove unsed var
15611 * ListBox.cs: unselect items when clearing
15613 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15615 * ListControl.cs: honors OnPositionChanged and default Selected Item
15616 * ListBox.cs: unselect items when clearing
15618 2005-04-27 Jackson Harper <jackson@ximian.com>
15620 * X11Keyboard.cs: Initialize a default keyboard and give a warning
15621 if a "correct" keyboard is not found. This will make us not crash,
15622 but might give some users bad keyboard layouts...seems to be the
15623 same thing rewind does.
15625 2005-04-27 Jackson Harper <jackson@ximian.com>
15627 * BindingManagerBase.cs: Attach the current/position changed
15628 handlers to their respective events.
15630 2005-04-27 Jackson Harper <jackson@ximian.com>
15632 * Control.cs: Make sure that the first WM_PAINT does a full draw,
15634 * ThemeWin32Classic.cs: Don't fill the background for picture
15635 boxes. This could overright user drawing.
15636 * ComboBox.cs: Just fill the clipping rect not the entire client
15637 rect when drawing the background. This prevents pieces of the
15638 image buffer from getting overwritten and is theoretically faster.
15640 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
15642 * ComboBox.cs: Databinding support fixes, fire missing events
15643 * ListControl.cs: implement missing methods and properties, fixes
15644 * ThemeWin32Classic.cs: Databiding support on Drawing
15645 * CheckedListBox.cs: Databinding support fixes, fire missing events
15646 * ListBox.cs: Databinding support fixes, fire missing events
15648 2005-04-25 Peter Bartok <pbartok@novell.com>
15650 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
15652 2005-04-25 Jackson Harper <jackson@ximian.com>
15654 * TreeView.cs: Use the horizontal scrollbars height not width when
15655 determining how much of the client area is available.
15657 2005-04-25 Jackson Harper <jackson@ximian.com>
15659 * Control.cs: Double buffering is handled differently now. As per
15660 the spec, the extra buffer is created in the WM_PAINT message and
15661 passed down to the control's drawing code.
15669 * PropertyGridView.cs:
15681 * DateTimePicker.cs:
15683 * TreeView.cs: Update to new double buffering system.
15684 * MonthCalendar.cs: Uncomment block, as Capture is now
15685 working. Update to new double buffering
15686 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
15687 * PaintEventArgs.cs: New internal method allows us to set the
15688 graphics object. This is used for double buffering.
15689 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
15690 rectangle. The internal paint_area var has been removed from
15691 StatusBar. The clipping rect should be used instead.
15692 * Theme.cs: Give the PictureBox drawing method a clipping rect.
15693 * TabPage.cs: The RefreshTabs method was removed, so just call the
15694 tab controls Refresh method now.
15695 * TabControl.cs: Update to new double buffering. Make sure the
15696 handle is created before sizing the tab pages, otherwise we will
15697 get stuck in a loop.
15699 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
15701 * LinkLabel.cs: Fix typo, bug #74719; patch
15702 from Borja Sanchez Zamorano
15704 2005-04-22 Jackson Harper <jackson@ximian.com>
15706 * TreeNode.cs: Implement Handle stuff.
15707 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
15709 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
15711 * DataGridTextBoxColumn.cs: call base constructors, fixes
15712 * GridColumnStylesCollection.cs: missing events, methods, and functionality
15713 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
15714 * DataGridTableStyle.cs: implements create default column styles
15715 * DataGridBoolColumn.cs: which types can handle
15716 * DataGrid.cs: missing methods, fixes, new functionality
15717 * DataGridColumnStyle.cs: fixes
15719 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
15720 * FolderBrowserDialog.cs:
15721 - Use a thread to fill the TreeView
15722 - Adjusted some sizes
15724 2005-04-19 Peter Bartok <pbartok@novell.com>
15726 * LinkLabel.cs: (Re-)create the pieces when setting the Text
15727 property. Fixes #74360.
15729 2005-04-19 Jackson Harper <jackson@ximian.com>
15731 * XEventQueue.cs: Lock when getting the lockqueue size.
15732 * PictureBox.cs: Call base OnPaint
15734 2005-04-19 Peter Bartok <pbartok@novell.com>
15736 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
15737 messages were no longer being processed (this broke BeginInvoke)
15740 2005-04-18 Jackson Harper <jackson@ximian.com>
15742 * TreeView.cs: buglet that caused node images to get drawn
15743 regardless of whether or not they were in the clipping rectangle.
15745 2005-04-18 Jackson Harper <jackson@ximian.com>
15747 * CurrencyManager.cs: There are four rules for GetItemProperties:
15748 - If the type is an array use the element type of the array
15749 - If the type is a typed list, use the type
15750 - If the list contains an Item property that is not an object, use
15752 - use the first element of the list if there are any elements in
15755 2005-04-17 Jackson Harper <jackson@ximian.oom>
15757 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
15758 click. This handles offsets for scrolling properly and reduces
15759 memory. Also fixed GetNode to not offset now that TopNode works
15761 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
15763 2005-04-17 Jackson Harper <jackson@ximian.com>
15765 * CursorConverter.cs: Initial implementation.
15767 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15769 * ListControl.cs: work towards complex data binding support on ListControl
15770 * CurrencyManager.cs: work towards complex data binding support on ListControl
15771 * ListBox.cs: work towards complex data binding support on ListControl
15774 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15776 * GridTableStylesCollection.cs: fixes name and constructor
15777 * DataGridTableStyle.cs: fixes
15778 * DataGridBoolColumn.cs: fixes names and constructors
15779 * DataGrid.cs: define methods and properties. Some init implementations
15780 * DataGridCell.cs: define methods and properties. Some init implementations
15781 * GridTablesFactory.cs: Define methods and properties
15783 2005-04-15 Geoff Norton <gnorton@customerdna.com>
15785 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
15786 graphics port changes. We still want the coordinates in global screen
15789 2005-04-14 Jackson Harper <jackson@ximian.com>
15791 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
15792 check plus minus or checkbox clicks unless those features are enabled.
15794 2005-04-14 Jackson Harper <jackson@ximian.com>
15796 * TreeView.cs: Add methods for setting the top and bottom visible
15797 nodes. TreeNode::EnsureVisible uses these methods.
15798 * TreeNode.cs: Implement EnsureVisible
15800 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
15802 * Form.cs: Pospone menu assignation if the window has not been created yet
15803 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
15806 2005-04-12 Jackson Harper <jackson@ximian.com>
15808 * TreeView.cs: Set the TopNode properly when scrolling
15809 occurs. This has the added benifit of reducing the amount of
15810 walking that needs to be done when drawing. Also removed an old
15812 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
15814 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
15816 * Timer.cs: fixes interval setting when the timer is already enabled
15818 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
15820 * FolderBrowserDialog.cs: First approach
15822 2005-04-09 Peter Bartok <pbartok@novell.com>
15824 * FolderBrowserDialog: Added
15826 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
15828 * LinkLabel.cs: move drawing code into the theme
15829 * ThemeWin32Classic.cs: drawing code and painting background bugfix
15830 * Theme.cs: define DrawLinkLabel method
15832 2005-04-05 Jackson Harper <jackson@ximian.com>
15834 * BindingContext.cs: Use weak references so these bad actors don't
15835 stay alive longer then they need to.
15837 2005-04-05 Jackson Harper <jackson@ximian.com>
15839 * ListControl.cs: Basic implementation of complex databinding.
15841 * ListBox.cs: Add calls to ListControl databinding methods.
15843 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
15846 - Don't change PopupButtonState to Normal when the
15847 PopupButton gets pressed several times.
15848 - Renamed ButtonPanel to PopupButtonPanel
15850 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
15852 * ColorDialog.cs: Use cached objects instead of creating them
15853 * LinkLabel.cs: Use cached objects instead of creating them
15854 * Splitter.cs: Use cached objects instead of creating them
15855 * FontDialog.cs: Use cached objects instead of creating them
15856 * PropertyGridView.cs: Use cached objects instead of creating them
15857 * MessageBox.cs: Use cached objects instead of creating them
15858 * FileDialog.cs: Use cached objects instead of creating them
15859 * ThemeWin32Classic.cs: Use cached objects instead of creating them
15860 * TreeView.cs: Use cached objects instead of creating them
15862 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
15864 * Control.cs: use Equals to compare the font since no == op
15865 * ScrollBar.cs: use Equals to compare the font since no == op
15867 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
15869 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
15871 2005-04-01 Jackson Harper <jackson@ximian.com>
15873 * Binding.cs: Implement IsBinding.
15874 * BindingManagerBase.cs:
15875 * PropertyManager.cs:
15876 * CurrencyManager.cs: Add IsSuspended property.
15878 2005-04-01 Jackson Harper <jackson@ximian.com>
15880 * Binding.cs: Had some IsAssignableFrom calls backwards.
15882 2005-04-01 Jackson Harper <jackson@ximian.com>
15884 * Binding.cs: Handle null data members when pulling data.
15885 * PropertyManager.cs: Handle the data member being a property that
15888 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15890 * DataGridTextBoxColumn.cs: fixes signature
15891 * DataGrid.cs: calls right constructor
15893 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15895 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
15896 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
15897 * GridTableStylesCollection.cs: implements GridTableStylesCollection
15898 * DataGridTableStyle.cs: implements DataGridTableStyle
15899 * DataGridBoolColumn.cs: implements DataGridBoolColumn
15900 * DataGridTextBox.cs: implements DataGridTextBox
15901 * DataGridColumnStyle.cs: implements DataGridColumnStyle
15903 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
15905 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
15907 2005-03-29 Peter Bartok <pbartok@novell.com>
15910 - Properly implemented CompanyName property
15911 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
15912 returns a path that includes CompanyName, ProductName and
15913 Version (fixes bug #70330)
15915 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
15917 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
15920 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
15922 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
15924 - Added ReadOnly CheckBox
15925 - Further refactoring: moved some code from Open-/SaveFileDialog
15928 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
15930 * OpenFileDialog.cs: Fixed CheckFileExists
15932 Moved FileView and DirComboBox outside FileDialog class.
15933 They can now be used outside FileDialog
15935 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
15937 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
15938 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
15940 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
15942 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
15943 - Added missing CreatePrompt property in SaveDialog
15944 - Overall SaveDialog handling should be better now
15945 - Added non standard ShowHiddenFiles property
15946 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
15947 - Added InitialDirectory and RestoreDirectory support
15949 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
15951 * FileDialog.cs: Made dirComboBox usable
15953 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
15955 * FileDialog.cs: Added Filter support (case sensitiv)
15957 2005-03-24 Jackson Harper <jackson@ximian.com>
15959 * TabControl.cs: Need a couple more pixels for the lines.
15961 2005-03-23 Jackson Harper <jackson@ximian.com>
15963 * TabControl.cs: Give the tab page focus when it is selected.
15965 2005-03-23 Jackson Harper <jackson@ximian.com>
15967 * TabControl.cs: Account for the drawing of tabs borders when
15968 invalidating. If the slider was clicked dont do click detection on
15971 2005-03-23 Jackson Harper <jackson@ximian.com>
15973 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
15975 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
15977 * CategoryGridEntry.cs: Added
15978 * GridItem.cs: Added helper properties
15979 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
15980 * GridEntry.cs: Updated code for collection
15981 * PropertyGrid.cs: Cleaned up some formatting
15982 * PropertyGridView.cs: Added drop down functionality for enums.
15983 * GridItemCollection.cs: Added enumerator logic
15984 * PropertyGridEntry.cs: Added
15986 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
15989 - Removed unnecessary commented code
15990 - Fixed handling for entering the filename manually in the combobox
15992 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
15994 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
15996 2005-03-18 Peter Bartok <pbartok@novell.com>
15998 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
15999 them being touching the border
16001 2005-03-18 Peter Bartok <pbartok@novell.com>
16003 * TextControl.cs: Quick hack to center text better
16005 2005-03-18 Peter Bartok <pbartok@novell.com>
16008 - Don't throw NotImplemented exceptions, just print a notice once
16009 instead (requested by Miguel). This makes running existing SWF
16012 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
16013 - Added context menu trigger on right click
16014 * Panel.cs: Trigger invalidate on resize
16016 - Removed old double-buffer drawing
16017 - Added ResizeRedraw style to force proper update of statusbar
16019 - Removed debug output
16020 * ThemeWin32Classic.cs:
16021 - Fixed drawing of status bar, now draws Text property if there
16022 are no defined panels
16024 2005-03-18 Jackson Harper <jackson@ximian.com>
16026 * ImageList.cs: When the image stream is set pull all the images
16028 * ImageListStreamer.cs: Implement reading image list streams.
16030 2005-03-18 Peter Bartok <pbartok@novell.com>
16032 * ThemeWin32Classic.cs (DrawPictureBox):
16033 - Fixed calculations for centered drawing
16034 - Fixed drawing for normal mode, not scaling the image on normal
16036 2005-03-18 Peter Bartok <pbartok@novell.com>
16038 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
16041 - Made Open/Save button the accept button for FileDialog
16042 - Tied the cancel button to the IButtonControl cancel button
16043 - Save/Open now properly builds the pathname
16044 - Now handles user-entered text
16045 - Preventing crash on right-click if no item is selected
16046 - Fixed Text property, now uses contents of textbox
16047 - Fixed SelectedText property, now just returns the text part that
16048 is selected in the text box
16050 2005-03-18 Jackson Harper <jackson@ximian.com>
16052 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
16053 rect, make sure to de-adjust the interior rect after drawing the
16056 2005-03-18 Peter Bartok <pbartok@novell.com>
16058 * MenuAPI.cs: Remove menu *before* executing selected action to
16059 prevent the menu from 'hanging around'
16061 2005-03-17 Geoff Norton <gnorton@customerdna.com>
16063 * XplatUIOSX.cs: Implemented WorkingArea property
16065 2005-03-17 Peter Bartok <pbartok@novell.com>
16067 * XplatUIX11.cs: Fixed menu coord calculations
16068 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
16069 for calculating offsets
16071 2005-03-17 Peter Bartok <pbartok@novell.com>
16073 * Hwnd.cs: Do not consider menu presence for default client
16074 rectangle location/size
16075 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
16076 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
16077 translation functions
16078 * FileDialog.cs: Fixed (what I presume is a) typo
16080 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
16082 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
16083 X access (avoids X-Async errors)
16085 2005-03-16 Jackson Harper <jackson@ximian.com>
16087 * TabControl.cs: Raise the SelectedIndexChanged event.
16089 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
16091 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
16092 - Removed vertical ToolBar and replaced it with a custom panel
16093 (desktop and home button already work)
16094 - Added Help button (some controls get resized or relocated then)
16095 - Draw correct text depending on Open or Save.
16096 - Fixed some typos...
16098 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
16101 - Only change Maximum and Minimum when need it (bug fix)
16103 2005-03-15 Peter Bartok <pbartok@novell.com>
16105 * Form.cs: Use Handle for icon, to trigger creation if
16106 the window does not yet exist
16108 - CanSelect: Slight performance improvement
16109 - Focus(): Preventing possible recursion
16110 - Invalidate(): Removed ControlStyle based clear flag setting
16111 - WM_PAINT: fixed logic for calling OnPaintBackground
16112 - WM_ERASEBKGND: Fixed logic, added call to new driver method
16113 EraseWindowBackground if the control doesn't paint background
16115 - Moved EraseWindowBackground() method to internal methods
16116 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
16117 is sent via SendMessage on BeginPaint call on Win32
16119 - Added EraseWindowBackground() method
16120 - No longer sends WM_ERASEBKGND on .Expose, but on call to
16121 PaintEventStart, which more closely matches Win32 behaviour
16122 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
16123 - Fixed SetFocus() to properly deal with client and whole windows
16124 * Hwnd.cs: Added ErasePending property
16125 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
16126 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
16128 2005-03-12 Geoff Norton <gnorton@customerdna.com>
16131 - Fix hard loop when timers exist.
16132 - Fix bugs with middle and right click for 3 button mice.
16134 2005-03-11 Peter Bartok <pbartok@novell.com>
16137 - get_WorkingArea: Need to call X directly, GetWindowPos only
16138 returns cached data now
16139 - Added sanity check to GetWindowPos hwnd usage
16141 2005-03-11 Jackson Harper <jackson@ximian.com>
16143 * BindingManagerBase.cs: This method isn't used anymore as
16144 PullData now updates the data in the control.
16146 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
16148 * Form.cs: fixes menu drawing on X11
16149 * MenuAPI.cs: fixes menu drawing on X11
16151 2005-03-11 Peter Bartok <pbartok@novell.com>
16153 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
16154 from Jonathan Gilbert; should fix bug #73606
16155 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
16156 in Screen coordinates. Thanks, Jordi.
16157 * Form.cs: Added missing attribute
16159 2005-03-11 Peter Bartok <pbartok@novell.com>
16162 - Rudimentary Mdi support
16163 - Removed outdated FormParent code
16164 - Implemented lots of missing properties and methods, still missing
16165 transparency support
16166 - Added missing attributes
16167 - Implemented support for MaximumBounds
16168 - Added firing of various events
16169 * XplatUI.cs: Added SetIcon() method
16170 * XplatUIDriver.cs: Added SetIcon() abstract
16171 * XplatUIOSX.cs: Stubbed out SetIcon() method
16173 - Implemented SetIcon() support
16174 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
16175 - Switched to unix line endings
16177 - Made POINT internal so for can access it as part of MINMAX
16178 - Implemented SetIcon() support
16179 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
16180 native Mdi support again, might have to go managed)
16181 * Control.cs: Now fires the StyleChanged event
16182 * MdiClient.cs: Added; still mostly empty
16184 2005-03-10 Peter Bartok <pbartok@novell.com>
16186 * SaveFileDialog.cs: Added emtpy file
16188 2005-03-08 Peter Bartok <pbartok@novell.com>
16190 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
16191 in turn triggers OnCreateContro) when creating a handle for the
16193 * TextControl.cs: Fixed endless loop in certain cases when
16194 replacing the current selection
16196 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
16199 - Honors NewValue changes in Scroll events allowing apps to change it
16200 - Adds First and Last Scroll events
16201 - Fixes Thumb events
16203 2005-03-07 Peter Bartok <pbartok@novell.com>
16205 * Hwnd.cs: Added DefaultClientRectangle property
16206 * XplatUI.cs: Now using the X11 driver Where() method, which provides
16207 more detailed debug information
16209 - Fixed size-change feedback loop, where we would pull an old size
16210 off the queue and mistakenly change our window's size to an
16212 - Now compressing ConfigureNotify events, to reduce looping and
16214 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
16217 2005-03-07 Jackson Harper <jackson@ximian.com>
16219 * Binding.cs: Push data pushes from data -> property. Check if the
16220 property is readonly when attempting to set it.
16222 2005-03-07 Jackson Harper <jackson@ximian.com>
16224 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
16225 instead of IsSubclassOf. Pulling data now sets the value on the
16227 * PropertyManager.cs:
16228 * CurrencyManager.cs: Just need to pull data when updating now,
16229 because PullData will set the value on the control.
16231 2005-03-04 Jackson Harper <jackson@ximian.com>
16233 * Binding.cs: Implement data type parsing and converting on pulled
16234 data. TODO: Are there more ways the data can be converted?
16236 2005-03-04 Jackson Harper <jackson@ximian.com>
16238 * Binding.cs: Support <Property>IsNull checks. Also bind to the
16239 controls Validating method so we can repull the data when the
16240 control loses focus.
16242 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
16245 - Fixes null string format
16248 - Adds enum type checks
16249 - Fixes redrawing and recalc need after changing some properties
16250 - Fixes on focus_item set after the event
16251 - Fixes adding columns after the control has been created
16253 * ThemeWin32Classic.cs:
16254 - Fixes CheckBox focus rectangle
16255 - Fixes ColumnHeader drawing
16258 2005-03-03 Jackson Harper <jackson@ximian.com>
16260 * Binding.cs: Bind to <Property>Changed events so we can detect
16261 when properties are changed and update the data.
16263 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
16266 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
16267 - Fixes ImageList constructor with ImageList container
16268 - Fixes image scaling (wrong parameters at DrawImage)
16270 2005-02-02 Jackson Harper <jackson@ximian.com>
16272 * Binding.cs: Make property searches case-insensitive. Eliminate
16273 some duplicated code.
16275 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
16278 - Handle focus event
16279 - Fix scrollbar events
16280 - Discard highlighted item if remove it
16281 - Fixes SelectedItem with strings
16283 2005-03-01 Peter Bartok <pbartok@novell.com>
16286 - Fixed Visible property, now follows (once again) parent chain
16287 to return false if any control in the chain is visible=false
16288 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
16289 - Fixed several places where is_visible instead of Visible was used
16290 - Implemented FIXME related to focus selection when setting focused
16291 control to be invisible
16293 * XplatUIWin32.cs: Now using proper method to find out if window is
16294 visible. Thanks to Jordi for pointing it out
16296 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
16298 * ComboBox.cs: show/hide scrollbar instead of creating it
16300 2005-02-27 Jackson Harper <jackson@ximian.com>
16302 * CurrencyManager.cs: Add PositionChanged stuff.
16304 2005-02-27 Peter Bartok <pbartok@novell.com>
16306 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
16307 * XplatUIOSX.cs: Added GetMenuOrigin() stub
16308 * XplatUIWin32.cs: Implemented GetMenuOrigin()
16310 - Implemented GetMenuDC()
16311 - Implemented GetMenuOrigin()
16312 - Implemented ReleaseMenuDC()
16313 - Implemented generation of WM_NCPAINT message
16314 - Implemented generation and handling of WM_NCCALCSIZE message
16315 * Form.cs: Added debug helper message for Jordi's menu work
16317 - Modified ClientRect property; added setter, fixed getter to handle
16318 setting of ClientRect
16319 - Added MenuOrigin property
16321 2005-02-26 Peter Bartok <pbartok@novell.com>
16324 - Destroys the caret if a window that's being destroyed contains it
16325 - Ignores expose events coming from the X11 queue for windows that
16326 already are destroyed
16327 - Now uses the proper variable for handling DestroyNotify, before we
16328 marked the wrong window as destroyed
16329 - Improved/added some debug output
16331 2005-02-26 Peter Bartok <pbartok@novell.com>
16333 * X11Keyboard.cs: Fixes to work on 64bit systems
16335 2005-02-26 Peter Bartok <pbartok@novell.com>
16338 - Now calling OnHandleDestroyed from DestroyHandle()
16339 instead of Dispose()
16340 - Removed bogus call to controls.Remove() from DestroyHandle()
16342 2005-02-26 Peter Bartok <pbartok@novell.com>
16344 * Control.cs: Properly destroy child windows when our handle is
16347 2005-02-25 Peter Bartok <pbartok@novell.com>
16350 - Added 'DriverDebug' define to allow tracing XplatUI API calls
16351 - Alphabetized Static Methods and Subclasses
16354 - Added XException class to allow custom handling of X11 exceptions
16355 - Created custom X11 error handler, tied into XException class
16356 - Added support for MONO_XEXCEPTIONS env var to allow the user
16357 to either throw an exception on X errors or continue running
16358 after displaying the error
16359 - Added handling of DestroyNotify message
16360 - Added handler for CreateNotify message (still disabled)
16361 - Improved (tried to at least) Where method to provide file and lineno
16363 - Added XErrorHandler delegate
16364 - Added XRequest enumeration (to suppor translation of errors)
16366 2005-02-25 Jackson Harper <jackson@ximian.com>
16368 * PropertyManager.cs: Implement editing features
16369 * CurrencyManager.cs:
16370 * Binding.cs: First attempt at UpdateIsBinding
16371 * BindingManagerBase.cs: Call UpdateIsBinding before
16372 pushing/pulling data.
16374 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
16376 * MenuAPI.cs: Respect disabled items
16377 * ThemeWin32Classic.cs
16378 - Caches ImageAttributes creation for DrawImageDisabled
16379 - Fixes vertical menu line drawing
16380 - Draws disabled arrows in disable menu items
16382 2005-02-24 Peter Bartok <pbartok@novell.com>
16385 - Added UserData property to allow associating arbitrary objects
16387 - Fixed leak; now removing Hwnd references from static windows array
16389 - Fixed Graphics leak in PaintEventEnd
16390 - Removed usage of HandleData, switched over to Hwnd class
16391 * HandleData.cs: Removed, obsoleted by Hwnd.cs
16393 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16395 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
16396 * ScrollBar.cs: Fixes bug
16397 * TrackBar.cs: removes death code, clipping, mimize refreshes,
16398 keyboard navigation enhancements
16400 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16402 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
16403 * GroupBox.cs: Add control styles
16404 * Label.cs: Add control styles
16405 * UpDownBase.cs: Add control styles
16406 * ListBox.cs: Add control styles
16407 * XplatUIWin32.cs: Fixes wrong parameter order
16410 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
16412 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
16414 2005-02-23 Jackson Harper <jackson@ximian.com>
16416 * PropertyManager.cs: Implement property binding. This doesn't
16417 seem to work yet though as (I think) there are some bugs in
16418 System.ComponentModel.PropertyDescriptor.
16419 * BindingContext.cs: Use new PropertyManager constructor.
16421 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
16423 * ProgressBar.cs: use clip region in ProgressBar
16424 * ThemeWin32Classic.cs: use clip region in ProgressBar
16426 2004-02-22 Jackson Harper <jackson@ximian.com>
16428 * BindingsCollection.cs: Remove some debug code.
16430 2005-02-22 Jackson Harper <jackson@ximian.com>
16432 * BindingContext.cs:
16433 * ControlBindingsCollection.cs:
16434 * CurrencyManager.cs:
16436 * BindingManagerBase.cs: Initial implementation
16437 * BindingsCollection.cs: Add an internal contains method that the
16438 BindingManagerBase uses to ensure bindings aren't added twice to
16440 * PropertyManager.cs: Stubbed out.
16442 * ContainerControl.cs: Hook up databinding
16444 2005-02-22 Geoff Norton <gnorton@customerdna.com>
16447 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
16448 Fixed Invalidate/Update chain.
16449 Fixed tons of other minor bugs (this is almost a complete rewrite).
16451 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
16453 * ComboBox.cs: do subcontrol creation when the control is created
16455 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16457 * Label.cs: fixes image drawing (image and imagelist)
16458 * ThemeWin32Classic.cs: cache brushes
16460 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16462 * Form.cs: Move menu drawing code to Theme class
16463 * ComboBox.cs: Move ComboBox drawing code to Theme class
16464 * MenuItem.cs: Move menu drawing code to Theme class
16465 * MenuAPI.cs: Move menu drawing code to Theme class
16466 * ThemeWin32Classic.cs: New methods
16467 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
16468 * ListBox.cs: Move Listbox drawing code to Theme class
16469 * Theme.cs: New methods
16471 2005-02-20 Peter Bartok <pbartok@novell.com>
16474 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
16475 only process mnemonics on those)
16476 - Fixed event sequence for key handling; first calling
16477 ProcessKeyEventArgs now
16479 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
16480 for processing non-character keys
16481 - Fixed WM_CHAR to generate proper event sequence before processing
16482 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
16485 2005-02-19 Peter Bartok <pbartok@novell.com>
16487 * UserControl.cs: Added TextChanged event; added attributes
16488 * SizeGrip.cs: Implemented resizing and optional display of grip
16489 * Form.cs: Fixed attribute
16490 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16491 Changed meaning of ScrollWindow bool argument; instead of the
16492 clear attribute (which will be true usually anyway), it gives the
16493 option of moving child controls as well.
16495 - Changed to match new ScrollWindow argument
16496 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
16497 now handles the implicit parent window a WM puts around us
16498 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
16500 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
16501 * TreeView.cs: Adjusted to new ScrollWindow arguments
16503 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16505 * Form.cs: Menu integration with non-client area
16506 * MenuItem.cs: Menu integration with non-client area
16507 * MenuAPI.cs: Menu integration with non-client area
16509 2005-02-18 Peter Bartok <pbartok@novell.com>
16511 * MethodInvoker.cs: Added
16512 * MdiLayout.cs: Added
16513 * SendKeys.cs: Started implementation
16514 * ErrorIconAlignment.cs: Added
16516 2005-02-18 Peter Bartok <pbartok@novell.com>
16518 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
16519 * Form.cs: Added handling for Menu-related Non-client messages
16521 2005-02-17 Peter Bartok <pbartok@novell.com>
16523 * UpDownBase.cs: Fixed typo, compilation errors
16524 * DomainUpDown.cs: Fixed attribute value
16526 2005-02-16 Miguel de Icaza <miguel@novell.com>
16528 * UpDownBase.cs: Attach entry events.
16530 Add ForeColor property, Focused, InterceptArrowKeys (interception
16531 does not work yet).
16533 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
16536 - Redraw non client are on Setmenu
16537 - Calc proper menu starting point
16539 2005-02-17 Peter Bartok <pbartok@novell.com>
16541 * Application.cs: Fixed message_filter check
16543 2005-02-17 Peter Bartok <pbartok@novell.com>
16545 * Application.cs: Now calls registered message filters
16546 * DockStyle.cs: Fixed attribute
16547 * Form.cs: Fixed attribute
16548 * Menu.cs: Fixed attribute
16549 * ToolTip.cs: Fixed attribute
16550 * TreeNode.cs: Added missing attributes and arranged in regions
16551 * PropertyGrid.cs: Fixed signatures
16552 * TreeNodeCollection.cs: Added attributes
16553 * Splitter.cs: Added missing attributes; arranged into regions
16554 * TabPage.cs: Added missing attributes; arranged into regions
16555 * TextBoxBase.cs: Added missing attributes
16556 * TextBox.cs: Added missing attributes
16557 * ArrangeDirection.cs: Added missing attributes
16558 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
16559 * ToolBarButton.cs: Fixed attributes
16560 * AnchorStyles.cs: Fixed attribute
16561 * TrackBar.cs: Fixed attributes
16562 * TabControl.cs: Added missing attributes and arranged into regions
16563 * ToolBar.cs: Fixed attribute
16564 * StatusBar.cs: Fixed signature, organized into regions and added
16566 * StatusBarPanel.cs: Fixed attributes
16567 * ContentsResizedEventArgs.cs: Implemented
16568 * ContentsResizedEventHandler.cs: Implemented
16569 * DateBoldEventArgs.cs: Implemented
16570 * DateBoldEventHandler.cs: Implemented
16571 * UpDownEventArgs.cs: Implemented
16572 * UpDownEventHandler.cs: Implemented
16574 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
16576 * Form.cs: first Menu NC refactoring
16577 * MenuAPI.cs: first Menu NC refactoring
16579 2005-02-16 Peter Bartok <pbartok@novell.com>
16581 * ImeMode.cs: Added missing attributes
16582 * Menu.cs: Fixed attribute
16583 * GroupBox.cs: Fixed attribute
16584 * Label.cs: Fixed attribute
16585 * ColorDialog.cs (RunDialog): Removed TODO attribute
16586 * ComboBox.cs: Fixed attributes
16587 * ListControl.cs: Added missing attributes
16588 * PropertyGrid.cs: Fixed attributes
16589 * Control.cs: Fixed attributes
16590 * ListViewItem.cs: Added TypeConverter attribute
16591 * NotifyIcon.cs: Fixed attributes
16592 * ListView.cs: Fixed attributes
16593 * ButtonBase.cs: Fixed attribute
16594 * ImageList.cs: Added missing attributes
16595 * ContainerControl.cs: Fixed signature
16596 * CheckedListBox.cs: Fixed attribute; added missing attributes
16597 * Panel.cs: Fixed attributes
16598 * PropertyTabChangedEventArgs.cs: Added missing attribute
16599 * PropertyValueChangedEventArgs.cs: Added missing attribute
16600 * Binding.cs: Fixed attribute
16601 * ListViewItemConverter: Implemented ListViewSubItemConverter class
16602 * ListBox.cs: Fixed attribute; added missing attributes;
16603 * ScrollableControl.cs: Added missing attributes
16604 * PictureBox.cs: Added missing attributes; implemented missing property
16605 * DateTimePicker.cs: Added missing attributes
16606 * Theme.cs (ToolWindowCaptionHeight): Fixed type
16607 * MonthCalendar.cs: Fixed attributes
16608 * StatusBarPanel.cs: Added missing attributes
16609 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
16611 2005-02-16 Peter Bartok <pbartok@novell.com>
16613 * TextBoxBase.cs: The previous method to enforce height yet remember
16614 the requested high was less than ideal, this is an attempt to do
16616 * Control.cs: Added comment about possible problem
16617 * Copyright: Updated format
16618 * GridItemType.cs: Fixed swapped values
16620 2005-02-15 Jackson Harper <jackson@ximian.com>
16622 * BaseCollection.cs: Use property so we never access an
16623 uninitialized list. Also initialize the list in the property.
16625 2005-02-15 Peter Bartok <pbartok@novell.com>
16627 * GroupBox.cs (ProcessMnemonic): Implemented
16628 * Label.cs (ProcessMnemonic): Implemented
16629 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
16632 2005-02-15 Peter Bartok <pbartok@novell.com>
16634 * RadioButton.cs (ProcessMnemonic): Implemented
16635 * CheckBox.cs (ProcessMnemonic): Implemented
16637 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
16639 - Added internal method to allow calling ProcessMnemonic from other
16641 * ContainerControl.cs:
16642 - Started support for handling validation chain handling
16643 - Implemented ProcessMnemonic support
16644 - Added Select() call to Active, to make sure the active control
16646 * Form.cs: Setting toplevel flag for Forms (this was lost in the
16647 FormParent rewrite)
16648 * ThemeWin32Classic.cs:
16649 - DrawCheckBox(): Fixed stringformat to show hotkeys
16650 - DrawRadioButton(): Fixed stringformat to show hotkeys
16651 * CommonDialog.cs: Removed WndProc override, not needed
16653 2005-02-14 Peter Bartok <pbartok@novell.com>
16655 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
16656 missed those in the rewrite
16658 2005-02-14 Miguel de Icaza <miguel@novell.com>
16660 * NumericUpDown.cs (Increment, ToString): Add.
16661 (DecimalPlaces): implement.
16665 * UpDownBase.cs: Add the designer attributes.
16667 2005-02-13 Peter Bartok <pbartok@novell.com>
16669 * Panel.cs: Removed border_style, now in Control
16670 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
16671 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
16673 2005-02-13 Peter Bartok <pbartok@novell.com>
16675 * MouseButtons.cs: Added missing attributes
16676 * XplatUIStructs.cs: Added enumeration for title styles
16677 * LeftRightAlignment.cs: Added missing attributes
16678 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
16679 it compatible with Graphics.FromHwnd()
16680 * SelectedGridItemChangedEventArgs.cs: Fixed property type
16681 * Keys.cs: Added missing attributes
16682 * SelectionRange.cs: Added missing attributes
16683 * SelectionRangeConverter.cs: Added
16685 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
16686 ReleaseMenuDC methods
16687 - Renamed ReleaseWindow to UngrabWindow
16688 - Added proper startup notice to allow version identification
16690 - Added missing attributes
16691 - Removed FormParent concept
16692 * Label.cs: Removed border_style field, now in Control
16693 * RadioButton.cs: Now properly selects RadioButton when focus is
16695 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
16697 - Added missing attributes
16698 - Added borderstyle handling
16699 - Removed FormParent concept support
16700 - Fixed calls to XplatUI to match changed APIs
16701 - Fixed bug that would case us to use disposed Graphics objects
16702 - Removed unneeded internal methods
16703 - PerformLayout(): Fixed to handle DockStyle.Fill properly
16704 - SelectNextControl(): Fixed to properly check common parents
16705 * TextBoxBase.cs: Removed border_style field (now in Control)
16707 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
16708 fixed calculations for form size
16709 - Added support for localized strings and icons
16710 - Improved form size calculations, added border
16711 * ListView.cs: Removed border_style field (now in Control)
16712 * X11Structs.cs: Moved several structs from X11 driver here
16713 * X11Keyboard.cs: Changed debug message
16714 * Application.cs: Removed FormParent concept support
16716 - Resetting end_modal flag
16717 - Removed FormParent concept support
16718 * NativeWindow.cs: Removed FormParent concept support
16719 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
16720 Client area and Non-Client whole window to allow support for WM_NC
16722 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
16723 prevent using it until it supports Hwnd as per Geoff Norton's request
16724 * ToolBar.cs: Fixed drawing, was not doing proper drawing
16725 * PictureBox.cs: Removed border_style field, now in Control
16726 * XplatUIWin32.cs: Added new driver methods
16728 2005-02-12 Peter Bartok <pbartok@novell.com>
16730 * OpacityConverter.cs: Implemented
16731 * Hwnd.cs: Internal class to support drivers that need to emulate
16732 client area/non-client area window behaviour
16734 2005-02-11 Peter Bartok <pbartok@novell.com>
16736 * KeysConverter.cs: Implemented
16738 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
16740 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
16741 * LinkLabel: Added missing attributes
16742 * MainMenu.cs: fixes ToString
16743 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
16744 * ListBox.cs: fixes event position
16745 * TrackBar.cs: adds missing attributes and events
16747 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
16749 * MenuItem.cs: Use SystemInformation and bug fixes
16750 * MenuAPI.cs: Use SystemInformation and bug fixes
16752 2005-02-09 Jackson Harper <jackson@ximian.com>
16754 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
16755 their keystate otherwise things like VK_MENU get stuck "on".
16757 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
16759 * ListBox.cs: Fixes AddRange bug
16761 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
16764 - Add missing attributes
16765 - Add missing method
16767 * CheckedListBox.cs: Added missing attributes
16768 - Add missing attributes
16769 - Remove extra method
16771 * ComboBox.cs: Added missing attributes
16772 * VScrollBar.cs: Added missing attributes
16773 * ScrollBar.cs: Added missing attributes
16774 * ListBox.cs: Fixes signature, add missing consts
16775 * LinkArea.cs: Added missing attributes
16778 2005-02-08 Peter Bartok <pbartok@novell.com>
16780 * Menu.cs: Added missing attributes
16781 * MainMenu.cs: Added missing attributes
16782 * GroupBox.cs: Added missing attributes
16783 * Label.cs: Added missing attributes
16784 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
16786 - Added Instance and Options properties
16787 - Added missing attributes
16788 * Cursor.cs: Made Serializable
16789 * NotifyIcon: Added missing attributes
16790 * MenuItem.cs: Added missing attributes
16791 * TextBoxBase.cs: Implemented AppendText() and Select() methods
16792 * Panel.cs: Added Missing attributes
16793 * MonthCalendar.cs: Fixed CreateParams
16795 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16799 - Fixes issues with links
16800 - Adds the class attributes
16802 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16805 - Fixes button when no items available in dropdown
16806 - Fixes repainting problems
16807 - Adds the class attributes
16809 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16811 * XplatUIOSX.cs: Detect the menu bar and title bar height from
16812 the current theme. Cache these on startup.
16814 2005-02-07 Jackson Harper <jackson@ximian.com>
16816 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
16817 the scrollbar buttons when they are depressed.
16819 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16821 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
16822 Get the display size from the main displayid. We currently dont
16823 support multiple display configurations.
16825 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16827 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
16829 2005-02-07 Miguel de Icaza <miguel@novell.com>
16831 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
16833 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
16835 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
16837 2005-02-04 Jackson Harper <jackson@ximian.com>
16839 * ThemeWin32Classic.cs: Respect the clipping rect when
16840 drawing. Only fill the intersection of clips and rects so there
16841 isn't a lot of large fills.
16842 * ScrollBar.cs: Pass the correct clipping rect to the theme
16843 engine. Remove some debug code.
16845 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
16847 * DateTimePicker.cs:
16848 - Fixed crash on DateTime.Parse, use Constructor instead
16850 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16854 - Owner draw support (MeasureItem and DrawItem)
16856 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16859 - Implements FindMergePosition and MergeMenu functions (very poor documented)
16860 - Fixes MenuItems.Add range
16862 - MergeMenu and Clone and CloneMenu functions
16864 2005-02-03 Jackson Harper <jackson@ximian.com>
16866 * ScrollBar.cs: Make abstract
16867 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
16870 2005-02-03 Jackson Harper <jackson@ximian.com>
16872 * ScrollBar.cs: First part of my scrollbar fixups. This removes
16873 all the unneeded refreshes and uses invalidates with properly
16876 2005-02-03 Peter Bartok <pbartok@novell.com>
16878 * ComponentModel.cs: Added
16879 * IDataGridEditingService.cs: Added
16880 * Timer.cs: Added missing attributes
16881 * ToolTip.cs: Added missing attributes
16883 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
16885 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
16887 2005-02-03 Peter Bartok <pbartok@novell.com>
16889 * ListBox.cs: Added missing attributes
16891 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
16894 - Fixes font height after font change
16895 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
16897 2005-02-02 Peter Bartok <pbartok@novell.com>
16899 * HandleData.cs: Introduced static methods to allow class
16900 to be more self-contained and track it's own HandleData objects
16901 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
16902 HandleData to use new static methods
16904 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
16907 - Fixes default size and PreferredHeight
16909 - ObjectCollection.Insert implementation
16915 - ObjectCollection.Insert implementation
16916 - No selection after clean
16919 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
16921 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
16923 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
16926 - Caches ItemHeight calculation for OwnerDrawVariable
16927 - Handles dropdown properly
16928 - Fixes several minor bugs
16930 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
16933 - Fixes 71946 and 71950
16934 - Fixes changing Multicolumn on the fly
16935 - Fixes keyboard navigation on Multicolumn listboxes
16937 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16939 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
16940 crash reporter log.
16942 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16944 * XplatUIOSX.cs: Allow applications to actually exit.
16946 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16948 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
16949 their parent at creation time rather than lazily later. Fixes a major
16950 regression we were experiencing.
16952 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
16954 * ThemeWin32Classic.cs: more date time picker painting fixes
16955 * DateTimePicker.cs: more monthcalendar drop down fixes
16956 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
16958 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
16961 - When moving the thumb going outside the control should stop the moving
16962 - Adds the firing of missing events
16963 - Fixes no button show if Size is not specified
16964 - End / Home keys for keyboard navigation
16966 2005-01-30 Peter Bartok <pbartok@novell.com>
16968 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
16969 sanity check to prevent theoretical loop
16970 * XplatUIWin32.cs (SetVisible): Removed debug output
16971 * XplatUIX11.cs (SystrayChange): Added sanity check
16972 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
16973 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
16974 behaviour, valid until the X11 client window rewrite is done
16975 * TextBox.cs (ctor): Setting proper default foreground and background
16978 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
16980 * Theme: Added DrawDateTimePicker to interface
16981 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
16982 * DateTimePicker.cs: Created (still needs keys and painting code)
16983 * DateTimePickerFormat.cs: added
16984 * MonthCalendar.cs: fixed CreateParams for popup window mode
16986 2005-01-29 Peter Bartok <pbartok@novell.com>
16988 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
16989 this should also the calculations for ligher/darker
16990 * Theme.cs: Fixed defaults for ScrollBar widths/heights
16992 2005-01-29 Peter Bartok <pbartok@novell.com>
16994 * ArrangeDirection.cs: Added
16995 * ArrangeStartingPositon.cs: Added
16996 * SystemInformation.cs: Implemented
16997 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16998 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
16999 used by SystemInformation class
17000 * X11Strucs.cs: Added XSizeHints structure
17002 - Fixed CreateParams to make sure the menu window is always visible
17003 - TrackPopupMenu: Added check to make sure we don't draw the
17006 2005-01-29 Peter Bartok <pbartok@novell.com>
17008 * HandleData.cs: Added method for altering invalid area
17009 * TextBoxBase.cs: Implemented TextLength
17011 2005-01-28 Peter Bartok <pbartok@novell.com>
17013 * XplatUIX11.cs: Improvement over last patch, not sending
17014 the WM_PAINT directly anymore, instead we scroll any pending
17015 exposed areas and let the system pick out the WM_PAINT later
17017 2005-01-28 Peter Bartok <pbartok@novell.com>
17019 * SWF.csproj: Deleted, no longer used. Instead,
17020 Managed.Windows.Forms/SWF.csproj should be used
17021 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
17022 directly, to avoid a potential race condition with the next
17025 2005-01-28 Peter Bartok <pbartok@novell.com>
17027 * XplatUI.cs: Made class internal
17029 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
17031 * CheckedListBox.cs:
17034 - Missing methods and events
17036 2005-01-27 Peter Bartok <pbartok@novell.com>
17038 * Application.cs (Run): Don't use form if we don't have one
17040 2005-01-27 Peter Bartok <pbartok@novell.com>
17042 * TextBoxBase.cs (get_Lines): Fixed index off by one error
17044 2005-01-27 Peter Bartok <pbartok@novell.com>
17046 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
17047 * GridItem.cs: Added; Patch by Jonathan S. Chambers
17048 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
17049 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
17050 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
17051 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
17052 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17053 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17054 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17055 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17056 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17057 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17059 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
17062 - Draw focus on Simple Combobox
17063 - Fixes drawing issues
17066 2005-01-27 Peter Bartok <pbartok@novell.com>
17069 - Place window in default location, instead of hardcoded 0/0
17070 - Send initial LocationChanged event
17072 - UpdateBounds after creation to find out where the WM placed us
17073 - Make sure that if the ParentForm changes location the Form
17075 * XplatUIX11.cs: XGetGeometry will not return the coords relative
17076 to the root, but to whatever the WM placed around us.
17077 Translate to root coordinates before returning toplevel
17079 * XplatUIWin32.cs: Removed debug output
17080 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
17081 flag to GetWindowPos, to allow translation of coordinates on X11
17083 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
17085 * ListBox.cs: connect LostFocus Event
17087 2005-01-27 Peter Bartok <pbartok@novell.com>
17089 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17090 XplatUIX11.cs: Extended the Systray API
17091 * Form.cs: Removed debug output
17092 * Application.cs: Fixed focus assignment, always need to call
17093 XplatUI.Activate() since Form.Activate() has rules that may
17095 * NotifyIcon.cs: Should be complete now
17096 * ToolTip.cs: Worked around possible timer bug
17098 2005-01-27 Jackson Harper <jackson@ximian.com>
17101 - Only invalidate the effected tabs when the
17102 selected index changes. This reduces drawing and gets rid of some
17104 - Only refresh if the tabs need to be shifted, otherwise only
17105 invalidate the slider button.
17106 - On windows the tabs are not filled to right if the slider is
17109 2005-01-27 Jackson Harper <jackson@ximian.com>
17111 * TabControl.cs: Only refresh on mouseup if we are showing the
17112 slider. Also only invalidate the button whose state has changed.
17114 2005-01-26 Peter Bartok <pbartok@novell.com>
17116 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
17117 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
17118 and SystrayRemove() methods
17119 * XplatUIOSX.cs: Stubbed Systray methods
17121 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
17123 - Fixed broken XChangeProperty calls (marshalling messed up things)
17124 * X11Structs.cs: Added enums and structs required for Size hinting
17125 * NotifyIcon.cs: Added & implemented
17127 2005-01-26 Jackson Harper <jackson@ximian.com>
17129 * TabControl.cs: Space vertically layed out tabs properly.
17131 2005-01-26 Peter Bartok <pbartok@novell.com>
17133 * Form.cs (CreateClientParams): Always set the location to 0,0
17134 since we're a child window.
17136 * Control.cs (SetVisibleCore): Always explicitly setting the location
17137 of a toplevel window, apparently X11 doesn't like to move windows
17138 while they're not mapped.
17140 2005-01-26 Jackson Harper <jackson@ximian.com>
17142 * TabControl.cs: Implement FillToRight size mode with vertically
17145 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
17147 * ControlPaint.cs, ThemeWin32Classic.cs
17148 - Fixes DrawFocusRectangle
17150 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
17153 - MenuBar tracking only starts when item is first clicked
17154 - Fixes menu hidding for multiple subitems
17155 - Unselect item in MenuBar when item Executed
17158 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
17161 - IsInputKey for ListBox
17164 - Shift and Control item selection
17165 - Implement SelectionMode.MultiExtended
17166 - Fixes RightToLeft
17168 - IsInputKey implemented
17169 - Do not generate OnTextChangedEdit on internal txt changes
17171 2005-01-23 Peter Bartok <pbartok@novell.com>
17173 * AccessibleObject.cs: Partially implemented Select()
17174 * MonthCalendar.cs: Added missing attributes and events
17175 * Form.cs: Fixed CreateParams behaviour, now controls derived from
17176 form can properly override CreateParams.
17177 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17178 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
17179 Control performs Invalidate & Update
17180 * NativeWindow (CreateHandle): Added special handling for Form
17181 and Form.FormParent classes to allow overriding of From.CreateParams
17183 - ControlNativeWindow: Renamed 'control' variable to more intuitive
17185 - ControlNativeWindow: Added Owner property
17186 - Removed usage of Refresh() on property changes, changed into
17187 Invalidate(), we need to wait until the queue is processed for
17188 updates, direct calls might cause problems if not all vars for
17189 Paint are initialized
17190 - Added call to UpdateStyles() when creating the window, to set any
17191 styles that CreateWindow might have ignored.
17192 - Added support for Form CreateParent overrides to UpdateStyles()
17193 * MessageBox.cs: Removed no longer needed FormParent override stuff,
17194 CreateParams are now properly overridable
17195 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
17196 CreateParams are now properly overridable
17198 2005-01-23 Miguel de Icaza <miguel@ximian.com>
17200 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
17203 Capture LostFocus and OnTextBoxChanged. The later introduces a
17204 recursive invocation that I have not figured out yet.
17206 Reset the timer when not using (it was accumulating).
17209 (OnTextBoxChanged): Set UserEdit to true here to track whether the
17210 user has made changes that require validation.
17212 Reset changing to avoid loops.
17214 2005-01-22 Miguel de Icaza <miguel@ximian.com>
17216 * NumericUpDown.cs: Display value at startup.
17218 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
17221 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
17222 filled in. Added some basic parsing of text.
17224 Still missing the OnXXX method overrides, and figuring out the
17225 events that must be emitted.
17227 * UpDownBase.cs: Handle UserEdit on the Text property.
17229 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
17232 - Fixes IntegralHeight
17235 2005-01-21 Jackson Harper <jackson@ximian.com>
17237 * TabControl.cs: Set the SelectedIndex property when SelectedTab
17238 is set so that the page visibility is updated and the tabs are
17241 2005-01-21 Jackson Harper <jackson@ximian.com>
17243 * TabControl.cs: Use cliping rectangle for blitting. Give the
17244 theme the clipping rect so we can do clipping while
17245 drawing. Remove some debug code.
17247 2005-01-21 Jackson Harper <jackson@ximian.com>
17249 * TabPage.cs: Add a new method so tab pages can force the tab
17250 control to recalculate the tab page sizes.
17251 * TabControl.cs: UpdateOwner needs to make the tab control recalc
17254 2005-01-20 Jackson Harper <jackson@ximian.com>
17256 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
17258 2005-01-20 Jackson Harper <jackson@ximian.com>
17260 * TreeView.cs: Set the bounds for nodes properly. They were
17261 getting screwed up when checkboxes were not enabled, but images
17264 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
17267 - Owner draw support
17270 2005-01-20 Jackson Harper <jackson@ximian.com>
17272 * XplatUIStructs.cs: More misc keys
17273 * X11Keyboard.cs: Ignore some control keys.
17275 2005-01-20 Jackson Harper <jackson@ximian.com>
17277 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
17278 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
17280 2005-01-19 Peter Bartok <pbartok@novell.com>
17282 * Control.cs: Un-selecting the control when it is loosing focus
17284 2005-01-19 Jackson Harper <jackson@ximian.com>
17286 * TreeView.cs: Hook up to the text controls leave event so we can
17287 end editing when the users clicks outside the text box.
17289 2005-01-19 Jackson Harper <jackson@ximian.com>
17291 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
17292 get set in the conversion array.
17294 2005-01-19 Peter Bartok <pbartok@novell.com>
17296 * Application.cs (ModalRun): Added a call to CreateControl to ensure
17297 focus is properly set
17299 - Added missing attributes
17300 - removed styles, those are already set in the base class
17302 - Added missing attributes
17303 - Added clip window styles
17304 * CheckBox.cs: Added missing attributes
17306 - FormParentWindow.CreateParams: Added required clip styles
17307 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
17308 also filters modifier keys
17310 - Added assignment of Accept and Cancel button to enable Enter
17311 and Esc keys in MessageBox dialogs
17312 - FormParentWindow.CreateParams: Added required clip styles
17313 * RadioButton.cs: Added missing attributes
17314 * TextControl.cs: No longer draws selection if control does not
17317 - Now draws simple rectangle around test area to make it obvious
17318 there's a control. This is a hack until we properly support borders
17319 - A few simple fixes to support selections better, now erases selected
17320 text when typing, and resets selection when using movement keys
17322 2005-01-19 Miguel de Icaza <miguel@ximian.com>
17324 * UpDownBase.cs: Added some new properties.
17326 * DomainUpDown.cs: Implement a lot to get my test working.
17328 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17330 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
17332 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17334 * OSXStructs (WindowAttributes): Fixed csc complaints
17336 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17339 OSXStructs.cs: Initial refactor to move enums and consts into
17340 OSXStructs and use them in the driver for greater readability.
17342 2005-01-19 Geoff Norton <gnorton@customerdna.com>
17344 * XplatUIOSX.cs: Initial support for Standard Cursors.
17345 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
17347 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
17349 * ComboBox.cs: ability to change style when the ctrl is already
17350 created, missing methods and events, bug fixes, signature fixes
17352 2005-01-19 Peter Bartok <pbartok@novell.com>
17354 * Cursors.cs (ctor): Added ctor to fix signature
17356 2005-01-18 Peter Bartok <pbartok@novell.com>
17358 * Button.cs: Implemented DoubleClick event
17360 - Fixed keyboard handling to behave like MS, where the press of
17361 Spacebar is equivalent to a mousedown, and the key release is
17362 equivalent to mouseup. Now a spacebar push will give the same
17363 visual feedback like a mouse click.
17364 - Added missing attributes
17365 - Added ImeModeChanged event
17366 - Added support for generating DoubleClick event for derived classes
17368 - Implemented DoubleClick event
17369 - Added missing attributes
17370 * CommonDialog.cs: Added missing attribute
17371 * ContextMenu.cs: Added missing attributes
17373 - AutoChecked buttons do not allow to be unselected when clicked
17374 (otherwise we might end up with no selected buttons in a group)
17375 - Added missing attributes
17376 - Implemented DoubleClickEvent
17377 * ThreadExceptionDialog.cs: Enabled TextBox code
17379 2005-01-18 Peter Bartok <pbartok@novell.com>
17381 * Form.cs: Removed debug output
17382 * Button.cs: Added support for DoubleClick method
17384 2005-01-18 Peter Bartok <pbartok@novell.com>
17387 - Added method to parent window that allows triggering size
17388 calculations when a menu is added/removed
17389 - set_Menu: Cleaned up mess from early days of Form and Control,
17390 now properly triggers a recalc when a menu is added/removed
17391 - Added case to select form itself as focused form if no child
17393 - Added PerformLayout call when showing dialog, to ensure properly
17396 - Select(): Made internal so Form can access it
17397 - Focus(): Only call Xplat layer if required (avoids loop), and sets
17399 * Application.cs (Run): Removed hack and calls PerformLayout instead
17400 to trigger calculation when Form becomes visible
17402 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
17404 * ComboBox.cs: fixes for ownerdraw
17406 2005-01-18 Peter Bartok <pbartok@novell.com>
17409 - Sentinel is no longer static, each Document gets it's own, this
17410 avoids locking or alternatively overwrite problems when more
17411 than one text control is used simultaneously.
17412 - Switched to use Hilight and HilightText brushes for text selection
17414 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
17416 2005-01-18 Peter Bartok <pbartok@novell.com>
17419 - Hooked up the following events:
17427 o SystemColorsChanged
17428 o ParentFontChanged
17430 - Removed debug output
17431 - Added a call to the current theme's ResetDefaults when a color change
17433 * Form.cs: Now setting the proper ImeMode
17434 * Theme.cs: Defined a method to force recreation of cached resources
17435 and rereading of system defaults (ResetDefaults())
17436 * ThemeWin32Classic.cs: Added ResetDefaults() stub
17438 2005-01-17 Peter Bartok <pbartok@novell.com>
17440 * Control.cs: Added missing attributes
17442 2005-01-17 Jackson Harper <jackson@ximian.com>
17444 * TreeNode.cs: Implement editing. Add missing properties selected
17446 * TreeView.cs: Implement node editing. Also some fixes to use
17447 Invalidate (invalid area) instead of Refresh when selecting.
17449 2005-01-17 Peter Bartok <pbartok@novell.com>
17452 - Implemented InvokeGotFocus() method
17453 - Implemented InvokeLostFocus() method
17454 - Implemented InvokePaint() method
17455 - Implemented InvokePaintBackground() method
17456 - Implemented InvokeClick() method
17457 - Implemented FindForm() method
17458 - Implemented RectangleToClient() method
17459 - Implemented ClientToRectangle() method
17460 - Implemented ResetBackColor() method
17461 - Implemented ResetCursor() method
17462 - Implemented ResetFont() method
17463 - Implemented ResteForeColor() method
17464 - Implemented ResetImeMode() method
17465 - Implemented ResetLeftToRight() method
17466 - Implemented ResetText() method
17467 - Implemented Scale() methods
17468 - Implemented ScaleCore() method
17469 - Implemented Update() method
17470 - Removed unused variables
17471 - Stubbed AccessibilityNotifyClients and
17472 ControlAccessibleObject.NotifyClients() methods (dunno what to do
17474 - Now setting proper default for RightToLeft property
17475 - Fixed bug in SetClientSizeCore that would cause windows to get
17477 - Now sending Click/DoubleClick events
17478 - Now selecting controls when left mouse button is clicked on
17480 * AccessibleEvents.cs: Added
17481 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
17482 * XplatUIOSX.cs: Stubbed UpdateWindow() method
17483 * XplatUIWin32.cs: Implemented UpdateWindow() method
17484 * XplatUIX11.cs: Implemented UpdateWindow() method
17485 * Form.cs: Removed stray semicolon causing CS0162 warning
17486 * ThemeWin32Classic.cs: Fixed unused variable warnings
17487 * ScrollableControl.cs: Now calls base method for ScaleCore
17488 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
17489 style to avoid interference with internal click handler (which is
17490 different than standard Control click handling)
17492 - Now unchecks all sibling radio buttons when control is
17493 selected (Fixes #68756)
17494 - Removed internal tabstop variable, using the one inherited from
17497 2005-01-17 Jackson Harper <jackson@ximian.com>
17499 * NavigateEventArgs.cs: Fix base type.
17500 * LinkLabel.cs: Sig fix
17502 2005-01-17 Jackson Harper <jackson@ximian.com>
17504 * TreeView.cs: Only invalidate the effected nodes bounds when
17507 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17509 * XplatUIWin32.cs: fixes Win32 marshaling
17510 * XplatUIX11.cs: fixes method signature
17512 2005-01-17 Peter Bartok <pbartok@novell.com>
17514 * XplatUIX11.cs: Clean up resources when we no longer need them
17516 2005-01-17 Peter Bartok <pbartok@novell.com>
17518 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
17519 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
17520 and DestroyCursor() methods.
17521 * Cursor.cs: Partially implemented, now supports standard cursors;
17522 still contains some debug code
17523 * Cursors.cs: Implemented class
17525 - WndProc(): Added handling of WM_SETCURSOR message, setting the
17527 - Implemented Cursor property
17528 - Replaced break; with return; more straightforwar and possibly
17530 - Now properly setting the result for WM_HELP
17531 * X11Structs.cs: Added CursorFontShape enum
17532 * XplatUIStructs.cs:
17533 - Added StdCursor enum (to support DefineStdCursor() method)
17534 - Added HitTest enum (to support sending WM_SETCURSOR message)
17536 - Now sends the WM_SETCURSOR message
17537 - Implemented new cursor methods
17538 * XplatUIOSX.cs: Stubbed new cursor methods
17540 - Implemented new cursor methods
17541 - Added GetSystemMetrics function and associated enumeration
17543 2005-01-15 Peter Bartok <pbartok@novell.com>
17546 - WndProc(): Now handles EnableNotifyMessage
17547 - SelectNextControl(): Fixed bug where if no child or sibling
17548 controls exist we looped endlessly
17550 2005-01-14 Jackson Harper <jackson@ximian.com>
17552 * TreeView.cs: Recalculate the tab pages when a new one is added
17553 so that the proper bounding rects are created.
17555 2005-01-14 Jackson Harper <jackson@ximian.com>
17557 * TreeView.cs: Draw a gray box instead of a grip in the lower
17558 right hand corner when there are both horizontal and vertical
17561 2005-01-14 Jackson Harper <jackson@ximian.com>
17563 * Control.cs: When erasing backgrounds use FromHwnd instead of
17564 FromHdc when there is a NULL wparam. This occurs on the X driver.
17565 * XplatUIX11.cs: Set the wparam to NULL.
17567 2005-01-13 Jackson Harper <jackson@ximian.com>
17569 * PictureBox.cs: Implement missing methods (except ToString, need
17570 to test that on windows) and events. When visibility is changed we
17571 need to redraw the image because the buffers are killed. When size
17572 is changed refresh if the sizemode needs it.
17574 2005-01-13 Peter Bartok <pbartok@novell.com>
17576 * Control.cs (SelectNextControl): Was using wrong method to select
17579 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17581 * ComboBox.cs: fixes dropstyle
17583 2005-01-13 Peter Bartok <pbartok@novell.com>
17586 - Implemented Select() override
17587 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
17588 - Now sets keyboard focus on startup
17589 * Control.cs (SelectNextControl): Now properly handles directed=true
17591 - WndProc: Now passes tab key on to base if AcceptTabChar=false
17592 - Added (really bad) focus rectangle (mostly for testing)
17593 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
17594 to enforce redraw on focus changes
17595 * ContainerControl.cs:
17596 - Fixed detection of Shift-Tab key presses
17597 - Fixed traversal with arrow keys
17598 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
17599 gonna keep this or if it's complete yet
17601 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17603 * ComboBox.cs: missing properties, fixes
17605 2005-01-13 Peter Bartok <pbartok@novell.com>
17607 * Panel.cs (ctor): Setting Selectable window style to off
17608 * Splitter.cs (ctor): Setting Selectable window style to off
17609 * GroupBox.cs (ctor): Setting Selectable window style to off
17610 * Label.cs (ctor): Setting Selectable window style to off
17612 2005-01-12 Miguel de Icaza <miguel@ximian.com>
17614 * UpDownBase.cs (InitTimer): If the timer has been already
17615 created, enable it.
17617 Use a TextBox instead of a Label.
17619 2005-01-12 Jackson Harper <jackson@ximian.com>
17621 * TreeView.cs: Refresh the tree after sorting the nodes. Always
17622 draw the connecting node lines (when ShowLines is true).
17623 * TreeNode.cs: The nodes index can now be updated. This is used
17624 when a node collection is sorted.
17625 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
17626 insert or an existing unsorted node collection can be sorted.
17628 2005-01-12 Peter Bartok <pbartok@novell.com>
17630 * ContainerControl.cs: Implemented ProcessDialogKeys()
17632 2005-01-12 Peter Bartok <pbartok@novell.com>
17635 - Implemented SelectNextControl() method
17636 - Several focus related bug fixes
17637 - Fixed Docking calculations to match MS documentation and
17640 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
17642 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
17645 2005-01-12 Peter Bartok <pbartok@novell.com>
17648 - Fixed broken Contains() method
17649 - Implemented GetNextControl() method. Finally. This is the pre-
17650 requisite for focus handling.
17652 2005-01-12 Peter Bartok <pbartok@novell.com>
17654 * OSXStrucs.cs: Added
17656 2005-01-12 Peter Bartok <pbartok@novell.com>
17659 - Removed PeekMessageFlags
17660 - Implemented SetWindowStyle() method
17661 * XplatUIStructs.cs: Added PeekMessageFlags
17662 * X11Structs: Added missing border_width field to XWindowChanges struct
17664 - PeekMessage: Now throws exception if flags which are not yet
17665 supported are passed
17666 - Implemented SetWindowStyle() method
17667 - Fixed SetZOrder to handle AfterHwnd properly
17668 * XplatUI.cs: Added SetWindowStyle() method
17669 * XplatUIDriver.cs: Added SetWindowStyle() abstract
17671 - Implemented UpdateStyles() method
17672 - Implemented UpdateZOrder() method
17673 * XplatUIOSX.cs: Added SetWindowStyle() stub
17675 2005-01-12 Geoff Norton <gnorton@customerdna.com>
17677 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
17681 2005-01-11 Jackson Harper <jackson@ximian.com>
17683 * TreeView.cs: Still need to draw lines to siblings even if out of
17684 the current node is out of the clip.
17686 2005-01-11 Jackson Harper <jackson@ximian.com>
17688 * TreeView.cs: When setting the hbar/vbar/grip position use
17689 SetBounds so that perform layout is only called once. Also suspend
17690 and resume layout so layout is only done once for all controls.
17691 - Removed some debug fluff
17692 * SizeGrip.cs: Call base implmentation in overriding methods.
17693 - When visibility is changed the drawing buffers are killed so we
17696 2005-01-11 Jackson Harper <jackson@ximian.com>
17698 * TreeView.cs: Calculate the open node count while drawing. This
17699 saves us an entire tree traversal for every paint operation. Use
17700 a member var for the open node count so less vars are passed around.
17702 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
17704 * MonthCalendar.cs:
17705 - fixed selection to use mousemove, not mouse polling on timer
17706 * ThemeWin32Classic.cs
17707 - removed redundant unused variable "no_more_content"
17709 2005-01-11 Peter Bartok <pbartok@novell.com>
17711 * XplatUIX11.cs (DoEvents): Needs to return when no more events
17712 are pending, so it now calls PeekMessage instead of GetMessage;
17713 implemented a incomplete version of PeekMessage
17715 2005-01-11 Peter Bartok <pbartok@novell.com>
17717 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
17719 * TextBoxBase.cs: Added sending of TextChanged event
17721 2005-01-10 Jackson Harper <jackson@ximian.com>
17723 * TreeView.cs: Try not to draw outside the clipping rectangle on
17726 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
17728 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
17730 2005-01-10 Jackson Harper <jackson@ximian.com>
17733 - Implement fast scrolling. Now only the newly
17734 exposed nodes are drawn and the old image is moved using the
17735 XplatUI::ScrollWindow method.
17736 - Factor in height of nodes when calculating whether or not the
17737 node is in the clipping rect.
17739 2005-01-10 Jackson Harper <jackson@ximian.com>
17741 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
17743 2005-01-10 Peter Bartok <pbartok@novell.com>
17745 * Application.cs: Added temporary hack to resolve all our resize
17746 required issues on startup. This will get fixed properly at
17747 some point in the future
17749 2005-01-10 Jackson Harper <jackson@ximian.com>
17751 * SizeGrip.cs: New internal class that is used as a sizing
17752 grip control...hence the name.
17754 2005-01-10 Peter Bartok <pbartok@novell.com>
17756 * Control.cs: Implemented proper TabIndex handling, now assigning
17757 a tabindex when a control is added to a container
17758 * GroupBox.cs (ctor): Now sets the Container style bit, required
17759 for Control.GetNextControl()
17761 2005-01-09 Jackson Harper <jackson@ximian.com>
17763 * TextBoxBase.cs: Clear window when scrolling (fixes build).
17765 2005-01-09 Peter Bartok <pbartok@novell.com>
17767 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17768 XplatUIX11.cs: Added ability to control ScrollWindow expose and
17769 an overload for ScrollWindow to allow only scrolling a rectangle
17771 2005-01-09 Peter Bartok <pbartok@novell.com>
17774 - Implemented SetDesktopBounds method
17775 - Implemented SetDesktopLocation method
17777 2005-01-08 Jackson Harper <jackson@ximian.com>
17779 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
17780 the node count has changed, this removes to VScroll::Refresh calls
17783 2005-01-08 Geoff Norton <gnorton@customerdna.com>
17785 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
17787 2005-01-07 Jackson Harper <jackson@ximian.com>
17789 * TreeNode.cs: Just update the single node when it is
17790 checked. Don't refresh after toggling, the Expand/Collapse already
17792 * TreeView.cs: Respect clipping a little more when drawing. Try
17793 not to redraw things that don't need to be redrawn. Just hide the
17794 scrollbars when they are no longer needed instead of removing
17795 them, so they don't have to be created again and again.
17797 2005-01-07 Geoff Norton <gnorton@customerdna.com>
17799 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
17800 coordinates to window space to place the caret properly, FIXED.
17801 Implement GetWindowState & SetWindowState
17803 2005-01-06 Peter Bartok <pbartok@novell.com>
17806 - Implemented ClientSize property
17807 - Implemented DesktopBounds property
17808 - Implemented DesktopLocation property
17809 - Implemented IsRestrictedWindow property
17810 - Implemented Size property
17811 - Implemented TopLevel property
17812 - Implemented FormWindowState property
17814 - Implemented GetTopLevel() method
17815 - Implemented SetTopLevel() method
17816 * X11Structs.cs (Atom):
17817 - Added AnyPropertyType definition
17818 - Added MapState definiton and updated XWindowAttribute struct
17819 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
17820 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
17821 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
17823 - Implemented GetWindowState() and SetWindowState() methods
17824 - Fixed Win32GetWindowLong return type
17826 - Introduced central function for sending NET_WM messages
17827 - Implemented GetWindowState() and SetWindowState() methods
17828 * TextBoxBase.cs (set_Lines):
17829 - Now uses Foreground color for text added via Text property (Duh!)
17830 - Added code to remember programmatically requested size (fixes
17831 behaviour when Multiline is set after Size)
17832 - Added AutoSize logic
17834 2005-01-06 Jackson Harper <jackson@ximian.com>
17836 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
17838 2005-01-06 Jackson Harper <jackson@ximian.com>
17840 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
17841 set to less then 0.
17843 2005-01-06 Jackson Harper <jackson@ximian.com>
17845 * ScrollableControl.cs: Lazy init the scrollbars.
17847 2005-01-06 Jackson Harper <jackson@ximian.com>
17849 * Theme.cs: Speed up getting pens and solid brushes, by using
17850 their ARGB as a hash instead of tostring and not calling Contains.
17852 2005-01-06 Peter Bartok <pbartok@novell.com>
17855 - Implemented OnActivated and OnDeactivate event trigger
17856 - Implemented Activate() method
17857 - Fixed ShowDialog() to activate the form that was active before
17858 the dialog was shown
17860 - Added global active_window var that tracks the currently active
17862 - Now always grabs Property changes from the root window to always
17863 catch changes on the active window property
17864 - Added code to PropertyNotify handler to send Active/Inactive
17865 messages when state changes. This puts X11 and Win32 en par on
17866 WM_ACTIVATE notifications (except for double notifications when
17867 the user clicks away from our modal window to another one of our
17870 2005-01-05 Jackson Harper <jackson@ximian.com>
17872 * ImageList.cs: Implment ctor
17874 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17876 * XplatUIOSX.cs: Implement Activate/SetTopmost
17878 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17880 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
17882 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17884 * XplatUIOSX.cs: Implement GetActive/SetFocus.
17886 2005-01-05 Peter Bartok <pbartok@novell.com>
17888 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
17889 XplatUIOSX.cs: Added GetActive method to return the currently
17890 active window for the application (or null, if none is active)
17892 - Implemented ActiveForm
17893 - Commented out owner assignment for modal dialogs (causes problems
17894 on Win32, since the owner will be disabled)
17895 - Reworked some Active/Focus handling (still incomplete)
17896 * CommonDialog.cs: Commented out owner assignment for modal dialogs
17897 (causes problems on Win32, since the owner will be disabled)
17898 * IWin32Window: Added ComVisible attribute
17900 2005-01-05 Peter Bartok <pbartok@novell.com>
17902 * ToolTip.cs (WndProc): Enable setting focus now that we have the
17903 required XplatUI functions.
17905 2005-01-05 Peter Bartok <pbartok@novell.com>
17907 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
17908 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
17909 to implement focus and activation handling; still incomplete and
17912 2005-01-04 Peter Bartok <pbartok@novell.com>
17914 * TextBoxBase.cs: Changed access level for Document property to
17915 match switch to internal for TextControl
17917 2005-01-04 Peter Bartok <pbartok@novell.com>
17919 * AccessibleObject: Added ComVisible attribute
17921 2005-01-04 Jackson Harper <jackson@ximian.com>
17923 * X11Keyboard.cs: Remove unneeded var.
17925 2005-01-04 Jackson Harper <jackson@ximian.com>
17927 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
17929 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
17930 ClientMessage. This makes apps exit cleanly (more often).
17932 2005-01-04 Jackson Harper <jackson@ximian.com>
17934 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
17935 handling focus, return correct colors and fonts,
17936 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
17937 handle selection, horizontal scrolling, and mouse interaction.
17939 2005-01-04 Peter Bartok <pbartok@novell.com>
17941 * ICommandExecutor.cs: Added
17942 * IDataGridColumnStyleEditingNotificationService.cs: Added
17943 * IFeatureSupport.cs: Added
17944 * IFileReaderService.cs: Added
17945 * IDataObject.cs: Added ComVisible attribute
17946 * AmbientProperties.cs: Added
17947 * BaseCollection.cs: Added missing attributes
17948 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
17949 * BaseCollection.cs: Added missing attributes
17950 * Binding.cs: Added TypeConverter attribute
17951 * BindingContext.cs: Added DefaultEvent attribute
17952 * BindingsCollection.cs: Added DefaultEvent attribute
17953 * Button.cs: Added DefaultValue attribute
17954 * DragEventArgs.cs: Added ComVisible attribute
17955 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
17956 * KeyEventArgs.cs: Added ComVisible attribute
17957 * KeyPressEventArgs.cs: Added ComVisible attribute
17958 * MouseEventArgs.cs: Added ComVisible attribute
17959 * NavigateEventArgs.cs: Added
17960 * NavigateEventHandler.cs: Added
17961 * FeatureSupport.cs: Added
17962 * OSFeature.cs: Added
17963 * Theme.cs: Added abstract Version property to support OSFeature
17964 * ThemeWin32Classic.cs: Added Version property to
17965 support OSFeature.Themes
17966 * ProgressBar.cs: Removed OnPaintBackground override, not required since
17967 the proper styles to avoid background drawing are set, also doesn't
17969 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
17970 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
17971 * ScrollEventArgs.cs: Added ComVisible attribute
17972 * SplitterEventArgs.cs: Added ComVisible attribute
17973 * AccessibleSelection.cs: Added Flags attribute
17974 * Appearance.cs: Added ComVisible attribute
17975 * Border3DSide.cs: Added ComVisible attribute
17976 * Border3DStyle.cs: Added ComVisible attribute
17977 * BorderStyle.cs: Added ComVisible attribute
17978 * DragAction.cs: Added ComVisible attribute
17979 * ErrorBlinkStyle.cs: Added
17980 * ScrollEventType.cs: Added ComVisible attribute
17981 * AnchorStyles.cs: Added Editor attribute
17982 * DockStyle.cs: Added Editor attribute
17983 * HorizontalAlignment.cs: Added ComVisible attribute
17984 * HelpEventArgs.cs: Added ComVisible attribute
17985 * PaintEventArgs.cs: Added IDisposable
17987 2005-01-04 Peter Bartok <pbartok@novell.com>
17989 * TextControl.cs: Switched Line, LineTag and Document classes to
17992 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
17994 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
17995 Simple mode, fixes, IntegralHeight, etc.
17997 2005-01-04 Peter Bartok <pbartok@novell.com>
17999 * TextBoxBase.cs: Using proper font variable now
18001 2005-01-04 Peter Bartok <pbartok@novell.com>
18003 * Form.cs (ShowDialog): Set parent to owner, if provided
18004 * GroupBox.cs: Removed unused vars
18006 - Added GetHashCode() for Document and LineTag classes
18007 - Removed unused variables
18008 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
18009 to allow translation between continuous char position and line/pos
18010 * CheckBox.cs: Removed vars that are provided by base class
18011 * RadioButton.cs: Removed vars that are provided by base class, added
18012 new keyword where required
18013 * LinkLabel.cs: Added new keyword where required
18014 * Control.cs (WndProc): Removed unused variable
18016 - Finished SelectionLength property
18017 - Implemented SelectionStart property
18018 - Implemented Text property
18019 - Removed unused vars
18020 * MessageBox.cs: Added new keyword where required
18021 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
18023 * MenuAPI.cs: Added new keyword where required
18024 * ButtonBase.cs: Removed vars that are provided by base class, added
18025 new keyword where required
18026 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
18027 argument to double, to allow compiling with csc 2.0 (Atsushi ran
18029 * Application.cs (Run): Now triggers the ThreadExit event
18030 * CommonDialog.cs: Added new keyword where required; now properly sets
18031 parent (owner) for dialog
18032 * XplatUIX11.cs: Commented out unused vars
18033 * StatusBar.cs: Fixed signature for Text property
18034 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
18036 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
18038 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
18039 TrackBar.cs, MonthCalendar.cs: remove unused vars
18041 2005-01-03 Jackson Harper <jackson@ximian.com>
18043 * ThemeWin32Classic.cs:
18044 * X11Keyboard.cs: Remove unused vars.
18046 2005-01-03 Peter Bartok <pbartok@novell.com>
18049 - set_Text: Tied into TextControl
18050 - set_TextAlignment: Tied into TextControl
18052 - Added alignment properties and implemented alignment handling
18053 and drawing (still has a bug, not generating proper expose events)
18054 - Added new Line() constructor to allow passing the line alignment
18055 - Fixed selection setting, properly handling end<start now
18056 - Added aligment considerations to RecalculateDocument()
18058 - Now properly enforces control height for single line controls
18059 - Added support for CharacterCasing
18060 - Added IsInputKey override
18061 - Fixed Keys.Enter logic
18062 - Added SetBoundsCore override
18063 - Fixed mouse selection handling
18065 2005-01-03 Jackson Harper <jackson@ximian.com>
18068 - Collapse and uncheck all nodes when CheckBoxes is disabled.
18069 - Checkboxes are always aligned to the bottom of the node,
18070 regardless of item height.
18071 - Use the node bounds to draw the text so we can center it when
18072 the item height is greater then the font height.
18073 - Node::Bounds are only the text part of the node.
18074 * TreeNode.cs: New method to combine collapsing and unchecking all
18077 2005-01-02 Jackson Harper <jackson@ximian.com>
18079 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
18080 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
18081 tree when a check is changed. TODO: Only refresh the checked node.
18083 2004-12-30 Jackson Harper <jackson@ximian.com>
18085 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
18086 * TreeNode.cs: When collapsing make sure to never collapse the
18089 2004-12-29 Jackson Harper <jackson@ximian.com>
18091 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
18093 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
18095 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
18097 2004-12-28 Peter Bartok <pbartok@novell.com>
18099 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
18102 2004-12-28 Peter Bartok <pbartok@novell.com>
18104 * Control.cs (WndProc): Added WM_HELP handler, now generates
18105 HelpRequested event
18106 * Form.cs: Added HelpButton property and required support code
18107 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
18109 2004-12-28 Peter Bartok <pbartok@novell.com>
18112 - Made DialogForm.owner variable internal
18113 - Added check to ensure owner form is set before setting
18114 owner properties in CreateParams
18116 2004-12-28 Geoff Norton <gnorton@customerdna.com>
18118 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
18119 swizzling. Implement ClientToScreen and ScreenToClient. Implement
18120 GetCursorPos. Fix major visibility issues. Rework the windowing
18121 system to support borderless/titleless windows (implements menus).
18122 Fix GetWindowPos. Implement initial background color support for
18125 2004-12-28 Peter Bartok <pbartok@novell.com>
18127 * Form.cs (get_CreateParams): Make sure we have an owner before using
18128 the owner variable. Implement proper default if no owner exists
18130 2004-12-28 Peter Bartok <pbartok@novell.com>
18132 * In preparation for making Managed.Windows.Forms the default build target
18133 for System.Windows.Forms, the following stubbed files were added.
18134 Dialogs are currently being implemented by contributors and are only
18135 short-term place holders.
18136 * ColorDialog.cs: Initial check-in (minmal stub)
18137 * DataGrid.cs: Initial check-in (minimal stub)
18138 * DataGridLineStyle.cs: Initial check-in (minimal stub)
18139 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
18140 * DataGridTableStyle.cs: Initial check-in (minimal stub)
18141 * FontDialog.cs: Initial check-in (minimal stub)
18142 * FileDialog.cs: Initial check-in (minimal stub)
18143 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
18144 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
18145 * OpenFileDialog: Initial check-in (minimal stub)
18146 * IComponentEditorPageSite.cs: Initial check-in
18147 * Splitter.cs: Initial check-in (for Jackson)
18148 * SplitterEventArgs.cs: Initial check-in (for Jackson)
18149 * SplitterEventHandler.cs: Initial check-in (for Jackson)
18150 * TextBox.cs: Initial check-in; still needs some wiring to
18151 TextControl backend
18152 * Form.cs: Implemented ControlBox property
18153 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
18154 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
18155 * TextControl.cs: Added selection functionality; added todo header
18157 - Implemented Lines property
18158 - Implemented TextHeight property
18159 - Implemented SelectedText property
18160 - Implemented SelectionLength property
18161 - Implemented SelectAll method
18162 - Implemented ToString method
18163 - Removed and cleaned up some debug code
18164 - Implemented (still buggy) mouse text selection
18166 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
18168 * ComboBox.cs: Complete DropDownList implementation, fixes.
18170 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
18172 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
18173 * ComboBoxStyle.cs: ComboBoxStyle enum
18174 * ComboBox.cs: Initial work on ComboBox control
18176 2004-12-21 Peter Bartok <pbartok@novell.com>
18178 * Control.cs (ctor, CreateParams): Moved setting of is_visible
18179 forward so that anything that creates a window gets the default,
18180 also no longer uses Visible property in CreateParams to avoid
18181 walking up the parent chain and possibly get the wrong visible
18182 status. Fixed IsVisible to no longer walk up to the parent.
18184 2004-12-21 Peter Bartok <pbartok@novell.com>
18186 * Form.cs (ShowDialog): Unset modality for the proper window
18188 2004-12-20 Peter Bartok <pbartok@novell.com>
18190 * CommonDialog.cs: Initial check-in
18192 2004-12-20 Peter Bartok <pbartok@novell.com>
18194 * Control.cs (Visible): Now uses the parent window instead of the
18195 client area window for the property
18198 - ShowDialog(): Now uses the proper window for modality
18199 - The default visibility state for the form parent is now false. This
18200 will prevent the user from seeing all the changes to the form and
18201 its controls before the application hits Application.Run()
18202 - Removed some stale commented out code
18205 - Added FindWindow() method to have a method to check for existence
18207 - Added ability to override default exception handling (for example
18208 when debugging with VS.Net; to do this the ExternalExceptionHandler
18210 - Removed some useless debug output
18213 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
18214 not working as expected
18215 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
18216 property to allow switching back to the modal window if focus is
18217 given to another one of our windows (Application Modal)
18218 - Now only sets override_redirect if we create a window
18220 - Moved EventMask selection before mapping of newly created window
18221 so we can catch the map event as well
18222 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
18223 - Added various Atom related DllImports
18224 - Implemented Exit() method
18225 - .ctor() : No longer shows window if WS_VISIBLE is not defined
18226 in the CreateParams
18228 * MessageBox.cs: Now properly deals with the FormParent window by
18229 providing an override the FormParent CreateParams property to
18230 set as POPUP instead of OVERLAPPED window.
18232 2004-12-19 Geoff Norton <gnorton@customerdna.com>
18234 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
18235 Minor code cleanup.
18237 2004-12-19 Geoff Norton <gnorton@customerdna.com>
18239 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
18241 2004-12-18 Peter Bartok <pbartok@novell.com>
18243 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
18244 implementing SetModal() method
18246 2004-12-18 Peter Bartok <pbartok@novell.com>
18248 * X11Structs.cs (XGCValues): Fixed type of function element
18249 * XplatUI.cs: Added ScrollWindow() method
18250 * XplatUIDriver.cs: Added ScrollWindow() abstract
18251 * XplatUIWin32.cs: Implemented ScrollWindow() method
18252 * XplatUIX11.cs: Implemented ScrollWindow() method
18253 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
18255 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18257 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
18258 Some more keyboard support (INCOMPLETE)
18260 2004-12-17 Peter Bartok <pbartok@novell.com>
18263 - Added color attribute to line tags.
18264 - Added color argument to all functions dealing with tags
18265 - Added color argument support to various functions
18266 - Fixed miss-calculation of baseline/shift in certain circumstances
18268 * TextBoxBase.cs: Added new color option to test code
18270 2004-12-17 Jackson Harper <jackson@ximian.com>
18273 * MonthCalendar.cs: Signature fixes
18275 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18277 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
18278 keyboard event moved it. Create a new graphics context for each paint resolves this
18280 2004-12-17 Geoff Norton <gnorton@customerdna.com>
18282 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
18283 Make caret exist and go blink blink. Initial keyboard support.
18284 Fix exception handler, Add Invalidate support. Change way RefreshWindow
18287 2004-12-17 Jackson Harper <jackson@ximian.com>
18289 * XplatUIStructs.cs: Updated set of virtual keycodes.
18290 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
18292 2004-12-17 Jackson Harper <jackson@ximian.com>
18294 * XplatUIX11.cs: Prune old keyboard code.
18296 2004-12-17 Jackson Harper <jackson@ximian.com>
18298 * XplatUIX11.cs: When generating mouse wparams get the modifier
18299 keys from the ModifierKeys property.
18301 2004-12-17 Jackson Harper <jackson@ximian.com>
18303 * X11Keyboard.cs: Send up/down input when generating
18304 messages. Remove some unused vars.
18306 2004-12-17 Jackson Harper <jackson@ximian.com>
18309 * TreeView.cs: get rid of warnings.
18311 2004-12-17 Jackson Harper <jackson@ximian.com>
18313 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
18315 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
18317 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
18318 CheckedListBox.cs: Implementation
18320 2004-12-17 Peter Bartok <pbartok@novell.com>
18322 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
18324 2004-12-16 Peter Bartok <pbartok@novell.com>
18327 - InsertCharAtCaret(): Fixed start pos fixup
18328 - CaretLine_get: No longer derives the line from the tag, the tag
18329 could be stale if lines in the document have been added or deleted
18330 - RebalanceAfterDelete(): Fixed bug in balancing code
18331 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
18332 - Line.Streamline(): Now can also elminate leading empty tags
18333 - DumpTree(): Added a few more tests and prevented exception on
18335 - Added Debug section for Combining lines
18336 - Delete(): Now copies all remaining properties of a line
18339 - Left mousebutton now sets the caret (and middle button still acts
18340 as formatting tester, which must go away soon)
18341 - Added Debug section for Deleting/Combining lines
18342 - Fixed calculations for UpdateView after Combining lines
18344 2004-12-16 Peter Bartok <pbartok@novell.com>
18346 * TextControl.cs: Now properly aligns text on a baseline, using the
18347 new XplatUI.GetFontMetrics() method. Simplified several calculations
18348 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
18351 2004-12-16 Peter Bartok <pbartok@novell.com>
18353 * XplatUI.cs: Added GetFontMetrics() method
18354 * XplatUIDriver.cs: Added GetFontMetrics() abstract
18355 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
18356 into libgdiplus, our private GetFontMetrics function
18357 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
18358 * XplatUIWin32.cs: Implemented GetFontMetrics() method
18360 2004-12-16 Jackson Harper <jackson@ximain.com>
18362 * XplatUIStruct.cs: Add enum for dead keys
18363 * X11Keyboard.cs: Map and unmap dead keys.
18365 2004-12-16 Jackson Harper <jackson@ximian.com>
18367 * X11Keyboard.cs: Detect and use the num lock mask.
18369 2004-12-16 Peter Bartok <pbartok@novell.com>
18371 * Control.cs (CreateGraphics): Added check to make sure the
18372 handle of the window exists before calling Graphics.FromHwnd()
18374 2004-12-16 Peter Bartok <pbartok@novell.com>
18376 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
18377 contains a lot of code that's not supposed to be there for the
18378 real thing, but required for developing/testing the textbox
18381 2004-12-16 Peter Bartok <pbartok@novell.com>
18384 - Fixed Streamline method
18385 - Added FindTag method to Line
18386 - Added DumpTree method for debugging
18387 - Added DecrementLines() method for deleting lines
18388 - Fixed UpdateView to update the cursor to end-of-line on single-line
18390 - Added PositionCaret() method
18391 - Fixed MoveCaret(LineDown) to move into the last line, too
18392 - Added InsertChar overload
18393 - Fixed InsertChar tag offset calculations
18394 - Added DeleteChar() method
18395 - Added Combine() method for folding lines
18396 - Fixed Delete() method, no longer allocates wasted Line object and
18397 now copies all properties when swapping nodes
18398 - Delete() method now updates document line counter
18400 2004-12-15 Jackson Harper <jackson@ximian.com>
18402 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
18403 * X11Keyboard.cs: Expose the currently selected modifier keys
18404 through a property.
18406 2004-12-15 Peter Bartok <pbartok@novell.com>
18408 * TextControl.cs: Initial check-in. Still incomplete
18410 2004-12-15 Jackson Harper <jackson@ximian.com>
18413 * TreeView.cs: Fix build on csc (second time today ;-))
18415 2004-12-15 Jackson Harper <jackson@ximian.com>
18417 * TreeView.cs: Store the treenodes plus/minus box bounds when it
18418 is calculated and use this for click testing.
18419 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
18421 2004-12-15 Jackson Harper <jackson@ximian.com>
18423 * TreeView.cs: Pass the nodes image index to the image list when
18424 drawing that image.
18426 2004-12-15 Jackson Harper <jackson@ximian.com>
18428 * X11Keyboard.cs: Set messages hwnd.
18429 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
18430 post_message calls.
18432 2004-12-15 Jackson Harper <jackson@ximian.com>
18434 * X11Keyboard.cs: Fix to compile with csc.
18436 2004-12-15 Jackson Harper <jackson@ximian.com>
18438 * X11Structs.cs: Add key mask values
18439 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
18440 * X11Keyboard.cs: New file - Extrapolates and interpolates key
18441 down/up foo into WM_CHAR foo
18442 * KeyboardLayouts.cs: Common keyboard layouts
18443 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
18444 post messages into the main queue.
18446 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
18448 * Button.cs: implement ProcessMnemonic
18449 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
18451 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
18452 * ButtonBase.cs: Show HotkeyPrefix (not the &)
18454 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
18456 * MonthCalendar.cs: Implemented click-hold for next/previous month
18459 2004-12-11 Peter Bartok <pbartok@novell.com>
18462 - Added XKeyboardState (moved from XplatUIX11.cs)
18463 - Added XCreateGC related enums and structures
18464 - Added GXFunction for XSetFunction
18466 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
18468 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
18469 CaretVisible() calls
18471 * ToolTip.cs: Added code to prevent stealing focus from app windows
18473 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
18474 DestroyCaret, SetCaretPos and CaretVisible)
18477 - Added implementation for caret functions
18478 - Moved hover variables into a struct, to make it a bit easier
18479 on the eyes and to debug
18480 - Removed XKeyboardState (moved to XplatUIX11.cs)
18481 - Moved Keyboard properties into the properties region
18483 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
18484 call to get a graphics context for our control
18486 * XplatUIOSX.cs: Added empty overrides for the new caret functions
18488 * TreeView.cs: Fixed bug. No matter what color was set it would always
18489 return SystemColors.Window
18491 * XplatUIWin32.cs: Implemented caret overrides
18493 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
18495 * ListBox.cs: fire events, implement missing methods and properties,
18498 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
18500 * MonthCalendar.cs: invalidation bug fixing
18501 * ThemeWin32Classic.cs: paint fixing
18503 2004-12-09 Geoff Norton <gnorton@customerdna.com>
18505 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
18506 prepare the CGContextRef there now.
18508 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
18510 * MonthCalendar.cs:
18511 - optimisationL only invalidate areas that have changed
18512 * ThemeWin32Classic.cs:
18513 - only paint parts that intersect with clip_area
18515 2004-12-09 Peter Bartok <pbartok@novell.com>
18517 * Application.cs: Undid changes from r37004 which cause problems
18520 2004-12-09 Ravindra <rkumar@novell.com>
18522 * ToolBar.cs: Added support for displaying ContextMenu
18523 attached to a button on ToolBar.
18524 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
18527 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18529 * Label.cs: autosize works in text change and removes unnecessary
18532 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18534 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
18537 2004-12-08 Geoff Norton <gnorton@customerdna.com>
18539 * XplatUIOSX.cs: Added mouse move/click/grab support
18540 Remove some debugging WriteLines not needed anymore.
18541 Add window resizing/positioning.
18542 Fix visibility on reparenting.
18544 2004-12-08 Peter Bartok <pbartok@novell.com>
18546 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
18548 2004-12-07 Geoff Norton <gnorton@customerdna.com>
18550 * XplatUIOSX.cs: Initial checkin
18551 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
18553 2004-12-03 Ravindra <rkumar@novell.com>
18555 * ListView.cs: Added some keybindings and fixed scrolling.
18556 ScrollBars listen to ValueChanged event instead of Scroll
18557 Event. This would let us take care of all changes being
18558 done in the scrollbars' values programmatically or manually.
18559 * ListView.cs (CanMultiselect): Added a check for shift key.
18560 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
18561 * ListViewItem.cs (Clone): Fixed. We need to make a copy
18562 of ListViewSubItemCollection as well.
18564 2004-12-06 Peter Bartok <pbartok@novell.com>
18566 * Control.cs (Parent): Added check and exception to prevent
18569 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
18571 * ListBox.cs: implemented clipping, selection single and multiple,
18574 2004-12-03 Ravindra <rkumar@novell.com>
18576 * ListView.cs (ListView_KeyDown):
18577 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
18578 when CTRL key is pressed.
18579 * ListViewItem.cs (Selected): Fixed setting the property.
18581 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18583 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
18585 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
18586 MinimizeBox, ShowInTaskbar, TopMost properties.
18588 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
18589 will be implemented).
18591 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18593 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
18595 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
18598 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
18600 * TreeView.cs: BackColor is Colors.Window.
18602 2004-12-01 Jackson Harper <jackson@ximian.com>
18604 * TreeView.cs: When resizing the tree if the user is making it
18605 smaller we don't get expose events, so we need to handle adding
18606 the horizontal scrollbar in the size changed handler as well as
18607 the expose handler.
18609 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
18611 * DrawItemState.cs: fixes wrong enum values
18613 2004-12-01 Jackson Harper <jackson@ximian.com>
18615 * TreeView.cs: Resize the hbar as well as the vbar on resize.
18617 2004-12-01 Jackson Harper <jackson@ximian.com>
18619 * NodeLabelEditEventArgs.cs:
18620 * NodeLabelEditEventHandler.cs:
18621 * OpenTreeNodeEnumerator.cs:
18623 * TreeNodeCollection.cs:
18625 * TreeViewAction.cs:
18626 * TreeViewCancelEventArgs.cs:
18627 * TreeViewCancelEventHandler.cs:
18628 * TreeViewEventArgs.cs:
18629 * TreeViewEventHandler.cs: Initial implementation.
18631 2004-12-01 Ravindra <rkumar@novell.com>
18633 * ListView.cs (CalculateListView): Fixed scrolling related
18634 calculations. Also, removed some debug statements from other
18636 * ListViewItem.cs: Changed access to 'selected' instance variable
18637 from private to internal.
18638 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
18640 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
18642 * ThemeWin32Classic.cs: remove cache of brush and pens for
18643 specific controls and use the global system, fixes scrollbutton
18644 bugs (for small sizes, disabled, etc)
18646 * ScrollBar.cs: does not show the thumb for very small controls
18647 (as MS) and allow smaller buttons that the regular size
18649 2004-12-01 Miguel de Icaza <miguel@ximian.com>
18651 * UpDownBase.cs: Add abstract methods for the interface.
18652 Add new virtual methods (need to be hooked up to TextEntry when it
18654 Add override methods for most features.
18655 Computes the size, forces the height of the text entry.
18657 * NumericUpDown.cs: Put here the current testing code.
18659 * Set eol-style property on all files that do not have mixed line
18660 endings, to minimize the future problems. There are still a few
18661 files with mixed endings, and someone should choose whether they
18662 want to move it or not.
18664 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
18666 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
18669 2004-11-30 Ravindra <rkumar@novell.com>
18671 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
18672 drawing and replaced use of SystemColors by theme colors.
18673 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
18674 * ListView.cs (ListViewItemCollection.Add): Throw exception when
18675 same ListViewItem is being added more than once.
18677 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
18679 * MonthCalendar.cs:
18680 - ControlStyles love to make the control not flicker
18682 2004-11-30 Peter Bartok <pbartok@novell.com>
18684 * CharacterCasing.cs: Added
18686 2004-11-29 Peter Bartok <pbartok@novell.com>
18688 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18689 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
18690 I am removing these files as they conflict with already completed
18691 work. While it is fantastic to get contributions to MWF, I
18692 respectfully ask that everyone please coordinate their contributions
18693 through mono-winforms-list or #mono-winforms at this time. We're
18694 explicitly avoiding stubbing and don't want controls that don't have
18695 their basic functionality implemented in svn. Please also see
18696 http://www.mono-project.com/contributing/winforms.html
18699 2004-11-29 Marek Safar <marek.safar@seznam.cz>
18701 * Application.cs (ModalRun): Don't hang after exit.
18703 * Theme.cs: New TreeViewDefaultSize property.
18705 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
18706 with less hardcoded SystemColors constant.
18707 Implemented TreeViewDefaultSize.
18709 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18710 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
18713 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
18715 * MonthCalendar.cs:
18716 - Fix NextMonthDate and PrevMonthDate click moving calendar
18718 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18720 * MonthCalendar.cs:
18721 - Fix usage of ScrollChange Property when scrolling months
18723 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
18725 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
18726 - Fixes menu destroying
18727 - Support adding and removing items on already created menus
18729 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18731 * MonthCalendar.cs:
18732 - Re-worked all bolded dates handling to match win32
18733 * ThemeWin32Classic.cs:
18734 - Fixed rendering with bolded dates
18736 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
18738 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
18739 - Horizontal scroolbar
18744 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
18746 * MonthCalendar.cs:
18747 - Fix Usage of MaxSelectionCount from SelectionRange
18748 - Fixed Shift + Cursor Selection
18749 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
18750 - Fixed normal cursor selection to be compat with win32
18751 - Fixed Shift + Mouse Click selection
18753 2004-11-24 Peter Bartok <pbartok@novell.com>
18755 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
18756 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
18758 - CreatedKeyBoardMsg now updates keystate with Alt key
18759 - Added workaround for timer crash to CheckTimers, Jackson will
18760 develop a proper fix and check in later
18761 - Implemented DispatchMessage
18762 - Removed calling the native window proc from GetMessage (call
18763 now moved to DispatchMessage)
18765 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
18766 the keydata (Fixes bug #69831)
18769 - (DispatchMessage): Switched to return IntPtr
18770 - Added DllImport for SetFocus
18772 2004-11-24 Ravindra <rkumar@novell.com>
18774 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
18775 background drawing.
18776 * ListViewItem.cs: Fixed various properties, calculations
18777 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
18778 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
18779 and some internal properties. Fixed MouseDown handler and Paint
18782 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18784 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
18786 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18788 * ContainerControl.cs: correct accidental check in of local changes
18790 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18792 * ThemeWin32Classic.cs:
18793 - Fixed Drawing Last month in grid (sometimes not showing)
18794 * MonthCalendar.cs:
18795 - Fixed title width calculation bug (makeing title small)
18797 2004-11-23 Peter Bartok <pbartok@novell.com>
18800 - Added generation of WM_MOUSEHOVER event
18801 - Added missing assignment of async_method atom
18802 - Fixed WM_ERASEBKGND; now only redraws the exposed area
18804 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18806 * ThemeWin32Classic.cs:
18807 - Fixed Drawing of today circle when showtodaycircle not set
18808 - fixed drawing of first and last month in the grid (gay dates)
18809 * MonthCalendar.cs:
18810 - Fixed Drawing of today circle
18811 - Fixed drawing of grady dates
18812 - Fixed HitTest for today link when ShowToday set to false
18813 - Fixed DefaultSize to obey ShowToday
18815 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18817 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
18818 * System.Windows.Forms/Theme.cs
18819 * MonthCalendar.cs: added for MonthCalendar
18820 * SelectionRange.cs: added for MonthCalendar
18821 * Day.cs: added for MonthCalendar: added for MonthCalendar
18822 * DateRangeEventArgs.cs: added for MonthCalendar
18823 * DateRangeEventHandler.cs: added for MonthCalendar
18825 2004-11-22 Ravindra <rkumar@novell.com>
18827 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
18830 2004-11-22 Miguel de Icaza <miguel@ximian.com>
18832 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
18835 * NumericUpDown.cs: Added new implementation.
18836 * UpDownBase.cs: Added new implementation.
18838 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
18841 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
18844 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
18847 2004-11-21 Miguel de Icaza <miguel@ximian.com>
18849 * Timer.cs (Dispose): Should call the base dispose when
18852 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18854 * ScrollBar.cs: updates thumb position when max, min or increment
18857 2004-11-21 Ravindra <rkumar@novell.com>
18859 * ListView.cs: Implemented item selection, activation and
18860 column header style. Fixed properties to do a redraw, if
18861 required. Added support for MouseHover, DoubleClick, KeyDown
18862 and KeyUp event handling and some minor fixes.
18863 * ListViewItem.cs: Fixed constructor.
18864 * ThemeWin32Classic.cs: Improved drawing for ListView.
18866 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18868 * ThemeWin32Classic.cs: initial listbox drawing code
18869 * DrawMode.cs: new enumerator
18870 * ListControl.cs: stubbed class
18871 * ListBox.cs: initial implementation
18872 * Theme.cs: new methods definitions
18873 * SelectionMode.cs: new enumerator
18875 2004-11-17 Peter Bartok <pbartok@novell.com>
18877 * XplatUIWin32.cs: Added double-click events to the class style
18878 * Control.cs (WndProc):
18879 - Added handling of click-count to MouseDown/ MouseUp events.
18880 - Added handling of middle and right mouse buttons
18881 - Removed old debug code
18883 2004-11-17 Jackson Harper <jackson@ximian.com>
18885 * XplatUIX11.cs: Use the new Mono.Unix namespace.
18887 2004-11-17 Ravindra <rkumar@novell.com>
18889 * ListView.cs: Added event handling for MouseMove/Up/Down.
18890 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
18891 * ThemeWin32Classic.cs: We need to clear the graphics context and
18892 draw column header in a proper state.
18895 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
18897 * Menu.cs: fixes signature
18899 2004-11-16 Peter Bartok <pbartok@novell.com>
18901 * XplatUIX11.cs (GetMessage): Implemented generation of
18902 double click mouse messages
18904 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
18906 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
18909 2004-11-11 Peter Bartok <pbartok@novell.com>
18911 * HandleData.cs: Added Visible property
18912 * XplatUIX11.cs (IsVisible): Now uses Visible property from
18914 * XplatUIX11.cs: Removed old debug leftovers
18915 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
18916 * Control.cs (WndProc): Removed old debug leftovers,
18917 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
18918 needed WM_SIZE handling
18920 2004-11-11 Jackson Harper <jackson@ximian.com>
18922 * OwnerDrawPropertyBag.cs:
18923 * TreeViewImageIndexConverter.cs: Initial implementation
18925 2004-11-10 Jackson Harper <jackson@ximian.com>
18927 * ThemeWin32Classic.cs:
18928 * TabControl.cs: instead of moving tabs by the slider pos just
18929 start drawing at the tab that is offset by the slider. This way
18930 scrolling always moves by exactly one tab.
18932 2004-11-10 Jackson Harper <jackson@ximian.com>
18934 * TabControl.cs: You can only scroll left when the slider has
18935 already ben moved right.
18937 2004-11-10 Jackson Harper <jackson@ximian.com>
18939 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
18942 2004-11-10 Jackson Harper <jackson@ximian.com>
18944 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
18947 2004-11-09 Jackson Harper <jackson@ximian.com>
18949 * TabControl.cs (CalcXPos): New helper method so we can determine
18950 the proper place to start drawing vertical tabs.
18951 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
18953 2004-11-09 Jackson Harper <jackson@ximian.com>
18955 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
18956 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
18957 and Bottom, left and right are illegal values for this and
18958 multiline is enabled when the alignment is set to left or right.
18959 (DrawTab): Each alignment block should draw the text itself now
18960 because Left requires special love. Also add rendering for Left
18963 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
18965 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
18966 does not destroy the windows, removes debugging messages
18968 2004-11-09 jba <jba-mono@optusnet.com.au>
18970 * ThemeWin32Classic.cs
18971 (DrawButtonBase): Fix verticle text rect clipping in windows
18972 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
18973 rendering and incorrect text rect clipping
18974 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
18975 rendering and incorrect text rect clipping
18977 2004-11-08 Jackson Harper <jackson@ximian.com>
18979 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
18980 bottom when they are bottom aligned so the bottoms of the tabs get
18982 * TabControl.cs (DropRow): Move rows up instead of down when the
18983 tab control is bottom aligned.
18985 2004-11-08 13:59 pbartok
18988 - Added handling for various window styles
18989 - Added handling for popup windows
18990 - Added SetTopmost handling
18992 2004-11-08 13:55 pbartok
18995 - Added argument to SetTopmost method
18996 - Fixed broken ClientToScreen function
18998 2004-11-08 13:53 pbartok
19000 * XplatUIStructs.cs:
19001 - Added missing WS_EX styles
19003 2004-11-08 13:53 pbartok
19005 * XplatUI.cs, XplatUIDriver.cs:
19006 - Added argument to SetTopmost
19008 2004-11-08 13:52 pbartok
19011 - Added XSetWindowAttributes structure
19012 - Improved XWindowAttributes structure
19013 - Added SetWindowValuemask enum
19014 - Added window creation arguments enum
19015 - Added gravity enum
19016 - Added Motif hints structure
19017 - Added various Motif flags and enums
19018 - Added PropertyMode enum for property functions
19020 2004-11-08 13:50 pbartok
19023 - Fixed arguments for updated SetTopmost method
19025 2004-11-08 13:49 pbartok
19028 - Fixed arguments for updated SetTopmost function
19029 - Fixed usage of PointToClient
19031 2004-11-08 13:44 pbartok
19034 - Added Clipping of children and siblings
19036 2004-11-08 13:41 pbartok
19039 - Removed SetMenuBarWindow call. We do this in Form.cs
19041 2004-11-08 13:40 jackson
19043 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
19044 scrolling jimmi in the correct location with bottom aligned tabs
19046 2004-11-08 13:36 pbartok
19048 * ContainerControl.cs:
19049 - Implemented BindingContext
19050 - Implemented ParentForm
19052 2004-11-08 12:46 jackson
19054 * TabControl.cs: Put bottom rendered tabs in the right location
19056 2004-11-08 07:15 jordi
19058 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
19061 2004-11-05 17:30 jackson
19063 * TabControl.cs: When selected tabs are expanded make sure they
19064 don't go beyond the edges of the tab control
19066 2004-11-05 14:57 jackson
19068 * TabControl.cs: Reset show_slider so if the control is resized to
19069 a size where it is no longer needed it's not displayed anymore
19071 2004-11-05 13:16 jackson
19073 * TabControl.cs: Make tab pages non visible when added to the
19076 2004-11-05 12:42 jackson
19078 * TabControl.cs: Implement SizeMode.FillToRight
19080 2004-11-05 12:16 jackson
19082 * Control.cs: Do not call CreateHandle if the handle is already
19085 2004-11-05 11:46 jackson
19087 * TabControl.cs: Remove superflous call to CalcTabRows
19089 2004-11-05 09:07 jackson
19091 * XplatUIX11.cs: Update for Mono.Posix changes
19093 2004-11-05 07:00 ravindra
19095 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
19098 2004-11-04 22:47 jba
19100 * ThemeWin32Classic.cs:
19101 - Fix Button rendering for FlatStyle = Flat or Popup
19102 - Fix RadioButton and CheckBox rendering when Appearance = Button
19103 (normal and flatstyle).
19104 - Correct outer rectangle color when drawing focus rectangle
19105 - Adjust button bounds to be 1 px smaller when focused
19106 - Make button not draw sunken 3d border when pushed (windows compat)
19107 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
19108 - Offset the text in RadioButton and Checkbox when being rendered as
19110 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
19112 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
19113 - Fixed disabled text rendering for normally rendered radiobuttons
19115 2004-11-04 10:26 jackson
19117 * TabControl.cs: Recalculate tab rows when resizing
19119 2004-11-04 07:47 jordi
19121 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
19122 collection completion, drawing issues, missing features
19124 2004-11-04 05:03 ravindra
19127 - We need to recalculate the Thumb area when
19128 LargeChange/maximum/minimum values are changed.
19129 - We set the 'pos' in UpdatePos() method to minimum, if it's less
19130 than minimum. This is required to handle the case if large_change is
19131 more than max, and use LargeChange property instead of large_change
19133 - We return max+1 when large_change is more than max, like MS does.
19135 2004-11-04 04:29 ravindra
19137 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
19138 - Changed default value signatures (prefixed all with ListView).
19139 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
19141 - Fixed calculations for ListViewItem and implemented Clone()
19144 2004-11-04 04:26 ravindra
19146 * Theme.cs, ThemeWin32Classic.cs:
19147 - Changed default ListView values signatures (prefixed all with
19149 - Fixed default size values for VScrollBar and HScrollBar.
19150 - Fixed DrawListViewItem method.
19152 2004-11-04 04:05 ravindra
19154 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
19156 2004-11-04 04:04 ravindra
19158 * ImageList.cs: Implemented the missing overload for Draw method.
19160 2004-11-03 19:29 jackson
19162 * TabControl.cs: Handle dropping rows on selection properly
19164 2004-11-03 11:59 jackson
19166 * TabControl.cs: remove debug code
19168 2004-11-03 11:52 jackson
19170 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
19171 the scrolly widgerywoo
19173 2004-11-02 13:52 jackson
19175 * TabControl.cs: Resize the tab pages and tabs when the tab control
19178 2004-11-02 13:40 jackson
19180 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
19181 selected tab to the bottom
19183 2004-11-02 13:39 jackson
19185 * TabPage.cs: Store the tab pages row
19187 2004-11-02 12:33 jordi
19189 * MenuItem.cs: fixes handle creation
19191 2004-11-02 11:42 jackson
19193 * TabControl.cs: signature fix
19195 2004-11-02 08:56 jackson
19197 * TabControl.cs: Calculate whether the tab is on an edge properly.
19198 Remove top secret debugging code
19200 2004-11-01 19:57 jackson
19202 * TabControl.cs: Add click handling, and proper sizing
19204 2004-11-01 19:47 jackson
19206 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
19209 2004-11-01 19:39 jackson
19211 * TabPage.cs: add internal property to store the bounds of a tab
19214 2004-10-30 04:23 ravindra
19216 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
19219 2004-10-30 04:21 ravindra
19221 * ListView.cs, ListViewItem.cs: Added support for scrolling and
19222 fixed calculations.
19224 2004-10-30 03:06 pbartok
19227 - Removed extension of DllImported libs
19229 2004-10-29 09:55 jordi
19231 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
19232 navigation, itemcollection completion, menu fixes
19234 2004-10-27 22:58 pbartok
19237 - Now throws a nice error message when no X display could be opened
19239 2004-10-26 13:51 jordi
19241 * ListView.cs: removes warning
19243 2004-10-26 03:55 ravindra
19245 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
19246 ThemeWin32Classic.cs: Some formatting for my last checkins.
19248 2004-10-26 03:36 ravindra
19250 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
19251 control and default values.
19253 2004-10-26 03:35 ravindra
19255 * Theme.cs: Added some default values for ListView control.
19257 2004-10-26 03:33 ravindra
19259 * ToolBar.cs: ToolBar should use the user specified button size, if
19260 there is any. Added a size_specified flag for the same.
19262 2004-10-26 03:33 ravindra
19264 * ColumnHeader.cs: Added some internal members and calculations for
19267 2004-10-26 03:32 ravindra
19269 * ListViewItem.cs: Calculations for ListViewItem.
19271 2004-10-26 03:31 ravindra
19273 * ListView.cs: Added some internal members and calculations for
19276 2004-10-22 13:31 jordi
19278 * MenuAPI.cs: speedup menus drawing
19280 2004-10-22 13:16 jackson
19282 * XplatUIX11.cs: Make sure to update exposed regions when adding an
19285 2004-10-22 11:49 jackson
19289 2004-10-22 11:41 jackson
19291 * Control.cs: Check to see if the window should have its background
19292 repainted by X when drawing.
19294 2004-10-22 11:31 jackson
19296 * XplatUIX11.cs: When invalidating areas only use XClearArea if
19297 clear is true, this way we do not get flicker from X repainting the
19300 2004-10-22 11:28 jackson
19302 * XEventQueue.cs: Queue properly
19304 2004-10-21 09:38 jackson
19306 * XEventQueue.cs: Fix access modifier
19308 2004-10-21 09:36 jackson
19310 * XEventQueue.cs: Don't loose messages
19312 2004-10-21 09:22 jackson
19314 * XEventQueue.cs: Don't loose messages
19316 2004-10-20 04:15 jordi
19318 * BootMode.cs: enum need it by SystemInfo
19320 2004-10-19 21:58 pbartok
19323 - Small sanity check
19325 2004-10-19 21:56 pbartok
19328 - Added private FormParentWindow class which acts as the container
19329 for our form and as the non-client area where menus are drawn
19330 - Added/Moved required tie-ins to Jordi's menus
19331 - Fixed/Implemented the FormStartPosition functionality
19333 2004-10-19 21:52 pbartok
19336 - Removed unneeded locals
19337 - Added code to all size and location properties to understand and
19338 deal with the parent container of Form
19340 2004-10-19 21:33 pbartok
19343 - Fixed to deal with new Form subclasses for menus
19345 2004-10-19 17:48 jackson
19347 * XEventQueue.cs: commit correct version of file
19349 2004-10-19 16:50 jackson
19351 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
19353 2004-10-19 16:15 jordi
19355 * MenuAPI.cs: MenuBarCalcSize returns the height
19357 2004-10-19 08:31 pbartok
19360 - Added missing call to PreProcessMessage before calling OnXXXKey
19363 2004-10-19 00:04 ravindra
19365 * ToolTip.cs: Fixed constructor.
19367 2004-10-18 09:31 jordi
19369 * MenuAPI.cs: menuitems in menubars do not have shortcuts
19371 2004-10-18 09:26 jordi
19373 * MenuItem.cs: fixes MenuItem class signature
19375 2004-10-18 08:56 jordi
19377 * MenuAPI.cs: prevents windows from showing in the taskbar
19379 2004-10-18 00:28 ravindra
19381 * ToolTip.cs: Suppressed a warning message.
19383 2004-10-18 00:27 ravindra
19385 * Control.cs: Default value of visible property must be true.
19387 2004-10-17 23:19 pbartok
19390 - Complete implementation
19392 2004-10-17 23:19 pbartok
19395 - Added EnableWindow method
19396 - Added SetModal stub
19397 - Added generation of WM_ACTIVATE message (still needs testing)
19398 - Added SetTopMost stub
19399 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
19401 2004-10-17 23:17 pbartok
19404 - Removed VirtualKeys to XplatUIStructs
19405 - Implemented SetTopMost method
19406 - Implemented EnableWindow method
19407 - Bugfix in ScreenToClient()
19408 - Bugfixes in ClientToScreen()
19410 2004-10-17 22:51 pbartok
19412 * XplatUIStructs.cs:
19413 - Added WS_EX styles to WindowStyles enumeration
19415 2004-10-17 22:50 pbartok
19417 * XplatUI.cs, XplatUIDriver.cs:
19418 - Added method for enabling/disabling windows
19419 - Added method for setting window modality
19420 - Added method for setting topmost window
19422 2004-10-17 22:49 pbartok
19424 * ThemeWin32Classic.cs:
19425 - Added ToolTip drawing code
19427 2004-10-17 22:49 pbartok
19430 - Added ToolTip abstracts
19432 2004-10-17 22:47 pbartok
19435 - Fixed Form.ControlCollection to handle owner relations
19436 - Added Owner/OwnedForms handling
19437 - Implemented Z-Ordering for owned forms
19438 - Removed unneeded private overload of ShowDialog
19439 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
19441 - Fixed Close(), had wrong default
19442 - Added firing of OnLoad event
19443 - Added some commented out debug code for Ownership handling
19445 2004-10-17 22:16 pbartok
19448 - Fixed/implemented flat list of controls
19450 2004-10-17 22:14 pbartok
19453 - Added code to simulate modal dialogs on Win32
19455 2004-10-17 16:11 jordi
19457 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
19460 2004-10-17 13:39 jordi
19462 * MenuAPI.cs: menu drawing fixes
19464 2004-10-15 09:10 ravindra
19466 * StructFormat.cs: General Enum.
19468 2004-10-15 09:09 ravindra
19470 * SizeGripStyle.cs: Enum for Form.
19472 2004-10-15 09:08 ravindra
19474 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
19475 in Theme for ListView.
19477 2004-10-15 09:06 ravindra
19479 * ColumnHeader.cs: Flushing some formatting changes.
19481 2004-10-15 09:05 ravindra
19483 * ListViewItem.cs: Implemented GetBounds method and fixed coding
19486 2004-10-15 09:03 ravindra
19488 * ListView.cs: Implemented Paint method and fixed coding style.
19490 2004-10-15 07:34 jordi
19492 * MenuAPI.cs: fix for X11
19494 2004-10-15 07:32 ravindra
19496 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
19497 - Renamed Paint() method to Draw() for clarity. Also, moved
19498 DrawImage() to OnPaint().
19500 2004-10-15 07:25 ravindra
19502 * CheckBox.cs, RadioButton.cs:
19503 - Removed Redraw (), we get it from ButtonBase.
19504 - Implemented Paint (), to do class specific painting.
19506 2004-10-15 07:16 ravindra
19509 - Redraw () is not virtual now.
19510 - Added an internal virtual method Paint (), so that
19511 derived classes can do their painting on their own.
19512 - Modified OnPaint () to call Paint ().
19514 2004-10-15 06:43 jordi
19516 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
19517 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
19519 2004-10-15 00:30 ravindra
19522 - MessageBox on windows does not have min/max buttons.
19523 This change in CreateParams fixes this on Windows. We
19524 still need to implement this windowstyle behavior in
19527 2004-10-14 05:14 ravindra
19530 - Changed Redraw () to do a Refresh () always.
19531 - Fixed the MouseMove event handling when mouse is pressed,
19532 ie drag event handling.
19533 - Replaced the usage of ToolBarButton.Pressed property to
19534 ToolBarButton.pressed internal variable.
19536 2004-10-14 05:10 ravindra
19538 * ToolBarButton.cs:
19539 - Added an internal member 'inside' to handle mouse move
19540 with mouse pressed ie mouse drag event.
19541 - Changed 'Pressed' property to return true only when
19542 'inside' and 'pressed' are both true.
19543 - Some coding style love.
19545 2004-10-14 00:17 ravindra
19547 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
19550 2004-10-14 00:15 ravindra
19552 * ButtonBase.cs: Redraw () related improvements.
19554 2004-10-14 00:14 ravindra
19556 * MessageBox.cs: Moved InitFormSize () out of Paint method and
19557 removed unnecessary calls to Button.Show () method.
19559 2004-10-13 17:50 pbartok
19563 - Removed destroying of window until we solve the problem of X
19564 destroying the window before us on shutdown
19566 2004-10-13 16:32 pbartok
19569 - Now Redraws on MouseUp for FlatStyle Flat and Popup
19571 2004-10-13 14:18 pbartok
19574 - Added code to destroy the X window
19576 2004-10-13 14:18 pbartok
19579 - Added code to destroy a window
19581 2004-10-13 14:12 pbartok
19584 - Added the Redraw on Resize that got dropped in the last rev
19586 2004-10-13 09:06 pbartok
19588 * ThemeWin32Classic.cs:
19589 - Path from John BouAntoun:
19590 * Fix check rendering (centre correctly for normal style, offset
19591 correctly for FlatStyle).
19592 * Fix border color usage (use backcolor) for FlatStyle.Popup
19593 * Use checkbox.Capture instead of checkbox.is_pressed when
19594 rendering flatstyle states.
19596 2004-10-12 21:48 pbartok
19598 * ThemeWin32Classic.cs:
19599 - Removed all occurences of SystemColors and replaced them with the
19600 matching theme color
19602 2004-10-12 21:41 pbartok
19604 * ThemeWin32Classic.cs:
19605 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
19606 him using the function for flatstyle drawing
19607 - Changed functions to use the new version of CPDrawBorder3D
19609 2004-10-12 21:15 pbartok
19612 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
19613 match MS documentation. They need to return defined colors if the
19614 passed color matches the configured control color. Thanks to John
19615 BouAntoun for pointing this out.
19617 2004-10-12 20:57 pbartok
19620 - Fix from John BouAntoun: Raise ForeColorChanged event when text
19623 2004-10-12 20:46 pbartok
19626 - Fix from John BouAntoun: Now properly sets the Appearance property
19628 2004-10-12 20:45 pbartok
19630 * ThemeWin32Classic.cs:
19631 - Fixes from John BouAntoun: now handles forecolors and backcolors
19632 for flatstyle rendered controls much better; It also fixes normal
19633 checkbox rendering when pushed or disabled.
19635 2004-10-08 02:50 jordi
19637 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
19640 2004-10-07 08:56 jordi
19642 * ThemeWin32Classic.cs: Removes deletion of cached brushes
19644 2004-10-06 03:59 jordi
19646 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
19647 XplatUIWin32.cs: removes warnings from compilation
19649 2004-10-05 12:23 jackson
19651 * RadioButton.cs: Fix ctor
19653 2004-10-05 11:10 pbartok
19656 - Partial implementation by Benjamin Dasnois
19658 2004-10-05 10:15 jackson
19660 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
19663 2004-10-05 03:07 ravindra
19666 - Removed a private method, Draw ().
19667 - Fixed the ButtonDropDown event handling.
19668 - Fixed MouseMove event handling.
19670 2004-10-05 03:04 ravindra
19672 * ThemeWin32Classic.cs:
19673 - Added DrawListView method and ListViewDefaultSize property.
19674 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
19675 - Changed DOS style CRLF to Unix format (dos2unix).
19677 2004-10-05 03:03 ravindra
19680 - Added DrawListView method and ListViewDefaultSize property.
19682 2004-10-05 02:42 ravindra
19684 * ToolBarButton.cs: Added an internal member dd_pressed to handle
19685 clicks on DropDown arrow.
19687 2004-10-04 22:56 jackson
19689 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
19690 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
19691 Control handle the buffers, derived classes should not have to
19692 CreateBuffers themselves.
19694 2004-10-04 21:20 jackson
19696 * StatusBar.cs: The control handles resizing the buffers now.
19698 2004-10-04 21:18 jackson
19700 * Control.cs: When resizing the buffers should be invalidated. This
19701 should be handled in Control not in derived classes.
19703 2004-10-04 14:45 jackson
19707 2004-10-04 02:14 pbartok
19709 * LeftRightAlignment.cs:
19712 2004-10-04 01:09 jordi
19714 * ThemeWin32Classic.cs: fixes right button position causing right
19715 button not showing on horizontal scrollbars
19717 2004-10-02 13:12 pbartok
19720 - Simplified the Invalidate method by using an X call instead of
19721 generating the expose ourselves
19722 - Added an expose when the window background is changed
19723 - Implemented ClientToScreen method
19725 2004-10-02 13:08 pbartok
19728 - Added Win32EnableWindow method (test for implementing modal
19730 - Added ClientToScreen method and imports
19732 2004-10-02 13:07 pbartok
19734 * XplatUI.cs, XplatUIDriver.cs:
19735 - Added ClientToScreen coordinate translation method
19737 2004-10-02 13:06 pbartok
19739 * KeyPressEventArgs.cs:
19740 - Fixed access level for constructor
19742 2004-10-02 13:06 pbartok
19745 - Changed access level for the window_collection hash table
19747 2004-10-02 13:05 pbartok
19750 - Added KeyPreview property
19751 - Added Menu property (still incomplete, pending Jordi's menu work)
19752 - Implemented ProcessCmdKey
19753 - Implemented ProcessDialogKey
19754 - Implemented ProcessKeyPreview
19756 2004-10-02 13:02 pbartok
19759 - Added private method to get the Control object from the window
19761 - Implemented ContextMenu property
19762 - Implemented PointToScreen
19763 - Implemented PreProcessMessage
19764 - Implemented IsInputChar
19765 - Implemented IsInputKey
19766 - Implemented ProcessCmdKey
19767 - Completed ProcessKeyEventArgs
19768 - Fixed message loop to call the proper chain of functions on key
19770 - Implemented ProcessDialogChar
19771 - Implemented ProcessDialogKey
19772 - Implemented ProcessKeyMessage
19773 - Implemented ProcessKeyPreview
19774 - Added RaiseDragEvent stub (MS internal method)
19775 - Added RaiseKeyEvent stub (MS internal method)
19776 - Added RaiseMouseEvent stub (MS Internal method)
19777 - Added RaisePaintEvent stub (MS Internal method)
19778 - Added ResetMouseEventArgs stub (MS Internal method)
19779 - Implemented RtlTranslateAlignment
19780 - Implemented RtlTranslateContent
19781 - Implemented RtlTranslateHorizontal
19782 - Implemented RtlTranslateLeftRight
19783 - Added generation of KeyPress event
19785 2004-10-02 05:57 ravindra
19787 * ListViewItem.cs: Added attributes.
19789 2004-10-02 05:32 ravindra
19791 * ListView.cs: Added attributes.
19793 2004-10-01 11:53 jackson
19795 * Form.cs: Implement the Close method so work on MessageBox can
19798 2004-09-30 14:06 pbartok
19803 2004-09-30 11:34 jackson
19805 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
19807 2004-09-30 07:26 ravindra
19809 * ListViewItemConverter.cs: Converter for ListViewItem.
19811 2004-09-30 07:26 ravindra
19813 * SortOrder.cs: Enum for ListView control.
19815 2004-09-30 07:25 ravindra
19817 * ColumnHeader.cs: Supporting class for ListView control.
19819 2004-09-30 07:24 ravindra
19821 * ListView.cs, ListViewItem.cs: Initial implementation.
19823 2004-09-30 07:20 ravindra
19825 * ItemActivation.cs: Enum for ListView Control.
19827 2004-09-29 20:29 pbartok
19830 - Added lookup of pixel value for background color; tries to get a
19831 color 'close' to the requested color, it avoids having to create a
19832 colormap. Depending on the display this could mean the used color
19833 is slightly off the desired color. Might have to change it to a more
19834 resource intensive colormap approach, but it will work as a
19835 workaround to avoid red screens.
19837 2004-09-29 14:27 jackson
19839 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
19841 2004-09-28 12:44 pbartok
19843 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
19844 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
19845 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
19846 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
19847 TrackBar.cs, VScrollBar.cs:
19848 - Streamlined Theme interfaces:
19849 * Each DrawXXX method for a control now is passed the object for
19850 the control to be drawn in order to allow accessing any state the
19851 theme might require
19853 * ControlPaint methods for the theme now have a CP prefix to avoid
19854 name clashes with the Draw methods for controls
19856 * Every control now retrieves it's DefaultSize from the current
19859 2004-09-28 12:17 jackson
19861 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
19864 2004-09-24 14:57 jackson
19866 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
19867 Gives us a nice little performance boost.
19869 2004-09-24 12:02 jackson
19871 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
19872 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
19873 Control and supporting classes. Initial checkin
19875 2004-09-23 13:08 jackson
19877 * Form.cs: Temp build fixage
19879 2004-09-23 01:39 ravindra
19881 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
19882 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
19883 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
19884 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
19885 EventHandlers needed by ListView Control.
19887 2004-09-22 14:12 pbartok
19889 * ScrollableControl.cs:
19890 - Implemented DockPadding property
19891 - Implemented AutoScroll property
19892 - Implemented AutoScrollMargin property
19893 - Implemented AutoScrollMinSize property
19894 - Implemented AutoScrollPosition property
19895 - Implemented DisplayRectangle property (still incomplete)
19896 - Implemented CreateParams property
19897 - Implemented HScroll property
19898 - Implemented VScroll property
19899 - Implemented OnVisibleChanged property
19901 2004-09-22 14:09 pbartok
19904 - Added Form.ControllCollection class
19905 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
19906 RemoveOwnedForm (still incomplete, missing on-top and common
19907 minimize/maximize behaviour)
19908 - Added StartPosition property (still incomplete, does not use when
19910 - Added ShowDialog() methods (still incomplete, missing forcing the
19913 2004-09-22 14:05 pbartok
19916 - Added message loop for modal dialogs
19918 2004-09-22 14:02 pbartok
19921 - Fixed wrong types for events
19923 2004-09-22 14:00 pbartok
19925 * Shortcut.cs, FormWindowState.cs:
19926 - Fixed wrong values
19928 2004-09-22 12:01 jackson
19930 * Control.cs: Text is never null
19932 2004-09-20 22:14 pbartok
19935 - Fixed accessibility level for Idle handler
19937 2004-09-20 18:54 jackson
19939 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19940 XplatUIX11.cs: New message loop that uses poll so we don't get a
19943 2004-09-17 10:43 pbartok
19946 - Fixed behaviour of arrow buttons. Now properly behaves like
19947 Buttons (and like Microsoft's scrollbar arrow buttons)
19949 2004-09-17 10:14 pbartok
19952 - Added missing release of keyboard/mouse capture
19954 2004-09-17 06:18 jordi
19956 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
19957 Theme.cs: Very early menu support
19959 2004-09-16 17:45 pbartok
19962 - Fixed sending a window to the front
19963 - Added overload for SetWindowPos to avoid casting
19965 2004-09-16 17:44 pbartok
19968 - Added SendToBack and BringToFront methods
19970 2004-09-16 07:00 ravindra
19972 * Copyright: Added Novell URL.
19974 2004-09-16 07:00 ravindra
19976 * ToolBar.cs: Invalidate should be done before redrawing.
19978 2004-09-15 21:19 ravindra
19980 * ColumnHeaderStyle.cs: Enum for ListView Control.
19982 2004-09-15 21:18 ravindra
19984 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
19987 2004-09-13 18:26 jackson
19989 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
19992 2004-09-13 18:13 jackson
19994 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
19995 a second thread and post messages into the main threads message
19996 queue. This makes timing much more consistent. Both win2K and XP
19997 have a minimum timer value of 15 milliseconds, so we now do this
20000 2004-09-13 15:18 pbartok
20002 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20004 - Added Z-Ordering methods
20006 2004-09-13 10:56 pbartok
20009 - Fixed #region names
20010 - Moved properties and methods into their proper #regions
20012 2004-09-13 10:51 pbartok
20015 - Added Accept and CancelButton properties
20016 - Added ProcessDialogKey() method
20018 2004-09-13 08:18 pbartok
20020 * IWindowTarget.cs:
20023 2004-09-10 21:50 pbartok
20026 - Added DoDragDrop() [incomplete]
20027 - Properly implemented 'Visible' handling
20028 - Added SetVisibleCore()
20029 - Implemented FindChildAtPoint()
20030 - Implemented GetContainerControl()
20031 - Implemented Hide()
20033 2004-09-10 19:28 pbartok
20036 - Moved methods into their appropriate #regions
20037 - Reordered methods within regions alphabetically
20039 2004-09-10 18:57 pbartok
20041 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20042 - Added method to retrieve text from window
20044 2004-09-10 18:56 pbartok
20047 - Moved some internal functions into the internal region
20048 - Implemented FontHeight
20049 - Implemented RenderRightToLeft
20050 - Implemented ResizeRedraw
20051 - Implemented ShowFocusCues
20052 - Implemented ShowKeyboardCues
20053 - Implemented FromChildHandle
20054 - Implemented FromHandle
20055 - Implemented IsMnemonic
20056 - Implemented ReflectMessage
20057 - All public and protected Static Methods are now complete
20059 2004-09-10 16:54 pbartok
20062 - Implemented remaining missing public instance properties
20063 - Alphabetized some out of order properties
20065 2004-09-10 05:51 ravindra
20067 * PictureBox.cs: Added a check for null image.
20069 2004-09-10 00:59 jordi
20071 * GroupBox.cs: remove cvs tag
20073 2004-09-09 05:25 ravindra
20075 * ToolBar.cs: Make redraw accessible from ToolBarButton.
20077 2004-09-09 05:23 ravindra
20079 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
20082 2004-09-09 02:28 pbartok
20084 * ThemeWin32Classic.cs:
20085 - Improve disabled string look
20087 2004-09-09 01:15 jordi
20089 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
20092 2004-09-08 23:56 ravindra
20094 * ItemBoundsPortion.cs: It's enum, not a class!
20096 2004-09-08 23:47 ravindra
20098 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
20101 2004-09-08 21:13 ravindra
20103 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
20106 2004-09-08 21:03 ravindra
20108 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
20111 2004-09-08 21:01 ravindra
20113 * ScrollableControl.cs: Removed unreachable code.
20115 2004-09-08 06:45 jordi
20117 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
20119 2004-09-08 01:00 jackson
20121 * XplatUIX11.cs: Only run the timers when updating the message
20122 queue. This effectively gives X messages a higher priority then
20123 timer messages. Timers still need love though
20125 2004-09-07 14:01 jackson
20127 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
20128 this for us and the handle is no longer valid.
20130 2004-09-07 13:59 jackson
20132 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
20133 loop that manages to not crash. TODO: Add poll and cleanup timers
20135 2004-09-07 11:12 jordi
20137 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
20139 2004-09-07 03:40 jordi
20141 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
20142 fixes, methods, multiple links
20144 2004-09-06 06:55 jordi
20146 * Control.cs: Caches ClientRectangle rectangle value
20148 2004-09-05 02:03 jordi
20150 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
20153 2004-09-04 11:10 jordi
20155 * Label.cs: Refresh when font changed
20157 2004-09-02 16:24 pbartok
20160 - Added sanity check to creation of double buffer bitmap
20162 2004-09-02 16:24 pbartok
20165 - Fixed selection of text color
20166 - Fixed handling of resize event; now properly recreates double
20168 - Added missing assignment of TextAlignment
20169 - Added proper default for TextAlignment
20171 2004-09-02 14:26 pbartok
20174 - Added missing RadioButton.RadioButtonAccessibleObject class
20176 2004-09-02 14:26 pbartok
20179 - Added missing Control.ControlAccessibleObject class
20180 - Started to implement Select()ion mechanisms, still very incomplete
20182 2004-09-02 14:25 pbartok
20184 * AccessibleObject.cs:
20185 - Added missing methods
20187 2004-09-02 14:23 pbartok
20189 * AccessibleNavigation.cs, AccessibleSelection.cs:
20192 2004-09-02 10:32 jordi
20194 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
20195 pool for pens, brushes, and hatchbruses
20197 2004-09-01 15:30 jackson
20199 * StatusBar.cs: Fix typo
20201 2004-09-01 14:44 pbartok
20206 2004-09-01 14:39 pbartok
20208 * Button.cs, RadioButton.cs:
20209 - Functional initial check-in
20211 2004-09-01 14:01 pbartok
20214 - Added missing default
20215 - Added missing region mark
20217 2004-09-01 09:10 jordi
20219 * Label.cs: fixes method signatures, new methods, events, fixes
20222 2004-09-01 07:19 jordi
20224 * Control.cs: Init string variables with an empty object
20226 2004-09-01 04:20 jordi
20228 * Control.cs: fires OnFontChanged event
20230 2004-08-31 20:07 pbartok
20233 - Enabled display of strings
20235 2004-08-31 20:05 pbartok
20238 - Added (partial) implementation of DialogResult; rest needs to be
20239 implemented when the modal loop code is done
20241 2004-08-31 19:55 pbartok
20244 - Fixed to match the removal of the needs_redraw concept
20246 2004-08-31 19:55 pbartok
20249 - Removed the rather odd split between 'needs redraw' and redrawing
20250 - Now handles the events that require regeneration (ambient
20251 properties and size)
20253 2004-08-31 19:41 pbartok
20256 - Added firing of BackColorChanged event
20257 - Added TopLevelControl property
20258 - Fixed handling of WM_ERASEBKGRND message
20260 2004-08-31 12:49 pbartok
20266 2004-08-31 12:48 pbartok
20269 - Finished (famous last words)
20271 2004-08-31 04:35 jordi
20273 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
20274 scrolling bugs, adds new methods
20276 2004-08-30 14:42 pbartok
20279 - Implemented CheckBox drawing code
20281 2004-08-30 14:42 pbartok
20284 - Made Redraw() and CheckRedraw() virtual
20285 - Improved mouse up/down/move logic to properly track buttons
20287 2004-08-30 09:44 pbartok
20290 - Updated to fix broken build. Not complete yet.
20292 2004-08-30 09:28 pbartok
20297 2004-08-30 09:17 pbartok
20302 2004-08-27 16:12 ravindra
20304 * ToolBarButton.cs: Added TypeConverter attribute.
20306 2004-08-27 16:07 ravindra
20308 * ImageIndexConverter.cs: Implemented.
20310 2004-08-27 14:17 pbartok
20313 - Removed unneeded stack vars
20314 - First attempt to fix sizing issues when layout is suspended
20316 2004-08-25 15:35 jordi
20318 * ScrollBar.cs: more fixes to scrollbar
20320 2004-08-25 14:04 ravindra
20322 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
20323 Added the missing divider code and grip for ToolBar Control.
20325 2004-08-25 13:20 pbartok
20328 - Control now properly passes the ambient background color to child
20331 2004-08-25 13:20 jordi
20333 * ScrollBar.cs: small bug fix regarding bar position
20335 2004-08-25 12:33 pbartok
20338 - Now only calls SetTimer or KillTimer if the enabled state has
20341 2004-08-25 12:33 pbartok
20344 - Fixed timer handling, now seems to work
20345 - Improved error message for window creation
20347 2004-08-25 12:32 pbartok
20350 - Fixed generation of MouseUp message
20352 2004-08-25 12:29 jordi
20354 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
20355 and fixes for progressbar
20357 2004-08-24 18:43 ravindra
20359 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
20360 in ToolBar control.
20362 2004-08-24 17:15 pbartok
20366 - Added missing events
20369 2004-08-24 17:14 pbartok
20371 * StatusBar.cs, PictureBox.cs:
20372 - Now uses Control's CreateParams
20374 2004-08-24 16:36 pbartok
20377 - Fixed background color handling
20378 - Fixed sending of enter/leave events on a grab
20380 2004-08-24 16:35 pbartok
20383 - Refined definitions for CrossingEvent
20385 2004-08-24 12:37 jordi
20387 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
20388 formmating, methods signature, and adds missing events
20390 2004-08-24 12:24 jordi
20392 * Control.cs: fire OnEnabledChanged event
20394 2004-08-24 11:17 pbartok
20397 - Implemented SetTimer() and KillTimer()
20399 2004-08-24 11:16 pbartok
20402 - Now uses Remove instead of Add to kill the timer
20404 2004-08-24 10:16 jackson
20406 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
20407 picture boxes in the theme now. Draw picture box borders and obey
20410 2004-08-24 05:49 jackson
20412 * Timer.cs: Remove top secret debugging code
20414 2004-08-24 05:34 jackson
20416 * PictureBox.cs: Temp hack to make picture boxes draw their full
20419 2004-08-24 05:29 jackson
20421 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20422 XplatUIX11.cs: Move timers to the driver level. On X they are
20423 queued by the driver and checked on idle.
20425 2004-08-24 01:07 jackson
20427 * XplatUIX11.cs: Use a queue for async messages instead of passing
20428 them as ClientMessages since that was totally broken. Also simply
20429 check for events and return an idle message if none are found. This
20430 gives us an idle handler, and prevents deadlocking when no messages
20433 2004-08-23 18:19 ravindra
20435 * XplatUIWin32.cs: Removed the unwanted destructor.
20437 2004-08-23 17:27 pbartok
20440 - Finishing touches. Works now, just needs some optimizations.
20442 2004-08-23 16:53 jordi
20444 * ScrollBar.cs: small fix
20446 2004-08-23 16:45 pbartok
20449 - Removed debug output
20452 2004-08-23 16:43 jordi
20454 * ScrollBar.cs: [no log message]
20456 2004-08-23 16:10 pbartok
20459 - Fixed handling of WM_CLOSE message
20460 - Removed debug output
20462 2004-08-23 16:09 pbartok
20465 - Added handling of Idle event
20466 - Added handling of form closing
20467 - Fixed reporting of MessageLoop property
20468 - Removed some unneeded code, should provide a bit of a speedup
20470 2004-08-23 15:22 pbartok
20473 - Added InitLayout() method
20474 - Added code to properly perform layout when Anchor or Dock property
20476 - Changed 'interpretation' of ResumeLayout. MS seems to have a
20477 LAMESPEC, tried to do it in a way that makes sense
20479 2004-08-23 14:10 jordi
20481 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
20482 properties and methods
20484 2004-08-23 13:55 pbartok
20487 - Properly fixed Jordi's last fix
20488 - Now uses Cursor's Position property instead of calling XplatUI
20491 2004-08-23 13:44 jordi
20493 * PaintEventHandler.cs: Adding missing attribute
20495 2004-08-23 13:39 pbartok
20498 - Implemented Position property
20500 2004-08-23 13:39 pbartok
20502 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20503 - Added method to move mouse cursor
20505 2004-08-23 13:39 pbartok
20508 - Fixed setting of background color
20509 - Added method to move mouse cursor
20511 2004-08-23 13:16 jordi
20513 * Control.cs: avoids null exception
20515 2004-08-22 17:46 jackson
20517 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
20520 2004-08-22 17:40 jackson
20522 * XplatUIX11.cs: Add some missing locks
20524 2004-08-22 15:10 pbartok
20526 * Control.cs, Form.cs:
20527 - Removed OverlappedWindow style from Control, instead it's default
20529 - Made form windows OverlappedWindow by default
20531 2004-08-22 13:34 jackson
20533 * ScrollBar.cs: Update the position through the Value property so
20534 the OnValueChanged event is raised.
20536 2004-08-22 12:04 pbartok
20539 - Added Cursor.cs and UserControl.cs
20541 2004-08-22 12:03 pbartok
20544 - Started implementation, not usable yet
20546 2004-08-22 12:00 pbartok
20549 - Implemented UserControl (complete)
20551 2004-08-21 19:20 ravindra
20553 * ToolBar.cs: Correcting the formatting mess of VS.NET.
20555 2004-08-21 18:49 ravindra
20557 * ToolBar.cs: Probably this completes the missing attributes in
20560 2004-08-21 18:03 ravindra
20562 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
20563 Fixed toolbar control signatures.
20565 2004-08-21 16:32 pbartok
20570 2004-08-21 16:30 pbartok
20575 2004-08-21 16:19 pbartok
20577 * Control.cs, Label.cs:
20580 2004-08-21 15:57 pbartok
20583 - Added loads of debug output for development
20584 - Fixed typo in method name
20586 2004-08-21 15:52 pbartok
20588 * ToolBarButtonClickEventArgs.cs:
20589 - Added missing base class
20591 2004-08-21 14:53 pbartok
20594 - Updated to match new GrabWindow signature
20596 2004-08-21 14:51 pbartok
20598 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20599 - Added method to get default display size
20601 2004-08-21 14:23 pbartok
20603 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20604 - Added method to query current grab state
20605 - Added argument to allow confining a grab to a window
20607 2004-08-21 14:22 pbartok
20610 - Added [Flags] attribute so that modifiers can be used in bitwise
20613 2004-08-21 14:21 pbartok
20615 * TrackBar.cs, ScrollBar.cs:
20616 - Replaced direct XplatUI calls with their Control counterpart
20618 2004-08-21 13:32 pbartok
20621 - Implemented Created property
20623 2004-08-21 13:28 pbartok
20626 - Implemented ContainsFocus
20628 2004-08-21 13:26 pbartok
20631 - Implemented CausesValidation
20633 2004-08-21 13:21 pbartok
20636 - Implemented CanFocus
20637 - Implemented CanSelect
20638 - Implemented Capture
20640 2004-08-21 12:35 pbartok
20643 - Fixed bug with Async message handling
20644 - Implemented getting the ModifierKeys
20646 2004-08-21 12:32 jackson
20648 * AsyncMethodResult.cs: Make sure we have the mutex before we
20649 release it. Fixes BeginInvoke on windows
20651 2004-08-21 11:31 pbartok
20653 * XplatUIWin32.cs, XplatUIX11.cs:
20654 - Drivers now return proper mouse state
20656 2004-08-21 10:54 jackson
20658 * Control.cs: Implement EndInvoke
20660 2004-08-21 10:48 jackson
20662 * Timer.cs: Remove unneeded finalizer
20664 2004-08-20 19:52 ravindra
20666 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
20667 in mouse event handling in the ToolBar control.
20669 2004-08-20 19:50 ravindra
20671 * ImageList.cs: Changed draw method to use the arguments passed in
20674 2004-08-20 18:58 pbartok
20676 * XplatUIStructs.cs:
20677 - Added private message for async communication
20679 2004-08-20 17:38 ravindra
20681 * Control.cs: Made RightToLeft property virtual and removed a
20684 2004-08-20 14:39 jordi
20686 * ThemeGtk.cs: use style_attach
20688 2004-08-20 14:39 pbartok
20691 - Added jackson's Async code from X11 to Win32
20693 2004-08-20 14:09 pbartok
20696 - Added all new files
20698 2004-08-20 14:09 pbartok
20701 - Added call to set window background color
20703 2004-08-20 14:03 pbartok
20705 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
20706 - Added method for setting the window background
20708 2004-08-20 14:02 pbartok
20711 - Added method for setting the background color
20712 - Added handling for erasing the window background
20714 2004-08-20 13:45 jordi
20716 * TrackBar.cs: fixes timer, new properties and methods
20718 2004-08-20 13:34 jackson
20720 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
20723 2004-08-20 13:22 jackson
20725 * Timer.cs: Timer Tick events are now handed through Controls Async
20726 mechanism so the callbacks are executed in the same thread as X
20728 2004-08-20 13:19 jackson
20730 * XplatUIDriver.cs: Expose functionality to send async messages
20733 2004-08-20 13:18 jackson
20735 * Control.cs: Implement Begininvoke
20737 2004-08-20 13:14 jackson
20739 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
20740 messages through the driver
20742 2004-08-20 13:12 jackson
20744 * XplatUIX11.cs: Lock before all X operations. Also added Async
20745 method functionality through XSendEvent
20747 2004-08-20 13:11 jackson
20749 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
20750 This will screw up on 64 bit systems)
20752 2004-08-20 13:10 jackson
20754 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
20755 Async messages through X/Win32
20757 2004-08-19 19:39 pbartok
20760 - Updated code to match new HandleData.DeviceContext type
20762 2004-08-19 19:38 pbartok
20765 - Made DeviceContext a generic object to allow usage from various
20767 - Added support for queueing Windows messages
20769 2004-08-19 19:37 pbartok
20772 - Added generation of MouseEnter, MouseLeave and MouseHover events
20773 - Added cleanup on EndPaint
20775 2004-08-19 19:17 pbartok
20778 - Added handling of WM_MOUSEHOVER
20779 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
20782 2004-08-19 18:55 jordi
20784 * ThemeGtk.cs: fixes button order
20786 2004-08-19 18:12 jordi
20788 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
20790 2004-08-19 17:09 pbartok
20793 - Added Right property
20794 - Added RightToLeft property
20796 2004-08-19 16:27 jordi
20798 * ThemeGtk.cs: experimental GTK theme support
20800 2004-08-19 16:26 jordi
20802 * ITheme.cs, Theme.cs: move themes from an interface to a class
20804 2004-08-19 16:25 jordi
20806 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
20809 2004-08-19 16:04 pbartok
20812 - Added colormap basics
20813 - Added a way to re-initialize with a different display handle
20814 - Fixed setting of the window background color
20815 - Added various X11 imports related to colors and colormaps
20817 2004-08-19 15:51 pbartok
20820 - Removed packing hints (Paolo suggested this a while back)
20821 - fixed colormap type
20822 - Added default Atom types
20823 - Added Screen and color structs and enums
20825 2004-08-19 15:39 pbartok
20828 - Added missing Draw() method
20829 - Added missing RecreateHandle event
20831 2004-08-19 15:30 pbartok
20834 - Added handling of WM_CLOSE
20836 2004-08-18 13:16 jordi
20838 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
20841 2004-08-18 09:56 jordi
20843 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
20845 2004-08-17 15:31 ravindra
20847 * SWF.csproj: Updated project.
20849 2004-08-17 15:25 pbartok
20852 - Drawing improvement; don't call UpdateBounds if we are not visible
20853 (or have been minimized)
20855 2004-08-17 15:24 pbartok
20858 - Finished IsVisible
20859 - Added Win32GetWindowPlacement
20861 2004-08-17 15:08 jackson
20863 * Panel.cs: Initial checkin of the Panel
20865 2004-08-17 14:25 pbartok
20868 - Fixed broken handling of default window sizes
20870 2004-08-17 13:29 jackson
20872 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
20873 has a large startup time.
20875 2004-08-17 10:25 jackson
20877 * HandleData.cs: union areas properly
20879 2004-08-17 10:12 jackson
20881 * HandleData.cs: union areas properly
20883 2004-08-16 20:00 ravindra
20885 * ToolBar.cs, ToolBarButton.cs: Added attributes.
20887 2004-08-16 18:48 ravindra
20889 * ToolBar.cs: Added attributes.
20891 2004-08-16 17:17 ravindra
20893 * SWF.csproj: Updated project.
20895 2004-08-16 17:16 jackson
20897 * XplatUIX11.cs: Check for more expose events before sending a
20898 WM_PAINT so they can all be grouped together. This makes dragging a
20899 window across another window redraw in a sane way.
20901 2004-08-16 15:47 pbartok
20904 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
20905 support OnMouseEnter/Leave()
20906 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
20909 2004-08-16 15:46 pbartok
20911 * XplatUIStructs.cs, XplatUIX11.cs:
20912 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
20913 OnMouseEnter/Leave()
20915 2004-08-16 15:34 jackson
20917 * XplatUIX11.cs: Group multiple expose events in HandleData, make
20918 sure messages get the message field set to WM_NULL if they are not
20921 2004-08-16 15:24 jackson
20923 * HandleData.cs: HandleData is used for storing message information
20926 2004-08-15 17:23 ravindra
20928 * ColorDepth.cs: Added attribute.
20930 2004-08-15 17:23 ravindra
20932 * SWF.csproj: Updated project for ToolBar Control.
20934 2004-08-15 17:20 ravindra
20936 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
20937 control and also dos2unix format.
20939 2004-08-15 17:13 ravindra
20941 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
20942 ToolBarButtonClickEventArgs.cs,
20943 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
20944 ToolBarTextAlign.cs: First Implementation of ToolBar control.
20946 2004-08-15 15:31 pbartok
20949 - First (mostly) working version
20951 2004-08-13 16:15 pbartok
20954 - Fixed Anchor default
20956 2004-08-13 15:43 pbartok
20959 - Changed GetCursorPos signature
20961 2004-08-13 15:42 pbartok
20963 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20964 - Changed signature for GetCursorPos
20966 2004-08-13 15:25 pbartok
20970 - Fixed resizing/exposure handling
20972 2004-08-13 15:22 jordi
20974 * ThemeWin32Classic.cs: removes redundant code and fixes issues
20977 2004-08-13 14:55 jordi
20979 * TrackBar.cs: change from wndproc to events
20981 2004-08-13 13:00 jordi
20983 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20984 XplatUIX11.cs: implements PointToClient (ScreenToClient)
20986 2004-08-13 12:53 pbartok
20989 - Changed GetWindowPos to also provide client area size
20990 - Fixed broken prototypes for several win32 functions
20992 2004-08-13 12:53 pbartok
20994 * XplatUI.cs, XplatUIDriver.cs:
20995 - Changed GetWindowPos to also provide client area size
20997 2004-08-13 12:52 pbartok
21000 - Added generation of WM_POSCHANGED
21001 - Changed GetWindowPos to also provide client area size
21003 2004-08-13 12:52 pbartok
21006 - Added Dispose() and destructor
21007 - Fixed resizing and bounds calculation
21009 - Added memory savings for invisible windows
21011 2004-08-13 12:46 jordi
21013 * TrackBar.cs: adds timer and grap window
21015 2004-08-13 10:25 jackson
21017 * Timer.cs: SWF Timer
21019 2004-08-12 16:59 pbartok
21021 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21022 - Implemented method to get current mouse position
21024 2004-08-12 14:29 jordi
21026 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
21027 enhancement, fix mouse problems, highli thumb, etc
21029 2004-08-12 13:31 pbartok
21032 - Fixed Anchoring bugs
21034 2004-08-12 13:01 jackson
21036 * StatusBar.cs: Don't forget things
21038 2004-08-12 12:54 jackson
21040 * ThemeWin32Classic.cs: Handle owner draw status bars
21042 2004-08-12 12:54 jackson
21044 * StatusBar.cs: Implement missing properties, events, and methods.
21045 Handle mouse clicking
21047 2004-08-12 10:19 jackson
21049 * StatusBarPanelClickEventArgs.cs,
21050 StatusBarPanelClickEventHandler.cs: Classes for handling status
21051 bar panel click events
21053 2004-08-12 10:10 jackson
21055 * Control.cs: Add missing properties
21057 2004-08-12 09:46 pbartok
21059 * BindingsManagerBase.cs:
21060 - Name changed to BindingManagerBase.cs
21062 2004-08-12 09:25 jordi
21064 * ScrollableControl.cs: calls ctrlbase instead of exeception
21066 2004-08-11 16:28 pbartok
21068 * InputLanguageChangingEventArgs.cs:
21069 - Never check in before compiling. Fixes the last check-in
21071 2004-08-11 16:26 pbartok
21073 * InputLanguageChangingEventArgs.cs:
21074 - More signature fixes
21076 2004-08-11 16:20 pbartok
21078 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
21079 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
21080 ImageListStreamer.cs, InputLanguage.cs,
21081 InputLanguageChangedEventArgs.cs,
21082 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
21083 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
21084 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
21085 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21088 2004-08-11 16:16 pbartok
21092 - Added .Net 1.1 method
21094 2004-08-11 15:25 pbartok
21097 - Fixed BindingManagerBase.cs filename
21099 2004-08-11 15:22 pbartok
21101 * BindingManagerBase.cs:
21102 - Was checked in with wrong filename
21104 2004-08-11 14:50 pbartok
21109 2004-08-11 13:41 jordi
21111 * XplatUIWin32.cs: Fixes ClientRect
21113 2004-08-11 13:19 pbartok
21115 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21117 - We had SetWindowPos and MoveWindow to set window positions and
21118 size, removed MoveWindow. We have GetWindowPos, so it made sense to
21119 keep SetWindowPos as matching counterpart
21120 - Added some X11 sanity checking
21122 2004-08-11 12:59 pbartok
21125 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
21126 (It seems that SetBounds is just a front for SetBoundsCore and
21127 SetBoundsCore updates the underlying window system and
21128 UpdateBounds is responsible for updating the variables associated
21129 with the Control and sending the events)
21130 - Major cleanup of Size handling; we now have two sizes, client_size
21131 and bounds. Bounds defines the window with decorations, client_size
21134 2004-08-11 12:55 pbartok
21136 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21137 - Added method to calculate difference between decorated window and
21140 2004-08-11 12:54 pbartok
21143 - Forcing redraw on resize
21145 2004-08-11 11:43 pbartok
21148 - Removed disposing of the actual images when the list is disposed
21150 2004-08-11 09:13 pbartok
21153 - Now properly reparents windows
21155 2004-08-11 08:37 pbartok
21160 2004-08-11 07:47 pbartok
21163 - Rewrote the collection stuff. Might not be as fast now, not
21164 keeping the number of children around and accessible directly, but
21165 it's more straightforward
21167 2004-08-11 07:44 pbartok
21169 * AccessibleObject.cs:
21170 - Fixed to match ControlCollection rewrite
21172 2004-08-11 07:43 pbartok
21175 - Added missing creation of the collection list
21177 2004-08-10 20:08 jackson
21179 * StatusBar.cs: Get the paint message from WndProc
21181 2004-08-10 19:31 jackson
21183 * ThemeWin32Classic.cs: Create Brushes as little as possible
21185 2004-08-10 19:20 jackson
21187 * UICues.cs: Add Flags attribute
21189 2004-08-10 19:19 jackson
21191 * StatusBarPanel.cs: Signature cleanup
21193 2004-08-10 19:10 jackson
21195 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
21196 Initial implementation of status bar item drawing
21198 2004-08-10 17:27 jordi
21200 * TrackBar.cs: add missing methods, properties, and restructure to
21203 2004-08-10 16:24 jackson
21205 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
21206 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
21209 2004-08-10 13:21 jordi
21211 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
21212 enhancements and standarize on win colors defaults
21214 2004-08-10 12:52 jackson
21216 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
21217 ThemeWin32Classic.cs: Implement DrawItem functionality
21219 2004-08-10 12:47 jordi
21221 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
21223 2004-08-10 12:32 jordi
21225 * Control.cs: throw ontextchange event
21227 2004-08-10 11:43 pbartok
21230 - Added more to the still unfinished Dock/Anchor layout code
21232 2004-08-10 11:39 pbartok
21234 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
21235 - Added GetWindowPos method
21237 2004-08-10 11:36 pbartok
21240 - Implemented several methods
21242 2004-08-10 09:47 jackson
21244 * TrackBar.cs: Allow control to handle buffering
21246 2004-08-10 09:41 jackson
21248 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
21250 2004-08-10 09:24 jackson
21252 * Label.cs, LinkLabel.cs: Let Control handle buffering.
21254 2004-08-10 09:09 jackson
21256 * StatusBar.cs: Let Control handle all the buffering.
21258 2004-08-10 09:08 jackson
21260 * Control.cs: Control will now handle the buffering code, so each
21261 control does not have to implement this.
21263 2004-08-10 08:34 jackson
21265 * XplatUIDriver.cs: Use default colors from the theme
21267 2004-08-09 17:12 pbartok
21270 - Fixed several bugs Ravindra pointed out
21272 2004-08-09 16:11 pbartok
21275 - Added incomplete dock layout code
21276 - Added support for mouse wheel
21278 2004-08-09 16:09 pbartok
21281 - Added handling for middle and right mousebutton
21282 - Added handling for mouse wheel
21283 - Added handling for key state and mouse state and position
21284 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
21287 2004-08-09 15:40 jackson
21289 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
21290 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
21293 2004-08-09 15:37 jackson
21295 * StatusBar.cs: Initial implementation of StatusBar
21297 2004-08-09 15:36 jackson
21299 * ITheme.cs: Add support for drawing status bar and getting status
21302 2004-08-09 15:35 pbartok
21307 2004-08-09 15:34 jackson
21309 * ThemeWin32Classic.cs: Add support for drawing status bar and get
21310 status bar item sizes
21312 2004-08-09 15:21 jackson
21314 * ThemeWin32Classic.cs: Use known colors for default control
21317 2004-08-09 15:12 jackson
21319 * ThemeWin32Classic.cs: Make the default font static, it is static
21320 in control so this doesn't change functionality and creating fonts
21323 2004-08-09 14:56 pbartok
21326 - Added GrabMode enum
21328 2004-08-09 14:55 pbartok
21330 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21331 - Removed Run method, was only required for initial development
21333 2004-08-09 14:51 pbartok
21335 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21336 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
21339 2004-08-09 13:48 pbartok
21342 - Fixed default sizing for child windows
21344 2004-08-09 12:56 pbartok
21347 - Added generation of WM_DESTROY message
21348 - Added handling of window manager induced shutdown
21350 2004-08-09 11:31 jackson
21352 * ThemeWin32Classic.cs: New names for control properties
21354 2004-08-09 11:25 jackson
21356 * Control.cs: Use new color names
21358 2004-08-09 11:02 jackson
21360 * XplatUI.cs: Get default window properties from the theme
21362 2004-08-09 11:01 jackson
21364 * ITheme.cs: The theme engine now controls default window
21367 2004-08-09 11:00 jackson
21369 * ThemeWin32Classic.cs: Add default window color properties
21371 2004-08-09 10:17 jackson
21373 * ThemeWin32Classic.cs: Use correct default back color
21375 2004-08-09 10:05 jackson
21377 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
21380 2004-08-09 09:56 jackson
21382 * XplatUI.cs: Remove defaults, these are handled by the theme now.
21384 2004-08-09 09:54 jackson
21386 * Control.cs: Get default properties from the theme.
21388 2004-08-09 09:53 jackson
21390 * ITheme.cs: Themes now handle default control properties
21392 2004-08-09 09:53 jackson
21394 * ThemeWin32Classic.cs: Themes now handle default control
21395 properties so coloring will be consistent
21397 2004-08-08 16:54 jordi
21399 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
21401 2004-08-08 15:08 jordi
21403 * XplatUIX11.cs: fixes keyboard crash
21405 2004-08-08 13:47 jordi
21407 * Label.cs: add cvs header info
21409 2004-08-08 12:09 jackson
21411 * ThemeWin32Classic.cs: Add pen_buttonface
21413 2004-08-08 11:52 jordi
21415 * Label.cs, LinkLabel.cs: [no log message]
21417 2004-08-08 11:34 jordi
21419 * ThemeWin32Classic.cs: Use Windows Standard Colours
21421 2004-08-07 17:32 jordi
21423 * TrackBar.cs: throw exceptions of invalid enums values
21425 2004-08-07 17:31 jordi
21427 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
21430 2004-08-07 16:56 jackson
21432 * HorizontalAlignment.cs: Initial checkin
21434 2004-08-07 13:16 jordi
21436 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
21439 2004-08-07 13:05 jordi
21441 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
21442 GetSysColor defines
21444 2004-08-06 18:01 pbartok
21446 * ThemeWin32Classic.cs:
21447 - Fixed some rounding issues with float/int
21449 2004-08-06 18:00 jackson
21451 * DockStyle.cs, AnchorStyles.cs:
21453 Add flags and serializable attributes.
21455 2004-08-06 17:46 pbartok
21458 - Implemented GetParent
21460 2004-08-06 17:18 pbartok
21463 - Fixed some rounding issues with float/int
21465 2004-08-06 17:17 pbartok
21467 * X11Structs.cs, XplatUIX11.cs:
21468 - Fixed Refresh and Invalidate
21470 2004-08-06 15:30 pbartok
21472 * Control.cs, X11Structs.cs, XplatUIX11.cs:
21473 - Fixed recursive loop when resizing
21474 - Improved/fixed redrawing on expose messages
21476 2004-08-06 09:53 jordi
21478 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
21479 keyboard navigation
21481 2004-08-06 08:02 pbartok
21483 * X11Structs.cs, XplatUIX11.cs:
21484 - Fixed reparenting
21485 - Fixed window border creation
21487 2004-08-05 15:38 pbartok
21490 - Attempted fix for reparenting problems
21492 2004-08-04 15:14 pbartok
21495 - Fixed Invalidation bug (calculated wrong client area)
21496 - Added ClientSize setter
21498 2004-08-04 15:13 pbartok
21501 - Added AutoScale properties
21503 2004-08-04 15:13 pbartok
21506 - Added latest files
21508 2004-08-04 14:11 pbartok
21510 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21512 - Added Invalidate handling
21514 2004-08-03 17:09 jordi
21516 * XplatUIDriver.cs: fixes spelling mistake
21518 2004-07-27 09:53 jordi
21520 * TrackBar.cs: fixes trackbar events, def classname, methods
21523 2004-07-27 09:29 jordi
21525 * ScrollBar.cs: fixes scrollbar events
21527 2004-07-27 04:38 jordi
21529 * Control.cs: changes to be able to run winforms samples
21531 2004-07-26 11:42 jordi
21533 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
21534 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
21536 2004-07-26 05:41 jordi
21538 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
21539 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
21542 2004-07-22 09:22 jordi
21544 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
21545 check link overlapping, implement events, and fixes
21547 2004-07-21 10:28 jordi
21549 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
21551 2004-07-21 10:19 jordi
21553 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
21554 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
21555 LinkLabelLinkClickedEventArgs.cs,
21556 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
21557 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
21560 2004-07-19 13:09 jordi
21562 * Control.cs, Label.cs: label control re-written: added missing
21563 functionlity, events, and properties
21565 2004-07-19 10:49 jordi
21567 * Control.cs: fixes SetBounds logic
21569 2004-07-19 01:29 jordi
21571 * Control.cs: Call RefreshWindow only if the window has created
21573 2004-07-15 14:05 pbartok
21575 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
21576 - Implemented ImageList and ImageList.ImageCollection classes
21577 - Added ColorDepth enumeration
21578 - Updated SWF VS.Net project
21580 2004-07-15 11:06 jordi
21582 * XplatUIStructs.cs: added MsgButons enum
21584 2004-07-15 11:03 jordi
21586 * Control.cs: added basic mouse handeling events
21588 2004-07-15 03:38 jordi
21590 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
21591 Vertical TrackBar control implementation
21593 2004-07-13 09:33 jordi
21595 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
21597 2004-07-13 09:31 jordi
21599 * Control.cs, Form.cs: commit: new properties and fixes form size
21602 2004-07-09 14:13 miguel
21604 * ProgressBar.cs: Spelling
21606 2004-07-09 11:25 pbartok
21609 - Removed usage of Rectangle for drawing. Miguel pointed out it's
21612 2004-07-09 11:17 miguel
21614 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
21616 * ProgressBar.cs: Fixed spelling for `block'
21618 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
21621 Avoid using the += on rect.X, that exposed a bug in the compiler.
21623 2004-07-08 23:21 pbartok
21625 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
21626 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
21627 BaseCollection.cs, Binding.cs, BindingContext.cs,
21628 BindingMemberInfo.cs, BindingsCollection.cs,
21629 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
21630 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
21631 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
21632 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
21633 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
21634 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
21635 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
21636 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
21637 FrameStyle.cs, GiveFeedbackEventArgs.cs,
21638 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
21639 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
21640 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
21641 InputLanguageChangedEventArgs.cs,
21642 InputLanguageChangedEventHandler.cs,
21643 InputLanguageChangingEventArgs.cs,
21644 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
21645 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
21646 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
21647 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
21648 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
21649 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
21650 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
21651 QueryAccessibilityHelpEventArgs.cs,
21652 QueryAccessibilityHelpEventHandler.cs,
21653 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
21654 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
21655 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
21656 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
21657 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
21658 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
21659 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
21660 XplatUIX11.cs, lang.cs: