1 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3 * MenuAPI.cs: When deselect items deselect also selected subitems.
5 2006-12-23 Everaldo Canuto <everaldo@simios.org>
7 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
8 FindSubItemByCoord to found itens that is not active, also an
9 cheking added to FindSubItemByCoord to search for items only
10 in visible popup windows. Fixes #80274.
12 2006-12-22 Everaldo Canuto <everaldo@simios.org>
14 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15 internal property, it be care about change ExStyle.
17 2006-12-22 Andreia Gaita <avidigal@novell.com>
19 * ContainerControl.cs: set activeControl for parent forms up the
20 tree when the new activecontrol is a container.
21 When validating the active control, if it is a container, also
22 raise up the validation for it's active control. Fixes #80280
24 * Control.cs: Add internal property flag and check to prevent
25 Focus events from getting raised when Select() is called for
26 a ContainerControl. There are still too many focus events being
27 raised at the moment though.
28 Cleaned up the code a bit.
30 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
32 * Control.cs: Added all missing 2.0 events.and
33 fixed a couple of corcompare issues.
34 * TrackBar.cs: Implemented missing 2.0 bits.
37 * MdiClient.cs: Fixed some corcompare issues.
39 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
41 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
42 SplitterPanel.cs: corecompare work.
44 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
46 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
47 Clean up warnings for BackgroundImageChanged and PaddingChanged
48 events now that they are implemented in Control.cs.
50 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
52 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
54 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
55 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
56 of TableLayoutPanel and supporting cast.
58 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
61 - GrabWindow now confines the mouse pointer to the confine window.
62 - Added Win32ClipCursor and Win32GetClipCursor.
65 - Added CaptureWithConfine to be able to capture and confine
68 * InternalWindowManager.cs:
69 - Call CaptureWithConfine instead of Capture if we're an
70 MdiChild (fixes #79982).
72 2006-12-21 Chris Toshok <toshok@ximian.com>
74 * DataGrid.cs: guard against the initial state of selection, where
75 selection_start == -1. make sure we only select from index >= 0.
78 2006-12-21 Chris Toshok <toshok@ximian.com>
80 * Control.cs: we don't need to be so draconian with
81 UpdateDistances, and we thusly don't need to call it before
82 calling PerformLayout in ResumeLayout. Fixes bug #80289.
84 2006-12-21 Daniel Nauck <dna@mono-project.de>
87 TextBox.cs: Implemented AutoComplete properties.
89 2006-12-20 Chris Toshok <toshok@ximian.com>
91 * DataGridView*.cs: some corecompare work.
93 2006-12-20 Jackson Harper <jackson@ximian.com>
95 * XplatUIX11.cs: We need to hide the caret when deleting it,
96 otherwise you get carets left lying around everywhere.
97 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
98 prevents getting some weird half drawn caret tracers when
100 * TextControl.cs: Attempt to reduce the number of times we need to
103 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
105 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
107 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
110 - Implemented missing 2.0 bits.
111 - Changed some default values to match MS.
113 2006-12-20 Jackson Harper <jackson@ximian.com>
115 * TextBoxBase.cs: When changing the font across the document we
116 can't recalculate after changing each line, since that will cahnge
118 - PreferredHeight is a little different than i thought.
119 - When backspacing, move the caret before we do the actual char
120 delete, because when that delete crosses a wrap boundary the
121 positional information will change.
123 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
125 * Control.cs: Added some missing 2.0 bits:
126 BackgroundImageLayout, BackgroundImageLayoutChanged,
127 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
128 add IBindableComponent and IDropTarget implementation.
131 - Added all missing 2.0 features:
132 BackgroundImageLayout, RightToLeftLayout,
133 OnHandleDestroyed, RightToLeftLayoutChanged,
134 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
136 - Rewrote all the BoldDate code, it was completely broken.
137 - Fixed all the tests (the tests can now be re-enabled, the
138 problems were not with the tests, but with the control, it was
141 * DateTimePicker.cs: Changed the location where the
142 MonthCalendar is shown.
144 2006-12-19 Chris Toshok <toshok@ximian.com>
146 * DataGridView.cs: add IDropTarget implementation.
148 * ToolStripPanel.cs: add IDropTarget implementation.
150 2006-12-19 Jackson Harper <jackson@ximian.com>
152 * TextControl.cs: soft now means something different than what it
153 used to mean, we want to move the caret regardless of whether or
154 not this break was soft (would we really have wanted the caret
155 to not move with the break in the old context?)
156 * TreeView.cs: Make sure we factor in the vert scrollbar when
157 calculating the horizontal scrollbar's maximum.
159 2006-12-19 Andreia Gaita <avidigal@novell.org>
161 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
162 check for keywords in alternate casing, close bug #80049.
164 2006-12-19 Chris Toshok <toshok@ximian.com>
166 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
167 methods (which all do nothing).
169 * IDropTarget.cs: add the 4 missing methods.
171 2006-12-19 Chris Toshok <toshok@ximian.com>
173 * TableLayoutRowStyleCollection.cs: corcompare work.
175 * TableLayoutSettings.cs: same.
177 * TableLayoutStyle.cs: same.
179 * TableLayoutColumnStyleCollection.cs: same.
181 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
183 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
184 TableLayoutPanel I've had in my local tree for way too long.
186 2006-12-19 Miguel de Icaza <miguel@novell.com>
188 * TableLayoutSettings.cs: Finish the public API (still needs all
189 the logic to update on changes).
191 * TableLayoutPanelCellPosition.cs: new file.
193 * TableLayoutRowStyleCollection.cs,
194 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
195 TableLayoutSettings.cs: Track the final 2.0 table api.
197 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
199 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
200 and Image List 2.0 members for ColummnHeader.
201 * ListView.cs: Add key-related 2.0 methods for
202 ColumnHeaderCollection.
204 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
206 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
207 ArgumentNullException if items argument is null. Ignore null item in
208 arrays. Removed extra tabs.
210 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
212 * MonthCalendar.cs: Fixed InvalidCastException.
214 2006-12-19 Jackson Harper <jackson@ximian.com>
216 * TextControl.cs: Don't increment the position here.
217 - When calculating char positions only add in the line break size
218 for hard line breaks.
220 2006-12-19 Andreia Gaita <avidigal@novell.org>
222 * SendKeys.cs: Changed some things to match ms.net behaviour
223 when parsing shifted capital letters.
225 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
226 Add window handle as parameter to SendInput. X11 needs the
227 window handle, and the handle being passed to it in the keys
228 queue is the active control handle (which windows needs), not
231 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
232 to support SendKeys on X.
234 * X11Keyboard: Implement helper method to lookup a linux keycode
235 given the virtual keycode. Added table of keycode-2-virtualkey
236 values to support this.
238 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
240 * ListView.cs: Add support for SelectedIndexCollection
241 and SelectedItemCollection 2.0 methods. Implement support
243 * ListViewItem.cs: Add support for ListViewSubItemCollection
244 2.0 methods. Also, fix an incorrect behavior of AddRange method
245 (it shouldn't call Clear).
246 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
248 2006-12-19 Jackson Harper <jackson@ximian.com>
251 * TextBoxBase.cs: New args for FormatText
252 * TextControl.cs: Rewrote the main drawing method, this version
253 feels a little easier to understand and debug to me. Hopefully it
255 - Fix FormatText to OR in the new formating values. Added
256 FormatSpecified param, basically this works in the same way as
257 BoundsSpecified in Control.
258 - Set the caret properties when the caret is positioned.
259 - When wrapping text make sure that we calculate the width of the
261 - when calculating alignments we might have wrapped down to the
262 next line, so don't search for an individual tag, search for the
264 - We need to invalidate the selection area when we replace the
267 2006-12-19 Daniel Nauck <dna@mono-project.de>
269 * Application.cs: add Restart () 2.0 support
271 2006-12-18 Everaldo Canuto <everaldo@simios.org>
273 * MenuItem.cs: Invalidate menu item rectangle after change Enable
274 property. Fixes #80268.
276 2006-12-18 Everaldo Canuto <everaldo@simios.org>
278 * MenuAPI.cs: Dont trigger select event when closes top menu
281 2006-12-18 Everaldo Canuto <everaldo@simios.org>
283 * MenuAPI.cs: When you click on menuitem only trigger onselect
284 event for top menu itens. Fixes #80271.
286 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
288 * MdiWindowManager.cs: Make IconicBounds depend on
289 the bottom of MdiClient, not the top (fixes #80267)
291 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
293 * MdiClient.cs: Added missing 2.0 attribute
295 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
297 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
298 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
300 2006-12-18 Everaldo Canuto <everaldo@simios.org>
302 * MenuAPI.cs: Fix click when menuitem is not popup,
303 this regression was caused by last commit (#80272).
305 2006-12-17 Everaldo Canuto <everaldo@simios.org>
307 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
308 fire click event or close menu. Fixes #80272.
310 2006-12-17 Daniel Nauck <dna@mono-project.de>
312 * ListViewHitTestInfo.cs: add
314 2006-12-17 Daniel Nauck <dna@mono-project.de>
316 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
317 * FlatButtonAppearance.cs: add
318 * DockingAttribute.cs: add
320 2006-12-17 Chris Toshok <toshok@ximian.com>
322 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
323 and rebind our columns when it does - this way, if you make
324 changes to the DataTable (or set the Table attribute on a DataView
325 after setting it as the DataGrid's DataSource, the changes are
326 made visible.) Fixes bug #80107.
328 2006-12-17 Daniel Nauck <dna@mono-project.de>
330 * ListViewGroup.cs: add internal Location property for layouting.
331 * Theme.cs: add abstract ListViewGroupHeight function.
332 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
334 2006-12-16 Andreia Gaita <avidigal@novell.com>
336 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
337 Added reset of selected index to 0 when adding first tab page.
340 * NumericUpDown.cs: Fix NET_2_0 check
342 2006-12-16 Daniel Nauck <dna@mono-project.de>
344 * ListViewGroup.cs: fixed DefaultValueAttribute value
346 2006-12-16 Daniel Nauck <dna@mono-project.de>
348 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
350 2006-12-15 Miguel de Icaza <miguel@novell.com>
352 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
353 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
354 ScrollableControl.cs: Add a handful of methods that are
357 2006-12-15 Chris Toshok <toshok@ximian.com>
359 * XplatUIWin32.cs: initial implementation of the Reversible
360 drawing functions. there are some problems. DrawReversibleFrame
361 doesn't seem to work at all for Dashed FrameStyle, and in the
362 Thick case there are drawing errors at the corners (we probably
363 need to bind Rectangle instead of doing moveto/lineto's.)
365 2006-12-16 Andreia Gaita <avidigal@novell.com>
367 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
368 to send blocks of key messages. Send accumulates keys to send with Flush,
369 while SendWait sends all keys immediately.
371 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
372 XplatUIX11.cs, XplatUIX11-new.cs:
373 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
375 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
377 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
378 testing for ms.net on this class is very tricky, as the tests run too fast
379 to allow the hook to release, essentially freezing the keyboard and the
380 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
383 2006-12-16 Daniel Nauck <dna@mono-project.de>
385 * Padding.cs: fixed serialization compability to MS ("_var" field names),
386 added missing attributes.
388 2006-12-15 Daniel Nauck <dna@mono-project.de>
390 * ListViewGroup.cs: Added missing attributes.
391 * ListViewGroupCollection.cs: Added missing attributes.
393 2006-12-15 Daniel Nauck <dna@mono-project.de>
395 * ListViewItem.cs: fixed ListViewSubItem text property.
397 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
399 * Control.cs: Added missing 2.0 attributes
401 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
403 * MdiClient.cs: Added missing 2.0 attribute.
404 * MonthCalendar.cs: Added some missing 2.0 attributes
407 2006-12-15 Daniel Nauck <dna@mono-project.de>
409 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
411 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
413 * MainMenu.cs: Add the new 2.0 constructor to help out people
414 using the MainMenu in VS2005.
416 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
418 * MdiChildContext.cs: Removed it, no longer used.
419 * MdiClient.cs: Added missing 2.0 attributes.
421 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
423 * InternalWindowManager.cs: Fix a NullRef with previous
424 changes for toolwindows.
426 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
429 - Added AfterTopMostControl to allow for certain controls
430 to always stay on top when normal controls are brought to
434 - (DrawInversibleRectangle): Get window rectangle from Win32
435 in stead of from control, since Win32 doesn't calculate
436 screen coords correctly from control's Location if it
437 have docked siblings.
439 * MdiWindowManager.cs:
440 - Correct the control menu popup location when clicked on
441 the maximized form icon. (fixes #80223.1)
442 - Don't show moving rectangle if mouse hasn't moved from
443 the original clicked point.
444 - Removed FormGotFocus handler (not used).
445 - Calculate the control buttons location from the main
446 window's size and not client size (fixes #79770).
447 - Form is now closed when the form icon is double-clicked
449 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
451 * InternalWindowManager.cs:
452 - Moved some MDI-only methods to MdiWindowManager.
453 - Removed unused properties and methods.
454 - Unified method naming for methods handling wm messages.
455 - Moved all message handling to seperate methods for
458 * ThemeWin32Classic.cs:
459 - DrawManagedWindowDecorations now draws the title bar
460 with a gradient brush.
461 - Add a CPDrawButtonInternal that allows us to specify
462 light, normal and dark colors for the buttons (control
463 buttons for MDI children were drawn with the same light
464 color as the background, therefore loosing the 3D effect).
467 - Add a CapturedControl property that is used to
468 determine the control to resize (defaults to parent).
469 Needed for MdiClient, since its SizeGrip's parent is
470 MdiClient, but the control to resize is the main form.
473 - Set SizeGrip's CapturedControl to the main form in order
474 to resize the main form and not the MdiClient.
475 - Override AfterTopMostControl to leave the scrollbars
478 2006-12-15 Daniel Nauck <dna@mono-project.de>
480 * ListView.cs: fixed ListViewItemCollection AddRange and
481 implemented ListViewItemCollection AddRange 2.0 support.
483 2006-12-15 Daniel Nauck <dna@mono-project.de>
485 * ListViewGroup.cs: Add.
486 * ListViewGroupCollection.cs: Add
487 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
488 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
489 stub for ImageKey 2.0 support.
491 2006-12-14 Mike Kestner <mkestner@novell.com>
493 * ListView.cs: add text padding to the autocalculation for columns
494 of width -2. Fixes #80207.
496 2006-12-14 Mike Kestner <mkestner@novell.com>
498 * ListView.cs: add some index guarding for partial row navigation
501 2006-12-14 Mike Kestner <mkestner@novell.com>
503 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
504 are added or inserted to the collection. Fixes #81099.
506 2006-12-13 Everaldo Canuto <everaldo@simios.org>
508 * MenuAPI.cs: Closes menu when right click out side of popup
509 it fix problem in ContextMenu and MainMenu. Fixes #80252.
511 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
513 * ListViewItem.cs: Fix dumb error.
515 * ListView.cs: Add Find and ContainsKey methods in
516 ListViewItemCollection, and also return true for IsReadOnly
517 and IsFixedSize (changes for 2.0).
519 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
521 * Control.cs: Allow Region to be set to null.
523 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
525 * MdiWindowManager.cs: Remove unused (commented out) code.
526 * Form.cs: When the MdiChild is maximized, the form needs
527 WM_NCMOUSELEAVE, so request it.
528 * InternalWindowManager.cs:
529 - Added tooltips to control buttons.
530 - Removed duplicated control button handling code.
531 - Removed unused (commented out) code.
533 2006-12-12 Everaldo Canuto <everaldo@simios.org>
535 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
536 was used because we must set cursor without trigger ChangeCursor event
537 and without change Cursor control property. Fixes #79963.
539 2006-12-12 Andreia Gaita <avidigal@novell.com>
541 * Control.cs: Check if Region setter value is null, and ignore
543 2006-12-12 Jackson Harper <jackson@ximian.com>
545 * TextControl.cs: We were almost always drawing one more line then
546 needed, since the GetLineByPixel will return the last line found
547 at that pixel. In most cases though, we were invalidating up to
548 the junction between two lines.
549 - Improve debug code.
551 2006-12-12 Chris Toshok <toshok@ximian.com>
553 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
554 and FillReversibleRectangle.
556 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
557 and FillReversibleRectangle.
559 * XplatUIWin32.cs: add stubs which do nothing for
560 DrawReversibleFrame, DrawReversibleLine, and
561 FillReversibleRectangle.
563 * XplatUIOSX.cs: add stubs which raise NIE for
564 DrawReversibleFrame, DrawReversibleLine, and
565 FillReversibleRectangle.
567 * XplatUIX11.cs: add working implementation for
568 DrawReversibleFrame, DrawReversibleLine, and
569 FillReversibleRectangle.
571 * ControlPaint.cs: implement DrawReversibleFrame,
572 DrawReversibleLine, and FillReversibleRectangle, by calling into
573 the appropriate XplatUI method.
575 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
577 * Form.cs: Make MdiClient have the focus even if it's
578 not selectable, since it should receive WM_KEY* and WM_MOUSE
579 messages. Fixes #79907.
581 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
583 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
584 queried after the window is created.
586 * XplatUIX11.cs: Added SendParentNotify to implement
587 WM_PARENTNOTIFY logic. Fixes #79965.
589 * Control.cs: Added MakeParam.
591 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
593 * MdiClient.cs: Resume Layout before setting window
594 states (fixes #80201).
596 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
598 * MenuAPI.cs: Deselect a menu item after performing
599 the click (fixes #80197).
601 2006-12-11 Jackson Harper <jackson@ximian.com>
603 * TextBoxBase.cs: We need to cap this value, since Maximum -
604 ViewPortHeight can be less than zero.
605 - Only do selection with the left mouse button.
606 * TextBox.cs: Don't tell the world that we have a context menu.
607 * Control.cs: New method so that we can control whether or not the
608 context menu is visible outside MWF.
610 2006-12-11 Everaldo Canuto <everaldo@simios.org>
612 * ToolBarButton.cs: Fix text positon.
614 2006-12-11 Miguel de Icaza <miguel@novell.com>
616 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
618 * Control.cs (DoubleBuffered): Add implementation.
620 * Application.cs (OpenForms): Add.
622 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
624 * Form.cs: Use opacity instead of Opactiy to determine if we need
625 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
627 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
629 * Control.cs: Fix NRE if Control.Site was set to null.
631 2006-12-11 Chris Toshok <toshok@ximian.com>
633 * Control.cs: ControlCollection.Remove should return if the arg is
634 null, and ControlCollection.SetChildIndex should raise a ANE.
636 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
638 * Control.cs: Verify value set for Dock property. Code formatting
641 2006-12-11 Jackson Harper <jackson@ximian.com>
643 * TextControl.cs: Draw the caret and the selection when a flag is
645 * TextBoxBase.cs: We want to draw the caret and the selection for
646 TextBox but not for TextBoxBase.
647 - If the window is resized and scrolling is no longer needed (the
648 whole doc is visible) set the scroll position to zero.
649 - The default SelectWord (the one TextBox uses) should move the
650 caret to the end of the word.
651 - SelectAll moves the caret to the end of the selection.
652 * TextBox.cs: We don't selectall on focus, we just do it when the
655 2006-12-11 Mike Kestner <mkestner@novell.com>
657 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
659 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
661 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
663 * ListViewItem.cs: Add Name 2.0 property.
665 2006-12-11 Andreia Gaita <avidigal@novell.com>
667 * TabControl.cs: Set visibility on selected or default tab
668 when tabcontrol handle is created, so that it's contents
669 actually show up (duh). Fixes #80193
670 Don't redraw the control if there is no handle created, as
671 the selected index might be completely invalid. Added some tests
674 2006-12-11 Everaldo Canuto <everaldo@simios.org>
676 * ToolBar.cs: Uses maximun width and height of all buttons as
677 button rectangle when ButtonSize specified, it looks strange but
678 is what happens in Win32. Fixes #80189.
680 2006-12-11 Jackson Harper <jackson@ximian.com>
682 * TextControl.cs: Need to track undo levels ourself, since
683 compound actions will mess them up.
685 2006-12-10 Andreia Gaita <avidigal@novell.com>
687 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
688 SelectedIndex value is changed (even if it's not valid).
689 Reset SelectedIndex to 0 when the handle is created and if
690 the current index is invalid.
691 Fixes SelectdeIndex unit tests and #80128
693 2006-12-08 Chris Toshok <toshok@ximian.com>
695 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
696 calls EndEdit, it needs to be called before we set current_cell to
697 its new value. Otherwise, we end up committing the value in the
698 textbox to the new cell as well. Fixes bug #80160.
700 2006-12-08 Chris Toshok <toshok@ximian.com>
702 * Form.cs (set_CancelButton): if the button's DialogResult is
703 None, set it to Cancel. Fixes bug 80180.
705 2006-12-08 Jackson Harper <jackson@ximian.com>
707 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
708 to watch ourselves when setting the canvas size and setting the
711 2006-12-08 Chris Toshok <toshok@ximian.com>
713 * DataGrid.cs: comment out the two MakeTransparent calls for the
714 time being so people using trunk (and not 1.2.2) on windows can
715 actually use the datagrid. This deals with bug #80151.
717 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
719 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
720 Graphics.DrawImage (image, int, int, int, int) overload instead
721 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
722 the dpi difference and was blurring images it drew.
725 2006-12-08 Chris Toshok <toshok@ximian.com>
727 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
728 rowcnt is 0 (such as with an empty datasource), and make sure we
729 initialize not_usedarea.Y to cells.Y, so we don't draw over the
730 other areas (caption, parent row, etc, etc). Fixes bug #80095.
732 2006-12-08 Chris Toshok <toshok@ximian.com>
734 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
737 2006-12-08 Chris Toshok <toshok@ximian.com>
741 * ThemeWin32Classic.cs: don't draw the image if the button's flat
742 style is FlatStyle.System.
744 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
745 ButtonBase.flat_style private, and switch uses of it to the public
748 2006-12-08 Chris Toshok <toshok@ximian.com>
752 * ThemeWin32Classic.cs: center the caption text in the datagrid
755 * DataGrid.cs: lessen the amount we add to the caption height from
756 6 to 2. 6 was making it huge.
758 2006-12-08 Andreia Gaita <avidigal@novell.com>
760 * UpDownBase: Handle MouseWheel call directly instead of capturing
761 the inner textbox's OnMouseWheel. Fixes #80166
763 2006-12-08 Jackson Harper <jackson@ximian.com>
765 * TextControl.cs: We need to invalidate the textbox when we empty
766 it (how had this not been discovered before?)
768 2006-12-08 Jackson Harper <jackson@ximian.com>
770 * TextBoxBase.cs: Reworked the mouse down code so I could get it
771 to behave like MS, we now ignore the eventargs.Click and just
772 track state ourself, which we were already doing anyways.
773 - Constrain the double click handler to the double click size.
775 2006-12-08 Chris Toshok <toshok@ximian.com>
777 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
778 direction if that scrollbar isn't shown. fixes bug #80158.
780 2006-12-08 Andreia Gaita <avidigal@novell.com>
782 * NumericUpDown.cs: Update value on getter. Fixes #79950
784 2006-12-08 Chris Toshok <toshok@ximian.com>
786 * MenuItem.cs: add back in the event cloning code. I didn't know
787 how to do it in the face of the EventHandlerList work i'd done
788 last week. Fixes bug #80183.
790 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
792 * Control.cs: Add an invalidate to the BackgroundImage setter.
795 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
797 * ToolStrip*: Add some small properties reported by MoMA, fix event
798 firing and default properties based off of unit tests, and add some
799 attributes based off of the class status page.
801 2006-12-07 Jackson Harper <jackson@ximian.com>
803 * TextBoxBase.cs: Take HideSelection into account when determining
804 whether or not to show the selection.
805 * RichTextBox.cs: After inserting the RTF into the document move
806 the cursor to the beginning of the document.
808 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
810 * Control.cs: Remove static ArrayList "controls" which maintained
811 a reference to every control created.
812 * Application.cs: Create a static FormCollection to maintain a reference
813 to every form created. Use it in places that formerly enumerated through
814 the controls one looking for forms.
815 * Form.cs: Add and remove self from above FormCollection.
817 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
819 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
820 not libgdk (though it makes me wonder why I didn't have any
823 2006-12-07 Chris Toshok <toshok@ximian.com>
825 [ you had to know this was coming after that last commit...]
827 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
828 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
829 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
832 2006-12-07 Chris Toshok <toshok@ximian.com>
834 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
835 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
836 all the behavior we need for double buffering.
838 * XplatUIDriver.cs: implement the 3 double buffer methods using a
839 client side Bitmap, just like the old Control-based double buffer
840 code did. The methods are virtual, so each XplatUI driver
841 subclass can replace the implementation to use a faster, platform
844 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
845 double buffer code, and clean things up a bit in the process.
847 2006-12-06 Chris Toshok <toshok@ximian.com>
849 * Control.cs: reindent WndProc.
851 2006-12-06 Chris Toshok <toshok@ximian.com>
853 [ I wanna be like BenM when I grow up ]
855 * Hwnd.cs: create a single static Graphics object on the static
856 Bitmap we create. use this for our text measurements.
858 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
859 This was causing us to allocate a backbuffer for every control,
860 even when it wasn't flagged as double buffered. Instead use the
861 single graphics instance. This might have implications for
862 multithreaded applications. If we run into problems we can switch
863 to creating 1 Graphics per control, on the static Hwnd bitmap.
865 this change nets us a 7M savings in private dirty mappings when
866 running FormsTest.exe.
868 2006-12-06 Chris Toshok <toshok@ximian.com>
870 * ListView.cs: the BackgroundImage override is just to set
871 attributes. chain up to base.BackgroundImage.
873 * RichTextBox.cs: same.
875 * ToolBar.cs: same, but we need to also redraw the toolbar when it
876 changes, so instead a handler for BackgroundImageChanged.
878 * Control.cs: make background_image private.
880 2006-12-06 Chris Toshok <toshok@ximian.com>
882 * ScrollBar.cs: change the assignment of cursor to Cursor. not
883 sure we even need this assignment, but roll with it for now.
885 * Control.cs: make the cursor field private.
887 2006-12-06 Chris Toshok <toshok@ximian.com>
889 * Form.cs: we don't need to explicitly set ImeMode to
890 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
891 behavior in the face of ImeMode.Inherit.
893 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
894 change the ctor's assignment to use ImeMode instead of ime_mode.
896 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
897 ImeModeInherit. Only check for the parent's imemode (and return
898 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
899 This fixes the button unit test, which sets both ImeMode and
900 DefaultImeMode to ImeMode.Disable.
902 also make the ime_mode field private.
904 2006-12-06 Chris Toshok <toshok@ximian.com>
906 * Control.cs: make control_style private.
908 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
909 setting the styles to true, then setting them to false instead of
910 reverting to their previous values.
912 also, call SetStyle on the scrollbars instead of using
913 control_style directly.
915 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
917 * FormCollection.cs: Implement. [2.0]
919 2006-12-06 Chris Toshok <toshok@ximian.com>
921 * Control.cs: make tab_stop private.
923 * Label.cs: set TabStop, not tab_stop. reformat some event
924 add/remove methods to make them more compact.
926 2006-12-06 Chris Toshok <toshok@ximian.com>
928 * RadioButton.cs: fix TabStop handling.
930 2006-12-06 Chris Toshok <toshok@ximian.com>
932 * TextBox.cs: remove the explicit assignments to has_focus.
935 * ButtonBase.cs: remove the assignment to has_focus. Control will
938 2006-12-06 Chris Toshok <toshok@ximian.com>
940 * ButtonBase.cs: remove all uses of is_enabled from this code.
941 it's always true when any of the code containing the checks is
944 2006-12-06 Chris Toshok <toshok@ximian.com>
946 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
947 with different semantics (some are present in both 1.1 and 2.0
948 profiles) so that we match MS's behavior in our unit tests.
950 2006-12-06 Jackson Harper <jackson@ximian.com>
952 * TextControl.cs: Make this operation undoable.
953 * TextBoxBase.cs: Factor the border width into the preferred
955 - implement Modified as per the spec.
957 2006-12-06 Chris Toshok <toshok@ximian.com>
959 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
961 2006-12-06 Chris Toshok <toshok@ximian.com>
963 * Control.cs: make right_to_left and context_menu fields private.
965 2006-12-06 Chris Toshok <toshok@ximian.com>
967 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
968 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
969 Control.child_controls private. switch all uses over to
972 2006-12-06 Chris Toshok <toshok@ximian.com>
974 * System.Windows.Forms/GroupBox.cs,
975 System.Windows.Forms/AccessibleObject.cs,
976 System.Windows.Forms/ErrorProvider.cs,
977 System.Windows.Forms/Control.cs,
978 System.Windows.Forms/UpDownBase.cs,
979 System.Windows.Forms/ScrollBar.cs,
980 System.Windows.Forms/DateTimePicker.cs,
981 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
982 System.Windows.Forms/ToolTip.cs,
983 System.Windows.Forms/RadioButton.cs,
984 System.Windows.Forms/LinkLabel.cs,
985 System.Windows.Forms/Splitter.cs,
986 System.Windows.Forms/TextBoxBase.cs,
987 System.Windows.Forms/ToolStripTextBox.cs,
988 System.Windows.Forms/ContainerControl.cs,
989 System.Windows.Forms/ThemeWin32Classic.cs,
990 System.Windows.Forms/SizeGrip.cs,
991 System.Windows.Forms/ToolStripDropDown.cs,
992 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
993 private. switch all uses over to Control.Parent.
995 2006-12-06 Chris Toshok <toshok@ximian.com>
997 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
998 Control does this before calling emitting these events.
1000 * TabControl.cs: same.
1002 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
1003 Control.client_rect.
1005 * ButtonBase.cs: use the ClientSize property instead of the
1008 * ScrollableControl.cs: same.
1010 * Control.cs: another pass at making properties private. also,
1011 move the initialization of tab_stop to the ctor.
1013 2006-12-05 Andreia Gaita <avidigal@novell.com>
1015 * TabControl.cs: Let the selected index be set freely if the
1016 control handle is not yet created.
1018 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1020 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
1021 internal until I can rewrite DefaultLayout.
1022 * ToolStrip.cs: Fix build error and some general cleaning.
1023 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
1024 Fix build errors caused by making some of Control's fields private.
1026 2006-12-05 Jackson Harper <jackson@ximian.com>
1028 * TextControl.cs: Redo Insert a little so that it use IndexOf
1029 instead of Split, this prevents it from messing up on things like
1030 \n\n\n. Also more effecient since the split array doesn't need to
1032 * TextBoxBase.cs: AppendText doesnt handle multiline and non
1033 multiline text differently, this is the first of many fixes that
1034 will make multiline/non-multiline the same thing as far as the
1035 TextBoxBase is concerned.
1036 - Don't split the text and insert lines, this can lose some line
1037 endings (like is the last line a soft or hard break). Instead use
1039 - Fix an off by one when combining all the lines in the Text
1041 - Remove separate multiline handling from the Text getter/setter.
1043 2006-12-05 Chris Toshok <toshok@ximian.com>
1045 * ButtonBase.cs: a few changes:
1047 - don't reinitialize internal Control fields in the ctor when they
1048 have the same values as Control sets them.
1050 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
1051 this before calling those methods.
1053 - we don't need to call Refresh for anything. use Invalidate
1056 - OnEnabledChanged doesn't need to redraw at all - Control.cs
1057 calls Refresh in its OnEnabledChanged.
1059 - several of the events we were registered for in the ctor to
1060 redraw ourselves already include calls to Invalidate in the
1061 property setters that raise the events. remove the extra
1064 - reformat a switch statement that was 83274658 columns wide.
1066 2006-12-05 Mike Kestner <mkestner@novell.com>
1068 * ComboBox.cs: fix a unit test regression from a TextBox
1069 SelectionLength return of -1 when there's no selection.
1071 2006-12-05 Chris Toshok <toshok@ximian.com>
1073 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
1074 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
1075 cleaning up some of the internal Control fields being used by
1078 2006-12-05 Mike Kestner <mkestner@novell.com>
1080 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
1081 listbox after AddImplicit calls since it defaults to hidden. Add a
1082 hack to preserve requested heights across DropDownStyle changes.
1084 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
1086 * PropertyGrid.cs: Hide FindFirstItem method from public API.
1088 2006-12-05 Chris Toshok <toshok@ximian.com>
1090 * DataGridView.cs: fix compiler warnings.
1092 * PrintControllerWithStatusDialog.cs: same.
1096 * FolderBrowserDialog.cs: same.
1098 * Splitter.cs: same.
1100 * DataGridViewComboBoxCell.cs: same.
1102 * XplatUIWin32.cs: same.
1104 * PictureBox.cs: same.
1106 * Win32DnD.cs: same.
1108 * PageSetupDialog.cs: same.
1110 * FileDialog.cs: same.
1112 * PrintDialog.cs: same.
1114 * DataGridTextBoxColumn.cs: same.
1116 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
1118 2006-12-05 Chris Toshok <toshok@ximian.com>
1120 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
1121 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
1122 System.ComponentModel.EventHandlerList work.
1124 2006-12-05 Jonathan Chambers <joncham@gmail.com>
1126 * DrawTreeNodeEventArgs.cs: Added.
1128 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1130 * InternalWindowManager.cs: Remove an unused field.
1132 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1134 * InternalWindowManager.cs:
1135 - Save the point where the title bar is clicked.
1137 * MdiWindowManager.cs:
1138 - Only allow moving of the window as long as the
1139 clicked point on the title bar does not get out of
1140 MdiClient's rectangle. Fixes #79982.
1143 - Added Horizontal/VerticalScrollbarVisible.
1144 - Simplified the scrollbar sizing algorithm.
1145 - Cache the difference in scrolled value in
1146 H/VBarValueChanged and move the calculation out
1149 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1151 * Control.cs: Make the Console.WriteLine in WndProc
1154 2006-12-05 Chris Toshok <toshok@ximian.com>
1156 * ToolStripManager.cs, ToolStripButton.cs,
1157 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
1158 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
1159 ToolStripSplitButton.cs, ToolStripSeparator.cs,
1160 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
1161 ToolStripProgressBar.cs, ToolStripContainer.cs,
1162 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
1163 to using System.ComponentModel.EventHandlerList.
1165 2006-12-04 Chris Toshok <toshok@ximian.com>
1167 * LinkLabel.cs: fix up compiler warnings.
1169 * TableLayoutSettings.cs: same.
1171 * TreeView.cs: same.
1175 * TabControl.cs: same.
1177 * RichTextBox.cs: same.
1179 * ListViewItem.cs: same.
1181 * PropertyGrid.cs: same.
1183 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
1187 * TextRenderer.cs: fix up compiler warnings.
1191 * Form.cs: corcompare fixes.
1193 * PictureBox.cs: fix up compiler warnings.
1195 * ImageListStreamer.cs: same.
1197 * TrackBar.cs: corcompare fix.
1199 * Control.cs: fix up compiler warnings.
1201 * SplitterPanel.cs: same.
1203 * NumericTextBox.cs: same.
1205 * ImageList.cs: same.
1207 * StatusStrip.cs: same.
1209 * ProgressBar.cs: corcompare fix.
1211 * ToolStripButton.cs: fix up compiler warnings.
1213 * ToolStripStatusLabel.cs: same.
1215 * ToolStripSplitButton.cs: same.
1217 * ToolStripSeparator.cs: same.
1219 * ToolStripProgressBar.cs: same.
1221 * ToolStripDropDownMenu.cs: same
1223 * ToolStripDropDown.cs: same.
1225 * ToolStripDropDownButton.cs: same.
1227 * ToolStrip.cs: same.
1229 * ToolStripControlHost.cs: same.
1231 * ToolStripContentPanel.cs: same.
1233 * ToolStripDropDown.cs: same.
1235 * ToolStripContainer.cs: same.
1237 * ToolStripPanel.cs: same, and add "new" where we need it to work
1238 with the new ArrangedElementCollection.
1240 * ToolStripItemCollection.cs: add "new" where we need it to work
1241 with the new ArrangedElementCollection.
1243 2006-12-04 Andreia Gaita <avidigal@novell.com>
1245 * TabControl.cs: Fix default tab selection to after TabControl
1246 gets focus and not before. Fixes #80128
1248 2006-12-04 Chris Toshok <toshok@ximian.com>
1250 * DataGridTableStyle.cs: remove the gross calling of
1251 datagrid.Refresh from here. It's a broken idea and it doesn't
1254 * DataGrid.cs: instead, just register/unregister from the
1255 DataGridTableStyle events in CurrentTableStyle. we play it
1256 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
1257 even though some would most likely not require it. Fixes bug
1258 #80115 (and one portion of #80117 as a side effect).
1260 2006-12-04 Chris Toshok <toshok@ximian.com>
1262 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
1263 so the textbox (if any) goes away. Fixes bug #80117.
1265 2006-12-04 Chris Toshok <toshok@ximian.com>
1267 * DataGridColumnStyle.cs: set the column's readonly property
1268 initially based on the property descriptor's IsReadOnly. Fixes
1271 2006-12-04 Chris Toshok <toshok@ximian.com>
1273 * ComboBox.cs: wrap the dropdown style changing work in
1274 SuspendLayout/ResumeLayout. Fixes bug #79968.
1276 2006-12-04 Jackson Harper <jackson@ximian.com>
1278 * TextBoxBase.cs: Fix off by one, since these are one-based.
1279 * TextBox.cs: Select all the text when we get focus. The TextBox
1280 does this but the RTB does not.
1282 2006-12-04 Chris Toshok <toshok@ximian.com>
1284 * DataGridTextBoxColumn.cs: remove some spew.
1286 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
1287 but some part of me is saying "it shouldn't be here.." At any
1288 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
1291 2006-12-04 Chris Toshok <toshok@ximian.com>
1293 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
1294 to reassign the propertydescriptor.
1296 2006-12-04 Jackson Harper <jackson@ximian.com>
1299 * TextControl.cs: Remove some unused variables. Maybe this will
1300 patch things up between mike and I.
1301 - don't split lines less then one char wide, if the viewport is
1302 that small text won't be visible anyways.
1304 2006-12-04 Jackson Harper <jackson@ximian.com>
1306 * TextBoxBase.cs: Default selection length is -1, need to do some
1307 more testing on windows to see when this is used for the property.
1308 - Redid the Lines [] property to that we properly remove soft line
1310 - added support for preserving carriage returns
1311 - CanUndo is not a variable like 'is undo enabled' it just returns
1312 true if there is undo operations available.
1313 - AppendText doesn't need to grab the last tag itself anymore,
1314 this happens automatically when we move the cursor.
1315 * TextControl.cs: Add CompoundActions to the undo class. This
1316 allows combining the other operations into one big option. ie a
1317 paste will combine { delete old, insert new, move cursor }
1318 - Add InsertString undo operation
1319 - New method for deleting multiline text
1320 - Add carriage returns to lines. So we can preserve carriage
1321 returns when text is 'roundtripped'
1323 2006-12-04 Chris Toshok <toshok@ximian.com>
1325 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
1326 minimum 0. Fixes the scrollbar exception in bug #80136.
1328 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1331 * MdiWindowManager: Removed unused fields and methods.
1333 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1335 * StatusBar.cs: Update all panels when a AutoSize=Contents
1336 panel needs updating.
1338 * StatusBarPanel.cs: Remove twidth and only use initialize.
1341 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1343 * Form.cs: When a form's MdiParent is set add it directly
1344 on top of the z-order in stead of relying on MdiClient's
1345 ActivateChild to do it. Fixes #80135.
1348 - Remove original_order, mdi_child_list is already doing
1350 - Create mdi_child_list on construction in
1351 stead of first use (avoids a few null checks).
1353 * MenuItem.cs: Use an already existing list of mdi children
1354 to get the correct order of children and remove the other
1357 2006-12-04 Chris Toshok <toshok@ximian.com>
1359 * PropertyGridView.cs: cached_splitter_location is only used in
1362 * PropertyGrid.cs: implement the ComComponentNameChanged event
1363 using Events, hoping that would fix the warning. Looks like a
1364 compiler bug instead (#80144).
1366 * PropertyManager.cs: remove unused method.
1368 2006-11-04 Everaldo Canuto <everaldo@simios.org>
1370 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
1371 include parentesis to fix expression evaluation. Fixes #79634.
1373 2006-11-02 Everaldo Canuto <everaldo@simios.org>
1376 - Changes to fix behavior in Menu control, some reported in #80097
1377 and other detected during behavior refactory like a select event
1379 - Remove unneded "if's" conditions.
1380 - Created an internal to flag when popup is active in control, we need
1381 it because in .NET you can have menu active but without popup active
1382 when you active menu using popup without visible items.
1383 - Mimic win32 behavior for Select and Popup events.
1384 - Dont open popup menu when you dont have visible subitems.
1385 - Do nothing when click on disabled menu item.
1386 - Some small changes to follow the coding style guidelines.
1387 - Unselect menu only when another control gives focus. Fixes #80097.
1388 - Remove unused code.
1390 * MenuItem.cs: internal VisibleItems method to check if menu
1391 theres visible subitems, it will be usefull to fix some
1392 behavior in Menu control.
1394 2006-11-01 Everaldo Canuto <everaldo@simios.org>
1396 * Timer.cs: Tag property for 2.0 profile.
1398 2006-12-01 Chris Toshok <toshok@ximian.com>
1400 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
1402 * Win32DnD.cs: comment out some unused fields.
1404 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
1405 some unused properties/methods.
1407 * XplatUIX11.cs: fix MousePosition so we override the base class's
1408 property instead of conflicting with it.
1410 * PictureBox.cs: comment out some unused fields
1412 * OSXStructs.cs: make some struct fields public.
1414 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
1415 MousePosition so we override the base class's property instead of
1416 conflicting with it.
1418 * X11Dnd.cs: comment out some unused fields
1420 * X11DesktopColors.cs: fix some struct field visibility to quiet
1423 * X11Dnd.cs: remove some debug code.
1425 * ThemeClearlooks.cs: comment out unused field.
1427 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
1429 * ThemeGtk.cs: comment out some unused pinvokes.
1431 * Timer.cs: remove some unused fields.
1433 * ThemeClearlooks.cs: comment out unused field.
1435 * UpDownBase.cs: comment out unused field.
1437 * DataObject.cs: comment out unused field.
1439 * DataGridBoolColumn.cs: reomve unused field.
1441 * DataGrid.cs: remove unused field.
1443 * Cursor.cs: remove old ToBitmap code.
1445 * ControlPaint.cs: remove unused method.
1447 * ScrollBar.cs: remove unused fields.
1449 * ComboBox.cs: remove unused field, and chain up to
1450 AccessibleObject ctor.
1452 * ListBox.cs: remove unused field.
1454 * ButtonBase.cs: wrap a couple fields in NET_2_0.
1456 * GridEntry.cs: remove unused fields.
1458 * Binding.cs: remove unused fields.
1460 * AxHost.cs: remove unused method.
1462 * ContainerControl.cs: remove unused field.
1464 * ScrollableControl.cs: remove unused fields.
1466 2006-12-01 Chris Toshok <toshok@ximian.com>
1468 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
1469 the Where/WhereString stuff. it's easy enough to CWL
1470 Environment.StackTrace.
1472 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
1473 unused private fields.
1475 2006-12-01 Jackson Harper <jackson@ximian.com>
1477 * TextControl.cs: Do not update the view while inserting multiline
1478 text. If we update the view we might wrap lines, before entering
1479 the new lines, which causes the new line insertion calculations to
1481 - Remove an old TODO
1482 - Make debug output a little nicer
1484 2006-12-01 Chris Toshok <toshok@ximian.com>
1486 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
1488 2006-12-01 Chris Toshok <toshok@ximian.com>
1490 [ fix the majority of the CS0108 warnings we've been suppressing ]
1492 * TreeView.cs: mark BackgroundImageChanged as 'new'.
1494 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
1495 to "LayoutToolBar" to quiet mcs.
1497 * TabControl.cs: mark our ControlCollection class as 'new'.
1499 * TextBoxBase.cs: mark some events as 'new'.
1501 * Splitter.cs: TabStop is 'new'.
1503 * ControlBindingsCollection.cs: mark a few methods as new since
1504 they change the visibility from protected to public.
1506 * RadioButton.cs: DoubleClick -> base class, and remove unused
1509 * MonthCalendar.cs: ImeMode property -> base class, and mark many
1512 * NumericUpDown.cs: TextChanged -> base class.
1514 * CheckedListBox.cs: mark our ObjectCollection class as new to
1517 * FolderBrowserDialog.cs: make HelpRequest event new and have it
1518 muck with the base class.
1520 * StatusBar.cs: fix some mcs warnings about Update being the same
1521 name as a base class method.
1523 * RichTextBox.cs: mark some events as new, and make them do things
1524 to the base class impl.
1526 * UserControl.cs: mark TextChanged as new, and have it manipulate
1529 * UpDownBase.cs: mark some things new.
1531 * CheckBox.cs: mark DoubleClick "new", and add some text about
1532 what we need to look at.
1534 * Panel.cs: make the events "new", and manipulate the base
1535 version. these are just here for attributes.
1537 * AccessibleObject.cs: make owner private.
1539 * Control.cs: deal with AccessibleObject.owner being private.
1540 cache our own copy if we need it.
1542 * Button.cs: add "new" to the DoubleClickEvent.
1544 * ListBox.cs: no need to track our own has_focus here. let
1545 Control.has_focus do it for us. Also some other work to clear up
1546 warnings about not overriding base class methods of the same name.
1548 * ComboBox.cs: clear up some warnings about not override base
1549 class methods of the same name.
1551 2006-12-01 Chris Toshok <toshok@ximian.com>
1553 * Form.cs: flag a few things as "new" to quiet some of the mcs
1558 * PrintPreviewDialog.cs: same.
1560 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
1561 now DGV isn't so horrible on the class status page. also, move
1562 all events to using System.ComponentModel.EventHandlerList. my
1565 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
1567 * MdiWindowManager.cs:
1568 - Set form to active mdi child if shown,
1569 and update the active mdi child to the next
1570 remaining child in the z-order if the form is hidden.
1573 - Track if the form has been visible and if its
1574 visibility is beeing changed, so that the MdiClient
1575 can properly decide the ActiveMdiChild. The MdiClient
1576 cannot track this since the form can change visibility
1577 before MdiClient is created.
1580 - Don't activate anything of the parent form is changing
1582 - Rework ActiveMdiChild to only return visible mdi
1583 children and take into account several other corner
1586 2006-12-01 Chris Toshok <toshok@ximian.com>
1588 * IBindableComponent.cs: new 2.0 interface.
1590 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
1592 * DataGrid.cs: Font for caption area is bold by default.
1594 2006-12-01 Everaldo Canuto <everaldo@simios.org>
1596 * Menu.cs: Tag property for 2.0.
1598 2006-11-01 Everaldo Canuto <everaldo@simios.org>
1600 * ThemeWin32Classic.cs: Adjust menu separator drawing.
1602 2006-12-01 Chris Toshok <toshok@ximian.com>
1604 * TreeView.cs: doh, the Begin* events should be
1605 TreeViewCancelEventHandler.
1607 2006-12-01 Chris Toshok <toshok@ximian.com>
1609 * Form.cs: Form.ControlCollection already stores off the
1610 form_owner field. don't access the base class's internal "owner"
1613 * Control.cs: make all the fields in Control.ControlCollection
1614 private. there's no need for any internal fields here.
1616 2006-12-01 Chris Toshok <toshok@ximian.com>
1618 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
1619 OnHandleCreated. Fixes bug #80109.
1621 2006-12-01 Chris Toshok <toshok@ximian.com>
1623 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
1624 SplitContainer.cs, Control.cs, StatusStrip.cs,
1625 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
1626 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
1627 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
1628 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
1629 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
1630 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
1631 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
1632 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
1633 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
1634 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
1636 do most of the work to convert our code over to use
1637 System.ComponentModel.Component.Events for
1638 adding/removing/dispatching events.
1641 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
1643 * DataGridView.cs: Fix an ArgumentNullException reported
1646 2006-11-30 Mike Kestner <mkestner@novell.com>
1648 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
1649 grabbed listbox. Fixes #80036 and #80101.
1651 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1653 * Message.cs: Changed ToString() to match MS.
1655 2006-11-30 Jackson Harper <jackson@ximian.com>
1657 * TextBoxBase.cs: You can still change the selected text on a read
1659 * TextControl.cs: Lower magic number for wrap calculations. This
1660 lets text get closer to the right (far) edge.
1662 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
1664 * Control.cs: Tweak 2.0 layout properties.
1665 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
1666 * TextRenderer.cs: Add a new overload.
1667 * ToolStrip*: Huge amount of changes and new features.
1669 2006-11-30 Mike Kestner <mkestner@novell.com>
1671 * ComboBox.cs: fixes for LargeChange and Maximum to get the
1672 scroll range correct. Fixes #79994.
1674 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1676 * MdiWindowManager.cs: Update main form's text when
1677 a form is closed. (fixes #80038)
1679 2006-11-30 Everaldo Canuto <everaldo@simios.org>
1682 - Fix an regression in ButtonSize.
1683 - Get ImeMode default value change to "Disable".
1684 - Get ShowTooltips default value change to true, default value is
1685 "false" but after make a test in .NET we get "true" result as default.
1687 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
1689 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
1691 2006-11-29 Chris Toshok <toshok@ximian.com>
1693 * XplatUIWin32.cs (GetWindowTransparency): check return value of
1694 GetLayeredWindowAttributes. if it's 0, return 1.0, as
1695 SetWindowTransparency hasn't been called.
1697 2006-11-29 Chris Toshok <toshok@ximian.com>
1699 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
1701 (set_AllowTransparency): reorder things a little so that the
1702 WS_EX_LAYERED style is removed properly.
1704 2006-11-29 Chris Toshok <toshok@ximian.com>
1706 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
1708 * Form.cs: only call the XplatUI transparency method (get/set) if
1709 SupportsTransparency says it's supported. Otherwise fallback to
1710 doing nothing (in the set case) or returning the instance field we
1711 cache (in the get case).
1713 * XplatUIStructs.cs: add TransparencySupport flag enum.
1715 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
1716 change to SupportsTransparency.
1718 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
1719 TransparencySupport.None from SupportsTransparency.
1721 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
1722 TransparencySupport.Set from SupportsTransparency.
1724 * XplatUIWin32.cs: implement GetWindowTransparency calling
1725 GetLayeredWindowAttributes, and implement SupportsTransparency by
1726 checking whether or not both
1727 GetWindowTransparency/SetWindowTransparency are available
1728 entrypoints. We need to do this since SetWindowTransparency is
1729 available as of win2k, but GetWindowTransparency requires winxp.
1732 * XplatUI.cs: Add GetWindowTransparency, and change
1733 SupportsTransparency to allow for either/both Get/Set.
1735 2006-11-29 Chris Toshok <toshok@ximian.com>
1737 * DataGrid.cs: keep from going into an infinite loop redrawing a
1738 datagrid that has no datasource. Fixes bug #80033.
1740 2006-11-29 Chris Toshok <toshok@ximian.com>
1742 * MenuItem.cs: fix the NRE when we assign text (and therefore call
1743 Invalidate) before the mainmenu has been assigned to a control.
1745 2006-11-29 Chris Toshok <toshok@ximian.com>
1747 * DataGrid.cs: detect when we should be double the double click
1748 row/column autosize stuff, although that codepath has yet to be
1749 written. part of the work for bug #79891.
1751 2006-11-29 Chris Toshok <toshok@ximian.com>
1753 * Binding.cs (SetControl): fix unit test.
1755 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1757 * PageSetupDialog.cs: Validate the margins and set them in
1759 * NumericTextBox.cs: New class to mimic the behavior of the
1760 textboxes used in the printing dialogs.
1762 2006-11-29 Andreia Gaita <avidigal@novell.com>
1764 * Form.cs: Revert previous change (remove call UpdateBounds
1765 from form constructor), because it messes with the handle creation
1766 order, and that one needs lots and lots of love.
1767 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
1768 for valid printer and throw InvalidPrinterException if document
1769 is set but printer not valid), adding a MonoTODO. Once
1770 handle creation is done properly, we can put this back in.
1772 2006-11-28 Everaldo Canuto <everaldo@simios.org>
1774 * MenuItem.cs: Create a invalidate method for menu item, to be
1775 calling from set text, it make text changes to imadiate update
1776 on screen. Fixes #80013.
1778 2006-11-28 Everaldo Canuto <everaldo@simios.org>
1780 * ToolBar.cs: Fixes and simplify toolbar button layout, it
1781 fixes bug #80070 and some other problem on toolbar buttons
1784 2006-11-28 Everaldo Canuto <everaldo@simios.org>
1786 * ThemeWin32Classic.cs: Paint toolbar toggle button background
1787 with dotted brush. Fixes #79564
1789 2006-11-28 Andreia Gaita <avidigal@novell.com>
1791 * Form.cs: Removed call to UpdateBounds on Form
1792 constructor, it was causing a call to CreateHandle
1793 before it was supposed to.
1794 * PrintControllerWithStatusDialog: Applied patch
1795 by Chris Toshok to hide controller when there are
1796 no printers available.
1797 PrintDialog.cs: initialize printer settings to
1798 null - correct DefaultValues test #5
1799 * PrintPreviewControl.cs: Move PrintController
1800 initialization to GeneratePreview
1801 * PrintPreviewDialog.cs:
1802 - Remove Preview generation from Document_set(). It is
1804 - Throw InvalidPrinterException on CreateHandle if
1805 a Document is set but there are no printers or
1806 printer is not valid.
1807 * ThemeWin32Classic: don't paint PrintPreviewControl
1808 if there is nothing to paint
1810 2006-11-28 Miguel de Icaza <miguel@novell.com>
1812 * Form.cs: Add another popular method.
1814 * TabPage.cs: ditto.
1816 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1818 * MenuItem.cs: Fixed a warning.
1819 * InternalWindowManager: Fixed a warning.
1821 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1824 - When cloning a menu also clone MdiList and clone the
1825 window menu items properly (as the forms and menuitems
1826 are kept in an internal hashtable, these need updating
1828 - Rewrote the window menu code, menu items are added in the
1829 order the forms were added to their parent, and they are
1830 updated every time the window menu is shown (before the
1831 list was only generated once, in the current order of the
1832 forms, and would never be updated). A checkmark is shown
1833 next to the item corresponding to the active mdi child.
1835 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1837 * XplatUIStructs.cs:
1838 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
1841 - Added TME_NONCLIENT to TMEFlags.
1842 - Handles WM_NCMOUSEMOVE in GetMessage to
1843 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
1846 - Now merges mdi child menu to parent menu when maximized.
1847 - Recalculate NC areas of both mdi child and mdi parent.
1849 on window state and size changes.Fixes #79844 (3).
1850 - Handle WM_NCCALCSIZE to properly calculate borders.
1853 - Add/remove to the mdi containers list of mdi children
1854 in the order they are added.
1855 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
1856 to the maximized mdi child.
1858 * InternalWindowManager.cs:
1859 - Only execute a click on the control buttons on the mouse up,
1860 not on the mouse down. Show the state of the button
1861 (was only showing Normal state, never Pressed state). The
1862 pressed button now follows the mouse (if you click the Close
1863 button and move the mouse over the Maximize button, the
1864 Maximize button will be shown as pressed). Since Win32 does
1865 not generate WM_NCLBUTTONUP if you release the button outside
1866 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
1869 * ThemeWin32Classic.cs:
1870 - Draw a missing border around mdi child forms. Fixes #79844 (2).
1873 - Added a list of forms which contains the order the forms are
1874 added to the mdi parent.
1875 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
1876 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
1877 - If the active form changes set the scrollbars to the top
1878 of the Z order, otherwise the form could hide them.
1879 - Scrollbars are now sized according to ClientSize, not
1880 to Size, and they take into account the other scrollbar
1881 to determine maximum.
1883 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1890 - Added RequestAdditionalWM_NCMessages for windows to
1891 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
1892 Currently only implemented in XplatUIWin32.
1894 2006-11-27 Chris Toshok <toshok@ximian.com>
1896 * Hwnd.cs: only add the hwnd to the windows hash in
1897 set_WholeWindow and set_ClientWindow if whole_window/client_window
1898 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
1900 2006-11-27 Mike Kestner <mkestner@novell.com>
1902 * ComboBox.cs: remove redundant OnDropDown call. It is called
1903 from the ComboListBox.ShowWindow code. Fixes #79969.
1905 2006-11-27 Chris Toshok <toshok@ximian.com>
1907 * Hwnd.cs: remove the setters for ExposePending and
1908 NCExposePending - noone uses them.
1910 2006-11-27 Jackson Harper <jackson@ximian.com>
1912 * TextControl.cs: new param for ReplaceSelection which determines
1913 whether we select the new selection, or set the cursor to the end
1914 of the new selection.
1915 * TextBoxBase.cs: Use new param for ReplaceSelection. When
1916 pasting, select the new text.
1917 * RichTextBox.cs: Use new param for ReplaceSelection.
1919 2006-11-27 Jackson Harper <jackson@ximian.com>
1921 * TextBoxBase.cs: Set the selection to the caret after the caret
1922 is moved, otherwise they get out of sync.
1924 2006-11-26 Everaldo Canuto <everaldo@simios.org>
1926 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
1929 2006-11-26 Everaldo Canuto <everaldo@simios.org>
1931 * ThemeWin32Classic.cs:
1932 - Fix toolbar drop down arrow position.
1933 - Fix drop down appearance when ToolBar.Appearance is normal,
1936 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
1938 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
1940 * UpDownBase.cs: Same.
1941 * ButtonBase.cs: Same.
1942 * ScrollBar.cs: Same.
1943 * TrackBar.cs: Same.
1944 * PictureBox.cs: Same.
1945 * UserControl.cs: Same.
1947 * ListControl.cs: Same.
1948 * TextBoxBase.cs: Same.
1949 * ListView.cs: Same.
1950 * RichTextBox.cs: Same.
1951 * TreeView.cs: Same.
1953 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
1956 - Text label for where
1957 - Text label comment was not shown
1959 2006-11-23 Everaldo Canuto <everaldo@simios.org>
1961 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
1963 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1965 * InternalWindowManager.cs:
1966 - Handle WM_PARENTNOTIFY to activate the form
1967 if any child control is clicked.
1968 - The form is only sizable if not minimized.
1970 * MdiWindowManager.cs:
1971 - Save the IconicBounds if the form is moved.
1972 - Rework SetWindowState, now the window bounds
1973 are stored only if the old window state is Normal.
1976 - In SetWindowStates store the old window state if
1977 the window is maximized and restore window state if
1978 the window looses focus.
1979 - Don't handle any scrollbar value changes if
1980 initializing the scroll bars. Fixes #79771.
1981 - Reworked ArrangeIconicWindows. Current algorithm
1982 tests bounds agains all other minimized windows, if
1983 any intersections create new bounds (going left to
1984 right, bottom to top) and then test again. When
1985 successful the bounds are saved and never computed
1986 again. Fixes #79774.
1988 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1990 * InternalWindowManager.cs: Added HandleTitleBarUp.
1992 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
1994 * NumericUpDown.cs: In .NET 1.1, user entered text is still
1995 hexadecimal in ParseUserEdit.
1998 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2000 * MdiWindowManager.cs:
2001 - Handle a click on the form's icon to show the
2002 system menu (when maximized). Fixes #79775.
2003 - Change the existing click handler for the form's
2004 icon when not maximized to show on MouseUp.
2007 * Form.cs: In OnResize only layout the mdi child's
2008 parent if it actually has a parent. Might not if
2009 the window is closing.
2012 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2014 * MdiClient.cs: Ignore active MDI client for text of parent, if
2015 child has no text set.
2017 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
2019 * ToolBar.cs: Fixed ToString to match MS.
2021 2006-11-22 Andreia Gaita <avidigal@novell.com>
2024 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
2025 update inner values on set. Fixes #79966.
2026 - Override OnLostFocus to update value on NET 2. Fixes #79950.
2027 - Fix hexadecimal parsing.
2029 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
2030 parent. Fixes #79957
2032 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2034 * Control.cs: After calling SetWindowsPos in SetBoundsCore
2035 the actual size has to be queried, since if height /
2036 width is negative Win32 changes it to 0.
2037 Fixes #79999 on Windows.
2039 * XplatUIX11.cs: Set height / width to 0 if negative
2040 in SetWindowPos. Fixes #79999 on Linux.
2042 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2044 * ThemeWin32Classic.cs: Fix text redenring when button is
2047 2006-11-22 Everaldo Canuto <everaldo@simios.org>
2049 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
2050 and later navigate by mouse. Fixes #79528.
2052 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2054 * ToolBar.cs: Set default value for TabStop to false in
2055 constructor, it fixes remaining behavior of bug #79863.
2057 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2059 * MdiWindowManager.cs:
2060 * InternalWindowManager.cs:
2061 - Moved a few methods specific to Mdi from
2062 InternalWindowManager to MdiWindowManager.
2065 2006-11-21 Chris Toshok <toshok@ximian.com>
2067 * XplatUIOSX.cs: stub out InvalidateNC.
2069 * XplatUIWin32.cs: implement InvalidateNC using the call I found
2070 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
2072 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
2074 * XplatUIDriver.cs: add InvalidateNC abstract method.
2076 * XplatUI.cs: add InvalidateNC.
2078 2006-11-21 Everaldo Canuto <everaldo@simios.org>
2080 * ToolBar.cs: Invalidate complete button area when pressed status
2082 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
2083 * ThemeWin32Classic.cs: Increase vertical and horizontal position
2084 by 1 when button is pressed.
2086 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2088 * ToolButton.cs: Invalidate middle of DropDown button when
2089 ToolBar theres DropDownArrows.
2090 * ThemeWin32Classic.cs: Change position of DropDown arrow and
2091 fix DropDown drawing operations.
2093 2006-11-20 Chris Toshok <toshok@ximian.com>
2095 * NativeWindow.cs: fix the formatting of functions ('{' on the
2096 following line), and enable the thread exception dialog.
2098 * Application.cs: remove the duplicate exception catching from
2101 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2103 * Toolbar.cs: Triggers button click event when click on icon
2104 of dropdown ToolBarButton. Fixes #79912.
2106 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2109 * ThemeWin32Classic.cs:
2110 - Added a property WindowBorderFont to enable themeing
2111 of mdi child windows' Text.
2113 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2115 * InternalWindowManager.cs:
2118 * MdiWindowManager.cs:
2119 - If mdi child is maximized, set mdi parent's
2120 text to "Parent - [Child]". Fixes #79770.
2121 - If there is any maximized mdi child windows, only the active
2122 window (and any new windows) is maximized, the rest are normal.
2123 - On a WindowState change only save mdi child's window bounds
2124 if the old window state was normal. Fixes #79774.
2125 - The scroll bars are now calculated on hopefully all
2126 necessary events. Fixed #79771 / #79844->6 / #79906.
2127 - MdiClient.SizeScrollBars() now takes into account docked
2128 controls in the parent when calculating available space.
2129 - InternalWindowManager now always repaints the entire title
2130 area. Fixes #79844->1/4/5.
2131 - Added RequestNCRecalc on mdi child windowstate changes.
2134 2006-11-20 Mike Kestner <mkestner@novell.com>
2136 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
2137 in the MouseUp handler of the listbox and move the return handling
2138 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
2140 2006-11-20 Everaldo Canuto <everaldo@simios.org>
2142 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
2144 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2146 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
2147 working in 1.2.x anymore. So, updated.
2149 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
2151 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
2152 NumberGroupSeparator of current culture instead of assuming en-US.
2155 2006-11-17 Mike Kestner <mkestner@novell.com>
2157 * Control.cs: Add the concept of implicit bounds setting so that
2158 dock/undock round trips preserve explicitly set size/locations.
2161 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
2163 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
2164 can't handle those filters. (Fixes bug #79961)
2166 2006-11-17 Chris Toshok <toshok@ximian.com>
2168 [ fixes the exit/crashes associated with #79835. it's clearly
2169 suboptimal though, we need to figure out a better way to solve
2172 * PrintPreviewControl.cs: deal with the new invalid printer
2175 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
2176 and return false (so CommonDialog.ShowDialog doesn't actually show
2179 * PrintDialog.cs: enable/disable the Ok button depending on
2180 whether or not the printer is valid.
2182 * CommonDialog.cs (ShowDialog): only actually show the form if
2183 RunDialog returns true.
2185 2006-11-17 Jackson Harper <jackson@ximian.com>
2187 * TextControl.cs: When soft splitting a line, mark it as a soft
2188 split line. Also carry over the current line break to the next
2191 2006-11-17 Chris Toshok <toshok@ximian.com>
2193 * XplatUIX11.cs: when scrolling a window with an invalid area, we
2194 only want to shift the part of the invalid area that overlaps the
2195 area we're scrolling. we also don't want to clear the invalid
2196 area unless the invalid area was entirely contained within the
2199 2006-11-16 Chris Toshok <toshok@ximian.com>
2201 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
2202 also make sure to free the memory returned by XGetWindowProperty
2205 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
2207 2006-11-16 Chris Toshok <toshok@ximian.com>
2209 * XplatUI.cs: add a new super secret way to get at the totally
2210 unsupported X11 backend.
2212 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
2214 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
2216 2006-11-16 Jackson Harper <jackson@ximian.com>
2218 * TreeView.cs: Allow more explicit setting of top node position
2219 for scrollbars. Slower algo, but more accurate.
2220 - CollapseAll should maintain the current top node.
2221 * TextBoxBase.cs: When positioning the caret, use the line, pos
2222 method, since the x, y method does not grab the correct tag, and
2223 the caret height never gets set correctly. (Maybe I should just do
2224 away with the caret having its own height, and always use the
2225 carets current tag for height).
2227 2006-11-16 Jonathan Pobst <monkey@jpobst.com
2229 [Fixes 79778, 79923]
2231 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
2232 Parent to the FosterParent instead.
2234 2006-11-16 Jackson Harper <jackson@ximian.com>
2236 * TreeView.cs: Need to recalc the topnode when we expand or
2237 collapse. The scrolling methods can't handle this on their own,
2238 since they use differences between the last scroll position, and
2239 those difference get completely messed up since we are expanding
2240 nodes. This problem should probably be fixed in the scrolling
2241 methods, so they can figure out exactly where they are, but this
2242 will slow things down a little.
2243 * ThemeWin32Classic.cs: Special case for groupboxes with empty
2244 strings, makes nunit-gui look a lot nicer.
2246 2006-11-16 Chris Toshok <toshok@ximian.com>
2248 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
2249 the broken multithreaded event handling we have in here. File
2250 this entry under "Why we should move to the new X11 backend".
2252 Any thread can make it into UpdateMessageQueue, which gets events
2253 from the X socket - some of which could belong to hwnds being
2254 managed by a different thread. We can also have multiple threads
2255 in UpdateMessageQueue at the same time, with each one reading from
2256 the X socket. This leads to many problems, with the following
2259 We can't use hwnd.Queue.Enqueue anywhere in here and must use
2262 The MotionNotify compression we do can't work across threads
2263 (without locking the entire queue, perhaps) since we call
2264 hwnd.Queue.Peek, so we just punt and don't compress motion events
2265 unless the owning thread is the one which got the X event.
2267 ConfigureNotify is another fun one, since it modifies the hwnd's
2268 bounds and then enqueues the event. We add a lock to Hwnd which
2269 is held when setting configure_pending to true (and enqueuing the
2272 There is a race wrt the wake socket. we need to make sure that
2273 only 1 thread is waiting on that socket, or else a thread could
2274 sleep waiting for data that never comes. It's difficult (but not
2275 impossible) to make happen, because it seems to require something
2278 1. Thread 1 polls on wake_receive
2280 2. poll returns saying there's data to be read on
2283 3. Thread 2 polls on wake_receive and immediately returns
2284 saying there's data to be read.
2286 4. Thread 2 reads the wakeup byte from wake_receive
2288 5. Thread 1 attempts to read the wakeup byte from
2291 6. Thread 2 exits (due to a form closing, perhaps).
2293 7. Thread 1 blocks forever.
2297 Fixing the Expose handling isn't done yet, and the races inherent
2298 in that piece of code are responsible for the drawing mistakes you
2299 see when generating expose events in a MT app (like NPlot). This
2300 one is the likely to be the hardest to bandaid, and it doesn't
2301 appear to cause anything but drawing problems. The other issues
2302 caused apps to exit or hang.
2304 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
2305 called from a different thread than the one that should be calling
2308 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
2310 2006-11-15 Chris Toshok <toshok@ximian.com>
2312 * Application.cs: null out the context's MainForm when we exit
2313 RunLoop. Fixes a newly checked in unit test as well as the last
2314 ODE from bug #79933.
2316 2006-11-15 Chris Toshok <toshok@ximian.com>
2318 * Form.cs (set_Owner): allow a null value so we can clear the
2320 (Dispose): set all our owned_form's Owner properties to null, and
2321 clear the owned_forms collection.
2322 (WM_CLOSE): clean up this a little bit.. still not right though.
2324 * ApplicationContext.cs: OnMainFormClosed should only call
2325 ExitThreadCore if the main form isn't recreating. Fixes unit
2328 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2332 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
2334 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2338 * Hwnd.cs: Add a flag to show a window, but not activate it, to
2339 keep popup window types from stealing focus from the main form
2342 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
2344 * MenuAPI.cs: Set above flag to true.
2346 2006-11-15 Chris Toshok <toshok@ximian.com>
2348 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
2349 the button being released is not in wParam.
2351 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
2353 * Form.cs: Add the released button to MouseEventArgs.Button
2354 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
2357 2006-11-15 Chris Toshok <toshok@ximian.com>
2359 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
2360 GetText(). untested because it's unused in our implementation.
2361 Control.Text always caches the text, even if
2362 ControlStyles.CacheText is not set.
2366 2006-11-15 Chris Toshok <toshok@ximian.com>
2370 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
2371 message. no hiding, no disposing.
2373 in the WM_CLOSE handler, hide the form if it's modal.
2375 2006-11-15 Chris Toshok <toshok@ximian.com>
2377 * XplatUIX11.cs: use AddExpose instead of sending a message.
2378 fixes textbox border drawing.
2380 2006-11-15 Chris Toshok <toshok@ximian.com>
2382 * PropertyGridView.cs: keep from crashing on mouse move/down when
2383 the property grid is empty.
2385 2006-11-14 Jackson Harper <jackson@ximian.com>
2387 * TextControl.cs: Make PageUp and PageDown more like the MS
2389 * TextBoxBase.cs: When we set the text property position the
2390 cursor at the beginning of the document.
2392 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2394 * Form.cs: if a mdi child's WindowState has changed
2395 before it's creation, it would display wrong control
2398 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
2400 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
2403 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2405 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
2406 the window gets to paint its borders even if the window is
2409 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
2410 otherwise the old control buttons would still be painted
2411 if the window gets bigger.
2413 * PaintEventArgs.cs: add an internal method so that the clip
2414 rectangle can be changed.
2416 2006-11-13 Chris Toshok <toshok@ximian.com>
2418 [ fixes bug #79745 ]
2420 * NotifyIcon.cs: lots of cleanup.
2422 * X11Structs.cs: add an enum for XEMBED messages.
2424 * XplatUIX11.cs: reindent one of the giant switch statements, it
2425 was taking up an additional tab stop, and this file is already way
2426 too wide for my laptop's screen.
2428 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
2429 we get it, resize the hwnd to the WMNormalHints max_width/height.
2431 2006-11-13 Jackson Harper <jackson@ximian.com>
2433 * TextBoxBase.cs: Compute the value changes for the mouse wheel
2436 2006-11-13 Chris Toshok <toshok@ximian.com>
2438 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
2439 #79898. force a reference to the Region to stick around so the
2440 unmanaged object isn't collected (rendering our handle in the MSG
2443 2006-11-13 Chris Toshok <toshok@ximian.com>
2445 * XplatUIX11.cs: fix #79917 for window managers which support
2447 using XStoreName on the raw utf8, and we need to convert to
2448 COMPOUND_TEXT if it's non-latin1.
2450 2006-11-13 Chris Toshok <toshok@ximian.com>
2452 * Form.cs (set_DialogResult): we need to set closing to false if
2453 we're setting our result to None. fixes bug #79908.
2455 2006-11-13 Jackson Harper <jackson@ximian.com>
2457 * TextControl.cs: When formatting text, compute the adjusted tag
2458 lengths correctly, using FindTag for the end tag instead of trying
2459 to figure it out outselves.
2460 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
2461 the item, ItemHeight doesn't work, because trees with large
2462 imagelists use those for their height
2463 * TreeView.cs: ActualItemHeight factors in the image height
2464 - compute left edge of checkboxes correctly
2465 - when expanding/collapsing move the bottom down one pixel, so we
2466 aren't moving part of the node
2468 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2470 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
2471 stack in PaintEventStart so that it won't get disposed by the gc
2472 before reaching PaintEventEnd.
2474 2006-11-13 Jackson Harper <jackson@ximian.com>
2476 * TextBoxBase.cs: Don't select the word if we are on a line with
2478 - We don't need to position the caret on mouse up, since the mouse
2479 move handler should be doing this
2480 - When double clicking a blank line, the caret is advanced to the
2483 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
2485 * TreeNodeCollection.cs: Avoid duplicating indexer code.
2487 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
2489 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
2490 Fixes part of bug #79910.
2492 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
2494 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
2495 (bug #79903). Some minor string updates to match ms.
2497 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2499 * FileDialog.cs: Don't add an extension if the filename
2500 already ends with that extension.
2502 2006-11-10 Jackson Harper <jackson@ximian.com>
2504 * TreeView.cs: Use the currently highlighted node for the
2506 * TextBoxBase.cs: There is no need to expand selection on
2508 - CanUndo means 'is there any undo operations', not 'is undo
2509 allowed on this textcontrol. Fixed ClearUndo unit test.
2511 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
2513 * Button.cs: only perform click when button is Selectable (so as
2514 not to activate default buttons when they're disabled)
2516 * Control.cs: Rewrite of the SelectNextControl and related
2517 methods. HandleClick now selects next control if the current one
2520 * Form.cs: OnActivated selects next active control only if Load
2521 has already occurred. If Load hasn't run, there's no point in
2522 selecting here, Load might change the state of controls.
2524 * FocusTest.cs: Tests marked as working again for these fixes
2526 2006-11-10 Chris Toshok <toshok@ximian.com>
2528 * XplatUIX11.cs: a couple of fixes.
2530 - use XInternAtoms with almost all the atoms we need to register,
2531 instead of many, many calls to XInternAtom. should help a bit on
2532 startup time, at the expense of making the code look a little
2535 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
2536 isn't reparented (which seems to be a clue that we're running fon
2537 compiz) and they have an Owner form. This fixes the tool windows
2538 in paint.net when running under compiz.
2540 - when setting the opacity of a window, support both the case
2541 where the window has been reparented and also when it hasn't been.
2542 Since compiz/beryl doesn't seem to reparent windows, and these are
2543 the only window managers which support translucency, I'm not sure
2544 why we need the hwnd.reparented case at all.. but leave it in.
2545 now we get translucent windows in paint.net under compiz/beryl.
2547 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2549 * FileDialog.cs: Always return the value for FilterIndex that
2550 was set. Internally convert it to values that make sense.
2552 2006-11-10 Everaldo Canuto <everaldo@simios.org>
2554 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
2556 2006-11-10 Everaldo Canuto <everaldo@simios.org>
2558 * Toolbar.cs: Change default value of DropDownArrows to true, the
2559 signature still using false to make it compatible with MS but the
2560 initial value is true. Fixes #79855.
2562 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
2564 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
2565 only available on Linux.
2567 2006-11-09 Everaldo Canuto <everaldo@simios.org>
2569 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
2570 reduce number of calls to redraw method during toolbar creation.
2572 2006-11-09 Mike Kestner <mkestner@novell.com>
2574 * ListView.cs : raise SelectedIndexChanged when an item is selected
2575 programmatically via the Item.Selected property. Gert's nice
2576 ListViewSelectedIndexChanged test fixture now runs clean.
2578 2006-11-09 Mike Kestner <mkestner@novell.com>
2580 * ListView.cs : raise SelectedIndexChanged when a selected item is
2581 removed from the item collection using Remove or RemoveAt.
2583 2006-11-09 Mike Kestner <mkestner@novell.com>
2585 * ListView.cs : raise SelectedIndexChanged once per selected item
2586 for compat with MS. Fixes #79849+.
2588 2006-11-09 Chris Toshok <toshok@ximian.com>
2590 * TabControl.cs: initialize row_count to 0, and set it to 1 when
2591 we need to (if we have any tab pages). Fixes unit test.
2593 2006-11-09 Chris Toshok <toshok@ximian.com>
2595 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
2596 width is 0, not 3. Fixes a unit test.
2598 2006-11-09 Mike Kestner <mkestner@novell.com>
2600 * ListView.cs : use Implicit scrollbars so that focus isn't
2601 stolen from the listview when they are clicked. Fixes #79850.
2603 2006-11-09 Chris Toshok <toshok@ximian.com>
2605 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
2606 have a root item. Fixes #79879.
2608 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
2612 - An ArgumentException is now thrown if a wrong filter
2613 is applied (matches ms). The previous filter doesn't change
2614 anymore if an exception is thrown.
2615 - Changing the FileName property also affects FileNames
2616 * ColorDialog.cs: The length of the CustomColors array is always
2617 16. It doesn't matter if we use a smaller array or null to update
2618 or change the custom colors property.
2619 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
2620 for RootFolder if we get a undefined value.
2622 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
2624 * StatusBarPanel.cs:
2625 - Width is set to MinWidth if Width is smaller than
2626 MinWidth. Fixes #79842.
2627 - MinWidth now always overrides Width (MSDN says MinWidth
2628 is set to Width when AutoSize = None, but they do not
2630 - Style has now the the correct default value.
2632 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
2635 - The control is completely invalidated on
2636 Got/LostFocus to draw the focus rectangle correctly.
2637 - When AutoSize then height is always 45 (width for
2640 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
2641 on the mouse when moved and it doesn't move when grabbed
2642 until the mouse moves as well. Also fixed some wrong
2643 calculations when clicking on the thumb (control thought
2644 click was outside of thumb and didn't grab it).
2645 Fixes some of the issues in #79718.
2647 2006-11-08 Everaldo Canuto <everaldo@simios.org>
2649 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
2651 2006-11-08 Chris Toshok <toshok@ximian.com>
2653 * PropertyGridView.cs: only call ToggleValue if the item is not
2656 2006-11-08 Jackson Harper <jackson@ximian.com>
2658 * TextBoxBase.cs: The RichTextBox and textbox have very different
2659 word selection methods. Implement the textbox's simple word
2660 selection here, and let the RichTextBox override and provide it's
2662 - Don't do extra selection on mouseup
2663 * RichTextBox.cs: Use the documents word selection algorithm, I
2664 think ideally, this function will be pulled into the
2665 RichTextBox.cs code someday.
2667 2006-11-08 Chris Toshok <toshok@ximian.com>
2669 * RootGridEntry.cs: new class to represent GridItemType.Root.
2671 * CategoryGridEntry.cs: reformat, and add boilerplate.
2673 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
2674 returns the UI parent anyway, and we need special handling to
2675 implement the GetTarget method in the face of it. Also, implement
2678 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
2679 a root grid item, and use that instead of PropertyGrid.grid_items.
2680 Also, make use of TypeConverters (and add limitted support for
2681 ICustomTypeDescriptors) when initially populating the grid.
2682 Arrays now show up more or less properly.
2684 2006-11-08 Chris Toshok <toshok@ximian.com>
2686 * Application.cs: set the modal dialog to non modal after we close
2687 it. Fixes bug #79866.
2689 2006-11-08 Jackson Harper <jackson@ximian.com>
2691 * TextControl.cs: When combining lines carry over the line end
2692 style from the end line.
2693 - Invalidate the selected area when setting it, if it is visible.
2694 * TextBoxBase.cs: Only rich text box can do full line selects.
2695 - Make sure to set the cursor position when there is a click,
2696 otherwise two clicks in separate areas could cause a large chunk
2699 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2701 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
2704 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2706 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
2707 time. Remove tooltips when ToolButton click events. Fixes #79856.
2709 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2711 * MenuAPI.cs: Ignore right click for menu actions and fixes
2712 menu border when clicked. Fixes #79846.
2714 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2716 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
2717 MouseState after create wParam for message, this fixes mouse button
2718 equal none in mouse up events.
2720 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
2722 * Control.cs : Focus() now calls Select to set the Container's
2723 Active Control and to give it focus. To avoid infinite recursion
2724 (because ActiveControl also calls Focus at one point), a check
2725 is made in Focus with the help of a new internal variable
2728 2006-11-07 Mike Kestner <mkestner@novell.com>
2730 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
2731 if there's a selection. Fixes #79849.
2733 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
2735 * PropertyGrid.cs: Avoid fixed height of help description label.
2736 Fixes part of bug #79829.
2738 2006-11-07 Chris Toshok <toshok@ximian.com>
2740 * XplatUIX11.cs: fix #79790 again, by using the
2741 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
2743 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2745 * ToolBar.cs: Fix left click checking.
2747 2006-11-07 Chris Toshok <toshok@ximian.com>
2749 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
2751 2006-11-07 Chris Toshok <toshok@ximian.com>
2753 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
2754 PropertyManager unit tests.
2756 * PropertyManager.cs: make property_name internal.
2758 2006-11-07 Chris Toshok <toshok@ximian.com>
2760 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
2761 pass a unit test. Also, don't set image_index to anything in
2762 response to setting the ImageList property.
2764 2006-11-07 Everaldo Canuto <everaldo@simios.org>
2766 * ToolBar.cs: Ignore click events when mouse button is not a
2767 left button, only accepts other button for dropdown menus.
2770 2006-11-07 Chris Toshok <toshok@ximian.com>
2772 * DataGrid.cs: make the back and parent row buttons a little less
2775 2006-11-07 Jackson Harper <jackson@ximian.com>
2777 * TextBoxBase.cs: When converting to Text don't put line breaks in
2778 for soft line breaks.
2779 * TextControl.cs: There is an initial "fake" line in the document,
2780 this is now a soft break line, so that an extra line feed doesn't
2781 get added to the end of documents.
2783 2006-11-07 Chris Toshok <toshok@ximian.com>
2787 * CurrencyManager.cs: if the list is readonly, don't bother
2788 checking if IBindingList.AllowNew is true.
2790 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
2791 for non-DataRowView datasources.. or rather, make it not crash.
2792 (DataGridPaintRelationRow): make sure we limit the row painting to
2793 the area not covered by the row header, and make our cell width at
2794 least large enough to cover the relation area. This allows grids
2795 that have relations but no rows to render correctly.
2796 (DataGridPaintRowContents): same type of changes here.
2797 (SetDataSource): move back to always calling
2798 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
2799 navigating back through relations.
2800 (HitTest): handle the case where we have no cells but have
2801 relations. Right now we generate a hit in cell 0 of whatever the
2802 row is, not sure if this is strictly correct, but it works for our
2805 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
2806 bother doing anything.
2808 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
2810 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
2811 early version of StatusStrip. Not responsible for eaten
2812 application or firstborn children.
2814 2006-11-06 Chris Toshok <toshok@ximian.com>
2816 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
2817 call GetTabRect with a -1 index. Fixes #79847.
2819 2006-11-06 Jackson Harper <jackson@ximian.com>
2821 * TreeNodeCollection.cs: Update scrollbars after clearing.
2823 2006-11-06 Chris Toshok <toshok@ximian.com>
2825 * NumericUpDown.cs: fix the ToString method for some unit test
2828 2006-11-06 Chris Toshok <toshok@ximian.com>
2831 - set the initial SelectedGridItem if we can.
2833 - Exclude non-mergable properties only if we're merging > 1
2834 object. Merging 1 object isn't really merging, obviously.
2836 - Handle PropertySort.NoSort just like Alphabetical, which is
2837 wrong of course, but at least gets things on the screen.
2839 * PropertyGridView.cs:
2840 - Add method "FindFirstItem" which finds the first property grid
2841 item, so we can select it by default.
2843 - make use of GridEntry.CanResetValue.
2845 - Don't call RedrawBelowItemOnExpansion here anymore, the
2846 individual GridEntry's will do that.
2848 - Remove the ITypeDescriptorContextImpl internal class.
2851 - this class needs to implement ITypeDescriptorContext, as it's
2852 what MS's PropertyDescriptorGridEntry does, which means we can
2853 remove the ITypeDescriptorContextImpl internal class from
2854 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
2856 - keep a reference to our PropertyGridView, and move the call to
2857 RedrawBelowItemOnExpansion here from PGV. This means
2858 programmaticly setting Expanded actually does something visible.
2860 - add a CanResetValue() function which takes into account our
2861 possibly multiple "selected_objects" in the merged case. Shifting
2862 PropertyGridView to use this method fixes another unreported
2863 crasher found running the test for #79829.
2865 - when Top or Bounds is updated, make sure the PropertyGridTextBox
2866 is updated to reflect this.
2868 * CategoryGridEntry.cs: the ctor takes the PGV now.
2870 2006-11-06 Jackson Harper <jackson@ximian.com>
2872 * TextControl.cs: These are 1 based.
2873 * TextBoxBase.cs: When setting the selected text, don't change the
2874 selected text tags, this is done by ReplaceText, just position the
2875 cursor at the end of the new text.
2877 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
2879 * ListView.cs: Allow label edit only when, when LabelEdit is
2882 2006-11-06 Jackson Harper <jackson@ximian.com>
2884 * TextControl.cs: If a suitable wrapping position isn't found,
2885 just wrap right in the middle of a word.
2887 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
2889 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
2892 2006-11-06 Jackson Harper <jackson@ximian.com>
2894 * TreeView.cs: Can't use the VisibleCount property when setting
2895 scrollbar heights, because this doesn't take into account whether
2896 or not the horz scrollbar just came visible.
2898 2006-11-05 Everaldo Canuto <everaldo@simios.org>
2900 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
2901 activated. Fixes #79369, #79832.
2903 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
2905 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
2906 had to remove support for links that point to a directory. FileInfo
2907 returns no usefull information (means, the directory they point to)
2908 for such links. Replaced some empty string ("") with String.Empty.
2910 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
2912 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
2913 NullReferenceException when attempting to remove node that is not in
2914 collection. Throw NullReferenceException when null is passed to
2915 Remove. Allow first element of the collection to be removed. Fixes
2916 bug #79831. In GetEnumerator ().Current return null if positioned
2917 before the first element of the collection. In GetEnumerator ().Reset,
2918 position before first element of the collection.
2920 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
2922 * PropertyGrid.cs: To match MS, remove default title and description
2923 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
2926 2006-11-04 Chris Toshok <toshok@ximian.com>
2928 * Theme.cs: add a Clamp method, just for kicks.
2930 * ThemeWin32Classic.cs: clamp all color components to [0..255].
2932 2006-11-04 Chris Toshok <toshok@ximian.com>
2934 * Form.cs: if the form isn't visible, Close() does nothing.
2936 2006-11-03 Chris Toshok <toshok@ximian.com>
2938 * Form.cs (Close): if the form is modal, don't Dispose of it, only
2940 (WndProc): don't Dispose after handling the WM_CLOSE message.
2942 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
2943 them as such, instead of using casts from Control to Form. Also,
2944 don't Dispose of the modal dialog when we fall out of the loop -
2949 2006-11-03 Chris Toshok <toshok@ximian.com>
2951 * Control.cs (Dispose): only go through the dispose thing if we're
2952 @disposing, and we haven't already been disposed. Fixes bug
2955 * Form.cs: no reason to call "base.Dispose()" here instead of
2958 2006-11-03 Mike Kestner <mkestner@novell.com>
2960 * ComboBox.cs : use ToString instead of casts in AddItem for
2961 sorting functionality. Fixes #79812.
2963 2006-11-03 Chris Toshok <toshok@ximian.com>
2965 * Application.cs: pave the way for actually using the thread
2966 exception dialog. it's ifdefed out at the moment.
2968 2006-11-03 Chris Toshok <toshok@ximian.com>
2970 * ThreadExceptionDialog.cs: until we get a better layout, actually
2971 hide the details textbox and label when we shouldn't see them.
2973 2006-11-03 Jackson Harper <jackson@ximian.com>
2975 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
2976 multiline textboxes anymore. This method also determines the
2977 width/height of a textboxes canvas area.
2978 - Sorta a revert of the last patch. For multiline just position
2979 the controls, then bail. This way the scrollbar width won't be
2982 2006-11-03 Everaldo Canuto <everaldo@simios.org>
2984 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
2985 it dont need. Fixes #79537.
2987 2006-11-02 Jackson Harper <jackson@ximian.com>
2989 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
2990 send the status after firing the DndOver event.
2992 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2994 * TrackBar.cs: Now orientation only switches height / width if
2995 the control's handle is created (Win32 does it like this). Also
2996 fixed a typo in ToString() for a test to pass, changed the
2997 exception thrown in set_LargeChange and set_SmallChange to
2998 match Win32 behaviour, and added TrackBar tests to the unit
3001 2006-11-02 Chris Toshok <toshok@ximian.com>
3003 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
3004 not _NET_WM_STATE_NO_TASKBAR.
3006 2006-11-02 Jackson Harper <jackson@ximian.com>
3008 * TextControl.cs: Increment count by one, since in the update view
3011 2006-11-02 Jackson Harper <jackson@ximian.com>
3013 * TextBoxBase.cs: Use client rectangle not bounds for checking if
3014 the mouse is in the client rectangle (duh).
3016 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3018 * TrackBar.cs: Fixed trackbar jumping around when clicking
3019 on it - the trackbar was not detecting correctly at which
3020 side of the thumb the click was done. (fixes #79718)
3022 2006-11-02 Everaldo Canuto <everaldo@simios.org>
3024 * ListBox.cs: scroll visible area when change SelectedIndex to
3025 a non visible area. Fixes #79481.
3027 2006-11-01 Jackson Harper <jackson@ximian.com>
3029 * TextControl.cs: When replacing the selection move the selection
3030 start/end/anchor to the end of the new text.
3032 2006-11-01 Jackson Harper <jackson@ximian.com>
3034 * XplatUIWin32.cs: When setting the parent change the controls
3035 visibility to it's visibility flag, not to it's old parents
3036 visibility (.Visible walks the parent chain).
3038 2006-11-01 Chris Toshok <toshok@ximian.com>
3040 * XplatUIX11.cs: revert the #79790 fix, as the simple.
3041 XSetTransientForHint fix breaks paint .net's tool windows. more
3042 work needed for that one.
3044 2006-11-01 Chris Toshok <toshok@ximian.com>
3046 * ScrollBar.cs: throw ArgumentException instead of Exception in
3047 LargeChange/SmallChange setters. fixes unit tests.
3049 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3051 * ContainerControl.cs: reverted rev.67183 (which was itself
3052 a reversion of rev.66853... eh).
3054 * Control.cs: Fixes Reflector hang by changing Focus() call
3055 to what it was before rev.66643 (calling Select() here sets
3056 ActiveControl, which in some situations calls back Focus and
3057 eventually does a stack overflow). Temp fix.
3058 Changes to GetNextControl() to not look for children to select when
3059 parent cannot be selectable (so it looks for siblings instead)
3061 2006-10-31 Mike Kestner <mkestner@novell.com>
3063 * CheckedListBox.cs : off by one error in returned index from
3064 ObjectCollection.Add. Fixes #79758.
3066 2006-10-31 Chris Toshok <toshok@ximian.com>
3068 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
3069 calls for the textbox/spinner, to keep from recursing to the point
3070 where we crash. Fixes #79760.
3072 2006-10-31 Chris Toshok <toshok@ximian.com>
3074 * ListControl.cs (set_SelectedValue): don't throw exceptions on
3075 null/"" value, just return. matches ms's behavior and fixes some
3078 2006-10-31 Chris Toshok <toshok@ximian.com>
3080 * Control.cs (set_Capture): make a logic a little easier to
3083 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
3084 if it's being destroyed. A necessary fix surely, but a bandaid
3085 also, to fix the stuck capture problem in bug #78413.
3087 2006-10-31 Chris Toshok <toshok@ximian.com>
3089 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
3090 convention of clearing hwnd.ClientRect when we set the
3091 width/height (so it'll be recalculated by Hwnd).
3093 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
3095 * ContainerControl.cs: reversed Contains check from
3096 ActiveControl due to hanging problems. This fix
3097 partly regresses #79667 (button does not have
3098 initial focus), so this might be a symptom for
3099 a larger parenting problem (set_ActiveControl
3100 is being called but the child control does
3101 not have the parent set yet?)
3103 2006-10-31 Mike Kestner <mkestner@novell.com>
3105 * MenuAPI.cs : fix keynav when menu is click activated.
3107 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
3109 * ToolStrip*: Version 0.2.
3111 * MenuStrip.cs: Version 0.1.
3113 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
3115 2006-10-30 Chris Toshok <toshok@ximian.com>
3117 [ fixes the oversized notify icon issue in bug #79745 ]
3119 * NotifyIcon.cs: scale the icon down to the size we're given by
3120 the XplatUI layer (this would be faster if we did it once instead
3121 of whenever we paint..) Also, remove the WM_NCPAINT handling,
3122 since it's never invoked.
3124 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
3125 pixels high by default, so let's hardcode our systray icon to that
3126 size. The SYSTEM_TRAY protocol should really have a way for
3127 client apps to query for the correct icon size.. but oh well. A
3128 couple of patches to deal with the screwy client_window ==
3129 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
3130 instance, and also make sure we don't XSelectInput twice).
3132 2006-10-30 Chris Toshok <toshok@ximian.com>
3134 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
3135 recreating forms. Control recreation is the bane of my existence.
3136 Fix it in a way that keeps everyone happy.
3138 2006-10-30 Chris Toshok <toshok@ximian.com>
3140 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
3141 just non-CHILD ones. otherwise sometimes scrollbars end up with
3142 client_windows not being resized to the proper size (ReportBuilder
3143 shows this extremely well).
3145 2006-10-30 Chris Toshok <toshok@ximian.com>
3147 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
3148 for non-WS_EX_APPWINDOW windows. This is what keeps them from
3149 showing up in the gnome taskbar. Fixes bug #79790.
3151 2006-10-30 Chris Toshok <toshok@ximian.com>
3153 * ApplicationContext.cs: guard against a NRE.
3155 * Application.cs: null out the old MainForm for the context, so we
3156 don't try to use it again once it's disposed. Fixes bug #79783.
3158 2006-10-30 Chris Toshok <toshok@ximian.com>
3160 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
3161 BindingContext, set the data source directly, otherwise do the
3162 lazy approach - the actual ListManager will be created when we get
3163 a BindingContext. Fixes bug #79700.
3165 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3167 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
3168 XplatUIX11.cs: Remove old 2 parameter SetVisible.
3170 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
3172 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
3174 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
3175 of SetVisible that allows a window to be shown, but not activated.
3176 This is needed on Windows for MenuStrip, and can probably be used
3177 with MainMenu and ComboBox to fix the focus stealing issues on
3180 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
3182 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
3184 * PictureBox.cs: Fix the output of the ToString method.
3186 2006-10-29 Chris Toshok <toshok@ximian.com>
3188 * Control.cs (get_TopLevelControl): fix bug #79781.
3190 2006-10-29 Chris Toshok <toshok@ximian.com>
3192 * ListControl.cs (set_DataSource): throw Exception here, not
3193 ArgumentException, to match MS behavior.
3195 2006-10-29 Chris Toshok <toshok@ximian.com>
3197 * Form.cs: remove the try-catch's around calls to GetWindowState.
3198 We can just check the return value.
3200 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
3203 * XplatUI.cs: Add note about additional return value for
3206 2006-10-29 Chris Toshok <toshok@ximian.com>
3208 * Control.cs (CreateHandle): when we create our handle, we also
3209 create the handles of our child controls. Fixes one of the
3210 Control unit tests (CH11).
3212 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3214 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
3216 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
3218 * ThemeClearlooks.cs: A little speedup.
3220 2006-10-27 Chris Toshok <toshok@ximian.com>
3222 * Control.cs: implement Control.FromChildHandle in a way that
3223 matches the docs (and fixes the failed test.)
3225 2006-10-27 Chris Toshok <toshok@ximian.com>
3227 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
3230 * DataGrid.cs: implement ResetForeColor such that the tests
3233 2006-10-27 Chris Toshok <toshok@ximian.com>
3235 * ToolBarButton.cs: setting text/tooltiptext to null results in it
3236 being set to "". Fixes bug #79759.
3238 2006-10-27 Jackson Harper <jackson@ximian.com>
3240 * TextControl.cs: We need to clear the entire selection area when
3241 setting the start, otherwise multiline selections are still
3244 2006-10-26 Chris Toshok <toshok@ximian.com>
3246 * PropertyGridView.cs:
3248 - ifdef all the code specific to the double
3249 buffer case, and provide some alternatives in the non-doublebuffer
3250 code, which makes heavy use of XplatUI.ScrollWindow to move things
3251 around without having to invalidate (and cause flicker). There
3252 are still some drawing problems in the non-doublebuffered case, so
3253 DOUBLEBUFFER is defined by default.
3255 - Fix the way dropdowns are handled. now we explicitly watch for
3256 the events which might cause the dropdown to close, and break out
3257 of the nested event loop there. This gets rid of all Capture
3258 code, at the expense of the Msg special casing. Seems to work,
3259 though, and fixes bug #79743.
3261 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3262 * Control.cs: SetIsRecreating now recreates implicitly added
3263 child controls as well. Finally fixes #79629. The flag passed to
3264 SetIsRecreating has also been removed since it wasn't used.
3266 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268 * PageSetupDialog.cs: Clean some code, fix some bits,
3269 add some checks, and add a printer sub-dialog.
3271 2006-10-26 Chris Toshok <toshok@ximian.com>
3273 * PropertyGrid.cs: make set_SelectedObject call
3274 set_SelectedObjects, and move the duplicate logic to the
3275 SelectedObjects setter. Also, raise SelectedObjectsChanged.
3277 * PropertyGridView.cs: hide the textbox when we get a
3278 SelectedObjectsChanged event.
3282 2006-10-26 Chris Toshok <toshok@ximian.com>
3284 * PropertyGridView.cs: deal with the type converter not supporting
3285 GetStandardValues() or GetStandardValues() returning null, which
3286 is does in the default case. Fixes #79742.
3288 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3290 * CheckedListBox.cs: nunit no longer crashes when selecting
3291 Project/Edit menu option
3293 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
3295 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
3296 is no menu selected. fixes #79739
3298 2006-10-25 Chris Toshok <toshok@ximian.com>
3300 * PropertyGridView.cs: factor out the splitter invalidation code
3301 into the SplitterPercent setter, and for kicks implement the
3302 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
3303 amount in either direction.
3305 2006-10-25 Chris Toshok <toshok@ximian.com>
3307 * PropertyGridView.cs: do some cleanup of the brush used to draw
3308 text - read only fields should be grayed out. not sure how to do
3309 this with the textbox, though. but the textbox's should also be
3310 readonly now at least. Also, hide/show the textbox when resizing
3313 * CursorConverter.cs: use System.Reflection when getting the
3314 properties of Cursors, as TypeDescriptor.GetProperties isn't
3315 returning static properties.
3317 2006-10-25 Chris Toshok <toshok@ximian.com>
3319 * PropertyGridView.cs: factor out the up/down handling, and reuse
3320 it for page up/down. also add End/Home support.
3322 2006-10-25 Chris Toshok <toshok@ximian.com>
3324 * PropertyGridView.cs:
3326 - ensure the selected grid item is visible in the scrolled area,
3329 - fix Keys.Down handling when you're on the last item in the
3332 2006-10-25 Mike Kestner <mkestner@novell.com>
3334 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
3335 clicks too. Fixes #79725.
3337 2006-10-24 Chris Toshok <toshok@ximian.com>
3339 * PropertyGrid.cs: use property.Converter instead of
3340 TypeDescriptor.GetConverter(property.PropertyType), so we catch
3341 TypeConverters declared on the property as well as on the
3342 PropertyType. Fixes bug #79678.
3344 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
3346 * MimeIcon.cs, Mime.cs:
3347 Fallback to the default platform handler if no shared mime info
3348 stuff exists (fixes #79693).
3350 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3351 * ContainerControl.cs: Incorrect contains check in ActiveControl
3352 from previous fix (duh).
3354 2006-10-20 Chris Toshok <toshok@ximian.com>
3356 * PropertyGridView.cs: the dropdown should be MIN(number of items
3357 in list, 15). Fixes #79551.
3359 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3360 Fixes #79384, #79394, #79652, #79667
3363 - Modal windows are now destroyed in the proper order for windows
3365 * ContainerControl.cs:
3367 - ActiveControl setter has more conditions on when to return:
3368 - if we're reselecting the active control, but it actually
3369 didn't have focus (window hidden or some such), it runs
3370 - if the active control being selected doesn't actually
3371 exist in the container, it returns
3375 - The ShowDialog now gets the current form as the owner when
3376 invoking without parameters, and correctly activates the owner
3381 - MessageBox now catches the Escape key to exit
3383 2006-10-20 Chris Toshok <toshok@ximian.com>
3385 * PropertyGridView.cs: fix a number of issues (bug #78565, and
3386 most of bug #79676):
3388 - you can navigate around the property grid with the arrow keys.
3390 - the dropdown is sized properly when the pg has a vertical
3393 - fix the indentation for subentries, and properly select the
3396 - fix the gray bar's drawing (only draw it to the last element,
3397 not for the height of the control. Also make sure we draw that
3398 last horizontal grid line.
3400 - use the same mechanism the datagrid uses wrt the editing textbox
3401 when scrolling/resizing/etc. Namely, we hide it first, do the
3402 operation, then show it again (if it's still visible).
3404 - aggressively remove a lot of unnecessary refreshes (and also
3405 calls to Invalidate(). call more limited variants, and only redraw
3410 - when we're populating the merged collection, fill in the UI
3411 parent with either the passed in item, or the category item we
3414 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
3416 * GridItem.cs: drop some fully qualified names.
3418 * GridEntry.cs: add a "UIParent", which is basically the parent
3421 * GridItemCollection.cs: add an IndexOf method.
3423 2006-10-20 Mike Kestner <mkestner@novell.com>
3425 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
3426 a working win32 NC invalidation mechanism, we can't invalidate
3427 menus. [Fixes #79705]
3429 2006-10-20 Mike Kestner <mkestner@novell.com>
3431 * ListBox.cs : don't update the VScrollbar if the list is empty,
3432 just hide it. [Fixes #79692]
3434 2006-10-20 Jackson Harper <jackson@ximian.com>
3436 * RichTextBox.cs: Handle some special chars better, and don't skip
3437 the entire group when we encounter a special char that we don't
3440 2006-10-18 Chris Toshok <toshok@ximian.com>
3442 * PropertyGridView.cs: address a number of issues from bug #79676,
3443 mostly of the cosmetic variety.
3445 - The highlight rectangle for indented items not extends all the
3448 - Indented items aren't indented so much.
3450 - the dropdown is properly sized width-wise if the pg has a
3453 2006-10-18 Chris Toshok <toshok@ximian.com>
3455 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
3456 systray stuff is rather convoluted to begin with.
3458 systray icons are a single window for some reason (that I haven't
3459 figured out yet), and for them, client_window == whole_window.
3460 Given the way the tests are structured elsewhere to determine
3461 which paints are pending (client vs. nc), that situation will
3462 always yield PAINT, not NCPAINT. So, if we have a pending
3463 nc_expose and no pending expose, remove the hwnd from the paint
3464 queue, and also set nc_expose_pending to false, to keep us from
3465 blocking further expose's adding the hwnd to the paint queue.
3467 phew. like i said, a rather convoluted change. Fixes the
3468 notifyicon repaint issues in bug #79645.
3470 2006-10-18 Chris Toshok <toshok@ximian.com>
3472 * Form.cs: when getting the backcolor of the form, don't get
3473 base.BackColor, as this allows parents to influence the background
3474 color. This breaks mdi forms. Instead, if the background_color
3475 is empty, return the default.
3477 2006-10-18 Chris Toshok <toshok@ximian.com>
3479 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
3480 to being private instead of internal static.
3482 * Control.cs: remove all the stupid ParentWaitingOnRecreation
3483 crap, it wasn't working for more deeply nested controls anyway,
3484 and we already have the is_recreating flag - use that instead.
3485 Before calling DestroyHandle in RecreateHandle, recurse through
3486 the control tree setting it to true. this returns the recreate
3487 code to much of its original simplicity, while now guaranteeing we
3488 actually recreate everything we're supposed to. This change gets
3489 fyireporting actually showing mdi children.
3491 2006-10-17 Chris Toshok <toshok@ximian.com>
3493 * Form.cs: remove some debug spew, and collapse some duplicate
3494 code at the end of SetClientSizeCore.
3497 - add some more debug spew here too wrt Destroy handling.
3498 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
3499 in Control's handling of WM_DESTROY.
3500 - Remove the handling of zombie window DestroyNotifies from the
3501 event loop - we don't need it. Now the only DestroyNotifies we
3502 actually handle are ones generated by X.
3503 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
3504 match gtk's (functioning) handling of this. This keep metacity
3505 from leaving droppings in the form of wm borders with no window
3506 contents all over the place.
3509 - add a bunch of debug spew wrt control recreation.
3510 - fix a bug where we weren't tracking Visible properly on
3512 - fixed the WM_PAINT double buffer handling to support re-entrant
3513 calls (yes, i know it's gross, but it's happening to us).
3515 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3516 * ThemeWin32Classic.cs: changed drawing of selected days
3517 to make them look better.
3519 2006-10-16 Chris Toshok <toshok@ximian.com>
3521 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
3522 drawing_stack. Nuke the ClientDC/NonClientDC properties.
3524 * XplatUIX11.cs: move away from using hwnd.client_dc and
3525 hwnd.non_client_dc and on to a stack of dc's (and in window's
3526 case, PAINTSTRUCT's), so we can deal with nested Paint calls
3527 without puking or not disposing of Graphics objects.
3529 * XplatUIOSX.cs: same.
3531 * XplatUIWin32.cs: same.
3533 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
3535 * FileDialog.cs: Don't call on_directory_changed inside
3536 OnSelectedIndexChanged (it changes the SelectedIndex too).
3537 Instead move it to OnSelectionChangeCommitted.
3539 2006-10-13 Chris Toshok <toshok@ximian.com>
3541 * XplatUIX11.cs: more Destroy work. the current code does the
3542 following things, in order:
3544 1. Enumerates all handles of all controls at or below the one
3545 being destroyed, in pre-order. As it is doing this, it marks the
3546 handles as zombie and clears all references to them.
3548 2. calls XDestroyWindow on the window passed in.
3550 3. SendMessage's WM_DESTROY to all he handles in the accumulated
3553 2006-10-13 Chris Toshok <toshok@ximian.com>
3555 * XplatUIX11.cs: set hwnd.zombie to true before calling
3556 SendMessage (WM_DESTROY). this keeps us from marking the new
3557 window a zombie, and also keeps us from calling sendmessage at
3560 2006-10-13 Jackson Harper <jackson@ximian.com>
3562 * TextControl.cs: Do not show the caret and selection at the same
3563 time. Reduces ugliness by 35%.
3565 2006-10-13 Chris Toshok <toshok@ximian.com>
3567 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
3568 zombie after we do the recursive call, so we actually do call
3569 SendMessage on the children controls.
3570 (GetMessage): if we find a pending paint event for a zombie hwnd,
3571 remove the hwnd from the paint queue, or else it will always be
3572 there (and we'll effectively loop infinitely)
3574 2006-10-13 Mike Kestner <mkestner@novell.com>
3576 * MenuItem.cs : add Selected format under keynav too.
3579 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3581 * PropertyGrid.cs: Fixed some NRE's and small difference between our
3582 implementation and that of MS.
3584 2006-10-13 Chris Toshok <toshok@ximian.com>
3586 * Control.cs (OnInvalidated) only futz with the invalid_region if
3587 the control is double buffered. this fixes the apparent hang in
3588 the ListView unit tests. Someone needs to make the
3589 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
3591 2006-10-13 Chris Toshok <toshok@ximian.com>
3593 * PropertyGridView.cs:
3595 - do a little refactoring so that only one place calls
3596 dropdown_form.Hide, and that is CloseDropDown. make everywhere
3597 else call that. Also make it Refresh, since there are redraw bugs
3598 otherwise (we should take a look at that...)
3600 - do a little more refactoring work to share the body of code
3601 involved with the drop down. it was duplicated in the code
3602 dealing with the listbox handling and in the code dealing with the
3605 - add a Capture to the dropdown form's control once it's
3606 displayed, and add a MouseDown handler that checks to make sure
3607 the position is inside the control. If it's not, close the
3608 dropdown. This fixes #78190.
3610 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
3611 if the value is different than the initial value.
3613 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
3615 * Control.cs: see #78650
3616 - Fixed GetNextControl for several cases:
3617 - Changed FindFlatForward to return
3618 correct sibling control when more than one
3619 control has same TabIndex as the currently
3621 - Changed FindFlatBackward to loop children
3622 from last to first and apply same logic as in
3624 - Changed FindControlForward to search for
3625 children when control is not a container
3626 but has children, or search for siblings if
3627 control is a container...
3628 - Changed FindControlBackward to continue
3629 searching for child controls when hitting
3632 - Fixed Focus method to update ActiveControl
3633 (FocusTest.FocusSetsActive failure)
3636 - Focus rectangle now refreshes when gaining
3638 - Removed grab for Tab key on IsInputKey that
3639 was keeping tab navigation from working (#78650)
3641 2006-10-13 Chris Toshok <toshok@ximian.com>
3643 * PropertyGridView.cs:
3644 - Rewrite SetPropertyValue to loop over SelectedGridItem's
3647 - Deal with GridItem.Value == null a few places.
3650 - replace the PopulateGridItemCollection with a pair of methods
3651 which compute the intersection of all the properties in the
3652 SelectedObjects array. Fixes #79615.
3654 - Throw ArgumentException from set_SelectedObjects if there's a
3657 - Add GetTarget method which can be used to traverse up the
3658 GridItem.Parent chain. It depends on the assumption that
3659 selected_objects for different GridEntries are always in the same
3660 order (a safe assumption). Use this method and loop over all the
3661 selected objects in the entry when calling RemoveValueChanged and
3664 * GridEntry.cs: Make this handle multiple selected objects.
3665 .Value returns null if not all the selected objects share the same
3668 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
3669 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
3670 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
3671 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
3672 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
3673 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
3674 add additional functionality.
3676 2006-10-12 Mike Kestner <mkestner@novell.com>
3678 * ErrorProvider.cs : new ToolTipWindow ctor sig.
3679 * HelpProvider.cs : new ToolTipWindow ctor sig.
3680 * ToolTip.cs : remove ToolTip param from Window sig since it is
3682 * ToolBar.cs : add tooltip support. Fixes #79565.
3684 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3686 * ComboBox.cs: move the events in set_SelectedIndex to
3687 after the call to HighlightIndex in order to avoid
3688 possible recursion and subsequent problems with the call
3689 to HighlightIndex and include a range check in
3690 set_HighlightIndex. Fixes #79588
3692 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3694 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
3695 to ui thread's settings instead of sunday.
3696 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
3698 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
3702 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
3703 and implement missing functionality (selecting different parts
3704 of the date and edit them individually with the keyboard).
3706 2006-10-11 Chris Toshok <toshok@ximian.com>
3708 * Control.cs (OnInvalidated): fix NRE relating to last change.
3710 2006-10-11 Chris Toshok <toshok@ximian.com>
3712 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
3713 atoms in _NET_WM_STATE here if the window is maximized. We need
3714 to do this because we're *replacing* the existing _NET_WM_STATE
3715 property, so those atoms will be lost otherwise, and any further
3716 call to GetWindowState will return Normal for a window which is
3717 actually maximized. Fixes #79338.
3719 2006-10-11 Jackson Harper <jackson@ximian.com>
3721 * TextControl.cs: Special case for setting selection end to
3722 selection start, we basically kill the anchor.
3723 - some todo comments.
3725 2006-10-11 Chris Toshok <toshok@ximian.com>
3727 * Control.cs: switch to using an "invalid_region" to track which
3728 parts of the image buffer need updating. This is more code than
3729 the simple fix from r66532. That version just attempted to always
3730 fill the entire buffer on redraw, which turns out to be
3731 inefficient when invalidating small rectangles. This version
3732 simply adds the invalid rectangle to the invalid region. When we
3733 get any WM_PAINT message we see if it can be filled using the
3734 image buffer, and if it can't (if the paint event's clip rectangle
3735 is visible in the invalid region) we first fill the image buffer.
3736 So, the image buffer is still a cache, we just fill it lazily.
3738 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
3741 2006-10-11 Chris Toshok <toshok@ximian.com>
3743 * XplatUIX11.cs (SetWindowPos): we need to update both position as
3744 well as size after calling XMoveResizeWindow. This keeps us from
3745 ignoring future SetWindowPos calls. Fixes the disappearing
3746 DateTimePicker in the ToolBarDockExample from bug #72499.
3748 2006-10-11 Chris Toshok <toshok@ximian.com>
3750 * TextBoxBase.cs: reorder things a bit when it comes to
3751 resizing-causing-recalculation. we were recalculating the
3752 document when our position was changed, which shouldn't happen.
3753 We only care about size changes. Clear up some more redundant
3754 recalculation calls while I'm at it. This makes the toolbar dock
3755 example snappy when you're just dragging toolbars around (since it
3756 causes a relayout whenever you move one.)
3758 2006-10-11 Chris Toshok <toshok@ximian.com>
3760 * ToolBarButton.cs (get_Rectangle): this only returns
3761 Rectangle.Empty if Visible == false, or Parent == null.
3762 Parent.Visible doesn't matter.
3764 2006-10-10 Chris Toshok <toshok@ximian.com>
3766 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
3767 by .net 1.1, so switch to an internal method instead.
3769 2006-10-10 Chris Toshok <toshok@ximian.com>
3771 * Control.cs (WM_PAINT): when a control is double buffered we draw
3772 initially to the ImageBuffer and then copy from there. But when a
3773 parent control which has child controls is double buffered, the
3774 initial drawing doesn't encompass the entire ClientRectangle of
3775 the parent control, so we end up with uninitialized bits (this is
3776 easily seen by dragging the top toolbar in
3777 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
3778 manually set the ClipRectangle of the paint_event (only the one we
3779 use to populate the ImageBuffer) to ClientRectangle. Fixes more
3780 of the nastiness in bug #72499.
3782 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
3783 which we use in Control.cs's WM_PAINT handling.
3785 2006-10-10 Jackson Harper <jackson@ximian.com>
3787 * TextBoxBase.cs: Finish off the autoscrolling stuff.
3789 2006-10-10 Chris Toshok <toshok@ximian.com>
3791 * Cursor.cs: Apply a slightly different patch to the one suggested
3794 2006-10-10 Jackson Harper <jackson@ximian.com>
3796 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
3797 not the parent form.
3798 * TextControl.cs: use difference in old line count vs new count to
3799 calculate how many lines were added, this takes into account soft
3800 line breaks properly.
3802 2006-10-10 Chris Toshok <toshok@ximian.com>
3804 * LinkLabel.cs: don't call MeasureCharacterRanges against a
3805 rectangle located at 0,0 and the size of the text. Use
3806 ClientRectangle instead. This fixes rendering of non-left aligned
3809 2006-10-10 Jackson Harper <jackson@ximian.com>
3811 * TextBoxBase.cs: When we set the selection start position the
3813 * TextControl.cs: Need to update the caret when we decrement it to
3815 - Make sure that the selection_visible flag gets reset to false if
3816 the selection isn't visible. Before this you could get it set to
3817 visible by changing the selection start, then changing the end to
3820 2006-10-09 Jackson Harper <jackson@ximian.com>
3822 * TreeView.cs: Don't update scrollbars when we aren't visible.
3823 * TreeNodeCollection.cs: Only need to update scrollbars if being
3824 added to an expanded visible node or the root node.
3826 2006-10-09 Chris Toshok <toshok@ximian.com>
3828 * XplatUIX11.cs (SendMessage): fix NRE.
3830 2006-10-09 Jackson Harper <jackson@ximian.com>
3832 * TextBoxBase.cs: Implement horizontal autoscrolling.
3833 * TextControl.cs: Add a movement types that allows moving forward
3834 and backwards without wrapping.
3836 2006-10-09 Mike Kestner <mkestner@novell.com>
3838 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
3839 with focus "expansion" of labels. Fixes #79532 and then some.
3840 * ThemeWin32Classic.cs : add LineLimit to ListView label format
3843 2006-10-09 Jackson Harper <jackson@ximian.com>
3845 * TextBoxBase.cs: Set the default max values to MaxValue since
3846 we use the scrollbar for autoscrolling and the default value is
3847 100. If we don't do this the caret won't keep up with typing
3848 after about 18 characters.
3849 * TextControl.cs: Make sure the selection is offset by the
3850 viewport x. This fixes selection when using auto scrolling.
3852 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
3854 * Form.cs: The active control should be selected after the
3855 OnLoad so that any child control initialization that affects
3856 the selection is done. Fixes #79406
3858 2006-10-06 Chris Toshok <toshok@ximian.com>
3860 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
3861 to have no evil effects.
3863 - Stop selecting StructureNotifyMask on non-toplevel windows.
3865 The only way children should be resized is by using the SWF api,
3866 and we already send WM_WINDOWPOSCHANGED messages in those cases.
3867 Toplevel windows can be interacted with via the window manager,
3868 and so we keep the input mask there.
3870 The other event StructureNotifyMask gives us (that we care
3871 about) is DestroyNotify. The code is already structured such
3872 that it assumes we won't be getting a DestroyNotify event for
3873 the window we pass to XDestroyWindow (which is what
3874 StructureNotifyMask is supposed to guarantee.) So, that code
3875 shouldn't be affected by this either.
3877 - Stop selecting VisibilityChangeMask altogether.
3879 We weren't doing anything with the resulting events anyway.
3881 This vastly reduces the number of X requests and events we see
3882 when resizing/laying out a large ui.
3884 2006-10-06 Chris Toshok <toshok@ximian.com>
3886 * ScrollableControl.cs (DisplayRectangle): we need to take into
3887 account the DockPadding regardless of whether or not auto_scroll
3888 == true. rework this slightly to this effect, and fix bug #79606,
3889 and part of #72499 (you can now see the drag handles and drag
3892 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
3894 * ListViewItem.cs: Collections of selected and checked items are now
3895 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
3896 we mark the collection "dirty".
3897 * ListView.cs: Marked collections readonly. Modified UpdateSelection
3898 to only clear SelectedItems when a new item is selected and MultiSelect
3899 is enabled. CheckedItems and SelectedItems now subscribe to Changed
3900 event of ListViewItemCollection, and mark its list dirty whenever
3901 that event is fire. This allows us to return selected/checked items
3902 in the same order as they are in the Items collection. This matches
3905 2006-10-06 Chris Toshok <toshok@ximian.com>
3907 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
3908 right mouse clicks. Fixes bug #79593.
3910 2006-10-06 Chris Toshok <toshok@ximian.com>
3912 * Splitter.cs: doh, fix splitters that don't want to cancel the
3913 movement when you drag them. Also, impose the limits on the
3914 values we send to the SplitterMovingEvent. Fixes #79598.
3916 2006-10-06 Jackson Harper <jackson@ximian.com>
3918 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
3919 since we use this for auto scrolling also.
3921 2006-10-05 Chris Toshok <toshok@ximian.com>
3923 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
3924 beginning to think that most datagrid column types don't need this
3925 method. Fixes bug #79392.
3927 2006-10-05 Chris Toshok <toshok@ximian.com>
3929 * DataGrid.cs: move back to a more lazy scheme for creating the
3930 CurrencyManager, so we aren't updating it every time you set
3931 either DataSource or DataMember. Also, don't call
3932 RecreateDataGridRows if the currency manager hasn't changed.
3934 2006-10-05 Chris Toshok <toshok@ximian.com>
3936 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
3937 emitted, SelectedIndex should already be updated. Fixes bug
3940 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
3942 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
3943 ToolStripTextBox.cs: Initial commit.
3944 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
3946 2006-10-05 Jackson Harper <jackson@ximian.com>
3948 * TabControl.cs: We need to invalidate the tab control area when
3949 new ones are added (duh).
3951 2006-10-03 Chris Toshok <toshok@ximian.com>
3953 * Form.cs (ProcessDialogKey): if the focused control is in this
3954 form and is a button, call its PerformClick method here. Fixes
3957 2006-10-04 Jackson Harper <jackson@ximian.com>
3959 * TabPage.cs: Ignore setting of Visible, and add an internal
3960 method for setting the controls visibility. TabPage's Visible
3961 property is a little strange on MS, this seems to make us
3962 compatible, and fixes cases where people set all the tab pages to
3964 * TabControl.cs: Use the new internal setting on tab pages
3967 2006-10-03 Mike Kestner <mkestner@novell.com>
3969 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
3971 2006-10-03 Mike Kestner <mkestner@novell.com>
3973 * ListView.cs : use is_visible instead of Visible to check if
3974 scrollbars should be placed/sized. Also some max_wrap_width
3975 love for LargeIcon view. [Fixes #79533]
3977 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
3980 Make set_TextAlign() do actually update the align. Fixed #78403.
3982 2006-10-03 Chris Toshok <toshok@ximian.com>
3984 * DataGrid.cs: fix a crash when switching datasources if the
3985 vertical scrollbar is at someplace other than Value = 0. Also,
3986 reduce the number of recalculation passes we do in SetDataSource
3989 2006-10-03 Jackson Harper <jackson@ximian.com>
3991 * TextBoxBase.cs: Move the if value the same bail check up, we
3992 don't want to empty the document if it is already empty, this
3993 seems to severly mess up the caret. TODO: I should probably fix
3994 the empty statement to update teh caret somehow.
3996 2006-10-03 Chris Toshok <toshok@ximian.com>
3998 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
3999 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
4000 reflection, an internal row type, properties on said type, etc.)
4001 will work with our datagrid. Fixes #79531.
4003 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
4005 * FileDialog.cs: Don't crash if a path is not accessible
4006 (System.UnauthorizedAccessException). Fixes #79569.
4007 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
4008 a ':' too. Return unknown icon for those paths/files.
4010 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
4012 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
4013 GetContainerControl returns null.
4015 2006-10-02 Chris Toshok <toshok@ximian.com>
4017 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
4018 call to XGetWindowAttributes instead of "handle". fixes an X
4019 error using notifyicon after the NotifyIconWindow to Form base
4022 2006-10-02 Chris Toshok <toshok@ximian.com>
4024 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
4025 server grab and looping we need to do to get down to the most
4026 deeply nested child window.
4027 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
4028 QueryPointer again after the WarpPointer so we can generate a
4029 proper (fake) MotionNotify event to be enqueued in the destination
4031 (GetCursorPos): call QueryPointer.
4035 2006-10-02 Jackson Harper <jackson@ximian.com>
4037 * NotifyIcon.cs: Derive the notify icon from a form, so things
4038 like FindForm work on it.
4039 - Swallow the WM_CONTEXTMENU message, since that is generated on
4040 mouse down, and context menu is a mouse up kinda guy. I believe
4041 the correct fix here is probably to make the notify icon entirely
4042 NC area, but this seems to work fine for anyone not manipulating
4045 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
4047 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
4048 ToolStripItemCollection.cs, ToolStripLabel.cs,
4049 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
4050 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
4051 Initial implementation.
4052 * TextRenderer.cs: Provide padding to MeasureText.
4054 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
4056 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
4057 of ButtonBaseAccessibleObject. Fix bug #79552.
4059 2006-10-02 Jackson Harper <jackson@ximian.com>
4061 * MdiWindowManager.cs: When maximizing use the containers client
4062 rect, not it's bounds, so nc area is accounted correctly.
4063 - Use the parent form's size for the menu position, since the
4064 client isn't always the full form size.
4066 2006-10-01 Chris Toshok <toshok@ximian.com>
4068 * ScrollableControl.cs: make sure neither right_edge or
4069 bottom_edge are < 0, since they're used as LargeChange for the
4070 horiz/vert scrollbars respectively. Fixes #79539.
4072 2006-10-01 Chris Toshok <toshok@ximian.com>
4074 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
4075 the xplatuix11 code can cause us to destroy/recreate our handle.
4079 - this code can be invoked many times for the same Hwnd. Make
4080 sure we only destroy the client window once (the first time this
4081 method is called). This fixes bug #79544.
4082 - Remove the call to the improperly bound XSync. why we had two
4083 bindings to this, I will never know, but this call resulted in
4084 events being discarded from the queue(!).
4085 - correct a misunderstanding of _XEMBED_INFO - the second atom is
4086 not our current state but the state we wish to be in. So, 0 if
4087 we don't want to be mapped. Change it to 1.
4088 (SystrayRemove): The XEMBED spec makes mention of the fact that
4089 gtk doesn't support the reparent of client windows away from the
4090 embedder. Looking at gtksocket-x11.c seems to agree with this.
4091 The only avenue we have for removing systray icons is to destroy
4092 them. We don't want the handle to go away for good, though, so
4093 call InternalRecreateHandle on the NotifyIconWindow. Fixes
4096 2006-10-01 Chris Toshok <toshok@ximian.com>
4098 * Form.cs (WndProc): inline the native_enabled variable usage into
4099 the cases in which it's used. Fixes #79536.
4101 2006-09-29 Mike Kestner <mkestner@novell.com>
4103 * ListView.cs : toggle the selection state for ctrl clicks in
4104 multiselect mode. [Fixes #79417]
4106 2006-09-29 Mike Kestner <mkestner@novell.com>
4108 * ListView.cs : kill CanMultiSelect and refactor the selection
4109 code to support multiselection in the absence of mod keys. Steal
4110 arrow/home/end keys by overriding InternalPreProcessMessage to
4111 restore regressed keynav behavior.
4114 2006-09-29 Jackson Harper <jackson@ximian.com>
4116 * MdiClient.cs: Repaint the titlebars when the active window is
4119 2006-09-29 Chris Toshok <toshok@ximian.com>
4121 * Application.cs: when entering a runloop with a modal, make sure
4122 the hwnd is enabled. Fixes #79480.
4124 2006-09-29 Chris Toshok <toshok@ximian.com>
4126 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
4127 when ListManager.CanAddRows == false, bump us back one.
4129 * DataGridColumnStyle.cs (ParentReadOnly): remove the
4130 listmanager.CanAddRows check. This makes ArrayLists uneditable
4131 using a datagrid, which is not right.
4132 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
4133 is an IEditable, but call property_descriptor.SetValue regardless.
4136 2006-09-29 Chris Toshok <toshok@ximian.com>
4138 * DataGridBoolColumn.cs: we need to test equality in the face of
4139 possible null values (as is the case with the default NullValue).
4140 This patch keeps us from crashing in that case.
4142 2006-09-29 Jackson Harper <jackson@ximian.com>
4144 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
4145 here, since it will get called for every node collection in the
4146 tree. This is now done in the treeview once the sorting is
4148 * TreeView.cs: Recalculate the visible order, and update the
4149 scrollbars after sorting, set the top nope to the root so that the
4150 recalc actually works.
4152 2006-09-29 Chris Toshok <toshok@ximian.com>
4154 * LinkLabel.cs: more handling of the default link collection in
4155 the face of LinkArea manipulation. The default link collection
4156 contains 1 element (start=0,length=-1). If the user sets LinkArea
4157 to anything and the links collection is the default, clear it.
4158 Then only add the link if its nonempty. Fixes #79518.
4160 2006-09-29 Chris Toshok <toshok@ximian.com>
4162 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
4163 piece correctly when we hit a '\n'. Fixes #79517.
4165 2006-09-29 Chris Toshok <toshok@ximian.com>
4167 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
4168 change the binding of gdk_init_check to take two IntPtr's, and
4169 pass IntPtr.Zero for both of them. Fixes #79520.
4171 2006-09-29 Mike Kestner <mkestner@novell.com>
4173 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
4176 2006-09-28 Jackson Harper <jackson@ximian.com>
4178 * XplatUIX11.cs: When translating NC messages make sure we go from
4179 whole window to screen, not client window to screen.
4180 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
4181 method doesn't exist
4182 - Skip over controls that aren't forms when arranging.
4184 2006-09-28 Jackson Harper <jackson@ximian.com>
4186 * XplatUIWin32.cs: Clip the rect to the parent window.
4187 * XplatUIStructs.cs: Add clipping modes struct.
4188 * InternalWindowManager.cs: New private method that factors title
4189 bar heights in when calculating the pos of an NC mouse message.
4190 - Use SendMessage to force a paint when the form's size is changed
4191 instead of painting the decorations immediately.
4192 - Don't let the NC button click messages get to DefWndProc,
4193 because they will attempt to handle windowing themself, and this
4194 messes up z-order (it will put them in front of the scrollbars).
4195 * XplatUIX11.cs: Make sure that we don't reset window managers if
4196 we already have one (ie the window is an MDI window).
4198 2006-09-28 Chris Toshok <toshok@ximian.com>
4200 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
4201 menu code really needs going over.
4203 2006-09-27 Chris Toshok <toshok@ximian.com>
4205 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
4206 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
4207 window is maximizable. So, we need to make sure that even if we
4208 clear the border/wm frame of those functions, they're still
4209 available (basically, we remove the decoration without removing
4210 the function). Half the fix for #79338.
4212 2006-09-27 Chris Toshok <toshok@ximian.com>
4214 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
4217 2006-09-27 Chris Toshok <toshok@ximian.com>
4219 * Splitter.cs: reorder things a bit so that we don't actually
4220 draw/move the splitter until after calling OnSplitterMoving. This
4221 lets users cancel/disallow the movement by explicitly setting
4222 event.SplitX/SplitY. Fixes #79372.
4224 2006-09-27 Jackson Harper <jackson@ximian.com>
4226 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
4227 because it is most likely on a window being destroyed, and that
4228 will give us an X11 error.
4230 2006-09-27 Chris Toshok <toshok@ximian.com>
4232 * PropertyGridView.cs: half of the fix for #78190. Clicking on
4233 the dropdown button now toggles between showing and hiding the
4234 dropdown. Also, get rid of dropdown_form_showing and just use
4235 dropdown_form.Visible. We still don't do a grab, but I'll leave
4236 that part to someone who has handled Capture-fu before.
4238 2006-09-27 Chris Toshok <toshok@ximian.com>
4240 * DataGrid.cs: return false if alt isn't pressed when '0' is
4241 pressed. this keeps the '0' key from being swallowed, and fixes
4244 2006-09-27 Chris Toshok <toshok@ximian.com>
4246 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
4247 Calling Refresh (in response to a scrollbar event) screws up the
4248 scrollbar painting. Fixes bug #78923.
4250 2006-09-27 Chris Toshok <toshok@ximian.com>
4252 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
4253 then insert into hashtable" blocks threadsafe.
4255 2006-09-27 Chris Toshok <toshok@ximian.com>
4257 * MessageBox.cs (CreateParams): the styles should be |'ed with our
4258 baseclass's, since otherwise the
4259 ControlBox/MinimizeBox/MaximizeBox assignments above have no
4260 effect. This gets the close button back in messageboxes.
4262 2006-09-27 Chris Toshok <toshok@ximian.com>
4264 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
4265 flag, not just != 0. this makes flags that are actually multiple
4266 bits (like WS_CAPTION) work. fixes bug #79508.
4268 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
4270 * PageSetupDialog.cs: add support for getting and settings the
4271 paper size, source and orientation.
4273 2006-09-26 Chris Toshok <toshok@ximian.com>
4275 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
4276 and caption == "", we need to remove the resize handles as well as
4279 * Control.cs (set_Text): turns out that setting Text on a form
4280 should change the WM styles on the window, since if ControlBox ==
4281 false, the only way to get a window border is to have a non-""
4282 Text property. check winforms/forms/text.cs for an example. so,
4283 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
4284 update both window styles and title. This fixes a lot of dialogs
4285 (including the preferences dialog in MonoCalendar.)
4287 2006-09-26 Chris Toshok <toshok@ximian.com>
4289 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
4290 control isn't a Form), call Win32ShowWindow to hide the window,
4291 but don't update the control Visible property. When we reparent
4292 back to a parent control, call SetVisible in order for the
4293 window's visibility to be reinstated.
4295 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
4298 * Control.cs (ControlCollection.Remove): remove that value.Hide()
4299 call for good, since it breaks MonoCalendar (and other things I'm
4300 sure.) Also, set all_controls to null *after* the owner calls,
4301 which end up regenerating it.
4302 (ChangeParent): allow new_parent to be == null, passing
4303 IntPtr.Zero down to XplatUI.
4305 this fixes #79294 the right way.
4307 2006-09-26 Mike Kestner <mkestner@novell.com>
4309 * GridEntry.cs : internal SetParent method.
4310 * PropertyGrid.cs : attach to property changed on the proper
4311 target if we have a hierarchical grid with subobjects. Setup
4312 GridItem.Parent for hierarchical items.
4313 * PropertyGridView.cs : Set value on the correct target for
4314 hierarchical grids. [Fixes #78903]
4316 2006-09-26 Chris Toshok <toshok@ximian.com>
4318 * Control.cs (ChildNeedsRecreating): this should return true if
4319 either we're being recreated and the child is in our list, or our
4320 parent is waiting for our recreation.
4322 2006-09-26 Chris Toshok <toshok@ximian.com>
4324 * Control.cs (ControlCollection.Remove): reinstate the
4325 value.Hide() call as suggested in bug #79294.
4327 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
4329 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
4330 coordinates (versus a relative move).
4332 2006-09-26 Chris Toshok <toshok@ximian.com>
4334 * Control.cs: rework child recreation a little bit. It turns out
4335 that we race between the DestroyNotify the WM_DESTROY message. If
4336 the parent gets its DestroyNotify before the child gets the
4337 WM_DESTROY message, the child ends up not recreating (since the
4338 parent finishes its recreation on DestroyNotify, and the child
4339 checks ParentIsRecreating.)
4341 So, instead we store off a list of all the child controls which
4342 need to be recreated when the parent control starts to recreate
4343 itself. Then, when child controls get their WM_DESTROY message we
4344 check to see if they're in the parent's pending recreation list,
4345 and if so, we recreate. This removes all dependency on ordering
4346 from the code and fixes the initial MonoCalendar upgrade dialog.
4348 2006-09-26 Jackson Harper <jackson@ximian.com>
4350 * TextControl.cs: Use the Line to get the length of the line,
4351 since soft line breaks can change the end line.
4353 2006-09-26 Chris Toshok <toshok@ximian.com>
4355 * Control.cs (ControlCollection.AddImplicit): don't add the
4356 control again if it's already in one of our lists. This keeps us
4357 from adding controls over and over again for comboboxes when their
4358 handle gets recreated (as the combobox adds implicit controls in
4359 OnHandleCreated). Fixes the X11 errors in bug #79480.
4361 2006-09-26 Jackson Harper <jackson@ximian.com>
4363 * TextControl.cs: When deleting characters make sure that any
4364 orphaned zero lengthed tags get deleted.
4365 - Fix ToString for zero lengthed tags.
4367 2006-09-25 Jackson Harper <jackson@ximian.com>
4369 * TextControl.cs: When getting a tag at the location there can be
4370 multiple tags at the same spot, these are 0-lengthed tags that
4371 appear when extra formatting has been stuck in a location. We
4372 need to pull out the last of these 0 lengthed tags.
4374 2006-09-25 Jackson Harper <jackson@ximian.com>
4376 * TextControl.cs: Fix print out in debug method.
4377 * TextBoxBase.cs: When text is set bail if we are setting to the
4380 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
4382 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
4383 It is now possible to change the selected index in a FontXXXListBox
4384 with the up and down arrow keys from the FontXXXTextBoxes.
4385 Also, send the FontXXXTextBox mouse wheel event to the corresponding
4386 FontXXXListBoxes to match ms.
4388 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
4390 * SystemInformation.cs: Return a clone of the theme's MenuFont because
4391 anyone can dispose it, anytime. All other properties returns enums,
4392 structs or basic types so they don't need such tricks.
4394 2006-09-22 Jackson Harper <jackson@ximian.com>
4401 * XplatUIDriver.cs: Update interface to add a primary selection
4402 flag, so the driver can use the primary selection buffer if
4404 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
4406 * RichTextBox.cs: We need to supply the data object to paste now
4407 (so we can choose to supply CLIPBOARD or PRIMARY).
4408 * TextBoxBase.cs: Supply data object to paste (see above).
4409 - Middle click uses the primary selection data object.
4411 2006-09-21 Chris Toshok <toshok@ximian.com>
4413 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
4414 of SetWMStyles. It's still a rat's nest and is largely
4415 order-dependent which I dislike immensely. This also fixes the X
4416 button disappearing from toplevel forms.
4418 2006-09-21 Mike Kestner <mkestner@novell.com>
4420 * ListBox.cs: move Jordi's click/dblclick raising code to the
4423 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
4425 * ListBox.cs: Fixes 79450
4427 2006-09-21 Mike Kestner <mkestner@novell.com>
4429 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
4430 to deal with people updating the TreeNodeCollection after the tree
4431 is disposed. "Fixes" 79330.
4433 2006-09-20 Jackson Harper <jackson@ximian.com>
4435 * TextControl.cs: Push the cursor record onto the undo stack
4436 before the delete action. This fixes 78651.
4438 2006-09-20 Jonathan Chambers <joncham@gmail.com>
4440 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
4441 CreateParams. Fixes 79329.
4443 2006-09-19 Chris Toshok <toshok@ximian.com>
4445 * XplatUIX11.cs: a couple of blanket code massage passes to clean
4446 things up a bit. First, get rid of the NetAtoms array (and the NA
4447 enum), and just embed the atoms as static fields. Also, add a
4448 couple of functions (StyleSet and ExStyleSet) to clean up all the
4449 bitmask testing of styles.
4451 * X11Structs.cs: remove the NA enum, not needed anymore.
4453 2006-09-19 Chris Toshok <toshok@ximian.com>
4455 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
4456 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
4457 added cleanup to get MessageBox titles appearing again, which were
4458 broken by my earlier fix for caption-less/ControlBox-less windows.
4460 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
4462 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
4463 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
4464 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
4465 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
4466 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
4467 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
4468 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
4469 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
4470 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
4471 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
4472 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
4474 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
4475 ToolStripButton.cs: Stubs needed for above.
4476 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
4478 2006-09-15 Chris Toshok <toshok@ximian.com>
4481 - make the MessageQueues hashtable Synchronized.
4483 - SendMessage: if the Hwnd is owned by a different thread, use the
4484 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
4485 thread. Fixes bug #79201.
4487 2006-09-15 Chris Toshok <toshok@ximian.com>
4489 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
4490 ControlBox == false, we disallow maximize/minimize/close. If the
4491 form Caption is "" we also disallow move (and get rid of the Title
4492 decoration). Unfortunately, regardless of how things are set,
4493 we're stuck with the Title and WM menu.
4495 2006-09-15 Chris Toshok <toshok@ximian.com>
4497 * Application.cs: add locking around the static message_filters
4498 ArrayList, part of #79196.
4500 2006-09-15 Chris Toshok <toshok@ximian.com>
4502 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
4503 Form.ControlBox == false, the window has no titlebar nor resize
4504 handles. fixes bug #79368.
4506 2006-09-15 Chris Toshok <toshok@ximian.com>
4508 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
4509 >= 0. Fixes bug #79370.
4511 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
4512 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
4514 Add properties: LayoutEngine, Margin, DefaultMargin.
4515 Add method: GetPreferredSize.
4516 Move layout logic from PerformLayout to layout engines.
4518 2006-09-13 Chris Toshok <toshok@ximian.com>
4520 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
4521 fix for #79326 broke #78718, so this change addresses that.
4523 - in SendWMDestroyMessages remove the call to
4524 CleanupCachedWindows, since we might be recreating the control and
4525 need to maintain the references to right Hwnd handles. Also, set
4526 the zombie flag to true for each of the children in the hierarchy
4527 instead of calling hwnd.Dispose. This will cause GetMessage to
4528 ignore all events for the window except for DestroyNotify.
4530 - In GetMessage, ignore messages except for DestroyNotify for
4533 * Control.cs: revert the is_recreating fix from the last
4534 ChangeLog. It's definitely "right", but it breaks switching from
4535 an MDI form to a non-MDI form. Will need to revisit that.
4537 * Hwnd.cs: add a zombie flag, which means "the
4538 client_window/whole_window handles are invalid, but we're waiting
4539 for the DestroyNotify event to come in for them". Set the flag to
4540 false explicitly if setting WholeWindow/ClientWindow, and also
4543 2006-09-13 Chris Toshok <toshok@ximian.com>
4545 * XplatUIX11.cs: rework window destruction slightly.
4547 - when destroying the windows associated with a control, we don't
4548 need 2 separate XDestroyWindow calls. Just the one for the
4549 whole_window (or for client_window if whole_window is somehow
4550 IntPtr.Zero -- can this happen?) is enough.
4552 - reworked SendWMDestroyMessages slightly, so we always dispose
4553 the child control hwnd's after sending the messages.
4555 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
4556 the two places it was used (one was even using hwnd.Handle and the
4557 other hwnd.client_window. ugh), adding another call in
4558 SendWMDestroyMessages. We need this new call because now the
4559 DestroyNotify events in the queue will be ignored for the child
4560 controls (as their hwnd's were disposed, and the window id's
4561 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
4563 - this fixes bug #79326.
4565 2006-09-13 Chris Toshok <toshok@ximian.com>
4567 * Control.cs: don't always set is_recreating to false at the end
4568 of RecreateHandle, since sometimes we're not done (and won't be
4569 until WndProc handles the WM_DESTROY message). Also, set
4570 is_recreating to false in the WM_DESTROY handling code. Part of
4571 the fix for bug #79326.
4573 2006-09-13 Miguel de Icaza <miguel@novell.com>
4575 * X11DesktopColors.cs: Start the droppage of debugging messages.
4577 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
4579 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
4581 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
4583 2006-09-12 Chris Toshok <toshok@ximian.com>
4585 * DataGrid.cs (get_ListManager): if the list_manager is null, try
4586 to create it using SetDataSource. Fixes bug #79151.
4588 2006-09-11 Chris Toshok <toshok@ximian.com>
4590 * XEventQueue.cs: add a DispatchIdle property.
4592 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
4593 either the queue is null, or the queue has DispatchIdle set to
4595 (DoEvents): set queue.DispatchIdle to false around the
4596 peek/translate/dispatch message loop in this method. This keeps
4597 Application.Doevents from emitting idle events. Part of the fix
4600 2006-09-11 Chris Toshok <toshok@ximian.com>
4602 * DataGrid.cs (set_DataSource): make this work for both the
4603 winforms/datagrid test and ReportBuilder. It seems as though when
4604 we've created a ListManager (or maybe it's if we have a
4605 BindingContext?), when we set the DataSource it clears the
4606 DataMember to "". otherwise we reuse the datamember. Fixes bug
4609 2006-09-11 Chris Toshok <toshok@ximian.com>
4611 * XplatUIX11.cs: deal with queue being null, which happens in all
4612 the Clipboard functions. Fixes one of the two problems mentioned
4615 2006-09-11 Chris Toshok <toshok@ximian.com>
4617 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
4618 button on various spots (including outside the menu) works closer
4619 to MS, and doesn't crash. Fixes #79343.
4621 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
4623 * ListView.cs: Do not initialize item_sorter in init. To match MS,
4624 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
4625 and the internal comparer is set. When a new ListViewItemSorter is set,
4626 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
4627 was specified. No further processing is necessary if SortOrder is set
4628 to it's current value. If Sorting is modified to None, and View is
4629 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
4630 (either custom or our internal ItemComparer) to null, on 1.0 profile
4631 only set item_sorter to null if its our internal IComparer. If Sorting
4632 is modified to Ascending or Descending, then use our internal IComparer
4633 if none is set, and if the current IComparer is our internal one then:
4634 on 2.0 profile always replace it with one for new Sorting, and on 1.0
4635 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
4636 Enum.IsDefined to verify whether a valid View value is specified in
4637 its setter. Automatically sort listview items when listview is
4638 created. In Sort, do nothing if ListView is not yet created, or if
4639 no item_sorter is set (no Sorting was set, Sorting was explicitly set
4640 to None or ListViewItemSorter was set to null). Added Sort overload
4641 taking a bool to indicate whether the ListView should be redrawn when
4642 items are sorted (we use this in ListViewItemCollection to avoid double
4643 redraws). Modified our internal IComparer to take the sort order into
4644 account. In Add and AddRange methods of ListViewItemCollection, also
4645 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
4646 view), but use overload with noredraw option to avoid double redraw.
4647 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
4648 true when View is Tile, and do the same when attempting to set View to
4649 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
4650 for selected/checked indices, as it involves overhead when sorting is
4651 done while these collections are not used all that often. Instead
4652 we'll build the indices on demand. Modified IList implementation of
4653 CheckedIndexCollection to use public methods if object is int.
4654 Modified CheckedListViewItemCollection to hide checked items if
4655 ListView.CheckBoxes is false. Removed LAMESPEC remark in
4656 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
4657 IList implementation in SelectedIndexCollection to use public methods
4658 if object is int. Modified SelectedListViewItemCollection to hide
4659 selected items if listview is not yet created.
4660 * ListViewItem.cs: CheckedIndices list no longer needs to be
4661 maintained separately (see ListView changes). Also clone font, fixes
4664 2006-09-11 Mike Kestner <mkestner@novell.com>
4666 * ComboBox.cs: if we are updating the contents of the currently
4667 selected index, refresh the control or the textbox selection.
4670 2006-09-11 Mike Kestner <mkestner@novell.com>
4672 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
4673 the 'specified' logic has been moved there. This seems like a bug
4674 in Control.cs, since our current SetBoundsCore completely ignores
4675 the specified parameter. Peter's commit seems to indicate that is
4676 the way the MS control implementation works. [Fixes #79325]
4678 2006-09-10 Jonathan Chambers <joncham@gmail.com>
4680 * XplatUI.cs: Set default_class_name to be composed
4681 of current domain id. This allows MWF to be loaded in multiple
4684 2006-09-09 Miguel de Icaza <miguel@novell.com>
4686 * X11Keyboard.cs: If we are unable to obtain the input method, do
4687 not call CreateXic to create the input context. Should fix
4690 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
4692 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
4693 Simplified gnome support by adding more pinvokes to get the
4694 icon for a file or mime type.
4696 2006-09-08 Jackson Harper <jackson@ximian.com>
4698 * MenuAPI.cs: Deslect popup context menu items before closing the
4699 window, so that you don't see the previously selected item
4700 selected when you reopen the menu.
4701 * TextControl.cs: Update the cursor position even if we don't have
4702 focus. This fixes typing in things like the ComboBox. I'm not
4703 totally sure we should always set the visibility if we don't have
4704 focus, but couldn't find any corner cases where the cursor showed
4705 up when it shouldn't.
4707 2006-09-08 Chris Toshok <toshok@ximian.com>
4709 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
4710 our arrays are length 256. & 0xff before indexing. Fixes the
4711 crash in bug #78077.
4713 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715 * ThemeWin32Classic.cs:
4716 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
4717 is true. Handle that check box too.
4719 2006-09-07 Chris Toshok <toshok@ximian.com>
4721 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
4724 2006-09-07 Chris Toshok <toshok@ximian.com>
4726 * Control.cs: in set_BackColor only do the work if
4727 background_color != value.
4729 * XplatUIX11.cs: move the clearing of invalid areas (both client
4730 and nc) to the same block of code where we set (nc_)expose_pending
4731 to false. That is, move it from PaintEventEnd to PaintEventStart,
4732 so things that cause invalidates from within OnPaint will trigger
4733 another call to OnPaint. Fixes bug #79262.
4735 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
4737 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
4738 * FileDialog.cs: Fix typo
4740 2006-09-07 Jackson Harper <jackson@ximian.com>
4742 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
4743 for tab pages if they have any.
4745 2006-09-06 Mike Kestner <mkestner@novell.com>
4747 * Splitter.cs: use the "current" rect when finishing drag handle
4748 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
4750 2006-09-06 Mike Kestner <mkestner@novell.com>
4752 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
4753 support offset splitters. [Fixes #79298]
4755 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
4757 * Mime.cs: Fixed a bug that could override the global mime type
4760 2006-09-05 Jackson Harper <jackson@ximian.com>
4762 * TabControl.cs: Better calculation method for setting the slider
4763 pos. Prevents crashes on really wide tabs.
4764 - Draw Image on tab pages if an image list is used.
4766 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4768 * MonthCalendar.cs: When Font changes, the Size should be
4769 updated to fit the new font's space requirements.
4771 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
4773 * ListBox.cs: If the items are cleared with Items.Clear set
4776 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4778 * MonthCalendar.cs: Handle arrow keys as input keys. Also
4779 fire DateChanged event instead of DateSelected event when
4780 the date was changed by keyboard interaction.
4782 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4784 * DateTimePicker.cs: Handle DateChanged for the associated
4785 month_calendar control, and set month_calendar.Font from
4786 OnFontChanged method, as well as resize the height of the
4787 control when needed. Make PreferredHeight proportional.
4789 2006-09-01 Chris Toshok <toshok@ximian.com>
4791 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
4794 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
4796 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
4798 * FileDialog.cs: Set ClientSize instead of window size, to allow space
4799 for decorations (Fixes #79219)
4801 2006-09-01 Mike Kestner <mkestner@novell.com>
4803 * ComboBox.cs: first stab at sorting plus some selection handling
4804 fixes to bring us more in line with MS behavior. Also switches back
4805 to index based selection. Alternative patches for index-based
4806 selection were provided by Jackson Harper, Carlos Alberto Cortez,
4807 and latency@gmx.de on bug 78848. I assume they were similar to this
4808 code I've had simmering in my tree forever.
4811 2006-09-01 Chris Toshok <toshok@ximian.com>
4813 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
4814 when setting list position guard against ending up with a -1 index
4815 (the other part of the fix for #78812). Should probably make sure
4816 we don't need the analogous fix in the ItemDeleted case.
4819 - in SetDataSource, work around the fact that the way
4820 OnBindingContextChanged is invoked will cause us to re-enter this
4821 method. I'll remove the hack once I investigate
4822 OnBindingContextChanged.
4824 - fix the logic in set_DataSource and set_DataMember (basically
4825 what to do if the other of the two is null.)
4827 - in OnListManagerItemChanged, we need to take into account the
4828 edit row when deciding whether or not to call RecreateDataGridRows
4829 (part of the fix for #78812).
4831 2006-09-01 Jackson Harper <jackson@ximian.com>
4833 * Splitter.cs: Don't do anything if there is no control to affect
4834 (prevents us from crashing in weird tet cases).
4835 * TreeView.cs: Bounding box for the mouse movement reverting
4836 focus/selection back to previously selected node. This matches
4837 MS, and makes the tree a lot more useable.
4838 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
4839 use clipping so they are not drawn. This fixes when the control
4840 is set to have a transparent background, or if it was over an
4843 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
4845 * MimeIcon.cs: Improved handling for reading default icons when
4846 using gnome (2.16 made it necessary). Check and read svg icons
4847 first, then 48x48 and then 32x32 icons.
4849 2006-08-31 Chris Toshok <toshok@ximian.com>
4851 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
4854 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
4855 ProcessKeyPreview. Fixes part of #77806.
4857 * DataGrid.cs: big patch.
4859 - revert the queueing up of DataSource/DataMember if inside
4860 BeginInit/EndInit calls. That's not the way the datagrid achieves
4861 its delayed databinding. Instead, call SetDataSource in
4862 OnBindingContextChanged. This mimic's MS's behavior, and fixes
4865 - Also, it wasn't mentioned in #78811, but the test case exhibits
4866 behavior that was lacking in our datagrid implementation - Columns
4867 that have mapping names that don't exist in the datasource's
4868 properties aren't shown. Yuck. To fix this I added the bound
4869 field to the column style, and basically any calculation to figure
4870 out anything about columns uses a loop to find the bound columns.
4871 still need to investigate if I can cache an array of the bound
4872 columns or if the indices must be the same.
4874 - When setting CurrentCell, we no longer abort if the cell being
4875 edited was in the add row. This fixes the other part of #77806.
4877 - The new code also fixes #78807.
4879 * ThemeWin32Classic.cs: perpetrate the same disgusting
4880 column.bound field hack, and only render bound fields.
4882 2006-08-31 Chris Toshok <toshok@ximian.com>
4884 * DataGridColumnStyle.cs: add bound field. this field is true if
4885 the datasource has a property corresponding to the mapping name.
4887 * DataGridTableStyle.cs: set the bound field on the column styles
4888 depending on whether or not we have a column for that property.
4890 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
4892 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
4893 splitter control (fixes #79228)
4895 2006-08-31 Chris Toshok <toshok@ximian.com>
4897 * DataGridColumnStyle.cs: we need to delay the assignment of
4898 property descriptor until the last possible moment due to the lazy
4899 databinding stuff in the datagrid. Also, fix the exceptions
4900 thrown by CheckValidDataSource to match MS.
4902 2006-08-31 Jackson Harper <jackson@ximian.com>
4904 * Form.cs: When activated select the active control, if there is
4905 no active control, we select the first control.
4906 * XplatUIX11.cs: If there is no focus control when we get a
4907 FocusIn event, find the toplevel form and activate it. This
4908 occurs when you popup a window, it becomes the focus window, then
4909 you close that window, giving focus back to the main window.
4911 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4914 * ThemeWin32Classic.cs: Cache Font in bold style, as well
4915 as StringFormat with Center alignments in MonthCalendar,
4916 instead of creating new ones when drawing the control.
4917 Also, draw the month name in bold style.
4919 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
4922 - PerformLayout(): It would seem MS performs the fill even if the
4923 control is not visible (part of #79218 fix)
4924 - ResetBackColor(): Use the setter to reset the color, to allow
4925 overriders to catch the change.
4927 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
4928 - CreateHandle(): dito (part of $79218 fix)
4929 - Don't set an icon if we have a dialog
4930 * ScrollableControl.cs:
4931 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
4932 - ScrollIntoView(): No need to scroll if control is already visible
4933 (resolves fixme and fixes #79218)
4935 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4937 * MonthCalendar.cs: Change proportions in SingleMonthSize
4938 to match the aspect of the original control.
4940 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
4942 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
4943 get updated when they get maximized.
4945 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
4947 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
4949 2006-08-29 Chris Toshok <toshok@ximian.com>
4951 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
4953 2006-08-29 Jackson Harper <jackson@ximian.com>
4955 * TreeView.cs: Need to track selected node and highlighted node,
4956 they aren't always the same thing, when the mouse is down on a
4957 node it is hilighted, but not selected yet.
4958 - Do the HideSelection stuff right
4959 - Need to focus on rbutton mouse down. And redraw selection when
4960 right click is mouse upped.
4962 2006-08-29 Mike Kestner <mkestner@novell.com>
4964 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
4965 when SubItems.Count < Columns.Count. [Fixes #79167]
4967 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
4969 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
4971 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
4973 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
4974 from X. Only send based on ConfigureNotify if we don't have the
4975 correct location in hwnd (if the window manager moved us)
4977 2006-08-28 Mike Kestner <mkestner@novell.com>
4979 * ListView.cs: remove a TODO.
4980 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
4981 [Fixes ListView part of #79166]
4983 2006-08-28 Mike Kestner <mkestner@novell.com>
4985 * ListView.cs: move wheel handler to parent since it is focused
4986 instead of the item_control now. [Fixes #79177]
4988 2006-08-28 Mike Kestner <mkestner@novell.com>
4990 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
4991 when the control is focused. [Fixes #79171]
4993 2006-08-28 Mike Kestner <mkestner@novell.com>
4995 * ListView.cs: size the item and header controls for empty and
4997 * ThemeWin32Classic.cs: draw disabled backgrounds.
5000 2006-08-28 Chris Toshok <toshok@ximian.com>
5002 * Form.cs: remove unused "active_form" static field.
5004 * Hwnd.cs: lock around accesses to static windows collection.
5006 * Application.cs: lock threads in Exit ().
5008 2006-08-28 Chris Toshok <toshok@ximian.com>
5010 * NativeWindow.cs: lock around accesses to window_collection.
5012 2006-08-28 Chris Toshok <toshok@ximian.com>
5014 * Control.cs: err, fix this the right way, by locking on controls
5015 when using it. not by making it synchronized.
5017 2006-08-28 Chris Toshok <toshok@ximian.com>
5019 * Control.cs: make the static "controls" field synchronized, as it
5020 gets updated from multiple threads.
5022 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5024 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
5025 Prevent other threads from exiting when calling thread sets quit state.
5026 * XEventQueue.cs: Added PostQuitState property
5028 2006-08-27 Chris Toshok <toshok@ximian.com>
5030 * AsyncMethodData.cs: add a slot for the window handle.
5032 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
5033 window (the destination control's window, not the foster window).
5035 * Control.cs (BeginInvokeInternal): store the window's handle in
5036 the AsyncMethodData.
5039 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5042 - PostQuitMessage: Removed resetting S.D display handle, we might have
5043 another loop started after calling PostQuitMessage (Fixes #79119)
5044 - Created destructor to reset S.D handle
5046 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
5048 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
5050 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5052 * TextControl.cs (Insert): Update the caret position even if we don't
5053 have a handle yet, just don't call the driver in that case.
5054 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
5055 to the end of the new selection text (Fixes #79184)
5057 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5059 * Form.cs (Activate): Only activate if the handle is created)
5061 - Mark window as invisible when it's disposed
5062 - Check if window handle is created when setting window visible,
5063 instead of relying just on the is_created variable
5064 - Check if object is disposed when creating the control (Fixes #79155)
5066 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5068 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
5069 when allowing layout again. Otherwise we re-generate the anchoring
5070 distance to the border again and actually alter what the user wanted
5071 This is ugly, it'd be better if we used DisplayRectangle instead of
5072 ClientRectangle for Control.UpdateDistances, but that causes us to
5073 have other problems (initial anchoring positons would be wrong)
5076 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5079 - The size and location setters shouldn't go directly to
5080 SetBoundsCore, but to SetBounds, which triggers layout on the
5081 parent, then calls SetBoundsCore. (Related to fix for #78835)
5082 - SetBounds: Moved actual location update code into this function
5083 from SetBoundsCore, to match MS. Added call to PerformLayout if
5084 we have a parent (to trigger resizing of anchored parents if the
5085 child size has changed (see testcase for #78835)
5086 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
5088 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
5090 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5092 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
5093 System.Drawing when a toplevel window gets closed; there might
5094 be other toplevel windows belonging to the same app (Fixes #78052)
5096 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
5098 * FileDialog.cs: After reading FileDialog settings from mwf_config
5099 use Desktop prefix only if a real folder doesn't exist anymore.
5100 * FontDialog.cs: Added char sets.
5101 It is now possible to select the font, size or style with the
5104 2006-08-25 Kornél Pál <kornelpal@gmail.com>
5106 * PrintPreviewDialog.cs: Use assembly name constants.
5108 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5110 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
5111 scrollbar from whacking it's buttons)
5113 2006-08-24 Chris Toshok <toshok@ximian.com>
5115 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
5116 in this patch (aggregating setting Left/Top/Width/Height to
5117 setting Bounds on the scrollbars), but the crux of the fix is in
5118 Recalculate, where we scroll by the remaining scroll_position if
5119 we're hiding a scrollbar. The 2*$5 reward in the comment is
5122 2006-08-24 Jackson Harper <jackson@ximian.com>
5125 * MdiWindowManager.cs: If the form is made a non-mdi window we
5126 need to remove the form closed event so that closing forms works
5129 2006-08-24 Jackson Harper <jackson@ximian.com>
5131 * Control.cs: Make IsRecreating internal so that the driver can
5133 - Temporarily remove the Hide when controls are removed, its
5134 making a whole bunch of things not work because visibility isn't
5135 getting reset elsewhere correctly
5136 * Form.cs: Need to do a full handle recreation when the mdi parent
5138 * XplatUIX11.cs: If we are recreating handles don't dispose the
5139 HWNDs. What was happening is the handles were being recreated in
5140 SendWMDestroyMessages, but then flow continued on in that method
5141 and destroyed the new handles.
5143 2006-08-23 Jackson Harper <jackson@ximian.com>
5145 * Form.cs: MdiClient is always at the back of the bus
5146 * Control.cs: When the order of items in the collection is changed
5147 we need to reset the all_controls array
5148 - do the same sorta setup thats done when adding a control when a
5149 control is set on the collection.
5151 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5153 * TextBoxBase.cs (get_Text): Return an empty array if our document
5154 is empty (fixes #79052)
5156 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5158 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
5159 on WM_SYSCHAR messages (fixes #79053)
5161 2006-08-23 Chris Toshok <toshok@ximian.com>
5163 * DataGrid.cs: fix flickering when scrolling vertically.
5165 2006-08-23 Chris Toshok <toshok@ximian.com>
5167 * DataGrid.cs (EndEdit): only invalidate the row header when we
5170 2006-08-23 Chris Toshok <toshok@ximian.com>
5172 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
5173 methods. fixes the flicker when scrolling around.
5175 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5177 * FileDialog.cs: Making sure the control is created before we get a
5178 chance to use it with BeginInvoke (Fixes #79096)
5180 2006-08-23 Chris Toshok <toshok@ximian.com>
5182 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
5183 width to use when painting the rows.
5185 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
5188 - Throw ArgumentException if a negative value is passed to SelectionLength
5189 - Update the selection end if start is moved. end needs to be always
5190 after start. (Fixes #79095)
5191 - Track selection length; MS keeps the selection length even if start
5192 is changed; reset on all other operations affection selection
5194 2006-08-22 Jackson Harper <jackson@ximian.com>
5196 * TreeView.cs: Make sure both scrollbars get displayed and sized
5197 correctly when the other bar is visible.
5198 - Use the original clip rectangle for checking if the area between
5199 the two scrollbars is visible, not the viewport adjusted clipping
5202 2006-08-22 Jackson Harper <jackson@ximian.com>
5204 * Binding.cs: We don't use IsBinding because it requires the
5205 control to be created, which really shouldn't be necessary just to
5206 set a property on the control.
5208 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210 * ComboBox.cs: Some CB.ObjectCollection methods must throw
5211 ArgumentNullReferenceException when the argument is null.
5213 2006-08-21 Jackson Harper <jackson@ximian.com>
5215 * Timer.cs: Track the thread that the timer is started in (NOT
5216 CREATED), this way messages for it will only be triggered on its
5218 * XEventQueue.cs: Track the timers here, this makes timers per
5220 * XplatUIX11.cs: The timers are moved to the XEventQueue.
5222 2006-08-19 Chris Toshok <toshok@ximian.com>
5224 * XplatUIX11.cs: after further communication with pdb, we get the
5225 best of both worlds. SetZOrder working for un-Mapped windows, and
5226 no X errors for un-mapped windows.
5228 2006-08-19 Chris Toshok <toshok@ximian.com>
5230 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
5231 as it was causing pdn toolbars to not have the correct stacking.
5233 2006-08-18 Mike Kestner <mkestner@novell.com>
5235 * ListView.cs : guard against negative ClientArea.Width in scrollbar
5236 calculation. Not sure why control should ever be setting a negative
5237 width though. Fixes #78931.
5239 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5241 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
5242 null items in ObjectCollection class.
5243 * ListBox.cs.: Likewise.
5245 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
5247 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
5248 as the base method in ThemeWin32Classic should work fine.
5251 2006-08-18 Jackson Harper <jackson@ximian.com>
5253 * Binding.cs: When validating if the value entered doesn't convert
5254 properly reset to the old value.
5255 * RadioButton.cs: Don't fire click when we get focus.
5257 2006-08-18 Jackson Harper <jackson@ximian.com>
5259 * FileDialog.cs: Paint the selection on the directory combobox the
5262 2006-08-17 Jackson Harper <jackson@ximian.com>
5264 * ErrorProvider.cs: Don't allow the error control to be selected.
5265 * Control.cs: Don't send the SetFocus messages, the control
5266 activation will do this, and if we do it blindly here validation
5269 2006-08-17 Jackson Harper <jackson@ximian.com>
5272 * ContainerControl.cs: Make validation events fire in the correct
5273 order. TODO: For some reason the first validation event is not
5276 2006-08-17 Mike Kestner <mkestner@novell.com>
5278 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
5280 2006-08-17 Mike Kestner <mkestner@novell.com>
5282 * ComboBox.cs : implement scroll wheel support for popped-down
5283 state. Fixes #78945.
5285 2006-08-17 Jackson Harper <jackson@ximian.com>
5287 * TreeView.cs: Specify treeview actions (old patch that didn't get
5288 committed for some reason).
5289 - Don't let the mouse wheel scroll us too far. Just want to make
5290 the bottom node visible, not scroll it all the ways to the top.
5292 2006-08-17 Jackson Harper <jackson@ximian.com>
5294 * XplatUIX11.cs: Mouse wheel events go to the focused window.
5296 2006-08-17 Mike Kestner <mkestner@novell.com>
5298 * ComboBox.cs : don't do mouseover selection in simple mode.
5300 2006-08-16 Jackson Harper <jackson@ximian.com>
5302 * Form.cs: Fire the closing events for all the mdi child windows
5303 when a window is closed. If the cancel args are set to true, the
5304 main window still gets the event fired, but it doesn't not close.
5305 * MdiWindowManager.cs: Do this closing cleanup in a Closed
5306 handler, instead of when the button is clicked, so cancelling the
5307 close works correctly.
5308 * ComboBox.cs: Send the mouse down to the scrollbar.
5310 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5312 * ListBox.cs: When passing 'null' to SelectedItem,
5313 set SelectedIndex to -1, to unselect items. This is the
5314 observed behaviour in .Net.
5316 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
5318 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
5319 MS flags saying there won't be any. (fixes #78800)
5320 * Control.cs (HandleClick): Made virtual
5322 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
5324 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
5325 cultures. Fixed bug #78399.
5327 2006-08-16 Jackson Harper <jackson@ximian.com>
5329 * Form.cs: Use the MdiClients MdiChildren property to access
5330 MdiChildren instead of creating the array from the child controls.
5331 * MdiClient.cs: Maintain a separate array of the mdi children, so
5332 that insertion order is maintained when the Z-order is changed.
5334 2006-08-16 Mike Kestner <mkestner@novell.com>
5336 * ListView.cs : add an ItemComparer and default to it for sorting.
5337 Fixes #79076, but sorting needs a complete overhaul to be compat with
5340 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5342 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
5344 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5346 * Hwnd.cs (Mapped): Properly traverse the tree
5348 2006-08-15 Chris Toshok <toshok@ximian.com>
5350 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
5351 pass manager.Current.GetType() to ParseData. It has to be the
5352 property type. So, hold off doing the ParseData until we're in
5353 SetPropertyValue where we know the type. This fixes the crash in
5354 #78821 but the textbox is still empty.
5356 2006-08-15 Chris Toshok <toshok@ximian.com>
5359 - when we're scrolling, only call Edit() again if the
5360 current cell is still unobscured. Fixes bug #78927.
5361 - when handling mousedown on a cell, ensure the cell is visible
5362 before calling Edit.
5363 - remove the properties from DataGridRow, and remove the
5364 DataGridParentRow class altogether.
5367 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5369 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
5370 fire OnTextChanged by ourselves. There's no point calling base,
5371 we don't set the base value anywhere else. Fixes #78773.
5373 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5375 * ListBox.cs: Call CollectionChanged when modifying
5376 an item from Items indexer, to update the actual items
5379 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * PrintDialog.cs: Small fixes for focus and a pair of checks,
5382 to match .Net behaviour.
5384 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5386 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
5388 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5390 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
5392 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
5394 * MessageBox.cs: Prevent potential NRE exception.
5395 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
5397 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5399 * MessageBox.cs: Calculate the owner of a messagebox, also make
5400 it topmost. Fixes #78753
5402 2006-08-14 Chris Toshok <toshok@ximian.com>
5404 * XplatUIX11.cs: A couple of fixes so that metacity will let us
5405 programmatically move windows. first, set the PPosition hint as
5406 well as the USPosition hint. Second include some code from pdb
5407 that sets the window type to NORMAL when we set the transient for
5408 hint. This is because, in the absence of a window type, metacity
5409 thinks any window with TransientFor set is a dialog, and refuses
5410 to let us move it programmatically. fascists.
5412 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
5414 * XplatUIX11.cs: When setting normal hints, take into consideration
5415 an different hints previously set so we don't delete them (fixes #78866)
5417 2006-08-12 Chris Toshok <toshok@ximian.com>
5419 * ToolBarButton.cs: make Layout return a boolean, if something to
5420 do with the button's layout changed.
5423 - add another parameter to Redraw, @force, which all existing
5425 - make the Layout function return a boolean which is true if the
5426 layout has actually changed. Redraw now uses this (and @force)
5427 to determine when to invalidate. At present the only place
5428 where @force can be false is the call from OnResize, when
5429 background_image == null. So, resizing a toolbar when the
5430 layout doesn't change results in no drawing.
5432 2006-08-12 Chris Toshok <toshok@ximian.com>
5434 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
5435 the VScrollBar and HScrollbar reversed. oops.
5437 * DataGrid.cs: fix the logic that assigns sizes to the implicit
5438 scrollbars. we were assigning them twice (once in
5439 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
5440 therefore causing two scrollbar resizes (and redraws?) to happen
5443 2006-08-12 Chris Toshok <toshok@ximian.com>
5445 * ToolBarButton.cs: redraw the entire button if the theme tells us
5448 * Theme.cs: add ToolBarInvalidateEntireButton.
5450 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
5451 buttons, just the border.
5453 * ThemeNice.cs: redraw the entire toolbar button since we need to
5454 draw the highlight image.
5456 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
5457 we need to redraw the entire button (not just the border).
5459 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5461 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
5462 for vertical bars. Fixes the mismatches shown by #78513
5464 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
5466 * FileDialog.cs: If a saved/remembered path doesn't exist
5467 anymore, fall back to "Desktop".
5469 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
5471 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
5472 parent. It's apparently legal to not have one
5474 - SetZOrder: Don't try to set Z-Order on an unmapped window
5475 - CreateWindow: 0,0 are legal coordinates for a window. don't move
5476 it unless the coordinates are negative
5478 2006-08-10 Mike Kestner <mkestner@novell.com>
5480 * ListControl.cs: allow null for DataSource. Clear DisplayMember
5481 when setting to null per msdn docs. Fixes #78854.
5483 2006-08-10 Chris Toshok <toshok@ximian.com>
5485 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
5486 flickering by setting a clip rectangle on the Graphics when we
5487 need to redraw just a particular menuitem. Also, rename "OnClick"
5488 to "OnMouseDown" to reflect what it actually is.
5490 * Form.cs: track the OnMouseDown change.
5492 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
5494 * CommonDialog.cs: Properly inherit the CreateParams from the form
5495 and only change what we need. Fixes #78865
5497 2006-08-10 Chris Toshok <toshok@ximian.com>
5499 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
5500 flickering in flat mode (and most of the flickering in general) by
5501 only invalidating the button border (and not the entire rectangle)
5502 when the state changes. A couple of cases still flicker:
5503 ToggleButtons, and the dropdown arrow case when the user mouse
5506 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
5508 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
5509 for german keyboards. Numlock state shouldn't affect the behaviour
5510 of the Del key. Fixes bug #78291.
5512 2006-08-10 Chris Toshok <toshok@ximian.com>
5514 * ListControl.cs: remove the items.Clear line from BindDataItems,
5515 as this is the first thing done by both subclasses in their
5516 SetItemsCore overrides. Also, add a ItemChanged handler, and when
5517 passed -1, refresh the list. This gets databinding working when
5518 the datasource is set on the list before the datasource is
5519 populated (as in wf-apps/ReportBuilder.)
5521 * ComboBox.cs: remove the argument to BindDataItems. This call
5522 should really go away, and be initiated by the ListControl code.
5526 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5528 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
5529 if no data is in the document when the control is displayed
5531 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5533 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
5536 - PositionCaret: Allow positioning of caret but don't call methods
5537 requiring a handle if the window isn't created yet
5538 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
5539 - owner_HandleCreated: Don't position the caret, just update it's
5540 location. User might have already set a different position
5542 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
5544 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
5545 windows. Screws up the returned coordinates for child windows.
5546 Fixes #78825. I'm hoping this doesn't break something, since the
5547 code was explicitly put in 8 months ago, but no bug was attached.
5548 Menus still seem to work properly.
5550 2006-08-08 Chris Toshok <toshok@ximian.com>
5552 * DataGrid.cs: make BeginInit/EndInit actually do what they're
5553 supposed to do - delay data binding until the EndInit call. Also,
5554 make the table style collection's CollectionChangeAction.Refresh
5557 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
5558 (with action = Refresh) when a consituent table's MappingName is
5561 2006-08-08 Chris Toshok <toshok@ximian.com>
5563 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
5564 Invalidate, since changing the text can change the size of the all
5567 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
5569 * Form.cs (AddOwnedForm): Still need to add the form to our listif
5570 we don't have it yet
5572 2006-08-08 Chris Toshok <toshok@ximian.com>
5574 * PrintControllerWithStatusDialog.cs: don't .Close() the status
5575 dialog, as this causes X errors later on, since we actually
5576 destroy the window. Instead, .Hide() it.
5578 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
5580 * ComboBox.cs: Added focus reflection for popup window
5582 - Removed transient setting for non-app windows for now, not sure it
5584 - Fixed logic checking if we have captions when deciding
5585 override_redirect, WS_CAPTION is two bits and a 0 check was not
5587 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
5590 - AddOwnedForm: Don't just add the form to the list, call the property
5591 to ensure the driver is informed about the ownership as well
5592 - CreateHandle: Set the TopMost status in the driver if we have an owner
5593 * XplatUI.cs: Fixed debug statement
5595 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
5596 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
5597 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
5598 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
5599 TrackBarRenderer.cs: Make constructor private.
5600 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
5601 * ProfessionalColorTable.cs: Make properties virtual.
5603 2006-08-06 Duncan Mak <duncan@novell.com>
5605 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
5608 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
5609 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
5610 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
5611 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
5612 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
5613 Initial import of new 2.0 classes.
5615 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
5616 * Application.cs: Add 2.0 VisualStyles properties.
5618 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
5619 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5620 XplatUIX11.cs: Create property to allow access to existing private
5621 variable "themes_enabled"
5623 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5625 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
5626 file size, as otherwise our class libraries fail using windows. Fixes
5629 2006-08-04 Jackson Harper <jackson@ximian.com>
5632 * XplatUIX11.cs: Move the toolwindow window manager creation into
5633 the X11 driver, this way on win32 we can let windows create/handle
5636 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5638 * PrintDialog.cs: Remove some redundant checks, add some others,
5639 clean some code, and move the focus to the text boxes when the
5640 values are incorrect.
5642 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
5644 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
5646 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
5648 * NumericUpDown.cs: Setting the Minimum and Maximum is now
5649 handled correctly. Fixes bug #79001.
5651 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5653 * PrintDialog.cs: The "Copies" numeric up down must have
5654 set the Minimum property to 1; only if the value is bigger
5655 than 1, activate "Collate" check box. This is the behaviour of .Net.
5656 Also modify the Document elements only if it is not null.
5658 2006-08-03 Jackson Harper <jackson@ximian.com>
5660 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
5661 length. (We have a larger array then actual node count).
5663 2006-08-03 Jackson Harper <jackson@ximian.com>
5665 * ComboBox.cs: Don't show selection by default.
5666 - The SelectAll isn't needed here, since the focus code should do
5668 - DDL style lists to manual selection drawing, so when they
5669 get/lose focus they have to invalidate.
5671 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
5673 * TextBoxBase.cs: Don't always show all selections by default.
5675 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
5676 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
5677 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
5678 Fixed various typos.
5680 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
5682 * Control.cs: Removing the controls in a ControlCollection with
5683 Clear now hides the controls as expected. Fixes bug #78804.
5685 2006-08-03 Jackson Harper <jackson@ximian.com>
5687 * Control.cs: Revert previous focus patch, it breaks reflector.
5689 2006-08-03 Jackson Harper <jackson@ximian.com>
5691 * ComboBox.cs: Cleanup selection and focus with the combobox.
5692 This also eliminates some duplicated keyboard code, since now
5693 everything is handled by the main class.
5694 - Make list selection work on mouse up instead of down, to match
5697 2006-08-02 Jackson Harper <jackson@ximian.com>
5699 * Control.cs: Setting focus needs to go through the whole
5700 selection mechanism.
5702 2006-08-02 Chris Toshok <toshok@ximian.com>
5704 * PrintPreviewDialog.cs: change MinimumSize to use
5705 base.MinimumSize so it works.
5707 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
5710 - UpdateCaret: Added sanity check in case caret isn't defined yet
5711 - Line.Delete: Now updating selection and caret markers if we're
5712 transfering a node (Properly fixes #78323)
5713 - SetSelectionEnd: Added sanity check
5714 * TextBoxBase.cs: Removed broken attempt to fix #78323
5716 2006-08-01 Chris Toshok <toshok@ximian.com>
5718 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
5719 Close() call is handled in Form, not here.
5721 2006-08-01 Chris Toshok <toshok@ximian.com>
5723 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
5726 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
5727 for sizes < 100% zoom. The code now aggressively attempts to keep
5728 from calling document.Print (), and tries not to use the scaling
5729 g.DrawImage whenever possible (it still does if you scale to >
5730 100%, since usually that involves huge images).
5732 * PrintPreviewControl.cs: hook up the close button.
5734 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
5735 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
5736 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
5737 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
5738 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
5739 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
5740 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
5741 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
5742 Removed [Serializable] for 2.0 Event Handlers.
5744 2006-07-31 Jackson Harper <jackson@ximian.com>
5746 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
5747 * TextControl.cs: Uncomment out the body of this method.
5749 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
5751 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
5754 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
5756 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
5757 that embed TextBox and need selections visible even if textbox is not
5758 focused to enforce that behaviour.
5759 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
5762 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
5765 - Added new SetSelectionStart/SetSelectionEnd overloads
5766 - Fixed viewport width assignment to be accurate
5767 - Adjusted alignment line shift calculations to allow cursor on right
5768 aligned lines to be always visible at the right border (like MS)
5770 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
5771 - TextBoxBase_SizeChanged: recalculating canvas on size changes
5772 - CalculateScrollBars: Use ViewPort size instead of window size, to
5773 properly consider space occupied by the border and scrollbars
5775 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
5776 calculations; no longer leaves artifacts
5777 - CaretMoved: Adjusted window scrolling to match MS and fixed several
5778 calculation bugs (Still missing right/center align calculations)
5780 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
5782 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
5783 use of both scroll rect and clip rect, as they do the same.
5785 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
5787 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
5788 in the event handler (fixes #78912)
5790 2006-07-31 Chris Toshok <toshok@ximian.com>
5792 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
5793 grid.ListManager.Count, since grid.ListManager might be null.
5794 This of course begs the question "why are we drawing rows for a
5795 grid with no list manager (and therefor no rows)?" Fixes the
5796 crash in bug #78929.
5798 2006-07-31 Chris Toshok <toshok@ximian.com>
5800 * RelatedPropertyManager.cs: Don't always chain up to the parent
5801 ctor. instead, call SetDataSource if the parent's position is !=
5802 -1. Fixes the crash in #78822.
5804 2006-07-31 Chris Toshok <toshok@ximian.com>
5806 * DataGrid.cs (get_ListManager): use field instead of property
5807 accessors for datasource and datamember.
5808 (RowsCount): make internal again.
5809 (OnMouseDown): end edits before resizing columns/rows.
5810 (OnMouseUp): restart edits after resizing columns/rows.
5812 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
5814 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
5815 This fixes the situation where the last set cursor is displayed
5816 whenever the mouse is over scrollbars.
5818 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5820 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
5821 Document properties, as well as initial values.
5823 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
5825 * XplatUIWin32.cs (SetBorderStyle): Setting both border
5826 and ClientEdge results in a 3-pixel border, which is
5829 2006-07-28 Jackson Harper <jackson@ximian.com>
5831 * TreeNodeCollection.cs: Fix the clear method.
5832 - Fix the Shrink also
5834 2006-07-27 Jackson Harper <jackson@ximian.com>
5836 * TreeView.cs: Make sure the visible order is computed when we
5837 attempt to size the scrollbars (for trees that mess with the
5838 scrolling when they shouldn't.
5839 - Make sure to give the scrollbars valid values.
5841 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
5843 * XplatUIX11.cs: Move motion compression code to where it
5844 has less performance impact
5846 2006-07-26 Jackson Harper <jackson@ximian.com>
5848 * UpDownBase.cs: When the control is selected make the child
5849 controls non selectable, so that a click on them won't do a
5850 focus/unfocus cycle.
5851 - Don't give focus to the text box when the spinner is selected.
5852 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
5854 2006-07-26 Chris Toshok <toshok@ximian.com>
5856 * ThemeWin32Classic.cs: add print preview rendering. I'm not
5857 satisfied with this solution. If the bitmaps are small, we should
5858 just cache them in the PrintPreviewDialog and draw them here.
5859 Also, the layout is broken for the 2-up and 3-up cases.
5861 * Theme.cs: add PrintPReviewControlPaint.
5863 * PrintPreviewDialog.cs: first pass implementation.
5865 * PrintPreviewControl.cs: first pass implementation. No
5868 * PrintDialog.cs: only validate fields if that particular portion
5869 of the UI is enabled. Also, set the document's controller to a
5870 PrintControllerWithStatusDialog wrapping the document's print
5873 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
5874 bring up a SaveFileDialog (i hope we don't want to match the
5875 behavior of the crappy windows file entry) and set the
5876 PrinterSettings.PrintFileName accordingly.
5878 2006-07-26 Jackson Harper <jackson@ximian.com>
5880 * ContainerControl.cs: Add a field that disables auto selecting
5881 the next control in a container when the container is activated.
5882 * UpDownBase.cs: Don't select the text box when the up down is
5885 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
5887 * XEventQueue.cs: Added methods for peeking (used for compression
5888 of successive events)
5889 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
5890 mouse move events (fixes #78732)
5892 2006-07-25 Jackson Harper <jackson@ximian.com>
5894 * UpDownBase.cs: Use an internal class for the textbox so that we
5895 can control focus. the updown control should always have focus,
5896 if either the text area or the buttons are clicked.
5897 - Send the key messages to the textbox, since it never actually
5899 - Activate and decativate the textbox caret.
5901 2006-07-24 Jackson Harper <jackson@ximian.com>
5903 * Control.cs: Use the directed select when selecting a control,
5904 this way the container controls override will get called and the
5905 whole ActiveControl chain will get triggered. TODO: probably need
5906 to make sure this gets done everywhere instead of the old
5908 * ContainerControl.cs: Implement the directed Select method to
5909 find and activate the correct child control.
5911 2006-07-22 Mike Kestner <mkestner@novell.com>
5913 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
5914 menu handling code so that clicks without a grab work too.
5917 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
5919 * FileDialog.cs: Enable the BackButton when dirstack has one element.
5920 Added some small optimizations.
5922 2006-07-21 Matt Hargett <matt@use.net>
5924 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
5926 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
5928 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
5929 tests pass and match MS in some strange border cases.
5931 2006-07-21 Chris Toshok <toshok@ximian.com>
5933 * ThemeWin32Classic.cs: handle drawing of the relation links and
5936 * Theme.cs: change args to DataGridPaintParentRow.
5938 * DataGrid.cs: Don't use controls for the relation links and
5939 parent buttons, so we have to handle all their interactions in
5940 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
5941 when we're navigating through child tables, so we can reinstate
5942 selection, expanded state, current cell, etc.
5944 2006-07-20 Chris Toshok <toshok@ximian.com>
5946 * ToolBar.cs: When we redraw a button, for whatever reason,
5947 there's no reason to redraw the entire toolbar. Also, don't call
5948 Control.Refresh from within Redraw, as it's much heavier than
5949 Invalidate (which is really what we want).
5951 2006-07-20 Chris Toshok <toshok@ximian.com>
5953 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
5954 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
5955 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
5956 traces from within a debug IBindingList datasource
5957 (in mono/winforms/datagrid) for *days*, I've finally gotten things
5958 to work in a similar fashion.
5960 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5962 * ListBox.cs: Don't call Sort () when setting
5963 the Sorted property to false (avoid an unnecessary sort).
5965 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5967 * ListControl.cs: DataSource should throw an ArgumentException
5968 instead of a normal exception when the argument is not of the
5971 2006-07-20 Mike Kestner <mkestner@novell.com>
5973 * Control.cs: add InternalPreProcessMessage to allow us to steal
5974 key events before MWF gets its paws on them. Adapted from a
5976 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
5977 up/down/left/right navigation. Override the new internal control
5978 method to steal the events since they never make it to WndProc.
5979 * ToolBarButton.cs: don't worry about pushed when setting hilight
5980 since the drawing code prefers pushed to hilight. Invalidate on
5981 Hilight changes. Fixes #78547 and #78525.
5983 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
5985 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
5986 the canvas size. Fixes #78868
5988 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
5990 * Splitter.cs: Track requested split position until first layout
5991 is performed. Fixes #78871
5993 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
5995 * Application.cs: Removed code that forces 1.x for the version
5996 number if the version started with 0. Not sure why that code was
5997 there and I couldn't find any bugs that indicated we needed it.
6000 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
6002 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
6003 ResetDefaults(), just write some output to the console until it's
6004 implemented. Fixes bug #78907 for now. Eliminated two warnings.
6006 2006-07-19 Jonathan Chambers <joncham@gmail.com>
6008 * PropertyGridView.cs: set StartPosition of drop down forms
6009 so they appear in correct initial spot. Fixes #78190.
6011 2006-07-19 Mike Kestner <mkestner@novell.com>
6013 * ThemeWin32Classic.cs: use parent background color when drawing
6014 flat toolbars. Restructure the conditionals to make sure non-flat
6015 non-Divider toolbars are filled too. Fixes #78837.
6017 2006-07-19 Mike Kestner <mkestner@novell.com>
6019 * ListBox.cs: Sort on collection changes even if the handle
6020 isn't created yet. Fixes #78813.
6022 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6024 * ListControl.cs: DisplayMember should never be null,
6025 and now we assign String.Empty when null is passed to it (this
6028 2006-07-17 Mike Kestner <mkestner@novell.com>
6030 * ListViewItem.cs: restructure Font and subitem Font handling
6031 to hold a specific font and refer back to owner on null.
6034 2006-07-17 Mike Kestner <mkestner@novell.com>
6036 * ToolBar.cs: bandaid for side-effect of previous patch which was
6037 discarding explicit heights for non-AutoSize toolbars. Need to
6038 extend my format tester to deal with AutoSize=false. Fixes #78864.
6040 2006-07-15 Jackson Harper <jackson@ximian.com>
6042 * LabelEditTextBox.cs:
6043 * TreeView.cs: Use a new LabelEdit class for node editing, this
6044 class automatically 'closes' itself when it gets the enter key or
6046 - Use the client rectangle when setting the trees scrollbars, so
6047 border style is taken into account.
6049 2006-07-14 Jackson Harper <jackson@ximian.com>
6052 * TreeView.cs: Make the editing work similar to MSs, firing the
6053 events correctly and ending edits correctly.
6055 2006-07-14 Mike Kestner <mkestner@novell.com>
6058 * ToolBar.cs: layout restructuring and redraw enhancements to support
6059 formatting changes gracefully, like setting TextAlign, ImageList,
6060 ButtonSize, and Appearance. Handles explicit button sizing quirks
6061 of the MS controls. Things like flat toolbars ignoring button size
6062 but becoming constant sized at the largest button's size. Normal
6063 toolbars with an image set cannot be shrunk smaller than the image,
6064 but text can be clipped/ignored.
6065 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
6066 is zero. Seems like DrawString should be smart enough to not put
6067 anything on screen though. Also trim labels and ellipsize at the char
6069 Fixes #78711 and #78483.
6071 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6073 * FolderBrowserDialog.cs: Disable "New Folder" button and
6074 "New Folder" contextmenu menuitem if a folder like "My Computer"
6077 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6079 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
6080 * FolderBrowserDialog.cs:
6081 - Use MWFConfig to store and read size and position settings
6082 - Added code to create a new folder (button or context menu).
6083 Use TreeView labeledit to change the name of the new folder.
6085 2006-07-14 Jackson Harper <jackson@ximian.com>
6087 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
6088 when the tree is scrolled we end editing.
6090 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
6092 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
6095 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6097 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
6098 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
6099 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
6100 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
6101 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
6102 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
6103 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
6104 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
6105 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
6106 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
6107 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
6108 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
6109 ListViewItemSelectionChangedEventHandler.cs,
6110 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
6111 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
6112 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
6113 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
6114 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
6115 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
6116 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
6117 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
6118 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
6119 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
6120 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
6121 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
6122 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
6123 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
6124 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
6125 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
6126 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
6127 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
6128 WebBrowserNavigatingEventHandler.cs,
6129 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
6131 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
6133 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
6134 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
6135 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
6136 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
6137 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
6138 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
6139 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
6140 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
6141 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
6142 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
6143 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
6144 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
6145 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
6146 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
6147 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
6148 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
6149 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
6150 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
6151 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
6152 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
6153 ListViewItemStates.cs, MaskFormat.cs: Added
6155 2006-07-13 Jonathan Chambers <joncham@gmail.com>
6157 * PropertyGridView.cs: Fix keyboard navigation of drop down.
6158 Patch from eno for bug 78558.
6160 2006-07-13 Jackson Harper <jackson@ximian.com>
6162 * TreeView.cs: When an edit is finished make sure that the
6163 selected node is visible.
6164 - When setting the top/bottom use the scrollbars is_visible, so
6165 everything will be set correctly even if the tree isn't visible
6168 2006-07-13 Jackson Harper <jackson@ximian.com>
6170 * ComboBox.cs: Revert the item->index part of my previous patch.
6171 * TreeView.cs: Use LostFocus instead of Leave for detecting when
6172 the edit box has lost focus (duh).
6173 - Just make the edit box not visible when we get return, that will
6174 take the focus, which will call EndEdit
6175 * TreeNode.cs When we start editing, notify the treeview.
6177 2006-07-12 Jackson Harper <jackson@ximian.com>
6179 * ComboBox.cs: Clear out old items before setting the item list.
6180 This prevents databound controls from having their items added
6182 - Switch the combobox to use indices whereever possible instead of
6183 using Item's. This allows usto navigate through lists that have
6184 more then one item with the same string value (ie a, b, b, a).
6185 - Scroll the listboxes scrollbar when a non visible item is
6187 - Allow keypress to cycle through all the possible values. For
6188 example if you have b1, b2, b3 and hold down the B key all the
6189 values will be cycled through.
6191 2006-07-12 Jackson Harper <jackson@ximian.com>
6194 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
6195 this using the internal methods.
6196 * Control.cs: Add OnGotFocusInternal. A new method that allows
6197 controls to "override" OnGotFocus and change focus behavior if
6199 - Same thing for LostFocus
6200 * ComboBox.cs: Pass off focus to the text control properly.
6202 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
6204 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
6205 * FolderBrowserDialog.cs: Almost a complete rewrite.
6206 - Better support for Environment.Specialfolders
6207 - Added support for MWFVFS
6208 - Made setting SelectedPath work
6210 2006-07-12 Jackson Harper <jackson@ximian.com>
6212 * Control.cs: Optimze getting all the controls.
6214 2006-07-11 Jackson Harper <jackson@ximian.com>
6216 * ContainerControl.cs: Override SETFOCUS in the container control,
6217 so that it is not selected on mouse click.
6219 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6221 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
6222 Hopefully we will have a better way once all of focus is complete.
6224 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
6226 * ThemeWin32Classic.cs: Commented out some debug code and fixed
6227 a compile error with csc.
6229 2006-07-11 Jackson Harper <jackson@ximian.com>
6231 * Control.cs: When hiding a control only select the next control
6232 if the current control was focused.
6233 - Don't handle enter/leave when setting/killing focus, this is
6234 done by the container control.
6235 - Remove is_selected, it's not needed anymore.
6236 - Add utility methods for selecting a child control, and for
6237 firing the Enter/Leave events.
6238 * ContainerControl.cs: When a control is activated fire the
6240 - Don't wrap when processing the tab key, so that focus can be
6241 moved outside of the container.
6242 - Use the correct active control
6244 2006-07-11 Jackson Harper <jackson@ximian.com>
6246 * ComboBox.cs: Remove some debug code that was blinding me.
6247 * UpDownBase.cs: These controls actually aren't implicit, they are
6248 visible to the user.
6250 2006-07-10 Chris Toshok <toshok@ximian.com>
6252 * DataGrid.cs: move back to the is_adding boolean field. god i
6253 hate this is_editing/is_adding/is_changing stuff.
6255 2006-07-10 Chris Toshok <toshok@ximian.com>
6257 * DataGridTableStyle.cs: just check if the property type is bool.
6258 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
6259 Don't use CanRenderType.
6261 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
6262 if our text == NullText. Remove CanRenderType.
6264 * DataGridBoolColumn.cs: nuke CanRenderType.
6266 * DataGrid.cs: reenable some code to end the current edit inside
6267 of set_CurrentCell. This fixes the other 1.1.16 regression.
6268 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
6269 Also, remove the visible_row_count arg from CalcRowHeaders, since
6270 we don't need to worry about the actual height of the area.
6272 2006-07-10 Chris Toshok <toshok@ximian.com>
6274 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
6277 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
6278 the real sense of the IsInEditOrNavigateMode property (true =
6279 navigate, false = edit). Also, update OnKeyPress to reflect this.
6281 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
6282 column style exists, we still need to set its property descriptor
6283 to match up with our list manager.
6285 2006-07-10 Chris Toshok <toshok@ximian.com>
6287 * ThemeWin32Classic.cs: implement the new row/header painting
6288 approach. The parent row painting will likely go away and
6289 replaced with label controls, but the rest seems to work ok (and
6292 * Theme.cs: change the way we draw datagrid rows. we don't draw
6293 the row headers as a block now. Instead we draw them in the
6294 normal draw-row loop. Add some calls for drawing parent rows and
6297 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
6298 a default table style. Set the defaults from ThemeEngine.Current,
6299 not SystemColors. Fix lots of misc issues with property setters.
6301 * DataGrid.cs: move loads of style information out of this class
6302 as it's being duplicated with DataGridTableStyle. keep track of a
6303 special DataGridTableStyle for the properties we used to mirror
6304 here. Switch all the style properties to access this table style
6305 instead of instance fields of this class. Also add a internal
6306 class to represent parent rows (more needs to be stored here, like
6307 the selection state from the parent table, as well as the
6308 expansion state.) Also, for datasources with relations, do the
6309 right thing for collapse/expand, and add support for the
6310 navigation/parent row buttons.
6312 Lastly, fix the crash in the 1.1.16 build.
6314 * GridTableStylesCollection.cs: make the explicit interface
6315 implementations call the class's methods as opposed to duplicating
6318 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
6319 0 so the text doesn't jump around when we move the cursor.
6321 2006-07-10 Jackson Harper <jackson@ximian.com>
6324 * ListBox.cs: Match MS's ToString (this makes debugging focus
6325 stuff infinitely easier).
6327 2006-07-10 Jackson Harper <jackson@ximian.com>
6329 * Control.cs (SelectNextControl): When checking the control's
6330 parent use this instead of ctrl.parent so that null can be passed
6331 to SelectNextControl. (I have unit tests for this).
6332 - Remove unused var.
6334 2006-07-10 Chris Toshok <toshok@ximian.com>
6336 * CurrencyManager.cs: correct one regression, the removal of the
6337 finalType field. Also, add a MonoTODO on CanAddRows, implement
6338 Refresh() correctly, and fix some event emission in
6341 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6343 * FileDialog.cs: Don't use brackets for new folders if they exist
6344 under *nix. Instead use -(number of existing folders +1).
6346 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
6349 - Fixed really nasty bug #78771
6350 - Don't block the whole GUI when reading directories with a lot of
6351 entries. Use an other thread instead and call BeginInvoke to
6352 update the ListView in MWFFileView
6354 2006-07-07 Chris Toshok <toshok@ximian.com>
6356 * Control.cs (Dispose): release any Capture when disposing.
6358 2006-07-07 Chris Toshok <toshok@ximian.com>
6360 * LinkLabel.cs (Select): if we chain up to the parent, set
6361 focused_index to -1 so we'll search for the first available link
6362 the next time the user tabs into us. Also, if the direction is
6363 backward and focused_index == -1, start the search from the last
6366 2006-07-07 Chris Toshok <toshok@ximian.com>
6368 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
6369 is beyond the end of the text, don't do anything.
6370 (CreateLinkPieces): set our ControlStyles.Selectable based on
6371 whether or not we have any links.
6372 (Link.Invalidate): use a loop instead of foreach.
6373 (Link.set_Start): null out owner.sorted_links so it'll be
6374 recreated by CreateLinkPieces.
6376 2006-07-06 Chris Toshok <toshok@ximian.com>
6378 * LinkLabel.cs: revert the SetStyle change.
6380 2006-07-06 Chris Toshok <toshok@ximian.com>
6382 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
6383 (OnEnableChanged): s/Refresh/Invalidate
6384 (OnGotFocus): if we have a focused index already, refocus it (so
6385 if we mouse out/in to the window it'll focus the right link).
6386 (OnKeyDown): move the tab handling out of here.
6387 (OnLostFocus): don't set focused_index to -1, so we can refocus it
6389 (OnMouseDown): don't Capture here - Control handles it. Also,
6390 focus the active link.
6391 (OnMouseUp): don't deal with Capture.
6392 (OnPaintBackgroundInternal): remove.
6393 (OnTextAlignChanged): CreateLinkPieces before calling the
6394 superclass's method.
6395 (OnTextChanged): call CreateLinkPieces before calling superclass's
6397 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
6399 (Select): implement this, moving the selection between different
6400 links, and call parent.SelectNextControl if we don't have another
6401 link to focus in the given direction.
6402 (CreateLinkPieces): call Invalidate instead of Refresh.
6404 2006-07-06 Chris Toshok <toshok@ximian.com>
6406 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
6407 new LinkLabel internals.
6409 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
6410 over pieces looking for active/focused/etc links. also, deal with
6411 runs of text (and links) with embedded \n's in them, and use
6412 MeasureCharacterRanges instead of MeasureString to figure out the
6413 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
6416 2006-07-04 Jackson Harper <jackson@ximian.com>
6418 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
6419 XKB or key auto repeat, do it manually. Without key auto repeat,
6420 when a key is held down we get key press, key release, key press,
6421 key release, ... with auto repeat we get key press, key press, key
6422 press ..., and then a release when the key is actually released.
6424 2006-07-03 Jackson Harper <jackson@ximian.com>
6427 * ThemeWin32Classic.cs: Tabs do not obey normal background color
6428 rules, they are always control color regardless of the background
6431 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
6433 * FileDialog.cs: Added internal class MWFConfig.
6434 Removed Registry support and replaced it with support for the new
6435 MWFConfig class. See MWFConfig comments for more information.
6437 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
6439 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
6440 rectangle. Added some patches from eno from bug #78490 and fixed
6441 the arrow position for small up and down CPDrawScrollButtons.
6443 2006-06-30 Jackson Harper <jackson@ximian.com>
6445 * InternalWindowManager.cs: Remove some debug code.
6446 * Form.cs: When an MdiParent is set to null, the window is
6447 "detatched" and becomes a normal window.
6448 * MdiClient.cs: Don't bring the new child form to the front until
6449 it is activated (setting it as active does this), this makes the
6450 previously active forms titlebar get redrawn as inactive.
6452 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
6454 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
6457 2006-06-29 Mike Kestner <mkestner@novell.com>
6459 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
6460 arrow in keynav state. Fixes #78682.
6462 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6464 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
6465 order (fixes #78393)
6467 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
6469 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
6470 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
6471 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
6472 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
6473 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
6474 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
6475 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
6476 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
6477 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
6478 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
6479 enumerations (FlagsAttribute, SerializableAttribute, added/removed
6482 2006-06-28 Mike Kestner <mkestner@novell.com>
6484 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
6486 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
6489 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
6490 item lines from other area (It also makes BackColor consistent and
6491 compatible with .NET). Fixed bug #78564.
6493 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
6495 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
6496 Patch from Eno for #78555.
6498 2006-06-27 Chris Toshok <toshok@ximian.com>
6500 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
6502 * DataGridColumnStyle.cs: same.
6504 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
6506 * DataGridDrawingLogic.cs: nuke.
6508 2006-06-27 Chris Toshok <toshok@ximian.com>
6510 * DataGridTableStyle.cs: clean up the constructors, and build the
6511 list of child relations for this table. I have no idea if this is
6512 where we should be doing it (it probably isn't), but since we're
6513 already iterating over the properties..
6515 * DataGrid.cs: add row resizing. for now we add a DataGridRow
6516 struct and array for keeping track of row information, similar to
6517 what's shown in a hack on
6518 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
6520 * Theme.cs: be consistent about the naming of DataGrid methods,
6521 prefering ColumnWidths and RowHeights over columnsWidths and
6524 * ThemeWin32Classic.cs: same, and also add support for variable
6525 sized rows (and the +/- expansion icons for related rows).
6527 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6529 * TextBoxBase.cs: Applied Eno's patch from #78660
6531 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6533 * Form.cs (ScaleCore): We don't want to scale our form if it's
6534 state is minimized or maximized, but we still need to scale our
6535 child windows. Also, added try/finally block to ensure layout
6536 gets reset (Fixes #78697)
6538 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6540 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
6542 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
6544 * Form.cs: Fixed c+p error and added check to resize form if minimum
6545 size is bigger than current size (Fixes #78709)
6547 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
6549 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
6551 2006-06-26 Mike Kestner <mkestner@novell.com>
6553 * ComboBox.cs: only do Keypress handling in the combo when there
6554 are items in the collection. Fixes #78710.
6556 2006-06-26 Chris Toshok <toshok@ximian.com>
6558 * Binding.cs: make this work bi-directionally. also, clear up
6559 other mixups between Push/Pull Data (e.g. we're supposed to pull
6560 data when validating).
6562 * BindingManagerBase.cs: trim some fully qualified collection
6565 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
6567 2006-06-23 Chris Toshok <toshok@ximian.com>
6569 * PropertyManager.cs: It appears (according to the unit tests)
6570 that PropertyManager doesn't use
6571 PropertyDescriptor.AddValueChanged to track propery value changes
6572 in its datasource, but uses the same scheme as Binding, where it
6573 looks for a <Property>Changed event and binds to it.
6575 Also, according to the docs, IsSuspended always returns false for
6576 a property manager with a non-null datasource.
6578 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
6580 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
6581 need to update the actual DialogResult. (Fixes #78613)
6583 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
6585 * Form.cs (ShowDialog): Release any captures before running the
6586 new message pump (fixes #78680)
6588 2006-06-22 Mike Kestner <mkestner@novell.com>
6590 * ListView.cs: Layout column widths properly in details mode even
6591 if HeaderStyle.None is set. Fixes #78691.
6593 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
6595 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
6597 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
6599 * Control.cs (ContainsFocus): Using new driver method to get focused
6600 window, instead of trying to use internal tracking var, which can
6601 recursion issues (Fixes #78685)
6602 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6603 XplatUIWin32.cs: Added GetFocus method to return focused window
6605 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6607 * ColorDialog.cs: when the mouse button is pressed inside the color
6608 matrix, don't let the cursor move out of it until the button is
6609 released, which is the behavior on windows. Changed 'colours' by
6610 'colors' to use the same word consistently.
6612 2006-06-21 Chris Toshok <toshok@ximian.com>
6614 * DataGrid.cs: add in some basic navigation stuff (navigating to a
6615 child relation and back, using a stack). Also, remove
6616 GetDataSource and the code that calls it - it's not needed. Also,
6617 track CurrencyManager.ListName's removal.
6619 2006-06-21 Chris Toshok <toshok@ximian.com>
6621 * CurrencyManager.cs: push some of the original type checking from
6622 BindingContext.CreateBindingManager to here, and remove some of
6623 the finalType stuff. Need more tests to make sure I've got the
6624 ListName part right, and we might need more in SetDataSource.
6626 * PropertyManager.cs: add a ctor that takes just the datasource,
6627 and no property name. Make SetDataSource work with a null
6628 property_name, and make Current return the data_source if the
6629 property descriptor is null. this makes 'string foo = "hi";
6630 BindingContext[foo].Current' return "hi" as it should.
6632 * RelatedCurrencyManager.cs: make this code more generic - there's
6633 no reason the parent manager has to be CurrencyManager, and
6634 there's no reason to pass the DataRelation. It suffices to use a
6635 BindingManagerBase and PropetyDescriptor.
6637 * RelatedPropertyManager.cs: make a similar change here.
6639 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
6640 flower I knew it could be.
6642 2006-06-20 Chris Toshok <toshok@ximian.com>
6644 * PropertyManager.cs: the PropertyChangedHandler is invoked when
6645 data in the source has changed and we need to update the control,
6646 so s/PullData/PushData.
6648 * CurrencyManager.cs: Refresh is meant to update the control from
6649 data in the datasource. So, s/PullData/PushData.
6651 * BindingContext.cs: add more ugliness (we weren't handling the
6652 case where data_source = DataTable and data_member = column_name).
6654 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
6655 from the perspective of the datasource. PullData pulls from the
6656 control, PushData pushes to the control.
6658 2006-06-20 Chris Toshok <toshok@ximian.com>
6660 * BindingContext.cs: rewrite the CreateBindingManager code to
6661 handle navigation paths more or less properly. This could
6662 definitely stand some more work, in particular to push the
6663 recursion up to the toplevel. But that relies on fixes in other
6664 places (System.Data comes to mind).
6666 Also, move to a flat hashtable (and encode the twolevel nature of
6667 the dictionary into the hash key). This lets us implement the
6668 IEnumerable.GetEnumerator method.
6670 * RelatedCurrencyManager.cs: new class. Update our view based on
6671 our relation and our parent CurrencyManager's position.
6673 * CurrencyManager.cs: split out some logic from the ctor into
6674 SetView, so it can be called from the new RelatedCurrencyManager
6677 * RelatedPropertyManager.cs: new class. Update our datasource
6678 based on the position of our parent CurrencyManager.
6680 * PropertyManager.cs: split out some logic from the ctor into
6681 SetDataSource, so it can be called from the new RelatedDataSource
6682 subclass. Also, make the Current getter return the value
6683 of the PropertyDescriptor, not the data_source.
6685 * Binding.cs: no need to duplicate the string splitting code here.
6687 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
6690 - set_Enabled: OnEnabledChanged is not called if the inherited state
6691 of the control is not altered, even though we might be changing the
6692 internal state of the control (#78458)
6693 - set_Enabled: (Re)Moved the enabling/disabling of the window to
6694 OnEnabledChanged, to allow easy altering of any child window state
6695 - OnEnabledChanged: Added code to enable/disable driver window state
6696 - OnParentEnabledChanged: Instead of firing the event, call
6697 OnEnabledChanged, which will fire the event and also a) set driver
6698 window state and pass the enabled state to any grandchildren (#78458)
6700 2006-06-19 Jackson Harper <jackson@ximian.com>
6702 * InternalWindowManager.cs: We don't set the cursor explicitly
6703 thats done via the response to NCHITTESTs.
6704 - Don't need to adjust for titlebar heights anymore, the
6705 coordinates are coming in the correct coordinates now (see peters
6709 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
6711 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
6712 being translated relative to whole window, instead of client window.
6713 That caused broken offsets on mouseclick (and caused gas for our
6714 InternalWindowManager)
6716 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
6719 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
6720 - Undo(): Added replay of cursor move on DeleteChars action; added
6721 calling Undo() again if a recorded cursor move is invalid (to
6722 ensure that some action is performed on Undo)
6723 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
6725 2006-06-16 Jackson Harper <jackson@ximian.com>
6727 * MdiClient.cs: Instead of just sizing maximized windows when
6728 there is a resize we also have to adjust the Y of minimized
6729 windows, so they stay pinned to the bottom of the mdi container.
6730 - Eliminate separate tracking of the active control, we can just
6731 get this from the controls collection.
6732 - Paint the decorations for the newly activated titlebar so we get
6734 * InternalWindowManager.cs:
6735 * ThemeWin32Classic.cs: Minimized windows get all three buttons
6736 even if they are a tool window.
6738 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
6740 * TextControl.cs (Undo): Handle non-existent cursor locations in the
6741 undo buffer, these can happen when text was deleted and the cursor
6742 was recorded first. Since we will also have a recorded cursor
6743 after the delete this is not an issue. (Fixes #78651)
6745 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
6747 * AccessibleObject.cs: Remove dependence on Control.is_selected;
6748 instead properly track control states internally (allows us to
6749 remove is_selected from Control)
6751 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6753 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
6754 whose width is not a multiple of 8.
6756 2006-06-13 Jackson Harper <jackson@ximian.com>
6758 * MdiClient.cs: Only maximize the next child if the current one
6761 2006-06-13 Chris Toshok <toshok@ximian.com>
6763 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
6764 modified. Also, guard against grid or grid_drawing being null in
6767 * DataGrid.cs: Reformat tons of getters/setters. In the
6768 DataMember setter, just call SetNewDataSource instead of
6769 duplicating some of its functionality. In SetNewDataSource, don't
6770 check ListManager for null, since the property getter creates the
6773 * DataGridTableStyle.cs: don't set TableStyle or call
6774 SetDataGridInternal on the column here, it's done in
6775 GridColumnStylesCollection.Add.
6777 * GridColumnStylesCollection.cs: fix all the explicit interface
6778 implementations to just call our methods. Nuke AddInternal() and
6779 move the body of it to Add(). Also, add a call to
6780 column.SetDataGridInternal to Add().
6782 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
6783 base()+duplicate code. Also, use the Format property instead of
6784 format to generate an Invalidate ala MS. Lastly, create the
6785 textbox here, unconditionally.
6786 (set_Format): call Invalidate.
6787 (get_TextBox): no need to call EnsureTextBox.
6788 (Commit): remove the message box.
6789 (Edit) remove the call to EnsureTextBox.
6790 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
6791 (EnterNullValue): no need to check textbox for null.
6792 (HideEditBox): no need to check textbox for null.
6793 (SetDataGridInColumn): add the textbox to the grid's controls.
6794 (EnsureTextBox): nuke.
6796 2006-06-13 Jackson Harper <jackson@ximian.com>
6798 * MdiWindowManager.cs: Hook up to the maximized menus paint event
6799 and redraw the buttons when needed. Unhook when the window is
6801 * MainMenu.cs: Add an internal Paint event, the mdi window manager
6802 needs this so that it can redraw its buttons when the menu is
6804 * InternalWindowManager.cs:
6805 * Form.cs: The method order has changed for DrawMaximizedButtons,
6806 so that it can be a PaintEventHandler.
6808 2006-06-13 Jackson Harper <jackson@ximian.com>
6810 * MdiClient.cs: When we close a maximized mdi window, the next mdi
6811 window is activated and maximized, even if it wasn't before.
6812 - When a new window is activated repaint the decorations of the
6813 old one, so that it no longer has the Active "look" (the blue
6815 * InternalWindowManager.cs: Open up CreateButtons to base classes
6816 so they can recreate the buttons on state changes.
6817 - If a window is maximized give it all three buttons
6818 * MdiWindowManager.cs: Create the titlebar buttons when the state
6819 is changed, this is needed because a toolwindow will not have all
6820 three buttons until it is maximized.
6822 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
6824 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
6827 2006-06-12 Jackson Harper <jackson@ximian.com>
6829 * KeysConverter.cs: Make sure we handle the Ctrl special case
6830 if its the only key.
6832 2006-06-12 Jackson Harper <jackson@ximian.com>
6834 * Theme.cs: Add a method to get the size of a managed window
6836 * InternalWindowManager.cs: Remove the ButtonSize property, this
6837 should be retrieved from the theme.
6838 * MdiWindowManager.cs: Get the button size from the theme
6839 * ThemeWin32Classic.cs: Make the method to get the managed window
6840 titlebar button size public.
6841 - Handle the different button sizes of maximized toolwindows
6842 (should match any maximized window).
6843 - Get the titlebar height from the theme, not the WM (which gets
6846 2006-06-12 Jackson Harper <jackson@ximian.com>
6848 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
6849 event down to the mdi window manager.
6850 - Expose some extra stuff to base classes
6851 - Make sure to end the Capture on an NC Mouse up, so that we can
6852 get double clicks properly, and the sizing doens't stick.
6853 - When doing PointToClient contain it in the workable desktop
6854 area, this prevents windows from changing size when the cursor is
6855 pulled outside of the working area while sizing.
6856 * MdiWindowManager.cs: When we get a double click maximize the
6858 - Reset the cursor after handling mode changes.
6860 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
6862 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
6863 current desktop, instead of just assuming a 0, 0 origin. This
6864 is needed for our internal window manager, to know the top
6865 margin of the desktop
6867 2006-06-12 Chris Toshok <toshok@ximian.com>
6869 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
6870 we need this to get rid of the selected background in the bool
6872 (CancelEditing): move the ConcedeFocus call to above the Abort
6873 call. Also, set is_changing to false and invalidate the row
6874 header if we were changing before.
6875 (ProcessKeyPreviewInternal): remove, since noone outside this
6876 class calls it anymore. Roll the code into ProcessKeyPreview.
6877 (EndEdit): remove the internal version.
6878 (InvalidateCurrentRowHeader): make private.
6880 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
6881 Keys.Escape handling (and with it the last call to
6882 DataGrid.EndEdit from outside the class.)
6885 2006-06-12 Chris Toshok <toshok@ximian.com>
6887 * DataGridTextBox.cs (.ctor): isedit defaults to false.
6888 (OnKeyPress): set isedit to true.
6889 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
6890 already handled by the grid.
6892 * DataGrid.cs (set_CurrentCell): more work here. it's still not
6894 (set_DataSource): SetDataSource always returns true, so stop
6895 putting it in an if statement.
6896 (EndEdit): get rid of some {}'s
6897 (ProcessGridKey): return true in case Keys.Escape.
6898 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
6899 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
6900 PositionChanged, stopped connecting to CurrentChanged.
6901 (GetDataSource): simplify this a bunch.
6902 (SetDataSource): change return type from bool to void.
6903 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
6904 to this, and make sure we don't set ListManager.Position inside
6906 (OnListManagerItemChanged): if we're passed an actual index,
6909 * CurrencyManager.cs (set_Position): don't call PullData here.
6911 2006-06-09 Jackson Harper <jackson@ximian.com>
6913 * TreeNode.cs: Recalculate the visible order before doing the
6914 Expand/Collapse Below calls, because those calls generate an
6916 - Reduce calls to the TreeView property, which is mildly expensive
6917 by using a local var.
6918 * Form.cs: Layout the MDI child windows when creating the parent
6920 - Don't use the internal constructor anymore
6921 * MdiClient.cs: use the parent form width/height (if available)
6922 when laying out the child windows, we do this because the
6923 mdiclient isn't docked yet when the initial layout is done.
6924 - Don't need an internal constructor anymore.
6926 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6928 * FileDialog.cs: handle access errors when trying to create a folder
6929 or changing to a directory. No need to initialize out parameters.
6931 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
6933 * FileDialog.cs: Append a number when creating a new folder if the
6934 folder already exists (use parenthesis instead of square brackets)
6936 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
6939 - Disabled registry support for windows and added better registry
6940 error checking for other systems (need to investigate why it
6941 works perfectly on my system)
6942 - If a folder already exist show an error MessageBox instead of
6943 trying to create an indexed name.
6944 - Fixed a non intentional typo.
6946 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6948 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
6950 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
6952 * FileDialog.cs: When creating a new folder don't crash if the
6953 folder already exists.
6955 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
6957 * FileDialog.cs: Allmost a complete rewrite.
6958 - added a "virtual" file system that handles the differences
6959 between unix and windows file systems (especially the directory
6960 structure). Moved most of the directory and file handling code
6962 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
6963 UnixFileSystem and FSEntry.
6964 - Recently used folder/directory, size, location and used file names
6965 (file name ComboBox) are now stored in the registry and get read
6966 before the dialog shows up (fixes part 6 of bug #78446).
6967 - Creation of new folders/directories is now possible (context menu
6968 or ToolBar). Added TextEntryDialog for this that fills in the gap
6969 until ListView.LabelEdit works.
6970 - Fixed cursor handling (bug #78527) and focus handling for
6972 - Various "Search in" ComboBox enhancements. The content of the
6973 dropdown listbox now almost matches ms.
6974 - Changed the behaviour when the user switches to SpecialFolder
6975 Recent to show the ListView in View.Details.
6976 - Beside using the ToolBar to change the View property of the
6977 file ListView it is now possible to use the context menu too.
6979 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
6981 * ComboBox.cs: Don't create a new ObjectCollection when an item
6982 gets inserted. Just insert the item in the existing object_items
6985 2006-06-08 Jackson Harper <jackson@ximian.com>
6987 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
6988 that the treeview and root node checks are done also, this fixes a
6989 regression i caused in the unit tests.
6991 2006-06-07 Wade Berrier <wberrier@novell.com>
6993 * RichTextBox.cs: More ISO8859-1 -> unicode
6995 2006-06-07 Mike Kestner <mkestner@novell.com>
6997 * ComboBox.cs : use items to hold highlight/selection so that
6998 collection insertions don't require synchronization.
7000 2006-06-07 Jackson Harper <jackson@ximian.com>
7002 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
7003 routine. We now always keep the sized edge at the cursor instead
7004 of computing movement and adjusting rects. There is one buglet
7005 with this method though when the cursor is moved over area that
7006 the window can not expand too (such as the toolbars on the desktop).
7008 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7010 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
7011 here. Fixes crash on startup in AlbumSurfer.
7013 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
7015 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
7018 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7020 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
7021 statement to avoid calling XNextEvent which will block if another thread
7022 took the event that we were expecting. Fixes bug #78605.
7024 2006-06-07 Mike Kestner <mkestner@novell.com>
7026 * ListView.cs : isolated checkbox clicking from the selection logic.
7027 Toggle check state on item doubleclicks. Really fixes #78454 part2.
7029 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7031 * Form.cs: Check that the value passed to Form.DialogResult
7032 is a valid enum value.
7034 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7036 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
7037 Computer'. Clicking it in the network view goes to 'My Computer'.
7038 Added CIFS filesystem type. Display the mount point of filesystems.
7039 Avoid duplicate mount points (happens for me with CIFS);
7041 2006-06-06 Jackson Harper <jackson@ximian.com>
7043 * InternalWindowManager.cs: Draw the maximized windows buttons
7046 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7048 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
7049 all other dialogs. Fixes bug #78585.
7051 2006-06-06 Mike Kestner <mkestner@novell.com>
7053 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
7054 Only invalidate checkbox on checkstate changes to avoid flicker.
7055 * ListBox.cs : avoid unselect/select when clicking selected item.
7056 avoid reselection flicker for already multiselected items.
7059 2006-06-06 Jackson Harper <jackson@ximian.com>
7061 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
7062 the parent form so that the menu is removed if needed.
7064 2006-06-06 Mike Kestner <mkestner@novell.com>
7066 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
7067 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
7069 2006-06-06 Mike Kestner <mkestner@novell.com>
7071 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
7074 2006-06-06 Jackson Harper <jackson@ximian.com>
7076 * Control.cs: Use the property (instead of the field) to get the
7077 default cursor so it is instantiated correctly.
7078 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
7079 resizes so we need to manually repaint the window decorations here.
7080 - Set the titlebar button locations as soon as they are created,
7081 otherwise they are not set correctly on win32.
7083 2006-06-06 Chris Toshok <toshok@ximian.com>
7085 * CurrencyManager.cs (set_Position): call PullData before
7087 (AddNew): after calling IBindingList.AddNew, update our
7088 listposition, and call OnCurrentChanged/OnPositionChanged (without
7090 (OnCurrentChanged): remove the call to PullData from here.
7091 (OnItemChanged): remove the call to PushData from here.
7092 (OnPositionChanged): change the test from == null to != null to
7093 match the other methods.
7094 (ListChangedHandler): the grossest part of the patch. Implement
7095 this such that it passes the unit tests in CurrencyManagerTest and
7096 the output more or less matches that of MS's implementation.
7098 2006-06-06 Mike Kestner <mkestner@novell.com>
7100 * ListView.cs : only update check state on single click.
7101 * ThemeWin32Classic.cs : fix focus drawing for details view without
7102 fullrowselect. Fixes #78454.
7103 * XplatUIX11.cs : fix for double click emission.
7105 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
7107 * PropertyGridView.cs : Applied Atsushi's patch to fix
7108 font dialog bug (#78197).
7110 2006-06-05 Jackson Harper <jackson@ximian.com>
7112 * TreeNode.cs: Compute the next node for expanding/collapsing
7113 correctly. We now factor in nodes without a NextNode
7114 correctly. (Fixes somes cases in nunit-gui).
7115 * InternalWindowManager.cs: Set the bounds when updating the
7116 virtual position of a tool window.
7118 2006-06-05 Chris Toshok <toshok@ximian.com>
7120 * DataGrid.cs: rename cached_currencymgr to list_manager.
7121 (set_CurrentCell): move SetCurrentCell code here, and clean it up
7123 (CurrentRow, CurrentColumn): single accessors so we can make the
7124 cursor movement code a lot easier to understand.
7125 (CurrentRowIndex): implement this in terms of CurrentRow.
7126 (BeginEdit): clean this up a bit.
7127 (CancelEditing): sort out the is_editing/is_changing/is_adding
7129 (EndEdit): minor changes.
7130 (OnKeyDown): add a comment about a (most likely) unnecessary
7132 (OnMouseDown): cancel editing when we click on a row header. And
7133 use the CurrentRow setter, not CurrentCell.
7134 (ProcessDialogKey): directly call ProcessGridKey.
7135 (UpdateSelectionAfterCursorMove): factor out this common block of
7136 code (it's used everywhere that we move the cursor by updating row
7138 (ProcessGridKey): pretty substantial overhaul. Use the
7139 CurrentRow/CurrentColumn properties to make the code a lot more
7140 readable. Only use the CurrentCell property when we have to
7141 modify both row and column at once. Tab behavior is still broken,
7142 and Delete is untested.
7143 (Select): if we have no selected rows, set selection_start to
7145 (EditCurrentCell): rename EditCell this. It was only ever invoked
7146 with CurrentCell as the arg, so drop the arg and rename it.
7148 * DataGridColumnStyle.cs: clean up the constructors a little, and
7149 drop CommonConstructor().
7151 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
7152 actually get notified when the user hits it.
7153 (ProcessKeyMessage): *substantially* simplify this method.
7154 There's no reason (that I can see) for the textbox to be making
7155 calls into the datagrid at all. Remove all of them but the ones
7156 for Enter handling. those will take some more work.
7158 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
7159 calling HideEditBox.
7160 (HideEditBox): if we have an active textbox, render it invisible
7161 without causing a re-layout of the datagrid.
7163 2006-06-05 Mike Kestner <mkestner@novell.com>
7165 * ListView.cs : fix NRE crasher when focuseditem is cleared by
7166 collection changes by resetting it to Items[0]. Fixes #78587.
7168 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7170 * MessageBox.cs: if the height of the text is larger than the icon_size,
7171 use that. Fixes bug #78575.
7173 2006-06-05 Jackson Harper <jackson@ximian.com>
7175 * TreeView.cs: Fix line drawing when scrolling. To do this each
7176 node is basically responsible for drawing its entire horizontal
7177 area. When drawing a node it draws its parent node lines if
7179 - Adjust the clip area to the viewport rectangle
7180 - Fix Left/Right key handling to match MS. (It expand/collapses
7181 and moves to parents/first child but does not move selection to
7183 - Fix SetTop to work with new bound calculation code
7184 - When scrollbars are no longer needed we need to reset scrolling
7185 vars and recalculate the visible order so the redraw is correct
7186 * TreeNode.cs: We can't expand/collapse nodes with no children.
7188 2006-06-03 John Luke <john.luke@gmail.com>
7190 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
7191 so the colors work without dev packages
7193 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
7196 - Select: Implemented to just use activate. Seems to match MS
7197 behaviour closest. Documented to only do actual control walking
7198 based on it's parameters if in a container control so I moved
7200 - Removed selection check logic from our internal Select() method
7201 * ContainerControl.cs:
7202 - Select: Moved selection logic from Control here, since MS documents
7203 that containers obey the bool arguments. No longer calling base
7205 2006-06-02 Jackson Harper <jackson@ximian.com>
7207 * TreeView.cs: If the selected node isn't changed when we get
7208 focus update the previously selected node so that we see the
7211 2006-06-02 Mike Kestner <mkestner@novell.com>
7213 * ComboBox.cs: restructure grab and general mouse event handling.
7214 Make the composite control raise mouse events like it was a single
7215 control for leaves/enters/motion/up/down events. fix dropdown list
7216 coordinate mangling and refactor it into the scrollbar subclass to
7217 reduce code duplication. Fixes #78282 #78361 and #78457.
7219 2006-06-02 Mike Kestner <mkestner@novell.com>
7221 * ScrollBar.cs: remove Capture setting/clearing, as it happens
7222 automatically in the Control.WndProc.
7224 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7226 * FileDialog.cs: fix crash when running SharpChess, which sets the
7227 FilterIndex to 2 with only one Filter.
7229 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7231 * ToolBar.cs: add SizeSpecified property.
7232 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
7233 try to figure out our real size, otherwise fallback to what the
7236 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7238 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
7239 * Control.cs (WndProc): MS always calls the DefWndProc to pass
7242 2006-06-01 Mike Kestner <mkestner@novell.com>
7244 * ListView.cs: revamp the focus management in ListView. It still
7245 causes churn of LostFocus/GotFocus emissions on clicks, but it's
7246 better than not handling focus at all. Will revisit when pdb feels
7247 the general focus handling is solid. Fixes #78526.
7249 2006-06-01 Jackson Harper <jackson@ximian.com>
7251 * TreeView.cs: Set the default border style in the constructor.
7252 - Move painting to use OnPaintInternal instead of capturing
7253 WM_PAINT, this is the correct way of doing things
7254 - UpdateBelow shouldn't invalidate the scrollbar area
7255 - Cap the top on update below in case the node was above the top
7256 of the viewport rectangle.
7257 - ExpandBelow and Collapse below need to obey Begin/End Update.
7258 * TreeNode.cs: Make is_expanded internal so the treenode
7259 collection can change it without firing the whole event chain.
7260 * TreeNodeCollection.cs: When clearing all the child nodes make
7261 sure to recalc the visible order.
7262 - Improve algo for remove the top node
7264 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7266 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
7267 SendMessage directly calling window procedures, which in turn might
7270 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
7272 * Control.cs: Don't handle WM_SETFOCUS if the same window already
7273 has focus (works around X11 sending a FocusIn after our SetFocus)
7274 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
7276 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
7278 * Mime.cs: Fix for the NET_2_0 build.
7279 NameValueCollection needs StringComparer now.
7281 2006-05-31 Chris Toshok <toshok@ximian.com>
7283 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
7284 return (via an out parameter) the starting X of the column.
7285 (UpdateVisibleColumn): track change to FromPixelToColumn.
7286 (HitTest): add a ColumnResize case here.
7287 (DrawResizeLine): new function, probably poorly named.
7289 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
7290 only need to keep one reference.
7291 (set_ListManager): same.
7292 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
7293 Also, add support for HitTestType.ColumnResize.
7294 (OnMouseMove): add column resize behavior here, and change the
7295 cursor to the correct one as we move around the datagrid.
7296 (OnMouseUp): terminate the column resize if we're resizing.
7297 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
7298 for the current cell.
7299 (ConnectListManagerEvents): use cached_currencymgr.
7300 (DisconnectListManagerEvents): fill this in, using
7302 (SetCurrentCell): remove cached_currencymgr_events handling.
7303 (SetDataMember): only call DisconnectListManagerEvents if
7304 cached_currencymgr is != null.
7305 (SetDataSource): same.
7306 (OnListManagerCurrentChanged): cached_currencymgr_events ->
7309 2006-05-31 Jackson Harper <jackson@ximian.com>
7311 * BindingManagerBase.cs: Remove somedebug code that creeped into
7313 * TreeNode.cs: We get the indent level dynamically right now, so
7314 don't track it as a member.
7315 * TreeNodeCollection.cs: Make sure all nodes added to the list
7316 have parents, treeviews/topnodes setup properly.
7317 - Don't attempt to track indent level.
7319 2006-05-30 Jackson Harper <jackson@ximian.com>
7321 * BindingContext.cs: Create the currency manager tables here.
7322 This allows us to more easily create null tables (when bad data
7323 members are used), and more easily create related currency
7325 * CurrencyManager.cs: All the table creation stuff is done by the
7326 binding context now.
7327 - Current should throw an exception if listposition is -1.
7328 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
7331 2006-05-30 Mike Kestner <mkestner@novell.com>
7333 * ListView.cs: allow reexpansion of zero-width column headers.
7336 2006-05-28 Chris Toshok <toshok@ximian.com>
7338 * CurrencyManager.cs (get_Current): after the late binding
7339 listposition = -1 fix, we need to guard against it here and return
7340 null, otherwise we raise an exception (which is swallowed
7341 elsewhere, and breaks datagrid databinding.)
7343 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7345 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
7346 than WM_SYSKEY, don't throw if get something unexpected (#78507)
7348 2006-05-26 Jackson Harper <jackson@ximian.com>
7351 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
7352 values, it's faster and it's all we care about (we don't care if
7353 the names aren't equal).
7354 * KeyboardLayouts.cs: Eliminate some dead code.
7356 * X11Keyboard.cs: Lazy init keyboard detection.
7357 - Cleanup access modifiers a little.
7359 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7361 * XplatUIX11.cs: Once again, attempting to get layout just right.
7363 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
7365 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
7366 the sizes of each link section, that will result in sizes that
7367 match DrawString's layout (Fixes #78391)
7369 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
7371 * FileDialog.cs: If AddExtension property is true autocomplete the
7372 extensions in SaveFileDialog correctly. Fixes bug #78453.
7373 Set MyNetwork and MyComputer to "C:\" for windows. This should
7374 fix part 8 of bug #78446 for now.
7376 2006-05-26 Chris Toshok <toshok@ximian.com>
7378 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
7379 invalidate the current row header if we need to, but presumably
7380 we'll invalidate the row corrsponding to the bounds or
7382 (GridHScrolled): switch back to this method, as it's part of the
7384 (GridVScrolled): same.
7385 (OnMouseWheel): hack up something that more or less works. Call
7386 GridHScrolled/GridVScrolled directly, instead of duplicating much
7388 (EnsureCellVisibility): reinstate a bunch of this code, since we
7389 can't just set the scrollbar Value and expect to do all the work
7390 in the ValueChanged handler. Also, Call Update() after scrolling
7391 in one direction so the other XplatX11.ScrollWindow call has the
7392 proper stuff in the proper places.
7393 (EditCell): set is_editing to true before calling .Edit.
7395 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
7396 don't bother comparing first.
7397 (OnKeyPress): call grid.ColumnStartedEditing before calling
7398 base.OnKeyPress. this will set is_changing and invalidate the row
7399 header if necessary.
7400 (ProcessKeyMessage): for WM_CHAR messages, call
7401 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
7404 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
7405 it's done in the DataGrid.
7406 (NextState): call grid.ColumnStartedEditing, which takes care of
7407 invalidating the row header (and setting is_changing).
7409 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
7410 here. it's done in the DataGrid.
7412 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7414 * Control.cs: allow changing the cursor when the mouse position is
7415 out of bounds but Capture is set.
7416 * LinkLabel.cs: handle the case when the mouse button is pressed on the
7417 linklabel but released somewhere else.
7419 2006-05-25 Jackson Harper <jackson@ximian.com>
7421 * TreeView.cs: When we get focus if there is no selected node make
7423 - Remove some uneeded setup code from Draw.
7424 * TreeNodeCollection.cs: If the tree doesn't have a top node when
7425 a new node is inserted make the new node the top.
7427 * Timer.cs: Use Utc time so that no local time zone stuff needs to
7428 be used (should be faster).
7430 2006-05-25 Chris Toshok <toshok@ximian.com>
7432 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
7433 problem with the last commit.
7435 2006-05-25 Chris Toshok <toshok@ximian.com>
7437 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
7438 need the invalidate call here, while scrolling right-to-left via
7439 the left arrow key (i.e. moving the editing cell while scrolling).
7441 * DataGrid.cs (.ctor): remove the initialization of
7442 ctrl_pressed/shift_pressed. We no longer track them using key
7443 up/down handlers, but by using Control.ModifierKeys. Also, switch
7444 to using ValueChanged handlers on the scrollbars instead of
7445 Scrolled event handlers. This simplifies a bunch of the scrolling
7447 (GridHValueChanged): rename from GridHScrolled, and change it to
7448 work with the new event args.
7449 (GridVValueChanged): same.
7450 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
7451 (OnMouseWheel): actually scroll the datagrid. Don't change the
7453 (ProcessGridKey): correct all the keyboard navigation stuff I
7454 could find. Ctrl up/down/left/right/home/end work now.
7455 (EnsureCellVisibility): correct method name spelling. Also,
7456 simplify this a touch by not explicitly calling the
7457 ScrollToRow/ScrollToColumnInPixels methods. We just set the
7459 (OnKeyUpDG): no need for this method now.
7461 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7463 * LinkLabel.cs: display the OverrideCursor when hovering the label.
7466 2006-05-25 Chris Toshok <toshok@ximian.com>
7468 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
7471 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
7473 * Application.cs: Moved setting of is_modal and closing to before
7474 we create the control, to allow the event handlers called as a
7475 result of creation affect closing. Also removed Gonzalo's previous
7476 change to setting DialogResult, the behaviour has been moved to
7479 - ShowDialog(): Removed explicit creation of the form, let RunLoop
7481 - ShowDialog(): If no dialog result is set, we need to return Cancel
7482 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
7483 the close is cancelled
7485 2006-05-25 Jackson Harper <jackson@ximian.com>
7487 * StatusBar.cs: We only need to update the sizes of the other
7488 panels when we have auto size contents. Also we are only updating
7489 the contents of the panel, not the borders, so compensate for the
7490 border width (TODO: get this width from the theme somehow).
7491 * TreeView.cs: Scrollable is true by default
7492 - Use invalidate instead of refresh where needed
7493 - Factor the scrollable value into scrollbar updating
7494 - Update the scrollbars if the Scrollable property is altered
7495 - Update the selected node if its ImageIndex is changed
7496 - Handle null nodes in UpdateNode (mainly so we don't have to
7497 check if selected is null when updating it
7498 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
7499 are factored into the visible count
7500 - Use VisibleCount for clarity in the code
7501 - When the font is changed we need to recurse through all the
7502 nodes and invalidate their sizes
7504 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7506 * Application.cs: set the DialogResult to fixed when the main form is
7507 hidden or destroyed while being modal.
7509 2006-05-25 Miguel de Icaza <miguel@novell.com>
7511 * Theme.cs: Use Tangoified messagebox icons.
7513 (GetSizedResourceImage): Also cope with width = 0 and do not
7514 trigger a warning in that case (0 means "give me your icon from
7515 the resouce, no special size needed).
7517 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
7519 * Application.cs: Leave runloop if the the main modal form is
7520 hidden (fixes #78484)
7522 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
7524 * BindingContext.cs : reject null datasource in Contains() and
7526 * CurrencyManager.cs : check data_member validity when data_source
7527 is dataset. When it is late binding, the initial position is -1.
7529 2006-05-24 Jackson Harper <jackson@ximian.com>
7531 * TreeNodeCollection.cs: Dont't recalculate the visible order on
7532 inserted nodes that aren't visible. This changes the
7533 max_visible_order which confuses scrollbar settings.
7534 - Use the enumerator to get the prev node instead of duplicating
7536 * TreeView.cs: Use new method for setting scrollbar values
7537 - Don't set the bounds every time the scrollbar is updated
7538 - When updating below the root node use an invalidate instead of a
7539 refresh to prevent the child controls (scrollbars) from being
7540 refreshed. (UpdateBelow still needs to be reworked anyways).
7541 - Reenable SetBottom now that visible orders are set correctly,
7542 added some debug code incase we ever get bad values there again.
7543 - Set the scrollbar max to 2 less then the max value, this
7544 compensates for the max value being one above the node count, and
7545 for scrollbars adding one extra "notch".
7546 - When drawing image nodes if there is an imagelist we draw the
7547 first image in the list if the supplied image index is out of the
7548 image list's bounds.
7550 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7552 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
7553 we receive a size change from the WM (Fixes #78503)
7555 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7557 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
7558 rectangle (Fixes #78501)
7560 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
7563 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
7565 - Fixed MouseMove to no longer switch pressed state unless the left
7566 mouse button is pressed. Atsushi provided the original patch (#78485)
7568 2006-05-24 Jackson Harper <jackson@ximian.com>
7570 * ScrollBar.cs: New internal methods that allow us to change a
7571 couple values on the scrollbar (the most common case is maximum
7572 and large change) without getting multiple invalidates.
7574 2006-05-24 Chris Toshok <toshok@ximian.com>
7576 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
7577 (Edit): save off the original state in oldState, and set
7578 grid.is_editing to true.
7579 (OnKeyDown): abort editing if escape is pressed. also, call
7580 NextState if space is pressed.
7581 (OnMouseDown): call NextState.
7582 (NextState): factor out shared code from OnKeyDown and OnMouseDown
7583 here. Also, only invalidate the row header once (on the initial
7584 is_changing switch) to save on redraws.
7586 2006-05-24 Chris Toshok <toshok@ximian.com>
7588 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
7589 if the value in the cell is different than it was before. This
7590 keeps us from triggering a layout when we move around a datarid
7591 with a highlighted cell.
7592 (Edit): suspend layout when creating/positining the text box, and
7593 resume passing false so we don't ever actually re-layout.
7594 (ReleaseHostedControl): same.
7595 (EnsureTextBox): reformat slightly, and set WordWrap to false.
7597 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
7598 control-key sequences should go to the datagrid - remove that
7599 lock. Also, modify the conditions under which we move between
7600 cells when moving the cursor within a cell, and remove the "this"
7601 and "base" from field accesses. We weren't even consistent, given
7602 they all were in the base class.
7604 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
7606 * Binding.cs : (.ctor)
7607 An obvious NRE fix for BindingTest.CtorNullTest().
7609 2006-05-23 Chris Toshok <toshok@ximian.com>
7611 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
7612 them between lines. This fixes some quirks editing cells in the
7615 2006-05-23 Jackson Harper <jackson@ximian.com>
7617 * TreeView.cs: Use begin/end update when doing expand/collapse all
7618 so that we don't get flicker on the scrollbar.
7620 2006-05-23 Jackson Harper <jackson@ximian.com>
7622 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
7623 treenode calculations to be independant of the painting code. To
7624 do this nodes track a visible order which is calculated by the
7626 - Call new methods for expanding/collapsing nodes. These methods
7627 use scrollwindow so we don't have to update everything below the
7629 * TreeView.cs: Refactored drawing and scrolling code. We don't
7630 need to update nodes when drawing anymore or calculate scrollbar
7632 - Added new methods for expanding/collapsing nodes. These methods
7633 use ScrollWindow so as to not have to redraw all the nodes below.
7634 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
7635 we add/remove nodes or sort.
7636 - Handle removing the selected and the top node properly.
7638 2006-05-23 Chris Toshok <toshok@ximian.com>
7640 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
7641 maybe this should actually happen in the datagrid code?
7642 (EndEdit): no need to invalidate anything, given that
7643 ReleaseHostedControl causes the datagrid to relayout, which
7644 invalidates everything anyway.
7646 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
7648 (set_SelectionBackColor): call InvalidateSelection instead of
7650 (set_SelectionForeColor): same.
7651 (BeginEdit): Flesh this out a bit.
7652 (CancelEditing): only do any of this if we're editing/adding.
7654 (OnMouseDown): there's no need to cancel editing here, it's done
7656 (SetCurrentCell): only invalidate the current row header if it's a
7657 different row than the new one.
7658 (ShiftSelection): fix this to work like MS does.
7659 (ResetSelection): factor out the invalidation of selected_rows to
7660 InvalidateSelection.
7661 (SetDataSource): cancel any editing that's going on.
7663 * DataGridColumnStyle.cs
7664 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
7665 call the non-interface version.
7667 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
7668 header rectangle with the clip rectangle so we don't redraw the
7669 entire header for just a small area. Gets rid of the last flicker
7670 when horizontally scrolling.
7671 (DataGridPaintRow): same.
7673 2006-05-23 Mike Kestner <mkestner@novell.com>
7675 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
7676 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
7677 poorly placed checkbox on the MS control. Fixes Alex's unfiled
7678 Critical bug report.
7680 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
7682 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
7683 and this fixes #78493
7685 2006-05-23 Miguel de Icaza <miguel@novell.com>
7687 * Theme.cs (GetSizedResourceImage): Scale images if the proper
7690 * FileDialog.cs: Do not change the background for the side bar as
7691 it wont work nicely with the theme, and also reduces the artifacts
7692 in rendering the icons (which I want to fix too).
7694 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
7695 resources, not resgen resources.
7697 (PlatformDefaultHandler): Pull images using the new API.
7699 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
7701 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
7702 a reference to the hwnd and will not remove it unless there are
7703 no pending exposures (fixes #78341)
7704 * XplatUI.cs: Improved debug
7706 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
7708 * MenuAPI.cs : don't handle OnClick event when it was not the left
7709 button. Fixed bug #78487.
7711 2006-05-23 Mike Kestner <mkestner@novell.com>
7713 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
7714 prefer submenus to the top menu for item lookup, to avoid popping down
7717 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
7719 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
7720 Graphics.FillRectangle as the visual results are really bad (even
7721 on win). We now draw perfect arrows (and perfect shadows when the
7722 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
7723 Pen.DashPattern to draw the dots of each line.
7725 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
7727 * FileDialog.cs: Update the filename combobox when navigating through
7728 the ListView with the cursor keys. Fixes part 7 of bug #78446.
7730 2006-05-22 Mike Kestner <mkestner@novell.com>
7732 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
7735 2006-05-22 Mike Kestner <mkestner@novell.com>
7737 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
7738 requests. Fix a misspelled parameter and a copy paste exception error
7741 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
7743 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
7744 to get the same width/height (5/13) on X11 as the default font has on
7745 win32. This means that our DefaultFont emSize is smaller than the
7746 the MS SWF equivalent (even thought the width/height stays the same)
7748 2006-05-20 Jackson Harper <jackson@ximian.com>
7751 * MdiWindowManager.cs:
7752 * InternalWindowManager.cs: Make sure to use the border width from
7755 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
7757 * PrintDialog.cs: Implements printer details
7759 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
7761 * FileDialog.cs: Added focus handling for PopupButtonPanel.
7762 Fixes part 1 and 2 of bug #78446
7764 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
7766 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
7767 instead of sticking to the first ever calculated value
7769 2006-05-19 Mike Kestner <mkestner@novell.com>
7771 * ComboBox.cs: fix mouse motion selection to use MousePosition and
7772 PointToClient, since Capture is set. Fixes #78344.
7774 2006-05-19 Mike Kestner <mkestner@novell.com>
7776 * ListView.cs: match MS behavior in Details view where items are not
7777 drawn if Columns.Count == 0.
7778 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
7779 Use a separate pen to draw the check, since changing the width affects
7780 the box as well. Fixes #78454.
7782 2006-05-18 Miguel de Icaza <miguel@novell.com>
7784 * ListView.cs: ArgumentOutOfRangeException, single versions of the
7785 exception should throw the name of the invalid argument.
7787 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
7788 there are no files listed.
7790 2006-05-18 Jackson Harper <jackson@ximian.com>
7792 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
7795 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
7797 * Control.cs: Brought back our old UpdateZOrder method as a private
7798 function and switched our calls from UpdateZOrder to the new one.
7799 This fixes the Paint.Net canvas disappearing bug.
7801 2006-05-18 Jackson Harper <jackson@ximian.com>
7804 * ThemeWin32Classic.cs:
7805 * InternalWindowManager.cs: Move the drawing into the theme,
7806 expose everything the theme should need from the window manager.
7808 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
7810 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
7811 from the call to NativeWindow to avoid walking up the parent chain
7812 further than needed (speeds up setting cursors and avoids setting
7813 the wrong cursor if a parent has another cursor defined)
7814 * Cursor.cs: When loading an icon as cursor, MS uses the center of
7815 the icon as hotspot, not what's contained as hotspot in the icon
7816 file. This fixes the perceived drawing offset seen with Paint.Net
7818 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
7821 - Store the calculated rectangle in Hwnd object and use it when
7822 setting the client size
7823 - Force Toolwindows to always be type Dock, to ensure they're on top
7825 2006-05-18 Mike Kestner <mkestner@novell.com>
7827 * ComboBox.cs: first pass at ComboBox rework. Layout is more
7828 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
7829 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
7830 Substantial refactoring to remove confusing nested classes. Coding
7831 standard and Get+Set->property refactorings. Shift to index based
7832 highlighting in ComboListBox instead of constantly using IndexOf and
7833 Items[]. Add invalidations on resize for DropDownList to fix ugliness
7834 in FileDialog growth. Draw borders manually since Simple mode needs
7835 to look like two independent controls. Make listbox border
7836 conditional to DropDownStyle. Improved OwnerDraw support.
7838 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
7840 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
7841 Don't set the disposed graphics to null, so we can throw the "right"
7842 exception if the graphics is reused later (added a flag to avoid
7843 double disposing). Some behaviours are different under 2.0 and are
7844 filled under bug #78448.
7846 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
7848 * Control.cs: When double-buffering is enabled, we need to reset
7849 our graphics context between paint calls. Otherwise, any
7850 transformations and other alterations on the context will
7851 become cumulative (#77734)
7853 2006-05-18 Mike Kestner <mkestner@novell.com>
7855 * ListView.cs: do focused item selection like MS on clicks.
7856 Rework focus handling for ItemControl so LostFocus invalidates as
7858 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
7859 the ListView ItemControl has focus.
7861 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
7863 * XplatUIX11.cs: If client_window ends up being width or height zero
7864 due to border settings, move it off window inside whole_window (#78433)
7866 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
7868 * Mime.cs: Shrink the mime file cache correctly.
7870 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
7872 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
7874 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7876 * XplatUIX11.cs (AddExpose): More sanity checks
7878 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7881 - AddExpose: Don't add expose ranges outside the size of our
7883 - Cast opacity values to Int32 to avoid crashes with certain
7885 - Added disabled code paths that protect against illegal cross-
7886 thread painting (Developers.exe)
7888 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7890 * ProgressBar.cs: Invalidate the control when it's resized
7891 since block size is based on control size. (#78388)
7893 2006-05-16 Miguel de Icaza <miguel@novell.com>
7895 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
7896 of setting the incoming argument to the "reset" value, we set the
7897 this.datamember to string.empty (before we were invalidating the
7902 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7904 * Form.cs: Only apply transparency settings after the form
7905 is created. (Fixes #77800)
7907 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7909 * ApplicationContext.cs: Grab the HandleDestroyed event so
7910 we know when to fire OnMainFormClosed
7912 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7914 * Application.cs: Introduced sub-class to allow tracking of
7915 threads and centralized triggering of the event mess for
7916 ThreadExit, AppExit, etc.. (#76156)
7918 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
7921 - Do not return a null icon index value for a mime subclass.
7922 Instead try the main mime type class too.
7923 - Seems that some newer distributions don't have a link to some
7924 gnome default icons anymore. So check the default gnome dir too.
7927 2006-05-16 Jackson Harper <jackson@ximian.com>
7929 * MdiClient.cs: Don't paint the parent background image if we have
7930 our own background image.
7932 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
7935 - PerformLayout: Do not shrink space filled by DockStyle.Fill
7936 controls, all filled controls are supposed to overlap (#78080)
7937 - UpdateZOrder is supposed to update the control's z-order in the
7938 parent's z-order chain. Fixed to behave like that
7939 - BringToFront: Removed obsolete code
7940 - SendToBack: Simplyfied
7941 - SetChildIndex: Trigger layout calculations when Z-order changes
7942 since layout is done by z-order
7944 2006-05-16 Chris Toshok <toshok@ximian.com>
7946 [ fixes bug #78410 ]
7947 * DataGrid.cs (set_AlternatingBackColor): use
7948 grid_drawing.InvalidateCells instead of Refresh().
7949 (set_BackColor): call grid_drawing.InvalidateCells.
7950 (set_BackgroundColor): use Invalidate instead of Refresh.
7952 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
7953 invalidate the cell area.
7955 2006-05-15 Chris Toshok <toshok@ximian.com>
7957 [ fixes bug #78011 ]
7958 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
7959 on to DataGridPaintRow.
7960 (DataGridPaintRow): take a clip argument, and only draw the cells
7961 which intersect it. same with the not_usedarea.
7963 * Theme.cs (DataGridPaintRow) add @clip parameter.
7965 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
7966 XplatUI.ScrollWindow.
7967 (ScrollToRow): same.
7969 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
7970 with last column which was causing a gray swath to appear with the
7971 XplatUI.ScrollWindow code.
7973 2006-05-15 Chris Toshok <toshok@ximian.com>
7975 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
7976 use XplatUI.ScrollWindow.
7977 (VerticalScrollEvent): use XplatUI.ScrollWindow.
7979 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
7981 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
7983 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
7985 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
7986 file since there are no equivalent X11 cursors
7988 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
7990 * MonthCalendar.cs : DateTimePicker should reflect selected date
7991 on mouse*up*, not mouse*down*. Fixed originally reported part of
7994 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
7996 * TabControl.cs : When argument index is equal or more than tab
7997 count, just ignore. Fixed bug #78395.
7999 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
8001 * Control.cs: Dispose all child controls when control is diposed (#78394)
8003 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8005 * ColorDialog.cs: Finally it is possible to select the color with
8008 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8010 * PrintDialog.cs: Fix typo
8012 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
8014 * PrintDialog.cs: PrintDialog is not resizable
8015 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
8016 color. Made some ToolBar drawing methods protected virtual.
8018 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
8020 * PrintDialog.cs: Implementation of the PrintDialog
8022 2006-05-12 Chris Toshok <toshok@ximian.com>
8024 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
8025 thumb, instead use MoveThumb. This has the side effect of making
8026 most of the other thumb moving machinery use MoveThumb as well.
8027 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
8028 need to actually invalidate the rectangle where the new thumb will
8030 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
8031 We force an Update() after, so it's not as fast as it could be,
8032 but at least there's zero flicker and no droppings.
8033 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
8034 (UpdateThumbPos): add another argument (dirty), which says whether
8035 or not to calculate/add dirty regions which we later invalidate.
8036 For cases where we know we're going to use MoveThumb, we pass
8037 false for this. Otherwise, pass true.
8039 2006-05-12 Jackson Harper <jackson@ximian.com>
8041 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
8044 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
8046 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
8047 and GetClipRegion methods and UserClipWontExposeParent property.
8048 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
8049 overriding UserClipWontExposeParent property, setting to false, since
8050 Win32 handles the required expose messages to draw our clipped parent
8052 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
8053 PaintEventStart to set the user clip region if set.
8055 - Now internally tracking the Region for the control since we need to
8056 store it if the handle is not yet created and only set it when it
8057 becomes created. Before setting the region forced handle creation
8058 - Added code to draw the parents underneath a user-clipped region
8059 * Hwnd.cs: Added UserClip property
8061 2006-05-12 Chris Toshok <toshok@ximian.com>
8063 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
8064 (set_Maximum): same.
8065 (set_Minimum): same.
8066 (set_SmallChange): same.
8067 (OnMouseUpSB): remove the call to refresh when releasing the
8068 thumb. We shouldn't need it.
8070 2006-05-12 Miguel de Icaza <miguel@novell.com>
8072 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
8073 AutoSize set to None, we do not need to relayout everything, we
8074 just need to invalidate the current region.
8076 (Draw): Do not draw the entire ClientArea, just redraw the
8077 clip area being passed.
8079 * MdiClient.cs: Make MdiClient constructor with the Form argument
8082 2006-05-12 Jackson Harper <jackson@ximian.com>
8084 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
8085 parents background image, but strangely not their own.
8086 - (DrawStatusBarPanel): Take into account horizontal alignment
8087 when drawing the strings and icons.
8089 2006-05-12 Mike Kestner <mkestner@novell.com>
8091 * ListBox.cs: avoid invalidations for focus when the collection is
8094 2006-05-12 Chris Toshok <toshok@ximian.com>
8096 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
8097 invalidate the entire thumb area. Call InvalidateDirty which
8098 limits the redraw to the thumb itself and surrounding pixels.
8100 * XplatUIX11.cs (ScrollWindow): optimize copying.
8102 2006-05-12 Chris Toshok <toshok@ximian.com>
8104 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
8105 Figure out the positioning/layout in a single pass instead of
8106 multiple recursive invocations. Speeds up the initial display of
8107 the data grid. Also, make many things private that were
8108 originally public but unused outside this class.
8110 2006-05-11 Jackson Harper <jackson@ximian.com>
8112 * MdiClient.cs: Improved layout code.
8114 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
8116 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
8119 2006-05-11 Chris Toshok <toshok@ximian.com>
8121 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
8122 union of that will always be {0,0,width,height}.
8124 2006-05-11 Jackson Harper <jackson@ximian.com>
8126 * Form.cs: Match MS's DefaultSize for forms (they must have
8127 changed the size in sp2).
8129 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8131 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
8133 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
8135 * TextControl.cs : Fixed bug #78109. This incorrect position
8136 comparison caused crash on automatic line split.
8137 * TextBoxBase.cs : reduce duplicate code.
8139 2006-05-10 Jackson Harper <jackson@ximian.com>
8141 * MdiClient.cs: Active form is only sent to the back when using
8142 the Next form functionality, when a form is clicked the current
8143 active shouldn't be sent to the back.
8144 - Layout the mdi windows when the container is first made visible.
8145 * Form.cs: Give the MdiClient a ref to the containing form when we
8148 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8150 * LinkLabel.cs : link_font could be uninitialized, so populate one
8151 before actual use. Fixed bug #78340.
8153 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
8155 * XplatUIX11.cs : clipboard format native value is IntPtr.
8158 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8161 - Instead of showing context menus directly we send WM_CONTEXTMENU,
8162 which is passed up the parent chain by DefWndProc
8163 - We now handle WM_CONTEXTMENU to display any menu, or pass it
8164 to DefWndProc (#77956)
8165 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
8167 2006-05-10 Jackson Harper <jackson@ximian.com>
8169 * MdiClient.cs: We need to remove the controls from the mdi
8170 collection, when we close the window.
8171 * MdiWindowManager.cs: Special handling of closing mdi windows.
8172 * InternalWindowManager.cs: Make the close method virtual so the
8173 mdi window manager can handle it specially.
8175 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
8178 - Recalculate grid when the data source has changed
8179 - Matches styles provided by user from all data sources types
8180 * DataGridTableStyle.cs: For columns that provided by the user set the
8181 with the preferred value is there was unassigned.
8182 * CurrencyManager.cs: throw OnItemChanged event
8184 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8186 * PictureBox.cs: Don't animate until handle is created. Start animation
8187 when handle is created.
8189 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8191 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
8193 * XEventQueue.cs: We don't need to provide the extra info
8195 2006-05-10 Jackson Harper <jackson@ximian.com>
8197 * MdiClient.cs: If the mdi clients parent form has a background
8198 image set, we draw that background image for the mdi area's
8201 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
8203 * TextBoxBase.cs: Set IBeam cursor (#78347)
8205 2006-05-10 Mike Kestner <mkestner@novell.com>
8207 * ToolBar.cs: fix some text padding issues with ButtonSize
8208 calculation. Update the default size to match MS documentation.
8209 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
8210 button size. Fixes #78296.
8212 2006-05-10 Mike Kestner <mkestner@novell.com>
8214 * ListBox.cs: use is_visible for scrollbar positioning in case the
8215 control isn't on screen yet. Fix off by one with Right vs Width
8216 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
8218 2006-05-10 Jackson Harper <jackson@ximian.com>
8220 * X11Dnd.cs: Drop to a control with another control on top of it.
8221 * ToolBar.cs: Work on a copy of the buttons list, so that it can
8222 be modified in click handlers. TODO: Look for similar problems in
8225 2006-05-09 Jackson Harper <jackson@ximian.com>
8227 * Form.cs: Window managers need the old window state when setting
8229 * InternalWindowManager.cs: Allow the base mdi window manager to
8230 handle more of the MDI only stuff (like maximize buttons).
8231 * MdiWindowManager.cs: Fix some snafus in changing the window
8232 state. Add all the menu functionality, for both popup and
8234 * MdiClient.cs: When a new form is selected the currently
8235 activated form is sent to the back, this matches MS.
8236 - Implement a new method to activate the next mdi child window.
8238 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8241 - Added new InternalCapture method to allow controls to prevent
8242 the capture behaviour on the click handlers
8243 - Switched to use InternalCapture
8245 - Using InternalCapture to prevent mouse captures from being released
8246 on mouse button release (Fixes #78100)
8247 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
8248 returns Form borders if a caption is present. (Fixes #78310)
8250 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
8252 * TreeNode.cs: Changed serialization .ctor to not require every field
8253 to be present. (#78265)
8254 * OwnerDrawPropertyBag.cs: Added serialization .ctor
8256 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
8258 * MimeIcon.cs: for is faster than foreach for strings.
8260 2006-05-05 Mike Kestner <mkestner@novell.com>
8262 * CheckedListBox.cs: update check handling code to not use selected.
8263 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
8264 behavior for visual feedback, motion response, shift/ctrl handling,
8265 and properly deal with all 4 selection modes. Updates to bounds
8266 handling logic. Add scroll wheel support. [Fixes #77842]
8268 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8271 - Moved adding of Implicit controls into .ctor. That way, subsequent
8272 creation of the controls will not cause them to think they are
8273 toplevel windows (fixes #78200 header problem)
8274 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
8275 - Switched visibility setting of header control to use internal field
8276 to avoid triggering handle creation
8277 - Now checking if handle is created before causing a refresh when items
8278 are added (This makes us now match handle creation time with MS)
8279 * Splitter.cs: Removed loading of private splitter cursor, switched to
8280 Cursors version now that that is loading the right ones
8281 * Cursors.cs: Load proper splitter cursors from resources
8282 * Cursor.cs: Added second method of loading resource cursors for the
8283 VS.Net users amongst us
8285 2006-05-05 Mike Kestner <mkestner@novell.com>
8287 * ListView.cs: give header_control a minimum size based on the
8290 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
8292 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
8293 window seems to do that with metacity, so set that type. (#78120)
8295 2006-05-05 Mike Kestner <mkestner@novell.com>
8297 * ListViewItem.cs: fix Details mode checkbox layout bug.
8298 * ThemeWin32Classic.cs: draw a ListView column header for unused space
8299 at the end of the header, if it exists. [Fixes for #78200]
8301 2006-05-04 Jackson Harper <jackson@ximian.com>
8303 * MdiClient.cs: Add a helper property to get the container form.
8304 * MdiWindowManager.cs: We have to make sure to use the menu origin
8305 when drawing the icons and buttons, this fixes maximized window
8306 icons/buttons on win32.
8307 * InternalWindowManager.cs: Reset the restore captions when a
8308 window goes from Maximized to Minimized and vice versa. Move the
8309 DrawMaximizedButtons into the MdiWindowManager source, tool
8310 windows can't be maximized. NOTE: This could use a little
8311 refactoring if time ever permits.
8313 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8315 * TextBox.cs: Add MWFCategoryAttributes
8316 * TextBoxBase.cs: Add MWFCategoryAttributes
8317 * Form.cs: Add MWFCategoryAttributes
8319 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
8321 * Control.cs: Add MWFCategoryAttributes
8322 * ScrollableControl.cs: Add MWFCategoryAttributes
8324 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
8326 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
8327 Divider is true. Fix a little glitch in PropertyToolBar
8330 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
8333 - Dispose: Call base.Dispose, this causes the disposed event
8334 to be fired (and probably other, more important stuff)
8335 - SetVisibleCore: Set is_visible to true after creating the
8336 window so that the window still gets created invisible (if
8337 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
8338 to generate a WM_ACTIVE message
8339 * Form.cs: Call Dispose when we want to destroy the window, instead of
8340 just destroying the handle (Dispose will do that for us)
8342 - RootWindow also needs a queue, so we can properly process the
8343 property change events from RootWindow (like Activate)
8344 - Generatic synthetic WM_ACTIVE message when the active window is
8347 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8349 * LinkLabel.cs: Trigger a recalc of our label dimensions when
8352 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8354 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
8355 for determining width and height (image might not be assigned if
8356 we're drawing an imagelist)
8358 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
8360 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
8361 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
8363 * Theme.cs: No longer returns hardcoded menu height, instead calls
8365 * Form.cs (OnLoad): Scaling happens before triggering Load events
8368 2006-05-01 Mike Kestner <mkestner@novell.com>
8370 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
8372 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8374 * TextBoxBase.cs: Removed Fixme
8375 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
8377 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
8380 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
8381 the rectangle relative to the parent, considering borders. We
8382 don't really want that.
8383 - ScrollWindow: Fixed warning to be more understandable
8384 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
8385 scrollbars and scroll only the visible area
8386 * RichTextBox.cs: Removed debug output
8388 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8390 * NumericUpDown.cs (Text): Just use base
8391 * UpDownBase.cs: Ensure txtView is created before using it
8393 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8395 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
8396 casting to IntPtr to avoid 64bit overflow errors
8398 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8401 - AllowDrop: Don't force handle creation.
8402 - CreateHandle: Added call to tell driver if we're allowed to drop
8404 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8406 * FileDialog.cs: Remember the last directory not only for the
8407 current instance but also for new FileDialog instances.
8409 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8411 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
8412 broke sending async messages
8414 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
8417 - ScrollWindow: Fixed method. We finally generate expose events again
8418 for scrolled areas. This was causing 'garbage' when scrolling
8419 textbox and other controls that used ScrollWindow
8420 - Switched from using the regular queue for paint events to the MS
8421 model of 'generating' paint events when the queue is empty.
8422 We use the new XQueueEvent.Paint subclass to store which windows
8424 - AddExpose now takes the x/y/width/height of the exposed area
8425 and inserts the window into the paint queue if not already there
8426 - InvalidateWholeWindow: Switched to use new AddExpose method
8427 - UpdateMessageQueue: Added which queue to monitor for paint events
8428 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
8429 the unlikely case nothing above handles it. We reset the expose
8430 pending states to get them off the queue.
8431 - GetMessage: Now pulls a paint event if no other events are in the
8433 - Invalidate: Switched to new AddExpose method
8434 - PeekMessage: Updated to understand pending paint events
8435 - UpdateWindow: Fixed logic bug. We were only updating if the window
8436 didn't need updating. Also switched to sending WM_PAINT directly,
8438 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
8439 and random access Remove(). The random access is needed to handle
8440 UpdateWindow() where a WM_PAINT is sent directly without accessing
8442 * ScrollBar.cs: Added Update() calls to cause immediate updates to
8443 allow for better feedback when scrolling. Scrollbars are small and
8444 the immediate update should make it 'feel' more responsive without
8445 slowing things down. ScrollBar still needs it's invaliate logic
8446 updated to not always invalidate the whole bar on certain changes.
8448 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8451 (BackColor): if the control does not support a transparent background,
8452 return the default backcolor when the parent backcolor is transparent.
8454 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
8456 * Application.cs: Updated to new StartLoop/GetMessage API
8457 * RichTextBox.cs: Provide some output on RTF parsing errors
8458 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
8459 new queue_id argument to GetMessage and PeekMessage to allow faster
8460 handling of per-thread queues in drivers.
8461 * Hwnd.cs: Added Queue tracking and property
8462 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
8463 * XEventQueue.cs: Added thread trackingA
8464 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
8466 - Implemented new per-thread queue
8467 - GetMessage: Fixed return/break behaviour on several cases. We were
8468 returning stale messages in some cases, instead of just processing
8471 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8473 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
8475 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
8477 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
8478 fixed off-by-one comparisons between Width/Height and Right/Bottom.
8480 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
8482 * PropertyGridView.cs: Fix drop down width.
8484 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8486 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
8487 a mess in DrawToolBar, so I removed one of them.
8489 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
8491 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
8492 needed (clip). Otherwise we get artifacts.
8494 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8496 * FixedSizeTextBox.cs: Added constructor to allow specifying which
8498 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
8499 and switched FixedSizeTextBox to only be fixed vertical (#78116)
8500 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
8501 if it matches the scale base font (avoids unneeded scaling)
8503 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
8505 * X11DesktopColors.cs: One gtk_init_check should be enough
8507 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8509 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
8512 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
8515 - Generate OnTextChanged for Backspace even if we're only deleting
8516 the current selection
8517 - When setting the Text property, only select all text if the
8518 control does not have focus when it is being set. Otherwise
8519 just place the cursor at the beginning of the control
8521 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
8523 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
8524 Added a little helper to draw PropertyGrid ToolBar with a different
8525 border and a different BackColor.
8526 * PropertyGrid.cs: Some background parts didn't get painted with the
8527 correct background color. Added a class that helps us to draw the
8528 correct border for PropertyGridView and a class that helps us to
8529 draw ToolBars with a different backcolor
8530 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
8532 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
8534 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
8535 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
8537 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8539 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
8540 into the palette entries. Also, since we're working on a copy
8541 we needed to copy the palette back onto the bitmap.
8542 * Cursor.cs: Same fix as XplatUIWin32.cs.
8544 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8546 * ImageListStreamer.cs: Need to read the var (or we're off)
8548 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
8550 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
8551 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
8552 TextBoxBase.cs: Unused var fixes
8553 * AxHost.cs: Small 2.0 fix
8554 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
8555 as it seems that is what at least Metacity expects. This will make
8556 icons show up on 64bit platforms. We still have some 64bit size
8557 issues, though, since the startup app window size still won't match.
8559 2006-04-25 Mike Kestner <mkestner@novell.com>
8561 * *.cs: cleanup newly reported exception var unused warnings.
8563 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8565 * ThemeWin32Classic.cs: Button image alignment now matches exactly
8568 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8570 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
8571 image. The image position is always the same, no matter if the
8572 button is pressed or not.
8574 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
8576 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
8577 selection and set the correct filename for SaveFileDialog.
8578 Patch by Emery Conrad.
8580 2006-04-24 Mike Kestner <mkestner@novell.com>
8582 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
8583 check for item.X outside the ClientRect instead of item.Y. Fixes
8586 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8588 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
8589 trust that value blindly and do some sanity check. Fixes bug #77814.
8591 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8593 * ImageListStreamer.cs: save the mask as a 1bpp image.
8595 2006-04-21 Mike Kestner <mkestner@novell.com>
8597 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
8598 pass Checked and Indeterminate to the Theme Engine. Improve
8599 encapsulation with ListBox.
8600 * ListBox.cs: Keep a StringFormat instead of calculating it every item
8601 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
8602 nested types. Move all CheckState functionality to CheckedListBox.
8603 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
8604 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
8605 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
8606 single base list. Fix scrollbar sizing and placement to mirror MS.
8607 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
8609 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
8610 for CheckedListBox by using new DrawItemState info. Center the
8611 checkboxes on the items. Use new StringFormat property.
8613 2006-04-18 Jackson Harper <jackson@ximian.com>
8615 * Form.cs: MdiChildren don't do default locations the same way as
8616 regular forms. This prevents a crash when trying to position the
8619 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
8621 * PropertyGridTextBox.cs: Formatting, copyright
8622 * PropertiesTab.cs: Formatting
8623 * PropertyGrid.cs: Formatting
8624 * PropertyGridView.cs: Formatting, fix drop down, enabled double
8625 click toggling of values
8627 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
8629 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
8630 * Control.cs (.ctor): verify_thread_handle is static, don't reset
8631 every time a control is created
8632 * Application.cs: Removed obsolete EnableRTLMirroring method
8634 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
8636 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
8637 SelectedIndex to -1. Fixes bug #78121.
8639 2006-04-17 Jackson Harper <jackson@ximian.com>
8641 * Binding.cs: Handle null values for Current and BindingContext.
8642 This occurs when binding is a little delayed.
8643 * CurrencyManager.cs: return null for Current when there are no
8645 - Hookup to the listchanged event on the DataView and update
8646 bindings when the list is changed. This fixes late binding of
8649 2006-04-17 Jackson Harper <jackson@ximian.com>
8652 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
8655 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
8657 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
8659 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
8660 with the correct ButtonState
8662 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
8664 * XplatUIX11.cs: Improved distinguishing between window types to
8665 tell the WM a type closer to what the app wants (Fixes #78107)
8667 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
8669 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
8672 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
8674 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
8675 drawing code to reflect the size grip changes
8677 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8679 * ImageListStreamer.cs: fix handling of the mask that follows the main
8680 bitmap when deserializing and serialize it properly. The generated mask
8681 should better be a 1bpp image, but I'll do that later.
8683 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
8685 * FileDialog.cs: Show something in the DirComboBox on *nix if the
8686 path doesn't fit into some of our Current.Places
8688 2006-04-13 Jackson Harper <jackson@ximian.com>
8690 * ComboBox.cs: Use borders instead of drawing our own decorations,
8691 try to obey correct rules for heights.
8694 * ThemeClearLooks.cs:
8695 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
8696 this is now handled by borders.
8697 - Remove unused DrawListBoxDecorationSize method.
8699 2006-04-13 Mike Kestner <mkestner@novell.com>
8701 * MenuAPI.cs: null guarding for the disbled click check fixes crash
8704 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
8706 * ThemeWin32Classic.cs:
8707 - Fixed CPDrawStringDisabled
8708 - Corrected drawing of disabled menu items
8709 - Fixed drawing of disabled radio buttons (bug #78095)
8710 - Draw check in a disabled CheckBox with color ControlDark
8712 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8714 * Form.cs: Use the provided width when calculating the menu size;
8715 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
8716 and ClientSize.Width won't be updated yet
8717 * Application.cs: Use Visible instead of Show() to make form visible,
8718 this way we create the handle later and menusize is considered
8720 2006-04-12 Mike Kestner <mkestner@novell.com>
8722 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
8725 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8727 * TextBox.cs: Implemented context menu
8729 2006-04-12 Mike Kestner <mkestner@novell.com>
8731 * ListView.cs: implement box selection. fixes #77838.
8732 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
8734 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8736 * XplatUIX11.cs: Added setting of window type when transient window
8737 is created (metacity would move it otherwise)
8738 * X11Structs.cs: Added WINDOW_TYPE atoms
8739 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
8740 background (the control is Opaque but still wants transparent
8743 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8745 * Control.cs: Added OnPaintBackgroundInternal to allow controls
8746 that set Opaque but don't mean it (like all ButtonBase-derived
8747 controls) to still draw their background
8748 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
8751 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8753 * Control.cs (PaintControlBackground): Set the graphics object
8754 on our PaintEvent to null to prevent it from being disposed
8755 when the PaintEvent gets disposed
8757 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
8759 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
8760 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
8762 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
8765 - Added transparency check to BackColor property. Transparent
8766 backgrounds are only allowed if the control styles permit it
8767 - Added recursive painting of parent control background and
8768 foreground if a control with a transparent backcolor is drawn
8769 (Thanks to Tim Ringenback for providing his 'hack' as a base
8770 for this patch) Fixes #77985 and #78026.
8771 - Added Opaque style check before calling OnPaintBackground, no
8772 need to draw the background if the control is opaque
8773 - Removed ControlAccessibleObject owner variable (inherited from
8774 base, no need to define again)
8775 - Added some documentation links explaining the drawing events
8778 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
8780 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
8781 that the affected control is the located at the left border of our
8782 parent (Fixes #77936)
8784 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
8786 * TextBoxBase.cs: When rendering disabled or readonly controls,
8787 draw the background with 'Control' instead of 'Window' color as
8788 long as the user hasn't specifically set a color
8790 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
8792 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
8793 since that won't be updated if the user types text (only if it's
8794 programatically set)
8796 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
8798 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
8799 layout changes do to app-triggered resizes will have the proper
8800 display rectangle for layout
8802 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
8804 * ThemeWin32Classic.cs:
8805 - Make use of the SystemBrushes and SystemPens wherever possible
8806 - Corrected some highlight colors
8807 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
8809 * Theme.cs: Added Empty field to CPColor struct
8811 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
8813 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
8814 is displayed when calculating the display rectangle. Thanks to Mike
8815 for teaching me the err of my ways.
8817 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
8819 * ScrollableControl.cs:
8820 - Rewrote DisplayRectangle code, now returning the proper x/y coords
8821 (instead of 0,0) and we now return the real width/height instead of
8822 just the clientrectangle, adjusted for padding. The rectangle is
8823 now cached and created by the new CalculateDisplayRectangle method.
8824 - Created new CalculateDisplayRectange method, which basically does
8825 what get_DisplayRectangle() did originally, but now using the
8826 right edge instead of DisplayRectangle to determine the size of
8828 - get_Canvas(): Fixed it to properly calculate canvas for
8829 right/bottom controls which seem to be placed to the right/bottom
8830 of any controls that have a fixed location
8831 - Removed TODO that's taken care of
8832 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
8833 and SetDisplayRectLocation according to new MSDN2 docs
8834 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
8835 event when that is called, this is added for compatibility
8836 - ScrollControlIntoView(): Implemented.
8837 - Switched scrollbars to be implicit, they shouldn't be selectable
8838 * ContainerControl: Now that ScrollControlIntoView is implemented, we
8839 call it when the active control is set/changed
8840 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
8841 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
8842 implicit_control variable (used for native Win32 message generation)
8843 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
8844 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
8845 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
8846 * XplatUIStructs.cs: Added ScrollBarCommands enum
8848 2006-04-10 Jackson Harper <jackson@ximian.com>
8851 * CheckedListBox.cs:
8858 * PrintPreviewControl.cs:
8864 * UpDownBase.cs: Fixup base event overrides.
8866 2006-04-06 Mike Kestner <mkestner@novell.com>
8868 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
8869 all user-initiated value changes to min <= value <= max-thumbsz+1.
8870 (set_Value): check for vert/horiz when calculating new thumb position.
8871 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
8873 (OnMouseMoveSB): refactor the thumb dragging code and refine
8874 invalidation logic to reduce flicker.
8875 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
8876 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
8877 (UpdateThumbPosition): small code readability cleanup
8879 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
8881 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
8884 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
8886 * ThemeNice.cs: Use a better graphics effect when a button is pressed
8888 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
8890 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
8891 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
8892 This dramatically reduces the number of Pen.Dispose calls.
8893 Where possible call ResPool methods only once instead of calling it
8894 over and over again (for example for the same color).
8896 2006-04-06 Mike Kestner <mkestner@novell.com>
8898 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
8899 Also remove an unused private field on the collection. Fixes #77972.
8901 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
8903 * ThemeNice.cs: Added ToolBar drawing code
8905 2006-04-06 Mike Kestner <mkestner@novell.com>
8907 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
8908 I'm assuming that means we need to look up the toplevel for the
8909 provided control. Fixes the crash trace in #77911 but exposes another
8910 crash in some strange reflection usage in NDocGui.
8912 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
8914 * ThemeNice.cs: Gave it a little silver touch and added Images
8916 * FontDialog.cs: FontDialog is not resizable
8917 * FileDialg.cs: Added SizeGripStyle.Show
8919 2006-04-05 Jackson Harper <jackson@ximian.com>
8921 * KeyboardLayouts.cs: Remove warning.
8923 2006-04-05 Jackson Harper <jackson@ximian.com>
8925 * Control.cs: Enable OnPaintInternal so we can use it for drawing
8926 all of our controls instead of Paint +=.
8941 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
8942 use OnPaintInternal. Remove Width/Height and Visible checks in
8943 paint handler, this is done at a higher level now.
8944 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
8945 * PaintEventArgs.cs: Add a handled flag so controls that don't
8946 want anymore painting after OnPaintInternal can make sure OnPaint
8949 2006-04-05 Mike Kestner <mkestner@novell.com>
8951 * Form.cs: fix the menu WndProc hacks to respect the native enabled
8952 state of the form, so that we don't process events when Modal dialogs
8953 are up. Fixes #77922.
8955 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
8957 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
8960 2006-04-05 Mike Kestner <mkestner@novell.com>
8962 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
8964 2006-04-05 Mike Kestner <mkestner@novell.com>
8966 * ListView.cs (HeaderMouseMove): null guarding for the over column
8967 when setting up the drag_to_index. Fixes #78015.
8969 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
8971 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
8972 in the taskbar. Transient windows seem to accomplish that.
8974 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
8977 - Re-enabled CreateParams.X/Y code for FormStartPosition
8978 - Added code for manual placement when creating the Control
8979 - Incomplete patch to treat MDI forms differently when
8980 setting the ClientSizeCore. (Still need to figure out handling
8983 - When we're explicitly setting the X/Y position of a non-Child
8984 window, let the WM know. Metacity really wants this.
8986 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
8988 * ThemeNice.cs: Added CPDrawButton
8990 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
8992 * ThemeNice.cs: Changed the color for focused buttons and activated
8993 the arrows for small scroll buttons.
8995 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
8997 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
8998 anymore. Changed some method modifiers to protected (virtual)
8999 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
9001 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
9002 Updated drawing of menus, buttons and progressbars; added
9005 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9007 * ImageListStreamer.cs: implemented serialization/deserialization
9010 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
9012 * ThemeWin32Classic.cs:
9013 - Removed all the DrawFrameControl stuff; CPDrawButton,
9014 CPDrawCheckBox and CPDrawRadioButton are now handled directly
9016 - Updated and corrected the drawing code of CPDrawButton,
9017 CPDrawCheckBox and CPDrawRadioButton to better match ms
9018 - Updated theme checkbox and radiobutton code to use the CP*
9021 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9023 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
9026 2006-03-31 Jackson Harper <jackson@ximian.com>
9028 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
9030 * UpDownBase.cs: Don't CreateGraphics manually, use a
9031 Refresh. Ideally we would invalidate the correct areas here.
9033 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9036 - We now track the mapping state of windows. If a window (or
9037 one of it's parents) is not mapped we no longer permit
9038 WM_PAINT messages to be generated since we'd otherwise get
9039 lots of BadMatch X errors. Jackson did all the work figuring
9041 - Destroying the caret if the window it's contained in is
9042 destroyed. Can't use regular DestroyCaret method since it
9043 might fall into a drawing function (trying to remove the
9044 caret) and with that generate new BadMatch errors. Again,
9045 Jackson tracked this down.
9046 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
9047 make sure we send the messages to all windows. (The old code
9048 would send the WM_DESTROY to the window, and then all child
9049 windows would be 'gone' because the WM_DESTROY handle lookup
9050 would no longer find the destroyed window)
9051 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
9052 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
9054 2006-03-31 Jackson Harper <jackson@ximian.com>
9056 * ScrollableControl.cs: Dont recalc if we are not visible.
9058 2006-03-31 Mike Kestner <mkestner@novell.com>
9060 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
9061 the visibility branch.
9063 2006-03-31 Jackson Harper <jackson@ximian.com>
9065 * ScrollBar.cs: Cap values when incrementing/decrementing.
9067 2006-03-31 Mike Kestner <mkestner@novell.com>
9069 * MenuAPI.cs: setup menu.tracker for popup/context menus.
9070 * ToolTip.cs: guard against timer expirations with no active control.
9071 Not sure why it happened.
9073 2006-03-31 Mike Kestner <mkestner@novell.com>
9075 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
9077 * ToolTip.cs: Position the tooltip based on where the cursor is at
9078 popup time, not at MouseEnter time. Add a Down state so that we don't
9079 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
9080 positioning offset. Lookup DisplaySize at positioning time, since it
9081 can theoretically change during invocation.
9082 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
9083 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
9085 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9087 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
9088 Fixes behaviour when the Text property of the box is String.Empty
9090 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
9092 * XplatUIX11.cs: Only send mouseleave for our client windows, not
9093 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
9096 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9098 * FileDialog.cs: Visual enhancement for the popup buttons in
9101 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
9103 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
9106 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
9108 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
9109 highlighted menu items to match ms
9111 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
9113 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
9115 2006-03-30 Mike Kestner <mkestner@novell.com>
9117 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
9118 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
9119 go active to account for HotLight to Selected transition.
9120 * MenuItem.cs: add internal Selected prop. Fill out the Status
9121 property by calculating it from item info. Add HotLight,
9122 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
9124 2006-03-30 Mike Kestner <mkestner@novell.com>
9126 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
9128 2006-03-29 Jackson Harper <jackson@ximian.com>
9130 * Form.cs: Implement TODO.
9132 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9134 * PrintPreviewDialog.cs: Implemented missing methods and events; still
9135 missing proper dialog setup in the constructor
9137 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
9139 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
9141 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
9142 - Fixed ResetBindings and removed TODO
9143 - Added check for cross-thread calls to get_Handle()
9144 - Added Marshaller attribute for set_Font to satisfy class status
9145 * FontDialog.cs: Removed TODOs that seemed implemented
9146 * UpDownBase.cs: Removed unneeded TODO and Fixme
9147 * MessageBox.cs: Implemented support for Default button and removed TODO
9148 * FileDialog.cs: Removed obsolete TODO
9149 * DomainUpDown.cs: Removed obsolete TODO
9150 * ButtonBase.cs: Removed obsolete TODO
9151 * XplatUIWin32.cs: Removed obsolete TODO
9153 - Removed obsolete TODO
9154 - Calling CheckAcceptButton when the acceptbutton is changed to allow
9155 internal status updates
9156 - Making sure the active control is selected when the control is created
9157 * CurrencyManager.cs: Removed obsolete TODO
9159 2006-03-29 Mike Kestner <mkestner@novell.com>
9161 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
9162 of PrintPreviewDialog and RichTextBox.
9164 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9166 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
9167 DarkDark, Light and LightLight colors for a specific color
9168 * ThemeWin32Classic.cs:
9169 - Use Button drawing code to draw RadioButtons and CheckBoxes with
9171 - Make use of the new ResPool helper CPColor
9172 - Draw ProgressBar and StatusBar with correct 3D borders
9174 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
9176 * ColorDialog.cs: Return selected color. Fixes bug #77940.
9178 2006-03-28 Mike Kestner <mkestner@novell.com>
9180 * ListView.cs: fix Icon layout to plan for scrollbar widths when
9181 calculating col/row counts.
9183 2006-03-28 Mike Kestner <mkestner@novell.com>
9189 switch to explicit interface method implementation for some methods
9190 corcompare identifies as inconsistent with MS.
9192 2006-03-28 Mike Kestner <mkestner@novell.com>
9196 add a few missing methods from the class status output.
9198 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
9200 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
9203 2006-03-28 Mike Kestner <mkestner@novell.com>
9205 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
9207 2006-03-27 Mike Kestner <mkestner@novell.com>
9209 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
9210 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
9212 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
9214 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
9216 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9218 * ThemeWin32Classic.cs:
9219 - GroupBox: Inserted a little gap between the text and the lines
9221 - Made the code in CPDrawBorder3D more readable
9222 - Corrected the drawing location of the up and down arrows in
9225 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9227 * ControlPaint.cs: Corrected line widths in DrawBorder for
9228 ButtonBorderStyle Inset and Outset
9230 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9232 * ThemeWin32Classic.cs:
9233 - Rewrote the totally broken CPDrawBorder3D method. That was
9234 one of the main problems for the terrific ThemeWin32Classic
9236 - Updated and corrected Button drawing
9237 - Correct the dimensions of the SizeGrip to match ms ones
9238 - Removed a small drawing glitch in DrawComboBoxEditDecorations
9239 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
9240 Border3DStyle.Sunken to match ms.
9242 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
9244 * ThemeWin32Classic.cs: First small part of the "de-uglify
9245 ThemeWin32Classic" effort, SizeGrip
9247 2006-03-24 Jackson Harper <jackson@ximian.com>
9249 * XplatUIX11.cs: Give a max idle time of one second, this matches
9250 MS and forces an Idle event every second when there are no other
9251 events in the queue.
9253 2006-03-24 Mike Kestner <mkestner@novell.com>
9255 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
9256 * ListView.Item.cs: fix layout issues with null image lists and images
9257 smaller than checkbox size.
9258 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
9259 mode like MS does. It's weird, but consistent. ;-)
9262 2006-03-24 Mike Kestner <mkestner@novell.com>
9264 * ListView.cs: Scroll wheel support for the item control. Fixes
9267 2006-03-23 Jackson Harper <jackson@ximian.com>
9269 * ScrollableControl.cs: Special case negative sized areas, not
9271 * MonthCalendar.cs: Save the rect of the clicked date so we can
9272 use it for invalidation.
9273 - Try to cut down on the number of invalidates
9274 - Invalidate the rect the mouse is over and was over when moving
9275 the mouse, so we get the focus box following the cursor.
9277 2006-03-23 Mike Kestner <mkestner@novell.com>
9279 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
9280 focus rectangle drawing. Fixes #77835.
9282 2006-03-23 Mike Kestner <mkestner@novell.com>
9284 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
9285 the if and else if and reverting back to the original == check on the
9288 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9290 * FontDialog.cs: Update the example panel if the selected index of
9291 the fontListBox changes.
9293 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
9295 * FileDialog.cs: Make FileDialog remember which directory it was in
9296 last in the same execution.
9298 2006-03-22 Mike Kestner <mkestner@novell.com>
9300 * FileDialog.cs: make the DropDownMenu on the toolbar display
9301 RadioChecks since they are mutually exclusive and that's what MS does.
9303 2006-03-22 Mike Kestner <mkestner@novell.com>
9305 * Theme.cs: add Color param to CPDrawMenuGlyph.
9306 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
9307 checks and radio marks and arrows are visible on highlighted items.
9308 * ControlPaint.cs: update to use new Theme signature.
9310 2006-03-22 Mike Kestner <mkestner@novell.com>
9312 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
9313 is active. Fixes #77870.
9315 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9317 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
9318 to be focused/selected after startup
9320 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
9323 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
9324 CustomColors and ShowHelp properties
9325 - Some internal rewrites to get better results when using the
9328 2006-03-22 Mike Kestner <mkestner@novell.com>
9330 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
9331 HoverSelection. Fixes #77836.
9333 2006-03-22 Mike Kestner <mkestner@novell.com>
9335 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
9336 ToggleButtons. (De)Sensitize the Back button around a stack count of
9337 1, not 0. Update ButtonSize based on a pixel count of the win32
9338 control. Adjust the toolbar size/location for new button size.
9340 2006-03-22 Jackson Harper <jackson@ximian.com>
9342 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
9344 * ScrollBar.cs: When doing increments and decrements we need to
9345 set the Value property so that ValueChanged gets raised. A
9346 possible optimization here would be to make an internal SetValue
9347 that doesn't invalidate immediately.
9348 * ToolTip.cs: Tooltips get added to their container (when
9349 supplied) so they get disposed when the container is disposed.
9350 - Don't create tooltips for String.Empty. This prevents all these
9351 little 2-3 pixel windows from showing up when running nunit-gui
9353 * Form.cs: Don't set topmost when setting the owner if the handles
9354 haven't been created yet. The topmost set will happen when the
9355 handles are created.
9357 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
9360 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
9361 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
9362 visible (to allow them to recalculate their sizes)
9364 2006-03-21 Mike Kestner <mkestner@novell.com>
9366 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
9367 methods. Removed a ton of redundant code. Still not really happy with
9368 the border rendering, but I think that's mainly because of the
9369 ControlDarkDark being black instead of a dark grey. Depending on how
9370 close we want to be, we might want to revisit those color choices.
9371 Among the new features added during the refactor were DropDownArrow
9372 pressed rendering, Disabled image rendering. Proper flat appearance
9373 boundary rendering. Removed the Divider and Wrapping dividers since I
9374 can't figure out any combination of themes and conditions to make the
9375 MS control draw a horizontal line on a toolbar despite what the
9376 Divider property docs indicate.
9377 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
9378 conditions and incorrect layout. Updated to coding standard.
9379 * ToolBarButton.cs: refactored layout and positioning code from
9380 ToolBar to here. Invalidate wherever possible instead of forcing
9381 redraws of the whole toolbar.
9382 (Known remaining issues: explicit ButtonSize smaller than provided
9385 2006-03-21 Mike Kestner <mkestner@novell.com>
9387 * ContextMenu.cs (Show): use the position parameter instead of just
9388 showing at the MousePosition.
9390 2006-03-21 Jackson Harper <jackson@ximian.com>
9392 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
9393 control handle this.
9394 * TreeNodeCollection.cs: If we are clearing the root node we need
9395 to reset top_node so calcs can still happen.
9396 * ThemeWin32Classic.cs: This is a Flags so we need to check
9399 2006-03-21 Jackson Harper <jackson@ximian.com>
9401 * DataGrid.cs: Create columns when the binding context has been
9403 * X11Structs.cs: Keysyms are uints.
9404 - Add size to fix build.
9406 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
9408 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9410 - Added ResetMouseHover method to allow controls to retrigger
9411 hovering if they need it more than once
9412 - Implemented MouseHoverTime and MouseHoverSize properties
9413 * Timer.cs: Start() must reset the interval
9414 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
9417 2006-03-21 Jackson Harper <jackson@ximian.com>
9419 * X11Keyboard.cs: improved layout detection. Move the nonchar
9420 tables into this file.
9421 * KeyboardLayouts.cs: Move the tables into resource files.
9423 2006-03-21 Mike Kestner <mkestner@novell.com>
9425 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
9427 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
9429 * Mime.cs: Various speed optimizations. Looking up mime types
9430 is now 2 times faster than before
9432 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9434 * CreateParams.cs: Added internal menu field
9436 - Switched call order for UpdateBounds; now we always call
9437 the one that also takes ClientSize, and we're calculating the
9438 client size via driver method in the others. The previous
9439 method of tracking client size by difference wasn't working
9440 for forms where even the starting client size wouldn't match
9441 the overall form size (due to borders) (Part of fix for #77729)
9442 - CreateParams(): Do not use parent.Handle unless the handle is
9443 already created. Causes havoc with Nexxia and throws off our
9444 creation of controls
9446 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
9447 - Switched handling of ConfigureNotify over to new PerformNCCalc
9448 method (consolidates code)
9449 - Changed RequestNCRecalc to use new PerformNCCalc method
9450 - Added calls to RequestNCRecalc when menus and borders are changed
9451 to allow app to set NC size. (Part of fix for #77729) This matches
9452 when MS send a WM_NCRECALC on Win32 windows.
9453 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
9454 (Part of fix for #77729). This matches what MS does, they also
9455 send that message when the form is made visible.
9456 - XException.GetMessage: Improved usability of X errors by including
9457 a translation of the window into Hwnd and Control class
9458 - Improved debug info for window creation, reparenting and destruction
9459 - Created helper method WindowIsMapped() [Currently not used]
9460 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
9462 - CreateParams: Now setting our menu on the new internal menu field
9463 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
9464 avoid calculating the same property twice
9466 - Improved usability of ToString() for debugging purposes
9467 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
9468 determine the height of the menu, instead of just the font. This
9469 required to also create a graphics context and to keep a bmp
9470 around (for performance reasons)
9472 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
9474 * MenuAPI.cs: Added OnMouseUp method
9476 - Now remembering the requested client size, avoids size errors
9477 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
9478 instead of base if the menu is active. This is required due to
9479 control now capturing and releasing on down/up and it would
9480 prematurely release our menu capture
9482 2006-03-17 Jackson Harper <jackson@ximian.com>
9484 * KeyboardLayouts.cs: Add the czech layouts.
9486 2006-03-16 Jackson Harper <jackson@ximian.com>
9488 * Control.cs: Use the viewport space when sizing not the controls
9489 client size, so things like ScrollableControl that effect the
9490 viewport size (when scrollbars are added) are computed correctly.
9491 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
9493 - Handle creating BindingManagers for null data sources.
9494 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
9495 source, otherwise when rows are added they are added to the 'fake'
9496 datasource and we will crash when trying to set the position in
9498 - Use Implicit scrollbars on the datagrid so they arent
9501 2006-03-16 Jackson Harper <jackson@ximian.com>
9504 * InternalWindowManager.cs:
9505 * MdiWindowManager.cs:
9506 * X11Keyboard.cs: I really want Mike to love me again (fix
9509 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
9512 - OnMouseDown: Switch to editing mode when clicking on the cell
9513 even if we're clicking on the cell that's currently
9515 - ProcessGridKey: Left/Right now wrap like MS.Net does
9516 - ProcessGridKey: Tab now knows to add a new row when tab is
9517 pressed in the cell of the last column of the
9519 - ProcessGridKey: Enter now adds another row if pressed in the last
9520 row and selectes the new row, same column cell
9521 - ProcessGridKey: Home/End navigate columns, not rows, like
9522 originally implemented
9523 - Broke ProcessKeyPreview code out into an extra Internal method
9524 so it can be called from the edit code
9525 * DataGridTextBox.cs (ProcessKeyMessage):
9526 - Switched to accept Tab keypresses
9527 - Added F2 handling to allow jumping to the end of the edited cell
9528 - Added logic to allow moving caret left/right inside edited cell
9529 and making the edited cell jump when the caret hits cell borders
9530 - Tab and Enter are now passed to the datagrid after being handled
9532 - Removed capture code now that Control handles it
9533 - set_SelectionStart now ensures caret is visible
9535 2006-03-16 Jackson Harper <jackson@ximian.com>
9537 * TrackBar.cs: Debackwards the increment/decrement for handling
9538 mouse clicks on the bar with vertical trackbars.
9539 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
9542 2006-03-16 Mike Kestner <mkestner@novell.com>
9544 * ListView.cs: make shift/ctrl keyboard and mouse selection
9545 consistent with the MS control. Fix a bug in
9546 SelectedListViewItemCollection.Clear that was pissing me off for the
9547 better part of a day because the collection was being altered
9548 underneath us as we walked the list.
9550 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
9552 * Control.cs: Not sure how we could miss this so long, but it seems
9553 that MS.Net has Capture set all the way from before calling
9554 OnMouseDown through sending the mouse events until after
9555 OnMouseUp. This will fix DataGrid's selection being set to end
9556 at the location of the MouseUp.
9558 2006-03-15 Jackson Harper <jackson@ximian.com>
9560 * BindingContext.cs: Check the binding after its added so that it
9561 can initialize the binding managers and hookup to events.
9562 * Binding.cs: Data members seem to sometimes include rows/cols in
9563 the format Row.Column we now take this into account.
9564 - Hookup to the position changed event so we can update the
9565 control when the position has changed in the data set.
9566 * CurrencyManager.cs: Take into account the row/col naming
9567 convention when creating dataset tables.
9568 * BindingContext.cs: Using a newer better way of storing
9569 datasource/datamember pairs. Hopefully this better matches MS for
9570 looking up binding managers.
9573 2006-03-15 Jackson Harper <jackson@ximian.com>
9575 * BindingContext.cs: The currency manager needs the data member
9576 name, if the member is a data set we use the name to find the
9578 * CurrencyManager.cs: When creating the list prefer an IList over
9580 - Attempt to create a DataTable from a DataSet (TODO: might need
9581 some better error checking here, although MS doesn't seem to have much)
9582 - If we have a DataTable create a view and use it as our list.
9584 2006-03-15 Mike Kestner <mkestner@novell.com>
9586 * ListView.cs: keep a matrix of the icon mode layout to facilitate
9587 keyboard navigation. Support Up/Down/Left/Right selection correctly
9588 for all 4 View modes.
9589 * ListViewItem.cs: add internal row/col fields for icon layouts.
9591 2006-03-15 Jackson Harper <jackson@ximian.com>
9593 * TabControl.cs: Redraw the tabs when we resize so their newly
9594 calculated sizes are drawn on screen.
9595 * X11Keyboard.cs: Begginnings of XIM support. We also now support
9596 composite characters.
9597 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
9598 - filter events so that composite characters can be created
9600 * X11Structs.cs: Add XIMProperties enum.
9602 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9604 * Control.cs (BringToFront, SendToBack): Don't use window or handle
9607 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9609 * Control.cs (PerformLayout): We don't need to consider visiblity
9610 for anchoring, only for docking. This fixes 'whacky' alignment
9611 in listbox and other controls that use implicit scrollbars after
9612 the previous PerformLayout patch
9613 * ListBox.cs: Switched to use implicit scrollbars
9615 2006-03-14 Mike Kestner <mkestner@novell.com>
9619 - chain up the "new event" overrides to base and use
9620 OnEvent to raise them. Part of fix for bug #76509.
9622 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
9624 * FileDialog.cs: Do not select an item in the parent directory
9627 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9629 * Control.cs (PerformLayout): It would seem that we considered
9630 invisible windows for our layout. Not quite the right thing
9631 to do. Now we don't any longer, thereby fixing bug #76889.
9633 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
9635 * Control.cs (CanFocus): I goofed. A control can have focus
9636 even though it's not selectable. Made it match MS docs.
9638 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
9640 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
9641 center by default (fixes #76895)
9642 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
9643 all uses of Border3DSides.All with the explicit ORd together
9644 Left|Right|Top|Bottom because I assume that nobody was aware
9645 that All also implies a center fill. Most places I checked had
9647 * ProgressBarStyle.cs: Added
9649 2006-03-13 Mike Kestner <mkestner@novell.com>
9651 * ListView.cs: fix breakage in drag shadow header positioning
9652 from Peter's csc compilation fix.
9654 2006-03-13 Mike Kestner <mkestner@novell.com>
9656 * ListView.cs: fix NRE produced by backspacing twice in a focused
9659 2006-03-13 Mike Kestner <mkestner@novell.com>
9661 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
9663 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
9665 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
9667 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
9668 the allowed size before making programmatic size changes
9670 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
9672 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
9673 set, metacity is broken and will still use the emty sizes in
9674 the struct. (Fix for #77089)
9676 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
9678 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
9679 WindowExStyles and marked both enums as Flags
9680 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
9681 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
9682 to match WindowStyles split
9684 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
9685 - Updated to match WindowStyles split
9687 - Fixed FosterParent creation, was using ExStyle on the Style field
9688 (This should help with Popup focus issues)
9689 - Updated to match WindowStyles split
9691 2006-03-13 Jackson Harper <jackson@ximian.com>
9693 * MdiWindowManager.cs: Use the system menu height. Fixes some
9694 strange sizing issues.
9696 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
9698 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
9700 - Scroll to caret after inserting text (#77672)
9701 - Make scroll range one pixel higher, fixes off-by-one error (and
9702 makes underlines visible on the last line)
9704 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
9706 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
9707 the keyboard state from being stuck with keys in 'pressed' state when
9708 focus is switched away via keyboard
9709 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
9710 reset the keyboard if no X11 KeyUp events are expected to come
9711 * X11Structs.cs: Switched type of Visible to bool to match driver
9713 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
9716 - Switched caret to be just 1 pixel wide, matches MS and looks less
9718 - Moved caret display 1 pixel down from the top of the control
9720 - InsertCharAtCharet: Update the selection start if moving the caret
9721 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
9722 - No longer always creating the caret when the caret methods are
9723 called. Only the actual ShowCaret/HideCaret will do that now
9724 - Only setting caret visible if the owner control has focus
9725 - UpdateView: Added invalidation-shortcut logic for center and right
9726 aligned text. Previously we'd update all according to the left
9727 logic which caused drawing errors. Also fixed height of invalidated
9728 areas, now properly invalidating the whole area (was off-by-one)
9729 - owner_HandleCreated: Always generate the document when the
9730 handle is created; this ensures that
9732 - Fixed situation where caret would disappear under the right
9733 window border, also improved scrolling behaviour on left-
9735 - Fixed right-aligned textboxes to have a border to the
9736 right instead of the caret being under the right border
9738 - Switched from 'nested' to simple visible/not visible tracking
9739 for caret (part of fix for #77671)
9740 - No longer passing through translated FocusIn/FocusOut messages
9741 since we were notifying too often and the wrong windows. Instead
9742 we just notify our focussed window of receiving or loosing focus
9743 * XplatUIWin32.cs: Switched from 'nested' show/hide
9744 counting for caret to simple visible yes/no behaviour (part of
9747 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
9749 * Mime.cs: Remove debug code...
9751 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
9753 * MimeGenerated.cs: Removed
9754 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
9755 and subclasses) from /usr/(local/)share/mime and
9756 $HOME/.local/share/mime.
9758 2006-03-10 Jackson Harper <jackson@ximian.com>
9760 * MdiWindowManager.cs: Recalc the NC area when a window is
9761 maximized/restored so that the menu area is drawn on forms that
9764 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
9766 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9767 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
9768 us to force a WM_NCCALCRESIZE message being sent. This is needed
9771 2006-03-10 Jackson Harper <jackson@ximian.com>
9773 * Form.cs: We need to use the ActiveMenu when calculating menu
9775 - Fix nullref when the window manager hasn't been created yet.
9776 * Control.cs: Fix nullref when we try to bring a control to the
9777 front that has no parent.
9778 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
9780 - Add a dummy item to the maximized menu so it always has the
9781 correct height. Otherwise when there are no menus we don't get our
9785 2006-03-10 Jackson Harper <jackson@ximian.com>
9787 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
9789 * Form.cs: Make the window_state internal so the window managers
9791 - When an MDI child is maximized let its window manager create the
9792 main menu (so it can add its icon).
9793 - Notify the window managers of state changes
9794 - Let the window manager paint its buttons and handle button
9795 clicks on the menu when it is maximized.
9796 * InternalWindowManager.cs: Move the prev_bounds into the mdi
9797 window manager, since tool windows don't use it, only mdi windows.
9798 - Tell the main form that we don't want it to handle NCPAINT
9799 itself to avoid extra painting.
9800 - Handle clicks on a maximized windows menu.
9801 - Handle window state changes
9802 - Handle minimize/maximize clicks correctly by setting the window state.
9803 * MdiWindowManager.cs: Add an icon menu that (the menu you get
9804 when clicking on the forms icon).
9805 - New method to create a forms maximized menu. This is its normal
9807 - Handle window state changes.
9808 - Handle sizing of maximized windows. Maximized windows are just
9809 drawn bigger then the parent visible area. All controls are still
9810 there, they are just outside the visible area (this matches windows).
9811 * MdiClient.cs: No scrollbars when a child window is maximized.
9812 - Let the children windows figure out how big they should be when
9813 sizing maximized windows.
9814 - Implement a version of ArrangeIconicWindows somewhat similar to
9815 Windows version. There are some little differences, but I don't
9816 think any app will rely on the layout of minimized mdi windows.
9818 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
9820 * Padding.cs: Several fixes to allow compiling with csc 2.0
9822 2006-03-09 Jackson Harper <jackson@ximian.com>
9825 * MenuItem.cs: Cheap hack so we can add items to the list without
9826 the events being raised. This allows adding mdi items during
9827 drawing. TODO: Should probably find a better time to add the items.
9829 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
9831 * ThemeWin32Classic.cs:
9832 - CheckBox_DrawText: Added logic to not wrap if not enough space
9833 is available (Fix for bug #77727)
9834 - RadioButton_DrawText: Added logic not to wrap if not enough
9835 space is available (Fix for bug #77727). Also removed some
9836 duplicate code, DrawString always drawing the regular text
9837 before hitting the if statement.
9839 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
9841 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
9843 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
9845 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
9846 * ContainerControl.cs: Partial implementation of some 2.0 scaling
9847 methods. Moved the new 2.0 properties into alphabetical order with
9848 other properties and added MonoTODO tags
9850 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9852 * AutoScaleMode.cs: Added. Fix build.
9854 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9856 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9857 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
9858 and was requiring premature handle creation for calls from above
9859 * Form.cs, Control.cs: Removed handle arguments from calls to
9860 CalculateClientRect()
9862 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9864 * ListView.cs (HeaderMouseMove): Fix csc compilation.
9865 drag_column.column_rect is MarshalByRef and can't be used that way
9867 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9869 * AxHost.cs: Added deserialization constructor for
9870 AxHost+State (fixes 77743)
9872 2006-03-09 Mike Kestner <mkestner@novell.com>
9875 - Added column drag reordering for details view.
9876 - fixed behavior when mouse is dragged off column and
9877 AllowColumnReorder is false.
9878 * ColumnHeader.cs: clone the format too in Clone.
9879 * Theme.cs: add DrawListViewHeaderDragDetails method.
9880 * ThemeWin32Classic.cs:
9881 - impl new method for drawing drag column shadows and targets.
9882 - support column offset for details mode in DrawListViewItem.
9884 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9886 * TextControl.cs: Reset the char_count when the document is cleared
9887 (Fixes bug reported on mono-winforms mailing list)
9889 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9891 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
9892 of calling base we simply process the key ourselves, since both
9893 DefWindowProc and the handled method would set m.Result.
9896 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
9898 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
9899 method also moves the window; instead implemented a copy of
9900 Control.ScaleCore (Part of fix for #77456)
9902 - Created new CreateGraphicsInternal method to allow providing
9903 a graphics context when no handle is created without triggering
9904 handle creation. (Part of fix for #77456)
9905 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
9907 - Switched Constructor to require TextBoxBase instead of Control (to
9908 allow uncast access to CreateGraphicsInternal)
9909 - Safeguarded use of owner.Handle property. No longer accessing it
9910 unless the handle is already created.
9911 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
9912 - Now triggering a recalc when owning control becomes visible
9913 * TextBox.cs, RichTextBox.cs: Switched to use new internal
9914 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
9915 premature handle creation (Part of fix for #77456)
9917 - We now only destroy our double-buffering buffers when the
9918 control is resized or disposed, but not when visibility
9919 changes. (The code even re-created them twice every time)
9920 - Now requiring a redraw of the buffer on visibility changes
9921 (fixes bug 77654 part 2)
9922 - Not passing OnParentVisibleChanged up unless the control
9924 - CanFocus: Fixed to match MS documentation
9925 - Focus: Fixed to return actual focus state and to check if
9926 setting focus is legal before setting it
9928 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
9930 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
9931 when to draw focus rectangle by looking at parent focus and
9932 selected state instead. This fixes TabPages on Linux sometimes
9933 having none or multiple focus rectangles.
9934 * XplatUIX11.cs (SetFocus):
9935 - Don't set the focus if the same window already has focus
9936 - Use SendMessage instead of PostMessage (like it's Win32
9937 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
9938 to match MS behaviour
9939 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
9942 2006-03-07 Jackson Harper <jackson@ximian.com>
9944 * PictureBox.cs: Revert line I accidently committed last week.
9946 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
9949 - Added new IsRecreating and ParentIsRecreating properties to
9950 allow testing if RecreateHandle has been called on ourselves
9951 or one of our parents
9952 - WndProc(WM_DESTROY): If our control handle is being recreated
9953 we immediately need to create the handle when receiving the
9954 destroy, that way our child windows find a valid parent handle
9955 when they themselves are being recreated upon WM_DESTROY receipt
9956 (fix for bug #77654 part 1)
9958 - DestroyWindow: WM_DESTROY must be sent to our own window before
9959 notifying any child windows. MS documents that child windows
9960 are still valid when WM_DESTROY is received. (Control now relies on
9962 - Added some fine-grain debug options
9964 2006-03-06 Jackson Harper <jackson@ximian.com>
9966 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
9967 box and base calculations off this.
9968 * MdiChildContext.cs:
9969 * MdiWindowManager.cs: Don't need to ensure scrollbars here
9972 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
9974 * Splitter.cs: In situations where the affected control is added
9975 to the parent's control list after the splitter, we would not
9976 populate affected. Now we try populating it on mousedown, if
9977 it's not already set, and force it to be re-set whenever our
9980 2006-03-03 Matt Hargett <matt@use.net>
9982 * Control.cs: implement Control.Padding
9983 * Padding.cs: -Padding.All returns -1 when constructing with the
9984 implicit default ctor
9985 -Padding.ToString() matches MS.NET
9986 * ContainerControl.cs: implement
9987 ContainerControl.AutoScaleDimensions
9988 * ListControl.cs: implement ListControl.FormattingEnabled
9989 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
9991 * TabPage.cs: Implement UseVisualStyleBackColor.
9992 * PictureBox.cs: Implement PictureBox.InitialImage.
9994 2006-03-03 Mike Kestner <mkestner@novell.com>
9996 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
9997 event declarations to proxy to base event.
9998 * ListViewItem.cs: update to use ItemControl.
9999 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
10000 * ThemeWin32Classic.cs: update to new ListView theme API and fix
10001 column header label rendering for 0 width columns.
10003 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
10005 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
10006 that causes the control to be created. Fixes #77476.
10008 2006-03-02 Jackson Harper <jackson@ximian.com>
10010 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
10013 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
10015 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
10016 passed in for the EventArgs (fixes #77690)
10018 2006-03-01 Jackson Harper <jackson@ximian.com>
10020 * ScrollBar.cs: Refresh afterbeing resized.
10022 2006-02-28 Mike Kestner <mkestner@novell.com>
10024 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
10025 Clean up a tracker compile warning.
10026 * MenuItem.cs: add internal PerformPopup method.
10029 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10031 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
10032 implicit expose) when the text is set to null
10034 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10036 * RichTextBox.cs (FlushText): When newline is true, we always
10037 need to split the line, even if no text is on it and we may
10038 never eat newlines. (Fixes #77669)
10040 2006-02-28 Mike Kestner <mkestner@novell.com>
10042 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
10043 and set Selected instead.
10044 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
10047 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
10049 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
10051 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
10054 - Got rid of the panel. All controls are now directly added to
10056 - It is now possible to set a font with the Font property
10057 - MinSize and MaxSize property do now what they should
10058 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
10059 - Searching and selecting a font with the font textbox works now,
10060 the same applies to the style and size textbox
10061 - Draw the correct 3D border in the example panel
10062 - Fixed a little mem leak (unused fonts didn't get disposed)
10063 - Many other internal updates/rewrites...
10066 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10069 - InsertRTFFromStream: Added 'number of characters inserted' argument
10070 - set_SelectedRTF: Now using the number of characters to calculate
10071 the new location for the selection and cursor (x/y cannot be used
10072 due to potentially already wrapped text)
10074 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10076 * TextControl.cs: Added property and implemented means to allow
10077 disabling recalculation of a document (can be used to speed up
10078 multiple inserts and is needed to make RTF inserts predictable, see
10080 * RichTextBox.cs: Using the new NoRecalc property of Document to
10081 keep x/y insert locations predictable. Also makes it faster inserting
10082 large chunks of RTF
10084 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
10086 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
10087 it's easier for a child control to handle the other messages without
10088 having to duplicate the special functionality
10090 - WndProc: Removed calling base handler for WM_KEYDOWN and added
10091 code to handle processing the key ourselves, in order to get
10092 access to the result of KeyEventArgs.Handled. We now only call
10093 ProcessKey if they key hasn't been handled already. Fixes #77526.
10094 - set_Text: If null or empty string is given, just clear the
10095 document. Fixes part of #77526
10097 2006-02-27 Jackson Harper <jackson@ximian.com>
10099 * SizeGrip.cs: Paint the background color before painting the grip
10100 so things look right.
10101 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
10103 2006-02-27 Mike Kestner <mkestner@novell.com>
10106 - Restructure layout and invalidation model to remove a ton of
10107 flicker from the control and speed up performance in general.
10108 - Add manual column resize, flickers like crazy, but I already have
10109 some ideas on how I'll fix that. (#76822)
10110 - Merge the three Icon-based views into a single layout method.
10111 - Move item selection interaction logic from the item since
10112 interaction with the collections is more appropriate to the view.
10113 - Deselection on non-item clicks.
10115 - Encapsulate most of the layout. Add some internal props to trigger
10116 layout. Move to a model where Items invalidate themselves instead
10117 of just invalidating the whole control every time something changes.
10118 - Invalidate on Text/Caption changes.
10119 - switch to an offset based layout model to avoid having to absolute
10120 position every element on item moves.
10121 - correct checkbox layout to conform to MS layout.
10122 * ThemeWin32Classic.cs:
10123 - refactor some column header drawing code.
10124 - fix string justification for column headers (#76821)
10125 - make SmallIcon labels top justified for compat with MS impl.
10126 * ThemeClearlooks.cs:
10127 - adjust to new ListViewItem internal checkbox bounds api.
10129 2006-02-27 Jackson Harper <jackson@ximian.com>
10131 * Control.cs: Change where implicit controls fall in the zorder.
10132 They are now on top of all children.
10133 - Synced AddImplicit code with Add
10134 - Removed unused enumerator.
10135 * SizeGrip.cs: Remove the TODO as its been TODONE.
10137 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10139 * TextControl.cs(Insert): Combine the last lines unless the insertion
10140 string ends with \n\n, otherwise we leave one line too many (Fixes
10141 something I noticed with the testapp for #77526; the bug itself was
10142 already fixed in the previous checkin)
10144 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
10147 - SelectionColor and SelectionFont methods no longer set absolute
10148 styles. Instead, the keep font or color respectively (This
10149 resolves a long-standing FIXME in the code)
10150 - When flushing RTF text, the insert code now considers text trailing
10151 behind the insertion point (Fixes the bug where when replacing
10152 the selected text via SelectedRTF the remainder of the line behind
10153 the selection would stay on the first insertion line)
10155 - AppendText now updates the selection points after inserting text
10156 - AppendText now ensures that the last tag (sometimes 0-length) of
10157 the document is used for the style information (Fixes part of
10160 - Created new FontDefiniton class to allow describing partial style
10162 - StreamLine() now takes a lines argument, to allow it to decide
10163 whether an encountered zero-length tag is the last in the document
10164 (which must be kept to not loose the font/color contained in it,
10166 - Created Combine() and Split() methods for Marker structs, to
10167 support marker updates due to reformatted documents (soft line
10169 - Implemented Document.CaretTag setter
10170 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
10171 of the last line (Not the cause, but also exposed by bug #77220)
10172 - Added LineTag argument to InsertString method, to allow callers
10173 to force a certain tag to be used (required to force use of the
10174 trailing zero-length tag of a document)
10175 - Now updating markers in Combine(), to avoid stale tag markers
10176 - Added some method descriptions to aid maintenance
10177 - Implemented new FormatText concept, allowing additive/subtractive
10178 formatting by only specifying the components that are to be
10179 changed. This was needed for resolving the RTB.SelectedColor/
10180 RTB.SelectedFont fixmes
10181 - Added Break() support method to allow breaking up linetags (used
10182 for partial formatting)
10183 - Added GenerateTextFormat() method. It is used for partial
10184 formatting and allows to generate a full font/color from given
10185 attributes and an existing tag.
10187 2006-02-26 Jackson Harper <jackson@ximian.com>
10189 * XplatUIX11.cs: Use the correct caption height.
10190 - Translate hittest coordinates to screen coords to match MS.
10191 * XplatUIWin32.cs: When we create MDI windows we need to reset
10192 some of the style flags, so we get a nice blank window, and can
10193 draw all the decorations ourselves.
10194 - Set a clipping rectangle on the non client paint event, the
10195 window manager drawing code needs one.
10196 * Form.cs: The window manager needs to know when the window state
10198 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
10199 don't need to factor in border and title sizes in these
10200 methods. TODO: Remove the args and fix the call points.
10201 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
10203 - Let the driver set the cursors.
10204 - Improve active window handling
10205 - Correct sizes for title bars and buttons.
10206 - Match MS drawing better
10207 * MdiWindowManager.cs: We don't need to handle border style
10208 updates specially anymore.
10209 - Check for scrollbars when windows are done moving
10210 - Handle Active properly.
10211 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
10212 correctly. I am spewing the exception though, so we don't hide the
10215 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
10217 * DataGridViewRowPostPaintEventArgs.cs,
10218 DataGridViewCellPaintingEventArgs.cs,
10219 DataGridViewRowCollection.cs,
10220 DataGridViewRowPrePaintEventArgs.cs,
10221 DataGridViewCell.cs: Clear a few warnings and implement a few
10222 exceptions that should be thrown.
10224 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10226 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
10227 'inheriting' our parent's (non-default) cursor. (Part of
10228 the fix for #77479)
10230 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10232 * XplatUIX11.cs: Fixed cast to make csc happy
10234 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
10236 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
10237 it's for the client area (part of fix for #77479 and needed
10238 for MDI window cursor handling)
10240 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
10241 the appropriate default cursors and also passing the message
10242 up the parent chain
10243 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
10244 for non-client areas
10246 2006-02-15 Jackson Harper <jackson@ximian.com>
10248 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
10249 is a real MDI window
10251 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
10253 * X11DesktopColors.cs: Instead of checking the desktop session
10254 string for "KDE" check if it starts with "KDE"
10256 2006-02-10 Jackson Harper <jackson@ximian.com>
10258 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
10261 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10263 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
10266 - Got rid of the panel. All controls are now directly added to
10268 - Changed to mono coding style
10270 2006-02-10 Jackson Harper <jackson@ximian.com>
10272 * InternalWindowManager.cs: We don't need the set visibility to
10273 false hack anymore now that peter has written beautiful shutdown
10276 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
10278 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
10279 where already explicitly destroyed
10281 2006-02-10 Jackson Harper <jackson@ximian.com>
10283 * MdiClient.cs: Handle the case where windows are too high or to
10284 the left and we need scrollbars.
10286 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
10288 * MimeIcon.cs: Added some icons
10291 - Got rid of the panel. All controls are now directly added to
10293 - Changed to mono coding style
10294 - On Linux "My Computer" and "My Network" will now show some
10295 more usefull information. A new class, MasterMount, gathers
10296 this information from /proc/mount. Updated MWFFileView to make
10297 use of this information
10298 - Fixed a bug that caused FileDialog to crash when
10299 ".recently_used" file had a zero size
10300 - FilterIndex does now what it should
10302 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
10305 2006-02-09 Jackson Harper <jackson@ximian.com>
10307 * ComboBox.cs: Don't touch if null.
10309 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
10311 * Cursor.cs: 64bit safeness fix
10312 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
10314 2006-02-09 Jackson Harper <jackson@ximian.com>
10316 * Form.cs: If a form is made into an MDI form update the styles so
10317 all the props can get set correctly.
10318 - Kill the mdi_container when we dont need it anymore.
10319 * InternalWindowManager.cs: Add missing NOT
10321 2006-02-08 Jackson Harper <jackson@ximian.com>
10323 * InternalWindowManager.cs: Respek clipping when drawing MDi
10326 2006-02-08 Jackson Harper <jackson@ximian.com>
10328 * Hwnd.cs: Add bits to track non client expose events.
10329 * XplatUIX11.cs: Track non client expose events on the hwnd. This
10330 gives us a proper invalid rect and will allow for some nice
10331 optimizations with NC client drawing
10332 - MDI windows are children windows, so move their style handling
10333 into the child window block.
10334 * InternalWindowManager.cs: Remove a state reset that was
10335 getting invoked at the wrong time. Fixes managed windows getting
10336 into a 'stuck' captured state.
10338 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10340 * TextControl.cs (Document.ctor): Now initializing
10341 selection_anchor. Fixes #77493
10343 2006-02-07 Jackson Harper <jackson@ximian.com>
10345 * TrackBar.cs: The increment/decrements were backwards.
10347 2006-02-07 Mike Kestner <mkestner@novell.com>
10349 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
10350 to the instance itself.
10352 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
10354 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
10355 on ulongs and pointers, the size differs between 32bit and 64bit
10358 2006-02-07 Mike Kestner <mkestner@novell.com>
10360 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
10361 for 64 bit platforms to work around a metacity bug.
10363 2006-02-07 Jackson Harper <jackson@ximian.com>
10365 * TrackBar.cs: Process the input keys we need, and hookup to
10366 KeyDown instead of using WndProc, so we get key messages.
10368 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10370 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
10372 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
10373 we need to translate the XdndVersion atoms array before sending it
10375 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
10378 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
10379 number of bits for the property, not the number of bytes. The
10380 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
10381 but would not crash since it specified 8 bits instead of 4 bits)
10382 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
10383 defined as XID -> long in the C headers)
10384 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
10385 references since those are now IntPtr to begin with
10386 - Switched all Atom.XXX 'int' casts to IntPtr casts
10387 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
10388 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
10389 - Added XChangeActivePointerGrab DllImport (for X11DnD)
10391 - Changed 'int' type for Atoms in XEvent structures to IntPtr
10392 - Changed atom in HoverStruct to be IntPtr
10394 - Removed local DllImports, switched code to use those from XplatUIX11
10395 - Removed/fixed casts related to the switch of Atom to be a IntPtr
10397 2006-02-06 Mike Kestner <mkestner@novell.com>
10399 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
10400 method signatures in the import region. There may still be some
10401 lingering struct marshaling issues, as I didn't drill down into those.
10404 2006-02-06 Jackson Harper <jackson@ximian.com>
10406 * ComboBox.cs: Dont manually set the top_item, this is computed
10407 when the scrollbar position is set.
10409 2006-02-06 Mike Kestner <mkestner@novell.com>
10411 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
10412 startup crashes on amd64. There's other fixes needed. All pinvoke
10413 usage of Atom needs to be mapped to IntPtr for example. And there are
10414 likely other int/long issues to be addressed.
10416 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
10418 * FileDialog.cs: One more...
10420 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10422 * FileDialog.cs: Next try
10424 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10426 * FileDialog.cs: First part of fix for #77464
10428 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
10430 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
10431 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
10432 AcceptButton border drawing.
10434 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10436 * Form.cs: Moved positioning of form after auto scaling is applied,
10437 otherwise it would possibly use wrong form size.
10439 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
10441 * Control.cs (RecreateHandle): No need to re-create any child
10442 controls, the child windows will get destroyed automatically by
10443 the windowing system or driver, and re-created when the handle
10444 is being accessed the first time. Fixes #77456
10445 * Form.cs: No longer setting the form to closing if the handle is
10446 being recreated. This seems like the right thing to do, don't
10447 have a bug or testcase for this, though.
10449 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10451 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
10452 controls to avoid unwanted side effects
10454 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10457 - ScaleCore needs to scale the bounds, not the ClientSize of the
10458 control. Fixes #77416.
10459 - DefaultSize is 0,0 for control
10461 - DefaultSize is 100, 20
10462 - SetBoundsCore: Now enforcing the height, no matter if the provided
10463 height is more or less than the preferred one, as long as AutoSize
10465 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
10467 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
10470 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
10471 call unless both performLayout is true *and* we have a pending
10473 - ResumeLayout: MS does not completely nest Suspend and Resume,
10474 they bottom out at 0, fixed our code to match that.
10475 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
10476 SetBoundsCore, we were updating even when we shouldn't. This fixes
10477 swf-anchors mis-anchoring when resizing the app fast and lots.
10478 - UpdateDistances: Now only setting the left and top distance if
10479 we have a parent and are not suspended, this is based on
10480 a suggestion by Don Edvaldson in bug #77355.
10481 - OnVisibleChanged: Fixed logic when to create the control. We may
10482 not create the control if we have no parent or if it's not visible;
10483 switched to using Visible property instead of is_visible field
10484 since the property also considers parent states. This fixes a bug
10485 when starting Paint.Net
10487 2006-02-02 Jackson Harper <jackson@ximian.com>
10489 * Form.cs: If the forms handle hasn't been created yet don't call
10490 into xplatui to make it top most, just set the topmost flag on the
10491 form in CreateParams
10492 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
10494 2006-02-01 Jackson Harper <jackson@ximian.com>
10496 * ScrollableControl.cs: Refactored the Recalculate method a
10497 little, this wasn't handling all the variants of bottom and right
10498 bars needed to be added and added/removed based on their
10499 counterparts being added/removed (which changes the drawable
10500 size). Also we special case client widths and heights of 0 and
10501 don't add the scrollbar for those.
10503 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
10506 - Added method to get AbsoluteGeometry(); currently unused, but might
10507 be used in the future, if we try again to figure out toplevel
10508 coordinates with some more crappy window managers
10509 - Added FrameExtents() method to retrieve the WM set decoration size
10510 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
10511 to deal with at least KDE, FVWM and metacity (Fixes #77092)
10513 - Added whacky_wm tracking var for metacity
10514 - Added logic to have default menu height if the actual menu height
10515 has not yet been calculated (part of fix for #77426)
10516 * Form.cs: Keep track whether client size has been set and re-set
10517 it if a menu is added/removed afterwards (Fixes #77426)
10519 2006-01-31 Jackson Harper <jackson@ximian.com>
10521 * Control.cs: When a new Site is set on the component attempt to
10522 pull the AmbientProperties from it.
10524 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
10526 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
10527 in the background of the owning form. Fixes #77332
10529 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
10531 * MimeIcon.cs: Fix for #77409
10533 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
10535 * XplatUIX11GTK.cs: Initial import
10537 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
10539 * FixedSizeTextBox: fixes class signature
10541 2006-01-30 Jackson Harper <jackson@ximian.com>
10543 * FixedSizeTextBox.cs: New internal class that represents a
10544 textBox that will not be scaled.
10547 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
10550 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
10552 * XplatUIX11.cs: Retrieve default screen number instead of
10553 assuming 0. Attempted fix for #77318
10555 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
10558 - GetWindowPos: When a window is parented by FosterParent, use
10559 the desktop instead of FosterParent as the base to get coordinates
10560 - CreateWindow: Don't make FosterParent the parent window for Popups
10561 if we don't want a taskbar entry, Popups automatically don't get one
10562 * Hwnd.cs: Need to call remove to actually remove the key from the
10565 2006-01-30 Mike Kestner <mkestner@novell.com>
10567 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
10569 2006-01-30 Jackson Harper <jackson@ximian.com>
10572 * TreeNode.cs: Raise events no matter how the treenode is
10573 checked. Patch by Don Edvalson.
10575 2006-01-30 Jackson Harper <jackson@ximian.com>
10577 * TreeNode.cs: Signature fix.
10579 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
10581 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
10583 2006-01-20 Mike Kestner <mkestner@novell.com>
10585 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
10586 event forwarding when menus are active.
10587 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
10588 Most of the patch is pdb's with a little rework.
10590 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10592 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
10593 Removed GetMenuDC and ReleaseMenuDC methods; replaced
10594 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
10595 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
10596 * InternalWindowManager.cs: Added use of PaintEventStart/End to
10597 handling of WM_NCPAINT message, now passing the PaintEventArgs to
10598 the PaintWindowDecorations method
10599 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
10600 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
10601 * MenuAPI.cs: Made tracker window invisible
10603 - Removed GetMenuDC and ReleaseMenuDC methods
10604 - Implemented the client=false path for PaintEventStart and
10607 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10609 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
10610 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
10613 - MaximizeBox, MinimizeBox: Recreate the handle when setting
10615 - CreateParams: Reworked the styles to match MS look'n'feel,
10616 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
10617 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
10619 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10621 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
10622 window is not mapped, since otherwise every form that's being
10623 created is considered minimized, which is wrong.
10624 * Form.cs: Catching the exception and returning our internal value
10627 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
10629 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
10630 SetWindowMinMax() to have means to tell the driver about the minimum,
10631 maximum and maximized state window sizes. (Part of the fix for #76485)
10633 - Implemented tracking of minimum and maximum window size, now calling
10634 new SetWindowMinMax() driver method to tell the driver (Part of the
10636 - Finished handling of WM_GETMINMAXINFO method, now setting all values
10637 (Completes fix for #76485)
10638 - Calling new SetWindowMinMax driver method when the handle for a
10639 form is created, to make sure the driver knows about it even if
10640 the values have been set before the window was created
10641 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
10642 to avoid messing up our anchoring calculations (partial fix
10644 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
10646 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
10647 - Improved GetWindowState() to detect 'Minimized' state on Metacity
10648 (and presumably other freedesktop.org compliant WMs). Left the
10649 assumption unmapped=minimized, needed for SetVisible to work.
10650 - Now setting the window state when creating windows
10651 - Fixed SetVisible to consider/set the window state when mapping
10652 a Form. We cannot set the state before it's mapped, and we cannot
10653 use Form.WindowState once it's mapped (since it would ask the
10654 driver and get 'normal'. Therefore, we grab the state before
10655 mapping, map, and then set state.
10656 - Implmemented SetWindowMinMax method; Metacity does not seem to
10657 honor the ZoomHints, though.
10659 - Removed MINMAXINFO (moved to XplatUIStructs)
10660 - Added SetWindowMinMax stub (on Win32 the only way to set that
10661 information is in response to the WM_GETMINMAXINFO message, which
10662 is handled in Form.cs)
10663 - Added logic to SetVisible to set the proper window state when a
10664 form is made visible (fixes #75720)
10666 2006-01-26 Jackson Harper <jackson@ximian.com>
10668 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
10669 same way we handle them with Invoke.
10671 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
10674 - Added tracking of window state so CreateParams can return
10675 the appropriate style
10676 - Moved setting of WS_CAPTION style in CreateParams to allow
10677 styles without caption
10678 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
10679 control if the TextBox property is accessed. Fixes #77345
10681 - get_Created: now uses is_disposed and is_created to determine
10682 return value (suggested by Jackson)
10683 - CreateHandle: No longer exits if the handle is being recreated
10684 - RecreateHandle: If the handle is not yet created call the
10685 appropriate method to create either control or handle. If the
10686 control is already created CreateHandle will simply exit instead
10687 of just creating the handle
10688 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
10689 now SendMessage WM_DESTROY directly to the control when DestroyWindow
10692 - When DestroyWindow is called, instead of waiting for the
10693 DestroyNotification from X11, we directly post it to the WndProc
10694 and immediately dispose the hwnd object.
10695 Same applies to DestroyChildWindows, and this obsoletes the
10696 expose_pending tracking. Contrary to Win32 behaviour we destroy our
10697 child windows before our own, to avoid X11 errors.
10698 - Removed the direct sending of WM_PAINT on UpdateWindow
10700 - Reworked DoEvents and GetMessage to allow access to internal queue
10701 even when trying non-blocking access to the queue. Fixes #77335.
10702 Based on a patch suggestion by Don Edvalson. The new private
10703 GetMessage can now also be used as a backend for a PeekMessage
10705 * XplatUI.cs: Improved debug output for CreateWindow
10707 2006-01-25 Jackson Harper <jackson@ximian.com>
10709 * Help.cs: Allow param to be null. Patch by Don Edvalson.
10711 2006-01-24 Jackson Harper <jackson@ximian.com>
10713 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
10714 when we have a MaxDropItems lower then the selected index.
10716 2006-01-24 Jackson Harper <jackson@ximian.com>
10718 * Control.cs: Don't allow selection of non visible controls, allow
10719 selection of controls without parents.
10721 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
10723 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
10724 * DataGridDrawingLogic.cs: Add editing row only when is necessary
10726 2006-01-23 Jackson Harper <jackson@ximian.com>
10728 * UpDownBase.cs: Make the textbox handle all the selection and
10729 tabbing. This fixes tabing to updown controls.
10731 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
10733 * TextBoxBase.cs: fixes exception thown the object was null
10735 2006-01-23 Jackson Harper <jackson@ximian.com>
10737 * ButtonBase.cs: Just use the base CreateParams. They set
10738 visibility and enabled correctly.
10741 * MonthCalendar.cs: Lets let the base set as much of the
10742 createparams as possible so we don't have duplicate code all over
10745 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
10747 * ThemeGtk.cs: Added TrackBar and some experimental code to
10748 get double buffering back
10750 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
10752 * DataGrid.cs: Allows row number set internally higher than the last
10753 when creating a new row. Restores the editing functionality.
10755 2006-01-20 Mike Kestner <mkestner@novell.com>
10757 * MimeIcon.cs: delay Image creation until the icons are accessed
10758 instead of creating 190 scaled images on GnomeHandler startup.
10760 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
10762 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
10763 first call base before processing the event. Fixes #77279
10765 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
10767 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
10768 that the stride for the GDI bitmap would match the stride of
10771 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
10773 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
10775 2006-01-19 Jackson Harper <jackson@ximian.com>
10777 * ComboBox.cs: Hookup the text controls keydown event so we get
10778 those when the text control has the focus.
10780 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
10782 * Label.cs: Now using the base events instead of defining new ones;
10783 this allows us to just call the base properties without having to
10784 duplicate all base property logic
10786 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
10788 * Label.cs: A label by default is not a tabstop (Fixes one of our
10789 failing nunit tests)
10791 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
10793 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
10794 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
10796 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
10798 * Cursor.cs: Reimplemented creating cursor bitmaps without using
10799 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
10802 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
10803 constructor creates images that can't be saved. Part of the fix
10805 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
10806 - SetWindowState: Switched ShowWindow flags (part of an upcoming
10807 bug fix for handling window state in forms properly)
10809 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
10811 * ThemeGtk.cs: Simplify ScrollBar drawing
10813 2006-01-18 Jackson Harper <jackson@ximian.com>
10815 * Splitter.cs: Set the default dock style for the splitter control
10816 in the constructor.
10818 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
10820 * ThemeGtk.cs: Corrected StateType and ShadowType for
10823 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
10825 * Control.cs: Make use of Theme.DoubleBufferingSupported
10827 - Added drawing for flat style buttons
10828 - Added ScrollBar drawing
10830 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
10832 * ThemeClearlooks.cs: Removed some unneeded code.
10833 * ThemeGtk.cs: First part of ThemeGtk enhancements.
10835 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
10837 * LinkLabel.cs: We need to update the hover drawing when
10838 leaving the control as well.
10840 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
10842 * DataGrid.cs: Clicking on non empty areas in the columns
10843 area was giving an exception
10845 2006-01-17 Jackson Harper <jackson@ximian.com>
10847 * ThemeWin32Classic.cs:
10848 * ListView.cs: Do not draw/clip the headers when the header style
10851 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
10853 * DataGrid.cs: Fixes 77260
10855 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
10857 * DataGrid.cs: Clicking on a column on a empty grid was giving
10860 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
10862 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
10863 or any keypress will crash the grid.
10865 2006-01-17 Mike Kestner <mkestner@novell.com>
10867 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
10868 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
10869 invisible/previously-visible items.
10872 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
10874 * ThemeClearlooks.cs:
10875 - Added CL_Draw_Button method; now other theme controls that are
10876 not derived from button or do not have a button can draw buttons
10878 - Updated ComboBox drawing
10879 - Beautified RadioButton drawing
10880 - Corrected drawing of bottom and left tabs
10881 - Beautified DateTimePicker and MonthCalendar
10882 - Added CPDrawButton and CPDrawRadioButton
10884 2006-01-16 Jackson Harper <jackson@ximian.com>
10886 * ComboBox.cs: Set the initial value of the scrollbar to the
10887 current index. Reduce the numbers of refreshs and IndexOfs called.
10889 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
10891 * FileDialog.cs: When the file listview is focused hitting the
10892 backspace key moves the fileview to the parent directory
10894 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
10897 - Added RecreateHandle call when changing taskbar visibility to
10898 trigger reparenting in Win32 driver (Fixes #75719)
10899 - If a window has minimize or maximize buttons, it cannot have
10902 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
10903 the toplevel form with FosterParent (A toolwindow not on the
10904 taskbar) (Fixes #75719)
10905 - Made FosterParent a toolwindow
10907 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
10909 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
10911 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
10913 * ToolTip.cs: If SetToolTip is called from a control and the mouse
10914 is currently over that control, make sure that tooltip_window.Text
10917 2006-01-13 Mike Kestner <mkestner@novell.com>
10919 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
10921 2006-01-13 Jackson Harper <jackson@ximian.com>
10923 * TreeView.cs: On MS GetNodeAt never actually factors in the X
10924 value passed. Also redraw the selected node when we recieve
10925 focus, so tabbing between trees works correctly.
10927 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
10929 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
10930 ~/.gconf/%gconf-tree.xml, so use
10931 .gconf/desktop/gnome/interface/%gconf.xml
10933 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
10935 * TextControl.cs: Draw text in gray if control is disabled
10937 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
10939 * TreeView.cs: Draw the focus rectangle outside the highlight, to
10940 make sure it's always visible. Fixes #76680.
10942 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
10944 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
10946 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
10948 * PageSetupDialog.cs: Added.
10949 * PrintDialog.cs: Attributes.
10950 * PrintPreviewControl.cs: Updates.
10951 * PrintPreviewDialog.cs: Updates.
10953 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
10955 * Control.cs: Undid my selection check fix, since it's not needed
10957 - Now considering the presence of hscroll/vscroll when sizing
10958 vscroll/hscroll respectively. Fixed bug #77077
10959 - Added Left/Up/Down/Right to IsInputKey list to prevent
10960 ContainerControl from stealing them. This fixes what I broke
10961 with my last checkin.
10963 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
10965 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
10966 I finally understand how the property can be set without a setter :-)
10968 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
10971 - Switched RunLoop to use static Message.Create to create a
10973 - Added PreProcessMessage call in runloop for keyboard events; this
10974 is part of the fix for #77219, I overlooked this originally in the
10975 MSDN doc for PreProcessMessage
10977 - Removed call to PreProcessMessage from handling of keyboard
10978 messages; it's supposed to be done in the message pump
10979 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
10980 per MSDN documentation.
10981 - IsInputChar: All chars are input chars by default; removed the
10982 parent calling chain, MS does not document that
10983 - PreProcessMessage: If IsInputChar is true, we want to return false
10984 to allow dispatching of the message
10985 - When selecting the next control, now also check that we're not
10986 selecting ourselves again and therefore return a false positive.
10988 - Tried to match return values for IsInputKey and ProcessDialogKey
10989 to what MS returns; moved processing of our special keys outside
10990 ProcessDialogKey since MS does not seem to return true on those.
10991 - Moved code that previously was in ProcessDialogKey into new private
10992 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
10993 - Reworked handling of WM_CHAR to not have to duplicate code from
10994 Control.cs anymore, instead we simply call down to base.
10996 2006-01-12 Jackson Harper <jackson@ximian.com>
10998 * ComboBox.cs: We always need to refresh the text area when
10999 EndUpdate is called. Fixes the combobox in the file dialog.
11000 * Control.cs: Don't create the creator_thread until the controls
11001 handle is created. Also in InvokeRequired we check if the
11002 creator_thread is null. This gives the effect of InvokeRequired
11003 returning true if the controls handle is not created yet, and
11006 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11009 - Added StartLoop() driver method. This is used to allow drivers to
11010 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
11011 loop for a particular thread
11012 - Added EndLoop() driver method. This is called once the message
11013 pump for the thread is shut down
11014 - Added SupportsTransparency method to allow the driver to indicate
11015 opacity support for windows
11017 - Removed TODO attribute, completed AllowTransparency property
11018 - Added documented logic to Opacity
11019 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
11020 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
11021 versions of CompatibleTextRendering
11022 * X11Structs.cs: Added opacity atom to our atom enumeration
11023 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
11024 of a form might be set before it's reparented by the WM, and we need
11025 the opacity value without calling up to Form)
11026 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
11027 SupportsTransparency() driver methods
11028 * Application.cs: Now calling StartLoop and EndLoop driver methods
11030 - Added opacity atom registration
11031 - Added StartLoop()/EndLoop() methods. They're empty right now but
11032 will need to get implemented when we switch to a per-thread queue
11033 - Implemented SupportsTransparency() method
11034 - Implemented SetWindowTransparency() method
11035 - Added support for setting the opacity value when a window is
11036 reparented (since the opacity needs to be set on the WM frame)
11037 * XplatUIOSX.cs, XplatUIWin32.cs:
11038 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
11040 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11042 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
11044 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
11046 * FileDialog.cs: Added ToolTip for MWFFileView
11047 * MimeIcon.cs: Rewrote GnomeHandler.
11048 - Get currently used gnome icon theme from
11049 ($HOME)/.gconf/%gconf-tree.xml
11050 - Make use of inherited icon themes
11051 - Support SVG icon themes like Tango via librsvg
11053 2006-01-12 Miguel de Icaza <miguel@novell.com>
11055 Revert's Jackson's revert which broke 2.0 builds. Fix both
11058 * Application.cs: Move the use_compatible_text_rendering outside
11059 the NET_2_0 define. If we ever need to use the
11060 use_compatible_text_rendering on the individual controls they will
11061 access the variable from the common shared code paths.
11063 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
11066 - Added more granular debug options
11067 - Added method to print both window text and id
11068 - Switched debug output to use new Window() debug method
11069 - Added IsEnabled() driver method
11070 - Added EnableWindow() driver method
11072 - Removed end_modal; no longer needed, new loop handles termination
11073 via 'closing' variable
11074 - If form is modal, setting DialogResult will now initiate loop
11075 termination via 'closing' variable
11076 - Added support for is_enabled/WS_DISABLED to CreateParams
11077 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
11079 - Removed code that's now in RunLoop from ShowDialog()
11080 - Added various documented sanity checks to ShowDialog()
11081 - Added handling of WM_DESTROY message; we set 'closing' on getting
11082 the message to indicate the message pump to terminate
11083 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
11084 send by the Application.ExitThread method. (We send the message
11085 to destroy the window after all other events have been
11086 processed through the queue, instead of destroying the handle
11088 - Moved code from Close() method to WM_CLOSE handler; added logic
11089 to only send close-related events if the form is not displayed
11091 * Splitter.cs (..ctor): Fixed typo in resource name
11093 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
11095 - set_Cursor: Now only setting calling into XplatUI if the handle for
11096 the control is already created; this avoids implict handle creation
11097 or crashes if it's not created
11098 - set_Enabled: Now setting the enabled state via the new driver method
11099 instead of just tracking it
11100 - CreateParams: Added logic to set WS_DISABLED based on enabled state
11101 - CreateControl: Reordered event firing and method calls to more
11102 closely fire events in the order MS does. Now setting the
11103 enabled state in the driver when creating the control.
11104 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
11106 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
11107 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
11108 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
11110 - Added tracking of window enabled state (get_Enabled/set_Enabled)
11111 - Added EnabledHwnd property to easily allow a driver to find the
11112 handle of the first enabled window in the parent chain (this is
11113 used by drivers to pass up input events of disabled windows)
11114 * XplatUIDriver.cs: Added IsEnabled() method
11116 - Removed crude and obsolete exiting tracking variable
11117 - Removed internal ModalRun(); replaced by RunLoop()
11118 - Implemented private CloseForms() method to allow closing all
11119 windows owned by a particular (or all) threads
11120 - Exit() now properly closes all windows without forcing the message
11122 - Removed obsolete InternalExit() method
11123 - Changed Run() methods to use new RunLoop() message pump
11124 - Implemented new RunLoop() method for both modal and non-modal forms
11126 - get_CreateParams: Added setting of WS_DISABLED
11127 - Simplified ShowDialog(); now all the work is done in RunLoop(),
11128 invoked via Form.ShowDialog()
11129 * NativeWindow.cs: We don't remove the window from the collection when
11130 the handle is destroyed; there might still be messages for it in the
11131 queue (mainly the resulting WM_DESTROY); instead it will be removed
11132 when Control calls InvalidateHandle in the WM_DESTROY handler
11134 - CreateWindow: Added logic to handle the WS_DISABLED window style
11135 - EnableWindow: Implemented based on Hwnd.Enabled
11136 - GetMessage: Reset PostQuitState so the method can be called again
11137 - Implemented support for disabled windows (passing messages to the
11138 first enabled parent) in handling all input messages
11139 - Added optimizations for handling Expose events
11140 - Implemeted new driver method IsEnabled()
11141 - Now always resetting paint pending tracking vars when we start paint
11142 - Re-implemented UpdateWindow via just sending a WM_PAINT message
11143 * XplatUIOSX.cs: Added IsEnabled method stub
11144 * XplatUIWin32.cs: Implemented new IsEnabled() method
11146 2006-01-11 Jackson Harper <jackson@ximian.com>
11148 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11149 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
11150 variables a little.
11151 * ColorDialog.cs: Clear out the old form before adding the new
11154 2006-01-11 Jackson Harper <jackson@ximian.com>
11156 * X11Dnd.cs: Make sure to add all the text formats when adding
11157 strings to the data object.
11158 * TreeNodeCollection.cs: When adding to a sorted tree we need to
11159 do some redrawing too. Also change the UpdateNode to an
11160 UpdateBelow so the newly added node gets painted.
11162 2006-01-11 Miguel de Icaza <miguel@novell.com>
11164 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11165 LinkLabel.cs, PropertyGrid.cs: Implement the
11166 UseCompatibleTextRendering property for 2.x
11168 * Application.cs (SetCompatibleTextRenderingDefault): Add.
11170 2006-01-11 Jackson Harper <jackson@ximian.com>
11172 * TreeView.cs: Use the property for setting the selected node so
11173 the correct events get raised.
11174 * TreeNode.cs: Update the tree when the fore/back colours of a
11177 2006-01-10 Jackson Harper <jackson@ximian.com>
11179 * TreeView.cs: Allow setting SelectedNode to null.
11181 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11183 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
11185 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11187 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
11189 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11191 * PrintDialog.cs: Added attributes and set default property values.
11193 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11195 * PrintControllerWithStatusDialog.cs:
11196 Added PrintControllerWithStatusDialog.
11198 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11200 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11201 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
11203 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
11205 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
11207 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
11209 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
11210 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
11212 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11214 * MimeIcon.cs: Added internal class SVGUtil.
11216 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
11218 * FileDialog.cs: Don't crash if there are two files with the
11219 same name but different locations.
11221 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
11223 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
11224 dates across multiple month grids. Used to not highlight entire
11225 month, but does now.
11227 2006-01-06 Jackson Harper <jackson@ximian.com>
11229 * MonthCalendar.cs: Removed DoEvents call to prevent a running
11230 message loop. Change timer intervals to numbers that seem more
11233 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
11235 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
11236 object for location info since screen object is now implemented.
11238 2006-01-05 Jackson Harper <jackson@ximian.com>
11240 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
11241 * AsyncMethodResult.cs: We no longer use a WeakReference for the
11242 AsyncMethodResult, this is because we ALWAYS want the
11243 ManualResetEvent to get set.
11244 * Control.cs: When disposing use an async invoke to call shutdown
11245 code, so that thigns don't block on the finalizer thread. Also
11246 check if we even have a message loop before trying to send
11247 messages, if we don't then don't bother sending messages.
11248 - No more weak references for async methods
11249 * XplatUIDriver.cs: No more weak references for async methods.
11251 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11253 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
11254 returns two FontFamily with the same name
11256 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11258 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
11259 drawing disabled text. Instead using the ColorGrayText color
11261 2006-01-04 Jackson Harper <jackson@ximian.com>
11263 * TreeNode.cs: redraw the node when its image index is changed.
11265 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
11267 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
11268 time I checked there are no others like it.
11270 2006-01-04 Jackson Harper <jackson@ximian.com>
11272 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
11273 this gives the behavoir I was looking for.
11274 * Control.cs: Special case Invoking EventHandlers, this matches MS
11275 and fixes part of bug #76326.
11277 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11279 * ThemeClearlooks.cs, FileDialog.cs:
11280 - Reflect the latest Theme class changes
11281 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
11284 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
11286 * Theme.cs: Cache UI resource images and resize them if needed
11288 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11290 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
11291 is called. This fixes the crash in Nexxia when setting the font
11292 attributes in the chat. [However, RTF needs a look-over to make sure
11293 that all SelectionXXX methods handle the special case that selection
11294 is empty and therefore the change must be applied to all text starting
11295 at the cursor/selection start]
11297 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11299 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11300 XplatUIOSX.cs: Added SendMessage and PostMessage methods
11301 * X11Keyboard.cs: Switched to new way of calling PostMessage
11303 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
11305 * Theme.cs: Added theme interface for images to allow the theme to
11306 control what images are used for things like FileDialog, MessageBox
11308 * MessageBox.cs: Now uses the new Theme icon/image interfaces
11310 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
11313 - Removed some dead code
11314 - Opening a recently used file does work now
11315 - Small UI enhancements
11318 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11320 * FileDialog.cs: Forgot too add __MonoCS__
11322 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
11324 * FileDialog.cs: We are able to read recently used files now let's
11325 go on and write them.
11327 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
11329 * FileDialog.cs: Breathe some life into "last open"/"recently used"
11331 * MimeIcon.cs: Do a check for the top level media type also
11333 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11335 * ThemeClearlooks.cs:
11336 - Added CPDrawStringDisabled
11337 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
11338 some chars if the text doesn't fit into text_rect
11339 - DrawListViewItem: If View = View.LargeIcon center the image;
11340 rewrote the drawing of ListViewItem.Text if View =
11343 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
11345 * MimeIcon.cs: Use default KDE icon theme if there is no
11346 "48x48" directory for the current icon theme, fixes #77114
11347 * Mime.cs: Disable not working and actually not used code.
11348 * ThemeWin32Classic.cs:
11349 - Replace "new SolidBrush" in GetControlBackBrush and
11350 GetControlForeBrush with ResPool.GetSolidBrush
11351 - Changed DrawListViewItem from private to protected virtual
11353 - Added form.MaximizeBox = true
11354 - Don't throw an exception if there is a broken symbolic link
11356 2005-12-23 Jackson Harper <jackson@ximian.com>
11358 * TabControl.cs: Give the panels focus, keyboard navigation is
11359 fixed so this works correctly now.
11360 - We need these key events also.
11361 * ToolBar.cs: Remove some of the poor mans double buffering.
11363 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
11365 * ComboBox.cs: The internal TextBox now returns the focus.
11367 2005-12-23 Jackson Harper <jackson@ximian.com>
11369 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
11371 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11373 * Control.cs: Removed debug code
11374 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
11377 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11379 * Control.cs: When creating the control, update the Z-order after
11380 all it's children are created, too. (Fixes nexxia not showing
11383 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
11385 * Control.cs: Do not update the anchoring distances if layout is
11386 suspended, instead do it once layout is resumed
11388 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11391 - After many hours of debugging, for both Jackson and
11392 myself, it turns out that it helps to set the parent of a control
11393 if you want to actually see it onscreen. In the spirit of that
11394 discovery, we're now setting the parent of the control and
11395 it's children when the control's handle is created. This fix
11396 will make Lutz Roeder's Reflector run happily.
11397 - now just creating the handle instead of the whole control when
11398 getting a graphics context for the control.
11400 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11402 * ScrollableControl.cs: When calculating the canvas, don't consider
11403 the scrollbar widths. Instead, predict if horizontal scrollbar
11404 will affect canvas when deciding on vertical display and vice versa.
11406 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
11408 * RichTextBox.cs: Set default RTF font for documents that don't
11409 have a font table (Fixes #77076)
11411 2005-12-22 Jackson Harper <jackson@ximian.com>
11413 * TextBoxBase.cs: It's difficult to do, but you can have an empty
11414 clipboard. This prevents a NullRef in that case.
11415 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
11416 clipboard. PRIMARY is for the currently selected text only. (We
11417 should implement PRIMARY at some point.
11419 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11421 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
11422 a Unicode function with a structure that was defined in Ansi way.
11425 2005-12-21 Jackson Harper <jackson@ximian.com>
11427 * StatusBar.cs: Statusbar handles its fore/back colours on it's
11428 on. Because thats how it rolls. (and this avoids it using ambient
11430 * ThemeWin32Classic.cs: Use the proper back color for filling.
11431 * Menu.cs: Use the system menu bar color for drawing menu
11432 bars. Using the window back color will bring ambient colours into
11435 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
11437 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
11438 Bitmaps were created and not disposed.
11440 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11442 * Control.cs (CreateControl): Don't do anything if the control is
11443 already created, otherwise we'd fire the OnCreated event more than
11446 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11448 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
11449 will always match. Instead return -1. Fixes #76464.
11451 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11453 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
11454 neither the beginning nor the end of the line (Fixes bug #76479)
11456 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
11459 - ControlNativeWindow.ControlFromHandle(): Now handling situation
11460 where handle is invalid
11461 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
11462 instead of slower linear search
11463 * NativeWindow.cs: Don't remove the window from the hashtable until
11464 after the driver has destroyed it (since the driver might use
11465 Control.FromHandle to lookup the control object
11466 * Hwnd.cs: Added DestroyPending property to track if a window is
11467 already destroyed as far as the driver is concerned and only hasn't
11468 yet notified the control
11470 - Activate(): Check if the window is still valid before using the
11472 - Implemented DestroyChildWindow() method to mark child windows as
11473 destroyed when a window is destroyed. This prevents situations
11474 where we might call an X method based on queued events for a
11475 window that already has been destroyed but we haven't yet pulled
11476 the destroy method from the queue.
11477 - Added a call to the new DestroyChildWindow() method to the drivers
11478 DestroyWindow code. Also now marking the destroyed window itself
11481 2005-12-20 Jackson Harper <jackson@ximian.com>
11484 * StatusBarPanel.cs: Don't calculate panel sizes on draw
11485 anymore. Just do them when needed, also track the rects of panels
11486 so that we can optimize refreshing more in the future.
11488 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
11490 * ColorDialog.cs: Fixed focus drawing in small color controls
11492 2005-12-19 Jackson Harper <jackson@ximian.com>
11494 * InternalWindowManager.cs:
11495 * MdiWindowManager.cs: Cleanup some coordinate system changes so
11496 moving windows works properly.
11498 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
11501 - Removed call to InitLayout() from SetBoundsCore(); doc says
11502 it's only called when a control is added to a container
11503 - Split InitLayout logic, moved to separate UpdateDistances() method
11504 since we need to perform those calculations more often than just
11505 when adding the control to a container. (Needed to fix #77022)
11506 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
11507 - Reduced the OnBindingContextChanged events count, don't send them
11508 unless the control is created, we still aren't totally matching
11509 MS, but I can't quite figure out some of their rules
11511 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11513 * ThemeClearlooks.cs: Corrected distance between ProgressBar
11516 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11518 * ThemeClearlooks.cs:
11519 - Updated ProgressBar drawing
11520 - Corrected drawing of ScrollBars and scroll buttons
11521 - Some temporary fixes for minor pixel artefacts
11523 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
11526 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
11527 cause events to be sent in the same order as MS does.
11528 - Added ChangeParent() method to trigger various OnXXXChanged events
11529 that need to be fired when a parent changes (This is a reworking
11530 of the patch from r54254, with the X11 errors fixed)
11531 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
11532 since on MS we get OnLayoutChanged events when calling Clear()
11533 - Changed Enabled property to consider parent state as well, if a
11534 parent is not enabled, the control will not be either
11535 - Changed Parent property to simply call Controls.Add() since that
11536 now does all the work required, this way we avoid code duplication
11537 - Threw in a few OnBindingsContextChanged calls to try and match
11538 when MS sends them. We seem to send a few too many, though.
11539 - Added call to CreateControl when adding the control to a parent.
11540 We were never calling CreateControl. Still needs some work, in
11541 some places we treat HandleCreated and ControlCreated as equal,
11543 - Removed obsolete commented out code from UpdateZOrder()
11545 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
11547 * ThemeClearlooks.cs: Updated TrackBar drawing.
11549 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
11551 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
11553 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
11555 * FileDialog.cs: Add the Help button and the open readonly
11556 checkbox only if needed
11558 2005-12-16 Jackson Harper <jackson@ximian.com>
11560 * Control.cs: Make sure we have an active menu before trying to
11561 process commands on it. Prevents menu-less forms from crashing
11562 when Alt is pressed.
11563 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
11565 * RichTextBox.cs: Expand statement to help out gmcs and fix the
11568 2005-12-16 Jackson Harper <jackson@ximian.com>
11570 * InternalWindowManager.cs: Don't translate tool windows screen
11571 coordinates. This fixes windows 'bouncing' around when being moved.
11573 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
11576 - MaxLength now treats 2^31-1 equal to unlimited length (this is
11577 not quite MS compatible, MS uses that number only for single line
11578 and 2^32-1 for multi-line, but I figure it won't hurt keeping
11580 - Now enforcing the MaxLength limit when entering characters
11581 - Added argument to internal Paste() method to track if it's called
11582 from programatically or via keyboard, since keyboard driven pastes
11583 need to enforce max-length
11584 - Added logic to Paste to only paste as many chars as MaxLength
11586 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
11588 - Added Length property to return number of characters in document
11589 - Added private CharCount property which only tracks actual chars
11590 in the document (no linefeeds) and fires event when CharCount
11592 - Added tracking of character count to all methods that alter it
11593 - Added LengthChanged event to allow applications to subscribe
11594 to any changes to the document
11596 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
11599 - Removed local password_char field (moved to TextBoxBase)
11600 - Now setting the document's password var when password is
11603 - Added password_char field (needed here so MultiLine can
11605 - Added logic to MultiLine property setter to set the document's
11606 variable when password display is allowed
11607 - Removed debug code and made some debug code conditional
11609 - Added RecalculatePasswordLine() method to handle special password
11611 - Added PasswordChar property, also added related tracking vars
11612 - Draw() method now uses local text var for grabbing text to draw,
11613 this var is set to line.text unless we're doing password display,
11614 then it is set to the pre-generated all-password-chars line
11615 - Added calling RecalculatePasswordLine() method for password lines
11617 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
11620 - Added Reparented property to allow tracking of Window Manager
11621 reparenting actions (which affect X/Y calculations of toplevel
11623 - Made ToString() print window handles in hex
11625 - AddConfigureNotify(): Now uses reparented state off Hwnd to
11626 determine if X/Y needs offsetting
11627 - AddConfigureNotify(): Fixed offset calculations
11628 - Now adds ReparentNotify messages into the queue
11629 - Now processes ReparentNotify messages and causes a
11630 WM_WINDOWPOSCHANGED message to be sent upstream if a window
11631 is reparented (as most likely it's X/Y coordinates are changed
11634 2005-12-14 Jackson Harper <jackson@ximian.com>
11636 * XplatUIX11.cs: Tool windows still need to respek focus.
11638 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
11640 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
11641 have a working release
11643 2005-12-13 Jackson Harper <jackson@ximian.com>
11645 * Form.cs: Update styles after setting the border style regardless
11646 of whether or not the window is using a window manager.
11648 2005-12-13 Jackson Harper <jackson@ximian.com>
11650 * Form.cs: We now hook into an internal window manager instead of just an
11651 MDI subsystem, this is so we can have properly behaving tool windows.
11652 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
11653 * InternalWindowManager.cs: New internal class that acts as a
11654 window manager for tool windows and as a base for mdi windows.
11655 * MdiWindowManager.cs: New class that acts as a window manager for
11658 2005-12-12 Jackson Harper <jackson@ximian.com>
11660 * Control.cs: Updates so we match behavoir for for implicit
11661 controls. Fixes explosions in MDI.
11663 2005-12-12 Jackson Harper <jackson@ximian.com>
11665 * Control.cs: Implement Invalidate (Region).
11667 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
11670 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
11671 the same events as MS does. MS fires events for each property
11672 except, for unknown reasons, Cursor, when the control is reparented.
11673 I can't seem to totally match add/remove since MS also fires some
11674 VisibleChanged events, which makes no sense. Consolidated the
11675 parenting code into a separate method so it can be called from
11676 both Add and Remove. set_Parent no longer needs any special logic
11677 as it calls the parent's add method which implicitly fires
11679 - Removed some obsolete code and debug output
11680 - Enabled state is inherited from parents, if this is enabled
11682 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
11684 * Form.cs: Removed commented out code
11686 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
11689 - Added internal version of Invoke, with additional argument
11690 indicating if we're calling it from a Dispose() handler. That
11691 way we can avoid BeginInvoke throwing an exception if we're
11692 calling for an already destroyed window.
11693 - Added a dispose argument to BeginInvokeInternal, and made the
11694 check if a valid window handle chain exists conditional on
11695 it not being a dispose call
11696 - Removed code in DestroyHandle to destroy our children. Since we
11697 now handle the WM_DESTROY message we will catch all our children
11699 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
11701 - Added a field to track the application context of the form.
11702 - No need to set closing variable as response to WM_CLOSE, instead
11703 we destroy the window. We also call PostQuitMessage if the form
11704 has an application context (which makes it the main app form,
11705 which, when closed terminates the app)
11707 - Dropped Exit() method, it's naming was confusing
11708 - Added PostQuitMessage() which causes GetMessage to return false
11709 once the message queue is empty
11710 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
11712 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
11713 no longer a valid XplatUI method, but left it in since it's used
11714 internally. Added empty PostQuitMessage() method.
11715 * MenuAPI.cs: Replaced call to Exit() with call to
11716 PostQuitMessage, even though this is probably no longer needed.
11717 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
11718 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
11720 - Replaced call to XplatUI.Exit() with PostQuitMessage()
11721 - Removed old debug code that would call XplatUI for exception
11722 display, enabled standard exception handling (Still not enabled
11723 though, until NativeWindow's ExternalExceptionHandler define
11726 - Added internal method to allow control to update NativeWindow
11727 after a window has been destroyed
11728 - Added handling of already destroyed windows when calling i
11730 - Added removal of handle from list on ReleaseHandle
11732 - Dropped GetMessageResult var and related code
11733 - Added PostQuitState to field to track if PostQuitMessage has been
11735 - Dropped Exit() method
11736 - Added PostQuitMessage() method
11737 - GetMessage now will return false if PostQuitState is set and no
11738 more messages are in the queue.
11739 - Expose handler will no longer generate WM_PAINT messages if we are
11740 in PostQuitState since it's very likely any windows have already
11741 been destroyed, and since Hwnd won't get updated until we have
11742 processed the DestroyNotify we'd be causing X errors.
11744 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
11746 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
11747 Thanks to Mike for pointing out the err of my ways.
11749 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
11751 * Control.cs(PreProcessMessage): Moved menu handling back, but
11752 after all other key handling, to match MS (who handles Menu in
11754 * Menu.cs (WndProc): Removed my brainfart
11756 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
11758 * Control.cs(PreProcessMessage): Removed special menu handling
11759 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
11761 2005-12-07 Mike Kestner <mkestner@novell.com>
11763 * Control.cs : special case SYSKEYUP so that we can adjust keynav
11764 state according in tracker.
11765 * Menu.cs : promote tracker field to base class and provide a tracker
11766 lookup capability. Add/Remove shortcuts dynamically if the top menu
11767 has a tracker. Unparent items that are removed from the collection.
11768 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
11769 * Theme*.cs: add always_show_hotkeys field to support configurability
11770 of mnemonic display. win32 doesn't show mnemonics until Alt is
11773 2005-12-07 Jackson Harper <jackson@ximian.com>
11775 * MdiChildContext.cs: Use Control.ResetCursor.
11776 * Control.cs: ResetCursor needs to set the property so that the
11777 correct XplatUI call gets made.
11779 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
11781 * Control.cs: More fixes to make our key events match MS. We
11782 were not setting the modifier state on KeyData, and we were
11783 not generating any events when Alt was pressed with a key
11784 since handling of WM_SYSxxx was missing for the OnKey methods.
11786 2005-12-07 Jackson Harper <jackson@ximian.com>
11788 * MdiChildContext.cs: reenable the sizing code.
11789 - When the mouse leaves a window reset its cursor.
11791 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
11793 * ThemeClearlooks.cs: Reflect latest Hwnd changes
11795 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
11797 * Hwnd.cs: Now using the theme 3d bordersize to calculate
11798 widths of Fixed3D borders
11800 2005-12-07 Jackson Harper <jackson@ximian.com>
11802 * MdiClient.cs: Fix warnings. Earn Mike's love.
11804 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
11806 * ThemeClearlooks.cs:
11807 - Adjusted mouse over button color
11808 - Added first parts of CheckBox drawing
11809 - Added correct color for selected text background
11810 - Fixed ComboBox drawing
11811 - Added CPDrawBorder3D and CPDrawBorder
11813 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
11815 * XplatUIX11.cs: Added call to XBell for AudibleAlert
11817 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
11819 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11820 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
11821 alert users via sound. We could add an enum arg with different
11822 types of alerts in the future
11824 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
11826 * Control.cs: Fix behaviour problems pointed out by Mike
11828 2005-12-05 Mike Kestner <mkestner@novell.com>
11830 * StatusBarPanel.cs: add Invalidate method and hook it into all the
11831 prop setters. Calls parent.Refresh for now, but could be maybe be
11832 optimized with an internal method on StatusBar at some point.
11835 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
11837 * RichTextBox.cs: Implemented get_SelectionColor
11839 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
11841 * ThemeClearlooks.cs:
11842 - Removed dead code
11843 - Draw black button border only if button is Form.AcceptButton
11844 - Draw correct button color for pressed RadioButton if the mouse
11845 has entered the button
11846 - Updated ProgressBar drawing!
11847 - Updated CPDrawSizeGrip drawing
11848 - Updated StatusBarPanel drawing
11850 2005-12-05 Mike Kestner <mkestner@novell.com>
11852 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
11853 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
11855 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
11857 * ThemeClearlooks.cs: Initial check-in, activate with
11858 export MONO_THEME=clearlooks
11859 * ThemeEngine.cs: Added ThemeClearlooks
11861 2005-12-03 Mike Kestner <mkestner@novell.com>
11863 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
11866 2005-12-02 Jackson Harper <jackson@ximian.com>
11868 * Form.cs: If the child form has no menu the default main menu is
11869 used as the active menu.
11871 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
11873 * ListBox.cs: Check if any items exist before trying to resolve
11874 coordinates into items
11876 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
11878 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
11879 as the second color for the background hatch
11881 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
11883 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
11884 * RichTextBox.cs: FormatText position arguments are 1-based, now making
11885 sure that what we pass to FormatText is always 1-based. Fixes #76885
11887 2005-11-29 Miguel de Icaza <miguel@novell.com>
11889 * NumericUpDown.cs (EndInit): When we are done initializing,
11890 reflect any updates on the UI.
11892 2005-12-02 Jackson Harper <jackson@ximian.com>
11894 * ImplicitHScrollBar.cs:
11895 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
11896 their container controls.
11897 * TreeView.cs: Use the new implicit scrollbars.
11899 2005-12-02 Jackson Harper <jackson@ximian.com>
11901 * TreeView.cs: Make top_node internal so the TreeNodeCollections
11903 * TreeNodeCollection.cs: If we remove the topnode we need to
11904 update topnode to the next node in line.
11905 - When clearing nodes go through the same process as removing
11906 them, so they get depareneted and checked if they are top node.
11908 2005-12-01 Jackson Harper <jackson@ximian.com>
11910 * TreeView.cs: When imagelists are used the image area is
11911 selectable as well as the text.
11912 - If there are no selected nodes select the first one.
11913 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
11914 so don't do it more then we need to.
11916 2005-12-01 Jackson Harper <jackson@ximian.com>
11918 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
11919 that arrows can be scaled.
11921 2005-12-01 Jackson Harper <jackson@ximian.com>
11923 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
11924 fail. Patch by Dieter Bremes
11926 2005-11-30 Jackson Harper <jackson@ximian.com>
11928 * Form.cs: Property is 2.0 only
11929 * PrintDialog.cs: Signature fix.
11931 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
11934 - No longer artificially moves text 2 pixels down (now that we have
11935 borders this is no longer needed)
11936 - Added calcs for left, hanging and right indent
11938 2005-11-23 Mike Kestner <mkestner@novell.com>
11940 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
11942 2005-11-30 Jackson Harper <jackson@ximian.com>
11944 * MdiChildContext.cs: Set the cloned menus forms, as these don't
11945 get cloned as part of CloneMenu ().
11946 * Menu.cs: Make sure the parent of the items get set correctly
11947 when they are added. And the owners are notified of the changes.
11948 * Form.cs: Create an ActiveMenu property, so that when MDI is used
11949 we can change the menu being displayed/handled by the form without
11950 changing the menu assosciated with the form.
11951 - Don't let Mdi children draw/handle menus.
11953 2005-11-30 Jackson Harper <jackson@ximian.com>
11955 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
11956 a MenuChanged event. Just to make the API a little more
11959 * MenuItem.cs: Use the new OnMenuChanged
11960 * MdiChildContext.cs: Handle menu merging.
11961 * Form.cs: Implement MergedMenu.
11963 2005-11-30 Jackson Harper <jackson@ximian.com>
11965 * Menu.cs: We were misusing Add. Add goes behind the specified
11966 index according to the docs, and does not replace the specified
11967 index. So I added an Insert method.
11969 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
11971 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
11972 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
11974 * RichTextBox.cs: Added calls to base for DnD events
11976 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
11979 - Fixed drag-selection related crash; style fixes
11980 - Implemented undo class
11981 o Implemented method to capture document state for specified
11982 range in document tree
11983 o Implemented method to restore captured document state
11984 o Implemented cursor tracking
11985 o Implemented basic undo stack
11986 - Added undo cursor tracking to methods altering cursor location
11987 - Added undo tracking to selection deletion (still missing
11988 other text-altering hookups)
11990 - Added SelectionLength property
11991 - Implemented CanPaste()
11992 - Implemented Paste()
11993 - Added missing protected methods
11994 - Fixed RTF->Document conversion; now uses font index 0 and color
11995 index 0 as the default font for the parsed text
11996 - Fixed RTF<->Document font size translation
11997 - Fixed RTF generation, now properly handles cross-tag boundaries
11998 for single line selection
11999 - No longer always appends blank line to generated RTF
12001 - Added missing attributes
12002 - Hooked up undo-related methods
12004 - Implemented Copy()
12005 - Implemented Paste()
12006 - Implemented Cut()
12007 - Fixed caret mis-behaviour on backspace across line-boundaries
12009 2005-11-29 Jackson Harper <jackson@ximian.com>
12011 * MdiClient.cs: Add a method for activating mdi children. Very
12012 basic right now. I imagine someday it might need more girth.
12013 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
12014 children windows names are added to the menu item.
12015 * ThemeWin32Classic.cs: Draw the arrow if the item is an
12016 mdilist. This happens regardless of whether or not there are any
12017 mdi windows to see in the list, and according to my tests happens
12018 before the items are even added. Also happens if there isn't even
12019 an mdi client to get windows from.
12021 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
12023 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
12024 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
12026 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
12028 * DataGridTableStyle.cs:
12029 - Create always the styles for the missing columns even if they are
12030 provided by the user (not default table style)
12033 - Fixes SetDataBinding (always re-attach source)
12034 - Fixes SetNewDataSource (only clear styles if they are not for
12036 - Expands OnTableStylesCollectionChanged to handle style refresh
12037 and remove properly
12039 2005-11-29 Jackson Harper <jackson@ximian.com>
12041 * FileDialog.cs: Implement missing bits, remove some dead
12043 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
12044 creation of the panel so that the options set on the dialog are
12045 seen when the panel is created.
12046 * TreeView.cs: raise a click when items are clicked.
12048 2005-11-29 Jackson Harper <jackson@ximian.com>
12050 * MdiClient.cs: Pass some signature methods through to base.
12052 2005-11-28 Jackson Harper <jackson@ximian.com>
12054 * ListView.cs: Raise the click event when items are clicked.
12056 2005-11-28 Jackson Harper <jackson@ximian.com>
12058 * MdiClient.cs: Make this algorithm even more beautiful. And fix
12061 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
12063 * ThemeNice.cs: - Removed 1 pixel bitmaps
12064 - Use SmoothingMode.AntiAlias where it makes sense
12065 (ScrollButton arrow for example)
12066 - Enhanced Button focus drawing
12067 - Fixed ComboBox drawing (no artefacts anymore, focus
12068 rectangle is back again, reduced size of ComboButton, etc.)
12069 - Fixed RadioButton focus drawing for Appearence.Button
12070 - Slight ScrollButton redesign
12071 - Some LinearGradientBrush size fixes
12072 - GroupBoxes have now rounded edges
12073 - Fixed StatusBar drawing
12075 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
12077 * ThemeNice.cs: - Remove dead code
12078 - use correct background colors for menus, etc.
12079 - Fake pixel drawing with 1 pixel bitmaps
12081 2005-11-24 Jackson Harper <jackson@ximian.com>
12083 * MdiClient.cs: Size the scrollbars when resizing the window.
12084 - Resize the maximized windows when the client is resized
12085 * Form.cs: Make the child context available
12087 2005-11-23 Jackson Harper <jackson@ximian.com>
12089 * MdiChildContext.cs: Don't size windows if they are maximized.
12091 2005-11-23 Mike Kestner <mkestner@novell.com>
12093 * ContextMenu.cs: use MenuTracker.
12094 * Control.cs: remove menu handle usage.
12095 * Form.cs: remove menu handle usage.
12096 * Hwnd.cs: remove menu handle usage.
12097 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
12098 motion and clicks to the new Tracker handlers.
12099 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
12101 * MenuAPI.cs: refactored to combine popup and menubar event handling.
12102 Killed the MENU and MENUITEM data types and associated collections
12103 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
12104 MenuTracker class that exposes the leftovers from the old MenuAPI
12105 static methods. Restructured Capture handling so that only one grab is
12106 done for the entire menu hierarchy instead of handing off grabs to
12107 submenus. Tracker now has an invisible control to Capture when active.
12108 * MenuItem.cs: add sizing accessors, kill Create
12110 * Theme.cs: remove menu handle and MENU(ITEM) usage.
12111 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
12112 MENU(ITEM). remove menu handle usage, use Menu directly.
12113 * XplatUIDriver.cs: remove menu handle usage.
12114 * XplatUIOSX.cs: remove menu handle usage.
12115 * XplatUIWin32.cs: remove menu handle usage.
12116 * XplatUIX11.cs: remove menu handle usage.
12118 2005-11-22 Jackson Harper <jackson@ximian.com>
12120 * Hwnd.cs: Don't compute the menu size for
12121 DefaultClientRectangle.
12122 - Reenable menu sizes being computed for GetClienRectangle.
12123 * Form.cs: Remove comment of trechery
12125 2005-11-22 Jackson Harper <jackson@ximian.com>
12127 * Hwnd.cs: The adjustments for the menu bar are made when it is
12128 attached to the form.
12130 2005-11-19 Jackson Harper <jackson@ximian.com>
12132 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
12133 (just like on windows).
12135 2005-11-19 Jackson Harper <jackson@ximian.com>
12137 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
12138 use real buttons anymore because they are in non client area. The
12139 one TODO here is that I need to somehow invalidate a section of
12140 the non client area.
12142 2005-11-18 Jackson Harper <jackson@ximian.com>
12144 * Control.cs: Put the enum check back in now that MDI doesnt have
12145 to use this to set border styles.
12146 * Form.cs: Only set mdi child windows borders if the handle has
12148 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
12149 this directly on to the driver.
12150 - Get the move start position before adjusting for the titlebar
12151 height, this fixes the windows "skipping" when they are first
12154 2005-11-18 Jackson Harper <jackson@ximian.com>
12156 * XplatUIX11.cs: Just compute the mdi borders separately as they
12157 don't totally match up with normal form borders.
12159 2005-11-18 Jackson Harper <jackson@ximian.com>
12161 * Control.cs: Set WS_ styles for borders, so that the driver does
12162 not have to retrieve the control instance to figure out what kind
12163 of borders it should have.
12164 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
12165 driver can know its an mdi child easily.
12166 * XplatUIX11.cs: Get the border styles and whether the window is
12167 MDI from the Styles and ExStyles params instead of having to get a
12168 control. This prevents a chicken and egg problem.
12170 2005-11-18 Jackson Harper <jackson@ximian.com>
12172 * MdiClient.cs: Fix typo so scrollbars show up correctly.
12174 2005-11-18 Jackson Harper <jackson@ximian.com>
12176 * MdiClient.cs: Calculate when to add and remove scrollbars
12178 * MdiChildContext.cs: Adjust the y position to take the titlebar
12180 - No height for FormBorderStyle.None
12182 2005-11-18 Jackson Harper <jackson@ximian.com>
12184 * Control.cs: Allow non enum values to be used for
12185 InternalBorderStyle. MDI does this to set a special border style.
12186 - New utility methods for converting points to/from client coords
12187 - Add the newly created control to the Controls collection before
12188 updating its style. This way UpdateStyle can walk the control
12189 heirarchy to find the control if needed.
12190 so I don't need to create a new Point object all the time.
12191 * Form.cs: Let MDI windows handle their border styles.
12192 - Set styles on MDI windows so the correct title style is derived.
12193 * MdiChildContext.cs: Move all the painting and window handling
12194 into the non client area.
12195 - Use correct sizing and put correct buttons on frames based on
12196 the FormBorderStyle.
12197 - Notify the mdi client about scrolling
12198 - Need to handle the buttons ourselves now, because they are all
12199 in non client areas and we can't add controls there.
12200 * MdiClient.cs: Halfway to scrolling, this implementation is
12201 somewhat broken though, we need to check to make sure other
12202 windows aren't causing scrolling before removing the bars. Also
12203 the bars need to be drawn on top, maybe I can switch implicit
12204 controls to be on top.
12205 * Hwnd.cs: caption_height and tool_caption_height are now
12206 properties of an hwnd, this way they can be set by the driver
12207 based on the type of window they are. In X11 the window manager
12208 handles the decorations so caption_height is zero unless its an
12210 - Add 3 pixel borders for MDI windows (0xFFFF).
12211 - Get rid of some code duplication, have DefaultClientRectanle
12212 just call GetClientRectangle.
12213 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
12215 - Set border styles differently for mdi windows.
12216 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
12219 2005-11-15 Mike Kestner <mkestner@novell.com>
12221 * Menu.cs: when adding an item to the collection, if item is already
12222 parented, remove it from the parent.
12224 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
12226 * X11DesktopColors.cs: Added KDE support
12228 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
12231 - Clipboard methods now can translate Rtf format
12232 - No longer removes clipboard contents whenever a new format is added
12233 to allow placing multiple formats on the clipboard
12234 * Clipboard.cs: Clipboard now supports getting a IDataObject and
12235 will place all formats contained in it onto the clipboard. Also
12236 now cleans the clipboard before placing a new object onto it
12238 - Implemented set_Rtf
12239 - Implemented set_SelectedRtf
12240 - Created InsertRTFFromStream() method to allow single code base
12241 for all properties and methods that insert RTF into document
12242 - Removed debug output
12244 - Fixed Delete(int) to fix up line numbers
12245 - Fixed ReplaceSelection to combine start and end line
12246 - Fixed serious DeleteChars bug that would leave the document tree
12248 - Improved DumpTree with several logic checks to detect broken
12250 - Removed debug lines
12251 - Fixed Caret.WordForward/WordBack moving code, now always also
12252 updates caret.tag (fixes crash when word-selecting across tag
12253 boundaries via keyboard)
12254 - Added Insert() method for inserting multiline text into documents
12255 - Fixed DeleteChars() calculation errors that would cause a broken
12256 tag chain with multiple tag lines
12257 - DeleteChars() no longer crashes on multi-tag lines if not all tags
12258 - Split() no longer moves caret if split is at caret location
12259 - ReplaceSelection() now updates the cursor and re-displays it
12260 - ReplaceSelection() now uses new Insert() method to avoid code
12262 - FormatText() can now handle formatting partial lines
12264 - Append now uses new TextControl.Insert() method (this avoids
12266 - Implemented Ctrl-X (Cut) (
12267 - Implemented Ctrl-C (Copy)
12268 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
12269 regeneration when pasting text; roundtripping Copy&Paste within
12270 edit control still fails due to some calculation bugs in GenerateRTF)
12271 - The Delete key will now remove the current selection if it is visible
12272 * TextBox.cs: Removed debug lines
12273 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
12274 driver to be initialized and can't therefore be done via a static ctor)
12276 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
12278 * TextControl.cs: Added backend code for finding char arrays and strings
12280 - Added mouse wheel scroll support
12281 - Added support for VScroll and HScroll events
12283 - Implemented all seven Find() variants
12284 - Implemented GetCharFromPosition()
12285 - Implemented GetCharIndexFromPosition()
12286 - Implemented GetLineFromIndex()
12287 - Implemented GetPositionFromCharIndex();
12288 - Implemented SaveFile for PlainText and UnicodeText
12289 - Fixed set_Font, now setting a new font applies that font to
12291 - Implemented generic Document to RTF converter
12292 - Implemented SaveFile for RichText format (still missing unicode
12293 conversion for non-ansi chars)
12294 - Implemented get_Rtf
12295 - Implemented get_SelectedRtf
12297 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
12299 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
12300 to allow any captures to be released before triggering OnClick. This
12301 way a click handler may capture the mouse without interference.
12302 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
12303 This way we send them even though X may not allow a grab (if the window
12304 isn't visible, for example)
12306 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
12308 * DataGridViewRowEventArgs.cs: DataGridView implementation
12309 * DataGridViewElement.cs: DataGridView implementation
12310 * DataGridViewComboBoxCell.cs: DataGridView implementation
12311 * DataGridViewDataErrorContexts.cs: DataGridView implementation
12312 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
12313 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
12314 * ImageLayout.cs: DataGridView implementation
12315 * DataGridViewComboBoxColumn.cs: DataGridView implementation
12316 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
12317 * DataGridViewSelectionMode.cs: DataGridView implementation
12318 * IDataGridViewEditingControl.cs: DataGridView implementation
12319 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
12320 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
12321 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
12322 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
12323 * DataGridViewColumnSortMode.cs: DataGridView implementation
12324 * DataGridView.cs: DataGridView implementation
12325 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
12326 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
12327 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
12328 * Padding.cs: DataGridView implementation
12329 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
12330 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
12331 * DataGridViewRowEventHandler.cs: DataGridView implementation
12332 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
12333 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
12334 * DataGridViewButtonCell.cs: DataGridView implementation
12335 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
12336 * DataGridViewEditMode.cs: DataGridView implementation
12337 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
12338 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
12339 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
12340 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
12341 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
12342 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
12343 * DataGridViewCellEventHandler.cs: DataGridView implementation
12344 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
12345 * DataGridViewCellStyleConverter.cs: DataGridView implementation
12346 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
12347 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
12348 * DataGridViewColumnEventArgs.cs: DataGridView implementation
12349 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
12350 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
12351 * QuestionEventArgs.cs: DataGridView implementation
12352 * IDataGridViewEditingCell.cs: DataGridView implementation
12353 * DataGridViewTriState.cs: DataGridView implementation
12354 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
12355 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
12356 * DataGridViewColumnCollection.cs: DataGridView implementation
12357 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
12358 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
12359 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
12360 * DataGridViewColumn.cs: DataGridView implementation
12361 * DataGridViewCellBorderStyle.cs: DataGridView implementation
12362 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
12363 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
12364 * DataGridViewRow.cs: DataGridView implementation
12365 * DataGridViewImageCellLayout.cs: DataGridView implementation
12366 * DataGridViewImageCell.cs: DataGridView implementation
12367 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
12368 * DataGridViewCheckBoxCell.cs: DataGridView implementation
12369 * DataGridViewHeaderCell.cs: DataGridView implementation
12370 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
12371 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
12372 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
12373 * DataGridViewTextBoxColumn.cs: DataGridView implementation
12374 * QuestionEventHandler.cs: DataGridView implementation
12375 * DataGridViewCellStyleScopes.cs: DataGridView implementation
12376 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
12377 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
12378 * DataGridViewCell.cs: DataGridView implementation
12379 * DataGridViewCellEventArgs.cs: DataGridView implementation
12380 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
12381 * DataGridViewCellStyle.cs: DataGridView implementation
12382 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
12383 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
12384 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
12385 * TextFormatFlags.cs: DataGridView implementation
12386 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
12387 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
12388 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
12389 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
12390 * DataGridViewButtonColumn.cs: DataGridView implementation
12391 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
12392 * HandledMouseEventArgs.cs: DataGridView implementation
12393 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
12394 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
12395 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
12396 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
12397 * DataGridViewRowCollection.cs: DataGridView implementation
12398 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
12399 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
12400 * DataGridViewHitTestType.cs: DataGridView implementation
12401 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
12402 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
12403 * DataGridViewColumnEventHandler.cs: DataGridView implementation
12404 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
12405 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
12406 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
12407 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
12408 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
12409 * DataGridViewContentAlignment.cs: DataGridView implementation
12410 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
12411 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
12412 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
12413 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
12414 * DataGridViewPaintParts.cs: DataGridView implementation
12415 * DataGridViewCellCollection.cs: DataGridView implementation
12416 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
12417 * DataGridViewImageColumn.cs: DataGridView implementation
12418 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
12419 * DataGridViewElementStates.cs: DataGridView implementation
12420 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
12421 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
12422 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
12423 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
12424 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
12425 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
12426 * DataGridViewRowHeaderCell.cs: DataGridView implementation
12427 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
12428 * DataGridViewTextBoxCell.cs: DataGridView implementation
12429 * DataGridViewBand.cs: DataGridView implementation
12430 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
12431 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
12432 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
12433 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
12434 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
12435 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
12436 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
12437 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
12438 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
12439 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
12440 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
12442 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
12444 * ThemeWin32Classic.cs:
12445 - Draw the outside focus rectangle around buttons
12446 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
12447 doesn't use end caps for every dash of a line anymore. This
12448 workaround ignores the forecolor.
12450 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
12452 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
12455 2005-11-07 Jackson Harper <jackson@ximian.com>
12457 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
12459 2005-11-07 Jackson Harper <jackson@ximian.com>
12461 * ScrollableControl.cs: Calculate the maximum and change vars
12462 (more) correctly so that scrollbars appear as a sensible size.
12464 2005-11-04 Jackson Harper <jackson@ximian.com>
12466 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
12468 * TreeView.cs: When the tree is sorted null out the top_node so
12469 that it is recalculated.
12470 - Use dotted lines instead of dashed lines to match MS better.
12472 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
12475 - Implements key search for items. Useful when browsing files with FileDialog
12476 - When changing view mode or when clear the items reset scrollbar positions
12478 2005-11-04 Jackson Harper <jackson@ximian.com>
12480 * CurrencyManager.cs: Implement the MetaDataChanged event, the
12481 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
12482 as to what the method may do as there is no real way of creating a
12483 derived CurrencyManager and calling the method.
12485 2005-11-03 Jackson Harper <jackson@ximian.com>
12487 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
12488 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
12489 method which seems to just be used internally to refresh the tabs.
12491 2005-11-03 Jackson Harper <jackson@ximian.com>
12493 * TabControl.cs: Implement the remove method. Fix some broken
12496 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12498 * DateTimePicker.cs:
12499 - Added missing DateTimePickerAccessibleObject class
12500 - Added missing events
12501 - Added OnFontChanged method
12502 * Form.cs: Added missing attributes
12503 * TreeView.cs: Added missing attributes
12505 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12507 * GridItemCollection.cs: Fix signatures
12509 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12511 * XplatUI.cs: Updated build rev/date
12512 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
12513 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
12514 * Application.cs: Trigger context-specific ExitThread events
12516 2005-11-03 Jackson Harper <jackson@ximian.com>
12520 * GridTableStylesCollection.cs:
12525 * MonthCalendar.cs: Signature fixes
12527 2005-11-03 Jackson Harper <jackson@ximian.com>
12529 * TreeNodeCollection.cs: Remove should not be virtual.
12530 * TreeView.cs: Implement the last of the missing methods.
12532 2005-11-03 Jackson Harper <jackson@ximian.com>
12534 * TreeNodeConverter.cs: Implement to get off my class-status back.
12536 2005-11-03 Jackson Harper <jackson@ximian.com>
12538 * TreeView.cs: Hookup the bits for drag and drop.
12539 * TreeNode.cs: Don't cache the tree_view or index anymore, now
12540 that nodes can be moved from tree to tree easily this just causes
12541 all sorts of problems.
12542 * TreeNodeCollection: Don't need to give treenodes an index and
12543 treeview anymore when they are added, these are computed on the
12544 fly. Also make sure to remove a node before its added.
12546 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
12549 - Added CaretSelection enum
12550 - Added comparison methods to Marker struct, makes selection code
12552 - Added SelectionStart and SelectionEnd as 'moveable' location for
12553 the CaretDirection enum and handler
12554 - Added selection_prev variable to track optimized invalidation for
12555 word and line selection
12556 - Added SelectionVisible property (returns true if there is a valid
12558 - Switched CaretHasFocus to only display the caret if there is no
12560 - Avoiding StringBuilder.ToString to retrieve a single char, instead
12561 using the direct character index; should be much faster
12562 - Added various conditional debug statements
12563 - Fixed invalidation calculation for selection ranges
12564 - Added ExpandSelection() method to support word and line selection
12565 - Switched SetSelectionToCaret to use new Marker compare overloads
12566 - Added central IsWordSeparator() method to determine word
12567 separators/whitespace and FindWordSeparator() to streamline common
12568 usage of IsWordSeparator()
12570 - Removed unneeded grabbed variable, it was just mirroring
12572 - No longer firing OnTextChanged event when Text setter is called,
12573 since the base will fire the event for us
12574 - Added handling of Ctrl-Up/Down selection
12575 - Added handling of Shift-Cursorkey selection
12576 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
12578 - Added handling of Shift and Ctrl-Shift-Home/End selection
12579 - Removed some debug output
12580 - Added handling for single/double/tripple-click to place caret/
12581 select word/select line respectively (Fixes bug #76031)
12582 - Added support for drag expansion of word/line selection
12583 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
12586 2005-11-02 Jackson Harper <jackson@ximian.com>
12588 * X11Dnd.cs: If the drag is going to and from a MWF window just
12589 copy the data instead of sending it out through the X Selection
12592 2005-11-02 Jackson Harper <jackson@ximian.com>
12595 * XplatUIX11.cs: When in a drag we don't want motion notify
12596 messages to get passed on to the other controls. This prevents
12597 mouse move messages from showing up in the drag source.
12599 2005-11-02 Jackson Harper <jackson@ximian.com>
12601 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
12602 the correct button is release to end a drag.
12603 * XplatUIX11.cs: Make the button state internal so the drag system
12604 can access it. Dragging needs to know about all button releases,
12605 not just left button.
12607 2005-11-02 Miguel de Icaza <miguel@novell.com>
12609 * Form.cs (Icon): If the icon is null, reset the icon to the
12612 * Cursor.cs: When writing the AND-mask bitmap do not include the
12613 number of colors, but hardcode those to two (black and white),
12614 fixes the loading of color cursors (Paint Dot Net).
12616 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
12617 turn off autoscaling.
12619 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
12621 2005-11-02 Jackson Harper <jackson@ximian.com>
12623 * X11Dnd.cs: Make sure to send a status message if the pointer
12624 enters a control that can not accept a drop, otherwise the cursor
12625 isn't updated correctly. Also tried to compress the lines of code
12628 2005-11-02 Jackson Harper <jackson@ximian.com>
12630 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
12631 set actions correctly. This isn't perfect as XDND and win32 have
12632 some differences on how you allow actions. I'll clear this up by
12633 adding a path for drag from MWF to MWF windows.
12634 * XplatUIX11.cs: Hook into the dnd system.
12636 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
12638 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
12639 previously shown but they are no longer need it. Very obvious when
12640 browsing files with FileDialog.
12642 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
12644 * Control.cs: We always need to call OnPaintBackground. We pretty much
12645 ignore AllPaintingInWmPaint and always do the painting there, whether
12646 it's set or not, since we always ignore the WM_ERASEBKGND message
12647 (which we don't generate on X11). This fixes #76616.
12648 * Panel.cs: Removed unneeded background painting. This happens properly
12649 in Control.cs already
12651 2005-10-31 Mike Kestner <mkestner@novell.com>
12653 * Menu.cs: Add items to collection before setting their index.
12654 * MenuItem.cs : add range checking with ArgumentException like MS.
12657 2005-10-31 Jackson Harper <jackson@ximian.com>
12659 * ListBox.cs: Invalidate if the area is visible at all not just
12660 contained in the visible rect. Fixes unselection of semi visible
12663 2005-10-31 Jackson Harper <jackson@ximian.com>
12665 * Control.cs: Consistently name the dnd methods. Make them
12666 internal so we can override them to match some MS behavoir
12668 * Win32DnD.cs: Use the new consistent names.
12670 2005-10-31 Jackson Harper <jackson@ximian.com>
12672 * TreeView.cs: Don't draw the selected node when we lose focus.
12674 2005-10-31 Jackson Harper <jackson@ximian.com>
12676 * X11Dnd.cs: We still need to reset the state even though a full
12677 reset isn't being done, otherwise status's still get sent all over
12680 2005-10-31 Jackson Harper <jackson@ximian.com>
12682 * Control.cs: Make the dnd_aware flag internal so the dnd
12683 subsystem can check it. Catch exceptions thrown in dnd handlers to
12685 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
12686 * X11Dnd.cs: Handle null data in the converters. Set the XDND
12687 version when sending a XdndEnter. Use the control/hwnd dnd_aware
12688 flags to reduce the number of dnd enters/status's sent.
12690 2005-10-31 Jackson Harper <jackson@ximian.com>
12692 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
12694 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
12696 * PictureBox.cs: Fixes 76512
12698 2005-10-28 Jackson Harper <jackson@ximian.com>
12700 * X11Dnd.cs: Early implementation to support winforms being a drag
12701 source for data on X11. Also restructured the converters so they
12702 can go both ways now.
12703 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
12705 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
12707 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
12710 2005-10-27 Jackson Harper <jackson@ximian.com>
12712 * TreeNode.cs: Implement serialization so my DnD examples will work.
12714 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
12716 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
12717 TreeView.cs: Don't dispose objects that are not owned.
12719 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
12721 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
12722 should retrieve the current cursor and report that, but XplatUI
12723 doesn't (yet) have an interface for that (and I'm not sure I even
12725 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
12726 until any message loop processing is done (and the WM_SETCURSOR
12727 replaces the cursor to the proper one)
12729 - Fixed override behaviour, we can't set the cursor globally on X11,
12730 just for our windows.
12731 - Invalidating the System.Drawing X11 display handle when we are
12733 * Control.cs: Fix to make csc happy
12735 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
12738 - get_Text: Add last line (without trailing newline) to returned
12739 value (Fixes 76212)
12740 - get_TextLength: Count last line in returned length
12741 - ToString: Call Text property instead of duplicating code
12743 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
12745 * ImageList.cs: Dispose ImageAttributes objects.
12747 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
12749 * ImageList.cs: Use attribute constructors with less arguments where
12752 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
12754 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
12755 Use typeof instead of strings when assembly is referenced. Added
12756 some more comments.
12758 2005-10-21 Jackson Harper <jackson@ximian.com>
12760 * ListView.cs: Raise a double click event. Also tried to somewhat
12761 fix when the selectedindexchanged event is raised. Its still
12764 2005-10-21 Jackson Harper <jackson@ximian.com>
12766 * TreeView.cs: New method to invalidate the plus minus area of a
12767 node without invalidating the whole node (maybe this can be used
12768 in some more places).
12769 * TreeNodeCollection.cs: When adding to an empty node we need to
12770 invalidate its plus minus area so the little block shows up.
12772 2005-10-21 Jackson Harper <jackson@ximian.com>
12774 * TreeView.cs: Make sure that when we invalidate a node the bounds
12775 are big enough to cover the selected box and the focus
12776 rectangle. Use a different colour for the lines connecting nodes
12777 so they show up with all themes.
12779 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
12781 * NativeWindow.cs: Don't call anything that could call into the driver,
12782 we might be on a different thread.
12784 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
12786 * Control.cs(Dispose): Since Dispose might run on a different thread,
12787 make sure that we call methods that could call into the driver via
12788 invoke, to avoid thread issues
12790 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
12792 * XplatUI.cs: Removed finalizer
12793 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
12794 not allowing to be called on the finalizer thread.
12796 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
12799 - Reverted r51889 and r51891.
12800 - Added ImageListItem class that stores unmodified image items and image
12801 properties required to create list images until handle is created.
12802 - Added AddItem and moved image creation logic to AddItemInternal.
12803 - Added CreateHandle method that creates images based on unmodified items.
12804 - Added DestroyHandle that changes state to store unmodified items.
12805 - Add and AddStrip methods no more create handle.
12806 - ReduceColorDepth has no return value.
12807 - Dispose destroys handle.
12808 - Modified other methods to reflect the above changes.
12809 - Implemented key support.
12810 - Added profile 2.0 members and attributes.
12811 - Added private Reset and ShouldSerialize methods that provide the same
12812 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
12813 them as they are private.
12814 - Added some more comments about implementation details.
12816 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
12818 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
12820 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
12822 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
12824 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
12826 * DataGridDrawingLogic.cs: Fixes column hit calcultation
12827 * DataGridColumnStyle.cs: Remove debug message
12829 2005-10-20 Jackson Harper <jackson@ximian.com>
12831 * TreeView.cs: We can always get input keys regardless of whether
12832 or not editing is enabled. They are used for navigation.
12834 2005-10-20 Jackson Harper <jackson@ximian.com>
12836 * TreeNode.cs: Use the viewport rect for determining if a node
12837 needs to be moved for visibility. Don't use Begin/End edit. This
12838 calls a full refresh when its done.
12839 * TreeView.cs: New SetBottom works correctly. Make the viewport
12840 rect property internal so the treenodes can see it. When clicking
12841 on a node we need to ensure that its visible because it might just
12842 be partly visible when clicked.
12844 2005-10-20 Jackson Harper <jackson@ximian.com>
12846 * TreeNodeCollection.cs: Remove debug code.
12848 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
12850 * Datagrid.cs: Implements column sorting in Datagrid
12851 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
12853 2005-10-20 Jackson Harper <jackson@ximian.com>
12855 * TreeNodeCollection.cs: Remove items properly. Update the correct
12856 area after removing them.
12858 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
12860 * Datagrid.cs: Should not call base.OnPaintBackground
12862 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
12864 * XplatUIX11.cs (GetMessage):
12865 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
12866 window instead of client window
12867 - Now properly calculates NC_xBUTTONUP message coordinates
12868 - ScreenToMenu now properly calculates it's coordinates of whole
12869 window, since menus are in the whole window, not in the client
12871 - Added WholeToScreen coordinate translation method
12873 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
12875 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
12876 want to return a message, loop back to the beginning of the function
12877 and grab the next real message to process instead.
12879 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
12881 * Splitter.cs: Properly set limits if no filler control is used
12883 2005-10-19 Jackson Harper <jackson@ximian.com>
12885 * ColorDialog.cs: Don't show the help button if it is not enabled
12886 instead of disabling it (this is what MS does). Don't create the
12887 panel until the dialog is run, otherwise the vars (such as
12888 ShowHelp) are not set yet.
12890 2005-10-19 Jackson Harper <jackson@ximian.com>
12892 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
12893 are reduced when adding nodes.
12895 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
12898 2005-10-19 Jackson Harper <jackson@ximian.com>
12900 * FolderBrowserDialog.cs: End editing our treeview so the window
12901 actually gets refreshed.
12903 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
12905 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
12906 Obsoleted handling of WM_ERASEBKGND, now always draws our background
12909 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
12911 * MenuAPI.cs: Returns after Hidding window
12912 * XplatUIX11.cs: Added TODO found while debugging menu issues
12914 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
12916 * XplatUIX11.cs: Do not re-map the whole window when it's size
12917 becomes non-zero unless it's supposed to be actually visible
12919 2005-10-18 Jackson Harper <jackson@ximian.com>
12921 * TreeView.cs: We don't need to keep a count anymore.
12922 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
12923 use the Grow method.
12925 2005-10-18 Jackson Harper <jackson@ximian.com>
12927 * TreeNodeCollection.cs: Insert is not supported on arrays, so
12928 implement it manually here.
12930 2005-10-18 Jackson Harper <jackson@ximian.com>
12932 * ImageList.cs: Dont kill the list when the colour depth is
12933 changed, just change the colour depth of all the images.
12934 - Same goes for setting the image size. Just resize them all
12935 instead of killing the list softly.
12937 2005-10-18 Jackson Harper <jackson@ximian.com>
12939 * Control.cs: Don't invalidate empty rectangles.
12941 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
12944 - Adds checked item to the Checked/Item lists (where empty before)
12945 - Do not add items to the Selected lists if they are already present
12947 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
12948 - When deleting items make sure that we delete them for the Selected
12949 and Checked list also.
12951 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
12953 * Label.cs: Dispose objects no longer used
12954 * ThemeWin32Classic.cs: Dispose objects no longer used
12956 2005-10-18 Jackson Harper <jackson@ximian.com>
12958 * TabControl.cs: Don't refresh the whole control when the tabs are
12959 scrolled, we just need to refresh the tab area.
12961 2005-10-17 Jackson Harper <jackson@ximian.com>
12963 * XplatUIX11.cs: Compress code a little bit. Only calculate the
12964 after handle when we need it.
12966 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
12968 * Control.cs: When the parent size changes, recalculate anchor
12969 positions. Partial fix for #76462
12971 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
12973 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
12974 drawn. Fixes #76462
12976 2005-10-17 Jackson Harper <jackson@ximian.com>
12978 * MonthCalendar.cs: Don't create the numeric up down until our
12979 handle is created. Otherwise our handle is created in the
12980 constructor and we don't know if we are a WS_CHILD or WS_POPUP
12983 2005-10-17 Jackson Harper <jackson@ximian.com>
12985 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
12988 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
12989 * TreeNode.cs : small logical fix (was using local var instead of field)
12991 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
12993 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
12995 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
12997 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
12999 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
13002 - Re-implemented anchoring code. My first version was really broken.
13003 This fixes bug #76033. Unlike the previous implementation we will
13004 no longer have round errors since all numbers are calculated from
13005 scratch every time. Removed various anchor-related obsolete vars.
13006 - InitLayout no longer causes layout event firing and layout to be
13009 2005-10-16 Jackson Harper <jackson@ximian.com>
13011 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
13014 2005-10-16 Jackson Harper <jackson@ximian.com>
13016 * TabControl.cs: Remove debug code.
13018 2005-10-16 Jackson Harper <jackson@ximian.com>
13020 * XEventQueue.cs: Increase the default queue size (very simple
13021 apps needed to grow the queue).
13022 * Hwnd.cs: No finalizer so we don't need to suppress
13023 finalization. Compute the invalid area manually so a new rectangle
13024 does not newto be created.
13025 * ScrollableControl.cs: Don't set any params (otherwise visibility
13026 isn't set correctly).
13027 * MdiChildContext.cs: New constructor takes the mdi parent so it
13028 doesn't have to be computed and avoids a crash on windows. Draw
13029 the window icon properly, and allow the text to be seen.
13030 * Form.cs: Use new MdiChildContext constructor. Make sure the
13031 child context isn't null in wndproc.
13032 * TabControl.cs: Don't set focus, this is muddling keyboard
13033 behavoir. Expand the tab rows when a window size increase will
13034 allow extra tabs to be seen. Don't allow tabs smaller than the
13035 width of a window to be scrolled out of view.
13037 * TreeView.cs: Use measure string to calculate a nodes width, the
13038 width is cached and only updated when the text or the font is
13039 changed. Don't check for expand/collapse clicks on the first level
13040 nodes if root lines are disabled.
13042 2005-10-16 Ritvik Mayank <mritvik@novell.com>
13044 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
13046 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13048 * DataGridBoolColumn.cs: fixes warning
13050 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
13052 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
13053 to match more to match more precisely the MS Net behavior
13055 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13057 * Hwnd.cs: Added field to track if window is mapped
13059 - Unmap windows if they become 0-size, re-map when
13060 they are >0 again; fixes #76035
13061 - Re-set our error handler after initializing X11Desktop
13062 to override any error handlers Gtk or whatever was called
13065 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13067 * CheckedListBox.cs: Removed unused vars
13068 * ListView.cs: Fixed signatures
13069 * RichTextBox.cs: Removed unused vars
13070 * TextBoxBase.cs: Removed unused vars
13071 * XplatUIWin32.cs: Removed unused vars
13072 * XplatUIX11.cs: Removed unused vars
13073 * XplatUI.cs: Updated version and date to latest published
13075 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13077 * Cursor.cs: Added private .ctor to work around a bug in
13078 resourceset (Thanks to Geoff Norton for the help on this)
13079 * SplitterEventArgs.cs: Made fields accessible so we don't
13080 waste boatloads of objects and can reuse the same one
13082 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
13083 any captions and borders when generating screen coordinates
13084 * Splitter.cs: Reimplemented control, now fully complete, uses
13085 rubberband drawing, supports and obeys all properties, has
13088 2005-10-13 Miguel de Icaza <miguel@novell.com>
13090 * Form.cs (Form): Setup default values for autoscale and
13091 autoscale_base_size; Make these instance variables, not static
13094 (OnLoad): on the first load, adjust the size of the form.
13096 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
13098 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
13099 width argument to DrawReversibleRectangle()
13100 * XplatUIWin32.cs, XplatUIX11.cs:
13101 - Implemented width for DrawReversibleRectangle()
13102 - Added logic to DrawReversibleRectangle that recognizes a zero
13103 width or height and only draws a line in that situation
13105 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13107 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
13108 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
13109 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
13110 method (it uses our FosterParent window to get a graphics context)
13112 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
13114 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
13115 and SetWindowBackground methods
13117 - Setting proper ControlStyles
13118 - We no longer call XplatUI.SetWindowBackground and XplatUI.
13119 EraseWindowBackground, instead we draw the window background
13120 ourselves in PaintControlBackground. This behaviour is
13121 required to match MS, where, when OnPaintBackground is not
13122 called, the background is not drawn.
13123 - Removed unneeded Refresh() in set_Text
13124 * Hwnd.cs: Dropped the ErasePending support. No longer needed
13126 - Created DeriveStyles method to translate from CreateParams to
13127 FormBorderStyle and TitleStyle, also handles BorderStyle (which
13128 matches FormBorderStyle enum values)
13129 - Consolidated SetHwndStyles and CalculateWindowRect border/title
13130 style calculations into single DeriveStyles method
13131 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
13132 from redrawing the whole window on any resize or expose.
13133 - Fixed CreateWindow usage of SetWindowValuemask. Before not
13134 all styles were applied to our whole/client window appropriately
13135 - Removed EraseWindowBackground() and SetWindowBackground() methods
13136 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
13137 no longer clear/redraw the background through X
13138 - Removed handling of erase_pending bit, we have no use for it (or
13141 - Removed generation and handling of WM_ERASEBKGND message
13142 - Removed EraseWindowBackground() and SetWindowBackground() methods
13143 - Removed handling of hwnd.ErasePending flag
13145 - Removed EraseWindowBackground() and SetWindowBackground() methods
13146 - We no longer call EraseWindowBackground on PaintEventStart, we
13147 ignore the fErase flag, erasing is handled in Control in the
13149 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
13150 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
13151 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
13152 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
13153 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
13154 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
13155 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
13157 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
13159 * PropertyGrids.cs: Get sub properties
13160 * PropertyGridView.cs: Fix drawing code
13162 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13164 * ListBox.cs: Fixes 76383
13166 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13168 * DataGridTextBoxColumn.cs: Sets location and size before attachment
13169 * ThemeWin32Classic.cs: Fixes border drawing and calculations
13170 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
13173 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13175 * ComboBox.cs: Fixes border drawing
13177 2005-10-10 Miguel de Icaza <miguel@novell.com>
13179 * MimeIcon.cs: Ignore errors if the file can not be read.
13181 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
13183 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
13184 - Fixed border calculations
13185 - Fixed horizontal scrolling in single column listboxes
13186 - Fixed drawing issues
13188 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
13190 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
13191 FormBorderStyle enum
13192 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
13193 code to determine FormBorderStyles from CreateParams
13195 - Fixed bug where we'd set the wrong window styles if we were
13196 not creating an MDI window
13197 - Added call to XplatUI.SetBorderStyle when form borders are set
13198 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
13200 - Removed obsolete edge style
13201 - Switched from BorderStyle to FormBorderStyle
13203 2005-10-10 Jackson Harper <jackson@ximian.com>
13205 * Form.cs: Use the property to get the window handle instead of
13206 accessing it directly. Prevents a null reference exception.
13208 2005-10-10 Jackson Harper <jackson@ximian.com>
13210 * TreeView.cs: Don't adjust the rect given to DrawString now that
13211 our libgdiplus draws correctly.
13213 2005-10-08 Jackson Harper <jackson@ximian.com>
13215 * TreeView.cs: Don't try to find the clicked on node if there are
13216 no nodes in the tree.
13218 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13224 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
13226 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
13227 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
13229 Use ResPool for brushes and dispose System.Drawing objects that
13230 are not used anymore.
13232 2005-10-07 Jackson Harper <jackson@ximian.com>
13234 * MdiChildContext.cs: Use the new borders instead of drawing them
13237 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13239 * Calling UpdateBounds after changing the window's BorderStyle
13240 since the style can change the ClientSize
13242 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13244 * Control.cs: Made PaintControlBackground virtual
13245 * Panel.cs: Overriding PaintControlBackground instead of using paint
13246 event; paint event method was interfering with 'real' users of the
13249 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
13251 * ThemeWin32Classic.cs: remove border drawing since it is handled
13252 by the base control class now and was causing double border drawing.
13254 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13256 * Panel.cs: Redraw our background on paint. Not a pretty solution,
13257 but it does seem to match MS behaviour. This fixes bug #75324
13259 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13261 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
13262 somewhat hackish looking
13264 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13267 - We now accept Enter even if AcceptEnter is false, if the containing
13268 form does not have an AcceptButton configured (fixes bug #76355)
13269 - Calculations are now fixed to no longer use Width/Height, but
13270 ClientSize.Width/Height, since we now support borders (this was
13271 a result of fixing borders and therefore bug #76166)
13272 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
13273 true (fixes bug #76354)
13275 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13278 - Defaulting BorderStyle and setting it in XplatUI when our window
13280 - Added enum check to InternalBorderStyle setter
13282 - Added drawing of window borders
13283 - Now properly calculates WM decorations offset for toplevel
13284 windows (fixes bug #74763)
13286 - Implemented BorderStyles for windows (we're letting win32 draw
13288 - Fixed the signature for SetWindowLong
13289 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
13290 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
13292 * UpDownBase.cs: Remove drawing of borders, this is handled by
13293 the driver, outside the client area
13294 * ListView.cs: Removed bogus border calculations. The control should
13295 be oblivious to borders, since those are not part of the client
13297 * X11DesktopColors.cs: Commented out (currently) unneeded variables
13298 * ThemeWin32Classic.cs: Removed border calculations from ListView
13301 2005-10-06 Jackson Harper <jackson@ximian.com>
13303 * MdiChildContext.cs: Clear out the old virtual position remove
13304 all the unneeded calls to CreateGraphics.
13306 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13308 * TextControl.cs: Use proper color for highlighted text; fixes #76350
13310 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13313 - Added loading and setting of our new default icon
13314 - Only set icon if window is already created
13316 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
13319 - Do not explicitly set the foreground and background colors, to
13320 allow inheriting from parents (fixes #76302)
13321 - Use Control's InternalBorderStyle property to deal with borders
13323 2005-10-06 Jackson Harper <jackson@ximian.com>
13325 * MdiChildContext.cs: Use the new xplatui function to draw a
13328 2005-10-06 Jackson Harper <jackson@ximian.com>
13330 * Form.cs: Add the parent before creating the child context cause
13331 we need the parent when setting up the child.
13333 2005-10-06 Jackson Harper <jackson@ximian.com>
13335 * FolderBrowserDialog.cs: redo the tree population code so a
13336 second thread isn't used. Should be a lot faster and more stable
13339 2005-10-05 Jackson Harper <jackson@ximian.com>
13341 * TreeView.cs: There are no expand/collapse boxes if the node has
13344 2005-10-05 Jackson Harper <jackson@ximian.com>
13346 * X11DesktopColors.cs: Get menu colours for the gtk theme.
13348 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
13350 * FileDialog.cs: Fix InitialDirectory
13352 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13355 - Fixes changing between styles
13356 - Fixes simple mode
13357 - Fixes last item crashing when navigating with keyboard
13359 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
13361 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
13363 2005-10-05 Jackson Harper <jackson@ximian.com>
13365 * TreeView.cs: If updating the root node do a full refresh.
13366 * TreeNode.cs: The root node should be expanded by default. Also
13367 added a utility prop to tell if we are the root node.
13368 * TreeNodeCollection.cs: Only refresh if the node we are being
13369 added to is expanded. Also added a comment on a potential
13372 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
13374 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
13375 in dispose method. Fixes #76330
13377 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
13379 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
13381 - Implements vertical and horizontal scrolling using XplatUI
13382 - Fixes keyboard navagation
13383 - Fixes EnsureVisible
13385 - Handles and draws focus properly
13388 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
13390 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
13391 Create handle. NET_2_0: Destroy handle when value is null.
13393 2005-10-03 Jackson Harper <jackson@ximian.com>
13395 * ScrollBar.cs: My last scrollbar patch was broken. This is a
13396 revert and a new patch to prevent the thumb from refreshing so
13399 2005-10-02 Jackson Harper <jackson@ximian.com>
13401 * ScrollBar.cs: Don't update position if it hasn't actually
13402 changed. This occurs when you hold down the increment/decrement
13403 buttons and the thumb gets to the max/min.
13405 2005-10-01 Jackson Harper <jackson@ximian.com>
13408 * MdiChildContext.cs:
13409 * MdiClient.cs: Implement ActiveMdiChild in Form.
13411 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
13413 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
13415 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
13417 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
13420 2005-09-30 Jackson Harper <jackson@ximian.com>
13422 * ListBox.cs: Don't do a full refresh unless some data has
13425 2005-09-30 Jackson Harper <jackson@ximian.com>
13427 * TreeView.cs: Make sure that the checkboxes size is factored in
13428 even when not visible.
13430 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13432 * FileDialog.cs: Fix Jordi's build break
13434 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13437 - Use standard the Windows colours for the combobox as espected
13438 - Dispose objects that use resouces when no longer need them
13440 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13442 * X11DesktopColors.cs: Initial incomplete implementation
13443 * XplatUIX11.cs: Added call to initialize X11DesktopColors
13445 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
13448 - Switched Theme color names to match the names defined in
13449 System.Drawing.KnownColors. Life's hard enough, no need to make
13451 - Added setters to all theme color properties so themes can set
13452 their color schemes. The setters also propagate the color changes
13453 to System.Drawing.KnownColors via reflection
13454 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
13455 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
13456 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
13457 use the new, more logical theme color names
13458 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
13460 * ThemeWin32Classic.cs:
13461 - Removed code to set the old classic Windows colors. Instead it
13462 now relies on the colors returned by System.Drawing.KnownColors
13463 which will be either modern static colors (Unix) or colors
13464 read from the user's configuration (Win32)
13465 - Updated to use the new, more logical theme color names
13466 - Switched DataGrid drawing code to use only Theme colors instead of
13467 a mix of System.Drawing.KnownColors and Theme colors
13468 - DrawFrameControl(): Removed code that fills the button area, the
13469 fill would overwrite any previous fill done by a control. This
13471 - Added DrawReversibleRectangle() stub
13472 * ScrollableControl.cs: Set visible state to false when scrollbars
13473 are removed (pdn fix)
13474 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
13475 DrawReversibleRectangle() method to allow drawing primitive
13477 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
13479 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13481 * ImageList.cs: Add(Icon): Create handle.
13483 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
13486 * ThemeWin32Classic.cs:
13487 - Fixes detail mode
13489 - Issues with drawing
13491 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13493 * ImageList.cs: Moved RecreateHandle back to ImageList as event
13494 source has to be the ImageList.
13496 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13498 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
13500 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13502 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
13504 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13506 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
13508 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
13509 * GridItem.cs: Fixed TODOs
13510 * GridItemCollection.cs: Added ICollection interface
13512 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
13514 * ImageList.cs: Resize icons when needed.
13516 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
13519 - Fixes GetBounds and returns on screen rects
13521 - Fixes vertical and horzintal scrolling of items
13522 * ThemeWin32Classic.cs:
13525 2005-09-29 Raja R Harinath <harinath@gmail.com>
13527 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
13529 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
13531 * ImageList.cs: Added comments about handle creation. Moved Handle,
13532 HandleCreated and OnRecreateHandle implementations to ImageCollection.
13533 Handle is created in Add methods.
13535 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
13537 * DataGridDrawingLogic.cs:
13538 - Takes rows into account on Colum calculations
13539 - Returns the column when clickig
13541 - Fixes default HitTestInfo values
13542 - Fixes HitTestInfo.ToString
13543 - Fixes ResetBackColor
13545 2005-09-28 Jackson Harper <jackson@ximian.com>
13547 * MdiChildContext.cs: Obey rules for fixed sized windows (no
13548 sizing or cursor changes). Also added some temp code to draw the
13549 titlebars text (Makes dev a little easier).
13551 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
13553 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
13555 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
13557 * ListBox.cs: Fixes bug 76253
13559 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
13561 * ImageList.cs: Added comments about the current implementation. Added
13562 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
13563 Format32bppArgb to preserve transparency and can use Graphics.FromImage
13564 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
13565 with Bitmap.LockBits for better performance. Revised the whole file to
13566 match MS.NET behaviour and provide better performance. Non-public
13567 interface members are calling public members even when they throw
13568 NotSupportedException for better maintainability. Moved ColorDepth,
13569 ImageSize, ImageStream and TransparentColor implementations to
13570 ImageCollection for better performance as these properties are not used
13572 * ImageListStreamer.cs: Added a new internal constructor that takes an
13573 ImageList.ImageCollection and serializes Images based on
13574 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
13575 match ImageList property name.
13577 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
13579 * ListBox.cs: Fixes IndexFromPoint for last item
13581 2005-09-27 Jackson Harper <jackson@ximian.com>
13583 * Form.cs: Set the position of new mdi children correctly.
13585 2005-09-27 Jackson Harper <jackson@ximian.com>
13587 * MdiClient.cs: New mdi children need to be added to the back of
13588 the controls collection so the zorder is set correctly. Also add a
13589 count of all the child windows that have been created.
13591 2005-09-27 Jackson Harper <jackson@ximian.com>
13593 * Form.cs (CreateParams): Setup MDI forms correctly.
13595 2005-09-27 Jackson Harper <jackson@ximian.com>
13597 * MdiChildContext.cs:
13598 * MonthCalendar.cs:
13604 * ScrollableControl.cs:
13605 * ComboBox.cs: Add implicit controls using the new implict control
13606 functionality in ControlCollection. Also try to block multiple
13607 control add in a suspend/resume layout to save some cycles.
13609 2005-09-27 Jackson Harper <jackson@ximian.com>
13611 * Control.cs: Add functionality to the controls collection to add
13612 'implicit controls' these are controls that are created by the
13613 containing control but should not be exposed to the user. Such as
13614 scrollbars in the treeview.
13615 * Form.cs: The list var of the ControlsCollection is no longer
13616 available because of the potential of implicit controls getting
13617 ignored by someone accessing the list directly.
13619 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
13621 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
13622 loose it's parent. (Fixed bug introduced in r49103 when we added
13623 setting the child parent to null on Remove)
13625 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
13627 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
13628 * Splitter.cs: Added missing attributes for BorderStyle property.
13629 * TextBoxBase.cs: Marked Calculate* methods internal.
13630 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
13633 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
13635 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
13637 2005-09-25 Jackson Harper <jackson@ximian.com>
13639 * TreeView.cs: Update the node bounds correctly regardless of
13640 whether the node is visible.
13642 2005-09-25 Jackson Harper <jackson@ximian.com>
13644 * ImageList.cs: Don't dispose the image after it is added to the
13645 image list. Only reformat images that need to be resized.
13647 2005-09-25 Jackson Harper <jackson@ximian.com>
13649 * ImageList.cs: Don't set the format when changing the image.
13651 2005-09-25 Jackson Harper <jackson@ximian.com>
13653 * TreeView.cs: We can't just assume the node has a font. Use the
13654 treeviews font if no node font is available.
13656 2005-09-25 Jackson Harper <jackson@ximian.com>
13658 * TreeView.cs: Allow the scrollbars to be reset with negative
13660 - Don't add scrollbars to negative sized windows.
13662 2005-09-23 Jackson Harper <jackson@ximian.com>
13664 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
13665 old Mono.Posix. Also remove some stray code that shouldn't have
13668 2005-09-23 Jackson Harper <jackson@ximian.com>
13670 * TreeView.cs: Attempt at proper sizing of the horizontal
13671 scrollbar. Also don't resize the scrollbars unless they are
13674 2005-09-23 Jackson Harper <jackson@ximian.com>
13676 * TreeView.cs: We don't need to expand the invalid area when the
13677 selection changes, as this is all drawn in the node's bounding
13678 box. The area needs to be expanded (previous typo was contracting
13679 it) when the focus rect moves.
13681 2005-09-23 Jackson Harper <jackson@ximian.com>
13683 * TreeView.cs: Display the selection box under the correct
13684 circumstances. We were rendering white text with no selection box
13687 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
13689 * TextControl.cs(Split): Now updates selection start/end if it points
13690 into a line that's being split. Fixes a FIXME and bug #75258
13692 2005-09-23 Jackson Harper <jackson@ximian.com>
13695 * ListControl.cs: Don't use the path when retrieving binding
13696 managers from the binding context. My bat sense tells me that the
13697 path is only used on insertion.
13699 2005-09-22 Jackson Harper <jackson@ximian.com>
13701 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
13703 2005-09-22 Jackson Harper <jackson@ximian.com>
13705 * Splitter.cs: There are special cursors used for splitting.
13706 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
13708 2005-09-22 Jackson Harper <jackson@ximian.com>
13710 * Splitter.cs: Change the cursor appropriately when the splitter
13711 is moused over, so the user actually knows there is a splitter
13714 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
13716 * Label.cs : Fix ToString method to give same output as MS.NET
13718 2005-09-22 Jackson Harper <jackson@ximian.com>
13720 * TreeView.cs: Create the scrollbars when the handle is created
13721 and add them right away, just make them invisble. Also account for
13722 the window being shrunk vertically to the point that the vert
13723 scrollbar needs to be added.
13724 - Remove some 0.5 adjustments to get around anti aliasing issues.
13726 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
13728 * MainMenu.cs: Fixes default value
13729 * MenuItem.cs: Fixes default value
13731 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
13733 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
13735 2005-09-21 Jackson Harper <jackson@ximian.com>
13737 * Control.cs: Don't try to set the border style on the window if
13738 it hasn't been created. When the window is created the border
13739 style will be used.
13741 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
13743 * Control.cs (Update): Don't call XplatUI if we don't have a
13746 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
13748 * ContainerControl.cs: Instead of throwing an exception, print
13749 a one-time warning about Validate not being implemented
13750 * XplatUIWin32.cs: Removed debug output
13752 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
13754 * Control.cs: Only set XplatUI background if we expect the windowing
13755 system to handle the background. This stops controls that draw their
13756 own background from flickering
13758 * XplatUIX11.cs: Support custom visuals and colormaps for window
13759 creation. This allows, amongst other things, using MWF X11 windows
13762 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
13764 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
13765 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
13766 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
13767 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
13768 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
13769 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
13770 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
13771 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
13772 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
13773 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
13774 GridColumnStylesCollection.cs,
13775 IDataGridColumnStyleEditingNotificationService.cs,
13776 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
13777 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
13778 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
13779 TreeNodeCollection.cs, AmbientProperties.cs,
13780 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
13781 DataObject.cs, ErrorProvider.cs, Splitter.cs,
13782 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
13783 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
13784 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
13785 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
13786 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
13787 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
13788 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
13789 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
13790 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
13791 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
13792 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
13793 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
13794 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
13795 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
13796 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
13797 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
13798 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
13799 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
13800 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
13801 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
13802 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
13803 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
13804 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
13805 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
13806 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
13807 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
13808 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
13809 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
13810 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
13811 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
13812 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
13813 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
13814 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
13815 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
13816 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
13818 2005-09-21 Jackson Harper <jackson@ximian.com>
13820 * TreeNode.cs: Call Before/After Expand not Collapse when
13823 2005-09-20 Jackson Harper <jackson@ximian.com>
13825 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
13827 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
13831 - Fixes proper storing of subitems
13832 - Fixes not updated items
13834 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
13836 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
13837 things if our window handle isn't created yet. Also disabled
13838 debug for TextBoxBase
13840 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
13842 * MenuAPI.cs: Remove filtering of events to allow menu usage
13844 2005-09-20 Miguel de Icaza <miguel@novell.com>
13846 * Cursor.cs: Allow null to be passed to Cursor.Current.
13848 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
13850 * ThemeWin32Classic.cs:
13851 - Change some private methods/fields to protected virtual so that
13852 they can be accessed and overriden in derived classes
13853 - First refactoring of some methods. Derived themes now don't
13854 need to duplicate the complete code from ThemeWin32Classic
13856 - Added nice StatusBar
13857 - Derive from ThemeWin32Classic and not Theme
13858 - Removed duplicate ThemeWin32Classic code
13860 2005-09-20 Miguel de Icaza <miguel@novell.com>
13862 * Control.cs (ControlCollection.Add): If the value null is passed
13863 the control is ignored.
13865 Optimize this loop.
13867 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
13869 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
13870 PostQuitMessage state.
13871 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
13873 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
13875 * Application.cs: Our constructor will never get called, move
13876 initialization to fields; fixes bug #75933
13878 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
13881 - Allow files to be selected properly using file name
13883 - Add ability to change diretory (absolute / relative)
13884 using file name combo box.
13886 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
13889 - Fixes Multicolumn listboxes item wrong calculations
13890 - Allows to click when only one item is in the listbox
13891 - Fixes crash when no items using keyboard navigation
13893 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
13895 * ComboBox.cs: Reverted almost everything from the latest patch which
13898 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
13901 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
13903 - When DropDownStyle is Simple, it does not show scrollbar
13904 to the last item of the list.
13905 - When DropDownStyle is Simple, it crashed when the list was
13906 scrolled down with the down cursor key.
13907 - Fixed a bug that when DropDownStyle is DropDownList, the
13908 selected item was not shown.
13909 - The position of the selected item was not preserved when
13910 the next dropdown happened.
13911 * ThemeWin32Classic.cs:
13912 - Items were wrapped at the right end.
13913 * CheckedListBox.cs:
13916 - Items should be fully shown.
13917 - When resizing and vertical scrollbar disappeared, the item
13918 of index 0 should be on the top of the list.
13919 - GetItemRectangle should consider the size of ver. scrollbar
13921 - SizingGrip area should not be allocated when it is not
13923 - Now it reflects MinWidth of the containing panel and
13924 fixed a crash that happens when its width becomes so small.
13926 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
13928 * CheckedListBox.cs: Fixes bug 76028
13929 * ListBox.cs: Fixes bug 76028
13931 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
13933 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
13934 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
13936 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
13938 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
13940 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
13942 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
13944 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
13946 * IRootGridEntry.cs: Added
13947 * PropertyGridCommands.cs: Added
13948 * PropertiesTab.cs: Added missing methods and property
13949 * PropertyGridView.cs: Made class internal
13950 * PropertyGridTextBox.cs: Made class internal
13952 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
13954 * MimeIcon.cs: Try to check some other environment variables
13955 if "DESKTOP_SESSION" returns "default"
13957 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
13959 * ThemeNice.cs: Corrected background colors (e.g. menus)
13960 * ColorDialog.cs: Use correct background colors for controls
13962 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
13964 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
13966 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
13968 * RichTextBox.cs: Added initial implementation
13969 * lang.cs: Removed. Was accidentally checked in long time ago
13970 * TODO: Removed. Contents were obsolete
13972 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
13974 * PropertiesTab.cs : Added
13976 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
13978 * PropertyGrid.cs : Update
13979 * PropertyGridView.cs : Update
13980 * System.Windows.Forms.resx : Added images and strings
13982 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
13984 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
13986 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
13988 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
13989 a busy loop right after the Ungrab the X11 display is otherwise
13992 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
13994 * ThemeWin32Classic.cs: Optimise the use of clipping
13996 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
13998 * DataGrid.cs: fixes recursion bug
14000 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
14003 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
14006 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
14008 * ThemeNice.cs: Draw nice ProgressBars
14010 2005-09-01 Miguel de Icaza <miguel@novell.com>
14012 * VScrollBar.cs: Another buglet found by Aaron's tool.
14014 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
14017 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
14020 - Added nicer menu drawing
14024 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14026 * CreateParams.cs (ToString): Made output match MS
14027 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
14028 handle is already created (to avoid forcing window creation)
14029 * XplatUIX11.cs: Set window text to caption after creating window,
14030 in case Text was set before window was created
14031 * Form.cs: Use this.Text instead of a static string as caption
14033 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14035 * NotifyIcon.cs: Don't set the window to visible; this screws
14036 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
14037 OnPaint without a bitmap)
14038 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
14039 happen very often anyway; we could add the check to the WM_PAINT
14040 event generation code
14042 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14044 * NotifyIcon.cs: Fill the icon area with a background color, to
14045 avoid 'residue' when transparent icons are drawn
14047 - Handle whole_window == client_window when destroying windows
14048 - SystrayAdd(): Set client_window to whole_window value to
14049 get mouse and other events passed to NotifyIcon
14051 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
14053 * Form.cs: Set proper default for Opacity property
14055 - ShowSystray(): Don't bother creating telling the OS
14056 about the systray item if no icon is provided
14057 - Now handles WM_NCPAINT message to deal with whole/client window
14059 - Create window as visible to not get caught by Expose optimization
14060 * Hwnd.cs: Removed debug message
14061 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
14062 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
14063 PaintEventStart/End to use new client argument
14065 - Commented out debug messages
14066 - Switched PaintEventStart/End to use new client argument
14067 * XplatUI.cs: Added client window bool to PaintEventStart()/
14068 PaintEventEnd() calls, to support drawing in non-client areas
14069 * XplatUIDriver.cs:
14070 - Added client window bool to PaintEventStart()/PaintEventEnd()
14071 calls, to support drawing in non-client areas
14072 - Added conditional compile to allow using MWF BeginInvoke
14075 - Added some conditional debug output
14076 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
14077 whole/client window split
14078 - Implemented handling of client argument to PaintEventStart()/End()
14080 - Throw exception if BeginInvoke() is called and the window handle
14081 or one of the window's parent handles is not created
14082 - Added conditional compile to allow using MWF BeginInvoke on
14084 - get_Parent(): Only sets parent if handle is created. This avoids
14085 forcing window handle creation when parent is set.
14086 - Now fires Layout and Parent changed events in proper order
14087 - Switched to use Handle instead of window.Handle for Z-Order setting,
14088 the get_Parent() patch above causes us to possibly get null for 'window'
14089 - Implemented handling of client argument to PaintEventStart()/End()
14090 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
14092 - Now sends a Refresh() to all child windows when Refresh() is called
14094 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
14096 * Form.cs: Added (non-functional) Opacity property
14097 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
14099 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
14100 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
14101 use export MONO_THEME=nice to activate it.
14102 Currently supported controls:
14106 - TabControl (TabAlignment.Top only, other will follow)
14107 * ThemeEngine.cs: Add theme nice
14108 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
14111 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
14113 * Splitter.cs: Resize docked control and its neighbor.
14115 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14116 -- Making Windows with Menus layout correctly --
14117 * Form.cs : The first leg of the fix
14118 Menu setter - adjust Client Size as needed to make space for the menu
14119 SetClientSizeCore - doesn't call base version to be able to pass the
14120 menu handle to XplatUI.CalculateWindowRect
14121 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
14122 * XplatUIX11.cs: The critical second leg of the fix
14123 GetWindowPos needs to use a recalculated client_rect
14124 so that resizing the window doesn't break layout of child controls.
14125 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
14126 Lots of \t\n killed
14128 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
14130 * Label.cs: Now properly recalculates width and height on Font and Text
14131 changes if AutoSize is set
14133 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14134 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
14136 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
14138 * ImageList.cs: Makes ToString method compatible with MS
14140 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
14142 * MenuAPI.cs: fixes bug 75716
14144 2005-08-11 Umadevi S <sumadevi@novell.com>
14145 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
14147 2005-08-11 Umadevi S <sumadevi@novell.com>
14148 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
14150 2005-08-10 Umadevi S <sumadevi@novell.com>
14151 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
14153 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
14155 * Menu.cs: fixes bug 75700
14156 * MenuAPI.cs: fixes navigation issues
14158 2005-08-09 Umadevi S <sumadevi@novell.com>
14159 * CheckedListBox.cs - simple fix for GetItemChecked.
14161 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
14163 * ComboBox.cs: Serveral fixes
14164 * ListBox.cs: Serveral fixes
14166 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14168 * ComboBox.cs: Fixes FindString methods and GetItemHeight
14169 * ListBox.cs: Fixes FindString methods
14171 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
14173 * DataGrid.cs: fixes bugs exposed by new tests
14175 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
14177 * Mime.cs: Compile Mono assembly references only if compiling
14178 with Mono (Allows to build with VS.Net again)
14180 2005-07-28 Marek Safar <marek.safar@seznam.cz>
14182 * Control.cs (PaintControlBackground): Draw background image
14184 (CheckForIllegalCrossThreadCalls): Stubbed.
14186 * Form.cs (OnCreateControl): Center when should be centered.
14188 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
14190 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
14192 * Binding.cs: Binding to properties should be case unsensitive
14194 2005-07-18 vlindos@nucleusys.com
14196 * DataGrid.cs: fixes setmember order
14198 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
14200 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
14201 * FileDialog.cs: FileDialog is now resizable and uses the new
14204 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
14206 * DataGridTextBoxColumn.cs: default value
14207 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
14208 * GridTableStylesCollection.cs: fixes checking MappingName
14209 * DataGridDrawingLogic.cs: fixes drawing logic issues
14210 * DataSourceHelper.cs: rewritten to make compatible with more data sources
14211 * DataGrid.cs: fixes
14213 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
14215 * MimeGenerated.cs: Use case sensitive comparer for
14216 NameValueCollections
14218 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
14220 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
14221 * ThemeWin32Classic.cs: bug fixes, code refactoring
14222 * DataGridDrawingLogic.cs: bug fixes, code refactoring
14223 * DataGrid.cs: bug fixes, code refactoring
14224 * DataGridTextBox.cs: bug fixes, code refactoring
14225 * DataGridColumnStyle.cs: bug fixes, code refactoring
14226 * Theme.cs: bug fixes, code refactoring
14228 2005-07-01 Peter Bartok <pbartok@novell.com>
14230 * TextControl.cs: Quick fix for the reported crash on ColorDialog
14231 and other text box usage
14233 2005-07-01 Jackson Harper <jackson@ximian.com>
14235 * TabControl.cs: Make sure the bottom of the tab covers the pages
14238 2005-06-30 Peter Bartok <pbartok@novell.com>
14240 * Form.cs (ShowDialog): Assign owner of the dialog
14241 * TextBoxBase.cs: Always refresh caret size when deleting, caret
14242 might have been moved to a tag with different height
14244 2005-06-30 Jackson Harper <jackson@ximian.com>
14246 * Form.cs: Don't create an infinite loop when setting focus
14247 * MenuItem.cs: Don't dirty the parents if we don't have any
14249 2005-06-29 Ben Maurer <bmaurer@ximian.com>
14251 * LibSupport.cs: Rename
14253 2005-06-29 Peter Bartok <pbartok@novell.com>
14255 * TextBoxBase.cs: Re-align caret after deleting a character
14257 - DeleteChars(): Ensure that tag covers the provided position
14258 - StreamLine(): Drop reference for dropped tag
14260 2005-06-29 Peter Bartok <pbartok@novell.com>
14263 - Selections now work properly, anchoring at the initial location
14264 and properly extending in either direction (SetSelectionToCaret(),
14265 SetSelectionStart() and SetSelectionEnd())
14266 - No longer redraws the whole control on selection change, now
14267 calculates delta between previous and new selection and only
14268 invalidates/redraws that area
14269 - Fixed FindPos() math off-by-one errors
14270 - Changed DeleteChars() to verify the provided tag covers the
14271 provided position, selections may have a tag that doesn't cover
14272 the position if the selection is at a tag border
14273 - Fixed off-by-one errors in DeleteChars()
14274 - Added missing streamlining check in DeleteChars() to remove
14276 - Implemented Invalidate() method, now properly calculates exposures
14277 between two given lines/positions
14278 - Implemented SetSelection()
14279 - Obsoleted and removed FixupSelection()
14280 - Improved RecalculateDocument() logic, removing code duplication
14282 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14284 * LibSupport.cs: changes to match different input/output arguments.
14286 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14288 * LibSupport.cs: added libsupport.so init routine.
14290 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
14292 * ControlBindingsCollection.cs
14293 - Throws an exception on null datasource when adding
14294 - Checks for duplicated bindings when adding
14296 2005-06-28 Jackson Harper <jackson@ximian.com>
14298 * TreeView.cs (OnKeyDown): Support left and right properly
14299 (navigates as well as expanding and collapsing.
14300 - Add support for Multiply, this expands all the selected nodes
14302 - Fix some tabbing.
14304 2005-06-28 Jackson Harper <jackson@ximian.com>
14306 * TreeView.cs: Implement keyboard navigation, currently supports,
14307 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
14308 support for toggling checkboxes with the space bar.
14310 2005-06-28 Jackson Harper <jackson@ximian.com>
14312 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
14315 2005-06-28 Jackson Harper <jackson@ximian.com>
14317 * TreeView.cs: Add missing event.
14319 2005-06-27 Peter Bartok <pbartok@novell.com>
14322 - Made line ending size configurable (now allows for counting
14323 lineendings as \n or \r\n)
14324 - Added margin to viewport to keep caret visible on right side
14325 - Fixed translation routines for line/pos to documentpos to consider
14326 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
14327 - Fixed some line-endings to be unix style
14328 - Fixed Document.FormatText to perform it's calculations 1-based
14329 - Added descriptions for a few methods that might otherwise get
14331 - Added NOTE section with some basic conventions to remember at
14332 the top of the file
14333 - Major fixup for RichTextBox selection drawing:
14334 * Fixed crashes when multiple tags on a single line were selected
14335 * fixed selection box drawing not overlaying text
14336 * fixed bogus offset calculation for tags not starting at index 1
14337 * Switched behaviour from using multiple Substrings of a
14338 StringBuilder.ToString() to using multiple
14339 StringBuilder.ToString(start, length) statements, hoping this is
14340 faster (kept original version commented out in the code, in case
14341 original version was faster)
14342 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
14344 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
14347 2005-06-27 Jackson Harper <jackson@ximian.com>
14349 * TabControl.cs: Move to the left and right with the arrow
14350 keys. These keys don't cycle beyond first and last like
14351 tab. Refresh all the tabs when scrolling them to the left or
14354 2005-06-27 Jackson Harper <jackson@ximian.com>
14357 - ToString: Added method
14358 - CreateParams: Remove TODO and comment
14359 - OnKeyDown: Cycle through bounds properly.
14360 - SelectedIndex: Scroll to the right or left if we need to
14361 display the newly selected tab.
14363 2005-06-23 Jackson Harper <jackson@ximian.com>
14365 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
14368 2005-06-23 Jackson Harper <jackson@ximian.com>
14370 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
14371 CTRL-SHIFT-TAB, and HOME, END are there any others?
14373 2005-06-23 Jackson Harper <jackson@ximian.com>
14375 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
14377 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14379 * DataGridTextBoxColumn.cs: fixes and enhancements
14380 * ThemeWin32Classic.cs: fixes and enhancements
14381 * DataGridBoolColumn.cs: fixes and enhancements
14382 * DataGridDrawingLogic.cs: fixes and enhancements
14383 * CurrencyManager.cs: fixes and enhancements
14384 * DataGrid.cs: fixes and enhancements
14385 * DataGridColumnStyle.cs: fixes and enhancements
14387 2005-06-22 Jackson Harper <jackson@ximian.com>
14389 * TabControl.cs: Add some missing methods that just call into the
14390 base. Make the TabPageCollection's IList interface behave in the
14391 same manner as the MS implementation.
14393 2005-06-22 Peter Bartok <pbartok@novell.com>
14395 * TextControl.cs: Added sanity check
14397 - Fixed wrapping behaviour, don't set wrap on single line controls
14398 (this fixes the breakage of colordialog introduced in an earlier
14400 - Added rudimentary support for autoscrolling right-aligned controls
14401 (still needs fixing, also, center alignment scroll is missing)
14403 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
14405 * ScrollBar.cs: Fixes thumbpos on Maximum values
14407 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
14409 * PropertyGridView.cs: Pass context information to UITypeEditors
14411 2005-06-21 Peter Bartok <pbartok@novell.com>
14414 - Now calling PositionCaret with absolute space coordinates
14415 - Enabled vertical scrolling
14416 - Better tracking of scrollbar changes, tied into WidthChange
14418 - Improved cursor tracking
14419 - Removed debug output
14421 - PositionCaret coordinates are now works in absolute space, not
14423 - Improved tracking of document size
14424 - Added events for width and height changes
14426 2005-06-21 Peter Bartok <pbartok@novell.com>
14428 * Form.cs: Set focus to active control when form is activated
14430 - Added word-wrap functionality to RecalculateLine()
14431 - Added some short function descriptions for VS.Net to aid in
14432 writing dependent controls
14433 - Added Caret property, returning the current coords of the caret
14434 - Added ViewPortWidth and ViewPortHeight properties
14435 - Added Wrap property
14436 - Added CaretMoved event
14437 - Removed some old debug code
14438 - Split() can now create soft splits
14439 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
14440 - Added method to format existing text
14441 - Fixed size/alignment calculations to use viewport
14442 - RecalculateDocument now can handle changing line-numbers while
14446 - Added some wrap logic, we don't wrap if alignment is not left
14447 - Added casts for scrollbar var, base class switched types to
14448 also support RichTextBoxA
14449 - Implemented handling of scrollbar visibility flags
14452 - Switched scrollbars type to RichTextBoxScrollBars to support
14454 - Added tracking of canvas width/height
14455 - Switched scrollbars to be not selectable (to keep focus on text)
14456 - Added central CalculateDocument() method to handle all redraw
14458 - Added ReadOnly support
14459 - Added WordWrap support
14460 - Fixed handling of Enter key (we now treat it as a DialogKey)
14461 - Fixed caret positioning when h or v scroll is not zero
14462 - Fixed placing/generation of vertical scrollbar
14463 - Added CalculateScrollBars() method to allow updating scrollbar
14464 limits and visibility
14465 - Fixed handling of horizontal scroll
14466 - Added handling of vertical scroll
14467 - Implemented auto-'jump' when caret moves to close to a left or
14468 right border and there is text to be scrolled into view (currently
14469 there's the potential for a stack overflow, until a bug in
14470 scrollbar is fixed)
14472 2005-06-21 Geoff Norton <gnorton@customerdna.com>
14474 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
14476 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
14480 - return application/x-zerosize for files with size zero
14481 (if no extension pattern matches).
14482 - check matches collection for strings too.
14483 - return only the first mime type if the name value
14484 collection has more than one mime type.
14486 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
14488 * PropertyGrid.cs: Cleaned up some TODOs
14489 * PropertyGridView.cs: Added support for UITypeEditors
14491 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14493 * DataGrid.cs: clears cached value
14495 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
14497 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
14498 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
14499 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
14500 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
14502 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
14504 * ThemeWin32Classic.cs: fixes colour
14506 2005-06-15 Peter Bartok <pbartok@novell.com>
14508 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
14509 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
14510 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
14511 * Control.cs: Added some MWFCategory and MWFDescription attributes
14512 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
14514 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
14516 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
14519 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
14521 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
14522 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
14523 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
14524 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
14525 * DataGrid.cs: default datagrid settings for Default Styles, fixes
14526 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
14528 2005-06-13 Jackson Harper <jackson@ximian.com>
14530 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
14531 isn't printed when the user enables dropping. (X11 does accept
14534 2005-06-13 Jackson Harper <jackson@ximian.com>
14536 * TreeView.cs: Remove some TODOS.
14538 2005-06-13 Jackson Harper <jackson@ximian.com>
14540 * Form.cs: Hook into the mdi framework.
14541 * MdiClient.cs: Use the base control collections add method so
14542 parents get setup correctly. Set the default back colour and dock
14544 * MdiChildContext.cs: New class, this bad actor handles an
14545 instance of an MDI window. Right now there is only basic
14546 support. You can drag, close, and resize windows. Minimize and
14547 Maximize are partially implemented.
14549 2005-06-13 Jackson Harper <jackson@ximian.com>
14551 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
14552 freaky when both vals are negative. NOTE: There are probably other
14553 places in XplatUIX11 that this needs to be done.
14555 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
14557 * DataGrid.cs: implement missing methods, move KeyboardNavigation
14558 * DataGridColumnStyle.cs: fixes signature
14560 2005-06-12 Jackson Harper <jackson@ximian.com>
14562 * XplatUIX11.cs: Use sizing cursors similar to the ones on
14565 2005-06-11 Jackson Harper <jackson@ximian.com>
14567 * StatusBarPanel.cs: Signature cleanups. Implement
14570 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
14572 * DataGridTextBoxColumn.cs: Honors aligment
14573 * GridColumnStylesCollection.cs: Contains is case unsensitive
14574 * GridTableStylesCollection.cs: several fixes
14575 * DataGridTableStyle.cs: default column creation
14576 * DataGridDrawingLogic.cs: fixes
14577 * CurrencyManager.cs: ListName property
14578 * DataGrid.cs: multiple styles support
14579 * DataGridColumnStyle.cs: fixes
14582 2005-06-10 Peter Bartok <pbartok@novell.com>
14584 * Control.cs(Select): Moved SetFocus call to avoid potential
14585 loops if controls change the active control when getting focus
14586 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
14587 the up/down buttons
14589 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
14591 * ImageListConverter.cs: Implemented
14593 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
14595 * MonthCalendar.cs: Wired in NumericUpDown control for year
14597 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
14599 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
14600 DoubleClick events, since they are not meant to be fired.
14602 2005-06-09 Peter Bartok <pbartok@novell.com>
14604 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
14605 Jonathan's standalone controls into MWF, implemented missing
14606 events, attributes and methods; added xxxAccessible classes
14607 * AccessibleObject.cs: Made fields internal so other classes
14608 can change them if needed
14610 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
14612 * UpDownBase.cs: Complete implementation
14613 * NumericUpDown.cs: Complete implementation
14614 * DomainUpDown.cs: Complete implementation
14616 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
14618 * DataGridTextBoxColumn.cs: drawing fixes
14619 * DataGridCell.cs: fixes ToString method to match MSNet
14620 * DataGridTableStyle.cs: fixes
14621 * DataGridBoolColumn.cs: fixes, drawing
14622 * DataGridDrawingLogic.cs: fixes, new methods
14623 * DataGridTextBox.cs: Keyboard and fixes
14625 - Keyboard navigation
14627 - Row selection (single, multiple, deletion, etc)
14630 2005-06-07 Jackson Harper <jackson@ximian.com>
14632 * ThemeWin32Classic.cs: Clear the background area when drawing
14635 2005-06-06 Peter Bartok <pbartok@novell.com>
14637 * ImageListStreamer.cs: Fixed signature for GetData
14638 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
14640 - Added missing ChildAccessibleObject class
14641 - Added missing OnXXXFocus overrides, switched to using those
14642 instead of the event handler
14644 - Added Parent property for ControlAccessibleObject
14647 - Added ResetBindings()
14648 * ListBindingConverter.cs: Implemented some methods
14649 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
14650 * ImageList.cs: Implemented basic handle scheme, removed TODOs
14651 * ContainerControl.cs: Fixed signature, now subscribing to the
14652 ControlRemoved event instead of overriding the handler, LAMESPEC
14653 * CurrencyManager.cs: Added missing attribute
14654 * MonthCalendar.cs: Added missing properties
14656 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
14658 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
14660 2005-06-06 Gaurav Vaish and Ankit Jain
14662 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
14663 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
14665 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
14667 * Control.cs: fixes CreateParams Width / Height.
14669 2005-06-05 Peter Bartok <pbartok@novell.com>
14671 * Win32DnD.cs: Removed compilation warnings
14673 2005-06-05 Peter Bartok <pbartok@novell.com>
14675 * Control.cs (CreateParams): Since we don't know if one of the
14676 properties we use is overridden, lets make sure if we fail accessing
14677 we continue with a backup plan
14679 2005-06-05 Peter Bartok <pbartok@novell.com>
14682 - Removed debug output
14683 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
14685 - Plugged resource leak
14686 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
14689 2005-06-05 Peter Bartok <pbartok@novell.com>
14691 * XplatUIWin32.cs: Removed DnD code
14692 * Win32DnD.cs: Implemented drop source and drop target functionality
14694 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14696 * UpDownBase.cs: remove duplicate addition of event, enable some code
14697 that was commented out.
14698 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
14699 Validate input when a key is pressed. It works fine now for every
14700 combination of Hexadecimal. Only missing some drawing love when sharing
14701 space with other controls.
14703 2005-06-04 Peter Bartok <pbartok@novell.com>
14706 - We need to pass a window for DragDrop, so enable callback events
14707 - Added DnD callback events when being a DragSource
14708 * XplatUI.cs (StartDrag): Added window handle argument
14709 * XplatUIDriver.cs (StartDrag): Added window handle argument
14710 * QueryContinueDragEventArgs: Made fields internally accessible so
14711 drivers can set them
14712 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
14715 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
14717 * DataGridTextBoxColumn.cs: column text editing
14718 * DataGridTableStyle.cs: Respect columns styles created by the user
14719 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
14720 * DataGridBoolColumn.cs: bool column editing
14721 * DataGrid.cs: fixes to scrolling, properties, etc
14722 * DataGridTextBox.cs: handle keyboard
14723 * DataGridColumnStyle.cs: fixes
14725 2005-06-02 Jackson Harper <jackson@ximian.com>
14727 * ImageListStreamer.cs: Somewhat broken implementation of
14728 GetObjectData. The RLE needs some work to match MS properly.
14730 2005-06-02 Jackson Harper <jackson@ximian.com>
14732 * X11Dnd.cs: Attempting to keep at least one file in MWF
14735 2005-06-02 Peter Bartok <pbartok@novell.com>
14737 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
14740 2005-06-02 Peter Bartok <pbartok@novell.com>
14742 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
14743 * XplatUI.cs: Added DoDragDrop() method
14744 * XplatUIDriver.cs: Added DoDragDrop() method
14746 2005-06-02 Jackson Harper <jackson@ximian.com>
14748 * Splitter.cs: Implement BorderStyle.
14750 2005-06-02 Jackson Harper <jackson@ximian.com>
14752 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
14753 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
14756 2005-06-02 Peter Bartok <pbartok@novell.com>
14759 - Added Data setter
14760 - Fixed broken insertion code for SetData, now also
14761 overwrites any existing entry of the same format name
14762 * Hwnd.cs: Added list of pointers that automatically gets
14763 freed when the window is disposed
14764 * XplatUI.cs: Call driver initialization method when loading
14767 - OnDragLeave takes EventArgs, not DragEventArgs
14768 - Added setting of WS_EX_ACCEPTFILES style when dropping is
14770 - Forces style update when drop state changes
14771 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
14772 not perfect since we cannot (yet) call the IDataObject.GetData()
14773 method, we keep getting 0x80004005 error, dunno why)
14775 2005-06-02 Peter Bartok <pbartok@novell.com>
14777 * DragEventArgs.cs: Make fields internal so we can cache the
14778 object and re-set the fields from XplatUI
14780 2005-06-02 Jackson Harper <jackson@ximian.com>
14782 * Control.cs: Add some internal methods so the DnD subsystem can
14783 raise DnD events. Also call into the driver when AllowDrop is set.
14785 * XplatUIDriver.cs: New method for setting whether or not a window
14786 is allowed to accept drag and drop messages.
14788 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
14790 * ScrollBar.cs: Make sure that values sent in Scroll events
14791 are always between Maximum and Minimum.
14793 2005-06-01 Marek Safar <marek.safar@seznam.cz>
14795 * Menu.cs: Call MenuChanged when menuitem visibility has been
14797 * MenuItem.cs: Rebuild menu when item is (not) visible.
14798 * MainMenu.cs: MainMenu has special MenuChanged.
14799 * Theme.cs: Caption and FrameBorderSize are not fixed.
14800 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
14801 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
14803 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
14804 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
14806 2005-05-30 Jackson Harper <jackson@ximian.com>
14808 * DataFormat.cs: We can't statically initialize this stuff because
14809 it calls into the xplatui and could create a loop. So we lazy init
14812 2005-05-28 Jackson Harper <jackson@ximian.com>
14814 * Control.cs: Proper implementation of Product(Name/Version).
14816 2005-05-27 Jackson Harper <jackson@ximian.com>
14818 * DataObject.cs: Dont crash if no data is found.
14820 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14821 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
14822 as per status page, guessing it should be set to true
14824 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
14826 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
14827 * DataGridTableStyle.cs: set proper formatting text, def header text
14828 * ThemeWin32Classic.cs: new themable paramaters
14829 * DataGridBoolColumn.cs: paint check box, get data, fixes
14830 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
14831 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
14832 * DataGridColumnStyle.cs: fixes
14833 * Theme.cs: new themable paramaters
14835 2005-05-26 Peter Bartok <pbartok@novell.com>
14837 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
14839 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14840 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
14842 2005-05-24 Peter Bartok <pbartok@novell.com>
14844 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
14845 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
14846 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
14847 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
14848 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
14849 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
14850 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
14851 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
14852 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
14853 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
14854 missing attributes, etc
14855 * DataGridPreferredColumnWidthTypeConverter.cs: Added
14857 2005-05-24 Peter Bartok <pbartok@novell.com>
14859 * Help.cs: Added, implemented trivial functions, throws up MessageBox
14860 when user tries to get help
14861 * DataObject.cs, DataFormats.cs, LinkArea.cs,
14862 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
14863 to suppress warnings
14864 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
14865 avoid unreachable code warning
14867 2005-05-20 Peter Bartok <pbartok@novell.com>
14869 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
14871 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
14873 * DataGridTextBoxColumn.cs: Basic painting methods
14874 * DataGridTableStyle.cs: Set table style in the column
14875 * ThemeWin32Classic.cs: Use Theme for colors
14876 * DataGridDrawingLogic.cs: Implement more drawing
14877 * DataGrid.cs: drawing, theming, enhacements, fixes
14878 * DataGridColumnStyle.cs: fixes, drawing
14879 * Theme.cs: theming for Datagrid
14881 2005-05-20 Peter Bartok <pbartok@novell.com>
14883 * Cursor.cs: Implemented GetObjectData() method
14885 2005-05-20 Peter Bartok <pbartok@novell.com>
14887 * Cursors.cs: Added setting of cursor name
14889 - Implemented constructors
14890 - Implemented Draw and DrawStretched
14891 - Implemented Current property
14892 - Implemented == and != operators
14893 - Implemented Dispose()
14894 - Implemented ToString
14895 - Added missing attributes
14897 - Added missing reset for OverrideCursor when DoEvents is called
14898 - Fixed creation of cursor, logic was wrong
14900 - Added missing reset for OverrideCursor when DoEvents is called
14901 - Fixed creation of cursor, bit arrays were swapped
14902 * Clipboard.cs: Removed obsolete MonoTODO attribute
14904 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
14906 * ComboBox.cs: fixes OnSelectedItemChanged
14907 * ControlBindingsCollection.cs: fixes item range check
14909 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
14912 - Calc preferred height properly
14913 - Implement missing properties
14915 * NumericUpDown.cs: Implement missing events
14917 2005-05-19 Jackson Harper <jackson@ximian.com>
14919 * TabControl.cs: New method that resizes the tab pages before
14920 redrawing them. This as needed as the control is double buffered
14921 and sizing will not be recalculated unless ResizeTabPages is
14923 * TabPage.cs: Set base.Text instead of Text in the constructor so
14924 that UpdateOwner does not get called. Use the new Redraw method of
14925 TabControl instead of Refresh so the sizing is recalculated.
14926 * ThemeWin32Classic.cs: Draw the text for button tabs.
14928 2005-05-19 Jackson Harper <jackson@ximian.com>
14930 * Control.cs: Paint control background images. Fix typo where
14931 PaintControlBackground was not getting called correctly.
14933 2005-05-19 Peter Bartok <pbartok@novell.com>
14935 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
14936 I can investigate, apparently I broke FileDialog
14938 2005-05-19 Marek Safar <marek.safar@seznam.cz>
14940 * AxHost.cs: Some simple properties.
14941 * Control.cs: window must be accessible after ctor.
14942 * Form.cs: Added TransparencyKey property.
14943 * TextBoxBase.cs: Implemented Clear. Text property can be null.
14944 * XplatUIWin32.cs: SetBorderStyle implemented.
14946 2005-05-18 Peter Bartok <pbartok@novell.com>
14948 * DataObject.cs: Entries are not global but particular to the
14949 DataObject, now it behaves that way
14950 * XplatUIWin32.cs: Implemented Clipboard methods
14951 * Clipboard.cs: Implemented
14952 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
14953 * XplatUIOSX.cs: Updated to final clipboard prototypes
14954 * XplatUIX11.cs: Implemented Clipboard methods
14955 * XplatUIDriver.cs: Updated to final clipboard prototypes
14956 * XplatUIStructs.cs:
14957 - Added BITMAPINFOHEADER struct
14958 - Added ClipboardFormats enum
14960 - Added ClipboardStruct
14961 - Added Atom enum items for clipboard types
14962 - Fixed atom types for Selection event structures
14964 - Added internal properties and methods for drivers to enumerate
14966 - Switched initialization method to allow drivers to assign their
14967 own IDs even for the MS predefined clipboard IDs
14968 * XplatUI.cs: Updated to final clipboard interface
14970 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14971 * PropertyGridView.cs: Fixed compiler warnings.
14973 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14974 * PropertyGrid.cs: Added some event calls
14975 * PropertyGridView.cs: Change drawing code to use double buffering
14976 * PropertyGridTextBox.cs: Changed Text property name
14977 * GridItem.cs: Added Bounds property.
14978 * GridEntry.cs: Added Bounds property.
14980 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
14982 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
14983 since GetType() may not return the correct type if the object is
14986 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
14988 * TreeNodeCollection.cs: fixes get/set item ranges
14990 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
14992 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
14994 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
14996 * ComboBox.cs: Fix item range comparation
14997 * ListView.cs: Fix item range comparation
14999 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15002 - Clear example panel when OnPaint is called
15003 - Better solution for displaying the example panel text
15004 - Select default indexes in the ListBoxes
15006 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15008 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
15010 2005-05-11 Peter Bartok <pbartok@novell.com>
15012 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
15013 * SelectionRangeConverter.cs: Implemented
15014 * PropertyGrid.cs: Fixed attribute value
15016 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
15017 - Added Sebastien Pouliot's CAS Stack Propagation fixes
15018 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
15019 that's common to all drivers. First methods to go there are
15020 Sebastien Pouliot's CAS Stack Propagation helper methods
15021 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
15022 Sebastien Pouliot for CAS Stack Propagation
15024 2005-05-11 Geoff Norton <gnorton@customerdna.com>
15027 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
15029 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
15031 * DataGridTextBoxColumn.cs: fixed some members
15032 * GridColumnStylesCollection.cs: indexed column is case insensitive
15033 * DataGridTableStyle.cs: fixes
15034 * ThemeWin32Classic.cs: add new theme parameter
15035 * Theme.cs: add new theme parameter
15036 * DataGridDrawingLogic.cs: Datagrid's drawing logic
15037 * DataGrid.cs: fixes, new internal properties, etc.
15038 * DataGridColumnStyle.cs: allows to set grid value
15041 2005-05-10 Peter Bartok <pbartok@novell.com>
15043 * AccessibleObject.cs:
15044 - Removed MonoTODO attribute on help, method is correct
15045 - Fixed Bounds property
15046 * AxHost.cs: Moved MonoTODO
15047 * ButtonBase.cs: Now setting AccessibleObject properties
15048 * RadioButton.cs: Setting proper AccessibleObject role
15049 * CheckBox.cs: Setting proper AccessibleObject role
15050 * ControlBindingsCollection.cs: Added properties, methods and attributes
15051 * DataFormats.cs: Fixed awkward internal API, and changed to enable
15052 userdefined DataFormats.Format items as well
15053 * ListControl.cs: Removed data_member from the public eye
15054 * OpenFileDialog.cs:
15055 - Made class sealed
15056 - Added missing attributes
15057 * SaveFileDialog.cs: Added missing attributes
15058 * ImageListStreamer.cs: Fixed code that caused warnings
15059 * LinkLabel.cs: Removed unreachable code
15060 * TreeView.cs: Fixed code that caused warnings
15061 * PropertyGridView.cs: Fixed code that caused warnings
15062 * GridColumnStylesCollection.cs: Added missing attributes
15063 * GridTableStylesCollection: Added missing attribute
15064 * PropertyManager: Added .ctor
15065 * SecurityIDType: Added
15066 * DataObject.cs: Implemented class
15067 * LinkArea.cs: Added missing attribute
15069 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
15071 * RadioButton.cs: call base method to allow to fire OnClick event
15072 * UpDownBase.cs: OnMouseUp call base method
15073 * CheckedListBox.cs: call base method before returning
15074 * TrackBar.cs: call base method before returning
15077 2005-05-10 Peter Bartok <pbartok@novell.com>
15079 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
15082 2005-05-10 Peter Bartok <pbartok@novell.com>
15084 * DataFormats.cs: Implemented
15085 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
15086 XplatUIX11.cs: Added Clipboard APIs
15087 * XplatUIWin32.cs: Implemented Clipboard APIs
15088 * FolderBrowserDialog.cs: Added missing event, attributes
15090 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
15092 * CheckBox.cs: call base method to allow to fire OnClick event
15094 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
15096 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
15098 2005-05-06 Peter Bartok <pbartok@novell.com>
15100 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
15101 * Screen.cs: Implemented
15102 * HelpNavigator.cs: Added
15103 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
15105 * HelpProvider.cs: Implemented all we can do until we have a CHM
15106 help library (which means that "What's This" does work now)
15108 2005-05-06 Jackson Harper <jackson@ximian.com>
15110 * XplatUIX11.cs: Fix waking up the main loop.
15112 2005-05-05 Peter Bartok <pbartok@novell.com>
15114 * XplatUI.cs: Updated revision
15115 * Form.cs: Removed enless loop
15116 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
15117 * Label.cs (OnPaint): Added call to base.OnPaint()
15118 * ToolTip.cs: Made ToolTipWindow reusable for other controls
15119 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
15120 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
15122 * ButtonBase.cs: Moved base.OnPaint() call to end of method
15123 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
15124 to ToolTip.ToolTipWindow for drawing and size methods; this allows
15125 reuse of ToolTipWindow by other controls
15126 * SizeGrip.cs: Moved base.OnPaint() call to end of method
15127 * XplatUIX11.cs: Now clipping drawing area (experimental)
15128 * PictureBox.cs: Moved base.OnPaint() call to end of method
15129 * Theme.cs: Fixed ToolTip abstracts to match new format
15130 * ErrorProvider.cs: Implemented
15132 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
15134 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
15138 - Implements LinkBehavior
15139 - Fixes many issues
15141 2005-05-03 Jackson Harper <jackson@ximian.com>
15143 * ListView.cs: Calculate the scrollbar positioning on resize and
15144 paint, so they get put in the correct place.
15146 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
15148 * ColorDialogs.cs: The small color panels are now handled by
15149 SmallColorControl. This fixes drawing of the focus rectangle
15150 and adds a 3D border.
15152 2005-05-03 Peter Bartok <pbartok@novell.com>
15154 * Control.cs: Modified version of Jonathan Chamber's fix for
15157 2005-05-03 Jackson Harper <jackson@ximian.com>
15159 * ListView.cs: Remove redraw variable. Control now handles whether
15160 or not a redraw needs to be done, and will only raise the paint
15161 event if redrawing is needed.
15163 2005-05-03 Jackson Harper <jackson@ximian.com>
15165 * Splitter.cs: No decorations for the splitter form. Cache the
15168 2005-05-03 Jackson Harper <jackson@ximian.com>
15170 * TreeView.cs: Use dashed lines to connect nodes. Use the
15171 ControlPaint method for drawing the focus rect instead of doing
15174 2005-05-02 Peter Bartok <pbartok@novell.com>
15176 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
15178 2005-04-29 Jackson Harper <jackson@ximian.com>
15180 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
15181 entire image buffer. Just clear the clipping rectangle.
15183 2005-04-29 Jackson Harper <jackson@ximian.com>
15185 * ThemeWin32Classic.cs: Don't draw list view items that are
15186 outside the clipping rectangle.
15188 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
15190 * ListBox.cs: added horizontal item scroll
15192 2005-04-29 Jackson Harper <jackson@ximian.com>
15194 * ThemeWin32Classic.cs: Remove some old debug code that was
15195 causing flicker with the new double buffering code.
15197 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
15199 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
15200 behave like combobox and comboboxlist (still not sure if this is
15203 2005-04-28 Jackson Harper <jackson@ximian.com>
15205 * ThemeWin32Classic.cs: Don't fill the middle of progress
15206 bars. This fills areas outside of the clip bounds that don't need
15209 2005-04-28 Jackson Harper <jackson@ximian.com>
15211 * Control.cs: Don't expose functionality to touch the image buffers.
15213 * ListView.cs: We do not need to (and no longer can) manipulate
15214 the image buffers directly. All of this is handled by Control.
15216 2005-04-28 Peter Bartok <pbartok@novell.com>
15218 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
15219 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
15220 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
15222 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15225 - Adjust control's height for non-simple comboboxes (bug fix)
15227 * MenuAPI.cs: remove unused var
15228 * ScrollBar.cs: remove unsed var
15230 * ListBox.cs: unselect items when clearing
15232 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
15234 * ListControl.cs: honors OnPositionChanged and default Selected Item
15235 * ListBox.cs: unselect items when clearing
15237 2005-04-27 Jackson Harper <jackson@ximian.com>
15239 * X11Keyboard.cs: Initialize a default keyboard and give a warning
15240 if a "correct" keyboard is not found. This will make us not crash,
15241 but might give some users bad keyboard layouts...seems to be the
15242 same thing rewind does.
15244 2005-04-27 Jackson Harper <jackson@ximian.com>
15246 * BindingManagerBase.cs: Attach the current/position changed
15247 handlers to their respective events.
15249 2005-04-27 Jackson Harper <jackson@ximian.com>
15251 * Control.cs: Make sure that the first WM_PAINT does a full draw,
15253 * ThemeWin32Classic.cs: Don't fill the background for picture
15254 boxes. This could overright user drawing.
15255 * ComboBox.cs: Just fill the clipping rect not the entire client
15256 rect when drawing the background. This prevents pieces of the
15257 image buffer from getting overwritten and is theoretically faster.
15259 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
15261 * ComboBox.cs: Databinding support fixes, fire missing events
15262 * ListControl.cs: implement missing methods and properties, fixes
15263 * ThemeWin32Classic.cs: Databiding support on Drawing
15264 * CheckedListBox.cs: Databinding support fixes, fire missing events
15265 * ListBox.cs: Databinding support fixes, fire missing events
15267 2005-04-25 Peter Bartok <pbartok@novell.com>
15269 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
15271 2005-04-25 Jackson Harper <jackson@ximian.com>
15273 * TreeView.cs: Use the horizontal scrollbars height not width when
15274 determining how much of the client area is available.
15276 2005-04-25 Jackson Harper <jackson@ximian.com>
15278 * Control.cs: Double buffering is handled differently now. As per
15279 the spec, the extra buffer is created in the WM_PAINT message and
15280 passed down to the control's drawing code.
15288 * PropertyGridView.cs:
15300 * DateTimePicker.cs:
15302 * TreeView.cs: Update to new double buffering system.
15303 * MonthCalendar.cs: Uncomment block, as Capture is now
15304 working. Update to new double buffering
15305 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
15306 * PaintEventArgs.cs: New internal method allows us to set the
15307 graphics object. This is used for double buffering.
15308 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
15309 rectangle. The internal paint_area var has been removed from
15310 StatusBar. The clipping rect should be used instead.
15311 * Theme.cs: Give the PictureBox drawing method a clipping rect.
15312 * TabPage.cs: The RefreshTabs method was removed, so just call the
15313 tab controls Refresh method now.
15314 * TabControl.cs: Update to new double buffering. Make sure the
15315 handle is created before sizing the tab pages, otherwise we will
15316 get stuck in a loop.
15318 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
15320 * LinkLabel.cs: Fix typo, bug #74719; patch
15321 from Borja Sanchez Zamorano
15323 2005-04-22 Jackson Harper <jackson@ximian.com>
15325 * TreeNode.cs: Implement Handle stuff.
15326 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
15328 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
15330 * DataGridTextBoxColumn.cs: call base constructors, fixes
15331 * GridColumnStylesCollection.cs: missing events, methods, and functionality
15332 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
15333 * DataGridTableStyle.cs: implements create default column styles
15334 * DataGridBoolColumn.cs: which types can handle
15335 * DataGrid.cs: missing methods, fixes, new functionality
15336 * DataGridColumnStyle.cs: fixes
15338 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
15339 * FolderBrowserDialog.cs:
15340 - Use a thread to fill the TreeView
15341 - Adjusted some sizes
15343 2005-04-19 Peter Bartok <pbartok@novell.com>
15345 * LinkLabel.cs: (Re-)create the pieces when setting the Text
15346 property. Fixes #74360.
15348 2005-04-19 Jackson Harper <jackson@ximian.com>
15350 * XEventQueue.cs: Lock when getting the lockqueue size.
15351 * PictureBox.cs: Call base OnPaint
15353 2005-04-19 Peter Bartok <pbartok@novell.com>
15355 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
15356 messages were no longer being processed (this broke BeginInvoke)
15359 2005-04-18 Jackson Harper <jackson@ximian.com>
15361 * TreeView.cs: buglet that caused node images to get drawn
15362 regardless of whether or not they were in the clipping rectangle.
15364 2005-04-18 Jackson Harper <jackson@ximian.com>
15366 * CurrencyManager.cs: There are four rules for GetItemProperties:
15367 - If the type is an array use the element type of the array
15368 - If the type is a typed list, use the type
15369 - If the list contains an Item property that is not an object, use
15371 - use the first element of the list if there are any elements in
15374 2005-04-17 Jackson Harper <jackson@ximian.oom>
15376 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
15377 click. This handles offsets for scrolling properly and reduces
15378 memory. Also fixed GetNode to not offset now that TopNode works
15380 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
15382 2005-04-17 Jackson Harper <jackson@ximian.com>
15384 * CursorConverter.cs: Initial implementation.
15386 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15388 * ListControl.cs: work towards complex data binding support on ListControl
15389 * CurrencyManager.cs: work towards complex data binding support on ListControl
15390 * ListBox.cs: work towards complex data binding support on ListControl
15393 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
15395 * GridTableStylesCollection.cs: fixes name and constructor
15396 * DataGridTableStyle.cs: fixes
15397 * DataGridBoolColumn.cs: fixes names and constructors
15398 * DataGrid.cs: define methods and properties. Some init implementations
15399 * DataGridCell.cs: define methods and properties. Some init implementations
15400 * GridTablesFactory.cs: Define methods and properties
15402 2005-04-15 Geoff Norton <gnorton@customerdna.com>
15404 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
15405 graphics port changes. We still want the coordinates in global screen
15408 2005-04-14 Jackson Harper <jackson@ximian.com>
15410 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
15411 check plus minus or checkbox clicks unless those features are enabled.
15413 2005-04-14 Jackson Harper <jackson@ximian.com>
15415 * TreeView.cs: Add methods for setting the top and bottom visible
15416 nodes. TreeNode::EnsureVisible uses these methods.
15417 * TreeNode.cs: Implement EnsureVisible
15419 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
15421 * Form.cs: Pospone menu assignation if the window has not been created yet
15422 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
15425 2005-04-12 Jackson Harper <jackson@ximian.com>
15427 * TreeView.cs: Set the TopNode properly when scrolling
15428 occurs. This has the added benifit of reducing the amount of
15429 walking that needs to be done when drawing. Also removed an old
15431 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
15433 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
15435 * Timer.cs: fixes interval setting when the timer is already enabled
15437 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
15439 * FolderBrowserDialog.cs: First approach
15441 2005-04-09 Peter Bartok <pbartok@novell.com>
15443 * FolderBrowserDialog: Added
15445 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
15447 * LinkLabel.cs: move drawing code into the theme
15448 * ThemeWin32Classic.cs: drawing code and painting background bugfix
15449 * Theme.cs: define DrawLinkLabel method
15451 2005-04-05 Jackson Harper <jackson@ximian.com>
15453 * BindingContext.cs: Use weak references so these bad actors don't
15454 stay alive longer then they need to.
15456 2005-04-05 Jackson Harper <jackson@ximian.com>
15458 * ListControl.cs: Basic implementation of complex databinding.
15460 * ListBox.cs: Add calls to ListControl databinding methods.
15462 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
15465 - Don't change PopupButtonState to Normal when the
15466 PopupButton gets pressed several times.
15467 - Renamed ButtonPanel to PopupButtonPanel
15469 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
15471 * ColorDialog.cs: Use cached objects instead of creating them
15472 * LinkLabel.cs: Use cached objects instead of creating them
15473 * Splitter.cs: Use cached objects instead of creating them
15474 * FontDialog.cs: Use cached objects instead of creating them
15475 * PropertyGridView.cs: Use cached objects instead of creating them
15476 * MessageBox.cs: Use cached objects instead of creating them
15477 * FileDialog.cs: Use cached objects instead of creating them
15478 * ThemeWin32Classic.cs: Use cached objects instead of creating them
15479 * TreeView.cs: Use cached objects instead of creating them
15481 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
15483 * Control.cs: use Equals to compare the font since no == op
15484 * ScrollBar.cs: use Equals to compare the font since no == op
15486 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
15488 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
15490 2005-04-01 Jackson Harper <jackson@ximian.com>
15492 * Binding.cs: Implement IsBinding.
15493 * BindingManagerBase.cs:
15494 * PropertyManager.cs:
15495 * CurrencyManager.cs: Add IsSuspended property.
15497 2005-04-01 Jackson Harper <jackson@ximian.com>
15499 * Binding.cs: Had some IsAssignableFrom calls backwards.
15501 2005-04-01 Jackson Harper <jackson@ximian.com>
15503 * Binding.cs: Handle null data members when pulling data.
15504 * PropertyManager.cs: Handle the data member being a property that
15507 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15509 * DataGridTextBoxColumn.cs: fixes signature
15510 * DataGrid.cs: calls right constructor
15512 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
15514 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
15515 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
15516 * GridTableStylesCollection.cs: implements GridTableStylesCollection
15517 * DataGridTableStyle.cs: implements DataGridTableStyle
15518 * DataGridBoolColumn.cs: implements DataGridBoolColumn
15519 * DataGridTextBox.cs: implements DataGridTextBox
15520 * DataGridColumnStyle.cs: implements DataGridColumnStyle
15522 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
15524 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
15526 2005-03-29 Peter Bartok <pbartok@novell.com>
15529 - Properly implemented CompanyName property
15530 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
15531 returns a path that includes CompanyName, ProductName and
15532 Version (fixes bug #70330)
15534 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
15536 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
15539 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
15541 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
15543 - Added ReadOnly CheckBox
15544 - Further refactoring: moved some code from Open-/SaveFileDialog
15547 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
15549 * OpenFileDialog.cs: Fixed CheckFileExists
15551 Moved FileView and DirComboBox outside FileDialog class.
15552 They can now be used outside FileDialog
15554 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
15556 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
15557 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
15559 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
15561 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
15562 - Added missing CreatePrompt property in SaveDialog
15563 - Overall SaveDialog handling should be better now
15564 - Added non standard ShowHiddenFiles property
15565 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
15566 - Added InitialDirectory and RestoreDirectory support
15568 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
15570 * FileDialog.cs: Made dirComboBox usable
15572 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
15574 * FileDialog.cs: Added Filter support (case sensitiv)
15576 2005-03-24 Jackson Harper <jackson@ximian.com>
15578 * TabControl.cs: Need a couple more pixels for the lines.
15580 2005-03-23 Jackson Harper <jackson@ximian.com>
15582 * TabControl.cs: Give the tab page focus when it is selected.
15584 2005-03-23 Jackson Harper <jackson@ximian.com>
15586 * TabControl.cs: Account for the drawing of tabs borders when
15587 invalidating. If the slider was clicked dont do click detection on
15590 2005-03-23 Jackson Harper <jackson@ximian.com>
15592 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
15594 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
15596 * CategoryGridEntry.cs: Added
15597 * GridItem.cs: Added helper properties
15598 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
15599 * GridEntry.cs: Updated code for collection
15600 * PropertyGrid.cs: Cleaned up some formatting
15601 * PropertyGridView.cs: Added drop down functionality for enums.
15602 * GridItemCollection.cs: Added enumerator logic
15603 * PropertyGridEntry.cs: Added
15605 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
15608 - Removed unnecessary commented code
15609 - Fixed handling for entering the filename manually in the combobox
15611 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
15613 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
15615 2005-03-18 Peter Bartok <pbartok@novell.com>
15617 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
15618 them being touching the border
15620 2005-03-18 Peter Bartok <pbartok@novell.com>
15622 * TextControl.cs: Quick hack to center text better
15624 2005-03-18 Peter Bartok <pbartok@novell.com>
15627 - Don't throw NotImplemented exceptions, just print a notice once
15628 instead (requested by Miguel). This makes running existing SWF
15631 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
15632 - Added context menu trigger on right click
15633 * Panel.cs: Trigger invalidate on resize
15635 - Removed old double-buffer drawing
15636 - Added ResizeRedraw style to force proper update of statusbar
15638 - Removed debug output
15639 * ThemeWin32Classic.cs:
15640 - Fixed drawing of status bar, now draws Text property if there
15641 are no defined panels
15643 2005-03-18 Jackson Harper <jackson@ximian.com>
15645 * ImageList.cs: When the image stream is set pull all the images
15647 * ImageListStreamer.cs: Implement reading image list streams.
15649 2005-03-18 Peter Bartok <pbartok@novell.com>
15651 * ThemeWin32Classic.cs (DrawPictureBox):
15652 - Fixed calculations for centered drawing
15653 - Fixed drawing for normal mode, not scaling the image on normal
15655 2005-03-18 Peter Bartok <pbartok@novell.com>
15657 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
15660 - Made Open/Save button the accept button for FileDialog
15661 - Tied the cancel button to the IButtonControl cancel button
15662 - Save/Open now properly builds the pathname
15663 - Now handles user-entered text
15664 - Preventing crash on right-click if no item is selected
15665 - Fixed Text property, now uses contents of textbox
15666 - Fixed SelectedText property, now just returns the text part that
15667 is selected in the text box
15669 2005-03-18 Jackson Harper <jackson@ximian.com>
15671 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
15672 rect, make sure to de-adjust the interior rect after drawing the
15675 2005-03-18 Peter Bartok <pbartok@novell.com>
15677 * MenuAPI.cs: Remove menu *before* executing selected action to
15678 prevent the menu from 'hanging around'
15680 2005-03-17 Geoff Norton <gnorton@customerdna.com>
15682 * XplatUIOSX.cs: Implemented WorkingArea property
15684 2005-03-17 Peter Bartok <pbartok@novell.com>
15686 * XplatUIX11.cs: Fixed menu coord calculations
15687 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
15688 for calculating offsets
15690 2005-03-17 Peter Bartok <pbartok@novell.com>
15692 * Hwnd.cs: Do not consider menu presence for default client
15693 rectangle location/size
15694 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
15695 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
15696 translation functions
15697 * FileDialog.cs: Fixed (what I presume is a) typo
15699 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
15701 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
15702 X access (avoids X-Async errors)
15704 2005-03-16 Jackson Harper <jackson@ximian.com>
15706 * TabControl.cs: Raise the SelectedIndexChanged event.
15708 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
15710 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
15711 - Removed vertical ToolBar and replaced it with a custom panel
15712 (desktop and home button already work)
15713 - Added Help button (some controls get resized or relocated then)
15714 - Draw correct text depending on Open or Save.
15715 - Fixed some typos...
15717 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
15720 - Only change Maximum and Minimum when need it (bug fix)
15722 2005-03-15 Peter Bartok <pbartok@novell.com>
15724 * Form.cs: Use Handle for icon, to trigger creation if
15725 the window does not yet exist
15727 - CanSelect: Slight performance improvement
15728 - Focus(): Preventing possible recursion
15729 - Invalidate(): Removed ControlStyle based clear flag setting
15730 - WM_PAINT: fixed logic for calling OnPaintBackground
15731 - WM_ERASEBKGND: Fixed logic, added call to new driver method
15732 EraseWindowBackground if the control doesn't paint background
15734 - Moved EraseWindowBackground() method to internal methods
15735 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
15736 is sent via SendMessage on BeginPaint call on Win32
15738 - Added EraseWindowBackground() method
15739 - No longer sends WM_ERASEBKGND on .Expose, but on call to
15740 PaintEventStart, which more closely matches Win32 behaviour
15741 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
15742 - Fixed SetFocus() to properly deal with client and whole windows
15743 * Hwnd.cs: Added ErasePending property
15744 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
15745 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
15747 2005-03-12 Geoff Norton <gnorton@customerdna.com>
15750 - Fix hard loop when timers exist.
15751 - Fix bugs with middle and right click for 3 button mice.
15753 2005-03-11 Peter Bartok <pbartok@novell.com>
15756 - get_WorkingArea: Need to call X directly, GetWindowPos only
15757 returns cached data now
15758 - Added sanity check to GetWindowPos hwnd usage
15760 2005-03-11 Jackson Harper <jackson@ximian.com>
15762 * BindingManagerBase.cs: This method isn't used anymore as
15763 PullData now updates the data in the control.
15765 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
15767 * Form.cs: fixes menu drawing on X11
15768 * MenuAPI.cs: fixes menu drawing on X11
15770 2005-03-11 Peter Bartok <pbartok@novell.com>
15772 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
15773 from Jonathan Gilbert; should fix bug #73606
15774 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
15775 in Screen coordinates. Thanks, Jordi.
15776 * Form.cs: Added missing attribute
15778 2005-03-11 Peter Bartok <pbartok@novell.com>
15781 - Rudimentary Mdi support
15782 - Removed outdated FormParent code
15783 - Implemented lots of missing properties and methods, still missing
15784 transparency support
15785 - Added missing attributes
15786 - Implemented support for MaximumBounds
15787 - Added firing of various events
15788 * XplatUI.cs: Added SetIcon() method
15789 * XplatUIDriver.cs: Added SetIcon() abstract
15790 * XplatUIOSX.cs: Stubbed out SetIcon() method
15792 - Implemented SetIcon() support
15793 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
15794 - Switched to unix line endings
15796 - Made POINT internal so for can access it as part of MINMAX
15797 - Implemented SetIcon() support
15798 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
15799 native Mdi support again, might have to go managed)
15800 * Control.cs: Now fires the StyleChanged event
15801 * MdiClient.cs: Added; still mostly empty
15803 2005-03-10 Peter Bartok <pbartok@novell.com>
15805 * SaveFileDialog.cs: Added emtpy file
15807 2005-03-08 Peter Bartok <pbartok@novell.com>
15809 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
15810 in turn triggers OnCreateContro) when creating a handle for the
15812 * TextControl.cs: Fixed endless loop in certain cases when
15813 replacing the current selection
15815 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
15818 - Honors NewValue changes in Scroll events allowing apps to change it
15819 - Adds First and Last Scroll events
15820 - Fixes Thumb events
15822 2005-03-07 Peter Bartok <pbartok@novell.com>
15824 * Hwnd.cs: Added DefaultClientRectangle property
15825 * XplatUI.cs: Now using the X11 driver Where() method, which provides
15826 more detailed debug information
15828 - Fixed size-change feedback loop, where we would pull an old size
15829 off the queue and mistakenly change our window's size to an
15831 - Now compressing ConfigureNotify events, to reduce looping and
15833 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
15836 2005-03-07 Jackson Harper <jackson@ximian.com>
15838 * Binding.cs: Push data pushes from data -> property. Check if the
15839 property is readonly when attempting to set it.
15841 2005-03-07 Jackson Harper <jackson@ximian.com>
15843 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
15844 instead of IsSubclassOf. Pulling data now sets the value on the
15846 * PropertyManager.cs:
15847 * CurrencyManager.cs: Just need to pull data when updating now,
15848 because PullData will set the value on the control.
15850 2005-03-04 Jackson Harper <jackson@ximian.com>
15852 * Binding.cs: Implement data type parsing and converting on pulled
15853 data. TODO: Are there more ways the data can be converted?
15855 2005-03-04 Jackson Harper <jackson@ximian.com>
15857 * Binding.cs: Support <Property>IsNull checks. Also bind to the
15858 controls Validating method so we can repull the data when the
15859 control loses focus.
15861 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
15864 - Fixes null string format
15867 - Adds enum type checks
15868 - Fixes redrawing and recalc need after changing some properties
15869 - Fixes on focus_item set after the event
15870 - Fixes adding columns after the control has been created
15872 * ThemeWin32Classic.cs:
15873 - Fixes CheckBox focus rectangle
15874 - Fixes ColumnHeader drawing
15877 2005-03-03 Jackson Harper <jackson@ximian.com>
15879 * Binding.cs: Bind to <Property>Changed events so we can detect
15880 when properties are changed and update the data.
15882 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
15885 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
15886 - Fixes ImageList constructor with ImageList container
15887 - Fixes image scaling (wrong parameters at DrawImage)
15889 2005-02-02 Jackson Harper <jackson@ximian.com>
15891 * Binding.cs: Make property searches case-insensitive. Eliminate
15892 some duplicated code.
15894 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
15897 - Handle focus event
15898 - Fix scrollbar events
15899 - Discard highlighted item if remove it
15900 - Fixes SelectedItem with strings
15902 2005-03-01 Peter Bartok <pbartok@novell.com>
15905 - Fixed Visible property, now follows (once again) parent chain
15906 to return false if any control in the chain is visible=false
15907 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
15908 - Fixed several places where is_visible instead of Visible was used
15909 - Implemented FIXME related to focus selection when setting focused
15910 control to be invisible
15912 * XplatUIWin32.cs: Now using proper method to find out if window is
15913 visible. Thanks to Jordi for pointing it out
15915 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
15917 * ComboBox.cs: show/hide scrollbar instead of creating it
15919 2005-02-27 Jackson Harper <jackson@ximian.com>
15921 * CurrencyManager.cs: Add PositionChanged stuff.
15923 2005-02-27 Peter Bartok <pbartok@novell.com>
15925 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
15926 * XplatUIOSX.cs: Added GetMenuOrigin() stub
15927 * XplatUIWin32.cs: Implemented GetMenuOrigin()
15929 - Implemented GetMenuDC()
15930 - Implemented GetMenuOrigin()
15931 - Implemented ReleaseMenuDC()
15932 - Implemented generation of WM_NCPAINT message
15933 - Implemented generation and handling of WM_NCCALCSIZE message
15934 * Form.cs: Added debug helper message for Jordi's menu work
15936 - Modified ClientRect property; added setter, fixed getter to handle
15937 setting of ClientRect
15938 - Added MenuOrigin property
15940 2005-02-26 Peter Bartok <pbartok@novell.com>
15943 - Destroys the caret if a window that's being destroyed contains it
15944 - Ignores expose events coming from the X11 queue for windows that
15945 already are destroyed
15946 - Now uses the proper variable for handling DestroyNotify, before we
15947 marked the wrong window as destroyed
15948 - Improved/added some debug output
15950 2005-02-26 Peter Bartok <pbartok@novell.com>
15952 * X11Keyboard.cs: Fixes to work on 64bit systems
15954 2005-02-26 Peter Bartok <pbartok@novell.com>
15957 - Now calling OnHandleDestroyed from DestroyHandle()
15958 instead of Dispose()
15959 - Removed bogus call to controls.Remove() from DestroyHandle()
15961 2005-02-26 Peter Bartok <pbartok@novell.com>
15963 * Control.cs: Properly destroy child windows when our handle is
15966 2005-02-25 Peter Bartok <pbartok@novell.com>
15969 - Added 'DriverDebug' define to allow tracing XplatUI API calls
15970 - Alphabetized Static Methods and Subclasses
15973 - Added XException class to allow custom handling of X11 exceptions
15974 - Created custom X11 error handler, tied into XException class
15975 - Added support for MONO_XEXCEPTIONS env var to allow the user
15976 to either throw an exception on X errors or continue running
15977 after displaying the error
15978 - Added handling of DestroyNotify message
15979 - Added handler for CreateNotify message (still disabled)
15980 - Improved (tried to at least) Where method to provide file and lineno
15982 - Added XErrorHandler delegate
15983 - Added XRequest enumeration (to suppor translation of errors)
15985 2005-02-25 Jackson Harper <jackson@ximian.com>
15987 * PropertyManager.cs: Implement editing features
15988 * CurrencyManager.cs:
15989 * Binding.cs: First attempt at UpdateIsBinding
15990 * BindingManagerBase.cs: Call UpdateIsBinding before
15991 pushing/pulling data.
15993 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
15995 * MenuAPI.cs: Respect disabled items
15996 * ThemeWin32Classic.cs
15997 - Caches ImageAttributes creation for DrawImageDisabled
15998 - Fixes vertical menu line drawing
15999 - Draws disabled arrows in disable menu items
16001 2005-02-24 Peter Bartok <pbartok@novell.com>
16004 - Added UserData property to allow associating arbitrary objects
16006 - Fixed leak; now removing Hwnd references from static windows array
16008 - Fixed Graphics leak in PaintEventEnd
16009 - Removed usage of HandleData, switched over to Hwnd class
16010 * HandleData.cs: Removed, obsoleted by Hwnd.cs
16012 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16014 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
16015 * ScrollBar.cs: Fixes bug
16016 * TrackBar.cs: removes death code, clipping, mimize refreshes,
16017 keyboard navigation enhancements
16019 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
16021 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
16022 * GroupBox.cs: Add control styles
16023 * Label.cs: Add control styles
16024 * UpDownBase.cs: Add control styles
16025 * ListBox.cs: Add control styles
16026 * XplatUIWin32.cs: Fixes wrong parameter order
16029 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
16031 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
16033 2005-02-23 Jackson Harper <jackson@ximian.com>
16035 * PropertyManager.cs: Implement property binding. This doesn't
16036 seem to work yet though as (I think) there are some bugs in
16037 System.ComponentModel.PropertyDescriptor.
16038 * BindingContext.cs: Use new PropertyManager constructor.
16040 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
16042 * ProgressBar.cs: use clip region in ProgressBar
16043 * ThemeWin32Classic.cs: use clip region in ProgressBar
16045 2004-02-22 Jackson Harper <jackson@ximian.com>
16047 * BindingsCollection.cs: Remove some debug code.
16049 2005-02-22 Jackson Harper <jackson@ximian.com>
16051 * BindingContext.cs:
16052 * ControlBindingsCollection.cs:
16053 * CurrencyManager.cs:
16055 * BindingManagerBase.cs: Initial implementation
16056 * BindingsCollection.cs: Add an internal contains method that the
16057 BindingManagerBase uses to ensure bindings aren't added twice to
16059 * PropertyManager.cs: Stubbed out.
16061 * ContainerControl.cs: Hook up databinding
16063 2005-02-22 Geoff Norton <gnorton@customerdna.com>
16066 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
16067 Fixed Invalidate/Update chain.
16068 Fixed tons of other minor bugs (this is almost a complete rewrite).
16070 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
16072 * ComboBox.cs: do subcontrol creation when the control is created
16074 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16076 * Label.cs: fixes image drawing (image and imagelist)
16077 * ThemeWin32Classic.cs: cache brushes
16079 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16081 * Form.cs: Move menu drawing code to Theme class
16082 * ComboBox.cs: Move ComboBox drawing code to Theme class
16083 * MenuItem.cs: Move menu drawing code to Theme class
16084 * MenuAPI.cs: Move menu drawing code to Theme class
16085 * ThemeWin32Classic.cs: New methods
16086 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
16087 * ListBox.cs: Move Listbox drawing code to Theme class
16088 * Theme.cs: New methods
16090 2005-02-20 Peter Bartok <pbartok@novell.com>
16093 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
16094 only process mnemonics on those)
16095 - Fixed event sequence for key handling; first calling
16096 ProcessKeyEventArgs now
16098 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
16099 for processing non-character keys
16100 - Fixed WM_CHAR to generate proper event sequence before processing
16101 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
16104 2005-02-19 Peter Bartok <pbartok@novell.com>
16106 * UserControl.cs: Added TextChanged event; added attributes
16107 * SizeGrip.cs: Implemented resizing and optional display of grip
16108 * Form.cs: Fixed attribute
16109 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16110 Changed meaning of ScrollWindow bool argument; instead of the
16111 clear attribute (which will be true usually anyway), it gives the
16112 option of moving child controls as well.
16114 - Changed to match new ScrollWindow argument
16115 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
16116 now handles the implicit parent window a WM puts around us
16117 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
16119 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
16120 * TreeView.cs: Adjusted to new ScrollWindow arguments
16122 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
16124 * Form.cs: Menu integration with non-client area
16125 * MenuItem.cs: Menu integration with non-client area
16126 * MenuAPI.cs: Menu integration with non-client area
16128 2005-02-18 Peter Bartok <pbartok@novell.com>
16130 * MethodInvoker.cs: Added
16131 * MdiLayout.cs: Added
16132 * SendKeys.cs: Started implementation
16133 * ErrorIconAlignment.cs: Added
16135 2005-02-18 Peter Bartok <pbartok@novell.com>
16137 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
16138 * Form.cs: Added handling for Menu-related Non-client messages
16140 2005-02-17 Peter Bartok <pbartok@novell.com>
16142 * UpDownBase.cs: Fixed typo, compilation errors
16143 * DomainUpDown.cs: Fixed attribute value
16145 2005-02-16 Miguel de Icaza <miguel@novell.com>
16147 * UpDownBase.cs: Attach entry events.
16149 Add ForeColor property, Focused, InterceptArrowKeys (interception
16150 does not work yet).
16152 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
16155 - Redraw non client are on Setmenu
16156 - Calc proper menu starting point
16158 2005-02-17 Peter Bartok <pbartok@novell.com>
16160 * Application.cs: Fixed message_filter check
16162 2005-02-17 Peter Bartok <pbartok@novell.com>
16164 * Application.cs: Now calls registered message filters
16165 * DockStyle.cs: Fixed attribute
16166 * Form.cs: Fixed attribute
16167 * Menu.cs: Fixed attribute
16168 * ToolTip.cs: Fixed attribute
16169 * TreeNode.cs: Added missing attributes and arranged in regions
16170 * PropertyGrid.cs: Fixed signatures
16171 * TreeNodeCollection.cs: Added attributes
16172 * Splitter.cs: Added missing attributes; arranged into regions
16173 * TabPage.cs: Added missing attributes; arranged into regions
16174 * TextBoxBase.cs: Added missing attributes
16175 * TextBox.cs: Added missing attributes
16176 * ArrangeDirection.cs: Added missing attributes
16177 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
16178 * ToolBarButton.cs: Fixed attributes
16179 * AnchorStyles.cs: Fixed attribute
16180 * TrackBar.cs: Fixed attributes
16181 * TabControl.cs: Added missing attributes and arranged into regions
16182 * ToolBar.cs: Fixed attribute
16183 * StatusBar.cs: Fixed signature, organized into regions and added
16185 * StatusBarPanel.cs: Fixed attributes
16186 * ContentsResizedEventArgs.cs: Implemented
16187 * ContentsResizedEventHandler.cs: Implemented
16188 * DateBoldEventArgs.cs: Implemented
16189 * DateBoldEventHandler.cs: Implemented
16190 * UpDownEventArgs.cs: Implemented
16191 * UpDownEventHandler.cs: Implemented
16193 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
16195 * Form.cs: first Menu NC refactoring
16196 * MenuAPI.cs: first Menu NC refactoring
16198 2005-02-16 Peter Bartok <pbartok@novell.com>
16200 * ImeMode.cs: Added missing attributes
16201 * Menu.cs: Fixed attribute
16202 * GroupBox.cs: Fixed attribute
16203 * Label.cs: Fixed attribute
16204 * ColorDialog.cs (RunDialog): Removed TODO attribute
16205 * ComboBox.cs: Fixed attributes
16206 * ListControl.cs: Added missing attributes
16207 * PropertyGrid.cs: Fixed attributes
16208 * Control.cs: Fixed attributes
16209 * ListViewItem.cs: Added TypeConverter attribute
16210 * NotifyIcon.cs: Fixed attributes
16211 * ListView.cs: Fixed attributes
16212 * ButtonBase.cs: Fixed attribute
16213 * ImageList.cs: Added missing attributes
16214 * ContainerControl.cs: Fixed signature
16215 * CheckedListBox.cs: Fixed attribute; added missing attributes
16216 * Panel.cs: Fixed attributes
16217 * PropertyTabChangedEventArgs.cs: Added missing attribute
16218 * PropertyValueChangedEventArgs.cs: Added missing attribute
16219 * Binding.cs: Fixed attribute
16220 * ListViewItemConverter: Implemented ListViewSubItemConverter class
16221 * ListBox.cs: Fixed attribute; added missing attributes;
16222 * ScrollableControl.cs: Added missing attributes
16223 * PictureBox.cs: Added missing attributes; implemented missing property
16224 * DateTimePicker.cs: Added missing attributes
16225 * Theme.cs (ToolWindowCaptionHeight): Fixed type
16226 * MonthCalendar.cs: Fixed attributes
16227 * StatusBarPanel.cs: Added missing attributes
16228 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
16230 2005-02-16 Peter Bartok <pbartok@novell.com>
16232 * TextBoxBase.cs: The previous method to enforce height yet remember
16233 the requested high was less than ideal, this is an attempt to do
16235 * Control.cs: Added comment about possible problem
16236 * Copyright: Updated format
16237 * GridItemType.cs: Fixed swapped values
16239 2005-02-15 Jackson Harper <jackson@ximian.com>
16241 * BaseCollection.cs: Use property so we never access an
16242 uninitialized list. Also initialize the list in the property.
16244 2005-02-15 Peter Bartok <pbartok@novell.com>
16246 * GroupBox.cs (ProcessMnemonic): Implemented
16247 * Label.cs (ProcessMnemonic): Implemented
16248 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
16251 2005-02-15 Peter Bartok <pbartok@novell.com>
16253 * RadioButton.cs (ProcessMnemonic): Implemented
16254 * CheckBox.cs (ProcessMnemonic): Implemented
16256 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
16258 - Added internal method to allow calling ProcessMnemonic from other
16260 * ContainerControl.cs:
16261 - Started support for handling validation chain handling
16262 - Implemented ProcessMnemonic support
16263 - Added Select() call to Active, to make sure the active control
16265 * Form.cs: Setting toplevel flag for Forms (this was lost in the
16266 FormParent rewrite)
16267 * ThemeWin32Classic.cs:
16268 - DrawCheckBox(): Fixed stringformat to show hotkeys
16269 - DrawRadioButton(): Fixed stringformat to show hotkeys
16270 * CommonDialog.cs: Removed WndProc override, not needed
16272 2005-02-14 Peter Bartok <pbartok@novell.com>
16274 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
16275 missed those in the rewrite
16277 2005-02-14 Miguel de Icaza <miguel@novell.com>
16279 * NumericUpDown.cs (Increment, ToString): Add.
16280 (DecimalPlaces): implement.
16284 * UpDownBase.cs: Add the designer attributes.
16286 2005-02-13 Peter Bartok <pbartok@novell.com>
16288 * Panel.cs: Removed border_style, now in Control
16289 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
16290 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
16292 2005-02-13 Peter Bartok <pbartok@novell.com>
16294 * MouseButtons.cs: Added missing attributes
16295 * XplatUIStructs.cs: Added enumeration for title styles
16296 * LeftRightAlignment.cs: Added missing attributes
16297 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
16298 it compatible with Graphics.FromHwnd()
16299 * SelectedGridItemChangedEventArgs.cs: Fixed property type
16300 * Keys.cs: Added missing attributes
16301 * SelectionRange.cs: Added missing attributes
16302 * SelectionRangeConverter.cs: Added
16304 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
16305 ReleaseMenuDC methods
16306 - Renamed ReleaseWindow to UngrabWindow
16307 - Added proper startup notice to allow version identification
16309 - Added missing attributes
16310 - Removed FormParent concept
16311 * Label.cs: Removed border_style field, now in Control
16312 * RadioButton.cs: Now properly selects RadioButton when focus is
16314 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
16316 - Added missing attributes
16317 - Added borderstyle handling
16318 - Removed FormParent concept support
16319 - Fixed calls to XplatUI to match changed APIs
16320 - Fixed bug that would case us to use disposed Graphics objects
16321 - Removed unneeded internal methods
16322 - PerformLayout(): Fixed to handle DockStyle.Fill properly
16323 - SelectNextControl(): Fixed to properly check common parents
16324 * TextBoxBase.cs: Removed border_style field (now in Control)
16326 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
16327 fixed calculations for form size
16328 - Added support for localized strings and icons
16329 - Improved form size calculations, added border
16330 * ListView.cs: Removed border_style field (now in Control)
16331 * X11Structs.cs: Moved several structs from X11 driver here
16332 * X11Keyboard.cs: Changed debug message
16333 * Application.cs: Removed FormParent concept support
16335 - Resetting end_modal flag
16336 - Removed FormParent concept support
16337 * NativeWindow.cs: Removed FormParent concept support
16338 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
16339 Client area and Non-Client whole window to allow support for WM_NC
16341 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
16342 prevent using it until it supports Hwnd as per Geoff Norton's request
16343 * ToolBar.cs: Fixed drawing, was not doing proper drawing
16344 * PictureBox.cs: Removed border_style field, now in Control
16345 * XplatUIWin32.cs: Added new driver methods
16347 2005-02-12 Peter Bartok <pbartok@novell.com>
16349 * OpacityConverter.cs: Implemented
16350 * Hwnd.cs: Internal class to support drivers that need to emulate
16351 client area/non-client area window behaviour
16353 2005-02-11 Peter Bartok <pbartok@novell.com>
16355 * KeysConverter.cs: Implemented
16357 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
16359 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
16360 * LinkLabel: Added missing attributes
16361 * MainMenu.cs: fixes ToString
16362 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
16363 * ListBox.cs: fixes event position
16364 * TrackBar.cs: adds missing attributes and events
16366 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
16368 * MenuItem.cs: Use SystemInformation and bug fixes
16369 * MenuAPI.cs: Use SystemInformation and bug fixes
16371 2005-02-09 Jackson Harper <jackson@ximian.com>
16373 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
16374 their keystate otherwise things like VK_MENU get stuck "on".
16376 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
16378 * ListBox.cs: Fixes AddRange bug
16380 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
16383 - Add missing attributes
16384 - Add missing method
16386 * CheckedListBox.cs: Added missing attributes
16387 - Add missing attributes
16388 - Remove extra method
16390 * ComboBox.cs: Added missing attributes
16391 * VScrollBar.cs: Added missing attributes
16392 * ScrollBar.cs: Added missing attributes
16393 * ListBox.cs: Fixes signature, add missing consts
16394 * LinkArea.cs: Added missing attributes
16397 2005-02-08 Peter Bartok <pbartok@novell.com>
16399 * Menu.cs: Added missing attributes
16400 * MainMenu.cs: Added missing attributes
16401 * GroupBox.cs: Added missing attributes
16402 * Label.cs: Added missing attributes
16403 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
16405 - Added Instance and Options properties
16406 - Added missing attributes
16407 * Cursor.cs: Made Serializable
16408 * NotifyIcon: Added missing attributes
16409 * MenuItem.cs: Added missing attributes
16410 * TextBoxBase.cs: Implemented AppendText() and Select() methods
16411 * Panel.cs: Added Missing attributes
16412 * MonthCalendar.cs: Fixed CreateParams
16414 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16418 - Fixes issues with links
16419 - Adds the class attributes
16421 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
16424 - Fixes button when no items available in dropdown
16425 - Fixes repainting problems
16426 - Adds the class attributes
16428 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16430 * XplatUIOSX.cs: Detect the menu bar and title bar height from
16431 the current theme. Cache these on startup.
16433 2005-02-07 Jackson Harper <jackson@ximian.com>
16435 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
16436 the scrollbar buttons when they are depressed.
16438 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16440 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
16441 Get the display size from the main displayid. We currently dont
16442 support multiple display configurations.
16444 2005-02-07 Geoff Norton <gnorton@customerdna.com>
16446 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
16448 2005-02-07 Miguel de Icaza <miguel@novell.com>
16450 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
16452 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
16454 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
16456 2005-02-04 Jackson Harper <jackson@ximian.com>
16458 * ThemeWin32Classic.cs: Respect the clipping rect when
16459 drawing. Only fill the intersection of clips and rects so there
16460 isn't a lot of large fills.
16461 * ScrollBar.cs: Pass the correct clipping rect to the theme
16462 engine. Remove some debug code.
16464 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
16466 * DateTimePicker.cs:
16467 - Fixed crash on DateTime.Parse, use Constructor instead
16469 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16473 - Owner draw support (MeasureItem and DrawItem)
16475 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
16478 - Implements FindMergePosition and MergeMenu functions (very poor documented)
16479 - Fixes MenuItems.Add range
16481 - MergeMenu and Clone and CloneMenu functions
16483 2005-02-03 Jackson Harper <jackson@ximian.com>
16485 * ScrollBar.cs: Make abstract
16486 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
16489 2005-02-03 Jackson Harper <jackson@ximian.com>
16491 * ScrollBar.cs: First part of my scrollbar fixups. This removes
16492 all the unneeded refreshes and uses invalidates with properly
16495 2005-02-03 Peter Bartok <pbartok@novell.com>
16497 * ComponentModel.cs: Added
16498 * IDataGridEditingService.cs: Added
16499 * Timer.cs: Added missing attributes
16500 * ToolTip.cs: Added missing attributes
16502 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
16504 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
16506 2005-02-03 Peter Bartok <pbartok@novell.com>
16508 * ListBox.cs: Added missing attributes
16510 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
16513 - Fixes font height after font change
16514 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
16516 2005-02-02 Peter Bartok <pbartok@novell.com>
16518 * HandleData.cs: Introduced static methods to allow class
16519 to be more self-contained and track it's own HandleData objects
16520 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
16521 HandleData to use new static methods
16523 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
16526 - Fixes default size and PreferredHeight
16528 - ObjectCollection.Insert implementation
16534 - ObjectCollection.Insert implementation
16535 - No selection after clean
16538 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
16540 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
16542 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
16545 - Caches ItemHeight calculation for OwnerDrawVariable
16546 - Handles dropdown properly
16547 - Fixes several minor bugs
16549 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
16552 - Fixes 71946 and 71950
16553 - Fixes changing Multicolumn on the fly
16554 - Fixes keyboard navigation on Multicolumn listboxes
16556 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16558 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
16559 crash reporter log.
16561 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16563 * XplatUIOSX.cs: Allow applications to actually exit.
16565 2005-01-31 Geoff Norton <gnorton@customerdna.com>
16567 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
16568 their parent at creation time rather than lazily later. Fixes a major
16569 regression we were experiencing.
16571 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
16573 * ThemeWin32Classic.cs: more date time picker painting fixes
16574 * DateTimePicker.cs: more monthcalendar drop down fixes
16575 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
16577 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
16580 - When moving the thumb going outside the control should stop the moving
16581 - Adds the firing of missing events
16582 - Fixes no button show if Size is not specified
16583 - End / Home keys for keyboard navigation
16585 2005-01-30 Peter Bartok <pbartok@novell.com>
16587 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
16588 sanity check to prevent theoretical loop
16589 * XplatUIWin32.cs (SetVisible): Removed debug output
16590 * XplatUIX11.cs (SystrayChange): Added sanity check
16591 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
16592 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
16593 behaviour, valid until the X11 client window rewrite is done
16594 * TextBox.cs (ctor): Setting proper default foreground and background
16597 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
16599 * Theme: Added DrawDateTimePicker to interface
16600 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
16601 * DateTimePicker.cs: Created (still needs keys and painting code)
16602 * DateTimePickerFormat.cs: added
16603 * MonthCalendar.cs: fixed CreateParams for popup window mode
16605 2005-01-29 Peter Bartok <pbartok@novell.com>
16607 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
16608 this should also the calculations for ligher/darker
16609 * Theme.cs: Fixed defaults for ScrollBar widths/heights
16611 2005-01-29 Peter Bartok <pbartok@novell.com>
16613 * ArrangeDirection.cs: Added
16614 * ArrangeStartingPositon.cs: Added
16615 * SystemInformation.cs: Implemented
16616 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16617 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
16618 used by SystemInformation class
16619 * X11Strucs.cs: Added XSizeHints structure
16621 - Fixed CreateParams to make sure the menu window is always visible
16622 - TrackPopupMenu: Added check to make sure we don't draw the
16625 2005-01-29 Peter Bartok <pbartok@novell.com>
16627 * HandleData.cs: Added method for altering invalid area
16628 * TextBoxBase.cs: Implemented TextLength
16630 2005-01-28 Peter Bartok <pbartok@novell.com>
16632 * XplatUIX11.cs: Improvement over last patch, not sending
16633 the WM_PAINT directly anymore, instead we scroll any pending
16634 exposed areas and let the system pick out the WM_PAINT later
16636 2005-01-28 Peter Bartok <pbartok@novell.com>
16638 * SWF.csproj: Deleted, no longer used. Instead,
16639 Managed.Windows.Forms/SWF.csproj should be used
16640 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
16641 directly, to avoid a potential race condition with the next
16644 2005-01-28 Peter Bartok <pbartok@novell.com>
16646 * XplatUI.cs: Made class internal
16648 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
16650 * CheckedListBox.cs:
16653 - Missing methods and events
16655 2005-01-27 Peter Bartok <pbartok@novell.com>
16657 * Application.cs (Run): Don't use form if we don't have one
16659 2005-01-27 Peter Bartok <pbartok@novell.com>
16661 * TextBoxBase.cs (get_Lines): Fixed index off by one error
16663 2005-01-27 Peter Bartok <pbartok@novell.com>
16665 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
16666 * GridItem.cs: Added; Patch by Jonathan S. Chambers
16667 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
16668 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
16669 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
16670 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
16671 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
16672 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
16673 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
16674 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
16675 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
16676 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
16678 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
16681 - Draw focus on Simple Combobox
16682 - Fixes drawing issues
16685 2005-01-27 Peter Bartok <pbartok@novell.com>
16688 - Place window in default location, instead of hardcoded 0/0
16689 - Send initial LocationChanged event
16691 - UpdateBounds after creation to find out where the WM placed us
16692 - Make sure that if the ParentForm changes location the Form
16694 * XplatUIX11.cs: XGetGeometry will not return the coords relative
16695 to the root, but to whatever the WM placed around us.
16696 Translate to root coordinates before returning toplevel
16698 * XplatUIWin32.cs: Removed debug output
16699 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
16700 flag to GetWindowPos, to allow translation of coordinates on X11
16702 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
16704 * ListBox.cs: connect LostFocus Event
16706 2005-01-27 Peter Bartok <pbartok@novell.com>
16708 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16709 XplatUIX11.cs: Extended the Systray API
16710 * Form.cs: Removed debug output
16711 * Application.cs: Fixed focus assignment, always need to call
16712 XplatUI.Activate() since Form.Activate() has rules that may
16714 * NotifyIcon.cs: Should be complete now
16715 * ToolTip.cs: Worked around possible timer bug
16717 2005-01-27 Jackson Harper <jackson@ximian.com>
16720 - Only invalidate the effected tabs when the
16721 selected index changes. This reduces drawing and gets rid of some
16723 - Only refresh if the tabs need to be shifted, otherwise only
16724 invalidate the slider button.
16725 - On windows the tabs are not filled to right if the slider is
16728 2005-01-27 Jackson Harper <jackson@ximian.com>
16730 * TabControl.cs: Only refresh on mouseup if we are showing the
16731 slider. Also only invalidate the button whose state has changed.
16733 2005-01-26 Peter Bartok <pbartok@novell.com>
16735 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
16736 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
16737 and SystrayRemove() methods
16738 * XplatUIOSX.cs: Stubbed Systray methods
16740 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
16742 - Fixed broken XChangeProperty calls (marshalling messed up things)
16743 * X11Structs.cs: Added enums and structs required for Size hinting
16744 * NotifyIcon.cs: Added & implemented
16746 2005-01-26 Jackson Harper <jackson@ximian.com>
16748 * TabControl.cs: Space vertically layed out tabs properly.
16750 2005-01-26 Peter Bartok <pbartok@novell.com>
16752 * Form.cs (CreateClientParams): Always set the location to 0,0
16753 since we're a child window.
16755 * Control.cs (SetVisibleCore): Always explicitly setting the location
16756 of a toplevel window, apparently X11 doesn't like to move windows
16757 while they're not mapped.
16759 2005-01-26 Jackson Harper <jackson@ximian.com>
16761 * TabControl.cs: Implement FillToRight size mode with vertically
16764 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
16766 * ControlPaint.cs, ThemeWin32Classic.cs
16767 - Fixes DrawFocusRectangle
16769 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
16772 - MenuBar tracking only starts when item is first clicked
16773 - Fixes menu hidding for multiple subitems
16774 - Unselect item in MenuBar when item Executed
16777 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
16780 - IsInputKey for ListBox
16783 - Shift and Control item selection
16784 - Implement SelectionMode.MultiExtended
16785 - Fixes RightToLeft
16787 - IsInputKey implemented
16788 - Do not generate OnTextChangedEdit on internal txt changes
16790 2005-01-23 Peter Bartok <pbartok@novell.com>
16792 * AccessibleObject.cs: Partially implemented Select()
16793 * MonthCalendar.cs: Added missing attributes and events
16794 * Form.cs: Fixed CreateParams behaviour, now controls derived from
16795 form can properly override CreateParams.
16796 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16797 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
16798 Control performs Invalidate & Update
16799 * NativeWindow (CreateHandle): Added special handling for Form
16800 and Form.FormParent classes to allow overriding of From.CreateParams
16802 - ControlNativeWindow: Renamed 'control' variable to more intuitive
16804 - ControlNativeWindow: Added Owner property
16805 - Removed usage of Refresh() on property changes, changed into
16806 Invalidate(), we need to wait until the queue is processed for
16807 updates, direct calls might cause problems if not all vars for
16808 Paint are initialized
16809 - Added call to UpdateStyles() when creating the window, to set any
16810 styles that CreateWindow might have ignored.
16811 - Added support for Form CreateParent overrides to UpdateStyles()
16812 * MessageBox.cs: Removed no longer needed FormParent override stuff,
16813 CreateParams are now properly overridable
16814 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
16815 CreateParams are now properly overridable
16817 2005-01-23 Miguel de Icaza <miguel@ximian.com>
16819 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
16822 Capture LostFocus and OnTextBoxChanged. The later introduces a
16823 recursive invocation that I have not figured out yet.
16825 Reset the timer when not using (it was accumulating).
16828 (OnTextBoxChanged): Set UserEdit to true here to track whether the
16829 user has made changes that require validation.
16831 Reset changing to avoid loops.
16833 2005-01-22 Miguel de Icaza <miguel@ximian.com>
16835 * NumericUpDown.cs: Display value at startup.
16837 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
16840 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
16841 filled in. Added some basic parsing of text.
16843 Still missing the OnXXX method overrides, and figuring out the
16844 events that must be emitted.
16846 * UpDownBase.cs: Handle UserEdit on the Text property.
16848 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
16851 - Fixes IntegralHeight
16854 2005-01-21 Jackson Harper <jackson@ximian.com>
16856 * TabControl.cs: Set the SelectedIndex property when SelectedTab
16857 is set so that the page visibility is updated and the tabs are
16860 2005-01-21 Jackson Harper <jackson@ximian.com>
16862 * TabControl.cs: Use cliping rectangle for blitting. Give the
16863 theme the clipping rect so we can do clipping while
16864 drawing. Remove some debug code.
16866 2005-01-21 Jackson Harper <jackson@ximian.com>
16868 * TabPage.cs: Add a new method so tab pages can force the tab
16869 control to recalculate the tab page sizes.
16870 * TabControl.cs: UpdateOwner needs to make the tab control recalc
16873 2005-01-20 Jackson Harper <jackson@ximian.com>
16875 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
16877 2005-01-20 Jackson Harper <jackson@ximian.com>
16879 * TreeView.cs: Set the bounds for nodes properly. They were
16880 getting screwed up when checkboxes were not enabled, but images
16883 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
16886 - Owner draw support
16889 2005-01-20 Jackson Harper <jackson@ximian.com>
16891 * XplatUIStructs.cs: More misc keys
16892 * X11Keyboard.cs: Ignore some control keys.
16894 2005-01-20 Jackson Harper <jackson@ximian.com>
16896 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
16897 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
16899 2005-01-19 Peter Bartok <pbartok@novell.com>
16901 * Control.cs: Un-selecting the control when it is loosing focus
16903 2005-01-19 Jackson Harper <jackson@ximian.com>
16905 * TreeView.cs: Hook up to the text controls leave event so we can
16906 end editing when the users clicks outside the text box.
16908 2005-01-19 Jackson Harper <jackson@ximian.com>
16910 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
16911 get set in the conversion array.
16913 2005-01-19 Peter Bartok <pbartok@novell.com>
16915 * Application.cs (ModalRun): Added a call to CreateControl to ensure
16916 focus is properly set
16918 - Added missing attributes
16919 - removed styles, those are already set in the base class
16921 - Added missing attributes
16922 - Added clip window styles
16923 * CheckBox.cs: Added missing attributes
16925 - FormParentWindow.CreateParams: Added required clip styles
16926 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
16927 also filters modifier keys
16929 - Added assignment of Accept and Cancel button to enable Enter
16930 and Esc keys in MessageBox dialogs
16931 - FormParentWindow.CreateParams: Added required clip styles
16932 * RadioButton.cs: Added missing attributes
16933 * TextControl.cs: No longer draws selection if control does not
16936 - Now draws simple rectangle around test area to make it obvious
16937 there's a control. This is a hack until we properly support borders
16938 - A few simple fixes to support selections better, now erases selected
16939 text when typing, and resets selection when using movement keys
16941 2005-01-19 Miguel de Icaza <miguel@ximian.com>
16943 * UpDownBase.cs: Added some new properties.
16945 * DomainUpDown.cs: Implement a lot to get my test working.
16947 2005-01-19 Geoff Norton <gnorton@customerdna.com>
16949 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
16951 2005-01-19 Geoff Norton <gnorton@customerdna.com>
16953 * OSXStructs (WindowAttributes): Fixed csc complaints
16955 2005-01-19 Geoff Norton <gnorton@customerdna.com>
16958 OSXStructs.cs: Initial refactor to move enums and consts into
16959 OSXStructs and use them in the driver for greater readability.
16961 2005-01-19 Geoff Norton <gnorton@customerdna.com>
16963 * XplatUIOSX.cs: Initial support for Standard Cursors.
16964 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
16966 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
16968 * ComboBox.cs: ability to change style when the ctrl is already
16969 created, missing methods and events, bug fixes, signature fixes
16971 2005-01-19 Peter Bartok <pbartok@novell.com>
16973 * Cursors.cs (ctor): Added ctor to fix signature
16975 2005-01-18 Peter Bartok <pbartok@novell.com>
16977 * Button.cs: Implemented DoubleClick event
16979 - Fixed keyboard handling to behave like MS, where the press of
16980 Spacebar is equivalent to a mousedown, and the key release is
16981 equivalent to mouseup. Now a spacebar push will give the same
16982 visual feedback like a mouse click.
16983 - Added missing attributes
16984 - Added ImeModeChanged event
16985 - Added support for generating DoubleClick event for derived classes
16987 - Implemented DoubleClick event
16988 - Added missing attributes
16989 * CommonDialog.cs: Added missing attribute
16990 * ContextMenu.cs: Added missing attributes
16992 - AutoChecked buttons do not allow to be unselected when clicked
16993 (otherwise we might end up with no selected buttons in a group)
16994 - Added missing attributes
16995 - Implemented DoubleClickEvent
16996 * ThreadExceptionDialog.cs: Enabled TextBox code
16998 2005-01-18 Peter Bartok <pbartok@novell.com>
17000 * Form.cs: Removed debug output
17001 * Button.cs: Added support for DoubleClick method
17003 2005-01-18 Peter Bartok <pbartok@novell.com>
17006 - Added method to parent window that allows triggering size
17007 calculations when a menu is added/removed
17008 - set_Menu: Cleaned up mess from early days of Form and Control,
17009 now properly triggers a recalc when a menu is added/removed
17010 - Added case to select form itself as focused form if no child
17012 - Added PerformLayout call when showing dialog, to ensure properly
17015 - Select(): Made internal so Form can access it
17016 - Focus(): Only call Xplat layer if required (avoids loop), and sets
17018 * Application.cs (Run): Removed hack and calls PerformLayout instead
17019 to trigger calculation when Form becomes visible
17021 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
17023 * ComboBox.cs: fixes for ownerdraw
17025 2005-01-18 Peter Bartok <pbartok@novell.com>
17028 - Sentinel is no longer static, each Document gets it's own, this
17029 avoids locking or alternatively overwrite problems when more
17030 than one text control is used simultaneously.
17031 - Switched to use Hilight and HilightText brushes for text selection
17033 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
17035 2005-01-18 Peter Bartok <pbartok@novell.com>
17038 - Hooked up the following events:
17046 o SystemColorsChanged
17047 o ParentFontChanged
17049 - Removed debug output
17050 - Added a call to the current theme's ResetDefaults when a color change
17052 * Form.cs: Now setting the proper ImeMode
17053 * Theme.cs: Defined a method to force recreation of cached resources
17054 and rereading of system defaults (ResetDefaults())
17055 * ThemeWin32Classic.cs: Added ResetDefaults() stub
17057 2005-01-17 Peter Bartok <pbartok@novell.com>
17059 * Control.cs: Added missing attributes
17061 2005-01-17 Jackson Harper <jackson@ximian.com>
17063 * TreeNode.cs: Implement editing. Add missing properties selected
17065 * TreeView.cs: Implement node editing. Also some fixes to use
17066 Invalidate (invalid area) instead of Refresh when selecting.
17068 2005-01-17 Peter Bartok <pbartok@novell.com>
17071 - Implemented InvokeGotFocus() method
17072 - Implemented InvokeLostFocus() method
17073 - Implemented InvokePaint() method
17074 - Implemented InvokePaintBackground() method
17075 - Implemented InvokeClick() method
17076 - Implemented FindForm() method
17077 - Implemented RectangleToClient() method
17078 - Implemented ClientToRectangle() method
17079 - Implemented ResetBackColor() method
17080 - Implemented ResetCursor() method
17081 - Implemented ResetFont() method
17082 - Implemented ResteForeColor() method
17083 - Implemented ResetImeMode() method
17084 - Implemented ResetLeftToRight() method
17085 - Implemented ResetText() method
17086 - Implemented Scale() methods
17087 - Implemented ScaleCore() method
17088 - Implemented Update() method
17089 - Removed unused variables
17090 - Stubbed AccessibilityNotifyClients and
17091 ControlAccessibleObject.NotifyClients() methods (dunno what to do
17093 - Now setting proper default for RightToLeft property
17094 - Fixed bug in SetClientSizeCore that would cause windows to get
17096 - Now sending Click/DoubleClick events
17097 - Now selecting controls when left mouse button is clicked on
17099 * AccessibleEvents.cs: Added
17100 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
17101 * XplatUIOSX.cs: Stubbed UpdateWindow() method
17102 * XplatUIWin32.cs: Implemented UpdateWindow() method
17103 * XplatUIX11.cs: Implemented UpdateWindow() method
17104 * Form.cs: Removed stray semicolon causing CS0162 warning
17105 * ThemeWin32Classic.cs: Fixed unused variable warnings
17106 * ScrollableControl.cs: Now calls base method for ScaleCore
17107 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
17108 style to avoid interference with internal click handler (which is
17109 different than standard Control click handling)
17111 - Now unchecks all sibling radio buttons when control is
17112 selected (Fixes #68756)
17113 - Removed internal tabstop variable, using the one inherited from
17116 2005-01-17 Jackson Harper <jackson@ximian.com>
17118 * NavigateEventArgs.cs: Fix base type.
17119 * LinkLabel.cs: Sig fix
17121 2005-01-17 Jackson Harper <jackson@ximian.com>
17123 * TreeView.cs: Only invalidate the effected nodes bounds when
17126 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17128 * XplatUIWin32.cs: fixes Win32 marshaling
17129 * XplatUIX11.cs: fixes method signature
17131 2005-01-17 Peter Bartok <pbartok@novell.com>
17133 * XplatUIX11.cs: Clean up resources when we no longer need them
17135 2005-01-17 Peter Bartok <pbartok@novell.com>
17137 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
17138 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
17139 and DestroyCursor() methods.
17140 * Cursor.cs: Partially implemented, now supports standard cursors;
17141 still contains some debug code
17142 * Cursors.cs: Implemented class
17144 - WndProc(): Added handling of WM_SETCURSOR message, setting the
17146 - Implemented Cursor property
17147 - Replaced break; with return; more straightforwar and possibly
17149 - Now properly setting the result for WM_HELP
17150 * X11Structs.cs: Added CursorFontShape enum
17151 * XplatUIStructs.cs:
17152 - Added StdCursor enum (to support DefineStdCursor() method)
17153 - Added HitTest enum (to support sending WM_SETCURSOR message)
17155 - Now sends the WM_SETCURSOR message
17156 - Implemented new cursor methods
17157 * XplatUIOSX.cs: Stubbed new cursor methods
17159 - Implemented new cursor methods
17160 - Added GetSystemMetrics function and associated enumeration
17162 2005-01-15 Peter Bartok <pbartok@novell.com>
17165 - WndProc(): Now handles EnableNotifyMessage
17166 - SelectNextControl(): Fixed bug where if no child or sibling
17167 controls exist we looped endlessly
17169 2005-01-14 Jackson Harper <jackson@ximian.com>
17171 * TreeView.cs: Recalculate the tab pages when a new one is added
17172 so that the proper bounding rects are created.
17174 2005-01-14 Jackson Harper <jackson@ximian.com>
17176 * TreeView.cs: Draw a gray box instead of a grip in the lower
17177 right hand corner when there are both horizontal and vertical
17180 2005-01-14 Jackson Harper <jackson@ximian.com>
17182 * Control.cs: When erasing backgrounds use FromHwnd instead of
17183 FromHdc when there is a NULL wparam. This occurs on the X driver.
17184 * XplatUIX11.cs: Set the wparam to NULL.
17186 2005-01-13 Jackson Harper <jackson@ximian.com>
17188 * PictureBox.cs: Implement missing methods (except ToString, need
17189 to test that on windows) and events. When visibility is changed we
17190 need to redraw the image because the buffers are killed. When size
17191 is changed refresh if the sizemode needs it.
17193 2005-01-13 Peter Bartok <pbartok@novell.com>
17195 * Control.cs (SelectNextControl): Was using wrong method to select
17198 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17200 * ComboBox.cs: fixes dropstyle
17202 2005-01-13 Peter Bartok <pbartok@novell.com>
17205 - Implemented Select() override
17206 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
17207 - Now sets keyboard focus on startup
17208 * Control.cs (SelectNextControl): Now properly handles directed=true
17210 - WndProc: Now passes tab key on to base if AcceptTabChar=false
17211 - Added (really bad) focus rectangle (mostly for testing)
17212 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
17213 to enforce redraw on focus changes
17214 * ContainerControl.cs:
17215 - Fixed detection of Shift-Tab key presses
17216 - Fixed traversal with arrow keys
17217 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
17218 gonna keep this or if it's complete yet
17220 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
17222 * ComboBox.cs: missing properties, fixes
17224 2005-01-13 Peter Bartok <pbartok@novell.com>
17226 * Panel.cs (ctor): Setting Selectable window style to off
17227 * Splitter.cs (ctor): Setting Selectable window style to off
17228 * GroupBox.cs (ctor): Setting Selectable window style to off
17229 * Label.cs (ctor): Setting Selectable window style to off
17231 2005-01-12 Miguel de Icaza <miguel@ximian.com>
17233 * UpDownBase.cs (InitTimer): If the timer has been already
17234 created, enable it.
17236 Use a TextBox instead of a Label.
17238 2005-01-12 Jackson Harper <jackson@ximian.com>
17240 * TreeView.cs: Refresh the tree after sorting the nodes. Always
17241 draw the connecting node lines (when ShowLines is true).
17242 * TreeNode.cs: The nodes index can now be updated. This is used
17243 when a node collection is sorted.
17244 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
17245 insert or an existing unsorted node collection can be sorted.
17247 2005-01-12 Peter Bartok <pbartok@novell.com>
17249 * ContainerControl.cs: Implemented ProcessDialogKeys()
17251 2005-01-12 Peter Bartok <pbartok@novell.com>
17254 - Implemented SelectNextControl() method
17255 - Several focus related bug fixes
17256 - Fixed Docking calculations to match MS documentation and
17259 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
17261 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
17264 2005-01-12 Peter Bartok <pbartok@novell.com>
17267 - Fixed broken Contains() method
17268 - Implemented GetNextControl() method. Finally. This is the pre-
17269 requisite for focus handling.
17271 2005-01-12 Peter Bartok <pbartok@novell.com>
17273 * OSXStrucs.cs: Added
17275 2005-01-12 Peter Bartok <pbartok@novell.com>
17278 - Removed PeekMessageFlags
17279 - Implemented SetWindowStyle() method
17280 * XplatUIStructs.cs: Added PeekMessageFlags
17281 * X11Structs: Added missing border_width field to XWindowChanges struct
17283 - PeekMessage: Now throws exception if flags which are not yet
17284 supported are passed
17285 - Implemented SetWindowStyle() method
17286 - Fixed SetZOrder to handle AfterHwnd properly
17287 * XplatUI.cs: Added SetWindowStyle() method
17288 * XplatUIDriver.cs: Added SetWindowStyle() abstract
17290 - Implemented UpdateStyles() method
17291 - Implemented UpdateZOrder() method
17292 * XplatUIOSX.cs: Added SetWindowStyle() stub
17294 2005-01-12 Geoff Norton <gnorton@customerdna.com>
17296 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
17300 2005-01-11 Jackson Harper <jackson@ximian.com>
17302 * TreeView.cs: Still need to draw lines to siblings even if out of
17303 the current node is out of the clip.
17305 2005-01-11 Jackson Harper <jackson@ximian.com>
17307 * TreeView.cs: When setting the hbar/vbar/grip position use
17308 SetBounds so that perform layout is only called once. Also suspend
17309 and resume layout so layout is only done once for all controls.
17310 - Removed some debug fluff
17311 * SizeGrip.cs: Call base implmentation in overriding methods.
17312 - When visibility is changed the drawing buffers are killed so we
17315 2005-01-11 Jackson Harper <jackson@ximian.com>
17317 * TreeView.cs: Calculate the open node count while drawing. This
17318 saves us an entire tree traversal for every paint operation. Use
17319 a member var for the open node count so less vars are passed around.
17321 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
17323 * MonthCalendar.cs:
17324 - fixed selection to use mousemove, not mouse polling on timer
17325 * ThemeWin32Classic.cs
17326 - removed redundant unused variable "no_more_content"
17328 2005-01-11 Peter Bartok <pbartok@novell.com>
17330 * XplatUIX11.cs (DoEvents): Needs to return when no more events
17331 are pending, so it now calls PeekMessage instead of GetMessage;
17332 implemented a incomplete version of PeekMessage
17334 2005-01-11 Peter Bartok <pbartok@novell.com>
17336 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
17338 * TextBoxBase.cs: Added sending of TextChanged event
17340 2005-01-10 Jackson Harper <jackson@ximian.com>
17342 * TreeView.cs: Try not to draw outside the clipping rectangle on
17345 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
17347 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
17349 2005-01-10 Jackson Harper <jackson@ximian.com>
17352 - Implement fast scrolling. Now only the newly
17353 exposed nodes are drawn and the old image is moved using the
17354 XplatUI::ScrollWindow method.
17355 - Factor in height of nodes when calculating whether or not the
17356 node is in the clipping rect.
17358 2005-01-10 Jackson Harper <jackson@ximian.com>
17360 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
17362 2005-01-10 Peter Bartok <pbartok@novell.com>
17364 * Application.cs: Added temporary hack to resolve all our resize
17365 required issues on startup. This will get fixed properly at
17366 some point in the future
17368 2005-01-10 Jackson Harper <jackson@ximian.com>
17370 * SizeGrip.cs: New internal class that is used as a sizing
17371 grip control...hence the name.
17373 2005-01-10 Peter Bartok <pbartok@novell.com>
17375 * Control.cs: Implemented proper TabIndex handling, now assigning
17376 a tabindex when a control is added to a container
17377 * GroupBox.cs (ctor): Now sets the Container style bit, required
17378 for Control.GetNextControl()
17380 2005-01-09 Jackson Harper <jackson@ximian.com>
17382 * TextBoxBase.cs: Clear window when scrolling (fixes build).
17384 2005-01-09 Peter Bartok <pbartok@novell.com>
17386 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17387 XplatUIX11.cs: Added ability to control ScrollWindow expose and
17388 an overload for ScrollWindow to allow only scrolling a rectangle
17390 2005-01-09 Peter Bartok <pbartok@novell.com>
17393 - Implemented SetDesktopBounds method
17394 - Implemented SetDesktopLocation method
17396 2005-01-08 Jackson Harper <jackson@ximian.com>
17398 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
17399 the node count has changed, this removes to VScroll::Refresh calls
17402 2005-01-08 Geoff Norton <gnorton@customerdna.com>
17404 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
17406 2005-01-07 Jackson Harper <jackson@ximian.com>
17408 * TreeNode.cs: Just update the single node when it is
17409 checked. Don't refresh after toggling, the Expand/Collapse already
17411 * TreeView.cs: Respect clipping a little more when drawing. Try
17412 not to redraw things that don't need to be redrawn. Just hide the
17413 scrollbars when they are no longer needed instead of removing
17414 them, so they don't have to be created again and again.
17416 2005-01-07 Geoff Norton <gnorton@customerdna.com>
17418 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
17419 coordinates to window space to place the caret properly, FIXED.
17420 Implement GetWindowState & SetWindowState
17422 2005-01-06 Peter Bartok <pbartok@novell.com>
17425 - Implemented ClientSize property
17426 - Implemented DesktopBounds property
17427 - Implemented DesktopLocation property
17428 - Implemented IsRestrictedWindow property
17429 - Implemented Size property
17430 - Implemented TopLevel property
17431 - Implemented FormWindowState property
17433 - Implemented GetTopLevel() method
17434 - Implemented SetTopLevel() method
17435 * X11Structs.cs (Atom):
17436 - Added AnyPropertyType definition
17437 - Added MapState definiton and updated XWindowAttribute struct
17438 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
17439 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
17440 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
17442 - Implemented GetWindowState() and SetWindowState() methods
17443 - Fixed Win32GetWindowLong return type
17445 - Introduced central function for sending NET_WM messages
17446 - Implemented GetWindowState() and SetWindowState() methods
17447 * TextBoxBase.cs (set_Lines):
17448 - Now uses Foreground color for text added via Text property (Duh!)
17449 - Added code to remember programmatically requested size (fixes
17450 behaviour when Multiline is set after Size)
17451 - Added AutoSize logic
17453 2005-01-06 Jackson Harper <jackson@ximian.com>
17455 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
17457 2005-01-06 Jackson Harper <jackson@ximian.com>
17459 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
17460 set to less then 0.
17462 2005-01-06 Jackson Harper <jackson@ximian.com>
17464 * ScrollableControl.cs: Lazy init the scrollbars.
17466 2005-01-06 Jackson Harper <jackson@ximian.com>
17468 * Theme.cs: Speed up getting pens and solid brushes, by using
17469 their ARGB as a hash instead of tostring and not calling Contains.
17471 2005-01-06 Peter Bartok <pbartok@novell.com>
17474 - Implemented OnActivated and OnDeactivate event trigger
17475 - Implemented Activate() method
17476 - Fixed ShowDialog() to activate the form that was active before
17477 the dialog was shown
17479 - Added global active_window var that tracks the currently active
17481 - Now always grabs Property changes from the root window to always
17482 catch changes on the active window property
17483 - Added code to PropertyNotify handler to send Active/Inactive
17484 messages when state changes. This puts X11 and Win32 en par on
17485 WM_ACTIVATE notifications (except for double notifications when
17486 the user clicks away from our modal window to another one of our
17489 2005-01-05 Jackson Harper <jackson@ximian.com>
17491 * ImageList.cs: Implment ctor
17493 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17495 * XplatUIOSX.cs: Implement Activate/SetTopmost
17497 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17499 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
17501 2005-01-05 Geoff Norton <gnorton@customerdna.com>
17503 * XplatUIOSX.cs: Implement GetActive/SetFocus.
17505 2005-01-05 Peter Bartok <pbartok@novell.com>
17507 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
17508 XplatUIOSX.cs: Added GetActive method to return the currently
17509 active window for the application (or null, if none is active)
17511 - Implemented ActiveForm
17512 - Commented out owner assignment for modal dialogs (causes problems
17513 on Win32, since the owner will be disabled)
17514 - Reworked some Active/Focus handling (still incomplete)
17515 * CommonDialog.cs: Commented out owner assignment for modal dialogs
17516 (causes problems on Win32, since the owner will be disabled)
17517 * IWin32Window: Added ComVisible attribute
17519 2005-01-05 Peter Bartok <pbartok@novell.com>
17521 * ToolTip.cs (WndProc): Enable setting focus now that we have the
17522 required XplatUI functions.
17524 2005-01-05 Peter Bartok <pbartok@novell.com>
17526 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
17527 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
17528 to implement focus and activation handling; still incomplete and
17531 2005-01-04 Peter Bartok <pbartok@novell.com>
17533 * TextBoxBase.cs: Changed access level for Document property to
17534 match switch to internal for TextControl
17536 2005-01-04 Peter Bartok <pbartok@novell.com>
17538 * AccessibleObject: Added ComVisible attribute
17540 2005-01-04 Jackson Harper <jackson@ximian.com>
17542 * X11Keyboard.cs: Remove unneeded var.
17544 2005-01-04 Jackson Harper <jackson@ximian.com>
17546 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
17548 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
17549 ClientMessage. This makes apps exit cleanly (more often).
17551 2005-01-04 Jackson Harper <jackson@ximian.com>
17553 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
17554 handling focus, return correct colors and fonts,
17555 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
17556 handle selection, horizontal scrolling, and mouse interaction.
17558 2005-01-04 Peter Bartok <pbartok@novell.com>
17560 * ICommandExecutor.cs: Added
17561 * IDataGridColumnStyleEditingNotificationService.cs: Added
17562 * IFeatureSupport.cs: Added
17563 * IFileReaderService.cs: Added
17564 * IDataObject.cs: Added ComVisible attribute
17565 * AmbientProperties.cs: Added
17566 * BaseCollection.cs: Added missing attributes
17567 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
17568 * BaseCollection.cs: Added missing attributes
17569 * Binding.cs: Added TypeConverter attribute
17570 * BindingContext.cs: Added DefaultEvent attribute
17571 * BindingsCollection.cs: Added DefaultEvent attribute
17572 * Button.cs: Added DefaultValue attribute
17573 * DragEventArgs.cs: Added ComVisible attribute
17574 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
17575 * KeyEventArgs.cs: Added ComVisible attribute
17576 * KeyPressEventArgs.cs: Added ComVisible attribute
17577 * MouseEventArgs.cs: Added ComVisible attribute
17578 * NavigateEventArgs.cs: Added
17579 * NavigateEventHandler.cs: Added
17580 * FeatureSupport.cs: Added
17581 * OSFeature.cs: Added
17582 * Theme.cs: Added abstract Version property to support OSFeature
17583 * ThemeWin32Classic.cs: Added Version property to
17584 support OSFeature.Themes
17585 * ProgressBar.cs: Removed OnPaintBackground override, not required since
17586 the proper styles to avoid background drawing are set, also doesn't
17588 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
17589 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
17590 * ScrollEventArgs.cs: Added ComVisible attribute
17591 * SplitterEventArgs.cs: Added ComVisible attribute
17592 * AccessibleSelection.cs: Added Flags attribute
17593 * Appearance.cs: Added ComVisible attribute
17594 * Border3DSide.cs: Added ComVisible attribute
17595 * Border3DStyle.cs: Added ComVisible attribute
17596 * BorderStyle.cs: Added ComVisible attribute
17597 * DragAction.cs: Added ComVisible attribute
17598 * ErrorBlinkStyle.cs: Added
17599 * ScrollEventType.cs: Added ComVisible attribute
17600 * AnchorStyles.cs: Added Editor attribute
17601 * DockStyle.cs: Added Editor attribute
17602 * HorizontalAlignment.cs: Added ComVisible attribute
17603 * HelpEventArgs.cs: Added ComVisible attribute
17604 * PaintEventArgs.cs: Added IDisposable
17606 2005-01-04 Peter Bartok <pbartok@novell.com>
17608 * TextControl.cs: Switched Line, LineTag and Document classes to
17611 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
17613 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
17614 Simple mode, fixes, IntegralHeight, etc.
17616 2005-01-04 Peter Bartok <pbartok@novell.com>
17618 * TextBoxBase.cs: Using proper font variable now
17620 2005-01-04 Peter Bartok <pbartok@novell.com>
17622 * Form.cs (ShowDialog): Set parent to owner, if provided
17623 * GroupBox.cs: Removed unused vars
17625 - Added GetHashCode() for Document and LineTag classes
17626 - Removed unused variables
17627 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
17628 to allow translation between continuous char position and line/pos
17629 * CheckBox.cs: Removed vars that are provided by base class
17630 * RadioButton.cs: Removed vars that are provided by base class, added
17631 new keyword where required
17632 * LinkLabel.cs: Added new keyword where required
17633 * Control.cs (WndProc): Removed unused variable
17635 - Finished SelectionLength property
17636 - Implemented SelectionStart property
17637 - Implemented Text property
17638 - Removed unused vars
17639 * MessageBox.cs: Added new keyword where required
17640 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
17642 * MenuAPI.cs: Added new keyword where required
17643 * ButtonBase.cs: Removed vars that are provided by base class, added
17644 new keyword where required
17645 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
17646 argument to double, to allow compiling with csc 2.0 (Atsushi ran
17648 * Application.cs (Run): Now triggers the ThreadExit event
17649 * CommonDialog.cs: Added new keyword where required; now properly sets
17650 parent (owner) for dialog
17651 * XplatUIX11.cs: Commented out unused vars
17652 * StatusBar.cs: Fixed signature for Text property
17653 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
17655 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
17657 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
17658 TrackBar.cs, MonthCalendar.cs: remove unused vars
17660 2005-01-03 Jackson Harper <jackson@ximian.com>
17662 * ThemeWin32Classic.cs:
17663 * X11Keyboard.cs: Remove unused vars.
17665 2005-01-03 Peter Bartok <pbartok@novell.com>
17668 - set_Text: Tied into TextControl
17669 - set_TextAlignment: Tied into TextControl
17671 - Added alignment properties and implemented alignment handling
17672 and drawing (still has a bug, not generating proper expose events)
17673 - Added new Line() constructor to allow passing the line alignment
17674 - Fixed selection setting, properly handling end<start now
17675 - Added aligment considerations to RecalculateDocument()
17677 - Now properly enforces control height for single line controls
17678 - Added support for CharacterCasing
17679 - Added IsInputKey override
17680 - Fixed Keys.Enter logic
17681 - Added SetBoundsCore override
17682 - Fixed mouse selection handling
17684 2005-01-03 Jackson Harper <jackson@ximian.com>
17687 - Collapse and uncheck all nodes when CheckBoxes is disabled.
17688 - Checkboxes are always aligned to the bottom of the node,
17689 regardless of item height.
17690 - Use the node bounds to draw the text so we can center it when
17691 the item height is greater then the font height.
17692 - Node::Bounds are only the text part of the node.
17693 * TreeNode.cs: New method to combine collapsing and unchecking all
17696 2005-01-02 Jackson Harper <jackson@ximian.com>
17698 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
17699 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
17700 tree when a check is changed. TODO: Only refresh the checked node.
17702 2004-12-30 Jackson Harper <jackson@ximian.com>
17704 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
17705 * TreeNode.cs: When collapsing make sure to never collapse the
17708 2004-12-29 Jackson Harper <jackson@ximian.com>
17710 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
17712 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
17714 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
17716 2004-12-28 Peter Bartok <pbartok@novell.com>
17718 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
17721 2004-12-28 Peter Bartok <pbartok@novell.com>
17723 * Control.cs (WndProc): Added WM_HELP handler, now generates
17724 HelpRequested event
17725 * Form.cs: Added HelpButton property and required support code
17726 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
17728 2004-12-28 Peter Bartok <pbartok@novell.com>
17731 - Made DialogForm.owner variable internal
17732 - Added check to ensure owner form is set before setting
17733 owner properties in CreateParams
17735 2004-12-28 Geoff Norton <gnorton@customerdna.com>
17737 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
17738 swizzling. Implement ClientToScreen and ScreenToClient. Implement
17739 GetCursorPos. Fix major visibility issues. Rework the windowing
17740 system to support borderless/titleless windows (implements menus).
17741 Fix GetWindowPos. Implement initial background color support for
17744 2004-12-28 Peter Bartok <pbartok@novell.com>
17746 * Form.cs (get_CreateParams): Make sure we have an owner before using
17747 the owner variable. Implement proper default if no owner exists
17749 2004-12-28 Peter Bartok <pbartok@novell.com>
17751 * In preparation for making Managed.Windows.Forms the default build target
17752 for System.Windows.Forms, the following stubbed files were added.
17753 Dialogs are currently being implemented by contributors and are only
17754 short-term place holders.
17755 * ColorDialog.cs: Initial check-in (minmal stub)
17756 * DataGrid.cs: Initial check-in (minimal stub)
17757 * DataGridLineStyle.cs: Initial check-in (minimal stub)
17758 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
17759 * DataGridTableStyle.cs: Initial check-in (minimal stub)
17760 * FontDialog.cs: Initial check-in (minimal stub)
17761 * FileDialog.cs: Initial check-in (minimal stub)
17762 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
17763 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
17764 * OpenFileDialog: Initial check-in (minimal stub)
17765 * IComponentEditorPageSite.cs: Initial check-in
17766 * Splitter.cs: Initial check-in (for Jackson)
17767 * SplitterEventArgs.cs: Initial check-in (for Jackson)
17768 * SplitterEventHandler.cs: Initial check-in (for Jackson)
17769 * TextBox.cs: Initial check-in; still needs some wiring to
17770 TextControl backend
17771 * Form.cs: Implemented ControlBox property
17772 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
17773 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
17774 * TextControl.cs: Added selection functionality; added todo header
17776 - Implemented Lines property
17777 - Implemented TextHeight property
17778 - Implemented SelectedText property
17779 - Implemented SelectionLength property
17780 - Implemented SelectAll method
17781 - Implemented ToString method
17782 - Removed and cleaned up some debug code
17783 - Implemented (still buggy) mouse text selection
17785 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
17787 * ComboBox.cs: Complete DropDownList implementation, fixes.
17789 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
17791 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
17792 * ComboBoxStyle.cs: ComboBoxStyle enum
17793 * ComboBox.cs: Initial work on ComboBox control
17795 2004-12-21 Peter Bartok <pbartok@novell.com>
17797 * Control.cs (ctor, CreateParams): Moved setting of is_visible
17798 forward so that anything that creates a window gets the default,
17799 also no longer uses Visible property in CreateParams to avoid
17800 walking up the parent chain and possibly get the wrong visible
17801 status. Fixed IsVisible to no longer walk up to the parent.
17803 2004-12-21 Peter Bartok <pbartok@novell.com>
17805 * Form.cs (ShowDialog): Unset modality for the proper window
17807 2004-12-20 Peter Bartok <pbartok@novell.com>
17809 * CommonDialog.cs: Initial check-in
17811 2004-12-20 Peter Bartok <pbartok@novell.com>
17813 * Control.cs (Visible): Now uses the parent window instead of the
17814 client area window for the property
17817 - ShowDialog(): Now uses the proper window for modality
17818 - The default visibility state for the form parent is now false. This
17819 will prevent the user from seeing all the changes to the form and
17820 its controls before the application hits Application.Run()
17821 - Removed some stale commented out code
17824 - Added FindWindow() method to have a method to check for existence
17826 - Added ability to override default exception handling (for example
17827 when debugging with VS.Net; to do this the ExternalExceptionHandler
17829 - Removed some useless debug output
17832 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
17833 not working as expected
17834 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
17835 property to allow switching back to the modal window if focus is
17836 given to another one of our windows (Application Modal)
17837 - Now only sets override_redirect if we create a window
17839 - Moved EventMask selection before mapping of newly created window
17840 so we can catch the map event as well
17841 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
17842 - Added various Atom related DllImports
17843 - Implemented Exit() method
17844 - .ctor() : No longer shows window if WS_VISIBLE is not defined
17845 in the CreateParams
17847 * MessageBox.cs: Now properly deals with the FormParent window by
17848 providing an override the FormParent CreateParams property to
17849 set as POPUP instead of OVERLAPPED window.
17851 2004-12-19 Geoff Norton <gnorton@customerdna.com>
17853 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
17854 Minor code cleanup.
17856 2004-12-19 Geoff Norton <gnorton@customerdna.com>
17858 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
17860 2004-12-18 Peter Bartok <pbartok@novell.com>
17862 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
17863 implementing SetModal() method
17865 2004-12-18 Peter Bartok <pbartok@novell.com>
17867 * X11Structs.cs (XGCValues): Fixed type of function element
17868 * XplatUI.cs: Added ScrollWindow() method
17869 * XplatUIDriver.cs: Added ScrollWindow() abstract
17870 * XplatUIWin32.cs: Implemented ScrollWindow() method
17871 * XplatUIX11.cs: Implemented ScrollWindow() method
17872 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
17874 2004-12-17 Geoff Norton <gnorton@customerdna.com>
17876 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
17877 Some more keyboard support (INCOMPLETE)
17879 2004-12-17 Peter Bartok <pbartok@novell.com>
17882 - Added color attribute to line tags.
17883 - Added color argument to all functions dealing with tags
17884 - Added color argument support to various functions
17885 - Fixed miss-calculation of baseline/shift in certain circumstances
17887 * TextBoxBase.cs: Added new color option to test code
17889 2004-12-17 Jackson Harper <jackson@ximian.com>
17892 * MonthCalendar.cs: Signature fixes
17894 2004-12-17 Geoff Norton <gnorton@customerdna.com>
17896 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
17897 keyboard event moved it. Create a new graphics context for each paint resolves this
17899 2004-12-17 Geoff Norton <gnorton@customerdna.com>
17901 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
17902 Make caret exist and go blink blink. Initial keyboard support.
17903 Fix exception handler, Add Invalidate support. Change way RefreshWindow
17906 2004-12-17 Jackson Harper <jackson@ximian.com>
17908 * XplatUIStructs.cs: Updated set of virtual keycodes.
17909 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
17911 2004-12-17 Jackson Harper <jackson@ximian.com>
17913 * XplatUIX11.cs: Prune old keyboard code.
17915 2004-12-17 Jackson Harper <jackson@ximian.com>
17917 * XplatUIX11.cs: When generating mouse wparams get the modifier
17918 keys from the ModifierKeys property.
17920 2004-12-17 Jackson Harper <jackson@ximian.com>
17922 * X11Keyboard.cs: Send up/down input when generating
17923 messages. Remove some unused vars.
17925 2004-12-17 Jackson Harper <jackson@ximian.com>
17928 * TreeView.cs: get rid of warnings.
17930 2004-12-17 Jackson Harper <jackson@ximian.com>
17932 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
17934 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
17936 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
17937 CheckedListBox.cs: Implementation
17939 2004-12-17 Peter Bartok <pbartok@novell.com>
17941 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
17943 2004-12-16 Peter Bartok <pbartok@novell.com>
17946 - InsertCharAtCaret(): Fixed start pos fixup
17947 - CaretLine_get: No longer derives the line from the tag, the tag
17948 could be stale if lines in the document have been added or deleted
17949 - RebalanceAfterDelete(): Fixed bug in balancing code
17950 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
17951 - Line.Streamline(): Now can also elminate leading empty tags
17952 - DumpTree(): Added a few more tests and prevented exception on
17954 - Added Debug section for Combining lines
17955 - Delete(): Now copies all remaining properties of a line
17958 - Left mousebutton now sets the caret (and middle button still acts
17959 as formatting tester, which must go away soon)
17960 - Added Debug section for Deleting/Combining lines
17961 - Fixed calculations for UpdateView after Combining lines
17963 2004-12-16 Peter Bartok <pbartok@novell.com>
17965 * TextControl.cs: Now properly aligns text on a baseline, using the
17966 new XplatUI.GetFontMetrics() method. Simplified several calculations
17967 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
17970 2004-12-16 Peter Bartok <pbartok@novell.com>
17972 * XplatUI.cs: Added GetFontMetrics() method
17973 * XplatUIDriver.cs: Added GetFontMetrics() abstract
17974 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
17975 into libgdiplus, our private GetFontMetrics function
17976 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
17977 * XplatUIWin32.cs: Implemented GetFontMetrics() method
17979 2004-12-16 Jackson Harper <jackson@ximain.com>
17981 * XplatUIStruct.cs: Add enum for dead keys
17982 * X11Keyboard.cs: Map and unmap dead keys.
17984 2004-12-16 Jackson Harper <jackson@ximian.com>
17986 * X11Keyboard.cs: Detect and use the num lock mask.
17988 2004-12-16 Peter Bartok <pbartok@novell.com>
17990 * Control.cs (CreateGraphics): Added check to make sure the
17991 handle of the window exists before calling Graphics.FromHwnd()
17993 2004-12-16 Peter Bartok <pbartok@novell.com>
17995 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
17996 contains a lot of code that's not supposed to be there for the
17997 real thing, but required for developing/testing the textbox
18000 2004-12-16 Peter Bartok <pbartok@novell.com>
18003 - Fixed Streamline method
18004 - Added FindTag method to Line
18005 - Added DumpTree method for debugging
18006 - Added DecrementLines() method for deleting lines
18007 - Fixed UpdateView to update the cursor to end-of-line on single-line
18009 - Added PositionCaret() method
18010 - Fixed MoveCaret(LineDown) to move into the last line, too
18011 - Added InsertChar overload
18012 - Fixed InsertChar tag offset calculations
18013 - Added DeleteChar() method
18014 - Added Combine() method for folding lines
18015 - Fixed Delete() method, no longer allocates wasted Line object and
18016 now copies all properties when swapping nodes
18017 - Delete() method now updates document line counter
18019 2004-12-15 Jackson Harper <jackson@ximian.com>
18021 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
18022 * X11Keyboard.cs: Expose the currently selected modifier keys
18023 through a property.
18025 2004-12-15 Peter Bartok <pbartok@novell.com>
18027 * TextControl.cs: Initial check-in. Still incomplete
18029 2004-12-15 Jackson Harper <jackson@ximian.com>
18032 * TreeView.cs: Fix build on csc (second time today ;-))
18034 2004-12-15 Jackson Harper <jackson@ximian.com>
18036 * TreeView.cs: Store the treenodes plus/minus box bounds when it
18037 is calculated and use this for click testing.
18038 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
18040 2004-12-15 Jackson Harper <jackson@ximian.com>
18042 * TreeView.cs: Pass the nodes image index to the image list when
18043 drawing that image.
18045 2004-12-15 Jackson Harper <jackson@ximian.com>
18047 * X11Keyboard.cs: Set messages hwnd.
18048 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
18049 post_message calls.
18051 2004-12-15 Jackson Harper <jackson@ximian.com>
18053 * X11Keyboard.cs: Fix to compile with csc.
18055 2004-12-15 Jackson Harper <jackson@ximian.com>
18057 * X11Structs.cs: Add key mask values
18058 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
18059 * X11Keyboard.cs: New file - Extrapolates and interpolates key
18060 down/up foo into WM_CHAR foo
18061 * KeyboardLayouts.cs: Common keyboard layouts
18062 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
18063 post messages into the main queue.
18065 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
18067 * Button.cs: implement ProcessMnemonic
18068 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
18070 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
18071 * ButtonBase.cs: Show HotkeyPrefix (not the &)
18073 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
18075 * MonthCalendar.cs: Implemented click-hold for next/previous month
18078 2004-12-11 Peter Bartok <pbartok@novell.com>
18081 - Added XKeyboardState (moved from XplatUIX11.cs)
18082 - Added XCreateGC related enums and structures
18083 - Added GXFunction for XSetFunction
18085 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
18087 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
18088 CaretVisible() calls
18090 * ToolTip.cs: Added code to prevent stealing focus from app windows
18092 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
18093 DestroyCaret, SetCaretPos and CaretVisible)
18096 - Added implementation for caret functions
18097 - Moved hover variables into a struct, to make it a bit easier
18098 on the eyes and to debug
18099 - Removed XKeyboardState (moved to XplatUIX11.cs)
18100 - Moved Keyboard properties into the properties region
18102 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
18103 call to get a graphics context for our control
18105 * XplatUIOSX.cs: Added empty overrides for the new caret functions
18107 * TreeView.cs: Fixed bug. No matter what color was set it would always
18108 return SystemColors.Window
18110 * XplatUIWin32.cs: Implemented caret overrides
18112 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
18114 * ListBox.cs: fire events, implement missing methods and properties,
18117 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
18119 * MonthCalendar.cs: invalidation bug fixing
18120 * ThemeWin32Classic.cs: paint fixing
18122 2004-12-09 Geoff Norton <gnorton@customerdna.com>
18124 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
18125 prepare the CGContextRef there now.
18127 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
18129 * MonthCalendar.cs:
18130 - optimisationL only invalidate areas that have changed
18131 * ThemeWin32Classic.cs:
18132 - only paint parts that intersect with clip_area
18134 2004-12-09 Peter Bartok <pbartok@novell.com>
18136 * Application.cs: Undid changes from r37004 which cause problems
18139 2004-12-09 Ravindra <rkumar@novell.com>
18141 * ToolBar.cs: Added support for displaying ContextMenu
18142 attached to a button on ToolBar.
18143 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
18146 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18148 * Label.cs: autosize works in text change and removes unnecessary
18151 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
18153 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
18156 2004-12-08 Geoff Norton <gnorton@customerdna.com>
18158 * XplatUIOSX.cs: Added mouse move/click/grab support
18159 Remove some debugging WriteLines not needed anymore.
18160 Add window resizing/positioning.
18161 Fix visibility on reparenting.
18163 2004-12-08 Peter Bartok <pbartok@novell.com>
18165 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
18167 2004-12-07 Geoff Norton <gnorton@customerdna.com>
18169 * XplatUIOSX.cs: Initial checkin
18170 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
18172 2004-12-03 Ravindra <rkumar@novell.com>
18174 * ListView.cs: Added some keybindings and fixed scrolling.
18175 ScrollBars listen to ValueChanged event instead of Scroll
18176 Event. This would let us take care of all changes being
18177 done in the scrollbars' values programmatically or manually.
18178 * ListView.cs (CanMultiselect): Added a check for shift key.
18179 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
18180 * ListViewItem.cs (Clone): Fixed. We need to make a copy
18181 of ListViewSubItemCollection as well.
18183 2004-12-06 Peter Bartok <pbartok@novell.com>
18185 * Control.cs (Parent): Added check and exception to prevent
18188 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
18190 * ListBox.cs: implemented clipping, selection single and multiple,
18193 2004-12-03 Ravindra <rkumar@novell.com>
18195 * ListView.cs (ListView_KeyDown):
18196 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
18197 when CTRL key is pressed.
18198 * ListViewItem.cs (Selected): Fixed setting the property.
18200 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18202 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
18204 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
18205 MinimizeBox, ShowInTaskbar, TopMost properties.
18207 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
18208 will be implemented).
18210 2004-12-03 Marek Safar <marek.safar@seznam.cz>
18212 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
18214 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
18217 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
18219 * TreeView.cs: BackColor is Colors.Window.
18221 2004-12-01 Jackson Harper <jackson@ximian.com>
18223 * TreeView.cs: When resizing the tree if the user is making it
18224 smaller we don't get expose events, so we need to handle adding
18225 the horizontal scrollbar in the size changed handler as well as
18226 the expose handler.
18228 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
18230 * DrawItemState.cs: fixes wrong enum values
18232 2004-12-01 Jackson Harper <jackson@ximian.com>
18234 * TreeView.cs: Resize the hbar as well as the vbar on resize.
18236 2004-12-01 Jackson Harper <jackson@ximian.com>
18238 * NodeLabelEditEventArgs.cs:
18239 * NodeLabelEditEventHandler.cs:
18240 * OpenTreeNodeEnumerator.cs:
18242 * TreeNodeCollection.cs:
18244 * TreeViewAction.cs:
18245 * TreeViewCancelEventArgs.cs:
18246 * TreeViewCancelEventHandler.cs:
18247 * TreeViewEventArgs.cs:
18248 * TreeViewEventHandler.cs: Initial implementation.
18250 2004-12-01 Ravindra <rkumar@novell.com>
18252 * ListView.cs (CalculateListView): Fixed scrolling related
18253 calculations. Also, removed some debug statements from other
18255 * ListViewItem.cs: Changed access to 'selected' instance variable
18256 from private to internal.
18257 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
18259 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
18261 * ThemeWin32Classic.cs: remove cache of brush and pens for
18262 specific controls and use the global system, fixes scrollbutton
18263 bugs (for small sizes, disabled, etc)
18265 * ScrollBar.cs: does not show the thumb for very small controls
18266 (as MS) and allow smaller buttons that the regular size
18268 2004-12-01 Miguel de Icaza <miguel@ximian.com>
18270 * UpDownBase.cs: Add abstract methods for the interface.
18271 Add new virtual methods (need to be hooked up to TextEntry when it
18273 Add override methods for most features.
18274 Computes the size, forces the height of the text entry.
18276 * NumericUpDown.cs: Put here the current testing code.
18278 * Set eol-style property on all files that do not have mixed line
18279 endings, to minimize the future problems. There are still a few
18280 files with mixed endings, and someone should choose whether they
18281 want to move it or not.
18283 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
18285 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
18288 2004-11-30 Ravindra <rkumar@novell.com>
18290 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
18291 drawing and replaced use of SystemColors by theme colors.
18292 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
18293 * ListView.cs (ListViewItemCollection.Add): Throw exception when
18294 same ListViewItem is being added more than once.
18296 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
18298 * MonthCalendar.cs:
18299 - ControlStyles love to make the control not flicker
18301 2004-11-30 Peter Bartok <pbartok@novell.com>
18303 * CharacterCasing.cs: Added
18305 2004-11-29 Peter Bartok <pbartok@novell.com>
18307 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18308 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
18309 I am removing these files as they conflict with already completed
18310 work. While it is fantastic to get contributions to MWF, I
18311 respectfully ask that everyone please coordinate their contributions
18312 through mono-winforms-list or #mono-winforms at this time. We're
18313 explicitly avoiding stubbing and don't want controls that don't have
18314 their basic functionality implemented in svn. Please also see
18315 http://www.mono-project.com/contributing/winforms.html
18318 2004-11-29 Marek Safar <marek.safar@seznam.cz>
18320 * Application.cs (ModalRun): Don't hang after exit.
18322 * Theme.cs: New TreeViewDefaultSize property.
18324 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
18325 with less hardcoded SystemColors constant.
18326 Implemented TreeViewDefaultSize.
18328 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18329 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
18332 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
18334 * MonthCalendar.cs:
18335 - Fix NextMonthDate and PrevMonthDate click moving calendar
18337 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18339 * MonthCalendar.cs:
18340 - Fix usage of ScrollChange Property when scrolling months
18342 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
18344 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
18345 - Fixes menu destroying
18346 - Support adding and removing items on already created menus
18348 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
18350 * MonthCalendar.cs:
18351 - Re-worked all bolded dates handling to match win32
18352 * ThemeWin32Classic.cs:
18353 - Fixed rendering with bolded dates
18355 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
18357 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
18358 - Horizontal scroolbar
18363 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
18365 * MonthCalendar.cs:
18366 - Fix Usage of MaxSelectionCount from SelectionRange
18367 - Fixed Shift + Cursor Selection
18368 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
18369 - Fixed normal cursor selection to be compat with win32
18370 - Fixed Shift + Mouse Click selection
18372 2004-11-24 Peter Bartok <pbartok@novell.com>
18374 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
18375 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
18377 - CreatedKeyBoardMsg now updates keystate with Alt key
18378 - Added workaround for timer crash to CheckTimers, Jackson will
18379 develop a proper fix and check in later
18380 - Implemented DispatchMessage
18381 - Removed calling the native window proc from GetMessage (call
18382 now moved to DispatchMessage)
18384 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
18385 the keydata (Fixes bug #69831)
18388 - (DispatchMessage): Switched to return IntPtr
18389 - Added DllImport for SetFocus
18391 2004-11-24 Ravindra <rkumar@novell.com>
18393 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
18394 background drawing.
18395 * ListViewItem.cs: Fixed various properties, calculations
18396 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
18397 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
18398 and some internal properties. Fixed MouseDown handler and Paint
18401 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18403 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
18405 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18407 * ContainerControl.cs: correct accidental check in of local changes
18409 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
18411 * ThemeWin32Classic.cs:
18412 - Fixed Drawing Last month in grid (sometimes not showing)
18413 * MonthCalendar.cs:
18414 - Fixed title width calculation bug (makeing title small)
18416 2004-11-23 Peter Bartok <pbartok@novell.com>
18419 - Added generation of WM_MOUSEHOVER event
18420 - Added missing assignment of async_method atom
18421 - Fixed WM_ERASEBKGND; now only redraws the exposed area
18423 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18425 * ThemeWin32Classic.cs:
18426 - Fixed Drawing of today circle when showtodaycircle not set
18427 - fixed drawing of first and last month in the grid (gay dates)
18428 * MonthCalendar.cs:
18429 - Fixed Drawing of today circle
18430 - Fixed drawing of grady dates
18431 - Fixed HitTest for today link when ShowToday set to false
18432 - Fixed DefaultSize to obey ShowToday
18434 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
18436 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
18437 * System.Windows.Forms/Theme.cs
18438 * MonthCalendar.cs: added for MonthCalendar
18439 * SelectionRange.cs: added for MonthCalendar
18440 * Day.cs: added for MonthCalendar: added for MonthCalendar
18441 * DateRangeEventArgs.cs: added for MonthCalendar
18442 * DateRangeEventHandler.cs: added for MonthCalendar
18444 2004-11-22 Ravindra <rkumar@novell.com>
18446 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
18449 2004-11-22 Miguel de Icaza <miguel@ximian.com>
18451 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
18454 * NumericUpDown.cs: Added new implementation.
18455 * UpDownBase.cs: Added new implementation.
18457 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
18460 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
18463 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
18466 2004-11-21 Miguel de Icaza <miguel@ximian.com>
18468 * Timer.cs (Dispose): Should call the base dispose when
18471 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18473 * ScrollBar.cs: updates thumb position when max, min or increment
18476 2004-11-21 Ravindra <rkumar@novell.com>
18478 * ListView.cs: Implemented item selection, activation and
18479 column header style. Fixed properties to do a redraw, if
18480 required. Added support for MouseHover, DoubleClick, KeyDown
18481 and KeyUp event handling and some minor fixes.
18482 * ListViewItem.cs: Fixed constructor.
18483 * ThemeWin32Classic.cs: Improved drawing for ListView.
18485 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
18487 * ThemeWin32Classic.cs: initial listbox drawing code
18488 * DrawMode.cs: new enumerator
18489 * ListControl.cs: stubbed class
18490 * ListBox.cs: initial implementation
18491 * Theme.cs: new methods definitions
18492 * SelectionMode.cs: new enumerator
18494 2004-11-17 Peter Bartok <pbartok@novell.com>
18496 * XplatUIWin32.cs: Added double-click events to the class style
18497 * Control.cs (WndProc):
18498 - Added handling of click-count to MouseDown/ MouseUp events.
18499 - Added handling of middle and right mouse buttons
18500 - Removed old debug code
18502 2004-11-17 Jackson Harper <jackson@ximian.com>
18504 * XplatUIX11.cs: Use the new Mono.Unix namespace.
18506 2004-11-17 Ravindra <rkumar@novell.com>
18508 * ListView.cs: Added event handling for MouseMove/Up/Down.
18509 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
18510 * ThemeWin32Classic.cs: We need to clear the graphics context and
18511 draw column header in a proper state.
18514 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
18516 * Menu.cs: fixes signature
18518 2004-11-16 Peter Bartok <pbartok@novell.com>
18520 * XplatUIX11.cs (GetMessage): Implemented generation of
18521 double click mouse messages
18523 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
18525 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
18528 2004-11-11 Peter Bartok <pbartok@novell.com>
18530 * HandleData.cs: Added Visible property
18531 * XplatUIX11.cs (IsVisible): Now uses Visible property from
18533 * XplatUIX11.cs: Removed old debug leftovers
18534 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
18535 * Control.cs (WndProc): Removed old debug leftovers,
18536 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
18537 needed WM_SIZE handling
18539 2004-11-11 Jackson Harper <jackson@ximian.com>
18541 * OwnerDrawPropertyBag.cs:
18542 * TreeViewImageIndexConverter.cs: Initial implementation
18544 2004-11-10 Jackson Harper <jackson@ximian.com>
18546 * ThemeWin32Classic.cs:
18547 * TabControl.cs: instead of moving tabs by the slider pos just
18548 start drawing at the tab that is offset by the slider. This way
18549 scrolling always moves by exactly one tab.
18551 2004-11-10 Jackson Harper <jackson@ximian.com>
18553 * TabControl.cs: You can only scroll left when the slider has
18554 already ben moved right.
18556 2004-11-10 Jackson Harper <jackson@ximian.com>
18558 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
18561 2004-11-10 Jackson Harper <jackson@ximian.com>
18563 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
18566 2004-11-09 Jackson Harper <jackson@ximian.com>
18568 * TabControl.cs (CalcXPos): New helper method so we can determine
18569 the proper place to start drawing vertical tabs.
18570 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
18572 2004-11-09 Jackson Harper <jackson@ximian.com>
18574 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
18575 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
18576 and Bottom, left and right are illegal values for this and
18577 multiline is enabled when the alignment is set to left or right.
18578 (DrawTab): Each alignment block should draw the text itself now
18579 because Left requires special love. Also add rendering for Left
18582 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
18584 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
18585 does not destroy the windows, removes debugging messages
18587 2004-11-09 jba <jba-mono@optusnet.com.au>
18589 * ThemeWin32Classic.cs
18590 (DrawButtonBase): Fix verticle text rect clipping in windows
18591 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
18592 rendering and incorrect text rect clipping
18593 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
18594 rendering and incorrect text rect clipping
18596 2004-11-08 Jackson Harper <jackson@ximian.com>
18598 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
18599 bottom when they are bottom aligned so the bottoms of the tabs get
18601 * TabControl.cs (DropRow): Move rows up instead of down when the
18602 tab control is bottom aligned.
18604 2004-11-08 13:59 pbartok
18607 - Added handling for various window styles
18608 - Added handling for popup windows
18609 - Added SetTopmost handling
18611 2004-11-08 13:55 pbartok
18614 - Added argument to SetTopmost method
18615 - Fixed broken ClientToScreen function
18617 2004-11-08 13:53 pbartok
18619 * XplatUIStructs.cs:
18620 - Added missing WS_EX styles
18622 2004-11-08 13:53 pbartok
18624 * XplatUI.cs, XplatUIDriver.cs:
18625 - Added argument to SetTopmost
18627 2004-11-08 13:52 pbartok
18630 - Added XSetWindowAttributes structure
18631 - Improved XWindowAttributes structure
18632 - Added SetWindowValuemask enum
18633 - Added window creation arguments enum
18634 - Added gravity enum
18635 - Added Motif hints structure
18636 - Added various Motif flags and enums
18637 - Added PropertyMode enum for property functions
18639 2004-11-08 13:50 pbartok
18642 - Fixed arguments for updated SetTopmost method
18644 2004-11-08 13:49 pbartok
18647 - Fixed arguments for updated SetTopmost function
18648 - Fixed usage of PointToClient
18650 2004-11-08 13:44 pbartok
18653 - Added Clipping of children and siblings
18655 2004-11-08 13:41 pbartok
18658 - Removed SetMenuBarWindow call. We do this in Form.cs
18660 2004-11-08 13:40 jackson
18662 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
18663 scrolling jimmi in the correct location with bottom aligned tabs
18665 2004-11-08 13:36 pbartok
18667 * ContainerControl.cs:
18668 - Implemented BindingContext
18669 - Implemented ParentForm
18671 2004-11-08 12:46 jackson
18673 * TabControl.cs: Put bottom rendered tabs in the right location
18675 2004-11-08 07:15 jordi
18677 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
18680 2004-11-05 17:30 jackson
18682 * TabControl.cs: When selected tabs are expanded make sure they
18683 don't go beyond the edges of the tab control
18685 2004-11-05 14:57 jackson
18687 * TabControl.cs: Reset show_slider so if the control is resized to
18688 a size where it is no longer needed it's not displayed anymore
18690 2004-11-05 13:16 jackson
18692 * TabControl.cs: Make tab pages non visible when added to the
18695 2004-11-05 12:42 jackson
18697 * TabControl.cs: Implement SizeMode.FillToRight
18699 2004-11-05 12:16 jackson
18701 * Control.cs: Do not call CreateHandle if the handle is already
18704 2004-11-05 11:46 jackson
18706 * TabControl.cs: Remove superflous call to CalcTabRows
18708 2004-11-05 09:07 jackson
18710 * XplatUIX11.cs: Update for Mono.Posix changes
18712 2004-11-05 07:00 ravindra
18714 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
18717 2004-11-04 22:47 jba
18719 * ThemeWin32Classic.cs:
18720 - Fix Button rendering for FlatStyle = Flat or Popup
18721 - Fix RadioButton and CheckBox rendering when Appearance = Button
18722 (normal and flatstyle).
18723 - Correct outer rectangle color when drawing focus rectangle
18724 - Adjust button bounds to be 1 px smaller when focused
18725 - Make button not draw sunken 3d border when pushed (windows compat)
18726 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
18727 - Offset the text in RadioButton and Checkbox when being rendered as
18729 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
18731 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
18732 - Fixed disabled text rendering for normally rendered radiobuttons
18734 2004-11-04 10:26 jackson
18736 * TabControl.cs: Recalculate tab rows when resizing
18738 2004-11-04 07:47 jordi
18740 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
18741 collection completion, drawing issues, missing features
18743 2004-11-04 05:03 ravindra
18746 - We need to recalculate the Thumb area when
18747 LargeChange/maximum/minimum values are changed.
18748 - We set the 'pos' in UpdatePos() method to minimum, if it's less
18749 than minimum. This is required to handle the case if large_change is
18750 more than max, and use LargeChange property instead of large_change
18752 - We return max+1 when large_change is more than max, like MS does.
18754 2004-11-04 04:29 ravindra
18756 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
18757 - Changed default value signatures (prefixed all with ListView).
18758 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
18760 - Fixed calculations for ListViewItem and implemented Clone()
18763 2004-11-04 04:26 ravindra
18765 * Theme.cs, ThemeWin32Classic.cs:
18766 - Changed default ListView values signatures (prefixed all with
18768 - Fixed default size values for VScrollBar and HScrollBar.
18769 - Fixed DrawListViewItem method.
18771 2004-11-04 04:05 ravindra
18773 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
18775 2004-11-04 04:04 ravindra
18777 * ImageList.cs: Implemented the missing overload for Draw method.
18779 2004-11-03 19:29 jackson
18781 * TabControl.cs: Handle dropping rows on selection properly
18783 2004-11-03 11:59 jackson
18785 * TabControl.cs: remove debug code
18787 2004-11-03 11:52 jackson
18789 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
18790 the scrolly widgerywoo
18792 2004-11-02 13:52 jackson
18794 * TabControl.cs: Resize the tab pages and tabs when the tab control
18797 2004-11-02 13:40 jackson
18799 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
18800 selected tab to the bottom
18802 2004-11-02 13:39 jackson
18804 * TabPage.cs: Store the tab pages row
18806 2004-11-02 12:33 jordi
18808 * MenuItem.cs: fixes handle creation
18810 2004-11-02 11:42 jackson
18812 * TabControl.cs: signature fix
18814 2004-11-02 08:56 jackson
18816 * TabControl.cs: Calculate whether the tab is on an edge properly.
18817 Remove top secret debugging code
18819 2004-11-01 19:57 jackson
18821 * TabControl.cs: Add click handling, and proper sizing
18823 2004-11-01 19:47 jackson
18825 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
18828 2004-11-01 19:39 jackson
18830 * TabPage.cs: add internal property to store the bounds of a tab
18833 2004-10-30 04:23 ravindra
18835 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
18838 2004-10-30 04:21 ravindra
18840 * ListView.cs, ListViewItem.cs: Added support for scrolling and
18841 fixed calculations.
18843 2004-10-30 03:06 pbartok
18846 - Removed extension of DllImported libs
18848 2004-10-29 09:55 jordi
18850 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
18851 navigation, itemcollection completion, menu fixes
18853 2004-10-27 22:58 pbartok
18856 - Now throws a nice error message when no X display could be opened
18858 2004-10-26 13:51 jordi
18860 * ListView.cs: removes warning
18862 2004-10-26 03:55 ravindra
18864 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
18865 ThemeWin32Classic.cs: Some formatting for my last checkins.
18867 2004-10-26 03:36 ravindra
18869 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
18870 control and default values.
18872 2004-10-26 03:35 ravindra
18874 * Theme.cs: Added some default values for ListView control.
18876 2004-10-26 03:33 ravindra
18878 * ToolBar.cs: ToolBar should use the user specified button size, if
18879 there is any. Added a size_specified flag for the same.
18881 2004-10-26 03:33 ravindra
18883 * ColumnHeader.cs: Added some internal members and calculations for
18886 2004-10-26 03:32 ravindra
18888 * ListViewItem.cs: Calculations for ListViewItem.
18890 2004-10-26 03:31 ravindra
18892 * ListView.cs: Added some internal members and calculations for
18895 2004-10-22 13:31 jordi
18897 * MenuAPI.cs: speedup menus drawing
18899 2004-10-22 13:16 jackson
18901 * XplatUIX11.cs: Make sure to update exposed regions when adding an
18904 2004-10-22 11:49 jackson
18908 2004-10-22 11:41 jackson
18910 * Control.cs: Check to see if the window should have its background
18911 repainted by X when drawing.
18913 2004-10-22 11:31 jackson
18915 * XplatUIX11.cs: When invalidating areas only use XClearArea if
18916 clear is true, this way we do not get flicker from X repainting the
18919 2004-10-22 11:28 jackson
18921 * XEventQueue.cs: Queue properly
18923 2004-10-21 09:38 jackson
18925 * XEventQueue.cs: Fix access modifier
18927 2004-10-21 09:36 jackson
18929 * XEventQueue.cs: Don't loose messages
18931 2004-10-21 09:22 jackson
18933 * XEventQueue.cs: Don't loose messages
18935 2004-10-20 04:15 jordi
18937 * BootMode.cs: enum need it by SystemInfo
18939 2004-10-19 21:58 pbartok
18942 - Small sanity check
18944 2004-10-19 21:56 pbartok
18947 - Added private FormParentWindow class which acts as the container
18948 for our form and as the non-client area where menus are drawn
18949 - Added/Moved required tie-ins to Jordi's menus
18950 - Fixed/Implemented the FormStartPosition functionality
18952 2004-10-19 21:52 pbartok
18955 - Removed unneeded locals
18956 - Added code to all size and location properties to understand and
18957 deal with the parent container of Form
18959 2004-10-19 21:33 pbartok
18962 - Fixed to deal with new Form subclasses for menus
18964 2004-10-19 17:48 jackson
18966 * XEventQueue.cs: commit correct version of file
18968 2004-10-19 16:50 jackson
18970 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
18972 2004-10-19 16:15 jordi
18974 * MenuAPI.cs: MenuBarCalcSize returns the height
18976 2004-10-19 08:31 pbartok
18979 - Added missing call to PreProcessMessage before calling OnXXXKey
18982 2004-10-19 00:04 ravindra
18984 * ToolTip.cs: Fixed constructor.
18986 2004-10-18 09:31 jordi
18988 * MenuAPI.cs: menuitems in menubars do not have shortcuts
18990 2004-10-18 09:26 jordi
18992 * MenuItem.cs: fixes MenuItem class signature
18994 2004-10-18 08:56 jordi
18996 * MenuAPI.cs: prevents windows from showing in the taskbar
18998 2004-10-18 00:28 ravindra
19000 * ToolTip.cs: Suppressed a warning message.
19002 2004-10-18 00:27 ravindra
19004 * Control.cs: Default value of visible property must be true.
19006 2004-10-17 23:19 pbartok
19009 - Complete implementation
19011 2004-10-17 23:19 pbartok
19014 - Added EnableWindow method
19015 - Added SetModal stub
19016 - Added generation of WM_ACTIVATE message (still needs testing)
19017 - Added SetTopMost stub
19018 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
19020 2004-10-17 23:17 pbartok
19023 - Removed VirtualKeys to XplatUIStructs
19024 - Implemented SetTopMost method
19025 - Implemented EnableWindow method
19026 - Bugfix in ScreenToClient()
19027 - Bugfixes in ClientToScreen()
19029 2004-10-17 22:51 pbartok
19031 * XplatUIStructs.cs:
19032 - Added WS_EX styles to WindowStyles enumeration
19034 2004-10-17 22:50 pbartok
19036 * XplatUI.cs, XplatUIDriver.cs:
19037 - Added method for enabling/disabling windows
19038 - Added method for setting window modality
19039 - Added method for setting topmost window
19041 2004-10-17 22:49 pbartok
19043 * ThemeWin32Classic.cs:
19044 - Added ToolTip drawing code
19046 2004-10-17 22:49 pbartok
19049 - Added ToolTip abstracts
19051 2004-10-17 22:47 pbartok
19054 - Fixed Form.ControlCollection to handle owner relations
19055 - Added Owner/OwnedForms handling
19056 - Implemented Z-Ordering for owned forms
19057 - Removed unneeded private overload of ShowDialog
19058 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
19060 - Fixed Close(), had wrong default
19061 - Added firing of OnLoad event
19062 - Added some commented out debug code for Ownership handling
19064 2004-10-17 22:16 pbartok
19067 - Fixed/implemented flat list of controls
19069 2004-10-17 22:14 pbartok
19072 - Added code to simulate modal dialogs on Win32
19074 2004-10-17 16:11 jordi
19076 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
19079 2004-10-17 13:39 jordi
19081 * MenuAPI.cs: menu drawing fixes
19083 2004-10-15 09:10 ravindra
19085 * StructFormat.cs: General Enum.
19087 2004-10-15 09:09 ravindra
19089 * SizeGripStyle.cs: Enum for Form.
19091 2004-10-15 09:08 ravindra
19093 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
19094 in Theme for ListView.
19096 2004-10-15 09:06 ravindra
19098 * ColumnHeader.cs: Flushing some formatting changes.
19100 2004-10-15 09:05 ravindra
19102 * ListViewItem.cs: Implemented GetBounds method and fixed coding
19105 2004-10-15 09:03 ravindra
19107 * ListView.cs: Implemented Paint method and fixed coding style.
19109 2004-10-15 07:34 jordi
19111 * MenuAPI.cs: fix for X11
19113 2004-10-15 07:32 ravindra
19115 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
19116 - Renamed Paint() method to Draw() for clarity. Also, moved
19117 DrawImage() to OnPaint().
19119 2004-10-15 07:25 ravindra
19121 * CheckBox.cs, RadioButton.cs:
19122 - Removed Redraw (), we get it from ButtonBase.
19123 - Implemented Paint (), to do class specific painting.
19125 2004-10-15 07:16 ravindra
19128 - Redraw () is not virtual now.
19129 - Added an internal virtual method Paint (), so that
19130 derived classes can do their painting on their own.
19131 - Modified OnPaint () to call Paint ().
19133 2004-10-15 06:43 jordi
19135 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
19136 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
19138 2004-10-15 00:30 ravindra
19141 - MessageBox on windows does not have min/max buttons.
19142 This change in CreateParams fixes this on Windows. We
19143 still need to implement this windowstyle behavior in
19146 2004-10-14 05:14 ravindra
19149 - Changed Redraw () to do a Refresh () always.
19150 - Fixed the MouseMove event handling when mouse is pressed,
19151 ie drag event handling.
19152 - Replaced the usage of ToolBarButton.Pressed property to
19153 ToolBarButton.pressed internal variable.
19155 2004-10-14 05:10 ravindra
19157 * ToolBarButton.cs:
19158 - Added an internal member 'inside' to handle mouse move
19159 with mouse pressed ie mouse drag event.
19160 - Changed 'Pressed' property to return true only when
19161 'inside' and 'pressed' are both true.
19162 - Some coding style love.
19164 2004-10-14 00:17 ravindra
19166 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
19169 2004-10-14 00:15 ravindra
19171 * ButtonBase.cs: Redraw () related improvements.
19173 2004-10-14 00:14 ravindra
19175 * MessageBox.cs: Moved InitFormSize () out of Paint method and
19176 removed unnecessary calls to Button.Show () method.
19178 2004-10-13 17:50 pbartok
19182 - Removed destroying of window until we solve the problem of X
19183 destroying the window before us on shutdown
19185 2004-10-13 16:32 pbartok
19188 - Now Redraws on MouseUp for FlatStyle Flat and Popup
19190 2004-10-13 14:18 pbartok
19193 - Added code to destroy the X window
19195 2004-10-13 14:18 pbartok
19198 - Added code to destroy a window
19200 2004-10-13 14:12 pbartok
19203 - Added the Redraw on Resize that got dropped in the last rev
19205 2004-10-13 09:06 pbartok
19207 * ThemeWin32Classic.cs:
19208 - Path from John BouAntoun:
19209 * Fix check rendering (centre correctly for normal style, offset
19210 correctly for FlatStyle).
19211 * Fix border color usage (use backcolor) for FlatStyle.Popup
19212 * Use checkbox.Capture instead of checkbox.is_pressed when
19213 rendering flatstyle states.
19215 2004-10-12 21:48 pbartok
19217 * ThemeWin32Classic.cs:
19218 - Removed all occurences of SystemColors and replaced them with the
19219 matching theme color
19221 2004-10-12 21:41 pbartok
19223 * ThemeWin32Classic.cs:
19224 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
19225 him using the function for flatstyle drawing
19226 - Changed functions to use the new version of CPDrawBorder3D
19228 2004-10-12 21:15 pbartok
19231 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
19232 match MS documentation. They need to return defined colors if the
19233 passed color matches the configured control color. Thanks to John
19234 BouAntoun for pointing this out.
19236 2004-10-12 20:57 pbartok
19239 - Fix from John BouAntoun: Raise ForeColorChanged event when text
19242 2004-10-12 20:46 pbartok
19245 - Fix from John BouAntoun: Now properly sets the Appearance property
19247 2004-10-12 20:45 pbartok
19249 * ThemeWin32Classic.cs:
19250 - Fixes from John BouAntoun: now handles forecolors and backcolors
19251 for flatstyle rendered controls much better; It also fixes normal
19252 checkbox rendering when pushed or disabled.
19254 2004-10-08 02:50 jordi
19256 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
19259 2004-10-07 08:56 jordi
19261 * ThemeWin32Classic.cs: Removes deletion of cached brushes
19263 2004-10-06 03:59 jordi
19265 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
19266 XplatUIWin32.cs: removes warnings from compilation
19268 2004-10-05 12:23 jackson
19270 * RadioButton.cs: Fix ctor
19272 2004-10-05 11:10 pbartok
19275 - Partial implementation by Benjamin Dasnois
19277 2004-10-05 10:15 jackson
19279 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
19282 2004-10-05 03:07 ravindra
19285 - Removed a private method, Draw ().
19286 - Fixed the ButtonDropDown event handling.
19287 - Fixed MouseMove event handling.
19289 2004-10-05 03:04 ravindra
19291 * ThemeWin32Classic.cs:
19292 - Added DrawListView method and ListViewDefaultSize property.
19293 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
19294 - Changed DOS style CRLF to Unix format (dos2unix).
19296 2004-10-05 03:03 ravindra
19299 - Added DrawListView method and ListViewDefaultSize property.
19301 2004-10-05 02:42 ravindra
19303 * ToolBarButton.cs: Added an internal member dd_pressed to handle
19304 clicks on DropDown arrow.
19306 2004-10-04 22:56 jackson
19308 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
19309 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
19310 Control handle the buffers, derived classes should not have to
19311 CreateBuffers themselves.
19313 2004-10-04 21:20 jackson
19315 * StatusBar.cs: The control handles resizing the buffers now.
19317 2004-10-04 21:18 jackson
19319 * Control.cs: When resizing the buffers should be invalidated. This
19320 should be handled in Control not in derived classes.
19322 2004-10-04 14:45 jackson
19326 2004-10-04 02:14 pbartok
19328 * LeftRightAlignment.cs:
19331 2004-10-04 01:09 jordi
19333 * ThemeWin32Classic.cs: fixes right button position causing right
19334 button not showing on horizontal scrollbars
19336 2004-10-02 13:12 pbartok
19339 - Simplified the Invalidate method by using an X call instead of
19340 generating the expose ourselves
19341 - Added an expose when the window background is changed
19342 - Implemented ClientToScreen method
19344 2004-10-02 13:08 pbartok
19347 - Added Win32EnableWindow method (test for implementing modal
19349 - Added ClientToScreen method and imports
19351 2004-10-02 13:07 pbartok
19353 * XplatUI.cs, XplatUIDriver.cs:
19354 - Added ClientToScreen coordinate translation method
19356 2004-10-02 13:06 pbartok
19358 * KeyPressEventArgs.cs:
19359 - Fixed access level for constructor
19361 2004-10-02 13:06 pbartok
19364 - Changed access level for the window_collection hash table
19366 2004-10-02 13:05 pbartok
19369 - Added KeyPreview property
19370 - Added Menu property (still incomplete, pending Jordi's menu work)
19371 - Implemented ProcessCmdKey
19372 - Implemented ProcessDialogKey
19373 - Implemented ProcessKeyPreview
19375 2004-10-02 13:02 pbartok
19378 - Added private method to get the Control object from the window
19380 - Implemented ContextMenu property
19381 - Implemented PointToScreen
19382 - Implemented PreProcessMessage
19383 - Implemented IsInputChar
19384 - Implemented IsInputKey
19385 - Implemented ProcessCmdKey
19386 - Completed ProcessKeyEventArgs
19387 - Fixed message loop to call the proper chain of functions on key
19389 - Implemented ProcessDialogChar
19390 - Implemented ProcessDialogKey
19391 - Implemented ProcessKeyMessage
19392 - Implemented ProcessKeyPreview
19393 - Added RaiseDragEvent stub (MS internal method)
19394 - Added RaiseKeyEvent stub (MS internal method)
19395 - Added RaiseMouseEvent stub (MS Internal method)
19396 - Added RaisePaintEvent stub (MS Internal method)
19397 - Added ResetMouseEventArgs stub (MS Internal method)
19398 - Implemented RtlTranslateAlignment
19399 - Implemented RtlTranslateContent
19400 - Implemented RtlTranslateHorizontal
19401 - Implemented RtlTranslateLeftRight
19402 - Added generation of KeyPress event
19404 2004-10-02 05:57 ravindra
19406 * ListViewItem.cs: Added attributes.
19408 2004-10-02 05:32 ravindra
19410 * ListView.cs: Added attributes.
19412 2004-10-01 11:53 jackson
19414 * Form.cs: Implement the Close method so work on MessageBox can
19417 2004-09-30 14:06 pbartok
19422 2004-09-30 11:34 jackson
19424 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
19426 2004-09-30 07:26 ravindra
19428 * ListViewItemConverter.cs: Converter for ListViewItem.
19430 2004-09-30 07:26 ravindra
19432 * SortOrder.cs: Enum for ListView control.
19434 2004-09-30 07:25 ravindra
19436 * ColumnHeader.cs: Supporting class for ListView control.
19438 2004-09-30 07:24 ravindra
19440 * ListView.cs, ListViewItem.cs: Initial implementation.
19442 2004-09-30 07:20 ravindra
19444 * ItemActivation.cs: Enum for ListView Control.
19446 2004-09-29 20:29 pbartok
19449 - Added lookup of pixel value for background color; tries to get a
19450 color 'close' to the requested color, it avoids having to create a
19451 colormap. Depending on the display this could mean the used color
19452 is slightly off the desired color. Might have to change it to a more
19453 resource intensive colormap approach, but it will work as a
19454 workaround to avoid red screens.
19456 2004-09-29 14:27 jackson
19458 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
19460 2004-09-28 12:44 pbartok
19462 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
19463 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
19464 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
19465 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
19466 TrackBar.cs, VScrollBar.cs:
19467 - Streamlined Theme interfaces:
19468 * Each DrawXXX method for a control now is passed the object for
19469 the control to be drawn in order to allow accessing any state the
19470 theme might require
19472 * ControlPaint methods for the theme now have a CP prefix to avoid
19473 name clashes with the Draw methods for controls
19475 * Every control now retrieves it's DefaultSize from the current
19478 2004-09-28 12:17 jackson
19480 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
19483 2004-09-24 14:57 jackson
19485 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
19486 Gives us a nice little performance boost.
19488 2004-09-24 12:02 jackson
19490 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
19491 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
19492 Control and supporting classes. Initial checkin
19494 2004-09-23 13:08 jackson
19496 * Form.cs: Temp build fixage
19498 2004-09-23 01:39 ravindra
19500 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
19501 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
19502 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
19503 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
19504 EventHandlers needed by ListView Control.
19506 2004-09-22 14:12 pbartok
19508 * ScrollableControl.cs:
19509 - Implemented DockPadding property
19510 - Implemented AutoScroll property
19511 - Implemented AutoScrollMargin property
19512 - Implemented AutoScrollMinSize property
19513 - Implemented AutoScrollPosition property
19514 - Implemented DisplayRectangle property (still incomplete)
19515 - Implemented CreateParams property
19516 - Implemented HScroll property
19517 - Implemented VScroll property
19518 - Implemented OnVisibleChanged property
19520 2004-09-22 14:09 pbartok
19523 - Added Form.ControllCollection class
19524 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
19525 RemoveOwnedForm (still incomplete, missing on-top and common
19526 minimize/maximize behaviour)
19527 - Added StartPosition property (still incomplete, does not use when
19529 - Added ShowDialog() methods (still incomplete, missing forcing the
19532 2004-09-22 14:05 pbartok
19535 - Added message loop for modal dialogs
19537 2004-09-22 14:02 pbartok
19540 - Fixed wrong types for events
19542 2004-09-22 14:00 pbartok
19544 * Shortcut.cs, FormWindowState.cs:
19545 - Fixed wrong values
19547 2004-09-22 12:01 jackson
19549 * Control.cs: Text is never null
19551 2004-09-20 22:14 pbartok
19554 - Fixed accessibility level for Idle handler
19556 2004-09-20 18:54 jackson
19558 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19559 XplatUIX11.cs: New message loop that uses poll so we don't get a
19562 2004-09-17 10:43 pbartok
19565 - Fixed behaviour of arrow buttons. Now properly behaves like
19566 Buttons (and like Microsoft's scrollbar arrow buttons)
19568 2004-09-17 10:14 pbartok
19571 - Added missing release of keyboard/mouse capture
19573 2004-09-17 06:18 jordi
19575 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
19576 Theme.cs: Very early menu support
19578 2004-09-16 17:45 pbartok
19581 - Fixed sending a window to the front
19582 - Added overload for SetWindowPos to avoid casting
19584 2004-09-16 17:44 pbartok
19587 - Added SendToBack and BringToFront methods
19589 2004-09-16 07:00 ravindra
19591 * Copyright: Added Novell URL.
19593 2004-09-16 07:00 ravindra
19595 * ToolBar.cs: Invalidate should be done before redrawing.
19597 2004-09-15 21:19 ravindra
19599 * ColumnHeaderStyle.cs: Enum for ListView Control.
19601 2004-09-15 21:18 ravindra
19603 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
19606 2004-09-13 18:26 jackson
19608 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
19611 2004-09-13 18:13 jackson
19613 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
19614 a second thread and post messages into the main threads message
19615 queue. This makes timing much more consistent. Both win2K and XP
19616 have a minimum timer value of 15 milliseconds, so we now do this
19619 2004-09-13 15:18 pbartok
19621 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19623 - Added Z-Ordering methods
19625 2004-09-13 10:56 pbartok
19628 - Fixed #region names
19629 - Moved properties and methods into their proper #regions
19631 2004-09-13 10:51 pbartok
19634 - Added Accept and CancelButton properties
19635 - Added ProcessDialogKey() method
19637 2004-09-13 08:18 pbartok
19639 * IWindowTarget.cs:
19642 2004-09-10 21:50 pbartok
19645 - Added DoDragDrop() [incomplete]
19646 - Properly implemented 'Visible' handling
19647 - Added SetVisibleCore()
19648 - Implemented FindChildAtPoint()
19649 - Implemented GetContainerControl()
19650 - Implemented Hide()
19652 2004-09-10 19:28 pbartok
19655 - Moved methods into their appropriate #regions
19656 - Reordered methods within regions alphabetically
19658 2004-09-10 18:57 pbartok
19660 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19661 - Added method to retrieve text from window
19663 2004-09-10 18:56 pbartok
19666 - Moved some internal functions into the internal region
19667 - Implemented FontHeight
19668 - Implemented RenderRightToLeft
19669 - Implemented ResizeRedraw
19670 - Implemented ShowFocusCues
19671 - Implemented ShowKeyboardCues
19672 - Implemented FromChildHandle
19673 - Implemented FromHandle
19674 - Implemented IsMnemonic
19675 - Implemented ReflectMessage
19676 - All public and protected Static Methods are now complete
19678 2004-09-10 16:54 pbartok
19681 - Implemented remaining missing public instance properties
19682 - Alphabetized some out of order properties
19684 2004-09-10 05:51 ravindra
19686 * PictureBox.cs: Added a check for null image.
19688 2004-09-10 00:59 jordi
19690 * GroupBox.cs: remove cvs tag
19692 2004-09-09 05:25 ravindra
19694 * ToolBar.cs: Make redraw accessible from ToolBarButton.
19696 2004-09-09 05:23 ravindra
19698 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
19701 2004-09-09 02:28 pbartok
19703 * ThemeWin32Classic.cs:
19704 - Improve disabled string look
19706 2004-09-09 01:15 jordi
19708 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
19711 2004-09-08 23:56 ravindra
19713 * ItemBoundsPortion.cs: It's enum, not a class!
19715 2004-09-08 23:47 ravindra
19717 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
19720 2004-09-08 21:13 ravindra
19722 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
19725 2004-09-08 21:03 ravindra
19727 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
19730 2004-09-08 21:01 ravindra
19732 * ScrollableControl.cs: Removed unreachable code.
19734 2004-09-08 06:45 jordi
19736 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
19738 2004-09-08 01:00 jackson
19740 * XplatUIX11.cs: Only run the timers when updating the message
19741 queue. This effectively gives X messages a higher priority then
19742 timer messages. Timers still need love though
19744 2004-09-07 14:01 jackson
19746 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
19747 this for us and the handle is no longer valid.
19749 2004-09-07 13:59 jackson
19751 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
19752 loop that manages to not crash. TODO: Add poll and cleanup timers
19754 2004-09-07 11:12 jordi
19756 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
19758 2004-09-07 03:40 jordi
19760 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
19761 fixes, methods, multiple links
19763 2004-09-06 06:55 jordi
19765 * Control.cs: Caches ClientRectangle rectangle value
19767 2004-09-05 02:03 jordi
19769 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
19772 2004-09-04 11:10 jordi
19774 * Label.cs: Refresh when font changed
19776 2004-09-02 16:24 pbartok
19779 - Added sanity check to creation of double buffer bitmap
19781 2004-09-02 16:24 pbartok
19784 - Fixed selection of text color
19785 - Fixed handling of resize event; now properly recreates double
19787 - Added missing assignment of TextAlignment
19788 - Added proper default for TextAlignment
19790 2004-09-02 14:26 pbartok
19793 - Added missing RadioButton.RadioButtonAccessibleObject class
19795 2004-09-02 14:26 pbartok
19798 - Added missing Control.ControlAccessibleObject class
19799 - Started to implement Select()ion mechanisms, still very incomplete
19801 2004-09-02 14:25 pbartok
19803 * AccessibleObject.cs:
19804 - Added missing methods
19806 2004-09-02 14:23 pbartok
19808 * AccessibleNavigation.cs, AccessibleSelection.cs:
19811 2004-09-02 10:32 jordi
19813 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
19814 pool for pens, brushes, and hatchbruses
19816 2004-09-01 15:30 jackson
19818 * StatusBar.cs: Fix typo
19820 2004-09-01 14:44 pbartok
19825 2004-09-01 14:39 pbartok
19827 * Button.cs, RadioButton.cs:
19828 - Functional initial check-in
19830 2004-09-01 14:01 pbartok
19833 - Added missing default
19834 - Added missing region mark
19836 2004-09-01 09:10 jordi
19838 * Label.cs: fixes method signatures, new methods, events, fixes
19841 2004-09-01 07:19 jordi
19843 * Control.cs: Init string variables with an empty object
19845 2004-09-01 04:20 jordi
19847 * Control.cs: fires OnFontChanged event
19849 2004-08-31 20:07 pbartok
19852 - Enabled display of strings
19854 2004-08-31 20:05 pbartok
19857 - Added (partial) implementation of DialogResult; rest needs to be
19858 implemented when the modal loop code is done
19860 2004-08-31 19:55 pbartok
19863 - Fixed to match the removal of the needs_redraw concept
19865 2004-08-31 19:55 pbartok
19868 - Removed the rather odd split between 'needs redraw' and redrawing
19869 - Now handles the events that require regeneration (ambient
19870 properties and size)
19872 2004-08-31 19:41 pbartok
19875 - Added firing of BackColorChanged event
19876 - Added TopLevelControl property
19877 - Fixed handling of WM_ERASEBKGRND message
19879 2004-08-31 12:49 pbartok
19885 2004-08-31 12:48 pbartok
19888 - Finished (famous last words)
19890 2004-08-31 04:35 jordi
19892 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
19893 scrolling bugs, adds new methods
19895 2004-08-30 14:42 pbartok
19898 - Implemented CheckBox drawing code
19900 2004-08-30 14:42 pbartok
19903 - Made Redraw() and CheckRedraw() virtual
19904 - Improved mouse up/down/move logic to properly track buttons
19906 2004-08-30 09:44 pbartok
19909 - Updated to fix broken build. Not complete yet.
19911 2004-08-30 09:28 pbartok
19916 2004-08-30 09:17 pbartok
19921 2004-08-27 16:12 ravindra
19923 * ToolBarButton.cs: Added TypeConverter attribute.
19925 2004-08-27 16:07 ravindra
19927 * ImageIndexConverter.cs: Implemented.
19929 2004-08-27 14:17 pbartok
19932 - Removed unneeded stack vars
19933 - First attempt to fix sizing issues when layout is suspended
19935 2004-08-25 15:35 jordi
19937 * ScrollBar.cs: more fixes to scrollbar
19939 2004-08-25 14:04 ravindra
19941 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
19942 Added the missing divider code and grip for ToolBar Control.
19944 2004-08-25 13:20 pbartok
19947 - Control now properly passes the ambient background color to child
19950 2004-08-25 13:20 jordi
19952 * ScrollBar.cs: small bug fix regarding bar position
19954 2004-08-25 12:33 pbartok
19957 - Now only calls SetTimer or KillTimer if the enabled state has
19960 2004-08-25 12:33 pbartok
19963 - Fixed timer handling, now seems to work
19964 - Improved error message for window creation
19966 2004-08-25 12:32 pbartok
19969 - Fixed generation of MouseUp message
19971 2004-08-25 12:29 jordi
19973 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
19974 and fixes for progressbar
19976 2004-08-24 18:43 ravindra
19978 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
19979 in ToolBar control.
19981 2004-08-24 17:15 pbartok
19985 - Added missing events
19988 2004-08-24 17:14 pbartok
19990 * StatusBar.cs, PictureBox.cs:
19991 - Now uses Control's CreateParams
19993 2004-08-24 16:36 pbartok
19996 - Fixed background color handling
19997 - Fixed sending of enter/leave events on a grab
19999 2004-08-24 16:35 pbartok
20002 - Refined definitions for CrossingEvent
20004 2004-08-24 12:37 jordi
20006 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
20007 formmating, methods signature, and adds missing events
20009 2004-08-24 12:24 jordi
20011 * Control.cs: fire OnEnabledChanged event
20013 2004-08-24 11:17 pbartok
20016 - Implemented SetTimer() and KillTimer()
20018 2004-08-24 11:16 pbartok
20021 - Now uses Remove instead of Add to kill the timer
20023 2004-08-24 10:16 jackson
20025 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
20026 picture boxes in the theme now. Draw picture box borders and obey
20029 2004-08-24 05:49 jackson
20031 * Timer.cs: Remove top secret debugging code
20033 2004-08-24 05:34 jackson
20035 * PictureBox.cs: Temp hack to make picture boxes draw their full
20038 2004-08-24 05:29 jackson
20040 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20041 XplatUIX11.cs: Move timers to the driver level. On X they are
20042 queued by the driver and checked on idle.
20044 2004-08-24 01:07 jackson
20046 * XplatUIX11.cs: Use a queue for async messages instead of passing
20047 them as ClientMessages since that was totally broken. Also simply
20048 check for events and return an idle message if none are found. This
20049 gives us an idle handler, and prevents deadlocking when no messages
20052 2004-08-23 18:19 ravindra
20054 * XplatUIWin32.cs: Removed the unwanted destructor.
20056 2004-08-23 17:27 pbartok
20059 - Finishing touches. Works now, just needs some optimizations.
20061 2004-08-23 16:53 jordi
20063 * ScrollBar.cs: small fix
20065 2004-08-23 16:45 pbartok
20068 - Removed debug output
20071 2004-08-23 16:43 jordi
20073 * ScrollBar.cs: [no log message]
20075 2004-08-23 16:10 pbartok
20078 - Fixed handling of WM_CLOSE message
20079 - Removed debug output
20081 2004-08-23 16:09 pbartok
20084 - Added handling of Idle event
20085 - Added handling of form closing
20086 - Fixed reporting of MessageLoop property
20087 - Removed some unneeded code, should provide a bit of a speedup
20089 2004-08-23 15:22 pbartok
20092 - Added InitLayout() method
20093 - Added code to properly perform layout when Anchor or Dock property
20095 - Changed 'interpretation' of ResumeLayout. MS seems to have a
20096 LAMESPEC, tried to do it in a way that makes sense
20098 2004-08-23 14:10 jordi
20100 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
20101 properties and methods
20103 2004-08-23 13:55 pbartok
20106 - Properly fixed Jordi's last fix
20107 - Now uses Cursor's Position property instead of calling XplatUI
20110 2004-08-23 13:44 jordi
20112 * PaintEventHandler.cs: Adding missing attribute
20114 2004-08-23 13:39 pbartok
20117 - Implemented Position property
20119 2004-08-23 13:39 pbartok
20121 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20122 - Added method to move mouse cursor
20124 2004-08-23 13:39 pbartok
20127 - Fixed setting of background color
20128 - Added method to move mouse cursor
20130 2004-08-23 13:16 jordi
20132 * Control.cs: avoids null exception
20134 2004-08-22 17:46 jackson
20136 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
20139 2004-08-22 17:40 jackson
20141 * XplatUIX11.cs: Add some missing locks
20143 2004-08-22 15:10 pbartok
20145 * Control.cs, Form.cs:
20146 - Removed OverlappedWindow style from Control, instead it's default
20148 - Made form windows OverlappedWindow by default
20150 2004-08-22 13:34 jackson
20152 * ScrollBar.cs: Update the position through the Value property so
20153 the OnValueChanged event is raised.
20155 2004-08-22 12:04 pbartok
20158 - Added Cursor.cs and UserControl.cs
20160 2004-08-22 12:03 pbartok
20163 - Started implementation, not usable yet
20165 2004-08-22 12:00 pbartok
20168 - Implemented UserControl (complete)
20170 2004-08-21 19:20 ravindra
20172 * ToolBar.cs: Correcting the formatting mess of VS.NET.
20174 2004-08-21 18:49 ravindra
20176 * ToolBar.cs: Probably this completes the missing attributes in
20179 2004-08-21 18:03 ravindra
20181 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
20182 Fixed toolbar control signatures.
20184 2004-08-21 16:32 pbartok
20189 2004-08-21 16:30 pbartok
20194 2004-08-21 16:19 pbartok
20196 * Control.cs, Label.cs:
20199 2004-08-21 15:57 pbartok
20202 - Added loads of debug output for development
20203 - Fixed typo in method name
20205 2004-08-21 15:52 pbartok
20207 * ToolBarButtonClickEventArgs.cs:
20208 - Added missing base class
20210 2004-08-21 14:53 pbartok
20213 - Updated to match new GrabWindow signature
20215 2004-08-21 14:51 pbartok
20217 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20218 - Added method to get default display size
20220 2004-08-21 14:23 pbartok
20222 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20223 - Added method to query current grab state
20224 - Added argument to allow confining a grab to a window
20226 2004-08-21 14:22 pbartok
20229 - Added [Flags] attribute so that modifiers can be used in bitwise
20232 2004-08-21 14:21 pbartok
20234 * TrackBar.cs, ScrollBar.cs:
20235 - Replaced direct XplatUI calls with their Control counterpart
20237 2004-08-21 13:32 pbartok
20240 - Implemented Created property
20242 2004-08-21 13:28 pbartok
20245 - Implemented ContainsFocus
20247 2004-08-21 13:26 pbartok
20250 - Implemented CausesValidation
20252 2004-08-21 13:21 pbartok
20255 - Implemented CanFocus
20256 - Implemented CanSelect
20257 - Implemented Capture
20259 2004-08-21 12:35 pbartok
20262 - Fixed bug with Async message handling
20263 - Implemented getting the ModifierKeys
20265 2004-08-21 12:32 jackson
20267 * AsyncMethodResult.cs: Make sure we have the mutex before we
20268 release it. Fixes BeginInvoke on windows
20270 2004-08-21 11:31 pbartok
20272 * XplatUIWin32.cs, XplatUIX11.cs:
20273 - Drivers now return proper mouse state
20275 2004-08-21 10:54 jackson
20277 * Control.cs: Implement EndInvoke
20279 2004-08-21 10:48 jackson
20281 * Timer.cs: Remove unneeded finalizer
20283 2004-08-20 19:52 ravindra
20285 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
20286 in mouse event handling in the ToolBar control.
20288 2004-08-20 19:50 ravindra
20290 * ImageList.cs: Changed draw method to use the arguments passed in
20293 2004-08-20 18:58 pbartok
20295 * XplatUIStructs.cs:
20296 - Added private message for async communication
20298 2004-08-20 17:38 ravindra
20300 * Control.cs: Made RightToLeft property virtual and removed a
20303 2004-08-20 14:39 jordi
20305 * ThemeGtk.cs: use style_attach
20307 2004-08-20 14:39 pbartok
20310 - Added jackson's Async code from X11 to Win32
20312 2004-08-20 14:09 pbartok
20315 - Added all new files
20317 2004-08-20 14:09 pbartok
20320 - Added call to set window background color
20322 2004-08-20 14:03 pbartok
20324 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
20325 - Added method for setting the window background
20327 2004-08-20 14:02 pbartok
20330 - Added method for setting the background color
20331 - Added handling for erasing the window background
20333 2004-08-20 13:45 jordi
20335 * TrackBar.cs: fixes timer, new properties and methods
20337 2004-08-20 13:34 jackson
20339 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
20342 2004-08-20 13:22 jackson
20344 * Timer.cs: Timer Tick events are now handed through Controls Async
20345 mechanism so the callbacks are executed in the same thread as X
20347 2004-08-20 13:19 jackson
20349 * XplatUIDriver.cs: Expose functionality to send async messages
20352 2004-08-20 13:18 jackson
20354 * Control.cs: Implement Begininvoke
20356 2004-08-20 13:14 jackson
20358 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
20359 messages through the driver
20361 2004-08-20 13:12 jackson
20363 * XplatUIX11.cs: Lock before all X operations. Also added Async
20364 method functionality through XSendEvent
20366 2004-08-20 13:11 jackson
20368 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
20369 This will screw up on 64 bit systems)
20371 2004-08-20 13:10 jackson
20373 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
20374 Async messages through X/Win32
20376 2004-08-19 19:39 pbartok
20379 - Updated code to match new HandleData.DeviceContext type
20381 2004-08-19 19:38 pbartok
20384 - Made DeviceContext a generic object to allow usage from various
20386 - Added support for queueing Windows messages
20388 2004-08-19 19:37 pbartok
20391 - Added generation of MouseEnter, MouseLeave and MouseHover events
20392 - Added cleanup on EndPaint
20394 2004-08-19 19:17 pbartok
20397 - Added handling of WM_MOUSEHOVER
20398 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
20401 2004-08-19 18:55 jordi
20403 * ThemeGtk.cs: fixes button order
20405 2004-08-19 18:12 jordi
20407 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
20409 2004-08-19 17:09 pbartok
20412 - Added Right property
20413 - Added RightToLeft property
20415 2004-08-19 16:27 jordi
20417 * ThemeGtk.cs: experimental GTK theme support
20419 2004-08-19 16:26 jordi
20421 * ITheme.cs, Theme.cs: move themes from an interface to a class
20423 2004-08-19 16:25 jordi
20425 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
20428 2004-08-19 16:04 pbartok
20431 - Added colormap basics
20432 - Added a way to re-initialize with a different display handle
20433 - Fixed setting of the window background color
20434 - Added various X11 imports related to colors and colormaps
20436 2004-08-19 15:51 pbartok
20439 - Removed packing hints (Paolo suggested this a while back)
20440 - fixed colormap type
20441 - Added default Atom types
20442 - Added Screen and color structs and enums
20444 2004-08-19 15:39 pbartok
20447 - Added missing Draw() method
20448 - Added missing RecreateHandle event
20450 2004-08-19 15:30 pbartok
20453 - Added handling of WM_CLOSE
20455 2004-08-18 13:16 jordi
20457 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
20460 2004-08-18 09:56 jordi
20462 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
20464 2004-08-17 15:31 ravindra
20466 * SWF.csproj: Updated project.
20468 2004-08-17 15:25 pbartok
20471 - Drawing improvement; don't call UpdateBounds if we are not visible
20472 (or have been minimized)
20474 2004-08-17 15:24 pbartok
20477 - Finished IsVisible
20478 - Added Win32GetWindowPlacement
20480 2004-08-17 15:08 jackson
20482 * Panel.cs: Initial checkin of the Panel
20484 2004-08-17 14:25 pbartok
20487 - Fixed broken handling of default window sizes
20489 2004-08-17 13:29 jackson
20491 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
20492 has a large startup time.
20494 2004-08-17 10:25 jackson
20496 * HandleData.cs: union areas properly
20498 2004-08-17 10:12 jackson
20500 * HandleData.cs: union areas properly
20502 2004-08-16 20:00 ravindra
20504 * ToolBar.cs, ToolBarButton.cs: Added attributes.
20506 2004-08-16 18:48 ravindra
20508 * ToolBar.cs: Added attributes.
20510 2004-08-16 17:17 ravindra
20512 * SWF.csproj: Updated project.
20514 2004-08-16 17:16 jackson
20516 * XplatUIX11.cs: Check for more expose events before sending a
20517 WM_PAINT so they can all be grouped together. This makes dragging a
20518 window across another window redraw in a sane way.
20520 2004-08-16 15:47 pbartok
20523 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
20524 support OnMouseEnter/Leave()
20525 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
20528 2004-08-16 15:46 pbartok
20530 * XplatUIStructs.cs, XplatUIX11.cs:
20531 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
20532 OnMouseEnter/Leave()
20534 2004-08-16 15:34 jackson
20536 * XplatUIX11.cs: Group multiple expose events in HandleData, make
20537 sure messages get the message field set to WM_NULL if they are not
20540 2004-08-16 15:24 jackson
20542 * HandleData.cs: HandleData is used for storing message information
20545 2004-08-15 17:23 ravindra
20547 * ColorDepth.cs: Added attribute.
20549 2004-08-15 17:23 ravindra
20551 * SWF.csproj: Updated project for ToolBar Control.
20553 2004-08-15 17:20 ravindra
20555 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
20556 control and also dos2unix format.
20558 2004-08-15 17:13 ravindra
20560 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
20561 ToolBarButtonClickEventArgs.cs,
20562 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
20563 ToolBarTextAlign.cs: First Implementation of ToolBar control.
20565 2004-08-15 15:31 pbartok
20568 - First (mostly) working version
20570 2004-08-13 16:15 pbartok
20573 - Fixed Anchor default
20575 2004-08-13 15:43 pbartok
20578 - Changed GetCursorPos signature
20580 2004-08-13 15:42 pbartok
20582 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20583 - Changed signature for GetCursorPos
20585 2004-08-13 15:25 pbartok
20589 - Fixed resizing/exposure handling
20591 2004-08-13 15:22 jordi
20593 * ThemeWin32Classic.cs: removes redundant code and fixes issues
20596 2004-08-13 14:55 jordi
20598 * TrackBar.cs: change from wndproc to events
20600 2004-08-13 13:00 jordi
20602 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20603 XplatUIX11.cs: implements PointToClient (ScreenToClient)
20605 2004-08-13 12:53 pbartok
20608 - Changed GetWindowPos to also provide client area size
20609 - Fixed broken prototypes for several win32 functions
20611 2004-08-13 12:53 pbartok
20613 * XplatUI.cs, XplatUIDriver.cs:
20614 - Changed GetWindowPos to also provide client area size
20616 2004-08-13 12:52 pbartok
20619 - Added generation of WM_POSCHANGED
20620 - Changed GetWindowPos to also provide client area size
20622 2004-08-13 12:52 pbartok
20625 - Added Dispose() and destructor
20626 - Fixed resizing and bounds calculation
20628 - Added memory savings for invisible windows
20630 2004-08-13 12:46 jordi
20632 * TrackBar.cs: adds timer and grap window
20634 2004-08-13 10:25 jackson
20636 * Timer.cs: SWF Timer
20638 2004-08-12 16:59 pbartok
20640 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20641 - Implemented method to get current mouse position
20643 2004-08-12 14:29 jordi
20645 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
20646 enhancement, fix mouse problems, highli thumb, etc
20648 2004-08-12 13:31 pbartok
20651 - Fixed Anchoring bugs
20653 2004-08-12 13:01 jackson
20655 * StatusBar.cs: Don't forget things
20657 2004-08-12 12:54 jackson
20659 * ThemeWin32Classic.cs: Handle owner draw status bars
20661 2004-08-12 12:54 jackson
20663 * StatusBar.cs: Implement missing properties, events, and methods.
20664 Handle mouse clicking
20666 2004-08-12 10:19 jackson
20668 * StatusBarPanelClickEventArgs.cs,
20669 StatusBarPanelClickEventHandler.cs: Classes for handling status
20670 bar panel click events
20672 2004-08-12 10:10 jackson
20674 * Control.cs: Add missing properties
20676 2004-08-12 09:46 pbartok
20678 * BindingsManagerBase.cs:
20679 - Name changed to BindingManagerBase.cs
20681 2004-08-12 09:25 jordi
20683 * ScrollableControl.cs: calls ctrlbase instead of exeception
20685 2004-08-11 16:28 pbartok
20687 * InputLanguageChangingEventArgs.cs:
20688 - Never check in before compiling. Fixes the last check-in
20690 2004-08-11 16:26 pbartok
20692 * InputLanguageChangingEventArgs.cs:
20693 - More signature fixes
20695 2004-08-11 16:20 pbartok
20697 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
20698 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
20699 ImageListStreamer.cs, InputLanguage.cs,
20700 InputLanguageChangedEventArgs.cs,
20701 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
20702 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
20703 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
20704 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20707 2004-08-11 16:16 pbartok
20711 - Added .Net 1.1 method
20713 2004-08-11 15:25 pbartok
20716 - Fixed BindingManagerBase.cs filename
20718 2004-08-11 15:22 pbartok
20720 * BindingManagerBase.cs:
20721 - Was checked in with wrong filename
20723 2004-08-11 14:50 pbartok
20728 2004-08-11 13:41 jordi
20730 * XplatUIWin32.cs: Fixes ClientRect
20732 2004-08-11 13:19 pbartok
20734 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20736 - We had SetWindowPos and MoveWindow to set window positions and
20737 size, removed MoveWindow. We have GetWindowPos, so it made sense to
20738 keep SetWindowPos as matching counterpart
20739 - Added some X11 sanity checking
20741 2004-08-11 12:59 pbartok
20744 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
20745 (It seems that SetBounds is just a front for SetBoundsCore and
20746 SetBoundsCore updates the underlying window system and
20747 UpdateBounds is responsible for updating the variables associated
20748 with the Control and sending the events)
20749 - Major cleanup of Size handling; we now have two sizes, client_size
20750 and bounds. Bounds defines the window with decorations, client_size
20753 2004-08-11 12:55 pbartok
20755 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20756 - Added method to calculate difference between decorated window and
20759 2004-08-11 12:54 pbartok
20762 - Forcing redraw on resize
20764 2004-08-11 11:43 pbartok
20767 - Removed disposing of the actual images when the list is disposed
20769 2004-08-11 09:13 pbartok
20772 - Now properly reparents windows
20774 2004-08-11 08:37 pbartok
20779 2004-08-11 07:47 pbartok
20782 - Rewrote the collection stuff. Might not be as fast now, not
20783 keeping the number of children around and accessible directly, but
20784 it's more straightforward
20786 2004-08-11 07:44 pbartok
20788 * AccessibleObject.cs:
20789 - Fixed to match ControlCollection rewrite
20791 2004-08-11 07:43 pbartok
20794 - Added missing creation of the collection list
20796 2004-08-10 20:08 jackson
20798 * StatusBar.cs: Get the paint message from WndProc
20800 2004-08-10 19:31 jackson
20802 * ThemeWin32Classic.cs: Create Brushes as little as possible
20804 2004-08-10 19:20 jackson
20806 * UICues.cs: Add Flags attribute
20808 2004-08-10 19:19 jackson
20810 * StatusBarPanel.cs: Signature cleanup
20812 2004-08-10 19:10 jackson
20814 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
20815 Initial implementation of status bar item drawing
20817 2004-08-10 17:27 jordi
20819 * TrackBar.cs: add missing methods, properties, and restructure to
20822 2004-08-10 16:24 jackson
20824 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
20825 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
20828 2004-08-10 13:21 jordi
20830 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
20831 enhancements and standarize on win colors defaults
20833 2004-08-10 12:52 jackson
20835 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
20836 ThemeWin32Classic.cs: Implement DrawItem functionality
20838 2004-08-10 12:47 jordi
20840 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
20842 2004-08-10 12:32 jordi
20844 * Control.cs: throw ontextchange event
20846 2004-08-10 11:43 pbartok
20849 - Added more to the still unfinished Dock/Anchor layout code
20851 2004-08-10 11:39 pbartok
20853 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
20854 - Added GetWindowPos method
20856 2004-08-10 11:36 pbartok
20859 - Implemented several methods
20861 2004-08-10 09:47 jackson
20863 * TrackBar.cs: Allow control to handle buffering
20865 2004-08-10 09:41 jackson
20867 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
20869 2004-08-10 09:24 jackson
20871 * Label.cs, LinkLabel.cs: Let Control handle buffering.
20873 2004-08-10 09:09 jackson
20875 * StatusBar.cs: Let Control handle all the buffering.
20877 2004-08-10 09:08 jackson
20879 * Control.cs: Control will now handle the buffering code, so each
20880 control does not have to implement this.
20882 2004-08-10 08:34 jackson
20884 * XplatUIDriver.cs: Use default colors from the theme
20886 2004-08-09 17:12 pbartok
20889 - Fixed several bugs Ravindra pointed out
20891 2004-08-09 16:11 pbartok
20894 - Added incomplete dock layout code
20895 - Added support for mouse wheel
20897 2004-08-09 16:09 pbartok
20900 - Added handling for middle and right mousebutton
20901 - Added handling for mouse wheel
20902 - Added handling for key state and mouse state and position
20903 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
20906 2004-08-09 15:40 jackson
20908 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
20909 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
20912 2004-08-09 15:37 jackson
20914 * StatusBar.cs: Initial implementation of StatusBar
20916 2004-08-09 15:36 jackson
20918 * ITheme.cs: Add support for drawing status bar and getting status
20921 2004-08-09 15:35 pbartok
20926 2004-08-09 15:34 jackson
20928 * ThemeWin32Classic.cs: Add support for drawing status bar and get
20929 status bar item sizes
20931 2004-08-09 15:21 jackson
20933 * ThemeWin32Classic.cs: Use known colors for default control
20936 2004-08-09 15:12 jackson
20938 * ThemeWin32Classic.cs: Make the default font static, it is static
20939 in control so this doesn't change functionality and creating fonts
20942 2004-08-09 14:56 pbartok
20945 - Added GrabMode enum
20947 2004-08-09 14:55 pbartok
20949 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20950 - Removed Run method, was only required for initial development
20952 2004-08-09 14:51 pbartok
20954 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20955 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
20958 2004-08-09 13:48 pbartok
20961 - Fixed default sizing for child windows
20963 2004-08-09 12:56 pbartok
20966 - Added generation of WM_DESTROY message
20967 - Added handling of window manager induced shutdown
20969 2004-08-09 11:31 jackson
20971 * ThemeWin32Classic.cs: New names for control properties
20973 2004-08-09 11:25 jackson
20975 * Control.cs: Use new color names
20977 2004-08-09 11:02 jackson
20979 * XplatUI.cs: Get default window properties from the theme
20981 2004-08-09 11:01 jackson
20983 * ITheme.cs: The theme engine now controls default window
20986 2004-08-09 11:00 jackson
20988 * ThemeWin32Classic.cs: Add default window color properties
20990 2004-08-09 10:17 jackson
20992 * ThemeWin32Classic.cs: Use correct default back color
20994 2004-08-09 10:05 jackson
20996 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
20999 2004-08-09 09:56 jackson
21001 * XplatUI.cs: Remove defaults, these are handled by the theme now.
21003 2004-08-09 09:54 jackson
21005 * Control.cs: Get default properties from the theme.
21007 2004-08-09 09:53 jackson
21009 * ITheme.cs: Themes now handle default control properties
21011 2004-08-09 09:53 jackson
21013 * ThemeWin32Classic.cs: Themes now handle default control
21014 properties so coloring will be consistent
21016 2004-08-08 16:54 jordi
21018 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
21020 2004-08-08 15:08 jordi
21022 * XplatUIX11.cs: fixes keyboard crash
21024 2004-08-08 13:47 jordi
21026 * Label.cs: add cvs header info
21028 2004-08-08 12:09 jackson
21030 * ThemeWin32Classic.cs: Add pen_buttonface
21032 2004-08-08 11:52 jordi
21034 * Label.cs, LinkLabel.cs: [no log message]
21036 2004-08-08 11:34 jordi
21038 * ThemeWin32Classic.cs: Use Windows Standard Colours
21040 2004-08-07 17:32 jordi
21042 * TrackBar.cs: throw exceptions of invalid enums values
21044 2004-08-07 17:31 jordi
21046 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
21049 2004-08-07 16:56 jackson
21051 * HorizontalAlignment.cs: Initial checkin
21053 2004-08-07 13:16 jordi
21055 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
21058 2004-08-07 13:05 jordi
21060 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
21061 GetSysColor defines
21063 2004-08-06 18:01 pbartok
21065 * ThemeWin32Classic.cs:
21066 - Fixed some rounding issues with float/int
21068 2004-08-06 18:00 jackson
21070 * DockStyle.cs, AnchorStyles.cs:
21072 Add flags and serializable attributes.
21074 2004-08-06 17:46 pbartok
21077 - Implemented GetParent
21079 2004-08-06 17:18 pbartok
21082 - Fixed some rounding issues with float/int
21084 2004-08-06 17:17 pbartok
21086 * X11Structs.cs, XplatUIX11.cs:
21087 - Fixed Refresh and Invalidate
21089 2004-08-06 15:30 pbartok
21091 * Control.cs, X11Structs.cs, XplatUIX11.cs:
21092 - Fixed recursive loop when resizing
21093 - Improved/fixed redrawing on expose messages
21095 2004-08-06 09:53 jordi
21097 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
21098 keyboard navigation
21100 2004-08-06 08:02 pbartok
21102 * X11Structs.cs, XplatUIX11.cs:
21103 - Fixed reparenting
21104 - Fixed window border creation
21106 2004-08-05 15:38 pbartok
21109 - Attempted fix for reparenting problems
21111 2004-08-04 15:14 pbartok
21114 - Fixed Invalidation bug (calculated wrong client area)
21115 - Added ClientSize setter
21117 2004-08-04 15:13 pbartok
21120 - Added AutoScale properties
21122 2004-08-04 15:13 pbartok
21125 - Added latest files
21127 2004-08-04 14:11 pbartok
21129 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21131 - Added Invalidate handling
21133 2004-08-03 17:09 jordi
21135 * XplatUIDriver.cs: fixes spelling mistake
21137 2004-07-27 09:53 jordi
21139 * TrackBar.cs: fixes trackbar events, def classname, methods
21142 2004-07-27 09:29 jordi
21144 * ScrollBar.cs: fixes scrollbar events
21146 2004-07-27 04:38 jordi
21148 * Control.cs: changes to be able to run winforms samples
21150 2004-07-26 11:42 jordi
21152 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
21153 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
21155 2004-07-26 05:41 jordi
21157 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
21158 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
21161 2004-07-22 09:22 jordi
21163 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
21164 check link overlapping, implement events, and fixes
21166 2004-07-21 10:28 jordi
21168 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
21170 2004-07-21 10:19 jordi
21172 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
21173 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
21174 LinkLabelLinkClickedEventArgs.cs,
21175 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
21176 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
21179 2004-07-19 13:09 jordi
21181 * Control.cs, Label.cs: label control re-written: added missing
21182 functionlity, events, and properties
21184 2004-07-19 10:49 jordi
21186 * Control.cs: fixes SetBounds logic
21188 2004-07-19 01:29 jordi
21190 * Control.cs: Call RefreshWindow only if the window has created
21192 2004-07-15 14:05 pbartok
21194 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
21195 - Implemented ImageList and ImageList.ImageCollection classes
21196 - Added ColorDepth enumeration
21197 - Updated SWF VS.Net project
21199 2004-07-15 11:06 jordi
21201 * XplatUIStructs.cs: added MsgButons enum
21203 2004-07-15 11:03 jordi
21205 * Control.cs: added basic mouse handeling events
21207 2004-07-15 03:38 jordi
21209 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
21210 Vertical TrackBar control implementation
21212 2004-07-13 09:33 jordi
21214 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
21216 2004-07-13 09:31 jordi
21218 * Control.cs, Form.cs: commit: new properties and fixes form size
21221 2004-07-09 14:13 miguel
21223 * ProgressBar.cs: Spelling
21225 2004-07-09 11:25 pbartok
21228 - Removed usage of Rectangle for drawing. Miguel pointed out it's
21231 2004-07-09 11:17 miguel
21233 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
21235 * ProgressBar.cs: Fixed spelling for `block'
21237 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
21240 Avoid using the += on rect.X, that exposed a bug in the compiler.
21242 2004-07-08 23:21 pbartok
21244 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
21245 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
21246 BaseCollection.cs, Binding.cs, BindingContext.cs,
21247 BindingMemberInfo.cs, BindingsCollection.cs,
21248 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
21249 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
21250 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
21251 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
21252 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
21253 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
21254 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
21255 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
21256 FrameStyle.cs, GiveFeedbackEventArgs.cs,
21257 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
21258 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
21259 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
21260 InputLanguageChangedEventArgs.cs,
21261 InputLanguageChangedEventHandler.cs,
21262 InputLanguageChangingEventArgs.cs,
21263 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
21264 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
21265 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
21266 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
21267 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
21268 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
21269 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
21270 QueryAccessibilityHelpEventArgs.cs,
21271 QueryAccessibilityHelpEventHandler.cs,
21272 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
21273 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
21274 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
21275 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
21276 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
21277 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
21278 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
21279 XplatUIX11.cs, lang.cs: