1 2008-05-10 Geoff Norton <gnorton@novell.com>
3 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4 problems with rapid scrolling of treeviews. Fixes #381084
6 2008-05-10 Geoff Norton <gnorton@novell.com>
8 * XplatUICarbon.cs: Deactivate the active window before
9 activating the desired window. Completes fixing #386504
11 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
14 SmallChange to the item size width plus the padding, to match .net.
16 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18 * FileDialog.cs: Apply the custom filter typed by the user in the file
19 name combobox as much as possible while navigating in the file dialog.
22 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24 * Binding.cs: Actually use NullValue if the retrieved value of
25 data source is null or DBNull. Makes a test pass.
27 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
29 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
30 * MimeIcon.cs: Provide a way to get icons from resources.
32 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
34 * Binding.cs: When the value retrieved from the control to be assigned
35 to the data source is null, actually use the 2.0 DataSourceNullValue
36 value. Make pass a data binding test.
38 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
40 * Control.cs: We need to invalidate implicit children even when
41 invalidate is called with invalidatechildren = false. (Implicit
42 children are really part of the parent.)
43 * ListView.cs: Double-buffer internal child controls for less
45 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
46 owner ListView subitems for greatly increased performance.
49 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
51 * FileDialog.cs: When the user types a wildcard character in the
52 filename combobox, update the contents of the folder using the text as
54 Fixes part of #385261.
56 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
58 * ListBox.cs: Various fixes for MultiColumn listboxen.
61 2008-05-08 Andreia Gaita <avidigal@novell.com>
63 * HtmlElement.cs: Implement Style property
65 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
67 * ListBox.cs: Respect checkboxes when measuring item size.
68 * ThemeWin32Classis.cs: When drawing list items, don't draw
69 text outside of the item's bounds to prevent overlapping.
70 (.Net actually overlaps, but that's just silly.)
73 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
75 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
76 Gert Driesen. Fixes bug #324830.
78 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
80 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
83 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
85 * BindingSource.cs: When calling IsSynchronized, return the value of
86 the related IList list.
88 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
90 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
93 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
95 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
96 navigation to scroll the grid if the current cell is not visible.
98 2008-05-07 Andreia Gaita <avidigal@novell.com>
100 * HtmlElement.cs: Implement TabIndex
102 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
104 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
105 properties, even when there are no items.
108 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
110 * NativeWindow.cs: Add support for multiple handles per window.
111 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
112 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
113 directly - use FromHandle instead.
116 2008-05-07 Andreia Gaita <avidigal@novell.com>
118 * HtmlElement.cs: Implement InnerHTML setter
120 2008-05-07 Andreia Gaita <avidigal@novell.com>
122 * HtmlDocument.cs: Implement Focused
124 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
126 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
127 methods, as well as add messages to the exceptions.
129 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
131 * BindingSource.cs: Setting DataSource should only reset DataMember if
132 the previous value was null (make pass a not working test).
134 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
136 * BindingSource.cs: When EndInit call is postponed and is called until
137 DataSource.EndInit is called, remove the handler for data source.
139 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
141 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
143 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
145 * ToolStripManager.cs: Store references to toolstrips as
146 weak references so they do not prevent forms from getting collected.
149 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
151 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
152 on .Net. So do the same thing in WndProc.
154 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
156 * TrackBar.cs: Commit patch from Andy Hume that corrects
157 the clickable areas to better match .Net.
160 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
162 * TrackBar.cs: Commit patch from Andy Hume that adds the
163 ResizeRedraw control flag so the track bar repaints itself
164 when it is resized. [Fixes bug #387072]
166 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
168 * TrackBar.cs: Commit patch from Andy Hume that adds better
169 support for keyboard navigation when the TrackBar is vertical.
172 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
174 * BindingSource.cs: Implement ISupportInitializeNotification support.
176 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
178 * ThemeVisualStyles.cs: Added support for ToolBar.
180 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
182 * ToolBar.cs: Made the Vertical property internal.
184 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
186 * ThemeVisualStyles.cs: Added support for TrackBar.
188 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
190 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
191 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
192 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
193 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
194 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
195 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
197 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
199 * ThemeVisualStyles.cs: Added support for UpDownBase.
201 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
203 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
204 Extracted Theme.UpDownBaseDrawButton.
206 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
208 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
209 removed from the static toolstrips collection in ToolStripManager
210 when they are disposed. Provides a workaround for bug #386483.
212 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
214 * GridEntry.cs: Read-only properties with Editor with
215 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
218 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
220 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
221 the menu key and there are no items on the menu.
224 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
226 * Control.cs: Avoid calling ToString on a string.
227 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
228 * GroupBox.cs: In FlatStyle property throw, not just create, the
229 exception. Avoid calling ToString on a string.
230 * ProgressBar.cs: Avoid calling ToString on a string.
231 * ScrollBar.cs: Avoid calling ToString on a string.
232 [All issues were found using Gendarme]
234 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
236 * NotifyIcon.cs: Prevent click events to be trigger after double click
237 events. Fixes remaining issues of bug #324832.
239 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
241 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
242 to mimic win32 behavior. Partially fixes bug #324832.
244 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
246 * BindingSource.cs: Implement Find methods.
248 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
250 * BindingSource.cs: Implement Sort, ApplySort overloads, and
253 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
255 * ListBindingHelper.cs: When calling GetListItemProperties and the
256 passed object is ITypedList, return the result of
257 ITypedList.GetItemProperties instead.
259 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
261 * LinkLabel.cs: Set default value of name on constructor of Link class
262 only for 2.0 profile.
264 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
266 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
267 Fixes remaining issues of bug #346154.
269 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
271 * LinkLabel.cs: Set a default value for name on internal contructor of
272 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
274 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
276 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
277 and refer all instances to owner.links. Partially fixes #346154.
279 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
281 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
282 length equal zero. Also called CreateLinkPieces in constructor. It fixes
283 the LinkLabel test 'TestLinkArea'.
285 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
287 * Form.cs: Remove menu before close form to prevent form to be not gaced.
290 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
292 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
295 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
297 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
300 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
302 * MenuAPI.cs: Remove unused ProcessCmdKey method.
304 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
306 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
309 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
311 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
314 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
316 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
317 sometimes we open a conext menu on mouse down of some controls and the mouse
318 up is dispatched to menu and dont need to. It fix remaining issues of
319 #363711 and other problems related to menu mouse click events.
321 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
323 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
324 some var names to better fit changes, now we have month_menu and today_menu
325 vars. Fixes bug #363711.
327 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
329 * MonthCalendar.cs: Handle every right mouse click to open context menu,
330 right now the default month menu but it will be change to have "Go to today"
333 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
335 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
337 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
339 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
341 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
343 * ThemeVisualStyles.cs: Added support for TreeView.
345 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
347 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
348 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
350 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
352 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
354 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
356 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
357 Implement 2.0 SP1 stuffs.
359 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
361 * FileDialog.cs: Implement 2.0 SP1 stuffs.
363 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
365 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
366 Implement CanEnableIme property. (2.0 SP1)
368 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
370 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
373 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
375 * Control.cs: Provide an internal way for a control to override
376 the setting of Height.
377 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
378 set height using new method.
380 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
382 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
384 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
386 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
387 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
389 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
391 * ThemeVisualStyles.cs: Added support for StatusBar.
393 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
395 * DataObject.cs: Add the other IDataObject interface.
397 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
399 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
400 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
402 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
404 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
405 * ListView.cs: Hide non-public API.
406 * MaskedTextBox.cs: Remove extra attribute.
408 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
410 * DataGridViewImageCell.cs: Use formatted value instead of value
411 to calculate preferred size.
413 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
415 * ListBox.cs: Move some initialization around so that selected_indices
416 is not accessed before it is created.
418 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
420 * InputLanguageCollection.cs: Implement the collection better.
423 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
425 * ToolStripDropDownItem.cs: Get the correct event object for
427 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
430 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
432 * DataGridViewRowCollection.cs: We don't currently support shared
433 rows. Should fix test failures caused by previous commit.
435 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
437 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
438 datagridview gets set. Only paint cells in visible columns.
439 * DataGridViewCell.cs: Draw border after cell content.
440 * DataGridView.cs: Invalidate after setting some properties. Only
441 use visible columns. Fit hit test bug with areas in the col/row header
442 area but not in a row or col. Implement UpdateCell/Row methods.
444 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
446 * DataGridViewElement.cs: Don't throw NIEX.
447 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
448 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
449 * DataGridViewCheckBoxColumn.cs: Implement ToString.
450 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
451 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
452 if the user filled in the formatting Value, use it.
454 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
456 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
459 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
461 * BindingSource.cs: Some corrections to Filter property, as well as
462 setting it for our list when resetting it.
464 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
466 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
467 than the maximum. Fixes reopened bug #384182.
469 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
471 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
472 Fixes remaining issues of #367490.
474 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
476 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
477 SystemInformation.WorkingArea to get max_screen value.
479 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
481 * BindingSource.cs: Implement Filter and RemoveFilter.
483 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
485 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
487 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
489 * X11Dnd.cs: When trying to convert data and we know we started the
490 dnd loop, don't try to use the cached data if the loop is not running,
491 which means that the data has been resetted.
494 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
496 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
499 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
501 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
502 it to drawn off screen edge. Fixes bug #367490.
504 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
506 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
507 menu position to have only one assignment of Location var.
509 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
511 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
512 for this patch. Fixes bug #384115.
514 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
516 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
517 the same. If LargeChange is zero, set a minimum size for the scroll
518 thumb grip. [Fixes bug #384182]
520 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
522 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
525 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
527 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
529 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
531 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
534 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
536 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
538 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
540 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
542 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
544 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
546 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
548 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
550 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
552 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
554 2008-04-27 Andreia Gaita <avidigal@novell.com>
556 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
557 supposed to return a reference to an mshtml interface, which we
559 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
560 reference to an mshtml interface, which we don't support). Code
562 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
563 DomDocument getter (it's supposed to return a reference to an
564 mshtml interface, which we don't support). Code formatting cleanup.
566 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
568 * ListView.cs: Ouch, forgot to commit.
570 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
573 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
575 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
577 * ListView.cs: When calculating box selection for virtual mode, don't
578 look for intersection with item's text, but item bounds, since that
579 would mean read ListViewItem's text for _every_ item, and that's
580 something we just can't do in virtual mode (items are only requested
583 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
585 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
586 partial support for managed windows (based on the patch from Ernesto).
588 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
590 * ListView.cs: When doing a key search use FindItemWithText method
591 instead of doing the search by ourselves, this way we avoid
592 duplicating the code and also we handle the special case for virtual
593 mode. To achieve that make our private overload of FindItemWithText
594 internal and also have a 'roundtrip' parameter.
596 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
598 * ListView.cs: When doing the layout don't request the
599 ListViewItem instance if we are in virtual mode (since we can't request it
600 until the item is actully drawn).
602 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
604 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
607 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
609 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
610 the patch from Ernesto).
612 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
614 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
615 * ThemeVisualStyles.cs: Added.
617 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
619 * IDeviceContext.cs: Added a missing using.
621 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
623 * ButtonBase.cs: Made IsDefault protected internal.
624 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
626 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
628 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
629 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
630 RadioButtonRenderer.cs: Included in the 1.1 profile.
631 * IDeviceContext.cs: Added.
632 * TextRenderer.cs: Included a member in the 1.1 profile.
634 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
636 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
638 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
640 * ErrorProvider.cs: Make the error icons come after the control
641 they refer to. It isn't the way the MS does it, but its better
642 than what we were doing. See bug #368587.
644 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
646 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
647 from Eric Albright that lazy loads the input language as ensures
648 everything gets properly initialized. Fixes bug #373871.
650 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
652 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
653 implicit mnemonics. [Fixes bug #383000]
655 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
657 * X11Dnd.cs: When canceling the operation, automatically restore the
658 default cursor - normally the default cursor is restored when the
659 mouse buttons are released, but we should be able to restore it even
660 if the buttons are still pressed (for example, when pressing ESC to
664 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
666 * X11Dnd.cs: When starting a new drad and drop operation, set control
667 field to null, just as the other fields, to avoid calling any
668 operation on a previous control. Also, when calling DndLeave on a
669 control, set it to null, thus we don't fire that event multiple times
673 2008-04-23 Geoff Norton <gnorton@novell.com>
675 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
676 the whole_window object. Fixes #377084.
678 2008-04-23 Andreia Gaita <avidigal@novell.com>
680 * HtmlElement.cs: Implement RaiseEvent (event injection into the
683 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
685 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
687 2008-04-23 Andreia Gaita <avidigal@novell.com>
689 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
692 2008-04-23 Andreia Gaita <avidigal@novell.com>
694 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
697 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
699 * X11Dnd.cs: When the drop was cancelled, or could just not be
700 performed, return DragDropEffect.None always (match .net).
702 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
704 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
706 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
708 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
710 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
712 * DataGridView.cs: Add support for error icon tool tips.
713 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
714 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
716 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
718 * X11Structs.cs: Add mouse button masks enum.
719 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
720 WM_EXITSIZEMOVE only once at the beginning and at the end of the
721 form resize/move operation instead of for each step of it.
722 [Fixes bug #346529 for the x11 backend]
724 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
726 * DataGridView*: Implement support for drawing error icons.
728 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
730 * TreeView.cs: Make vbar and hbar internal.
731 * TreeNode.cs: If collapsing the node removes one of the TreeView's
732 scrollbars, invalidate the whole thing.
735 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
737 * TreeView.cs: Calling Sort() sets Sorted = true.
738 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
739 if the nodes need to be sorted.
742 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
744 * Form.cs: Fire SizeChanged for both when the form is minimized and
746 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
747 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
749 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
751 * ComboBox.cs: If the combobox is disabled, draw a disabled
752 background before painting anything else.
755 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
757 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
758 forget to send a Leave event to the target window - just as .net does
759 when cancelling dnd operations.
761 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
763 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
764 soon as possible - this happens when we send the drop message to the
765 target window. This way we avoid firing any DragOver _after_ drop finished.
768 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
770 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
771 * Form.cs: Handle form minimization as a special state, where size doesn't
772 change, but we have to fire SizeChanged.
773 [Fixes bug #325122 for the win32 and x11 backends]
775 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
777 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
778 if the handle is disabled.
781 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
783 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
784 for forms with FormBorderStyle.None.
787 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
789 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
791 [Fixes bug #346529 for the X11 backend]
793 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
796 - Send a mouse Enter message after say dragging the mouse with a
797 button down and then release it in another client.
798 - Reset the cursor to prevent X11 from remembering it and setting it
799 before the control gets WM_SETCURSOR.
800 - Qeueue a mouse move after a mouse enter like win32.
803 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
805 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
806 It's sent when the form gets moved, resized, closed.
807 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
808 [Fixes bug #359193 for X11]
810 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
812 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
815 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
817 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
818 group. Fixes the 1.1 build.
820 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
822 * ListView.cs: Use display indexes for selection in Details view, as
823 well as do the proper layout based on display indexes for that view
826 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
828 * ListView.cs: Focused item information is now stored as a display
829 index, and display indexes are used all over the place for selection,
830 instead of ListViewItem.Index values, which doesn't give us enough
831 information to modify the selection in groups mode, and was broken.
833 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
835 * Control.cs: Do not fire MouseDown if validation of the control has
837 * Form.cs: Validate the form before closing.
838 [Fixes bugs #330501 and #353310]
840 2008-04-18 Andreia Gaita <avidigal@novell.com>
842 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
843 CreateWebBrowserSiteBase implementations
844 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
845 Style and TabIndex setters
847 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
849 * ListViewGroup.cs: When returning the actual item count, return the
850 proper count for default group.
853 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
856 * ListViewGroup.cs: When calculating groups layout, get the actual
857 number of items per group, since groups added to the group BUT not
858 added to the ListView are just ignored, and can cause some nasty
859 exceptions because of the lack of synchronization. Also for
860 ListViewGroup don't use lazy initialization for items, since we
861 the common scenario is to use it always - and it helps us to refactor
862 and clean the .ctor overloads.
864 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
866 * ListView.cs: When adding an item to a ListViewItemCollection
867 belonging to a group (ListViewGroup.Items), don't generate a redraw if
868 the added item hasn't beeen previously added to the ListView instance
869 refered by the group, since it will be ignored. This should avoid some
870 really nasty flickering.
872 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
874 * ListView.cs: When accessing an item in a specific display
875 position, use the helper method GetItemAtDisplayIndex, instead of
876 direct access to the reordered_items_indices array. When doing layout
877 for groups set the correct Items index for the display position (since
878 in groups mode items don't have the same position as in Items
880 * ListViewGroup.cs: Add a field to store the starting item number,
881 which is later used when calculating the layout.
885 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
887 * Application.cs: Fixed ProductVersion to fallback to the assembly
888 version. Fixes regression for bug #325413.
890 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
892 * ListView.cs: New helper method to retrieve an item in a _specific
893 display_ position (the items can be displayed in a different order
894 than one of Items collection).
895 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
896 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
897 specific display position (again remember that items can be sorted
898 different than Items).
900 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
902 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
903 list and update it when the collection changes. We were recreating
904 this several times per row paint and for every pixel the mouse moved
906 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
909 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
911 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
912 list to use generics.
913 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
914 and remove unneccessay casts.
916 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
918 * DataGridViewBand.cs: Add internal way to set displayed variable.
919 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
920 * DataGridView.cs: Make sure we always keep track of Displayed
921 rows and columns, and only draw things that are displayed.
923 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
925 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
926 whether the key events are filtered or not. Introduced
927 PreFilter() process for this purpose. This fixes atokx3/iiimx
930 2008-04-16 Andreia Gaita <avidigal@novell.com>
932 * HtmlHistory.cs: Implement Length property
934 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
936 * DataGridView.cs: Call EndEdit when a sort is performed so we take
937 away the edit textbox. Refactor to reuse column sort code.
939 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
941 * MenuAPI.cs: Remove the code that save and restore capture status of
942 grab_control, this fixes some Menu and Context menu bugs but maybe it can
943 cause some others, I cant figure the possible problems of this patch but
944 right now remove the code looks to be better than keep it. This patch fixes
945 bugs #357638, #378721 and #379570.
947 2008-04-12 Andreia Gaita <avidigal@novell.com>
949 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
950 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
951 add missing properties and event handlers.
953 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
955 * ListBox.cs: Make sure the LargeChange we are setting is at least
956 zero, to prevent an IOORE. [Fixes bug #379531]
958 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
960 * ComboBox.cs: Support item navigation by entering text. Firstly,
961 in DropDownList mode, for each key-press select the next item
962 starting with that letter.
963 For other modes, when no item selected, on arrow-up/-down and open
964 drop-down select the first item matching the text in the textbox.
966 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
968 * X11Keyboard.cs : Control.FromHandle() could return null
969 in MoveCurrentCaretPos().
971 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
973 * ListView.cs: When changing the size in VirtualMode, also Reset the
975 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
976 changing selection info for VirtualMode.
979 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
981 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
982 view, don't use LineLimit for the first item - use NoWrap *always*
983 instead, since ListView.LabelWrap is not used for this view.
986 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
988 * Binding.cs: Call UpdateIsBinding when setting control - probably
989 Binding is already usable and we don't need to wait to check the
990 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
991 Created, just like 2.0 does.
992 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
994 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
996 * Binding.cs: Just realized we don't need to have a handler for
997 BindingContextChanged, since this info should be now consumed directly
998 in the BindingManagerBase. And also, the manager.IsBindingSuspended
999 state info is checked directly, instead of caching it.
1001 * CurrencyManager.cs: IsSuspended should return always false if Count
1004 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1006 * Binding.cs: When calling PushData, return if manager.Count == 0,
1007 since we just don't have data to be read. Also, when setting the
1008 Control for binding, hook up some events to refresh the IsBinding
1009 state when BindingContext change or control gets created; use
1010 Control.IsHandleCreated instead of Control.Created check to set
1011 IsBinding state - we *actually* need to modify IsBinding when control
1012 is created, but we don't have any Created event, only HandleCreated.
1013 Fixes part of #349364.
1015 2008-04-11 Geoff Norton <gnorton@novell.com>
1017 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
1018 warping a null Caret.
1020 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1022 * DataGridView.cs: Implement row/column autosizing methods. Implement
1024 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
1025 * DataGridViewRowCollection.cs: Add an internal sorting method.
1027 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1029 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
1030 value in ListView drawing code.
1032 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1034 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
1035 is clicked. Respect the user setting Cancel in FileOk.
1037 2008-04-11 Geoff Norton <gnorton@novell.com>
1039 * ListView.cs: Avoid setting and resetting control Width/Heights and
1040 calculate the final value and set it once. Prevents a feedback loop
1043 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1045 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
1048 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
1050 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
1051 Add some on-the-spot code, but it seems we don't need it.
1053 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1055 * Form.cs: Add method for DataGridView to trigger focus cues
1056 even when it handles the tab keypress.
1058 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1060 * DataGridView.cs: More keyboard handling, tab, esc.
1061 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
1062 when at the beginning or end of the text in the text box.
1064 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1066 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
1068 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1070 * DataGridView.cs: Some fixups for showing and adding the edit control.
1071 * DataGridViewButtonColumn.cs: Implement ToString.
1072 * DataGridViewCell.cs: Size and position the control simultaneously.
1073 * DataGridViewTextBoxCell.cs: Use base to position control.
1075 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1077 * DataGridViewCell.cs: Fix up some formatting and painting code.
1078 * DataGridViewImageCell.cs: Implement some NIEX methods.
1080 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1082 * ToolStripItemCollection.cs: What moving an item from one owner
1083 to another, remove from source owner before adding to destination.
1086 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1088 * PictureBox.cs: Call Load when ImageLocation is set.
1091 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
1093 * X11Keyboard.cs, XplatUIX11.cs :
1094 Implement over-the-spot mode (with some odd offsets).
1095 - set preedit position when caret is set.
1096 - Wrap XMoveResizeWindow() to move preedit position.
1098 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1100 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
1103 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1105 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
1106 and ScanTableIndex public, it fix compilations errors when compiling
1107 WinForms to generate keyboard layout resources.
1109 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1111 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
1112 different element count than scan table. It prevents some errors in non
1115 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1117 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
1119 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1121 * DataGridView.cs: Call OnContentClick.
1122 * DataGridViewCell.cs: Do a null check on ValueType instead
1124 * DataGridViewCheckBoxCell.cs: Implement.
1126 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1128 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
1130 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1132 * X11Keyboard.cs : Check XGetIMValues() return value in
1133 case it does not return input styles in some environment.
1135 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1137 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
1139 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1141 * BindingContext.cs: Stub UpdateBinding method.
1143 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
1145 * X11Structs.cs : added couple of structs for XIM support.
1147 Release XIM in case it failed to create XIC.
1148 Use consts for XNblah string.
1149 Add support for IM style customization and XIC creation
1150 for preedit-position and preedit-callback.
1151 Right now use MONO_WINFORMS_XIM_STYLE environment variable
1152 (list of: over-the-spot | on-the-spot | root). Only root
1155 (redoing r99172 with fix.)
1157 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1159 * TreeView.cs: Center the checkbox a little better.
1161 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1163 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
1164 Apply very nice patch from Ernesto Carrea that simplifies our
1165 scrollbar drawing. [From bug #376146]
1167 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1169 * TreeView.cs: Correct the location of the root node checkbox when
1170 ShowRootLines = false. Don't draw the root lines for the root node
1171 when ShowRootLines = false. [Fixes bug #377535]
1173 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1175 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
1177 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
1179 * MaskedTextBox.cs: Added missing attribute. Code formatting.
1180 * PageSetupDialog.cs: Added missing attribute. Code formatting.
1181 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
1182 * ImeMode.cs: Added missing field.
1183 * HtmlWindow.cs: Code formatting. Fixed line endings.
1184 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
1186 * HtmlHistory.cs: Code formatting. Fixed line endings.
1187 * HtmlDocument.cs: Code formatting. Fixed line endings.
1188 * ToolStripPanel.cs: Added missing IList implementation.
1189 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
1191 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1193 * BindingContext.cs: Changed argument names to fix corcompare errors.
1194 * DataGridView.cs: Removed extra explicit interface implementation
1195 of IDropTarget. Code formatting.
1196 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
1197 * ComboBox.cs: Changed argument names to fix corcompare errors.
1198 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
1200 * GridColumnStylesCollection.cs: Changed argument names to fix
1201 corcompare errors. Removed extra tabs.
1202 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
1204 * Control.cs: Changed argument names to fix corcompare errors. Code
1205 formatting. Removed extra explicit IList implementation.
1206 * TextBox.cs: Changed argument names to fix corcompare errors. Code
1207 formatting. Use string.Empty instead of "".
1208 * GridItemCollection.cs: Changed argument names to fix corcompare
1209 errors. Code formatting.
1210 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
1211 corcompare errors. Code formatting.
1212 * ImageList.cs: Changed argument names to fix corcompare errors.
1213 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
1214 * DataGridViewRowCollection.cs: Changed argument names to fix
1215 corcompare errors. Code formatting.
1216 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
1217 * DataGridViewSelectedCellCollection.cs: Changed argument names to
1218 fix corcompare errors. Code formatting.
1219 * DataGridViewComboBoxCell.cs: Changed argument names to fix
1220 corcompare errors. Code formatting.
1221 * LinkLabel.cs: Changed argument names to fix corcompare errors.
1222 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
1224 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
1226 * BindingSource.cs: Changed argument names to fix corcompare errors.
1227 Removed extra explicit interface implementations.
1228 * DataGridViewSelectedRowCollection.cs: Changed argument names to
1229 fix corcompare errors. Code formatting.
1230 * ToolStripItemCollection.cs: Removed extra explicit interface
1231 implementation of IList.ReadOnly.
1232 * DataGridViewColumnCollection.cs: Changed argument names to fix
1233 corcompare errors. Code formatting.
1234 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
1235 * ListView.cs: Changed argument names to fix corcompare errors.
1236 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
1238 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
1240 * ListBindingHelper.cs: Changed argument names to fix corcompare
1242 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
1243 fix corcompare errors. Code formatting.
1244 * ToolStripPanel.cs: Removed extra explicit implementation of
1245 IDropTarget interface.
1246 * ListBox.cs: Changed argument names to fix corcompare errors. Code
1247 formatting. Removed extra tabs and spaces.
1248 * DataGridViewCellCollection.cs: Changed argument names to fix
1250 * Help.cs: Changed argument names to fix corcompare errors. Code
1252 * TabControl.cs: Changed argument names to fix corcompare errors.
1253 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
1255 * TableLayoutSettings.cs: Changed argument names to fix corcompare
1258 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1260 * ListBindingHelper.cs: When returning properties, only return those
1261 that are browsable. Also, don't do a linear search of the properties,
1262 but use the indexer of the PropertyDescriptorCollection class.
1264 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1266 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
1267 Dictionary containing the related (child) currency managers. Also,
1268 when setting DataSource, add datasource to our List if it is not a list.
1270 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1272 * PropertyGridTextBox.cs: Fix background color of the buttons.
1273 * PropertyGridView.cs: Make the entry less jumpy.
1275 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1277 * PropertyGrid.cs: Fix unused variable warnings.
1279 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1281 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
1282 double-click. It expanded it once in the mouse down and then
1283 again in the double-click handler.
1285 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1287 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
1288 TypeConverter and UITypeEditors.
1290 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1292 * Control.cs: Visibility should be set synchronously,
1293 so we must also redraw once it is and not rely on layouting or
1294 other code to repaint.
1297 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
1299 * DataGridViewCell.cs: Respect DataGridView.GridColor.
1301 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1303 * Control.cs: Invalidate when the alpha channel is less than 255,
1304 not only when control is transparent.
1306 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1308 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
1309 Implement some painting convenience methods that threw NIEX.
1311 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1313 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
1314 * DataGridViewLinkCell.cs: Implement.
1316 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1318 * GridEntry.cs: Report the conversion exception error description.
1321 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1323 * PropertyGridView.cs: Do not scroll to item on resize.
1326 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1328 * BindingContext.cs: When retrieving a BindingManagerBase, if the
1329 dataSource parameter is ICurrencyManagerProvider, then return
1330 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
1331 instead of creating a new one.
1333 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1335 * BindingSource.cs: Implement support for Type instances as
1338 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1340 * DataGridView.cs: Minor cleanups and call CellMouseUp.
1341 * DataGridViewCell.cs: Make some painting routines internally virtual.
1342 * DataGridViewButtonCell.cs: Implement.
1344 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1346 * Control.cs: We always need to invalidate our children with
1347 transparent backgrounds when we are invalidated.
1350 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1352 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
1353 and CancelCurrentEdit on CurrencyManager respectively. Implement
1354 support for ICancelAddNew too.
1356 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1358 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
1359 call EndNew/CancelNew if list is ICancelAddNew.
1361 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1363 * DataGridView.cs: Guard against an exception while painting
1364 if there are no rows.
1366 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1368 * DataGridView.cs: Implement a bunch of keyboard commands.
1370 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
1372 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
1373 isn't set, don't call OnPaint. [Fixes bug #375300]
1375 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1377 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
1378 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
1379 hookup the remaining events related to CurrencyManager, and fire
1380 OnListChanged also for the Clear () method.
1382 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1384 * BindingSource.cs: Use Current and Position implementations in
1385 CurrencyManager instead of using our own routines, since we need
1386 to be in synch with it. Count should NEVER return a -1 value, and
1387 also report ListChanged events for both simple IList data
1388 sources (manually) as well for IBindingList ones (by hooking up an
1389 event handler for it).
1391 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1393 * BindingSource.cs: Make one .ctor call the another, to avoid
1394 duplicate code. Add the CurrencyManager property, and also for AddNew
1395 throw the proper exceptions and show better error messages.
1397 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1399 * ComboBox.cs: Only adjust selectedindex if Handle has been
1400 created. Fixes failing test.
1402 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1404 * ComboBox.cs: Adjust selectedindex if we insert a new item
1405 above the current selectedindex in a sorted ComboBox.
1408 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1410 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
1413 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1415 * DataGridViewTextBoxCell.cs: Implement stuffs.
1417 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1419 * TreeView.cs: Create the scrollbars even earlier to be
1420 double dog certain they are created before they are accessed.
1422 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1424 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
1426 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1428 * ScrollBar.cs: Create an internal safe Value setter so we
1429 won't crash if we try to set a value outside the min and max.
1430 * TextBoxBase.cs: Use safe value setter to guard against a
1431 potential NRE that is being reported by Reflector.
1433 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1435 * TreeView.cs: Create the scrollbars earlier in the constructor
1436 to attempt to guard against an NRE in SetTop in Reflector.
1438 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1440 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
1441 DataGridViewRowCollection.cs: Do not scroll column and row headers,
1442 show messagebox on data format error, use column display index
1443 correctly, make sure HitTest supports new layout stuff,
1444 make sure scrollbars support new layout stuff.
1446 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1448 * XplatUIX11.cs : Patch by Doug Rintoul.
1449 For some IM engines, keypress events need to delay call
1450 to XPending() and XNextEvent() in the loop so that it
1451 does not mess the orders in XIM commit callback.
1452 Some KeyRelease events such as shift keys need to be
1453 processed both in the IM engine and winforms driver
1454 itself since winforms holds its own state check.
1456 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
1458 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1460 * X11Keyboard.cs, XplatUIX11.cs :
1461 add primitive support for XIM input support (preedit-
1462 nothing and status-nothing). It requires precise event
1463 capturing (XSelectInput/"filterEvents") and different
1464 call to XFilterEvent against root window.
1465 Get composed string and send dummy WM_IME_COMPOSITION.
1466 Free XIM and XIC instances in finalizer.
1468 (This first patch does not include suggested changes
1469 by Doug Rintoul. It will follow.)
1471 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1473 * DataGridView.cs: When binding to a property, if the property
1474 doesn't have a setter, set the column to readonly.
1477 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1479 * ComboBox.cs: Guard against NRE if an arrow key is hit while
1480 we aren't dropped down. Support Home/End in DropDownList mode.
1483 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1485 * TreeNodeCollection.cs: Don't increment count until we've
1486 saved our index to return.
1489 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1491 * Label.cs: Add padding to the label's AutoSize calculation.
1494 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1496 * ListBindingHelper.cs: Actually implement GetListName method.
1498 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500 * BindingSource.cs: Throw the propert expceptions for some methods, as
1501 well as detect the list item type for Add method if DataSource is null.
1503 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1505 * DataGridViewCell.cs: I don't know why I commented this out,
1506 putting it back for now.
1508 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1510 * DataGridViewCell.cs: Remove storage for owning column, just
1512 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1513 * DataGridViewColumnHeaderCell.cs: If the header text has been
1514 explicitly set, return it.
1517 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1519 * DataGridViewRowCollection.cs: Disable row sharing when
1520 using data binding. Its a great feature, but lets work on
1521 getting DGV usable first before we worry about optimizations.
1523 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1525 * BindingSource.cs: When resetting our internal list, compute list
1526 item type information to be used for indirect list access. Also
1527 implement/tune some properties and methods related to the list access
1529 * ListBindingHelper.cs: Add a stub for GetListName method, used from
1532 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1534 * DataGridView.cs: If RowCount is increased while ColumnCount
1535 is zero, add a column. [Fixes bug #331649]
1537 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1539 * DataGridViewRowCollection.cs: When adding new rows for
1540 databinding, make sure they are place before the add row.
1543 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1545 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1546 instead of Index order.
1548 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1550 * DataGridView.cs: If columns are added by increasing ColumnCount,
1551 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1554 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1556 * DataGridView.cs: Turn off and on the "new row" when
1557 AllowUserToAddRows is toggled. When the handle is created,
1558 set current cell and selected cell/row/col.
1560 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1562 * ComboBox.cs: When navigating the drop down by keyboard, we
1563 need to scroll the list box if our selection moves out of the
1564 currently shown items. [Fixes bug #371990]
1566 2008-03-24 Luke Page <luke.a.page@gmail.com>
1568 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1569 on the control. Also now handles unicode compatibility characters and
1570 stores the unicode compatibility length on the stack. Fixes Bugs
1571 #355198 and #366436.
1573 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1575 * BindingSource..cs: Take into account DataMember when re-creating the
1576 List property, and also create a specific kind of list as needed.
1578 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1580 * ListBindingHelper.cs: Add a new case for GetList () method - when we
1581 get an empty IEnumerable, try to detect whether the datamember is
1582 valid or not for that type, if true, return null, and throw exception
1585 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
1587 * ComboBox.cs: Alt-Down should drop down the list, Esc should
1588 retract it. [Fixes bug #371989]
1590 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1592 * PropertyGrid.cs: Initialize the sorting button as pushed.
1594 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1597 - Visually select the PropertyTab.
1598 - Filter Properties by Attributes properly.
1600 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1602 * MenuItem.cs: Remove menu item from parent when disposed.
1605 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1607 * ToolBar.cs: Don't reset layout_type if Dock = None.
1609 2008-03-21 Andreia Gaita <avidigal@novell.com>
1611 * UserControl.cs: Select the first available control when we get focus.
1614 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1616 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
1617 the content if we are in edit mode. [Fixes bug #343964]
1619 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1621 * DataGridViewCell.cs: Fix border painting for column headers.
1623 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1625 * BindingSource.cs: When setting or resetting data source,
1626 use ListBindingHelper.GetList () method, since it will get the list in
1627 case datasource is IListSource.
1629 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
1631 * DataGridViewCell.cs: Implement lots more stuffs.
1633 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1635 * PropertyGridView.cs, GridEntry.cs: Implement support for
1636 UITypeEditor.IsDropDownResizable.
1638 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
1640 * DataGridViewCell.cs: Remove unused variables, improve how
1641 several of the property getters work.
1642 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
1643 get its size from the parent row/col.
1645 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1647 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
1648 user alters manually the PropertyTabs collection via the
1649 PropertyTabs property.
1651 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1653 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
1654 new tests for them to be sure to be compatible with .net.
1656 2008-03-20 Andreia Gaita <avidigal@novell.com>
1658 * WebBrowserBase.cs: Fix attributes, add events
1659 * WebBrowser.cs: Fix Padding signature
1661 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1663 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
1665 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
1667 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
1668 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1669 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
1670 passes the new suite of tests for it.
1672 2008-03-18 Andreia Gaita <avidigal@novell.com>
1674 * WebBrowser.cs: Add missing attributes, missing Padding and
1675 DefaultSize properties, remove extraneous getters
1677 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1679 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
1682 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1684 * ComboBox.cs: Move resetting the selected index to keypress
1685 instead of textchanged. Changing the text programmatically
1686 should not trigger resetting the selected index. Fixes test.
1688 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1690 * ComboBox.cs: When the user types into the textbox, reset
1691 the selected index to -1. [Fixes bug #371672]
1693 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1695 * FileDialog.cs: Support Control-A for selecting everything
1696 in an OpenFileDialog. [Fixes bug #371564]
1698 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
1700 * DataGridView.cs: When row/column visible/height properties
1701 change, invalidate. Take the NIEX out of InvalidateRow/Column
1702 etc. We don't support them yet, but we can just invalidate
1703 everything until we do support them. (Added MonoTODO). Set
1704 proper control styles.
1705 * DataGridViewRow.cs: Don't call PaintHeader if row headers
1708 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1710 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
1712 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
1714 * DataGridViewRow.cs: Only paint the white background in
1715 cell bounds, the row bounds extends past the cells if the
1716 grid width isn't as wide as the DGV.
1718 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
1720 * DataGridView*: Completely revamp the drawing to match the
1721 public API. Our grids now look better, and call all the
1722 appropriate methods and event to allow users to override
1723 the painting and do their own.
1725 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1727 * ListBindingHelper.cs: Implement 2.0 GetList methods.
1729 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1731 * DataGridView.cs: Implement BorderStyle.
1733 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1735 * FileDialog.cs: Apply patch from Andy Hume: Any time we
1736 are comparing attributes, make sure we only look at the
1737 one we are interested. These calls were failing if there
1738 were more than one attribute.
1741 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1743 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
1745 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1747 * PageSetupDialog.cs: Stub EnableMetric.
1748 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
1749 * PrintPreviewDialog.cs: Add ProcessDialogKey,
1752 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1754 * MonthCalendar.cs: Remove unused variable.
1756 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1758 * DataGridView*.cs: corcompare stuffs.
1760 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1762 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
1763 The savings aren't worth the extra code to fix the optimization.
1766 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1768 * ToolBar.cs: Always call base.Dock in the Dock override so that
1769 Control's layout_type gets reset correctly.
1772 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
1774 * X11Dnd.cs: End DnD operation also for the middle mouse button.
1776 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1778 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
1779 at the same time we do explicit ones, because we have to give all
1780 other controls on the container a chance to handle explicit ones
1781 first. If no one has an explicit mnemonic, then we can let the
1782 MenuStrip have a shot at implicit mnemonics.
1783 * MenuStrip.cs: Create an implicit mnemonic function.
1784 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
1785 mnemonics for MenuStrips.
1788 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1790 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
1791 DataGridColumnStyle.cs: corcompare stuffs.
1793 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1795 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
1796 Details - This is needed after we added the bits to use any available
1797 column also for List and SmallIcon view.
1799 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1801 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
1802 at the proper place, not only when changing SelectedIndex and changing
1803 the selection using keys/mouse, as .net does.
1805 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1807 * ControlBindingsCollection.cs: Implement last 2.0
1808 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
1809 in the new 2.0 Add methods.
1811 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1813 * ListBox.cs: When calling SelectedIndexCollection.Clear,
1814 return if no items are previously selected - this is done to avoid
1815 firing OnSelectedIndexChanged without need to do so. Also,
1816 when creating handle ensure that the focused item is visible (as
1819 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1821 * ListBox.cs: Rewrote/refactored most of selection code. We require
1822 the following things in selection: a) keep selection sorted (both
1823 indices and items), b) SelectedIndices automatically detect the
1824 selection mode, c) SelectedIndex should be the first selected item
1825 index, d) Need to Focus/adjust scroll bar when selecting a new item,
1826 not only for SelectedIndex, which is specially important in Multi*
1827 selection modes. To achieve this we are moving the selection core to
1828 SelectedIndexCollection and make depend all selection modifications on
1832 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1834 * ToolStrip.cs: Enable implicit mnemonics for drop down
1835 menu strips. [Fixes part of bug #367692]
1837 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1839 corcompare - fix parameter names [stragglers].
1840 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
1841 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
1844 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1846 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
1847 was a mnemonic pressed as well as Alt. Also, if nothing handles a
1848 mnemonic, let the ToolStripManager have it even if it doesn't
1849 have a matching mnemonic.
1852 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1854 corcompare - fix warning about implicit implementation
1855 * ToolStrip.cs: Add IToolStripData interface.
1856 * IToolStripData.cs: Add.
1858 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1860 corcompare - fix warning about implicit implementation
1861 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
1864 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1866 corcompare - fix parameter names [N-Z].
1867 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
1868 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
1869 PropertyManager.cs, RichTextBox.cs,
1870 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
1871 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
1872 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
1873 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
1874 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
1875 ToolStripContentPanel.cs, ToolStripDropDown.cs,
1876 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1877 ToolStripPanel.cs, ToolStripSeparator.cs,
1878 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
1879 UICuesEventHandler.cs, UpDownBase.cs.
1881 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1883 corcompare - fix parameter names [G-M].
1884 GridColumnStylesCollection.cs, GridItemCollection.cs,
1885 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
1886 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
1887 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
1888 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
1889 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
1891 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1893 corcompare - fix parameter names [A-F].
1894 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
1895 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
1896 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
1897 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
1898 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
1899 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
1900 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
1902 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1904 * GridEntry.cs: Do not convert not only if the types match,
1905 but also if the property type is assigneable from the value's
1909 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1911 * PropertyGridView.cs:
1912 - Subscribe to the listbox only once and not everytime.
1913 - Update the textbox even if SetValue fails.
1914 - Close the listbox before calling TrySetValue just in case.
1917 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
1919 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
1921 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1923 * ListView.cs: Implement support for custom column width based on
1924 Columns collection (we were previously using this collection only
1928 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1930 * ListViewItem.cs: For Tile view, always set bounds for the first
1931 subitem (which is the main one), and also don't let Width be larger
1932 than ListView.TileSize.Width. Improve code readibility also.
1933 * ThemeWin32Classic.cs: When painting the ListViewItem instances
1934 in Tile view, _always_ use the NoWrap flag.
1937 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
1939 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
1941 * GridEntry.cs: For MS compitability make all child properties
1942 readonly if the parent is readonly. Ugh.
1943 [Fixes bug #365945 and #365944]
1945 2008-02-29 Andreia Gaita <avidigal@novell.com>
1947 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
1948 relative to the history
1950 2008-02-29 Andreia Gaita <avidigal@novell.com>
1952 * HtmlElement.cs: More handlers for mouse and key events
1954 2008-02-28 Andreia Gaita <avidigal@novell.com>
1956 * WebBrowserBase.cs: MouseClick sig changed.
1957 * HtmlHistory.cs: Implement history navigation
1958 * HtmlElement.cs: Add event handlers, and connect them.
1960 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
1963 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
1964 so that DisplayNameAttribute doesn't get ignored.
1965 - Check for ParenthesizeNameAttribute and parenthesize the Label.
1966 - Add support for PasswordPropertyTextAttribute
1967 * PropertyGridView.cs: Check if an entry is a password.
1968 [Fixes bugs #365589, #365586, #365588]
1970 2008-02-28 Andreia Gaita <avidigal@novell.com>
1972 * PropertyGridView.cs: Revert the message filtering change, as we
1973 need it to block after all. Remove block parameter, unnecessary.
1975 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
1977 * UserControl.cs: Better implementation of GetPreferredSize.
1978 First step to fixing bug #361441.
1980 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1982 * Binding.cs: Actually implement data binding support for
1983 classes implementing IBindableComponent.
1984 * ControlBindingsCollection.cs: Likewise.
1986 2008-02-26 Andreia Gaita <avidigal@novell.com>
1988 * PropertyGridView.cs: Use a message filter to check when to
1991 2008-02-26 Andreia Gaita <avidigal@novell.com>
1993 * Application.cs: Change the message_filters loop so a filter
1994 can be removed while looping.
1996 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
1998 * GridEntry.cs: Optimization in ToggleValue so that it caches
2000 * PropertyGridView.cs: An optimization so that the property isn't
2001 re-read twice for each StandardValue added to the drop-down menu.
2002 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
2006 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
2008 * Application.cs: Apply patch from Justin Cherniak to match
2009 MS better for ProductName, ProductVersion, and CompanyName.
2012 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2014 * Binding.cs: Actually implement 2.0 NullValue property. Also
2015 when changing the formatting related properties, only update the state
2016 if formatting_enabled is true (we don't mind otherwise).
2018 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
2020 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
2023 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2025 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
2026 of GetType on the current value as it uses reflection to
2027 determine the type. This fixes the case where the new value is
2030 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2032 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
2035 2008-02-24 Luke Page <luke.a.page@gmail.com>
2037 * Line.cs, TextControl.cs: Implement offset x and y so that a
2038 document doesn't have to begin at (0,0) on the viewpoint.
2039 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
2040 bars and switches the text alignment (and therefore is now
2041 implemented for textbox). Fixes #321383.
2043 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
2046 properties. Also when changing FormattingEnabled update the control
2047 property -as .Net does-.
2049 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
2051 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
2052 * Binding.cs: Add stubs for the overloads of the Add method in
2055 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2057 * Binding.cs: PullData () returns a false value if we got an exception.
2058 Also when validating the control and we get an error, instead of
2059 setting the value of the previous one, cancel the event (tested in 1.1
2062 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
2064 * TreeView.cs: Make selected_node and highlighted_node internal.
2065 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
2066 to null when Nodes.Clear is called.
2069 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2071 * FontDialog.cs: Ensure that when the Font is set in code,
2072 all the gui pieces are updated accordingly.
2075 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2077 * TextRenderer.cs: Respect proposed size for MeasureString.
2078 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
2079 autosize, use a proposed width to force wrapping for long text.
2082 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2084 * TreeView.cs: Factor in checkboxes = false and state images in
2085 to HitTest. [Fixes bug #363360]
2087 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2089 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
2090 when drawing the selected range.
2093 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2095 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
2096 ResizeRedraw control styles.
2099 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2101 * TreeView.cs: StateImages are basically custom checkboxes, so
2102 factor their size the same as real checkboxes when determining
2106 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2108 * MessageBox.cs: Make the message box wider if the form caption
2109 is longer than the text in the form.
2112 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2114 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
2116 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2118 * TreeNode.cs: Guard against an NRE when the parent's
2119 StateImageList hasn't been set.
2122 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2124 * SplitContainer.cs: Add SupportsTransparentBackColor and
2125 OptimizedDoubleBuffering control styles.
2128 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2130 * Application.cs: For the app data paths and the registry key paths,
2131 ensure they are created before returning them to the user.
2134 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2136 * Application.cs: Guard against an NRE in CompanyName and
2139 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2141 * Application.cs: For CompanyName, ProductName, and ProductVersion,
2142 make sure we handle all three cases correctly: attribute is present,
2143 attribute is present but is an empty string, and attribute is not
2146 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2148 * PropertyGridView.cs:
2149 - Fix a NRE that caused a test failure
2150 - Another performance improvement - cache the standard values
2153 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2155 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
2158 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
2160 * PropertyGridView.cs: Fix a big performance bug.
2162 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2164 * SelectionRange.cs: Apply patch from Andy Hume to make
2165 constructor behavior more accurate. [Fixes bug #362117]
2167 2008-02-19 Andreia Gaita <avidigal@novell.com>
2169 * Control.cs: Added a new flag is_disposing to track if the
2170 window is currently in the process of being disposed of.
2171 This is used so that, when firing visibility changes triggered
2172 by unparenting controls during Dispose, the control doesn't
2175 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2177 * ComboBox.cs: Set height to preferred height when the handle
2178 is created. [Fixes bug #360862]
2180 2008-02-18 Andreia Gaita <avidigal@novell.com>
2182 * XplatUIX11.cs: Create FosterParent with border width at 0.
2183 With the previous value of 4, everytime a control got reparented
2184 from parent = null, it's location would be shifted right and
2185 down by 4, since these coordinates would be offset by the
2186 FosterParent's border width.
2188 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
2190 * Control.cs: During diposing firstly remove ourselfes from
2191 the parent and *then* destroy our handle, because removing
2192 ourselfes from the parent controls collection causes
2193 VisibilityChange, etc events, which require a handle and end
2194 up recreating the control.
2196 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
2198 * GridEntry.cs: Set expanded state before notifying that the
2199 expansion has taken place.
2200 * PropertyGridView.cs:
2201 - Set the propertygridtextbox text to the selected
2202 StandardValue before proceeding to setting it.
2203 - Scrolling bugfixes.
2205 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2208 - Fix ValueText to not return null.
2209 - Fix conversion error reporting to actually happen.
2210 * PropertyGridView.cs: Set entry only if the text has changed.
2213 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2216 - Fix handling of a null current value.
2217 - Swallow editor exceptions.
2220 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2222 * PropertyGrid.cs: Clear current items first thing before
2223 repopulating subitems.
2225 - Handle null StandardValuesCollection.
2226 - Mark as not editable if there is no PropertyDescriptor and
2227 if the Converter cannot convert from string.
2228 [Part of fix for bugs #360666 and #358332]
2230 2008-02-15 Luke Page <luke.a.page@gmail.com>
2231 * MaskedTextBox.cs: Now skips non editable characters after a
2232 character has been entered and we are progressing to the next
2233 position in the MaskedTextBox.
2235 2008-02-15 Luke Page <luke.a.page@gmail.com>
2236 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
2237 that it changes the selection rather than just repositioning the
2238 cursor. Fixes Bug #360873.
2240 2008-02-15 Luke Page <luke.a.page@gmail.com>
2241 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
2242 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
2243 correctly. See #359330
2245 2008-02-15 Andreia Gaita <avidigal@novell.com>
2247 * XplatUIX11.cs: If the handle is null when posting a message, use the
2248 current thread queue to post instead. Fixes #332409
2250 * SendKeys.cs: Slight optimization
2252 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
2254 * PropertyGrid.cs, PropertyGridView.cs:
2255 Fix multiple scrolling and sizing issues.
2258 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2260 * PropertyGridView.cs: Ensure that drop down editors are shown
2261 in the WorkingArea of the screen.
2264 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2266 * GridEntry.cs: Fail silently when UITypeEditor is missing.
2269 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2271 * Binding.cs: Implement 2.0 DataSourceNullValue property.
2273 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2275 * PropertyGridView.cs:
2276 - Clear the controls in the drop down form after it is hidden.
2277 - Fix Width sizing of the dropdown editors to match MSFT.
2279 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2281 * PropertyGridView.cs:
2282 - Fix height for drawing the grid entry
2283 text value, so that it clips multiline text properly.
2284 - Fix unfocusing to match MSFT.
2286 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2288 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
2289 Fixes a bug where on repopulation after value changed items become
2292 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294 * Binding.cs: For the 2.0 profile, look for a
2295 'PropertyChanged' event in the target control, and add checks for
2296 DataSourceUpdateMode property to change -or not- the data source
2297 from validation/control property change.
2299 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
2301 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
2302 not compare struct with null in 2.0).
2304 2008-02-10 Luke Page <luke.a.page@gmail.com>
2306 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
2307 updates the provider and if not using a provider, uses the internal document
2308 class implementation of password char. Also when showing text, uses display string
2309 from the provider, instead of the actual text.
2311 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2313 * Binding.cs: Ooooops, forgot to take into account the data_source
2314 and binding_member_info null case (it was breaking the Binding tests).
2316 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2318 * Binding.cs: Implement support for data source changes exposed by
2319 'PropertyNameChanged' events, and update the control property as
2322 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2324 * Binding.cs: Implement 2.0 WriteValue method.
2326 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2328 Commit patch from James Purcell for better AutoScale implementation:
2330 * ScaleControl should call GetScaledBounds with the control's total size rather
2331 than client size. GetScaledBounds should handle ignoring the borders in its
2332 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
2333 (for the most part they just call the base code now since that is fixed).
2334 * Added ScaleChildrenInternal to allow controls to disable scaling of children
2335 without having to override ScaleChildren (since none of .NET's controls do).
2336 This is required for most controls in Mono that have scrollbars to prevent the
2337 scrollbars from being moved/resized.
2338 * Nested ContainerControls can have a different scale mode than their parent.
2339 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
2340 designer produce different results both of which look incorrect).
2341 * Default AutoScaleMode for ContainerControl should be Inherit.
2342 * Simplified workaround for ComboBox scaling issue.
2343 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
2344 1.0 style auto scaling should scale the whole control's size instead of
2345 ignoring the borders (except for Form) and the rounding is done differently to
2346 preserve control alignment.
2347 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
2349 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
2350 * CurrentAutoScaleDimensions should round the estimated character width instead
2352 * ListBox's GetScaledBounds should always use the height it was set to instead
2353 of the height that was passed in. This prevents rounding errors from
2354 accumulating quickly with IntegralHeight.
2357 2008-02-08 Andreia Gaita <avidigal@novell.com>
2359 * Form.cs: Add a null check (darn it).
2361 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2363 * MdiClient.cs: Make sure the requesting form actually owns the
2364 control menu items before removing them. Also, use
2365 Suspend/ResumeLayout when adding or removing items so we only
2369 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2371 * Control.cs: Guard against an NRE in ShowFocusCues.
2374 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
2377 property, as well as stubbing DataSourceUpdateMode.
2379 2008-02-08 Andreia Gaita <avidigal@novell.com>
2381 * Form.cs: When closing forms, get focus back to the active control of the
2382 active form. [Fixes #341314, corner case]
2384 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2386 * MdiClient.cs: After we move the scrollbars, invalidate the NC
2387 area, so any old scrollbar artifacts are cleaned up.
2390 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2392 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
2393 for our menus, display that control box menu instead of the 1.1
2396 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2398 * MdiControlStrip.cs: Add property to access the mdi form tied to
2400 * MdiClient.cs: Be smarter about removing and adding toolstripitems
2401 to the implicitly merged menu. Every time we clicked the form, items
2402 were getting removed and the re-added, causing the form to jump around
2403 as the menu resized.
2405 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2407 * MdiClient.cs: Make sure the NormalBounds always gets set. It
2408 was being reset by the implicit menu merge for menustrips.
2411 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2413 * Form.cs: Don't do the previous change when WindowState = Normal,
2414 or it messes up where the window is placed. Fixes test failure.
2416 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2418 * Form.cs: When becoming visible, if we are an MDI child, call
2419 SetWindowState with a dummy old_state so that changes will actually
2421 [Fixes the 2nd part of bug #325473]
2423 2008-02-07 Andreia Gaita <avidigal@novell.com>
2425 * Control.cs: Reset properties to their pre parent-change values in case
2426 the new parent == null (in which case we're basically removing the control,
2427 and don't want any events fired due to fake property changes)
2430 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
2432 * PropertyGridView.cs:
2433 - Refactor SetValue to allow setting the value
2434 when a custom editor is used, but the entry is not editable.
2435 - Remove the custom editor control on CloseDropDown.
2438 2008-02-06 Andreia Gaita <avidigal@novell.com>
2440 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
2441 reflection only on 1.1, this property is public on system.drawing on 2.0.
2444 2008-02-06 Andreia Gaita <avidigal@novell.com>
2446 * WebBrowser.cs: Do a normal page refresh by default.
2448 2008-02-05 Andreia Gaita <avidigal@novell.com>
2450 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
2451 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
2452 platforms. Fixes #359036
2454 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
2455 platform-specific flags.
2457 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2459 * Binding.cs: Add 2.0 BindableComponent property - just return control
2462 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
2464 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2465 Jonathan for this patch. Fixes #358442.
2467 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
2469 * Form.cs: If we change the active MDI child form, let the others
2470 know they need to repaint their title bar so it will appear inactive.
2471 [Fixes part 1 of bug #325473]
2473 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
2475 * PropertyGridView.cs: Do not trucate custom editors' width
2476 and align them to the left.
2477 [Fixes #358353 and #358349]
2479 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2481 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2482 Also fix the arguments passed to CollectionChangeEventArgs in the
2485 2008-02-04 Geoff Norton <gnorton@novell.com>
2487 * Hwnd.cs: The conversion to Quartz coordinates happens in
2488 System.Drawing. Removing this translation from here.
2490 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2492 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2493 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2494 GridItemCollection.cs:
2495 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2497 2008-02-04 Geoff Norton <gnorton@novell.com>
2499 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
2500 SYSKEYUP if any other key has been pressed in the mean time.
2503 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2505 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2506 when the item in current position is different than 0. Also, save the
2507 item index in the beginning of the operation, instead of getting the
2508 index of the item when the event is actually performed. Lastly clean
2509 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2513 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2515 * Form.cs: Alt-Minus for MDI children system menu should work
2516 with both the minus keys on the keyboard.
2519 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2521 * Control.cs: Don't invalidate on region change. The WM should
2522 take care of this automagically. Keeps us out of an infinite
2523 paint loop if someone changes the Region in the OnPaint.
2526 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2528 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2530 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2532 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2533 down the MonthCalendar only on F4, not Alt+F4.
2534 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2537 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2539 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2540 if its part of a DateTimePicker, else, use the back color.
2543 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2545 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2548 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2550 * CurrencyManager.cs: When we get a ListChanged event from our source,
2551 always fire our own ListChanged event, as .Net does.
2553 2008-02-03 Luke Page <luke.a.page@gmail.com>
2555 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2558 2008-02-03 Luke Page <luke.a.page@gmail.com>
2560 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2561 property. Removed if for richtext property that was always true.
2562 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2564 2008-02-03 Luke Page <luke.a.page@gmail.com>
2566 * TextBoxBase.cs - commited patch from James Purcell that
2567 correctly sets the FixedHeight control style when the MultiLine
2568 property is changed on a TextBox control. Fixes bug 358229.
2570 2008-02-02 Luke Page <luke.a.page@gmail.com>
2572 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2573 Fixes bug 351938 - caret is positioned correctly when drawn
2574 and when calculating textual position of caret, no longer
2575 has a NRE in certain situations.
2577 2008-02-01 Geoff Norton <gnorton@novell.com>
2579 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2580 get that region removed from the paint event.
2581 * XplatUICarbon.cs: Remove the window mapping after disposing of
2582 window. Prevents a crash with handle reuse. Optimize exposes
2583 only onto visible windows (rare; but possible).
2585 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2587 * UpDownBase.cs: Make sure the internal textbox calls the base's
2588 OnMouseDown and OnMouseUp so the textbox will function correctly.
2589 There were notes saying it doesn't chain up, but its an internal
2590 class, so our implementation may differ.
2593 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2595 * ListBox.cs: Fix a logic error and don't process MouseDown
2596 for mouse buttons other than Left.
2598 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2600 * Control.cs: Remove HeightInternal.
2601 * ListBox.cs: Commit patch from James Purcell that correctly
2602 calculates heights for ListBoxen.
2605 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2607 * Label.cs: Apply patch from James Purcell that corrects the
2608 signature of the AutoSize property.
2611 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2613 * ListBox.cs: Don't throw [Mouse]Click events for buttons
2614 other than the left mouse button.
2616 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
2618 * Control.cs: Remove my awesome optimization as it caused some
2619 regressions with control ordering. :(
2622 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
2624 * PropertyGridView.cs: Fix a NRE on double click when there is no
2627 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2629 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
2631 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
2633 * ListBox.cs: Call MouseClick and MouseDoubleClick.
2636 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2638 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
2639 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
2640 instead of Hwnd.bmp_g.
2642 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2644 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
2645 Use the Hwnd one instead.
2647 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2649 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
2651 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2653 * Form.cs: corcompare for RestoreBounds.
2655 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2657 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
2659 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2661 * Form.cs: Handle Alt-Minus for MDI children forms.
2662 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
2663 Add mnemonics to the control menu.
2666 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2668 * Binding.cs: Initial implementation bits of FormattingEnabled
2669 property and BindingComplete event (2.0).
2670 * BindingCompleteEventArgs.cs: Internal methods for setting error text
2673 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
2675 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
2676 table.Location. [Fixes bug #354672]
2678 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
2680 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
2681 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
2683 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2685 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
2686 of doing all the re-bound work, just invalidate and call SetControlText
2687 to set the updated text of selected item to our textbox.
2690 2008-01-28 Andreia Gaita <avidigal@novell.com>
2692 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
2693 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
2694 missing properties and methods. Add Load, Unload, Error, GotFocus,
2695 LostFocus, Resize, Scroll events (only load and unload are connected)
2697 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
2699 * AccessibleObject.cs: Modified argument names to match MS.
2700 * Button.cs: Modified argument names to match MS.
2701 * BindingContext.cs: Modified argument names to match MS.
2702 * BindingMemberInfo.cs: Modified argument names to match MS.
2703 * ButtonBase.cs: Modified argument names to match MS.
2704 * ComboBox.cs: Modified argument names to match MS.
2705 * Control.cs: Modified argument names to match MS.
2706 * CheckedListBox.cs: Modified argument names to match MS.
2707 * CommonDialog.cs: Modified argument names to match MS.
2708 * DataGrid.cs: Modified argument names to match MS.
2709 * CursorConverter.cs: Modified argument names to match MS.
2710 * ControlPaint.cs: Modified argument names to match MS.
2711 * CheckBox.cs: Modified argument names to match MS.
2712 * ControlBindingsCollection.cs: Modified argument names to match MS.
2713 * BindingSource.cs: Modified argument names to match MS.
2714 * DataFormats.cs: Modified argument names to match MS.
2715 * ContainerControl.cs: Modified argument names to match MS.
2716 * CurrencyManager.cs: Modified argument names to match MS.
2717 * Application.cs: Modified argument names to match MS.
2718 * ContextMenuStrip.cs: Modified argument names to match MS.
2719 * ContextMenu.cs: Modified argument names to match MS.
2720 * BindingManagerBase.cs: Modified argument names to match MS.
2721 * WindowsFormsSection.cs: Fixed line ending.
2723 2008-01-27 Andreia Gaita <avidigal@novell.com>
2725 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
2726 detecting that the dropdown toolwindow is hidden. EndLoop outside the
2729 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
2731 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
2732 MS. Code formatting.
2734 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2736 * Binding.cs: Don't avoid the Format event if the control
2737 property type is object. Also, if the value retrieved by
2738 the data source is null _and_ the control proeprty type
2739 is object, return Convert.DBNull (match .Net).
2740 Fixes part of #324286.
2742 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2744 * ListControl.cs: Since we are getting two BinginContextChanged events
2745 for the same binding context instance (when the control is added to
2746 form, and when the form is actually shown), take it into account only the
2747 first time for a given binding context instance.
2748 Fixes part of #324286.
2750 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
2752 * PropertryGridView.cs: Ops.
2754 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
2756 * PropertyGridView.cs: Close dropdown form if the owner form is
2760 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
2762 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
2763 RootGridEntry.cs, CategoryGridEntry.cs:
2764 PropertyGrid rewrite.
2765 - Rewrite all of the control logic in PropertyGrid.
2766 - Rewrite all of the ComponentModel logic in GridEntry.
2767 - Rewrite all UI work in PropertyGridView.
2768 - Many bugfixes, etc.
2770 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
2772 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
2773 when all contained controls are autosize or dock-fill. Also take into
2774 account when the total percentage of column/row sizes is not 100%.
2777 2008-01-24 Andreia Gaita <avidigal@novell.com>
2780 - Save a reference to the IDocument in the instance and
2781 use that one instead of going to WebHost.Document; the document that the
2782 WebHost returns might not be the right one (in case of frames).
2783 - Use the hashcode returned from the IDocument interface.
2784 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
2785 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
2786 LinkColor, Url, VisitedColor, Window
2789 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
2790 set_Attribute, NextSibling, Parent, TagName, AppendChild,
2791 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
2792 SetAttribute, Equals, equality operators.
2793 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
2794 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
2796 * HtmlElementCollection.cs: Change implementation to use a generic
2797 collection. Implemented Enumerator and CopyTo
2799 * HtmlHistory.cs: Add constructor, no implementation yet.
2801 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
2802 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
2803 Equals, equality operators.
2805 * HtmlWindowCollection.cs: Implemented.
2807 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
2808 has been deprecated).
2810 * WebBrowserBase.cs: Use Completed event to track document loading
2811 (Navigated has been deprecated)
2813 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
2815 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
2816 level MenuItems do not respect tabs.
2819 2008-01-23 Geoff Norton <gnorton@novell.com>
2821 * XplatUICarbon.cs: Ensure that windows are created in their initial
2822 FormWindowState. Finished fixing Fullscreen windows on Carbon
2824 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2826 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
2827 be used as grab_control. Also save status of capture before show ContextMenu
2828 and restore it after close.
2830 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2832 * Control.cs: Internal FindRootParent method added to return high control
2835 2008-01-23 Geoff Norton <gnorton@novell.com>
2837 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
2838 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
2839 it work again. Handle HITTEST events.
2841 2008-01-23 Geoff Norton <gnorton@novell.com>
2843 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
2844 a crash in certain cases. Support for fullscreen windows in certain cases.
2846 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
2848 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
2851 2008-01-23 Geoff Norton <gnorton@novell.com>
2853 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
2855 2008-01-23 Geoff Norton <gnorton@novell.com>
2857 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
2859 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2861 * SplitContainer.cs: Remove unused declarations.
2862 * Binding.cs: Remove unused declarations.
2864 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2866 * Form.cs: Remove unused declaration of 'active' in Activate method.
2867 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
2868 prevent compilation warnings.
2869 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
2870 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
2871 * Bindings.cs: Remove unused formatting_enabled declaration.
2872 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2874 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2876 * PropertyGridView.cs: Remove usused 'ex' declaration.
2877 * DataGridView.cs: Remove unused declarations.
2879 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2881 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
2883 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
2884 to Control class, it makes possible to grab menu to controls that can't
2885 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
2886 WmMouseMove removed since it was used only to track menu events.
2889 - Moved all active_tracker stuff from Form.
2890 - ProcessActiveTracker added to prevent code duplicity, now mouse events
2891 can call this method instead of reimplement all necessary code handle for
2893 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
2897 - Remove special handle to ToolStripOverflow, now we can grab menu to
2898 controls that can't reach Form using parent tree.
2899 - Change type of grab_control from Form to Control.
2901 2008-01-22 Geoff Norton <gnorton@novell.com>
2903 * TextBoxBase.cs: Split up the sizing of controls and placing of
2904 controls. Fixes a bug where scrollbars in Reflector could be sized
2905 wrong and have non-working thumbers.
2907 2008-01-23 Geoff Norton <gnorton@novell.com>
2909 * XplatUI.cs: Refactor environment variables to default support to the
2910 Carbon driver on the Mac.
2912 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2914 * Label.cs: Uses new LabelPainter for drawing operations.
2915 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
2916 * Theme.cs: DrawLabel and LabelDefaultSize removed.
2918 2008-01-22 Geoff Norton <gnorton@novell.com>
2920 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2922 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2924 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
2925 through the normal flat button code and don't draw the checkbox glyph.
2926 * Theme.cs: Button->ButtonBase signature change.
2929 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2931 * LinkLabel.cs: Uses new class LinkLabelPainter.
2933 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2935 * MessageBox.cs: Adjust right border space, we don't need to add
2936 "space_border*2" two times.
2938 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2940 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
2941 becomes a wrapper around Padding.
2942 [Fixes a part of bug #354676]
2944 2008-01-22 Geoff Norton <gnorton@novell.com>
2946 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
2947 acquired. Also ensure the buffer is large enough to grab the header
2948 we need on linux boxes.
2950 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2952 * Control.cs: Implement a custom enumerator so people can delete
2953 from the Controls collection while in a foreach.
2956 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2958 * PropertyGridView.cs: Fix focusing behavior:
2959 - Tab should focus the grid text box.
2960 - Clicking on the labels shouldn't focus the grid text box.
2962 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2964 * PropertyGridView.cs: IsValueTypeGridItem should return true
2967 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2969 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
2970 - Renamed GridEntry.SelectedObjects to TargetObjects to better
2971 reflect the property name role.
2972 - PropertyGrid.GetTarget is not required as the target is known
2974 - Setting values will handle value types as a special case now and
2975 populate them up in the chain.
2978 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
2980 * Hwnd.cs: Create a public property for the Graphics we keep around.
2982 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2984 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
2985 when the current object selection changes.
2986 Fixes failing test SelectedObject_Null2.B5.
2988 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2990 * PropertyGrid.cs: Process Browsable properties with
2991 DesignerSerializationVisibilityAttribute.Content as being expandable.
2992 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
2993 will not be expandable. We should be nested components-friendly now.
2995 2008-01-21 Andreia Gaita <avidigal@novell.com>
2997 * WebBrowserBase.cs: Check if control was loaded properly,
2998 don't bind if it wasn't.
3000 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
3001 GetElementFromPoint, equality operators, OpenNew, Write.
3002 Remove extra set_Body
3004 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3006 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
3007 that makes our AutoScale* stuff more tolerant to different orders
3008 of being set. [Fixes bug #354669]
3010 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3012 * PropertyGridView.cs, PropertyGridTextBox.cs:
3013 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
3014 [Fixes #339005 and #348209]
3016 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3018 * PropertyGridView.cs: Hide the grid text box before adjusting it
3019 for the newly selected GridItem.
3022 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3024 * Form.cs: Give MDI children the opportunity to cancel the parent form
3025 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
3026 properly for both the parent and child.
3027 * Application.cs: Signature of internal method changed, pass the previous
3031 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3033 * PropertyGridView.cs: Set the property value only if it has changed.
3036 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3038 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
3039 If the mouse hasn't actually moved, ignore these messages so the currently
3040 highlighted menuitem isn't reset to the one under the mouse.
3043 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3045 * PropertyGridView.cs: When the property changes Invalidate the GridItem
3046 in order for the properties with UITypeEditor.GetPaintValueSupported == true
3047 to reflect the change visually.
3050 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3052 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
3053 to 2.0 button drawing.
3054 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
3055 the button text is tall enough for one line. LineLimit says it will
3056 always draw at least one line, but it is a lie.
3059 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
3061 * XplatUIStructs.cs, X11Keyboard.cs :
3062 added some more VK_* keys to be handled.
3064 2008-01-16 Andreia Gaita <avidigal@novell.com>
3066 * Control.cs: Check if there is a container before setting or getting
3067 the validation flag.
3069 2008-01-16 Andreia Gaita <avidigal@novell.com>
3071 * ContainerControl.cs: Add flag to track if a control cancels validation,
3072 so we don't fire click events.
3075 - (HandleClick) Check if validation was cancelled before firing the click
3076 events (doubleclicks are fired, but not clicks)
3077 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
3078 ContainerControl.set_ActiveControl, but in the case of non-selectable
3079 controls, like a Label, activecontrol is not set.
3081 * ButtonBase.cs: Only fire clicks if validation passes.
3085 2008-01-16 Geoff Norton <gnorton@novell.com>
3087 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
3090 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
3092 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
3093 SelectedPath, just display the default dialog instead of crashing.
3096 2008-01-16 Geoff Norton <gnorton@novell.com>
3098 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
3099 AddExpose instead of trusting apples compositing manager which doesn't
3100 work for our use case. Remove some dead code causing warnings and
3101 redecorate some other code to prevent warnings.
3103 2008-01-16 Geoff Norton <gnorton@novell.com>
3105 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
3106 carbon signals us to redraw. Fixes another portion of the flickering bug
3108 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3110 * Form.cs: Prevent the MdiParent property to be set when value is the same
3111 as value already set. Fixes bug #328019.
3113 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3115 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
3116 it prevents NRE when closing mdi child windows. Fixes bug #325211.
3118 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3120 * InternalWindowManager.cs: Invalidade close button after mouse up when
3121 mdi form is prevented to close.
3123 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3125 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
3126 thanks to Andy Hume. Fixes bug #325433.
3128 2008-01-16 Andreia Gaita <avidigal@novell.com>
3130 * LinkLabel.cs: Reset focused_index when resellecting the control.
3133 2008-01-15 Geoff Norton <gnorton@novell.com>
3135 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
3138 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3140 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
3143 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3145 * ContainerControl.cs: Setting AutoScaleMode to anything should set
3146 Form.AutoScale to false.
3147 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
3148 AutoScaleBaseSize should be changed on Font change unless it has been
3152 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3154 * MenuAPI.cs: On instance of MenuTracker check if source control is
3155 ToolStripOverflow and use properly method to find form.
3158 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3160 [Fixes bug #323241 Transparent toolbar support]
3162 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
3165 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
3166 defined in control style to mimic win32 behavior.
3168 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
3169 it will be transparent.
3171 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3173 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
3174 CreateParams for ToolBar controls.
3176 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3178 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
3179 FixedToolWindow, SizeableToolWindow, or None for border styles have
3180 different minimum sizes than regular forms. Implemented to fix
3181 regression in PDN with toolbox being too wide.
3183 2008-01-14 Andreia Gaita <avidigal@novell.com>
3185 * HtmlElementCollection.cs: Implemented
3187 * HtmlElement.cs: Implemented:
3195 * HtmlDocument.cs: Implemented GetElementsByTagName.
3197 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3199 * Screen.cs: Stub BitsPerPixel to always return 32.
3201 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3203 * Form.cs: Implement RestoreBounds.
3205 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3207 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
3208 Sebastien and his fabulous magical problem-finding machine:
3209 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
3210 respect the value set.
3212 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3214 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
3215 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
3217 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3219 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
3220 messages (to match .Net), we need to remove the capture ourselves.
3222 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
3224 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
3225 will process the message and close our window.
3228 2008-01-10 Geoff Norton <gnorton@novell.com>
3230 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
3231 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
3234 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3236 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
3239 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3241 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
3242 Linux doesn't care, having a minimum matches MS and keeps the window
3243 from becoming too small to use window decorations.
3246 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3248 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
3249 ShowFocusCues. Make focus rectangles fit the text instead of the whole
3250 control. [Fixes bug #325419]
3252 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3254 * ComboBox.cs: Guard against an NRE if the user open a new form from a
3255 SelectedIndexChanged event. This closes the combobox dropdown, and we
3256 were trying to dispose it. [Fixes bug #352830]
3258 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3260 * Control.cs, Form.cs: Implement the necessary semantics for
3261 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
3262 to determine if a focus rectangle should be drawn.
3263 * PropertyGrid.cs: Fix property visibility to match override.
3264 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
3266 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3268 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
3271 2008-01-09 Geoff Norton <gnorton@novell.com>
3273 * XplatUICarbon.cs: Scroll windows in the correct direction.
3275 2008-01-09 Geoff Norton <gnorton@novell.com>
3277 * XplatUICarbon.cs: Track all created utility windows so we can hide them
3278 when the app is deactivated or spaces is enabled.
3280 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3282 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
3283 extra separation pixel for the label rect origin if SmallImageList is
3284 null, and thus we don't need that separation between icon and label
3286 Patch by Ernesto Carrea.
3289 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
3291 * StatusStrip.cs: Invalidate after completing a layout. The base
3292 OnLayout does this, but we don't call the base.
3293 * ToolStripItem.cs: Revert the previous change to invalidate after
3295 [Fixes bug #351341 better.]
3297 2008-01-07 Geoff Norton <gnorton@novell.com>
3299 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
3300 not a notification to exit the application. Listen for WM_QUIT
3303 2008-01-07 Andreia Gaita <avidigal@novell.com>
3305 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
3307 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
3309 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
3310 so it can repaint at the correct location.
3313 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3315 * ListControl.cs: SelectedValue should return a null value if
3316 SelectedIndex is -1. Also, when setting it, it should throw an
3317 ArgumentNullException if the value is null, as well as taking
3318 into account the String.Empty value, instead of ignoring it (we have
3319 tests for that now).
3320 Fixes part of #324286.
3322 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
3324 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
3325 SelectionStart is updated after pressing enter. Fixes bug #351918.
3327 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3329 * TextControl.cs: Revert a piece r92316 that prevented the fix
3330 from working when there were multiple tags in the text box.
3333 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3335 * TextControl.cs: Apply patch from Luke Page that prevents an
3336 NRE when determining the beginning of a paragraph.
3339 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3341 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
3342 caret gets moved with clicking away from a selected block of
3343 text. Fixes bug #351885.
3345 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3347 * TextControl.cs: Apply patch from Luke Page that takes line
3348 alignment into account for mouse selection, so that center and
3349 right aligned text can be selected.
3352 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3354 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
3355 issues after loading an RTF file by using the correct line feeds.
3358 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3360 * TextControl.cs: When deleting multiple line selections, we need
3361 to invalidate every line beginning at the first line of the selection.
3362 Patch from Luke Page fixes bug #351791.
3364 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3366 * ListControl.cs: When getting a CurrencyManager.PositionChanged
3367 event, don't set SelectedIndex if the number of items is 1. This is
3368 because, for the first item, PositionChanged is fired _before_
3369 ItemChanged (the place where we actually populate the items), and
3370 leave us in a temporary invalid state (since items collection is
3374 2008-01-04 Geoff Norton <gnorton@novell.com>
3376 * XplatUICarbon.cs: Create native toolwindows instead of
3377 the managed drawing ones.
3379 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3381 * LineTag.cs: If the line doesn't have any characters, return
3382 0 for GetCharIndex. Fixes an AOORE exception after certain
3383 caret movements. Fixes bug #351683. Patch by Luke Page.
3385 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3387 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
3388 is hit when there is selected text, only the selected text gets
3389 deleted, not the character in front of the selection as well.
3392 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3394 * ComboBox.cs: When the values are displayed, calculate the
3395 ComboListBox scrollbar's LargeChange based on the visible area's
3396 height and the actuall ItemHeight, instead of calculating it
3397 based on MaxDropItems value, since it's not used by our _current_
3401 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3403 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
3404 Patch from Luke Page that fixes issues with font colors and styles
3405 not showing up in a readonly RichTextBox. Fixes bug #324354.
3407 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3409 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
3410 from Luke Page. This one fixes bug #349926.
3412 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3414 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
3415 an item in the IBindingList source changes with
3416 ListChangedType.ItemAdded. Ignore for now firing the event for other
3417 changes, since we want to have tests for those cases as well.
3419 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3421 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
3424 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3426 * TextBoxTextRenderer.cs: Implement a cache for measuring each
3427 character. This is effective because the typical usage of a
3428 TextBox is with a limited amount of fonts and characters, and
3429 the current implementation of TextBox measures everything one
3430 character at a time. Another second or two speedup for bug #347238.
3432 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3434 * Control.cs: Rewrite the Font getter to only query the parent's
3435 Font property once instead of twice. Since this operation is
3436 recursive, the queries were growing exponentially as the control
3437 tree got deeper. Another second or two speedup for bug #347238.
3439 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3441 * Control.cs: Avoid setting a parent (and more importantly, updating
3442 the zorder of all its children) if the parent is already correct in
3443 WmShowWindow. Decreases the startup time of the test case on bug
3444 #347238 from 35 seconds to 11 seconds.
3446 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3448 * X11Dnd.cs: When the dnd operation has started and we are
3449 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
3450 This is done to match .Net, which doesn't send those messages after
3451 dnd operation was completed/cancelled.
3454 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3456 * ToolStrip.cs: Previous change should be != null, not == null.
3459 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3461 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3462 user may have moved the mouse off the current item during the event.
3464 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3466 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3467 calling GetItemAt for every MouseMove event by also taking into
3468 account whether any mouse button is pressed (probably dragging);
3469 if so, we can call GetItemAt, and if not, try to not call it
3470 (GetItemAt can be quite expensive when used with a large number of items).
3472 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3474 * ListView.cs: Implement -finally- support for dnd, by calling
3475 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3477 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3478 simple calculation of distances for all the items in the owner
3481 2007-12-21 Geoff Norton <gnorton@novell.com>
3483 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
3484 for windows that are originally created as invisible. Fixes missing
3485 main window in paint-mono.
3487 2007-12-21 Geoff Norton <gnorton@novell.com>
3489 * XplatUICarbon.cs: Register our D&D handler. Register our custom
3490 subclass handler for com.novell.mwfview subclassing HIView. Implement
3491 Pasteboard and Dnd methods.
3493 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3495 * ListBox.cs: When we got focus, give focus to first item if there
3496 wasn't any pervious focused item. Also update navigation to depend on
3497 SelectedIndex rather than FocusedItem, just as .Net does.
3500 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3502 * ListBox.cs: Both FindString and FindStringExact methods must do an
3503 case insensitive search, should allow the last valid index to be
3504 passed in the overload taking an initial index, and should also
3505 continue searching from the top back to the specified index when it
3508 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3510 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3511 redraw issue, and allows RichTextBox to draw colored text even while
3512 disabled or readonly.
3514 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3516 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3517 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3518 and doesn't grey text in a disabled RichTextBox.
3520 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3522 * RichTextBox.cs: Apply patch from Luke Page that adds better support
3523 for many RTF commands: quad alignment, separate formatting for blocks
3524 inside groups, and ParDef support. Makes the test case from bug #324589
3527 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3529 * LineTag.cs: Fix an error in the new Draw method that caused
3530 a crash when rendering the document on bug #324589.
3532 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3534 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3535 TextControl.cs: Apply patch from Luke Page that adds support
3536 for URL links in RichTextBox.
3537 [Fixes enhancement #342516]
3539 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
3541 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3542 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3544 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3546 * ListBox.cs: When a key gets pressed, try to find a string
3547 if the key is a character or a digit.
3550 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3552 * TableLayoutPanel.cs: Remove some unused variables.
3554 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3556 * DateTimePicker.cs: Commit patch from Luke Page that ensures
3557 we don't end up at an invalid date when we click the up/down
3558 spinner to change the month or year. Fixes bug #348682.
3560 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3562 * Application.cs: Calling Exit in 2.0 should chain to the
3563 Exit (CancelEventArgs) version so it can be cancelled.
3564 * Form.cs: Create a flag to allow raising the Closing
3565 events to be skipped. We raise them once in Application.Exit
3566 and don't want to raise them again when the Form is actually
3567 closed. [Fixes bug #349073]
3569 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
3571 * ToolStripDropDown.cs: Guard against an NRE when there
3572 hasn't been a mainform set in the application context.
3575 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3577 * ListBox.cs: When SetBoundsCore gets called, besides
3578 calling UpdateScrollBars, update the value of
3579 last_visible_index, since we could need to show more items
3580 than before, and we need to let the paint routines know that.
3583 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3585 * ListView.cs: Add DesignerSerializationVisibility attribute to
3586 InsertionMark property.
3587 * ListViewItem.cs: Add same attribute to Position property.
3589 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3591 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
3594 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
3596 * ThemeWin32Classic.cs: Don't draw the background on a
3597 flat button if there is a background image.
3600 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3602 * ListBox.cs: If we remove the item currently selected,
3603 remove it not only from SelectedItems, but also
3604 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
3605 the items count decreased and focused_item has bigger value than that.
3607 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
3609 * Control.cs: Perform our layout after we resize ourselves
3610 if we had to adjust our AutoSize. Missed commit for bug
3613 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
3615 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
3616 we can provide an implementation of AutoSize.
3619 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3621 * ListBox.cs: Add the internal overload Sort (bool paint),
3622 to indicate whether we actually need a paint or we will
3623 call Refresh ourselves. This way we don't request a paint
3624 _before_ having an updated and valid layout.
3627 2007-12-12 Andreia Gaita <avidigal@novell.com>
3629 * XPlatUIX11.cs: Send paint messages when updating a systray icon
3630 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
3631 properly invalidated.
3634 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3636 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
3637 don't simply assign it to our internal group field, but instead
3638 use our Group property, which should do all the neccessary work
3639 required to support groups. Fixes an issue reported to me (mail) by a
3640 guy using this new feature.
3642 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
3644 * Control.cs: Use Scale instead of ScaleControl to ensure the
3645 whole hierarchy gets scaled.
3648 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3650 * DateTimePicker.cs: Don't set the internal MonthCalendar's
3651 Parent property. Doing this causes the control to be hosted by
3652 the Form instead of being a popup window.
3655 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3657 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
3658 at an index higher than Count, just use Add instead of Insert.
3661 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3663 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
3664 DrawPictureBox, this is handled by Control.PaintBackground.
3667 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
3669 * MenuAPI.cs: When process menu keys return true by default only if menu is
3670 active. Fixes bug #342892.
3672 2007-12-09 Andreia Gaita <avidigal@novell.com>
3674 * Control.cs: check if windows are actually mapped before
3675 trying to zorder. Fixes #342509, #346955
3677 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3680 * ListViewInsertionMark.cs:
3681 * ThemeWin32Classic.cs: Implement the drawing side of the
3682 new 2.0 ListView.InsertionMark property.
3684 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
3686 * CurrencyManager.cs: Silence some debug spew.
3688 2007-12-07 Geoff Norton <gnorton@novell.com>
3690 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
3691 masks for our children as well as siblings to avoid having to query
3692 Quartz for this information.
3693 * XplatUICarbon.cs: Implement a delegate based system to pass
3694 information to System.Drawing. Implement Async methods. Remove
3695 the hack for the resize thumb and imlpement a transparent Grow Box.
3696 Rework the messaging system to proplery create window's and messages,
3699 2007-12-06 Andreia Gaita <avidigal@novell.com>
3701 * X11Keyboard.cs: Use Xutf8LookupString to support international
3702 characters under alternate codepages. Patch from #340878
3704 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3706 * ListView.cs: When doing layout computations, set position in the
3707 ListView instances (we cache the position just as .Net does).
3708 * ListViewItem.cs: New internal setter method for Position. Also set
3709 position field as also available in 1.1, since we are going to use it
3710 now in the common case.
3712 2007-12-06 Andreia Gaita <avidigal@novell.com>
3714 * Control.cs: When removing controls, get the actual container
3715 to notify about active control changes. Fixes 341314.
3717 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
3721 2007-12-05 Andreia Gaita <avidigal@novell.com>
3723 * Control.cs: When updating the zorder, ignore windows that are not
3724 mapped. Fixes #342509
3726 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3728 * ListViewItem.cs: Actually implement serialization on this class.
3730 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
3732 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
3733 LinkCollection. Spaces to tabs, and removed extra tabs.
3735 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
3737 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
3738 tests to fail (hopefully).
3740 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3742 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
3743 the image margin so custom renderers can correctly place it.
3745 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3747 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
3748 so custom renderers can correctly place it.
3750 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3752 * Application.cs: Let WM_CHAR messages flow through to controls
3753 hosted in Strips. [Fixes bug #343972]
3755 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
3757 * ToolStripManager.cs: Guard against an NRE I ran into.
3759 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
3761 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
3762 a Link is manually added to the Links collection, we need to set
3763 its owner, so it can invalidate properly.
3766 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3768 * ListView.cs: When changing ListViewItem.Position (which calls
3769 ListView.ChangeItemLocation), invalidate not only the area
3770 corresponding to the main item, but also to the area occupied
3771 by the items being moved.
3773 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3775 * ListView.cs: When changing the position of a given item,
3776 don't use item bounds, but item areas (which includes the item spacing
3777 between them). Also, use first/last position if the requested
3778 position is outside bounds (as .Net does). Invalidate the previous and
3779 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
3780 in a specific position, instead of directly accessing Items collection
3781 (this is done to get the right item - remember an Item can have a
3782 different position in the grid than in the Items collection).
3784 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3786 * MessageBox.cs: Calculate text area instead of just top left, this rect
3787 area will be used in DrawString. Fixes bug #343364.
3789 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3791 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
3792 screen width. Partially fixes bug #343364.
3794 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3796 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
3797 code inside recalculate, it makes code more simple.
3799 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
3801 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
3802 between update or add icon. Fixes bug #324344.
3804 2007-11-21 Andreia Gaita <avidigal@novell.com>
3806 * XPlatUIX11.cs: Do not treat tool windows as if they have no
3807 window manager, since that stretches the drawing area to include
3808 the window decorations, and they get hidden. Reverts r84444 and fixes
3809 #335849 and #342790 (mdi and pdn3 regression)
3811 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3813 * ListView.cs: When setting focused item, try to give focus to the
3814 previous one _only_ if the previous one remains valid.
3817 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
3819 * Application.cs: Revert r89650, as it broke a common case to fix
3820 an obscure case. Fixes bug #342606.
3822 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
3824 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
3826 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
3828 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
3829 alignment. [Fixes #324228]
3831 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
3833 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
3836 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
3838 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
3839 it prevent problems when empty captions. [Fixes #342141]
3841 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
3843 * Label.cs: Use Size instead of None. Fixes bug #342077.
3845 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3847 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
3849 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3851 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
3852 but there isn't a MdiContainer.
3855 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3857 * TextControl.cs: Don't recalculate document if the recalc_start and
3858 recalc_end hasn't changed.
3861 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
3863 * DataGridViewTextBoxCell.cs: Removed CWL.
3865 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3867 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
3869 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3871 * TextControl.cs: Missed some code for bug 341534 to trigger a
3872 recalculation when the font changes.
3874 2007-11-16 Andreia Gaita <avidigal@novell.com>
3876 * Control.cs: When updating the zorder, check if the child to update is
3877 the same control that is set to always be on top (i.e., scrollbars), and
3878 just put it on top directly. Fixes BadMatch error on pdn3
3880 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3882 * ListView.cs: Throw the needed exceptions for FindNearestItem.
3884 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3886 * Control.cs: Don't perform a new layout when a label changes its text,
3887 cause label handles its own autosizing.
3890 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3892 * ListView.cs: Implement 2.0 FindNearestItem methods.
3894 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3896 * ToolStripPanel.cs: Make Join at least add the control to the panel,
3897 even if the rest of what Join does isn't supported. Add some more
3898 support for vertical toolbars.
3899 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
3900 [Fixes the application breaking parts of bug #341998]
3902 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3904 * ToolStripItem.cs: When determining if we have a check/image margin,
3905 we need to look at ShowCheckMargin as well as ShowImageMargin.
3907 2007-11-15 Geoff Norton <gnorton@novell.com>
3909 * XplatUIOSX.cs: Rename to...
3910 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
3911 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
3913 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3915 * KeysConverter.cs: The default values should be an array of Keys, not
3916 strings. Also, the array has more values for 2.0.
3919 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3921 * Application.cs: Change ExecutablePath to use
3922 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
3925 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3927 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
3928 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
3929 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
3930 be ignored. Create a new GetLineEnding that can specify which types of
3931 line endings to look for. On Insert, only create new lines for \n and \r\n.
3934 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3936 * TextBoxBase.cs: As we loop through each line changing the font, tell
3937 the document that the line needs to be recalculated. Fixes bug #341534.
3939 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
3940 [Another round of refactoring]
3941 * Line.cs: Add DeleteCharacters.
3942 * LineTag.cs: Add Delete.
3943 * TextBoxBase.cs: Update to use new methods.
3944 * TextControl.cs: Refactor the Delete* methods.
3946 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
3948 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
3949 the patch. [Fixes #324856]
3951 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3954 * ListViewItem.cs: Add an initial implementation of
3955 2.0 ListViewItem.Position getter.
3957 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3959 * ListView.cs: Add a reordered_items_indices array, to allow us
3960 to have a different sorting than that of Items (the sorting in Items
3961 could not match the actual sorting in screen). This is needed to
3962 implement a pair of 2.0 features.
3963 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
3964 actual position in the ListView grid, since it could have a position
3965 different than its Index (position in ListViewItemCollection).
3967 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3969 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
3970 not draw partial lines.
3971 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
3972 LineLimit flag from the base is preserved.
3973 Fixes the windows part of bug #338965.
3975 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3977 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
3978 so that it can be canceled in KeyPress.
3981 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3983 * ListView.cs: In ItemControl, reset mouse-handling related
3984 fields even if we dont' have items (we still should reset them when
3985 we had items but then called Items.Clear). Partially based in a patch
3989 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
3991 * Application.cs: In ProductVersion first try AssemblyFileVersion
3992 before falling back to assembly version. Fixes bug #339787.
3994 2007-11-08 Andreia Gaita <avidigal@novell.com>
3996 * HtmlElement.cs: Implement InnerText setter.
3997 * WebBrowserBase.cs: Implement Navigated event support.
3998 Add flag to track when the browser "document" is ready to be retrieved.
3999 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
4000 Make sure browser document is ready before retrieving it.
4001 Clean up cached objects (document) when moving to a new page through
4002 any of the navigation methods.
4003 Use the new Mono.WebBrowser.INavigation interface to control navigation.
4004 Implement OnNavigated event.
4006 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
4008 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
4009 DrawLinkLabel, this is handled by OnPaintBackground.
4010 Fixes bug #339565, part II.
4012 2007-11-07 Andreia Gaita <avidigal@novell.com>
4014 * Control.cs: Revert r88915. Selecting text on a textbox depends on
4015 getting a Select call on click, so this call needs to be here for now.
4018 2007-11-07 Geoff Norton <gnorton@novell.com>
4020 * OSXStructs.cs: Add the kEventClassApplication constants.
4021 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
4022 application is deactivated otherwise Menu overlays linger on top of
4023 other application windows.
4025 2007-11-07 Geoff Norton <gnorton@novell.com>
4027 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
4028 dont support cursors yet anyways. This allows Reflector to run.
4030 2007-11-07 Geoff Norton <gnorton@novell.com>
4032 * XplatUIOSX.cs: Implement DragSize.
4034 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4036 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
4037 ItemControl, request the focus, as .Net does. This is needed after
4038 Control does not request focus anymore when it receives a
4041 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
4043 * Label.cs: Make DrawImage internal so it can be called from Theme code.
4044 Remove the DrawImage call from OnPaint.
4045 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
4046 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
4047 but before we draw the text for DrawLabel and DrawLinkLabel.
4050 2007-11-05 Andreia Gaita <avidigal@novell.com>
4052 * Control.cs: Remove select call on click. Fixes #325809
4054 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4056 * ListViewItem.cs: Add 2.0 Position property getter.
4058 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4060 * ListView.cs: Add 2.0 BackgroundImageTiled property.
4061 Also, to make it work properly, change item's BackColor and
4062 BackgroundImageLayout as needed.
4063 * ThemeWin32Classic.cs: Don't fill any background rectangle
4064 in ListView.ItemControl when drawing items; just let the Control
4065 base implementation fill it.
4067 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
4070 as well as adding a custom 'dummy' Converter, as .net does.
4072 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4074 * PropertyGridView.cs: When clicking drop-down button,
4075 select an index in the listbox only if our standard values collection
4076 has one or more items.
4078 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4080 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
4083 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4085 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
4086 the value is not changed. This ensure a pushed button remains in that
4087 state when clicked again. When switching the value of PropertySort
4088 between Categorized and CategorizedAlphabetical, do not update the
4089 grid items and do not fire a PropertyChangedEvent. When clicking the
4090 sorting buttons, do not modify the PropertySort value when switching
4091 between Categorized and CategorizedAlphabetical but only update the
4094 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4096 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
4098 * PropertyGrid.cs: Also put Categorized button in pushed state when
4099 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
4100 for help description label.
4102 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4104 * ListView.cs: When calculating the biggest item for a given column,
4105 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
4108 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
4110 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
4111 value for PropertySort on 1.0 profile. PropertySortChanged event
4112 should only be fired on 2.0 profile. Fixed NullReferenceException
4113 in UpdateSortLayout when PropertyGrid contains no items.
4115 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
4117 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
4120 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4122 * ListViewItem.cs: Implement 2.0 IndentCount property.
4124 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4126 * X11Dnd.cs: When sending status in a dnd operation, compare current
4127 effect with the 'allowed' field instead of 'drag_data.Allowed', since
4128 the later is only created when a Winforms application is both the
4129 source and the target, but not when we are the target only.
4130 Fixes part of #324251.
4132 2007-11-01 Geoff Norton <gnorton@novell.com>
4134 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
4136 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
4137 children out of the drawing view on mac.
4138 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
4139 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
4141 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4143 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
4144 on the non-hosted-control part of it shouldn't do anything.
4145 Fixes part of bug #327498.
4147 2007-11-01 Andreia Gaita <avidigal@novell.com>
4149 * WebBrowserBase.cs: revert previous change, resize can be called anytime
4151 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4153 * Application.cs: When a toolstrip has the keyboard input loop, let messages
4154 it does not use flow through to controls that are hosted in menus.
4155 Same with mouse clicks.
4156 * Form.cs: Don't close all menus on click if the click is on a
4157 control hosted in a menu.
4158 Fixes part of bug #327498, and part of bug #325969.
4160 2007-10-31 Andreia Gaita <avidigal@novell.com>
4162 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
4164 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
4166 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
4167 Addresses an issue raised in bug #336218.
4169 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
4171 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
4172 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
4174 2007-10-30 Andreia Gaita <avidigal@novell.com>
4176 * ContainerControl.cs: Check if the active control is a
4177 child of a removed control and update active_control accordingly.
4180 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4182 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
4183 or the MaxDate. Fixed bug #337693.
4185 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4187 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
4188 after calling SetWindowLong for a form, to force an immediate NC refresh.
4189 Fixes first part of bug #325150.
4191 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4193 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
4194 simple. Fixes the last part of bug #322668.
4196 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4198 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
4199 needs to be TopMost as well, or else the MessageBox is under the form.
4200 Patch by George fixes bug #325300.
4202 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4204 * X11Dnd.cs: When starting a new drag operation, reset the static
4205 'dropped' field to false (previously the implementation didn't reset
4206 it and got confused after the first drag).
4209 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4211 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
4212 items instead of re-creating them all. For this purpose we now cache
4213 both CategoryGridEntry items and the GridEntries for the main object's
4215 * GridItem.cs: Make SetParent method abstract.
4216 * GridEntry.cs: Override the SetParent method (already there, but now
4220 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4222 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
4223 depending on its depth (as .Net does). Update the needed values in
4224 MouseDown handler. Also draw the plus/minus rect after the label,
4225 so we don't draw on top of it.
4227 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
4229 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
4230 processed by forms or controls when menu is active. [Fixes #333548]
4232 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4234 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
4235 parent doesn't have focus. This was causing ToolStripTextBoxes to take
4236 focus on mouse over.
4238 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4240 * TextControl.cs: Code cleaning, simplifying.
4242 2007-10-24 Geoff Norton <gnorton@novell.com>
4244 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
4245 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
4247 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4249 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
4250 the cap is maxvalue, not actually 0. [Fixes bug #336218]
4252 2007-10-24 Andreia Gaita <avidigal@novell.com>
4254 * SendKeys.cs: apply jpobst's patch to bug #332409
4256 2007-10-23 Andreia Gaita <avidigal@novell.com>
4258 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
4259 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
4262 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4264 * PropertyGridView.cs: If a property has an UIEditor available,
4265 make the drop-down/editor button available only if the property
4268 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4270 * PropertyGridView.cs: Don't make the grid item textbox
4271 editable when a drop-down control is available, but
4272 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
4273 true. The same bur the color of the grid item value's label.
4275 2007-10-22 Geoff Norton <gnorton@novell.com>
4277 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
4278 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
4279 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
4280 driver. Padd the bottom of all real windows so the resize thumb doesn't
4281 obscure scroll/status bars.
4283 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
4285 * WindowsFormsSection.cs: Implement.
4287 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4289 * MdiClient.cs: Maximize new active mdi child when a maximized child is
4290 closed see #325434 patch.
4292 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4294 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
4297 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4299 * PropertyGridView.cs: When showing the textbox for a grid item,
4300 have two local variables to store the read-only and non-editable
4301 status of a grid item (we were previously using just one variable
4302 to do this, when actually they are slightly different).
4303 Fixes part of #325023.
4305 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4307 * PropertyGridView.cs: When showing a drop-down list, try to get the
4308 values using TypeConverter.ConvertTo (to convert to a string). Fixes
4311 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4313 * PropertyGrid.cs: When updating a property and populating sub grid
4314 items, remove the previous ones, and invalidate the specific area.
4315 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
4316 area behind a grid item.
4317 * GridItemCollection.cs: Add an internal Clear method, to allow us to
4318 clean the items if needed (specially for controls implementing
4319 ICustomTypeDescriptor and returning a variable number of properties).
4322 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
4324 * TextControl.cs: Clean up and document the Insert function.
4326 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4328 * TextControl.cs: Make sure we know our start point for updating the view
4329 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
4332 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4334 * ListView: Couple of corcompare fixes.
4336 2007-10-17 Geoff Norton <gnorton@novell.com>
4338 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
4339 the title caption of real window.
4341 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4343 * ErrorProvider.cs: Add the error provider's internal window to a
4344 containercontrol when the parent changes. [Fixes bug #329714]
4346 2007-10-17 Geoff Norton <gnorton@novell.com>
4348 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
4349 When we make a new window; restore the old active window - fixes dialogs.
4351 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4353 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
4354 when modifying a property, and if found then invalidate as
4356 Fixes part of #324865.
4358 2007-10-17 Geoff Norton <gnorton@novell.com>
4360 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
4361 highly experimental. Fixed coordinate translation. Fixed window locations.
4362 Initial support for clipping. Implemented NC areas and menus. Support for
4363 launching from command line from Will Johansson (wjohansson@atacomm.com).
4364 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
4365 wjohansson@atacomm.com)
4366 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
4367 Hwnds now track the existence of all of their children for Mac clipping.
4368 * XplatUI.cs: Re-enabled the native driver on the Mac.
4370 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4372 * Line.cs: Move the InsertString function to here.
4373 * TextControl.cs: Cleanup some duplicate code, move some InsertString
4374 functionality to Line.
4376 2007-10-17 Geoff Norton <gnorton@novell.com>
4378 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
4380 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
4382 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
4383 always setting value to true.
4384 * Form.cs: When changing AcceptButton, notify new and original button.
4386 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
4388 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
4389 a custom control that implements IButtonControl instead of an actual
4390 button. [Fixes bug #334244]
4392 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4394 * Form.cs: Change SelectActiveControl to internal, we need to call it in
4397 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
4398 active control when activate a new mdi window.
4402 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4404 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
4408 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4410 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
4411 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
4412 so we always recalculate the whole document instead of just the new part.
4415 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4417 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
4418 when the mouse was to the left of the first character in the line.
4420 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4422 * TextBox.cs, TextBoxBase.cs: When setting the document's password
4423 character, use the property instead of the variable so that the
4424 UseSystemPasswordChar property is taken into account.
4427 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4429 * FolderBrowserDialog.cs: When a node is right clicked and the "New
4430 folder" contex menu appears, actually add the new folder to it, even
4431 if the node is not currently selected. Still use SelectedNode in case
4432 there wasn't found a node under the pointer.
4435 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4437 * ListViewItem.cs: When retrieving the focused state, the index check
4438 should be done only when ListView is in virtualmode, as it is an
4439 expensive check for normal mode.
4441 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4443 * ListViewItem.cs: Make the focus state information be stored
4444 in the ListView, not in the items. This is done to match the MS
4445 behaviour for items that are not yet part of a ListView control;
4446 besides that, since just one item can be focused at the same time,
4447 we save a little space in our items.
4448 Fixes part of #331643.
4450 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4452 * ComboBox.cs: When focus is lost, deselect the text. When setting
4453 text of control, select all text. Do not hide selection when control
4454 does not have focus. Fixes bug #333663.
4456 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4458 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4459 instead of ArgumentException when SelectionLength is set to negative
4460 value. Added same check to SelectionStart. Code formatting.
4462 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4464 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4465 or SelectionStart. Code formatting.
4467 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4469 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4470 indicating that there was not a previous drag-and-drop operation going
4472 Fixes part of #325071.
4474 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4476 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4477 AllowedEffect, don't let the drop operation happen.
4480 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4482 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4484 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4486 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4489 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4491 * Line.cs: Add a method that finds the tag that contains an x-coord.
4492 * LineTag.cs: Add a method that finds the character at an x-coord using
4493 a binary search, the old way was a linear search.
4494 * TextControl.cs: Change FindCursor to use the above new methods.
4496 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4498 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4499 value different than AllowedEffect). This should be possible to
4500 indicate that dragging is not possible in some control/area.
4502 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
4504 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
4505 descent internally when font changes instead of outside code being responsible
4507 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4508 instead of accessing internal variables.
4510 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
4512 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4513 remove special treatment for ArrangeIcons since it is already arranged.
4515 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4517 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4518 the Win32 backend uses Color.
4519 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4520 Refactor to store a Color instead of a Brush for Color.
4522 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4524 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4525 away. I didn't realize I needed this when I refactored these earlier.
4527 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4529 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4530 store a Color structure and use the ResPool for back color instead of
4531 holding onto brushes.
4533 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4535 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4538 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4540 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4541 to recalculate its size. Fixes a part of bug #331052.
4543 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4545 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4546 button. Fixes a part of bug #331052.
4548 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4550 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4552 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4556 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4558 * TextBoxTextRenderer.cs: Don't make this a static class, as static
4559 doesn't exist in 1.1. (Thanks jb!)
4561 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4563 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4564 class to allow us to use different backends on different platforms.
4565 Linux uses the current [Draw|Measure]String backend. Windows uses
4566 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4567 of GDI+. This leads to better looking text and more accurate measurements
4568 on Windows, fixing many of the reported issues.
4569 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4571 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4573 * FolderBrowserDialog.cs: When running on Windows,
4574 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4575 since we must match both "C:" and "C:\" forms. A little hackish, but
4579 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4581 * ListView.cs: When calling EndEdit (after editing an item),
4582 create a new instance of LabelEditEventArgs to keep clean the fields
4583 in case we get a new call to BeginEdit; also do Application.DoEvents
4584 to have focus in synch. This is a fix similar to TreeView's #325244.
4586 2007-10-07 Andreia Gaita <avidigal@novell.com>
4588 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4589 * WebBrowserBase.cs: Added dialog support, calling the
4590 WebBrowserDialogs classes for each specific dialog type.
4592 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4594 * ListView.cs: When the last item is focused and is removed,
4595 move the focus to the previous item (in Items order). This is what MS
4599 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4601 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
4602 instead of the opposite (RemoveAt call Remove). This is a better
4603 approach since we don't need to to a pair of traversals when using
4606 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4608 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
4609 check that the node actually has nodes, and if not, move to the
4610 parent node instead.
4613 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4615 * TreeView.cs: Move the previous change to the general case (to
4616 call Application.DoEvents in cases where the method was called by
4619 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4621 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
4622 call Application.DoEvents. This is neccessary when we get a call to
4623 BeginEdit from an AfterLabelEdit handler, because the focus always
4624 goes to the TreeView, even if we try to give it to our
4625 LabelEditTextBox. The call do Application.DoEvents seems to
4626 synchronize the focus, basically.
4629 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4631 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
4632 should be false. This also removes some nasty recursive paths. Fixes
4635 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
4637 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
4638 state to normal. Also resize window when cascading. Fixes #325433.
4640 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
4642 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
4643 DefaultForeColor, as drawing empty colored lines isn't very useful.
4644 [Fixes the not drawn lines part of bug #324358]
4646 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
4648 * TextControl.cs: Move Line and LineTag classes into separate files to
4649 make things easier to find.
4650 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
4651 * RichTextBox.cs: Capitalize LineTag.Length property access.
4652 - This is purely an organizational/formatting change, no logic changed. -
4654 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4656 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
4659 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4661 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
4664 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4666 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
4667 prevent calling of OnBackColorChanged. Fixes #325321.
4669 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4671 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
4672 because control can be disabled because owner is disabled.
4674 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
4676 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
4677 string.Empty, test failed from previous change.
4679 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
4681 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
4682 is null, not String.Empty. See bug #323038.
4684 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
4686 * TextControl.cs: Change the margins to match MS a little better.
4687 Still not perfect for X11 due to some DrawString differences, but
4688 is still an improvement over the old stuff.
4689 Partially fixes #324467.
4691 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4693 * FolderBrowserDialog.cs: When using MyComputer as
4694 RootFolder, let absolute paths be considered as valid ones. Also, use
4695 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
4696 for Windows compatibility.
4697 Partially fixes #325247.
4699 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4701 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
4702 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
4703 method, since it causes the dialog to not select folders directly
4704 under the root path (when setting SelectedPath property).
4706 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4708 * TreeNode.cs: When calling Expand/Collapse and need to call
4709 ExpandBelow/CollapseBelow respectively, take into account
4710 partially visible nodes (previously Expanding/Collapsing
4711 a partially visible node in the bottom was not updating its +- sign).
4713 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715 * TreeView.cs: When calling Expand on a TreeNode, and we need to
4716 expand nodes below (ExpandBelow), scroll the entire Viewport
4717 area if the node is above it and not visible (instead of scrolling
4718 the area from node's Bottom, which applies only when the node is
4722 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4724 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
4725 node in the bottom area (as .Net does). This is done to preserve the
4726 scroll position when ExpandAll is called before handle is created for
4727 the 1.1 profile (bottom area, as opposed to top area in 2.0).
4730 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4732 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
4733 bottom area if we are in fact not using the vertical scroll bar.
4736 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
4738 * Control.cs: Comment out a double buffering optimization that doesn't
4739 take into account invalidates created in OnPaint, causing the control
4740 to never be redrawn. It would take quite a bit of work to work around
4741 this, but I left it commented with an explanation for later possible
4745 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
4747 * Control.cs: Ask parent to perform a layout if control is AutoSize and
4749 * RadioButton.cs: Implement GetPreferredSizeCore.
4752 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
4754 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
4757 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
4759 * Application.cs: Move the sync context stuff to Run instead of RunLoop
4760 so that it doesn't get uninstalled on modal forms.
4761 * Control.cs: Install a sync context when a control is created.
4762 * WindowsFormsSyncronizationContext.cs: Create a private static control
4763 to invoke on. This is easier than trying to find a created control we
4767 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
4769 * Application.cs: Install a WindowsFormsSynchronizationContext in the
4770 run loop, and uninstall it when done.
4771 * WindowsFormsSynchronizationContext.cs: Implement.
4772 [Fixes the common case in bug #327608]
4774 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
4776 * DataGridViewCellCollection.cs: Added argument checks for indexers.
4777 Use case-insensitive lookup of column name in indexer. Code
4780 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4782 * TreeNode.cs: When collapsing or expanding a node, check whether its
4783 change will affect the visible area (we were previously doing a
4784 IsVisible check, but that check is not enough since children nodes
4785 could be still visible). Fixes part of #325266.
4787 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
4789 * TreeView.cs: Always select the first node when the TreeView gets
4790 focus if there is no currently selected node.
4793 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
4795 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
4796 node being selected is null.
4797 [Patch from Yves Bastide fixes bug #326858]
4799 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4801 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
4802 whether all the parent nodes are expanded.
4803 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
4804 call RecalculateVisibleOrder if all previous nodes are expanded.
4805 Before that we were doing a IsVisible check, but sometimes the node
4806 is not in the visible area, but _should_already be ready, because of
4807 all previous nodes are expanded. Fixes #325259.
4809 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4811 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
4812 portion of the item is clicked.
4814 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4816 * TextControl.cs: Do not tell the system to move the cursor if the
4817 textbox isn't focused. Fixes part of bug #322668.
4819 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4821 * ComboBox.cs: When there are no items, do not show the dropdown if
4822 the down arrow is clicked. Fixes part of bug #322668.
4824 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4826 * ToolStripComboBox.cs: Manually set the size of this control in the
4827 constructor, as it doesn't seem to be the same as DefaultSize.
4828 Fixes a failing monobuild test.
4830 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
4832 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
4833 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
4835 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
4837 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
4838 Desktop. This lets it work for people who have moved their desktops
4839 from the default location on windows. For people who have not, both
4840 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
4842 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4844 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
4845 but when the base constructor sets this, the control is null. Set it
4846 again in the constructor. Fixes a failing monobuild test.
4848 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4850 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
4852 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
4855 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4857 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
4858 will handle it themselves.
4859 * ToolStripItem.cs: When deciding what the text of a tooltip should
4860 be, use the Text property instead of the text field.
4861 * ToolStripTextBox.cs: Handle tooltips.
4862 [Fixes bugs #325417 and #325973]
4864 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4866 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
4867 left click. Fixes the easy part of bug #325969.
4869 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4871 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
4872 bug #325406, but set a minimum for StatusStrip to 22 to keep
4873 bug #325390 fixed. I think this minimum would have been figured
4874 up automatically if the grip was actually a ToolStripItem, but it
4877 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4879 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
4880 as this is apparently the actual value used by .Net. Also apply
4881 ItemPadding in Details view only, and decrease the general width padding,
4882 to have only the needed. This should fix #324340 in Windows too.
4884 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4886 * ListViewItem.cs: Don't Invalidate item if parent is inside
4887 a BeginUpdate/EndUpdate block. This prevents to have differences
4888 between the ListView and items state, as well as avoid some exceptions
4890 * ListView.cs: Make 'updating' field internal.
4892 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4894 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
4895 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
4896 size if appropriate.
4897 Fixes reopened bug #325414.
4899 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4901 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
4902 * ToolStripItem.cs: Invalidate before and after our new autosize when
4904 Fixes reopened bug #325390.
4906 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4908 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
4909 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
4912 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4914 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
4916 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4918 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
4919 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
4922 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4924 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
4925 item to select when the ToolStrip is selected.
4926 * ToolStripControlHost: Realign the control when the bounds or visibility
4928 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
4929 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
4931 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
4932 base.OnPaint. Was causing text not to be drawn.
4934 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4936 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
4938 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4940 * TreeView.cs: When creating the label edit text box,
4941 set is initially to Visible = false. This is done to
4942 prevent a confusion in the layout which makes it to lose
4943 focus when shown the first time. Fixes part of #82592.
4945 2007-09-13 Andreia Gaita <avidigal@novell.com>
4947 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
4949 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4951 * ToolStrip.cs: Take Margin into account when calculating preferred
4952 size. Also, allow preferred size to get smaller than the explicit
4954 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
4955 First step towards fixing bug #82747.
4957 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4959 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
4960 full row select background over the plus/minus glyph. Also, turn
4961 off the focus rectangle for full row select since MS doesn't seem
4962 to ever paint it. [Fixes bug #81839]
4964 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4966 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
4967 This was causing keyboard opened dropdowns to lose focus.
4970 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4972 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
4973 ClientRectangle instead. [Fixes bug #82838]
4975 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4977 * SplitContainer.cs: We can't reset Visible on every layout because
4978 someone may have set Visible = false explicitly on a SplitterPanel.
4979 Make sure when we switch orientation the SplitterDistance does not
4980 change. Fixes two failing tests.
4982 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4984 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
4985 TextRenderer, since the latter is only available in 2.0.
4987 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
4989 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
4990 * SplitContainer.cs: Implement FixedPanel layouting.
4992 2007-09-12 Andreia Gaita <avidigal@novell.com>
4994 * WebBrowserBase.cs: setup shutdown routine
4996 2007-09-12 Andreia Gaita <avidigal@novell.com>
4998 * Application.cs: Let keyboard events that are targetted
4999 to non-mwf windows hosted inside mwf (as in, webbrowser),
5000 propagate properly. Fixes keyboard handling on the webbrowser.
5002 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5004 * ListView.cs: When handling MouseUp event and we are
5005 highligting a node with the mouse right button, don't trigger
5006 Before/AfterSelecting event, since we are not actually selecting
5009 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5011 * TreeView.cs: When editing a node, modify the edit text box
5012 depending on the text length (as you are typing), like MS does.
5014 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5016 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
5017 Override GetPreferredSizeCore to perform calculations. Remove custom
5018 autosize logic. [Fixes bug #82739]
5020 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5022 * TextBoxBase.cs: Modified should default to false.
5024 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5026 * Control.cs: Update the anchoring distances even when layout is supspended.
5027 Patch provided by George fixes bug #82805.
5029 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5031 * Control.cs: Provide a setter for ExplicitHeight.
5032 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
5033 remove the hacks in here for requested_height.
5036 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5038 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
5039 Maximum to lower that its current Value caused an ArgumentException by setting
5040 the Value to the new Maximum.
5042 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5044 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
5045 handle moves to the closest tick when it is being dragged.
5048 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5050 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
5051 can't let them count as real items when calculating where to merge in the
5052 user's items. [Fixed bug #82786]
5054 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5056 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
5057 who want to add a menu item directly onto a toolstrip.
5058 [Fixes bug #82775, part II]
5060 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5062 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
5063 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
5064 don't set it to available.
5065 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
5066 [Fixes bug #82727, part II]
5068 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5070 * StatusStrip.cs: Change item placement to None if not visible.
5071 * ToolStripItem.cs: Invalidate when InternalVisible changes.
5072 These should have been committed to fix 82723, but I missed them.
5074 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5076 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
5077 Click, and that it is only called once.
5078 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
5079 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
5083 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5085 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
5087 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
5088 instead of 8, just like above. Partially fixes #82734.
5090 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5092 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
5095 * ListView.cs: Remove extra space between rows in Details view (match
5097 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
5100 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
5102 * Application.cs: Modified ProductVersion to return value of
5103 AssemblyInformationVersion if available, and fallback to assembly
5104 version. Fixes bug #82746. Code formatting.
5105 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
5108 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5110 * Control.cs: When updating ZOrder for a child control,
5111 take into account the implicit ones (we need it in our controls
5112 using them). Fixes #82642.
5114 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5116 * ToolStripItem.cs: Add support for animated images.
5119 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5121 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
5122 visible. [Fixes bug #82727]
5124 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5126 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
5127 so we repaint using the new size. [Fixes bug #82723]
5129 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5131 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
5132 option. [Fixes bug #81779]
5134 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5136 * TreeView.cs: Override HandleClick because the StandardClick style is
5137 set to false. According to MSDN (and testing), the click events should
5138 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
5140 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5142 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
5143 the border will disappear. Fixes reopened #82653.
5145 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5147 * Control.cs: If the control is autosize, and its preferred size changes
5148 when it lays out its children, tell its parent so it can be re-layed out.
5149 Fixing some of the fallout from r85433.
5151 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5153 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
5154 and CheckBox share some code.
5156 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5158 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
5159 the TrackBar, not every mouse move. [Fixed bug #82718]
5161 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5163 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
5164 under 2.0 rendering. [Fixes bug #82657]
5166 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5168 * TreeView.cs: If we found a TreeNode to display a context menu, but
5169 it doesn't have one to show, let the TreeView display its menu
5170 instead. [Fixes bug #82680]
5172 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5174 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
5175 OnPaintInternal instead. Give the internal TextBox a Border property
5176 so it can draw itself more correctly. [Fixes bug #82653]
5178 2007-09-06 Zoltan Varga <vargaz@gmail.com>
5180 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
5182 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5184 * ComboBox.cs: Adjust combobox button state to reflect current state when
5185 back to enabled = true. Fixes first issue of #82654.
5187 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5189 * Control.cs: Fix last patch regression, prevent forms to update zorder when
5190 setting visible property.
5192 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5194 * Control.cs: Update zorder after control creation in SetVisibleCore, it
5195 fix zorder for controls initially created as non visible. Fixes #82667.
5197 2007-09-04 Everaldo Canuto <everaldo@simios.org>
5199 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
5200 mimic win32 look. Fixes #82656.
5202 2007-09-01 Zoltan Varga <vargaz@gmail.com>
5204 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
5205 Stubs for new net 3.5 classes.
5207 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5209 * ListViewItem.cs: In ListViewItemCollection operations calculate
5210 Layout for owner as well as invalidate it. Fixes part of #82642.
5212 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
5214 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
5215 when returning Enabled. [Fixes bug #82651]
5217 2007-08-30 Everaldo Canuto <everaldo@simios.org>
5219 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
5221 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5223 * ListView.cs: Put item padding info in a single place
5224 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
5226 * ThemeWin32Classic.cs:
5227 * Theme.cs: Likewise.
5229 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5231 * ListView.cs: When a ListViewSubItem instance is invalidated,
5232 invoke Invalidate on parent ListViewItem, not parent ListView.
5235 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5237 * ListView.cs, ListViewItem.cs: corcompare stuffs.
5239 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5241 * BindingMemberInfo.cs: Implement == and != operators.
5243 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5245 * HtmlElementEventArgs.cs: Implement properties.
5247 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5249 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
5251 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5253 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
5254 Add (string,string,string) to implement the imagekey. It turns out, we
5255 use the requested imagekey whereas .Net does not. So I broke ours to match
5258 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5260 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
5262 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5264 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
5266 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
5268 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
5269 up-to-date. Fixes bug #82618.
5271 2007-08-29 Everaldo Canuto <everaldo@simios.org>
5273 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
5274 reflect document changes. Fixes #82367.
5276 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5278 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
5279 as well as add new ones. This should make work the BackgroundImage
5280 property for ListView again.
5282 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5284 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
5285 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
5286 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
5288 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5290 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
5293 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5295 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
5296 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
5298 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5300 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
5301 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
5303 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5305 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
5307 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5309 * GridEntry.cs: Implement GetService.
5311 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
5313 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
5314 for label editting, make sure we focus back on the TreeView.
5317 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5319 * ListView.cs: Add some 2.0 overrides.
5321 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5323 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
5324 because getter dont returns right value before handle creation. Thanks
5325 to George. Fixes #82569.
5327 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5329 * Theme.cs: Revert last patch, it causes error under win32.
5331 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5333 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
5334 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
5335 logical Desktop rather than the physical file system location. Fixes #82603.
5337 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
5339 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
5340 for the patch. Fixes #82568.
5342 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5344 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
5347 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5349 * ListViewInsertionMark.cs: New stubbed class.
5351 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5353 * FolderBrowserDialog.cs: When adding folder, immediately create the
5354 directory with temporary name and rename the directory when editing
5355 finishes. This matches MS. Ensure the node for the new folder is
5356 selected and LabelEdit is disabled, when editing is either finished
5359 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5361 * TreeView.cs: When editing label of node, ensure node is visible.
5363 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
5365 * PropertyGridView.cs: Set the value only if it has changed.
5367 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5369 * ListView.cs: Some more code refactoring to add support sorting
5370 with groups (now for Details view). Remove unused code also.
5372 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5374 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
5375 Not a big fan of reacting immediately to a field in an EventArg, but that's
5376 the way it's done. (This is part of the previous commit that got left out.)
5378 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5380 * FolderBrowserDialog.cs: Removed need for separate description field.
5381 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
5382 has focus when dialog box is displayed again, regardless of what
5383 button was pressed the previous time. Set RootFolder and SelectedPath
5384 each time dialog box is displayed. This ensures the treeview is
5385 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
5386 when it does not have focus. Added support for more special folders.
5388 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5390 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
5391 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
5392 it resets the edit_args.
5393 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
5396 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
5398 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
5399 button to match MS. Provide more meaningful exception message for
5400 invalid RootFolder value. Use zero-length string when SelectedPath
5401 is set to null. Allow non-rooted paths in SelectedPath, but ignore
5402 them in FolderBrowserTreeView. Allow folders to be created in
5403 RootFolder. Fixes bug #82576.
5405 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5407 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
5408 since we need to take into account the group headers and the margin
5410 * ListViewGroup.cs: Add a rows field to store the number of rows per
5413 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5415 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
5416 Anyways, let's just follow the lead.
5418 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5420 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
5421 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
5422 controls in GetPreferredSizeCore.
5423 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
5426 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5428 * PrintDialog.cs: Need to instantiate the form variable here too.
5430 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5432 * ListView.cs: Do some reorganization to support sorting in groups,
5433 by doing the layout sequentially in ListView.Items. Also add support
5434 for the Default Group, which should be available for items with no
5436 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
5437 for storing layout info also.
5438 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
5439 collection, as well as providing internal members to do a traversal
5440 including the default group (needed when doing layout/drawing).
5441 * ThemeWin32Classic.cs: When drawing group headers use internal
5442 ListViewGroupCollection members to take into account the default
5445 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
5447 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
5449 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5451 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
5452 been created. If handle is created, we want arror keys. If we are editing
5453 a node, we want things like enter, esc, home, end, page up, page down.
5454 Allows Esc to work for FolderBrowserDialog.
5456 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5458 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5459 they close when ESC is pressed. Thanks Andy!
5461 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5463 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5464 This way we can tell if this is a CommonDialog provided with mono, or one
5465 that is being implemented outside by a developer. If it is an external one,
5466 the developer is responsible for showing their own form. We were showing
5467 our blank form after the developer showed his.
5468 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5469 PageSetupDialog.cs: Instantiate form variable in our constructor.
5472 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5474 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5475 and always return true. [Fixes bug #81616]
5477 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5479 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5480 TextBox. [Fixes bug #82549]
5482 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
5484 * FileDialog.cs: When Save/Open is clicked and no filename is selected
5485 or entered then do not close the dialog. Fixes bug #82539. Removed
5488 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
5490 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5491 code to this method. It is calling every time filter changes. This method
5492 will help to fix the bug #80887.
5494 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5496 * CheckBox.cs: Implement AutoSize calculation.
5498 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5500 * CheckBox.cs: Use new 2.0 rendering for 2.0.
5501 * Theme.cs: Method declarations for 2.0 rendering path.
5502 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5504 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5506 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5508 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5510 * ListViewGroupCollection.cs: Implement AddRange the right way, to
5511 only call Redraw on the parent one time.
5513 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5515 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5516 GetClipboardContent.
5517 * DataGridViewCell.cs: Implemented GetClipboardContent,
5518 GetEditedFormattedValue, GetFormattedValue.
5519 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5521 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5523 * TableLayoutStyleCollection.cs: corcompare fix.
5525 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5527 * DataObject.cs: Implemented retrieval of convertible / not convertible
5530 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5532 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5533 ourselves. This ensures the entire old bounds are repainted, in case our new
5534 size is smaller. [Fixes bug #82518]
5536 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
5538 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5539 flag to make fast handle of mouse events, without this the mouse move is
5540 handled in some manner, whether it is a mouse move or not. Fixes #81588.
5542 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5544 * ListView.cs: When doing layout calculations don't use a ref
5545 param to keep the current item; instead use its Index value (this
5546 is specially important when doing the layout with Groups
5547 and Items being sparse). Also don't take into account items added to
5548 the Group but not yet added to the main ListView.Items collection.
5550 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5552 * ListViewGroupCollection.cs: Forgot to mimic an issue
5553 in the indexer (don't assign the ListView owner for new values).
5555 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5557 * ListViewGroupCollection.cs: Make the string indexer use
5558 the int based indexer to re-use code, instead of duplicate the code.
5559 Also Redraw as needed and take into account null values.
5561 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5563 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5566 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5568 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5569 when other buttons are clicked or navigated to.
5571 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5573 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5574 it's XplatUIX11 that attaches them.
5576 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5578 * DataGridView.cs: If a column has been added, recreate the editing row.
5581 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5583 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5584 of the tag to draw. Makes disappearing text show up again.
5586 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5588 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5589 Contents. Fixes #82487.
5591 2007-08-19 Andreia Gaita <avidigal@novell.com>
5593 * Added HtmlElement.cs, HtmlElementCollection.cs,
5594 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
5596 2007-08-19 Andreia Gaita <avidigal@novell.com>
5598 * BindingSource.cs: Implement this, dispose and getenumerator.
5599 * DataGridViewRowCollection.cs: Move the InvalidOperationException
5600 out of AddInternal, throw it only on public Add calls. The
5601 UsingWebBrowser sample was blowing up with this when setting the
5602 DataSource after adding DataBindings, so it's likely that .net
5603 only throws this exception when Add is called directly.
5605 * ToolStripControlHost.cs: Return the hosted control's text
5606 property, and not the ToolStripItem one (it would always return
5609 * HtmlDocument.cs: Implement GetElementById and All
5610 * WebBrowser.cs: Remove exception on set_DocumentStream.
5612 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5614 * Form.cs: Fix the max and min value for opacity (0~1).
5616 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5619 * DataGridTableStyle.cs: Default header font is now null, on getter it
5620 returns datagrid font when is null. On setter permits null.
5623 - When ResetHeaderFont set header font to null.
5624 - On EndInit set grid_style.DataGrid.
5626 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5628 * TabControl.cs: Fix regression in default padding x.
5630 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5632 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
5634 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5636 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
5637 not 2. Fixes #82229.
5639 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5641 * TabControl.cs: Fix tab size when image height is less than text height.
5642 Partially fixes #81837.
5644 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5646 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
5647 "alt + tab". It works only for Win32, for X11 theres no way to remove window
5648 from taskbar and keep it on "alt_tab". Fixes #81722.
5650 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5652 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
5653 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
5654 Fixes #80877 and #79418.
5656 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5658 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
5659 between position and one of the screen borders. Fixes #82349.
5661 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5663 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
5664 the MessageBox in the taskbar. Fixes #82457.
5666 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5668 * MessageBox.cs: Fix form size when icon is set and text height is bigger
5669 than icon. Fixes #82468.
5671 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
5673 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
5674 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
5675 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
5676 Refactored HandleNCCalcSize somewhat to avoid code duplication.
5677 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
5678 FormBorderStyle to decide if we're calculating a new size from the
5679 client size or not. CreateParams: Don't fake tool windows, only the X11
5680 backend manages toolwindows manually.
5682 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5684 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
5685 ObjectDisposedException.
5687 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5689 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
5690 in OnLoad should not have any effect. [Fixes bug #82470]
5692 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5694 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
5695 paint for controls that create their own ToolTipWindow instead of
5696 going through ToolTip.
5698 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5700 * ToolTip.cs: Make Hide internal instead of public to match MS API.
5702 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5704 * ListViewGroupCollection.cs: Use generic List instead of an
5705 ArrayList, since this collection is 2.0 only.
5707 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
5709 * ToolTip.cs (Hide): Made public to make the build work (should
5710 this not be public?).
5712 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5714 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
5716 * ToolTip.cs: Add an internal Visible property to facilitate transition.
5718 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5720 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
5721 PopupEventHandler.cs: Make these internal for 1.1.
5722 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
5723 use ToolTipWindow internals.
5724 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
5725 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
5727 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5729 * X11Dnd.cs: Add a null check.
5731 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5733 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
5734 nothing else succeeds. Fixes #82453.
5736 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5738 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
5739 rectangle if we're painting to another window than the one the paint
5740 message was generated on. Simplify the code somewhat, which makes
5741 PaintEventEnd also simpler.
5743 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5745 * Control.cs: When changing parent of a form, let the form decide whether
5746 XplatUI.SetParent should be called or not.
5747 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
5748 recreating the handle. If the new parent's handle isn't created, don't
5749 recreate our handle, just destroy it. CreateParams: Check if the
5750 parent's handle is created before fetching it.
5752 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5754 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
5755 Update calls to PaintEventStart/End to take a Message argument.
5756 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
5757 take a Message argument.
5758 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
5759 Message argument, and handle the case where we don't paint to the window
5760 for which the paint message was generated.
5762 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5764 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
5765 Marshal.GetLastWin32Error. Plug nasty memory leak in
5766 PaintEventStart/End, we were creating a DC we weren't releasing.
5768 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5770 * ListView.cs: Add Groups support in Details view. Also have a small
5771 method to do the layout of the group header. Don't use a separate
5772 method to do the groups calculation in Icons view, since our methods
5773 are now a little simpler.
5774 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
5776 * ThemeWin32Classic.cs: Likewise.
5778 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
5780 * Application.cs: Add FilterMessage method and rework our message loop
5783 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
5785 * Application.cs: Add some methods and stub a few methods that are
5786 pretty much never used.
5788 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
5790 * TreeNode.cs: Add some serialization methods.
5792 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5794 * ListView.cs: In ListViewItemCollection have a
5795 'is_main_collection' field to not modify ListViewItem.ListView
5796 when using it as ListViewGroup.Items (and not ListView.Items)
5797 and also don't modify selection state (.Net behaviour).
5798 Instead, set group for items contained in a ListViewGroup.Items collection.
5799 * ListViewItem.cs: Simplify some code in Group setter.
5800 * ListViewGroup.cs: use the new .ctor to pass the current instance
5801 to the ItemsCollection.
5802 * ListViewGroup.cs: Set the ListView property for ListViewGroup
5803 instances when adding/removing. Also make Remove use RemoveAt, which
5804 should perform better.
5806 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5808 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
5809 that crept into the 1.1 profile.
5811 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5813 * ToolBarButton.cs: Implement ImageKey.
5815 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5817 * ToolBar.cs: Implement ScaleControl/ScaleCore.
5819 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5821 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
5822 created, it might have gotten destroyed since we last checked. Fixes
5825 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
5827 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
5828 tooltip will hide when mouse is moved off the control.
5831 2007-08-11 Andreia Gaita <avidigal@novell.com>
5833 * WebBrowserBase.cs, WebBrowser.cs: add implementation
5834 using Mono.Mozilla for loading and navigating webcontrol
5836 The initial implementation was done on
5837 /trunk/mozembed/tests/browser , and copied here.
5839 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
5841 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
5842 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
5844 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5846 * DataGridView.cs: Add support for an editing row. Fixes #82226.
5847 RowTemplateFull: throw an exception if a column doesn't have a template.
5848 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
5849 add the row just before it.
5850 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
5852 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
5853 DataGridView field to be able to reach the grid's editing row.
5855 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5857 * ToolTip.cs: If the control's handle hasn't been created when it has a
5858 tooltip set on it, don't check to see if we need to show the tooltip. This
5859 check was causing the control's handle to be created.
5862 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5864 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
5866 Handle Not Created -1 0
5870 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5872 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
5875 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5877 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
5878 * ToolTip.cs: Implement some properties and owner draw.
5880 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5882 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
5883 show them again, since setting visibility causes a paint, causing an
5884 endless loop (instead use a temporary and set it all when it's known if
5885 they should be shown or not). Fixes #79265.
5887 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5889 * DataGridView.cs: Only do a full column/row selection if a header was
5890 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
5891 isn't pressed, deselect everything before selecting something.
5893 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5895 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
5896 behaviour according to bug #81075 - they are returned in the order they
5897 are selected. Fix HitTest to check if the point is within any of the
5898 headers. Allow for row/column selection when in ColumnHeader or
5899 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
5900 the row and column to call when their selected state changes, and
5901 updated selected_[rows|columns] whenever SetSelected* is called.
5902 * DataGridViewBand.cs: Initialize isRow correctly. Call
5903 SetSelected[Row|Column]CoreInternal when the selected state changes, and
5904 add a SelectedInternal to avoid StackOverflows.
5905 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
5906 ReadOnly no matter what.
5907 * DataGridViewSelectedColumnCollection.cs,
5908 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
5909 the items in reverse order (just as MS does...)
5911 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5913 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
5914 itself, not part of a mnemonic. [Fixes bug #82378]
5916 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5918 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
5919 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
5920 the DGV, the column, the row, or the cell itself is readonly.
5922 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5924 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
5926 * FileDialog.cs: Same.
5927 * TextRendered.cs: Same.
5928 * FolderBrowserDialog.cs: Same.
5929 * TextBoxBase.cs: Same.
5930 * Application.cs: Same.
5932 * ThemeClearLooks.cs: Same.
5934 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5936 * XplatUI.cs: Added RunningOnUnix property to be used by controls
5937 instead of duplicating these checks everywhere.
5938 * FileDialog.cs: Use case-insensitive comparison for populating the
5939 DirComboBox when not running on unix. Fixes bug #82385.
5940 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
5943 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5945 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
5946 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
5947 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
5948 cell and column selection with ctrl and shift pressed. Call the correct
5949 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
5950 the corresponding virtual method (PaintBackground to paint background,
5952 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
5953 either the column, row or the cell itself is selected.
5954 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
5956 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
5957 here. When the row is selected, don't select all cells. Each cell now
5958 queries the row to see if the row is selected.
5960 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5962 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
5965 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5967 * ListView.cs: In ListViewItemsCollection check that owner is
5968 not null before trying to access it (this happens quite often
5969 using Groups). Also don't duplicate calls by calling CollectionChanged
5972 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5974 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
5975 when we are dismissed to clear keyboard mnemonics.
5976 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
5977 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
5978 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
5979 was activated by keyboard or the OS tells us to always draw them.
5980 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
5981 [Fixes bugs #82376, #82377]
5983 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5985 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
5986 shot at having it because Alt was pressed.
5987 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
5988 the first real menu item.
5989 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
5990 a mnemonic if Text is null.
5993 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5995 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
5996 search do check whether the item is already contained in the
5997 collection or not; instead check if the owner of the item is the same
5998 as ours. Also, remove a redundant check in the same method.
6000 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6002 * Control.cs: Allow the clip region to be set back to null.
6003 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
6004 [Fixes button still showing up in bug #82370 when Show Through is turned off]
6006 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
6008 * GridEntry.cs: Add a null check.
6009 * PropertyGrid.cs: When checking for existing grid entries, ignore category
6010 entries. Fixes #82297.
6012 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6014 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
6017 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6019 * ListBox.cs: Implement ScaleControl.
6021 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6023 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
6025 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
6026 parent has a menu strip. Fixes #81689.
6028 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6030 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
6031 moments, so apply some fuzzy logic to determine if the mouse is still
6032 inside a control or not. Fixes #82288 (for the third time).
6034 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6036 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
6037 Don't create the child if it has been disposed already (may happen if
6038 the user closes the form the Load event).
6040 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6042 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
6045 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6047 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
6048 might call us after we've been destroyed, in which case our own private
6049 parent field is null. Fixes #82326.
6051 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6053 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
6054 check for setting the dropdown's owner.
6056 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6058 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
6059 before removing system menu items.
6061 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
6063 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
6065 * MdiControlStrip.cs: Added. These are the menu items used in mdi
6067 * ToolStrip.cs: Add a null check to mnemonics.
6068 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
6070 [Fixes most of bug #81689]
6072 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6074 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
6076 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6078 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
6080 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6082 * DataGridViewCell.cs: EditType: returns
6083 DataGridViewTextBoxEditingControl always.
6085 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
6087 * TextRenderer.cs: Remove the LineLimit string format flag from the
6088 DrawString fallback method so that things like buttons that aren't
6089 tall enough to draw a full line will still draw part of the text.
6090 [Fixes part of bug #82272]
6092 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6094 * DataGridView.cs: Implemented AutoResizeColumn(s).
6095 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
6096 according to the Alignment.
6097 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
6098 Implement alignment and padding when painting.
6099 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
6101 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
6103 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
6106 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6108 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
6111 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6113 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
6114 hide GetPreferredSize from public API.
6115 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
6116 * ToolStripItem.cs: Stub out drag and drop methods and events.
6117 * ToolStripManager.cs: Stub out Save/LoadSettings.
6118 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
6119 * ToolStripPanel.cs: Fix corcompare error.
6120 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
6121 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
6122 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
6124 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6126 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
6127 bounds height instead of PreferredHeight. Puts things back the way
6128 they were for height while still fixing the width. Fixes broken unit
6131 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6133 * Binding.cs: Implement 2.0 constructors and add a null check.
6135 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6137 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
6138 and fix row index (off by one).
6140 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6142 * PropertyGridView.cs: Remove debug output.
6144 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6146 * Control.cs: We need to reset the is_created flags when the handle is
6147 destroyed. Fixes #82187.
6148 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
6149 client coordinates if the window doesn't have a parent.
6150 Win32GetParent returns the parent or the owner, and for top-level
6151 windows with no parent (but with an owner) we were calculating the
6152 location from the location of the owner.
6153 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
6154 form has been disposed.
6155 * MdiClient.cs: Add a null-check.
6157 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6159 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
6160 actually do auto-sizing. Override the internal GetPreferredSizeCore
6161 so we can provide an implementation that returns the current width
6162 and preferred height. Allows anchor = right to work with TextBox 2.0.
6165 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6167 * ListView.cs: Add support for navigating items in Groups mode, by
6168 creating a big matrix containing all rows and cols of all groups. When
6169 are in other mode than Details, pressing Up should have a similar
6170 behaviour as that one of Down (moving to the next available column if
6171 current one doesn't have an item in the requested row). Also, don't
6172 proceed to use groups if ShowGroups is false.
6173 * ListViewGroup.cs: Add an internal int field to store the starting
6174 row of the group (used by the big matrix used for navigating the
6176 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
6179 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6181 * ToolStripDropDown.cs: When we do Show, start with the
6182 DefaultDropDownDirection, but if our popup menu is going to off-screen,
6183 modify the direction to keep it on screen. [Fixes bug #82210]
6185 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
6187 * FileDialog.cs: Accept any FilterIndex value, and store it
6188 unmodified. When FilterIndex is less than 1, or greater than number
6189 of filters, then default to first filter. Only add filter extension to
6190 file if user did not specifiy an extension. When type of dialog is
6191 OpenFileDialog and DefaultExt is set, then only use filter extension
6192 if: CheckFileExists is true and no file wih the default extension
6193 exists, or CheckFileExists is false, and user specified file does not
6194 exist. When CheckFileExists is true, then add first extension of
6195 selected filter that matches existing file. Perform checks for
6196 existing file, overwrite and create after extension has been added to
6197 file name. When CheckFileExists is true and type is SaveFileDialog,
6198 then only consider first filter extension if DefaultExt is set.
6199 When CheckFileExists is true, then ignore DefaultExt if file with that
6200 extension does not exist. Also perform check for existing file when
6201 type is SaveFileDialog. Changed some field to constants.
6203 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6205 * ListView.cs: Take into account the region used by header
6206 control when doing the vertical scroll (this way we invalidate
6207 the precise area, and don't get any dirty one).
6209 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
6211 * FileDialog.cs: Check for valid filterIndex on button open/save.
6214 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6216 * ListView.cs: Update some layout calculations in details view
6217 and clean the code in a pair of assignations.
6219 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6221 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
6222 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
6223 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
6224 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
6226 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6228 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
6229 performance of thread-safe Graphic methods. (Thanks rolf!)
6231 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6233 * ListView.cs: When doing the layout calculations, don't calculate
6234 scroll bars before handle is created. This is unnecessary and also
6235 calculating them before handle creation item causes a number of random
6236 bugs (which begin to appear after Chris' big patch for handle creation
6239 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6241 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
6242 for things that don't have a Graphics object. Currently, things just use
6243 the static Hwnd.bmp_g which is not thread safe.
6245 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6247 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
6248 dialog. Fixes #82187.
6250 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6252 * DataGridViewElement.cs: Initialize state.
6253 * DataGridView.cs: Forward a few Mouse events to cells. Add
6254 GetRowInternal and GetCellInternal that doesn't unshare rows.
6255 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
6256 don't use the index, but look it up. Add
6257 DataGridViewControlCollection.RemoveInternal to remove controls
6258 that Remove won't remove (scrollbars, edit control).
6259 * DataGridViewColumn.cs: Initialize State correctly.
6260 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
6261 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
6263 * DataGridViewRowCollection.cs: Implemented shared rows.
6264 * DataGridViewRow.cs: Throw exceptions as MS do.
6265 * DataGridViewCell.cs: A few properties are implemented by a
6266 Get<Property> method, so move implementation there and remove the
6267 NIEX in the method. Add a bunch of OnXInternal that DataGridView
6268 calls when necessary.
6269 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
6270 complicates matters.
6271 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
6274 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6276 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
6277 the children controls. Instead, we will just set up the proper docking for the
6278 children controls so we don't have to worry about it. [Fixes bug #82188]
6280 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6282 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
6283 canceling and correct Before/AfterLabelEdit properties as layed out in bug
6284 81847. [Fixes bug #81847]
6286 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6288 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
6289 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
6290 an explicit size based on the design-time size of the text. Since our fonts
6291 may not match this explicit size, we tend to cut off the ends of people's labels.
6293 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
6295 * Menu.cs: Add some missing methods to MenuItemCollection.
6297 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6299 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
6300 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
6301 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
6302 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
6303 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
6304 * DataGridViewElement.cs: State defaults to Visible.
6305 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
6306 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
6308 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6310 * Control.cs: Minor 1.1 corcompare fix.
6312 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6314 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
6315 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
6317 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6319 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
6320 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
6321 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
6322 DataGridViewSelectedColumnCollection.cs,
6323 DataGridViewSelectedRowCollection.cs: Corcompare work.
6325 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6327 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
6328 it is autoset by VS2005 designer and the effect is barely noticeable.
6330 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6332 * TreeView.cs: Implement HitTest.
6334 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6336 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
6337 manually adding and removing the control from the Controls
6339 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
6340 EditingControlInternal property that tracks the editing control.
6341 Always keeping the scrollbars in the Controls collection, as MS
6342 testing confirms is the right behaviour.
6344 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6346 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
6347 according to MSDN and new test.
6349 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6351 * TreeNode.cs: Implement ToolTipText.
6352 * TreeView.cs: Implement tooltips, NodeMouse* events.
6354 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6356 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
6358 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6360 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
6361 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
6363 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
6365 * Control.cs, Form.cs, ContainerControl.cs,
6366 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
6367 for misc properties.
6369 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6371 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
6372 * TreeView.cs: Implement StateImageList.
6374 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6376 * Form.cs: Don't check if the current form is the active form before
6377 activating it. Fixes #81904.
6379 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6381 * Form.cs: Don't check if the current form is the active form before
6382 activating it. Fixes #81904.
6384 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6386 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
6388 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6390 * Form.cs: Don't try to position the form after loading if the form was
6391 disposed. Fixes #81969.
6393 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6395 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
6396 properties. Had to change ToolBar into ToolStrip, which required a
6399 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6401 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
6402 resized, fixes part of #79829 (vertical lines in toolbar).
6403 PropertyGrid: Refactored Populate* to something that's easier to
6404 follow at least for me, as well as splitting it up into several new
6405 methods, required to update only subitems when something has
6406 changed by a popup editor or listbox. Don't use events to check
6407 when any values are changed, since the events are unreliable (we're
6408 changing the objects the events are registered with, and if the
6409 event handling requires the objects to be immutable (objects stored
6410 in hashtables for instance), the events will never be raised).
6411 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
6412 everytime we change a value, since events are unreliable.
6413 DropDownButtonClicked: For the same reason don't compare objects to
6414 check if it has changed or not, it would require all objects to
6415 derive Equals. Fix dialog location on windows, MS is doing weird
6416 things when creating parented forms.
6417 * GridEntry.cs: Add a SelectedObject setter.
6419 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6421 * TreeNode.cs: Add some corcompare attributes.
6422 * TreeNodeCollection.cs: Implement 2.0 stuffs.
6423 * TreeView.cs: Implement some 2.0 stuffs.
6425 2007-07-18 Andreia Gaita <avidigal@novell.com>
6427 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
6430 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6432 * ListBox.cs: Implement custom tab offsets.
6434 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6436 * ToolStripContentPanel.cs: Support System renderer.
6437 * ToolStripControlHost.cs: Set RightToLeft to default to No.
6439 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6441 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
6443 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6445 * CheckBox.cs: Chain TextAlign to base implementation instead of
6446 maintaining another one.
6448 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6450 * ButtonBase.cs: Fix an incorrect string constant.
6452 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6454 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
6455 of creating one for measuring strings.
6457 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6459 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
6460 Implement MaxItemSize.
6462 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6464 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6465 for DeviceContext. Instead, use the static one available in Hwnd.
6466 Informal tests show this saves about 500k on formtest.exe.
6468 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6470 * ContainerControl.cs: Implement 2.0 AutoScaling.
6472 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6474 * ComboBox.cs: Work around bug #82120 (bug in mcs).
6476 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6478 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6479 Darken the focus color.
6481 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6483 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6485 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6486 X, Y instead of a rect for drawing text.
6487 - For ControlPaint.DrawCheckBox, center the check a little better when the
6488 checkbox is odd width. When drawing a flat checkbox, use a white background
6489 when state != inactive.
6490 [Fixes bugs #82097, 82100]
6492 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
6494 * ListControl.cs: When changing CurrencyManager, disconnect event
6495 handlers from previous one. Fixes bug #81771. Code formatting.
6497 2007-07-15 Andreia Gaita <avidigal@novell.com>
6499 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6500 full preview invalidation from layout invalidation, and only invalidate
6501 the layout when setting zoom or other properties. Invalidation should
6502 always be done even when resetting properties with the same values as
6503 what is there. Fixes #81744 and #79830.
6505 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6507 * ListView.cs: Implement initial support for Groups. Split some of the
6508 LayoutIcons code to render a partial list of the items (needed by
6509 items contained in ListViewGroup instances). Let the
6510 ListViewItemsCollection.ListView property be modifiable (needed when
6512 * ListViewGroup.cs: Use a Bounds property rather than a Location
6513 one. Also invalidate the bounds when they get changed.
6514 * ThemeWin32Classic.cs: When drawing items, also draw the group header
6515 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6518 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6520 * ListView.cs: When space gets pressed and CheckBoxes is true,
6521 don't invoke the Begin and EndUpdate methods. We are generating
6522 a redraw of the entire control without need to do so.
6524 2007-07-13 William Holmes <billholmes54@gmail.com>
6526 * Control.cs: Changing logic in FindFlatForward and
6527 FindFlatBackward to handle multiple Controls with
6529 This fixes bug 81687.
6531 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
6533 * OSFeature.cs: Enable IsPresent.
6535 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6537 * Control.cs: Don't do anything in WmShowWindow if the control has been
6538 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6539 control is created, put on a form, the control is disposed (the
6540 form is never shown), and then we get a MapNotify, triggering a
6542 * Form.cs: Exclude the current form when sending Deactivate to all
6544 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6545 there was a race condition because assigning the handle raises
6546 events, we can get more messages, therefore trying to assign the
6547 handle again, which would fail if any of those event handlers
6548 closed/disposed the control.
6550 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6552 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6554 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6556 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6557 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6559 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6561 * DateTimePicker.cs: If there's no part format specifier, return an
6564 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6566 * FlatButtonAppearance.cs: Throw NotSupportedException for a
6567 Transparent BorderColor.
6569 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6571 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6572 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6573 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6574 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6575 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6576 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6577 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6579 * X11Structs.cs: Remove warnings, add ToString implementations.
6581 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6583 * XplatUIX11.cs: Translate min/max size according to the actual min/max
6584 size, and not the current size. Fixes #81798.
6586 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6588 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6589 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6590 to the control yet).
6592 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6594 * PropertyGridTextBox.cs: Add a method that sends any forwarded
6595 mousedowns to the contained textbox.
6596 * X11Structs.cs: More ToString implementation.
6597 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
6600 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6602 * PropertyGridView.cs: Add a null-check, fixes a few tests.
6604 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
6606 * TableLayoutPanelCellPosition.cs: TypeConverter.
6608 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6612 * PropertyGridTextBox.cs: Propagate any color changes to all contained
6614 * PropertyGridView.cs: A few color fixes.
6616 2007-07-10 Jackson Harper <jackson@ximian.com>
6618 * TextControl.cs: Remove some old unused text formatting stuff.
6620 2007-07-10 Jackson Harper <jackson@ximian.com>
6622 * TreeView.cs: Update full row select invalidation to match the
6623 newer DrawSelection... method.
6624 - Make sure to invalidate the entire width when selecting a new
6625 node, if we have full row selection enabled.
6627 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6629 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
6630 display of properties again.
6632 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
6634 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
6635 to existing collections.
6637 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6639 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
6640 that changed between 1.1 and 2.0.
6642 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6644 * PowerStatus.cs: Added. This is just a data class, it is filled
6645 in by SystemInformation.
6647 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6649 * Message.cs: Add op_Equality and op_Inequality.
6651 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6653 * MenuStrip.cs: Finish corcompare work.
6655 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6657 * LinkArea.cs: Add op_Equality and op_Inequality.
6659 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6661 * Application.cs: Add MessageLoopCallback delegate.
6663 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6665 * ListBox.cs: First set of 2.0 stuffs.
6667 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6669 * Control.cs: Make an internal Height property we can override
6670 without messing up the public API.
6671 * ListBox.cs: Override HeightInternal to always return the size
6672 the user set. [Fixes bug #80466]
6674 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
6676 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
6677 paint cell borders if we haven't calculated where they go yet.
6678 [Fixes bugs #82040 and #82041]
6680 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6682 * ListView.cs: In Details view, set the location of item_control
6683 in the (0,0) position (and the header_control is thus on the
6684 item_control). This way the Bounds of the Items are relative to the
6685 ListView control (before this, they had a Bounds value without the
6686 header_control offset, which wasn't matching .Net). Fixes #82004.
6688 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6690 * ListControl.cs: When DataSource is set to null, pass an empty
6691 array of object to SetItemsCore. This is done to clean the items
6692 in the ListContol children. Fixes #81788.
6694 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6696 * ListControl.cs: Add 2.0 stuffs.
6698 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6700 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
6701 Refresh is overkill for just about every repaint request.
6703 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6705 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
6706 so remove my custom Get method and fix the property getter.
6708 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6710 * Label.cs: DefaultMargin for 2.0.
6712 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6714 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
6715 reported issue where other controls with mnemonics would steal strokes
6716 from a selected ComboBox.
6718 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6720 * ScrollOrientation.cs: Make internal for 1.1.
6721 * ScrollEventArgs.cs: Add 2.0 stuffs.
6723 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
6725 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6726 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
6727 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
6729 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6731 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
6733 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6735 * ListView.cs: Implement the so-incredibly broken 2.0
6736 VirtualItemsSelectionRangeChanged event.
6738 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6740 * ListView.cs: When enter is pressed and selection is non empty,
6741 an OnItemActivate event must be fired.
6743 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6745 * ListView.cs: Store the FocusedItem information as an
6746 int instead of a ListViewItem (needed by VirtualMode).
6747 Update the calls to SetFocusedItem to pass an index instead of
6749 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
6750 the Focused state from the owner ListView.
6752 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6754 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
6755 property. Also, invalidate previous focused item in the mentioned
6756 property (match .Net).
6758 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6760 * ListView.cs: Implement 2.0 FocusedItem property setter.
6762 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6764 * ListView.cs: Implement 2.0 TopItem property setter.
6766 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
6768 * StatusStrip.cs: The default renderer is System.
6769 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
6770 if the user specifies it.
6771 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
6772 if we are ManagerRenderMode.
6773 * ToolStripMenuItem.cs: Calculate our text color better.
6774 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
6775 from Professional to the base class based off working with the System renderer.
6776 * ToolStripSystemRenderer.cs: Added.
6778 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6780 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
6782 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
6784 * ToolTip.cs: Implement 2.0 Tag property.
6786 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6788 * ListView.cs: Implement 2.0 HitTest methods.
6790 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6792 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
6793 item is under the pointer or not (sugar). Also remove the TODO
6794 regarding to the cursor changes in OneClick activation.
6795 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
6796 the subitems use the parent's HotFont if UseItemStyleForSubItems is
6797 true; otherwise don't show the underline style.
6799 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6801 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
6802 the code to retrieve the item at position only one time. Also
6803 change cursor when Activation is ItemActivation.OneClick as well
6804 as invalidate the item if HotTracking is true (to show/hide the
6805 underline style). Add an internal HotItemIndex property to retrieve
6806 the current hot item's index.
6807 * ListViewItem.cs: Add an internal HotFont property to cache the
6808 font used when HotTracking is true and the pointer moves within the
6810 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
6811 HotFont depending on the hot state of the item.
6813 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6815 * ListView.cs: Implement 2.0 HotTracking property.
6817 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6819 * ToolStripControlHost.cs: If our hosted control never got created,
6820 don't try to dispose it. [Fixes bug #81909]
6822 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6824 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
6826 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6828 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
6830 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6832 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
6834 * DrawListViewColumnHeaderEventArgs.cs:
6835 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
6836 using the DrawText () methods.
6838 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
6840 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
6841 background which got erased in my changes yesterday.
6843 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6845 * ListViewItem.cs: Actually set bounds for subitems in Details view
6847 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
6848 can invoke from the owner draw routines if we need it. Also, add
6849 support for Owner draw in Details view.
6851 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6853 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
6854 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
6855 ShowImageMargin setting, properly align text in a ToolStripLabel
6856 hosted on a ToolStripDropDown.
6858 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6860 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
6861 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
6863 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6865 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
6867 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6869 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
6870 location to match ToolStripMenuItems.
6872 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6874 * DrawListViewColumnHeaderEventArgs.cs:
6875 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
6876 column headers in ListView.
6878 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6880 * UserControl.cs: Implement AutoSize.
6882 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6884 * DrawListViewItemEventArgs.cs:
6886 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
6889 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6891 * ToolStripDropDownItemAccessibleObject.cs: Added.
6892 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6893 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6894 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
6895 ToolStripTextBox.cs: corcompare work.
6897 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6899 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
6900 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
6901 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
6904 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6906 * OSFeature.cs: Add IsPresent.
6907 * PrintPreviewControl.cs: Add RightToLeft.
6908 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
6909 * SplitterPanel.cs: Add AutoSizeMode.
6911 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6913 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
6914 * MdiClient.cs: Add 2.0 ScaleControl.
6915 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
6916 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
6918 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6920 * Form.cs: Implement some scaling methods, stub some RTL methods,
6923 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6925 * Control.cs: corcompare work.
6926 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
6928 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6930 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
6931 ControlPaint 2.0 stuffs.
6933 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6935 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
6937 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6939 * UpDownBase.cs: Add 2.0 stuffs.
6941 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6943 * NumericUpDown.cs: Add 2.0 stuffs.
6945 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6947 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
6949 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6951 * ErrorProvider.cs: Implement 2.0 stuffs.
6953 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6955 * DomainUpDown.cs: Implement 2.0 stuffs.
6957 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6959 * CheckedListBox.cs: Fix RefreshItems signature.
6961 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6963 * PictureBox.cs: Implement 2.0 stuffs.
6965 2007-06-12 Andreia Gaita <avidigal@novell.com>
6967 * TabControl.cs: Check if there are tabpages before checking
6968 the selected index - fix #81802 (font changes raise a ResizeTabs
6969 call on controls.add, which blew up nicely with no tabpages)
6971 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6974 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
6976 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6979 * ListViewItem.cs: In VirtualMode the selection information
6980 resides in the ListView, rather than in the Items. Also, throw
6981 InvalidOperationExceptions when VirtualMode is being used and
6982 CheckedItemCollection is accessed.
6984 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6986 * ComboBox.cs: Add ScaleControl.
6988 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6990 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
6992 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6994 * GroupBox.cs: Add 2.0 stuffs.
6996 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6998 * Panel.cs: Add autosize properties/event.
7000 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7003 - When we remove a control, remove it from the collection before performing the layout.
7004 - Setup an internal property for explicit_bounds.
7005 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
7006 - Perform a layout when we set a new AutoSizeMode.
7008 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7010 * ScrollableControl.cs: Add 2.0 stuffs.
7012 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7014 * ScrollBar.cs: Add 2.0 stuffs.
7016 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7018 * Splitter.cs: Add 2.0 stuffs.
7020 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7022 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
7023 to have BindingContext simply use base implementation.
7025 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7027 * ColumnHeader.cs: corcompare fix.
7029 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7031 * Button.cs: corcompare fixes.
7032 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
7034 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7036 * Button.cs: Override GetPreferredSizeCore.
7037 * ButtonBase.cs: PerformLayout after changing properties that can affect
7038 AutoSize. Simplify some mouse/keyboard code.
7039 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
7040 * MouseEventArgs.cs: Make Location internal for 1.1.
7041 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
7042 * Theme.cs: Add CalculateButtonAutoSize.
7043 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
7045 2007-06-05 Miguel de Icaza <miguel@novell.com>
7047 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
7049 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7051 * ListViewItem.cs: We can't cache Bounds in VirtualMode
7052 since we can get different item instances every time we retrieve it.
7054 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7056 * ListView.cs: Work around for #81602, since an unkown an pretty
7057 infrequent condition appears only in some systems (old linux boxes, it
7060 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7062 * Button.cs: Completely reformat and a little refactor to bring
7063 this closer to Mono circa 2007.
7065 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7067 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
7068 to be ButtonBase.Invalidate.
7070 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7072 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
7074 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7076 * ButtonBase.cs: Completely reformat and a little refactor to bring
7077 this closer to Mono circa 2007.
7079 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
7081 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
7082 values for autosize. Fixes #80137.
7084 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7086 * Control.cs: Don't perform layout when AutoSize changes.
7087 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
7088 directly when autosizing, use SetBounds with BoundsSpecified.None.
7089 Fixes unit tests my last commit broke.
7091 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7093 * Control.cs: Perform layout when AutoSize changes.
7094 * Form.cs: Implement AutoSizing.
7096 2007-06-01 Chris Toshok <toshok@ximian.com>
7098 * DataGrid.cs: remove the XXX'ed check at the top of
7099 ProcessGridKey. fixes #80464.
7101 2007-06-01 Chris Toshok <toshok@ximian.com>
7103 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
7104 adding idempotent (add/remove in Edit()), and also make sure we
7105 don't add it until after we set the text, so it's not tripped in
7106 Edit(). Fixes unit test regression.
7108 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7110 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
7111 change is user explicit, not when the layout engine moves stuff. Fixes
7112 anchoring to bottom and right. [Fixes bug #81790]
7114 2007-06-01 Andreia Gaita <avidigal@novell.com>
7116 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
7118 2007-06-01 Andreia Gaita <avidigal@novell.com>
7120 * ContainerControl.cs:
7121 Fire enter event for common ancestor if it is not a ContainerControl.
7122 Send focus to the active_control and not the 'value', the active
7123 control might have been changed in one of the events fired.
7124 Definitely fixes #80159.
7126 2007-06-01 Andreia Gaita <avidigal@novell.com>
7128 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
7130 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7132 * PropertyGrid.cs: Anchor the help description to the bottom of the
7133 help panel and refactor SelectGridItem into a
7134 SelectGridItemInternal that can be set to null (and update it to
7135 clear the help texts when it is set to null). Set root item to null
7136 when there's no SelectedObject. Fixes #80438.
7137 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
7138 when we're recalculating after a resize (only).
7140 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7142 * ListView.cs: Implement 2.0 RedrawItems method.
7144 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7146 * ListControl.cs: Disconnect PositionChanged and ItemChanged
7147 handlers from previous data manager when DataSource is set to
7150 2007-05-31 Jackson Harper <jackson@ximian.com>
7152 * TextBoxBase.cs: These seem to be the correct values.
7154 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
7156 * FileDialog.cs: When close dialog with ok set filterindex using combobox
7157 value. Fixes #81784.
7159 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
7161 * Control.cs: Implement 2.0 scaling methods.
7163 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7165 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
7166 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
7169 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7171 * ProgressBar.cs: Implemented missing 2.0 members.
7173 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7175 * Control.cs: Corcompare issues.
7176 * MessageBox.cs: Implemented missing 2.0 functions.
7178 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7180 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
7181 Implemented more 2.0 members.
7183 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7185 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
7186 null (strange, but it seems to happen when running unit tests).
7188 2007-05-30 Andreia Gaita <avidigal@novell.com>
7190 * ContainerControl.cs: Set active_control even earlier, before
7191 firing any events, and undo it if validation returns false.
7193 2007-05-30 Andreia Gaita <avidigal@novell.com>
7195 * ContainerControl.cs: Raise Validation and Enter/Leave events
7196 even if there is no Form and set active_control earlier, just
7197 before firing Enter events (toshok's patches). Fixes #80647.
7199 2007-05-30 Jackson Harper <jackson@ximian.com>
7201 * TextControl.cs: Redid the pageup/pagedown a little to simplify
7202 things and fix bug #81311.
7204 2007-05-30 Jackson Harper <jackson@ximian.com>
7206 * X11Dnd.cs: Now that we have our own event loop, we need to
7207 cancel when we get a mouseup but it won't be accepted.
7209 2007-05-30 Chris Toshok <toshok@ximian.com>
7211 * DataGrid.cs (set_CurrentCell): guard against negative
7214 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
7215 array index syntax instead of looping over the property names.
7217 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
7218 and set IsInEditOrNavigateMode to false there.
7220 2007-05-30 Jackson Harper <jackson@ximian.com>
7222 * TreeView.cs: Make sure we don't get a bad visible order when
7223 setting to the top node. Fixes some misc crashing in
7226 2007-05-30 Andreia Gaita <avidigal@novell.com>
7228 * UserControl.cs: Add 2.0 AutoSizeMode
7230 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7232 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
7234 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7236 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
7237 lines. Fixes #80285.
7239 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7241 * DataGridColumnStyle.cs: Add char trimming column header text format.
7243 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7245 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
7248 2007-05-29 Jackson Harper <jackson@ximian.com>
7250 * TreeNode.cs: Fix off by one on calculating whether or not a node
7253 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
7255 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
7256 * ScrollableControl.cs: Force an UpdateDistances when we move the
7260 2007-05-29 Andreia Gaita <avidigal@novell.com>
7262 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
7263 update the page setup screen.
7265 2007-05-29 Andreia Gaita <avidigal@novell.com>
7267 * PageSetupDialog.cs: Fix landscape mode.
7269 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7271 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
7272 IconSizeHorizontalSpacing.
7274 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7276 * ListView.cs: The declaration of prev_tooltip_item should be inside
7277 a NET_2_0 conditional (avoid a warning).
7279 2007-05-28 Andreia Gaita <avidigal@novell.com>
7281 * PageSetupDialog.cs: Implement PrintPreview control to display
7282 the preview thumbnail. Change unit conversion to use
7283 PrinterUnitConvert methods.
7285 Note: there is a huge bug in ms.net where the default margins are
7286 interpreted as centimeters (?), when in fact they are set in inches. When
7287 loading the page setup dialog initially (ms.net), the default margins
7288 are set to 1 inch, and the dialog shows them with value 10, when in fact
7289 it should be 25 (properly converted). Our dialog doesn't have this bug.
7291 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
7293 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
7295 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7298 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
7301 2007-05-28 Andreia Gaita <avidigal@novell.com>
7303 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
7304 an IntPtr on csc (it builds fine on mcs, could it be a compiler
7305 bug?), convert the ptr to Int32 first.
7307 2007-05-28 Jackson Harper <jackson@ximian.com>
7309 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
7310 recieved, we will exit the dnd tracking loop.
7312 2007-05-28 Jackson Harper <jackson@ximian.com>
7314 * X11Dnd.cs: Keep tracking until the xdnd finished event is
7315 recieved. TODO: I should probably stick a timer on the dropped
7316 event, and finish the drag if the XDND Finished event never shows
7317 (because some apps don't seem to send it).
7319 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
7321 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
7324 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7326 * MonthCalendar.cs: Only mark the keypresses we actually handle as
7329 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7331 * MonthCalendar.cs: Set the size after initializing all the relevant
7332 variables. Fixes #81742.
7334 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7336 * KeyEventArgs.cs: Fix typo.
7338 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
7340 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
7341 to match MS. Fixed MinDate to only accept value less than or equal
7342 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
7343 Removed TODO's that are now verified by unit tests.
7345 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
7347 * TreeNodeCollection.cs: Minor corrections to exceptions to match
7350 2007-05-25 Jackson Harper <jackson@ximian.com>
7352 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
7353 it's own message loop.
7354 * XplatUIX11.cs: Remove some of the dnd hooks
7356 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
7358 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
7359 instead of MinimizedWindowSize.
7361 2007-05-25 Jackson Harper <jackson@ximian.com>
7363 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
7365 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7367 * KeyEventArgs.cs: Added SuppressKeyPress.
7368 * Control.cs: Added support for SuppressKeyPress.
7370 2007-05-24 Andreia Gaita <avidigal@novell.com>
7372 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
7373 problems with PieChart. suppress_validation should not be a counter,
7374 if there are several BeginInit calls, the first EndInit will
7375 activate validation. Fix exceptions thrown by set_Value.
7376 * UpDownBase.cs: ValidateText only if it's the user editing it.
7378 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7380 * ListControl.cs: FilterItemOnProperty should return the filtered
7381 item proeprty even if DataSource is null. The same applies for
7382 GetItemText. Fixes #80427.
7384 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7386 * Control.cs: If a control doesn't have a parent when it's Dock is
7387 set, but it has children, it needs to do a layout. Fixes some nested
7388 controls issues. [Fixes bug #81199]
7390 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7392 * ComboBox.cs: If there are few items in the drop down list, make it
7393 the exact size the items need, no bigger. Fixes #81612.
7395 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7397 * Application.cs: When we have captured the keyboard for a menu,
7398 check for mouse down events in case we need to close the menu.
7399 * Control.cs, Form.cs: Remove mouse down checks for menus.
7401 2007-05-24 Jackson Harper <jackson@ximian.com>
7403 * TextControl.cs: Handle tabs in non multiline mode a little
7406 2007-05-24 Jackson Harper <jackson@ximian.com>
7408 * TextControl.cs: We need to manually break apart tabbed text and
7409 move the tabs, since the system.drawing tabbing mechanism relies
7411 * TextBoxBase.cs: Move the caret properly when the user enters a
7414 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7416 * ContainerControl.cs: Don't check CanSelect before calling
7418 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
7419 release a KeyboardActive on click if it's not ours.
7421 2007-05-23 Andreia Gaita <avidigal@novell.com>
7423 * ColumnHeader.cs: Add TypeConverter
7425 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7427 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
7429 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7431 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
7433 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7435 * LinkLabel.cs: Implement public Padding property.
7437 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7439 * LinkLabel.cs: Implement public FlatStyle.
7441 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
7443 * Control.cs: Apply patch from George to call parent.PerformLayout
7444 when Visible is changed. [Fixes bugs #81118, 81718]
7446 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7448 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
7450 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7452 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
7454 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7456 * ContextMenu.cs: Implement Collapse.
7458 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7460 * ToolBarButton.cs: Implement Name.
7462 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7464 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7465 use current_item, it prevents some NRE. Fixes #81675.
7467 2007-05-22 Andreia Gaita <avidigal@novell.com>
7469 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7470 without updating the text.
7472 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7474 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7475 without calling DeleteObject. [Should fix bug #81709]
7477 2007-05-22 Jackson Harper <jackson@ximian.com>
7479 * RichTextBox.cs: Set the line endings correctly, when flushing
7482 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
7484 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7487 2007-05-22 Jackson Harper <jackson@ximian.com>
7489 * TreeView.cs: Setting top with a null node should set to the very
7492 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7494 * Form.cs: ShowDialog: destroy the handle when message loop is
7495 finished, matches MS behaviour. Refactor parts of WmClose into
7496 RaiseCloseEvents, that only raises events if they haven't already
7497 been raised. Fixes #81688 and #81521.
7498 * Application.cs: Don't call close on the form when exiting a modal
7499 loop, it will raise all the (Form)Closed/Closing events again if
7500 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7501 which doesn'r raise any events it they have been raised before.
7503 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7505 * Control.cs: Add OnPrint.
7506 * ToolStrip.cs: Add GetChildAtPoint.
7507 * ToolStripContainer.cs: Add OnRightToLeftChanged.
7508 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7510 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7512 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
7514 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7516 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7517 isn't visible anymore. Fixes #81651.
7519 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7521 * Control.cs: WmShowWindow: Update children's z-order after setting
7522 their parent. SetParent may show the window, thereby corrupting
7523 z-order, since the window will be shown on top.
7524 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7525 multiple (and redundant) WM_SHOWWINDOW messages.
7526 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7527 event has already been raised.
7528 * Form.cs: Change is_changing_visible_state to a counter, since
7529 SetVisibleCore can be called recursively. CreateHandle: when
7530 creating mdi children, send (De)Activated events.
7531 * MdiClient.cs: Update use of is_changing_visible_state.
7532 * Application.cs: OnThreadException: Surround exception handling with
7533 try/finally to ensure we always reset the error-handling state
7536 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7538 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7541 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7543 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7544 SmallIcon views, now that we have a standarized horizontal spacing.
7546 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7547 4, just like the other views (Match .Net).
7549 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
7551 * Control.cs: Delay calculating anchor distances until we actually layout.
7552 Always query the WM for the actual size and location it put us at instead of
7553 only when we send negative values.
7554 [Fixes bugs #81694, 81695]
7556 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7558 * Application.cs: Avoid a possible stack overflow when trying to exit
7561 2007-05-19 Marek Safar <marek.safar@gmail.com>
7563 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7566 2007-05-19 Andreia Gaita <avidigal@novell.com>
7568 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7569 * NumericUpDownAcceleration.cs,
7570 NumericUpDownAccelerationCollection.cs: Added 2.0
7573 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
7575 * RichTextBox.cs: Recalculate the document after the ScrollBars
7576 property is changed. Fixes bug #81681.
7578 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7580 * DataObject.cs: Implement 2.0 methods.
7582 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7584 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7585 in the center of the checkbox, not in the left-top corner.
7588 2007-05-18 Jackson Harper <jackson@ximian.com>
7590 * RichTextBox.cs: Recalculate the document after the scrollbars
7591 property is changed.
7592 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
7595 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7597 * CreateParams.cs: Make HasWindowManager marginally faster.
7598 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
7599 into Hwnd so that other drivers can use it as well.
7600 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
7601 the default location from Hwnd. Fixes MDI client windows always
7602 showing up at (0,0) in Windows (Win32 won't set the default
7603 location since the window styles aren't correct).
7605 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
7607 * TreeView.cs: Modified DoubleBuffered to just use the base
7610 2007-05-18 Jackson Harper <jackson@ximian.com>
7612 * TreeView.cs: Set the top node to the last child node when
7614 - When we get focus, if there is no selected node, use the top
7617 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7619 * KeysConverter.cs: Add CanConvertTo.
7620 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
7621 * LinkConverter.cs: Added.
7623 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7625 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
7626 it prevents error when file dont have write access. Fixes #81669 and #81667.
7628 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7630 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
7631 button text. Fixes #79640.
7633 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7635 * Control.cs: According to MSDN controls created in the designer theres
7636 keyboard accelerators visible by default. So included check for design
7637 in ShowKeyboardCuesInternal.
7639 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7641 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
7644 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7646 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
7647 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
7649 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7651 * Control.cs: Finish implementation of UI State using WmChangeUIState
7652 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
7653 in some controls to check for show_keyboard_cues to draw accell keys "_".
7655 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7657 * ListBox.cs: When calculating the horizontal scrollbar
7658 in single column mode, don't use values less than 0 for
7659 Maximum. Fixes #81474.
7661 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7663 * ListBox.cs: Throw the some missing exceptions in
7664 ListBox.ObjectCollection methods.
7666 2007-05-17 Jackson Harper <jackson@ximian.com>
7668 * TextBoxBase.cs: Recalculate the document when the word wrap
7669 value has changed. This fixes 81488.
7671 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7673 * Clipboard.cs: Implement missing GetText overload.
7675 2007-05-17 Chris Toshok <toshok@ximian.com>
7677 * Control.cs (CheckDataBindings): remove the binding_context arg
7680 * CurrencyManager.cs (OnItemChanged): fix this now that
7681 BindingManagerBase is fixed. also remove the comment telling where
7682 the fix should go. We set transfering_data to true/false around
7683 the call to PushData to keep UpdateIsBinding from being called.
7684 (ListChangedHandler): remove the extra OnMetaDataChanged call for
7685 PropertyDescriptorAdded in the 1.1 case. The extra call is
7686 actually generated by System.Data generating 2 metadata changed
7687 events of its own per column add. The fix should go there. Add a
7688 comment to that affect in our test's Assert.Ignore.
7690 * BindingManagerBase.cs: Rework PullData and PushData slightly.
7691 we keep a boolean flag (transfering_data) that keeps us from
7692 calling UpdateIsBinding multiple times if we re-enter either of
7695 * ControlBindingsCollection.cs (AddCore): remove the
7696 binding_context arg to binding.Check.
7698 * Binding.cs (IsBinding): don't check if we're binding here, just
7699 return our cached value. we update it in UpdateIsBinding.
7700 (Check): don't take the binding_context arg, we'll just use our
7701 control's. Also, for some reason MS doesn't use the data member
7702 field when getting the bindingmanager for this binding. it just
7703 uses the datasource. Make this method callable multiple times,
7704 and only do the is_null_desc stuff if manager.Position != -1 (so
7705 we don't get an exception accessing manager.Current).
7706 (UpdateIsBinding): move the code from IsBinding here.
7707 (PositionChangedHandler): call Check here to we can initialize
7708 things that require a non- -1 position.
7710 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7712 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
7715 2007-05-17 Andreia Gaita <avidigal@novell.com>
7717 * TabControl.cs: Add 2.0 methods and events, including
7718 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
7719 * TabPage.cs: Add 2.0 methods
7721 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7723 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
7724 keyboard_cues is properly handled by message method.
7726 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7728 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
7730 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7732 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
7734 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
7737 - WmUpdateUIState added to handle state changes, it make call to
7738 OnChangeUICues event.
7739 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
7742 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
7744 * ImageKeyConverter.cs: Added.
7745 * TreeViewImageKeyConverter.cs: Added.
7747 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7749 * ToolTips.cs: Update Text if SetToolTip is called for a control
7750 already showing the tooltip, as well as restarting its timer; show
7751 tooltip if we are inside the control bounds by the time of calling
7752 SetToolTip. Inside ShowTooltip remove the check to not show the
7753 tooltip again for the active control (it is allowed by .Net to
7754 show the tooltip on the same control multiple times).
7756 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7758 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7760 2007-05-16 Andreia Gaita <avidigal@novell.com>
7762 * ContainerControl.cs: only process tab key if there are no
7763 modifier keys present, otherwise the control does the
7764 tab processing, if it needs to. Fixes #81622
7765 * TabControl.cs: Fixes calculation for which tab to select on
7768 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7770 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7772 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
7774 * Control.cs: Make IsInputCharInternal to allow controls to
7775 override it and still match MS API.
7776 * TextBoxBase.cs: Override IsInputCharInternal and always
7780 2007-05-15 Jackson Harper <jackson@ximian.com>
7782 * TextBox.cs: Disable some of the menu options when using a
7785 2007-05-15 Jackson Harper <jackson@ximian.com>
7789 * RichTextBox.cs: Some new 2.0 methods
7791 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
7793 * FileDialog.cs: On 1.0 profile, do not support multidotted
7796 2007-05-14 Jackson Harper <jackson@ximian.com>
7798 * TextBoxBase.cs: Implement some of the new 2.0 methods.
7799 * RichTextBox.cs: We need to override these methods on 2.0.
7800 * MaskedTextBox.cs: These are implemented now
7801 * TextControl.cs: This was off by one.
7803 2007-05-14 Jackson Harper <jackson@ximian.com>
7805 * TextControl.cs: Because the line endings are including in the
7806 text, we don't need to add them in anymore.
7808 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7810 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
7811 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
7813 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7815 * ToolBar.cs: Adjust size to default size when button theres no text and
7816 image, it fixes remaining issues from #81524.
7818 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7821 - When not flat call redraw to recalculate sizes on creare handle to match
7823 - Revert 77220 because it causes some regressions in toobar
7826 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7828 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
7829 now actually enters a usable state.
7831 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7833 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
7834 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
7837 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7839 * ToolBar.cs: Save default_size on create handle to use later for buttons
7840 without text, needed to mimic win32 behavior.
7842 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7844 * ToolBar.cs: Fix button layour to best fit width or height according to
7845 vertical or not. Fixes #81524.
7847 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7849 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
7850 toolbar size info because different styles theres different sizes.
7853 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7855 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
7856 if we are using checkboxes, checked is true, and we have less
7857 than two images in StateImageList; for the 1.1 in the same scenario
7858 draw the first image if we have at least one image in StateImageList.
7859 Fixes part of #81191.
7861 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7863 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
7864 the owner's Items collection on merge.
7866 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7868 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
7869 * ToolStripItemCollection.cs: Lots of fixes to when events get called
7870 and parent/owner gets changed based on gert's unit tests.
7872 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7874 * MaskedTextBox.cs: Started implementing parts of it.
7876 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7878 * ListView.cs: When clicking the checkbox on the items
7879 take into account the double clicks even if we have only
7880 one image in StateImageList (only for 1.0/1.1). Also
7881 generate an extra change of checked state when we receive
7882 the second click on checkbox (match .Net behaviour).
7883 Fixes part of #81191.
7885 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7887 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
7889 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7891 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
7892 even if OnLoad is overriden and base.OnLoad is not called.
7895 2007-05-10 Andreia Gaita <avidigal@novell.com>
7897 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
7898 shame. (I blame my ever-persisting and annoying cold)
7900 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7902 * ListView.cs: Don't eat navigation keys. Let them flow through to
7903 KeyDown/KeyPress routines. [Fixes bug #81569]
7905 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7907 * ListView.cs: When handling keys for selecting the item based off
7908 keyboard input, do not consider keys pressed with Alt or Control. Also,
7909 correctly handle keys when the Shift key is down. [Fixes bug #81578]
7911 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7913 * Control.cs: When using UseWaitCursor, we have to store the requested
7914 Cursor to use when UseWaitCursor is turned off.
7916 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7918 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
7920 * Application.cs: Use PreProcessControlMessage instead of
7922 * PreProcessControlMessage.cs: Make internal for 1.1.
7924 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7926 * Control.cs: Add InternalContains focus property, which hast the same
7927 functionality of ContainsFocus, but also including implicit controls.
7928 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
7929 since we need to know if the focus is contained in our implicit
7930 ItemControl when calculating Layout. Fixes part of #80888.
7932 2007-05-08 Everaldo Canuto <everaldo@simios.org>
7934 * ToolTip.cs: Remove center form string alignment as it must be align to
7937 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
7939 * ToolStripItemCollection.cs: Set the new item's parent and owner
7940 in Insert like we do in Add. [Fixes bug #81568]
7942 2007-05-08 Jackson Harper <jackson@ximian.com>
7944 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
7945 - Off by one error in SetTop
7946 - Disable DoubeBuffering
7948 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7950 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
7951 control as much as necessary in order to make it entirely visible,
7952 instead of centering the control in the container (matches MS
7953 behaviour). CalculateCanvasSize: we need to take the current scroll
7954 position into account when calculating the maximum canvas,
7955 otherwise the following scenario will fail: resize so that the
7956 scrollbars appear, use the scrollbars to scroll, resize again
7957 smaller, and now the canvas size is too small. Recalculate: when
7958 showing scrollbars make sure they start off at 0, and try to scroll
7959 the active control into view. Fixes #79540. HandleScrollBar: don't
7960 scroll anywhere if the scrollbar isn't visible.
7962 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7964 * ListView.cs: When focus changed, call Layout/Invalidate
7965 in the focused item to update the selected state (should show
7966 entire label when ListView is focused, and a part of it if is not).
7967 * ListViewItem.cs: When doing layout for LargeIcon, take into account
7968 for displaying the entire label not only the Focused state of the
7969 item, but also the Focused state of the ListView (match .Net
7972 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7974 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
7975 Implement UseWaitCursor.
7977 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7978 Applying contributed patch from Sergey Volk.
7980 * Clipboard.cs: Implement SetDataObject retry logic and new overload
7982 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
7984 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7986 * Control.cs: Implement DrawToBitmap.
7988 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7989 Applying contributed patch from Stefan Noack.
7991 * Control.cs: Add [Get|Set]AutoSizeMode.
7993 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7995 * MdiClient.cs: Unmerge menus when the last child is closed.
7997 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7999 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
8000 * ToolStripManager.cs: Call Merge on DropDowns.
8003 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8005 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
8007 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
8008 visibility. We can't create forms visible, since we have to set the
8009 owner before making the form visible (otherwise Win32 will do
8010 strange things with task bar icons). The problem is that we set the
8011 internal is_visible to true before creating the control, so
8012 is_changing_visible_state is the only way of determining if we're
8013 in the process of creating the form due to setting Visible=true -
8014 this works because SetVisibleCore explicitly makes the form
8015 visibile afterwards anyways. Fixes #80775.
8017 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8019 * ThemeWin32Classic.cs: When drawing ListViewItems,
8020 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
8021 or LargeIcon _and_ item is not focused (match .Net behaviour).
8023 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8025 * Control.cs, Form.cs: Fix some obsolete method warnings.
8027 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8029 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
8030 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
8032 2007-05-04 Andreia Gaita <avidigal@novell.com>
8034 * ContainerControl.cs: Fix active_control attribution when going
8035 up the parent chain so that the first parent container gets the control
8036 and the rest of the parent containers get the child containers (skips
8037 non-containers). Fixes #80729
8039 2007-05-04 Randolph Chung <tausq@debian.org>
8041 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
8044 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8046 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
8047 takes a size parameter, since the CreateParam's size isn't true for
8048 minimized forms. Fixes #81518,
8050 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8052 * Form.cs: Add OnDeactivateInternal.
8053 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
8055 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8057 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
8058 accessing the parent. Fixes #81508.
8060 2007-05-03 Chris Toshok <toshok@ximian.com>
8062 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
8063 2.0 block, pass listposition + 1 to ChangeRecordState when a row
8064 was added before the current listposition. Fixes the
8065 TestInsertRowBeforeCurrent unit test.
8067 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
8069 * Application.cs: Add RaiseIdle.
8070 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8071 XplatUIX11.cs: Implement RaiseIdle.
8073 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
8074 corcompare work: N - Z
8078 * ScrollableControl.cs
8082 * SystemInformation.cs
8084 * TableLayoutControlCollection.cs
8085 * TableLayoutPanel.cs
8090 * ToolStripComboBox.cs
8091 * ToolStripContainer.cs
8092 * ToolStripContentPanel.cs
8093 * ToolStripDropDown.cs
8094 * ToolStripDropDownItem.cs
8095 * ToolStripDropDownMenu.cs
8097 * ToolStripItemCollection.cs
8098 * ToolStripMenuItem.cs
8100 * ToolStripSplitButton.cs
8103 * TreeNodeCollection.cs
8104 * TreeNodeMouseHoverEventArgs.cs
8107 2007-05-01 Everaldo Canuto <everaldo@simios.org>
8109 * ContextMenu.cs: Add public method Show with alignment property to 2.0
8110 stuff. Thanks aatdark for the patch.
8112 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8114 * GridItem.cs: Implement 2.0 Tag property.
8116 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
8118 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
8119 count instead of Nodes.Length. [Fixes bug #81448]
8121 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8123 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
8126 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8127 corcompare work: A - M
8128 * BindingNavigator.cs
8133 * FlowLayoutPanel.cs
8139 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8141 * Application.cs: Give toolstrips a chance to process mnemonics.
8142 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
8143 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
8144 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
8146 2007-05-01 Jackson Harper <jackson@ximian.com>
8148 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
8150 - Don't set the BoundsSpecified
8152 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8154 * Application.cs: When using the toolstrip shortcut mechanism, allow the
8155 message to pass through to a regular control if it hosted by a toolstrip.
8156 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8157 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
8159 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8161 * TextRenderer.cs: Use the flags argument when using the MeasureString
8164 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8166 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
8167 the MDI menu item. [Fixes bug #81483]
8169 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
8171 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
8172 string. When setting Name to null, use zero-length string instead.
8174 2007-04-29 Andreia Gaita <avidigal@novell.com>
8176 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
8177 DeselectTab). Implement missing 2.0 TabPageCollection methods
8178 (Add, ContainsKey, RemoveByKey, IndexOfKey)
8180 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
8182 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
8184 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
8186 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
8187 Fixes bug #81479. Include details of exception when LoadFile fails.
8189 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
8191 * DrawListViewSubItemEventArgs.cs: Added missing setter
8193 2007-04-27 Andreia Gaita <avidigal@novell.com>
8195 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
8196 Hide methods (not complete). Implement missing 2.0 OnPopup event.
8198 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8200 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
8201 removed in ly last commit (it was breaking the Label edit feature).
8203 * ThemeWin32Classic.cs: When drawing a ListViewItem use
8204 StringAlignment.Near for LineAlignment (match .Net).
8206 2007-04-27 Andreia Gaita <avidigal@novell.com>
8208 * TabControl.cs: Change SetTab so it adds the tabpage to the list
8209 of controls if it isn't already there - was blowing up when doing
8210 tabcontrol.TabPages[i]=new TabPage().
8211 SetTab now does a replace by removing the page at the index.
8212 Add a new InsertTab method that inserts a page in a given index
8213 instead of replacing.
8214 Implements TabPageCollection.Insert(int, TabPage).
8216 2007-04-27 Chris Toshok <toshok@ximian.com>
8218 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
8219 internal handler that can be invoked from our subclasses.) Also,
8220 add a comment to PushData about how we need to fix it.
8222 * CurrencyManager.cs: tons of changes here. trying to get things
8223 matching the behavior of .net wrt event orders (ItemChanged,
8224 CurrentChanged, PositionChanged.) I've implemented a private .net
8225 symbol (ChangeRecordState) that appears in stack traces because
8226 it's actually easier to do this than to effective inline all its
8227 various behaviors at every call site.
8229 * RelatedPropertyManager.cs: guard against an exception here by
8230 not using parent.Current if the position is set to -1 (if the
8231 parent datasource is cleared, for instance).
8233 * Binding.cs: don't parse data in PushData (this might be wrong,
8234 but it jives with MS's behavior.) Also, don't call PushData when
8235 we get a CurrentChanged event.
8237 2007-04-27 Andreia Gaita <avidigal@novell.com>
8241 WebBrowserSiteBase.cs,
8242 HtmlDocument.cs: Added stubbed out classes, no real implementations
8245 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8247 * MainMenu.cs: In draw method without parameters call draw method with
8248 PaintEvent, another one (just rect) adjust rectangle and we dont need it
8249 as Rect property is already adjusted. Fixes #80694.
8251 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
8253 * Application.cs: Need to handle keyboard menu deselection here.
8254 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
8255 navigation, allowing keyboard to work on X11.
8256 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
8258 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8260 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
8261 menu bar. It fixes some drawing issues in menu bar.
8263 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8265 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
8266 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
8267 when <alt> key is pressed.
8269 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8271 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
8272 example just set visible to false and make this prevent from other problems.
8273 In SystrayAdd always remove pending expose. Fixes #81072.
8275 2007-04-26 Marek Safar <marek.safar@gmail.com>
8277 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
8280 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8282 * ListView.cs: Added three missing 2.0 events and corresponding
8283 EventHandlers. Added the OwnerDraw property.
8284 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
8286 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8288 * DrawListViewItemEventArgs.cs
8289 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
8291 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8293 * TextControl.cs: Fixed typo in constructor
8295 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
8297 * Application.cs: Create a shortcut path so that currently selected
8298 MenuStrips can intercept keyboard events without having focus.
8299 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
8300 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
8301 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
8302 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
8303 generate WM_SYSCOMMAND message in X11 for other platforms.
8304 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
8305 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
8306 * ToolStripSplitButton.cs: Add DefaultItem property.
8308 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8310 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
8311 fixes some menu draw problem on Windows with border diferent from default
8312 it also fixes #81403.
8314 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8316 * Form.cs: Refactor WndProc into separate methods, just like Control is
8319 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8321 * Control.cs: set_Text: move the call to the driver into a seperate
8322 virtual method so that Form can override it.
8323 * MaskedTextBox.cs: Corcompare fixes.
8324 * Form.cs: Override UpdateWindowText and only update the styles if the
8325 form has been shown (fixes #81405).
8327 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8329 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
8330 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
8331 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
8332 the form lost focus or another control was clicked.
8334 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
8336 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
8339 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8341 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
8342 DrawListViewItemEventHandler.cs,
8343 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
8345 * X11Structs.cs: More ToString implementation.
8347 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8349 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
8350 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
8352 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8354 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
8356 * FormCollection.cs: Don't add a form if it's already in the
8358 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
8359 according to behaviour and MSDN. The ownerWin32 is the active
8360 window at the moment when we call ShowDialog, not the context's
8361 main form (the context's main form may open another form that opens
8362 a form with ShowDialog, the win32 owner is the second form). Add
8363 and remove forms to the Application.OpenForms in other places to
8364 better match MS behaviour. Add an IsActive property that raises
8365 On(de)Activated only if the active state has changed (we were
8366 raising OnDeactivated before OnActivated while creating forms).
8367 * Application.cs: Refactor Enabling/Disabling of windows for modal
8368 dialog loops out to separate methods, and restore the thread
8369 context when we quit the method. Fixes #81407.
8371 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8373 * ListView.cs: In ItemControl.HandleClicks, also fire
8374 2.0 MouseClick or MouseDoubleClick events on the parent,
8375 not only the Click/DoubleClick events.
8377 2007-04-24 Andreia Gaita <avidigal@novell.com>
8379 * TableLayoutSettings.cs:
8380 - Added a GetControls method and a support structure to help the
8381 TypeConverter to enumerate the controls for serialization.
8382 - Added a new serialization constructor.
8383 - Added a isSerialized flag initialized to true on the
8384 serialization constructor so that the TableLayoutPanel.LayoutSettings
8385 setter does not throw the designed NotSupportedOperation exception
8386 when the object is built through deserialization.
8387 - Implemented GetObjectData
8389 * TableLayoutPanel.cs: Added check on LayoutSettings.
8391 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8393 * ListView.cs: Report Click and DoubleClick events to the parent
8394 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
8395 from breaking the click count state when using dialog forms (Control
8396 reports the clicks in a similar fashion). In the previous behaviour
8397 the last WM_LBUTTONUP message in a double click was sent to the
8398 ListView's form, instead of the ListView, which was breaking the click
8399 count for it. Fixes #80387.
8401 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8403 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
8405 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8407 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
8408 us from created dropdowns for menu items that do not have subitems.
8409 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
8410 Check HasDropDownItems before calling DropDown so a dropdown will not be
8411 created if it isn't needed.
8413 2007-04-24 Jackson Harper <jackson@ximian.com>
8415 * TreeView.cs: Set the first node to the selected node when we get
8416 focus if there is no selected node.
8418 2007-04-24 Andreia Gaita <avidigal@novell.com>
8420 * MimeIcon.cs: remove using blocks so that image streams are
8421 not disposed of. Fixes #80151
8423 2007-04-24 Jackson Harper <jackson@ximian.com>
8425 * TextBoxBase.cs: Fixup the height of textboxes when the control
8428 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8430 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
8431 for each ToolStripItem when the parent's RightToLeftChanged is called.
8433 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8435 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
8437 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
8438 property, so that the setter can be overriden too.
8439 * TextBox.cs: Change GetContextMenuInternal() to use
8440 ContextMenuInternal.
8442 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8444 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8447 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8449 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8452 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8454 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
8455 avoid duplicate work. Mostily skeleton code, it's not working at
8458 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
8460 * NotifyIcon.cs : stub for MouseClick event
8461 * Application.cs: stub for SetUnhandledExceptionMode
8463 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8465 * BindingNavigator.cs : Initial (partial) implementation
8467 2007-04-23 Jackson Harper <jackson@ximian.com>
8469 * TreeView.cs: Do not create the treeview's handle when setting
8470 the scroll position.
8471 - ExpandAll needs to compute the scrollbars so it knows which
8472 position to set the bar too.
8474 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8476 2007-04-23 Jackson Harper <jackson@ximian.com>
8478 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8481 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
8483 * ToolStripItem.cs: Make GetImageSize internal.
8484 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8485 need to draw an item. Fixes a reported issue where images on menus
8486 that were not 16x16 were drawing incorrectly.
8488 2007-04-21 Miguel de Icaza <miguel@novell.com>
8490 * Padding.cs: Use the converter, fixes the resgen2 issue with
8493 2007-04-21 Jackson Harper <jackson@ximian.com>
8495 * TreeView.cs: Dont try to unhighlight the selected node if there
8496 isn't a selected node.
8498 2007-04-21 Jackson Harper <jackson@ximian.com>
8504 * TreeView.cs: Use the InternalBorderStyle property to set the
8505 initial border style, this forces the client rectangle to be sized
8508 2007-04-20 Jackson Harper <jackson@ximian.com>
8510 * TreeView.cs: Simplify scrolling to the last node after expanding
8512 - Fix some off by ones with setting the bottom.
8514 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8516 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8517 that. We were incorrectly doing it the other way around. Also,
8518 update ClientSize if we change the BorderStyle before the control
8521 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8523 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8524 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8525 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8526 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8527 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8528 Caption to CaptionHeight.
8529 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8530 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8531 and FixedFrameBorderSize to return value from current XplatUI driver.
8532 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8533 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8534 and FixedFrameBorderSize using win32 API. Renamed Caption to
8536 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8537 * SystemInformation.cs: Fixed typo in BorderSize.
8539 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8541 * XplatUI.cs: Added MenuAccessKeysUnderlined.
8542 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8543 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8545 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8546 value from XplatUI driver.
8547 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8548 SystemParametersInfo.
8549 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8551 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8554 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8556 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8558 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8560 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8562 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8564 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8565 MenuStrips that contain ToolStripSeparators.
8567 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8569 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8570 DefineStdCursorBitmap.
8571 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8572 has been created off a standard cursor. This is used to get a
8573 bitmap of the standard cursor when Draw or DrawStretched is called
8574 in order to draw the cursor.
8575 * X11Structs.cs: Added XcursorImage and XcursorImages.
8576 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8577 DefineStdCursorBitmap.
8578 * Cursors.cs: Update all relevant creations of Cursor to use the new
8579 internal constructor.
8581 2007-04-19 Jackson Harper <jackson@ximian.com>
8583 * TextBox.cs: Move the has_been_focused into the base control, so
8584 some of the text adding methods can manipulate it (probably time
8585 for a better name for this flag too).
8586 - Call a new version of selectall that doesn't scroll
8587 * TextBoxBase.cs: When we append text, if the document is empty,
8588 don't scroll. If the document has text already, we scroll to the
8589 end of the appended text.
8590 - When the text is changed, we reset the has_been_focused, so the
8591 next time the control gets focused, all the text is selected.
8593 2007-04-19 Jackson Harper <jackson@ximian.com>
8595 * TextControl.cs: Move the margins to the document, add a method
8596 so the margin sizes can be updated.
8597 * TextBoxBase.cs: When the border style is changed, update the
8600 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
8602 * Control.cs: Respect DefaultPadding.
8603 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
8604 padding into account.
8605 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
8607 2007-04-19 Jackson Harper <jackson@ximian.com>
8609 * TextControl.cs: Oops, we need to use the ClientRect not the
8612 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8614 * ListView.cs: In ItemControl.ItemsMouseDown, take into
8615 account the double clicks when CheckBoxes are used and
8616 the pointer is inside the checkbox. Fixes part of #81191.
8618 2007-04-18 Jackson Harper <jackson@ximian.com>
8620 * TextControl.cs: Pressing the end key shouldn't move the caret
8621 past the line ending.
8622 * TextBoxBase.cs: We can still delete if we are in the line
8623 ending and the combine will just kill the existing line ending.
8625 2007-04-18 Jackson Harper <jackson@ximian.com>
8627 * TextControl.cs: We can't move lines, then invalidate their
8628 bounds, we need to get the old bounds and combine that with the
8630 * TextBoxBase.cs: Before combining two lines for a delete, we need
8631 to invalidate the area of the old line, since that will be moved
8632 in the combine operation.
8634 2007-04-18 Everaldo Canuto <everaldo@simios.org>
8636 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
8637 with transparent background. Fixes #80482.
8639 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
8641 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
8642 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
8645 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8647 * CreateParams.cs: Add a couple of helper methods and do a less string
8648 concatenation in ToString.
8649 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
8650 overload that takes a Control parameter, since this method may be
8651 called before a control is assigned to the hwnd (from
8652 CreateWindow), and update CreateWindow to use the new overload. In
8653 GetMenuOrigin subtract the title bar from the y position if the
8654 form has a window manager (since we're painting it and not X).
8655 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
8656 CreateParams to calculate the origin (since border sizes may vary).
8657 In ScreenToMenu only subtract the title height if we actually have
8659 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
8660 mdi children never have menus of themselves.
8661 * InternalWindowManager.cs: Implement menu handling like form does.
8662 Added GetMenuOrigin to calculate the menu origin, can't use the
8663 CreateParams from the form like normally since it's lying.
8664 * Hwnd.cs: Implement GetBorderSize better (in the sense more
8665 windows-like) and add Inflate and comparison operators to the
8666 Borders type. When calculating MenuOrigin and it's a form with a
8667 window manager, use the window manager to calculate it.
8669 2007-04-17 Chris Toshok <toshok@ximian.com>
8671 * Control.cs (CreateControl): turns out in 2.0 we don't need this
8672 OnBindingContextChanged thing here. It's only generated from
8673 ContainerControl.OnCreateControl. Fixes a newly written unit test
8674 - BindingTest.BindingContextChangedTest4.
8676 2007-04-17 Jackson Harper <jackson@ximian.com>
8678 * ScrollBar.cs: When setting values, make sure the current
8679 position stays within the new values range.
8681 2007-04-17 Chris Toshok <toshok@ximian.com>
8683 * Control.cs (CreateControl): talk about a bizarre corner case.
8684 Don't emit OnBindingContextChanged here if we're a parentless
8685 control (i.e. if we're a form.). Fixes
8686 BindingTest.BindingContextChangedTest2.
8688 2007-04-17 Everaldo Canuto <everaldo@simios.org>
8690 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
8691 from win32. Fixes #81255.
8693 2007-04-17 Everaldo Canuto <everaldo@simios.org>
8695 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
8696 already present in CalculateButtonTextAndImageLayout.
8698 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8700 * XplatUIX11.cs: When setting min/max size for a window we need to
8701 translate the coordinates to x coordinates. Create an overload of
8702 SetWindowMinMax that takes a CreateParams handling this, and change
8703 SetWMStyles to call this function (can't use Control.FromHandle in
8704 the SetWindowMinMax to get the control/CreateParams from the handle
8705 because the handle might not have been assigned to the control
8708 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8710 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
8711 if StateImageList is non-null and it has less than two items (match MS
8712 behaviour). Also, in HandleNavKeys handle the Space key, calling
8713 the new ToggleItemsCheckState method, which tries to change the
8714 checked state of the selected items. Fixes part of #81191.
8716 2007-04-16 Jackson Harper <jackson@ximian.com>
8718 * RichTextBox.cs: namespace cleanup.
8720 2007-04-16 Everaldo Canuto <everaldo@simios.org>
8722 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
8724 2007-04-16 Everaldo Canuto <everaldo@simios.org>
8727 * Control.cs: Call invalidate in set_Region.
8729 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
8732 2007-04-16 Jackson Harper <jackson@ximian.com>
8734 * TextBoxBase.cs: When enter is pressed, we need to update all
8735 lines below the current.
8737 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
8739 * MdiClient.cs: Implement implicit menu merging for MDI
8740 children. When a child form is active, if it has a menustrip
8741 and the parent form has a MainMenuStrip, automatically merge
8744 2007-04-15 Andreia Gaita <avidigal@novell.com>
8746 * TabControl.cs: Refactored sizing methods to not repeat
8747 code all over the place. Tab bounds are now calculated
8748 as if alignment is top and single line, and only when
8749 setting the bounds are the positions adjusted according
8750 to alignment. Replaced hardcoded positions, spacings and
8751 paddings by getting the values the ThemeEngine.
8754 * Theme.cs: Change TabControl properties and methods so
8755 that all start with TabControl*. Added more properties
8756 to help remove hardcoded values on tabcontrol.
8757 Add CPDrawBorder3D declaration so the Theming classes
8760 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
8762 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
8763 on the Theming namespace, and call the appropriate methods here.
8764 Change CPDrawBorder3D to public.
8766 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8768 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
8769 the control after firing the OnMouseUp event, instead of sending
8770 the message before the mentioned event. This is so we can match the
8771 MS behaviour. Fixes part of #80385.
8773 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
8775 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
8776 RightToLeft property.
8778 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
8780 * ToolStrip.cs: Add properties and internal methods to support merging.
8781 * ToolStripItem.cs: Add MergeAction and MergeIndex.
8782 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
8783 not trigger reparenting or layouts.
8784 * ToolStripManager.cs: Add Merge and RevertMerge methods.
8785 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
8786 is hosting the overflow menu.
8788 2007-04-13 Jackson Harper <jackson@ximian.com>
8790 * TextControl.cs: Set the line ending correctly for the first
8793 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
8795 * Theme.cs: Update GetMethod to get the new definition for
8796 KnownColors.Update (and fix theme color updates).
8798 2007-04-12 Everaldo Canuto <everaldo@simios.org>
8800 * MessageBox.cs: Fix some test and button position.
8802 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8804 * Form.cs: Consider the implicit controls in
8805 GetRealChildAtPoint. We need it since this method
8806 is called on Form when handling the some messages in
8807 WndProc, and need to consider those implicit ones too.
8810 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
8812 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
8813 if there are no ShortcutKeys set.
8814 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
8815 set, use it when painting.
8817 2007-04-12 Jackson Harper <jackson@ximian.com>
8819 * TextControl.cs: Fix some off-by-one issues in line duplication
8820 and insertion in the undo manager. Also, overwrite the first tag
8821 of a line on insert, if it is just a zero lengthed tag. This
8822 prevents us from getting an extra stranded tag at the beginning of
8825 2007-04-11 Everaldo Canuto <everaldo@simios.org>
8827 * Label.cs: Remove check for handle created in CalcAutoSize, we need
8828 to calculated proper size including when handle was not created yet.
8830 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8832 * MdiWindowManager.cs: When moving a form, allow the form to be moved
8833 when the mouse is outside of it's parent's client rectangle. Fixes
8834 #79982 (take 3, part 2).
8836 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8838 * X11Structs.cs: Add a few ToString() overrides.
8839 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
8840 the window location in a window-manager independent way. Reworked
8841 FrameExtents, it now actually works. Reworked AddConfigureNotify
8842 and ReparentNotify handling to use GetTopLevelWindowLocation
8843 instead of the earlier, more hacky solution. Reworked SetWMStyles,
8844 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
8845 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
8846 for all other windows (fixes #81281 part 1), a toolwindow is hidden
8847 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
8848 and generally refactored to do as few calculations as possible
8851 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
8853 * Theme.cs: Change "reflective-contract" between MWF and SD to
8854 minimize # of calls, avoid Color serialization and avoid updating
8855 every "known colors" each time a single one is updated.
8857 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8859 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
8860 when not readonly and the text is explicitly set. Code style updates.
8861 * DataGridTableStyle.cs: Removed extra line.
8862 * DataGrid.cs: Code style updates. Removed extra whitespace.
8863 * DataGridColumnStyle.cs: Code style updates. Removed extra
8866 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8868 * XplatUIX11.cs: Added comment that "fixes" #80021.
8870 2007-04-09 Jackson Harper <jackson@ximian.com>
8872 * TextControl.cs: We don't need this -1 on the line count anymore.
8874 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8876 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
8877 entered value to underlying type, and convert it back to a string to
8878 apply formatting. Modified GetFormattedValue to use TypeConverter
8881 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
8883 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
8884 Use SubItems property when we want to ensure there's at least one
8885 subitem. Modified SubItems property to ensure there's always at least
8886 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
8887 the NRE's reported by MS.
8889 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
8891 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
8892 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
8893 Spaces to tabs. Removed extra tabs.
8895 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
8897 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8898 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
8900 2007-04-06 Jackson Harper <jackson@ximian.com>
8902 * TextBoxBase.cs: When a delete removes a line, recalculate all
8903 lines below that line (they need to get offsets setup correctly)
8906 2007-04-05 Jackson Harper <jackson@ximian.com>
8908 * TextControl.cs: We need to invalidate across the width of the
8909 document when we are invalidating multiple lines.
8910 * TextBoxBase.cs: Don't delete into the line ending.
8912 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8914 * ListView.cs: Restore the check for the MouseHover event
8915 in ListView. It looks like the ListView fires more than one MouseHover
8916 event when HoverSelection is true _only_ in weird-corner scenarios, but
8917 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
8920 2007-04-05 Mike Kestner <mkestner@novell.com>
8922 * ListView.cs : raise MouseDown before updating selection.
8923 [Fixes #80373 tab 1&3]
8925 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8927 * ToolStripRenderer.cs: Add static method to mirror image.
8928 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
8929 and RightToLeftAutoMirrorImage.
8930 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
8932 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8934 * ToolStripSplitStackLayout.cs: Support Alignment property.
8935 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
8937 2007-04-05 Jackson Harper <jackson@ximian.com>
8939 * TextControl.cs: Move around the line endings when crossing line
8941 - When combining lines, strip the ending text off the first line.
8943 2007-04-05 Jackson Harper <jackson@ximian.com>
8946 * TextBoxBase.cs: Try to never move the cursor into the line
8949 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8951 * ToolStripItem.cs: Make sure we aren't firing mouse events when
8952 the item is disabled. Also add a few missing methods.
8954 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8956 * ListView.cs: We don't need the MouseEnter/MouseLeave check
8957 to fire just one MouseHover event when HoverSelection is true, since
8958 .Net does fire more than one MouseHover event in that scenario. Also,
8959 fix the selection in HoverSelection, by invoking UpdateMultiSelect
8960 if MultiSelect is true, instead of only setting ListViewItem.Selected.
8961 Finally, we need to reset the Hover logic in MouseMove, even when we
8962 don't have a selected item.
8964 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8966 * ToolStrip.cs: Add several missing methods, properties, and events.
8968 2007-04-04 Chris Toshok <toshok@ximian.com>
8970 * DataGridTextBoxColumn.cs: set the bounds of the text box to
8971 (0,0,0,0) in Commit, as MS does.
8973 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
8974 make sure we set CurrentRow on a row header click *before* calling
8975 Select. This moves the current cell (and the textbox) to the new
8976 row. The call to Select then hides the textbox, giving us the
8977 correct behavior. Fixes #80362.
8979 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
8980 (ListChangedHandler): reorder the position/current changed events,
8981 and call UpdateIsBinding in the ItemAdded case.
8983 * GridColumnStylesCollection.cs: add some columns events, one of
8984 which raises the CollectionChanged event.
8986 2007-04-04 Jackson Harper <jackson@ximian.com>
8988 * TextControl.cs: When we delete multiple selection lines
8989 invalidate the selection area, don't need to do that for single
8990 lines because the final update view will handle it.
8992 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8994 * Control.cs: When we CreateControl, we need to also create all of the
8995 control's children. The child's OnLoad must also fire before the parent's
8996 OnLoad. Fixes the toolbox size in PDN.
8998 2007-04-04 Jackson Harper <jackson@ximian.com>
9000 * TextBoxBase.cs: When the user presses enter, insert a line
9001 ending into the text. (Maybe this would be a good spot for
9002 Environment.NewLine).
9003 * TextControl.cs: Remove undo manager hack, line endings get
9004 inserted properly now.
9006 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9009 - Remove unneeded parameters in UpdateCursor.
9010 - Fix UpdateCursor to check if menu is active.
9011 - Call UpdateCursor when menu deactivate my click.
9012 [Fixes remaining issues from #80410]
9014 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9016 * Control.cs: GetRealChildAtPoint method added, it make an
9017 recursive child control search for the point.
9019 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
9022 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
9024 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9026 * Form.cs: Fix mouse position when send back mouse event after closes
9029 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9031 * Form.cs: Simplify the BUTTONDOWN for active tracker.
9033 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9035 * Control.cs: Fix an issue where if a user resized a control inside
9036 a sizing method like OnResize, we would overwrite their explicit
9037 value. Also, only call DefaultSize once in the constructor instead
9038 of 4 times. Also, do not call SetBoundsCore from SetBounds if
9039 nothing actually changed.
9041 2007-04-03 Jackson Harper <jackson@ximian.com>
9043 * TextControl.cs: Don't attempt to copy text for lines with no
9044 text in them (technically this shouldn't happen, but we aren't
9045 always inserting line endings when we should be).
9047 2007-04-03 Jackson Harper <jackson@ximian.com>
9049 * TextBoxBase.cs: Calculate the scrollbars before calculating the
9050 document, because this sets some of the document size properties
9053 2007-04-03 Jackson Harper <jackson@ximian.com>
9055 * TextBoxBase.cs: We need to calculate maximums even if this is
9056 not a multiline control, because the maxs are used for scrolling.
9057 - Display the caret after doing a page up/down, we need to
9058 manually display it because a proper CaretMoved event isn't
9059 triggered (this is because of the way the math is done to
9060 determine how far to scroll).
9062 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9064 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
9065 (ToolBar was relying on SetBoundsCore to default the values sent
9066 base off of BoundsSpecified.)
9068 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9070 * DateTimePicker.cs: Change Text so that when a null value or empty
9071 string is assigned to the test we always raise ValueChanged and
9072 TextChanged (earlier implementation would only raise ValueChanged
9073 if the current date value was different from DateTime.Now).
9075 2007-04-03 Andreia Gaita <avidigal@novell.com>
9077 * ButtonBase: Call update after invalidation, fixes #80194
9079 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9081 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
9084 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9086 * XplatUIX11.cs: SetWMStyles: If the control is a form with
9087 FormBorderStyle = None, don't give the window any decorations.
9090 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9092 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9093 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
9094 to check for is a mix of several styles (such as WS_CAPTION for
9096 * Control.cs: Don't paint an area bigger than the client area when
9097 painting the background colour. Add an internal GetCreateParams.
9098 Update calls to XplatUI.CalculateWindowRect due to API change.
9099 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
9100 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
9101 the size if it hasn't been handled by any windows. When creating
9102 and moving windows, X wants the location of the entire window, but
9103 the size of the client window, so add
9104 TranslateClientRectangleToXClientRectangle,
9105 TranslateWindowSizeToXWindowSIze and
9106 TranslatedXWindowSizeToWindowSize to cope with this, and call them
9107 before every window creation and move. Update CalculateWIndowRect
9108 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
9109 In AddConfigureNotify don't do anything if the hwnd is a zombie
9110 (fixes the BadWindow we were getting while running the tests),
9111 always calculate the offsets when it's a parentless window, not
9112 only when reparented, and translate the window size, since we're
9113 getting the client size of the whole window, excluding entire
9115 * Theme.cs: Added BorderSizableSize.
9116 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9117 anymore. Update calls to XplatUI.CalculateWindowRect due to API
9119 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
9120 change. Fake the window styles here instead of in XplatUIWin32 so
9121 that all back-ends get the same window styles (and it's Form that's
9122 deciding when to use wm, not the Win32 backend anyways)
9123 * Hwnd.cs: Completely reworked GetWindowRectangle and
9124 GetClientRectangle - they are now passed a CreateParams and they
9125 only use Style and ExStyle to determine the rectangles (they should
9126 now work just like Win32AdjustWindowRectEx - though quite a few
9127 special cases are probably missing). They should also be 100%
9128 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
9129 == rect), and all numbers (borders, menu sizes) are taken from the
9130 current theme. Added a GetBorders helper function that will return
9131 the borders for any given CreateParams (including captions and
9132 menus), and GetBorderSize that returns the given border size only.
9133 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9134 Hwnd.GetClientRectangle.
9136 2007-04-02 Chris Toshok <toshok@ximian.com>
9138 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
9139 logic between the values we present to the user and the values
9140 which are stored in the column's property. Also, don't call
9141 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
9143 2007-04-02 Jackson Harper <jackson@ximian.com>
9145 * TextBoxBase.cs: Scroll faster!
9147 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9149 * StatusStrip.cs: Layout fixes for PDN.
9150 * ToolStrip.cs: Set item's available to true, and placement to main when
9152 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
9153 changing in setter before doing any work, add InternalVisible.
9154 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
9155 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9158 2007-04-02 Jackson Harper <jackson@ximian.com>
9160 * TextBox.cs: LBUTTON does not make the textbox select all of it's
9163 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9165 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
9166 Makes ToolStripComboBoxes show up again.
9168 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9170 * ListView.cs: Add a hover_pending field in ListView
9171 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
9172 cycle (we are resetting the MouseHover logic in XplatUI
9173 to handle HoverSelection). Fixes #80429.
9175 2007-04-02 Jackson Harper <jackson@ximian.com>
9177 * TextControl.cs: Make sure the attributes get set on the last
9179 - Still have to do the end tag if we have stepped all the ways to
9182 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
9184 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
9185 on an internal libgdiplus call when the information is already
9186 available via the public API.
9188 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9190 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
9191 control is removed from a control collecftion.
9192 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
9193 Fixes FormPropertyTest (failed on rare occasions).
9194 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
9195 of Win32SetParent (when changing from no parent to a parent it
9196 might add the new parent's location in screen coordinates to this
9198 * Form.cs: Rework ChangingParent once again, now the handle is
9199 recreated whenever a FormWindowManager is added or removed (that is
9200 whenever a normal form is parented or abandoned). Also change
9201 CreateParams so that all non-toplevel windows always get the
9202 specified sice (StartupPosition is never considered for
9203 non-TopLevel forms).
9204 * ContainerControl.cs: Add ChildControlRemoved, the container control
9205 needs to be notified when a control is removed from it's
9206 collection, in the case the removed control is the active control.
9208 2007-04-02 Jackson Harper <jackson@ximian.com>
9210 * RichTextBox.cs: Use the new methods for setting the font and
9211 color, these methods set the specified attribute without
9212 overriding the other attributes.
9214 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9216 * ToolStripPanel.cs: Fixes for better layouts in PDN.
9218 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
9220 * TextBox.cs: Added internal ChangeBackColor method to special-case
9221 Color.Empty. Added check for invalid ScrollBars value.
9222 * TextBoxBase.cs: Added internal ChangeBackColor method.
9223 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
9224 internal ChangeBackColor method to special-case Color.Empty. Added
9225 check for invalid ScrollBars value.
9227 2007-03-30 Everaldo Canuto <everaldo@simios.org>
9229 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
9231 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9233 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
9234 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
9235 [Based on submitted patch from Olivier Duff.]
9237 2007-03-30 Jackson Harper <jackson@ximian.com>
9239 * TextBox.cs: Only select all on initial focus if the user has not
9240 specified a selection area.
9242 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9244 * UserControl.cs: Override CreateParams.
9246 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9250 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9251 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
9252 check for is a mix of several styles (such as WS_CAPTION for instance).
9253 * Control.cs: Don't paint an area bigger than the client area when painting
9254 the background colour. Add an internal GetCreateParams. Update calls to
9255 XplatUI.CalculateWindowRect due to API change.
9256 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
9257 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
9258 hasn't been handled by any windows. When creating and moving windows, X
9259 wants the location of the entire window, but the size of the client
9260 window, so add TranslateClientRectangleToXClientRectangle,
9261 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
9262 to cope with this, and call them before every window creation and move.
9263 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
9264 removing DeriveStyles). In AddConfigureNotify don't do anything if the
9265 hwnd is a zombie (fixes the BadWindow we were getting while running the
9266 tests), always calculate the offsets when it's a parentless window, not
9267 only when reparented, and translate the window size, since we're getting
9268 the client size of the whole window, excluding entire window.
9269 * Theme.cs: Added BorderSizableSize.
9270 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9271 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
9272 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
9273 Fake the window styles here instead of in XplatUIWin32 so that all
9274 back-ends get the same window styles (and it's Form that's deciding when
9275 to use wm, not the Win32 backend anyways)
9276 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
9277 they are now passed a CreateParams and they only use Style and ExStyle
9278 to determine the rectangles (they should now work just like
9279 Win32AdjustWindowRectEx - though quite a few special cases are probably
9280 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
9281 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
9282 sizes) are taken from the current theme. Added a GetBorders helper
9283 function that will return the borders for any given CreateParams
9284 (including captions and menus), and GetBorderSize that returns the given
9286 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9287 Hwnd.GetClientRectangle.
9289 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9291 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
9292 layout of the mdi children is handled by CreateParams. Fixes
9295 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9297 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
9300 * Form.cs: When active tracker mouse down is not processed, send event
9301 back to control inside mouse position. [Fixes #81227]
9303 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9305 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
9306 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
9307 stealing focus from the active form on Windows. (Control will be made
9308 visible in ShowWindow.)
9310 2007-03-29 Mike Kestner <mkestner@novell.com>
9312 * ImageList.cs : add internal Changed event.
9313 * ListView.cs : hook up to StateImageList.Changed to perform
9314 invalidations when the the state icon list changes. [Fixes #81191]
9316 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9318 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
9319 to prevent tooltips from stealing focus from the active form on Windows.
9321 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9323 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
9325 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
9327 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9329 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
9332 2007-03-29 Jackson Harper <jackson@ximian.com>
9334 * TextControl.cs: When deleting text from non multiline textboxes,
9335 we need to update the entire document, because line offsets will
9338 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9340 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
9341 added to theme, now we can create themes that uses diferent notify engines
9342 like notification-daemon from galago project or growl for Mac OS.
9344 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9346 * NotifyIcon.cs: Prevent Balloon to show in task bar.
9348 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9350 * XplatUIX11.cs: Prevent system to open more than one balloon.
9352 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
9353 some compiler warning messages.
9355 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9359 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
9361 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
9362 implemented, this methods is used by NotifyIcon.BalloonWindow class.
9364 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
9367 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9369 * ListViewItem.cs: Forgot to make Invalidate internal.
9371 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9373 * ListView.cs: Add a InvalidateSelection method to
9374 invalidate methods which are currently selected, and call
9375 it when setting FullRowSelect and HideSelection, instead of
9378 2007-03-28 Chris Toshok <toshok@ximian.com>
9380 * XplatUIX11.cs (UnmapWindow): reindent this block.
9382 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
9383 the selection_start if we're moving the selection (that is, not
9384 extending it). Fixes bug #80461.
9386 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9388 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
9389 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
9390 create private ControlCollection.
9392 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9394 * Control.cs: We need to call OnVisibleChanged for our implicit
9395 children as well as our normal children. Fixes scrollbars in
9396 comboboxes not showing up.
9398 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9400 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
9401 the check for IsHandleCreated first. The check in CreateHandle is not
9402 good enough because CreateHandle can be overriden, and the override
9403 should not be called if the handle is already created.
9405 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9407 * ToolStrip.cs: Remove MonoTODO for tooltips.
9408 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
9409 * ToolStripContainer.cs: Add custom ControlCollection class.
9410 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
9411 * ToolStripDropDown.cs: Add some missing properties/methods.
9412 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
9413 * ToolStripItem.cs: Remove MonoTODO for tooltips.
9414 * ToolStripManager.cs: Add IsShortcutDefined.
9415 * ToolStripOverflow.cs: Override LayoutEngine.
9416 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
9417 * ToolStripSeparator.cs: Add ImageKey.
9419 2007-03-28 Jackson Harper <jackson@ximian.com>
9421 * TextControl.cs: If a char delete removes a line ending, we need
9422 to update the ending style.
9423 - Make sure the line ending calcs get called.
9425 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9427 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
9428 it was making the new code not work. Fixed a typo in the new code
9429 as well. Fixes #79826.
9431 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9434 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
9435 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
9436 - SystrayBalloon method implemented.
9437 [Add support for notifyicon balloon on win32, #79149]
9439 2007-03-27 Mike Kestner <mkestner@novell.com>
9441 * ThemeWin32Classic.cs : update StateImageList selection to mirror
9442 the ms behavior when only one image is added to the list.
9445 2007-03-27 Jackson Harper <jackson@ximian.com>
9447 * TextControl.cs: Improvements to non multiline line ending
9450 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9452 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
9454 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9457 - Balloon message handling added.
9458 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
9460 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9461 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
9462 to SystrayBalloon to me like other Systray method, also a
9463 handle parameter added.
9465 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9467 * ListView.cs: Show scrollbars even when items.Count == 0
9468 but the columns Width is bigger than the ListView.Width.
9469 Also, when columns.Count == 0 set layout_wd and layout_ht
9470 to the ClientRectangle values, so we don't show any scrollbar
9473 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9475 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9477 2007-03-27 Jackson Harper <jackson@ximian.com>
9479 * RichTextBox.cs: The RTF library decodes the text properly for us
9482 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9484 * ListView.cs: Display HeaderControl even when columns.Count == 0.
9485 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9486 ListView header (HeaderControl), instead of Control.BackColor.
9488 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9490 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9491 Fixes tab control issues where controls would not show up because they
9492 never received their OnVisibleChanged call.
9494 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9496 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9499 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9501 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9502 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9503 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9504 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
9505 the handle. Fix WindowState by using the internal variable until we are
9506 sure that we've been shown.
9507 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9511 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
9513 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9514 (at least borders). Fixes #79386 on Linux (with a small difference
9515 in behaviour: when trying to resize a caption-less window metacity
9516 shows the sysmenu. Resizing is still possible though).
9517 * XplatUIWin32.cs: When setting window styles send request an extra
9518 WM_NCCALCSIZE when it's a form without title (due to no text and no
9519 caption), since Win32 seems to calculate it wrong the first time we
9520 get the message, though the second time things work as they should.
9521 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9522 newly reparented window might show up unparented. Update
9523 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9524 there's no title text. Fixes #79386.
9526 2007-03-27 Mike Kestner <mkestner@novell.com>
9528 * ListBox.cs : don't perform invalidations if the handle hasn't been
9529 created. [Fixes #80753]
9531 2007-03-27 Mike Kestner <mkestner@novell.com>
9533 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9536 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9538 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
9539 needed to implement Balloon.
9541 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9543 * ListViewItem.cs: In the constructors that take
9544 an array of strings, don't use ListViewSubItemCollection.AddRange
9545 method to add items, since we need to have a different behaviour (in
9546 the constructors we add an item for each null string, opposed to
9547 the behaviour of AddRange, which adds nothing).
9549 2007-03-26 Andreia Gaita <avidigal@novell.com>
9551 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9553 2007-03-26 Jackson Harper <jackson@ximian.com>
9555 * TextControl.cs: Draw and measure line endings when in non
9557 - When searching the text, count the end of the last line as a
9560 2007-03-26 Jackson Harper <jackson@ximian.com>
9562 * RichTextBox.cs: The selection_start and selection_end don't
9563 really track the correct tags for the selection. So we'll manually
9564 compute the correct tag here.
9566 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9568 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9569 and Continuous styles. Fixes #79469.
9571 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9573 * ToolStrip.cs: Implement Tooltips.
9574 * ToolStripItem.cs: Create internal method for determining tooltip.
9576 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9578 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9580 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9582 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9583 it prevents a problem thak keeps icon visible after application
9586 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9588 * NotifyIcon.cs: Balloon properties and methods created.
9590 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9591 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9593 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
9595 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
9597 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9599 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
9600 parameter indicates which aspects were explicit/user-set.
9601 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
9603 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9605 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
9606 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
9607 SmallChange, and Value (2.0).
9608 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
9610 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9612 * ListView.cs: Always set item_control.Width in LayoutDetails
9613 if View is Details. Setting it later in CalculateScrollBars
9614 in a not-so-corner scenario (the sum of columns width is
9615 not bigger than the ListView width when handle is created, and then
9616 that sum gets bigger by increasing the width of the columns)
9617 causes a very weird recursion path (which shouldn't be happening,
9618 since header_control sets it in CalculateScrollBars too). This bug
9619 appeared after Chris' fixes for handle created issues, so probably
9620 it's related to some handle-creation time.
9622 2007-03-23 Chris Toshok <toshok@ximian.com>
9624 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
9625 case where there's an add row, just so we don't end up in a case
9626 where it's not displayed (this happens when the row is partially
9627 obscured). Fixes bug #79574.
9629 2007-03-23 Jackson Harper <jackson@ximian.com>
9633 * RichTextBox.cs: Preserve line endings in the lines text buffer,
9634 also added an enum that represents the line ending type.
9636 2007-03-23 Andreia Gaita <avidigal@novell.com>
9638 * NumericUpDown.cs: Fix logic so Text and Value properties are not
9639 messed with in every method call, but only from DownButton,
9640 UpButton, UpdateEditText() and ValidateText. Fixes #80346
9642 2007-03-23 Chris Toshok <toshok@ximian.com>
9644 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
9645 format objects if the format spec is "". Fixes bug #80889.
9647 2007-03-22 Miguel de Icaza <miguel@novell.com>
9649 * ToolStripPanel.cs (Join): added stubs to build PDN3
9651 * Control.cs (AutoScrollOffset): Add.
9653 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
9654 property, its only implemented for Win32, on X11 it defaults to
9655 some hardcoded value.
9657 * ToolStripItem.cs (AllowDrop): Add property
9659 2007-03-22 Mike Kestner <mkestner@novell.com>
9661 * ListView.cs : in FullRowSelect Details mode, only enable box
9662 selection if the user clicks over the "item" column outside of the
9663 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
9665 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9667 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
9668 handle is not created yet.
9669 * Form.cs: Select: Don't call CreateHandle if the handle is already
9670 created, avoids a stack overflow on Windows when we are recreating
9672 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
9673 they are made visible, and override AfterTopMostControl to keep
9674 them on top when other controls are brought to front.
9675 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
9676 or force_*scroll_visible is true (old implementation always shows
9677 scrollbars when needed, no matter what auto_scroll was set to).
9678 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
9679 IsHandleCreated check.
9681 2007-03-22 Andreia Gaita <avidigal@novell.com>
9683 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
9684 row or col separator.
9685 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
9687 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9689 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
9691 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9693 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
9694 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
9695 every time. Fixes #80410.
9697 2007-03-22 Chris Toshok <toshok@ximian.com>
9699 * BindingSource.cs (AddNew): partially implement.
9701 remove a couple of NotImplementedException's
9702 to get bug #81148 closed.
9704 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9709 - UpdateCursor method added to update the screen cursor.
9710 - GetAvailableCursor method added to return cursor for enabled tree,
9711 it searches for cursor on control and it's parent's for enabled control.
9712 - Call UpdateCursor method on setter of Cursor property.
9713 - On setter of Enabled call UpdateCursor when it is false, we need to
9714 change cursor to normal (or to this parent cursor) because cursor
9715 setting theres no effect to disabled controls.
9716 - Some minor source changes to follow the coding style guidelines.
9718 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
9721 2007-03-22 Chris Toshok <toshok@ximian.com>
9723 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
9726 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9728 * XplatUIX11.cs: Implement default locations for forms.
9729 * Form.cs: Completely rework startup location for forms. Fixes #79964.
9730 * Hwnd.cs: Add previous_child_startup_location (to track the current
9731 startup location for any child forms of the current form) and
9732 previous_main_startup_location (to track the startup location for
9733 the current toplevel form).
9735 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9737 * Control.cs: Don't trigger a layout if an implicit control is added
9738 that isn't visible. Also, don't notify the owner when an implicit control
9739 is added. (Owners shouldn't even know about their implicit controls.)
9741 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9743 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
9744 to save some re-layouts.
9746 2007-03-21 Everaldo Canuto <everaldo@simios.org>
9748 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
9751 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9753 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
9754 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
9756 2007-03-21 Mike Kestner <mkestner@novell.com>
9758 * ListView.cs : disable selection update for non-left button clicks
9759 with mods and over selected items. [Fixes #80524]
9761 2007-03-20 Jackson Harper <jackson@ximian.com>
9764 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
9767 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9769 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
9770 very probably a more complicated calculation there. Update the
9771 textbox' ForeColor and BackColor when the ComboBox' colors are
9772 changed. Change the border change in LayoutComboBox to only affect
9773 the textbox, not all the calculations there. Seems to fix most of
9776 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9778 * ComboBox.cs: Handle Home and End keys as well as all combinations of
9779 modifiers + navigation keys as input keys, enables advanced text
9780 selection in the combobox (like Shift+Left Arrow for instance).
9781 ComboTextBox now overrides Focused and returns whatever
9782 ComboBox.Focused returns, since it really should be focused
9783 whenever the ComboBox is. Fixes #80795. Also make the border around
9784 the text box one pixel bigger, as mentioned in #79436.
9786 2007-03-20 Jackson Harper <jackson@ximian.com>
9788 * TreeView.cs: Don't offset the images, this was causing some
9789 artifacts when expanding/collapsing with images that were the
9790 exact height of the treenode.
9792 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9794 * TrackBar.cs: Query the theme for the correct value when the mouse
9795 moves and the thumb is pressed.
9796 * Theme.cs: Added TrackBarValueFromMousePosition
9797 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
9798 implementation was updating the trackbar value when drawing, now
9799 the drawing methods only draw. Fixes #80900. Refactored the
9800 calculations out to TrackBarValueFromMousePosition and
9801 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
9802 according to the mouse position whenever it wants to. Changed the
9803 light coloured pen when drawing the thumb from ControlLight to
9804 ControlLightLight, because the ControlLight is the same colour as
9805 the background so the 3D effect is lost.
9807 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9809 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
9810 defined. Fixes #80784.
9812 2007-03-20 Marek Habersack <mhabersack@novell.com>
9814 * ContextMenuStrip.cs: align with the change introduced in
9817 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9819 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
9820 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
9823 2007-03-19 Chris Toshok <toshok@ximian.com>
9825 * Control.cs (WmPaint): don't make use of the Handle property
9826 after an event is emitted, as the user could have closed the
9827 form/destroyed the control. Store the Handle in a local variable
9828 and make use of that. Fixes bug #80768.
9830 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9832 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
9833 behavior in X11 environments.
9835 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9837 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
9838 because on setter of topmost we dont call SetTopmost when handle is not
9841 2007-03-20 Jackson Harper <jackson@ximian.com>
9843 * TextControl.cs: Need to use SelectionLength () not
9844 selection_length, since that var is reset to -1.
9845 - Draw the caret when we don't have focus.
9846 * TextBox.cs: The selectall actually doesn't occur until the first
9848 * TextBoxBase.cs: Need to update the caret position after a
9851 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9853 * ListView.cs: Enable scrolling when using Tile view.
9855 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9859 * XplatUIDriver.cs: Abstract SetOwner method created.
9861 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
9862 must be implemented and was masked as todo.
9864 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
9867 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
9868 cheking for null owner to remove transient. The SetTopmost will be change
9871 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
9872 SetTopmost. Now owned forms will work properly in win32 and X11.
9874 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9876 * MdiWindowManager.cs: Update function name.
9877 * Form.cs: After closing a form MdiParent is always null.
9878 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
9879 better what it should do: necessary book-keeping when the form is
9880 closed, it should not close the form itself.
9882 2007-03-19 Andreia Gaita <avidigal@novell.com>
9884 * ListViewItem.cs: Fix back and fore color. The subitems only
9885 use their own colors if they are set, otherwise use the listview's
9886 colors. Don't set default colors on constructor for subitem.
9889 2007-03-19 Mike Kestner <mkestner@novell.com>
9891 * ListView.cs : make box selection for Details views with
9892 FullRowSelect conform to MS behavior when clicking in the "item"
9893 column and clicking outside the defined columns.
9894 [Fixes case 5-6 of #80374]
9896 2007-03-19 Chris Toshok <toshok@ximian.com>
9898 * ScrollableControl.cs: create the controls from within the ctor,
9899 but don't actually add them until our handle is created. this
9900 fixes a NRE possibility jpobst found (if you override OnLayout in
9901 a subclass, it's called before your ctor). Also, add a
9902 IsHandleCreated guard to UpdateSizeGripVisibility as well.
9904 2007-03-19 Jackson Harper <jackson@ximian.com>
9906 * TextBox.cs: Reduce the amount of invalidation we do.
9907 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
9908 some of them are true by default on MS.
9909 - Add some functions to reduce the amount of invalidates we do.
9910 * TextControl.cs: Less invalidation.
9912 2007-03-19 Chris Toshok <toshok@ximian.com>
9914 [ Fixes #81773, and *seems* to fix #81553 as well ]
9916 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
9917 AccumulateDestroyedHandles. We need to do it *after* we send
9918 WM_DESTROY, as the user's code can access Control.Handle in
9919 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
9920 move the WM_DESTROY/zombie handling to before the call to
9921 XDestroyWindow. For some reason without this ordering
9922 FormTest.RecreateHandle hangs. This ordering is semantically
9923 equivalent, however, as XDestroyWindow is async anyway.
9925 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
9927 * RichTextBox.cs: Reset backcolor_set after setting default.
9929 2007-03-19 Chris Toshok <toshok@ximian.com>
9931 * ScrollableControl.cs: the scroll position should not effect the
9932 canvas size. commit patch from georgegiolfan@yahoo.com, which
9933 fixes some really bizarre behavior on resizing. Fixes bug #80778.
9935 2007-03-19 Chris Toshok <toshok@ximian.com>
9937 * ScrollableControl.cs: clean this up a bit. create the
9938 scrollbars in the ctor and just show/hide them as needed. Also,
9939 make hscroll_visible/vscroll_visible internal to Recalculate, and
9940 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
9941 everywhere else. This seems to fix the scrollbars appearing
9942 beneath the content for me (i have *no* idea why that is,
9945 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9947 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
9948 some redundacy for stuff in Anchor and Dock that base will take care of.
9951 2007-03-19 Mike Kestner <mkestner@novell.com>
9953 * ListView.cs : make box selection for Details views without
9954 FullRowSelect dependent on the text bounds, not item bounds.
9955 * ListViewItem.cs : add an internal property to obtain the TextBounds
9956 in Details view. [Fixes case 1-4 of #80374]
9958 2007-03-19 Andreia Gaita <avidigal@novell.com>
9960 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
9961 we're < 2.0. #78448 && #80316
9963 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9965 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
9966 have the same style available as the previously selected one. Also,
9967 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
9969 2007-03-19 Jackson Harper <jackson@ximian.com>
9971 * TextControl.cs: Add an alignment property that all new lines
9973 - Make sure to use the align shift when calculating the line's X
9975 * TextBox.cs: Set the alignment on the document as well as on all
9978 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9980 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
9981 throw if setting the parent of an mdichild that already has an
9982 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
9983 AssemblyProductAttribute in the assembly, use the type's namespace (as
9984 MS seems to do). CreateControl: don't create the handle if the control
9985 is not visible (according to MS behaviour and spec). SetTopLevel: Only
9986 create handle if the control is not a form. Change FocusInternal to
9987 virtual so that it can be overriden by Form.
9988 * TextBox.cs: Update call to FocusInternal.
9989 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
9990 form is not a toplevel form when it's a mdi child, so update is_toplevel
9991 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
9992 hasn't been created. Show (IWin32Window): Don't allow this overload for
9993 toplevel windows. CenterToParent/CenterToScreen/Select: create the
9994 handle as MS does. SetVisibleCore: if called on a MdiChild and the
9995 parent isn't visible yet, save the visibility and restore it when the
9996 parent is made visible.
9997 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
9998 methods, since the visibility of the scrollbars can be changed from
9999 several places, not only from AutoScroll.
10002 2007-03-19 Jackson Harper <jackson@ximian.com>
10004 * RichTextBox.cs: Enable shortcuts by default.
10005 * TextBoxBase.cs: Add conditional shortcuts.
10007 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10009 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
10011 2007-03-19 Chris Toshok <toshok@ximian.com>
10013 [ Fixes bug #80604]
10015 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
10016 swallow the message we're waiting on, instead of delivering it, as
10017 this is only used for the WM_SHOWWINDOW raised from
10018 MapWindow/UnmapWindow, and the message needs to be generated
10019 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
10020 before doing the Map/Unmap. Also make sure that the Hwnd is still
10021 alive after the message has been handled.
10023 *before* the window is shown.
10025 * Control.cs (CreateControl): guard a few more things inside the
10026 if (!is_created) block, as we might end up being called again -
10028 (WmShowWindow): call CreateControl if we're showing the control.
10030 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10032 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
10033 controls without a handle if they have any parent with a handle. In
10034 Dispose add a check whether the handle is created or not before
10035 calling BeginInvoke, this removes the need of the extra disposing
10036 parameter (which was bogus anyway since it didn't prevent the
10037 invoke from happening, it only skipped the check for an existing
10038 handle, meaning that the invoke would call on an inexistent
10041 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10043 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
10044 appears in taskbar.
10046 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10049 - Fixed a problem that dont show help button for messages with 3 buttons.
10050 - Refactory button size and position calculations, now dont use fixed
10051 values, also fixed button sizes (#80043) and form's border space.
10052 - AddButton method created, now all other AddButton methods call this one.
10053 - Some other source code cosmetic changes.
10055 2007-03-18 Jackson Harper <jackson@ximian.com>
10057 * RichTextBox.cs: Don't do this all fonts must match check if
10058 there is only one char selected.
10060 2007-03-18 Jackson Harper <jackson@ximian.com>
10062 * TreeView.cs: ScrollWindow works properly now, so we don't need
10063 to screw around with the scroll area. This fixes some artifacts
10064 when expanding and collapsing.
10066 2007-03-18 Jackson Harper <jackson@ximian.com>
10068 * TextBoxBase.cs: Allow updating the selection position when the
10069 cursor is outside the textarea, but we have a capture.
10070 * TextControl.cs: A special case for when the cursor is outside
10071 the bounds of the TB.
10073 2007-03-18 Jackson Harper <jackson@ximian.com>
10075 * TextBoxBase.cs: Remove image pasting code for now. There is no
10076 way to get an image on the clipboard right now anyways.
10078 * RichTextBox.cs: Use the new RTF Picture class for pictures.
10080 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10083 - Set window properties in constructor intead of on CreateParams.
10084 - Remove topmost from Window ExStyle.
10085 - Set ShowInTaskbar to false.
10086 - Set form border to FixedDialog.
10087 - Some cosmetic changes and remove unneeded comments.
10088 - It fixes itens 2,3 and 4 of bug #80043.
10090 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
10092 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
10093 none was explicitly set. Fixes part of bug #79949.
10095 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10097 * ToolStripComboBox.cs: Add AutoComplete*.
10099 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10101 * ToolStripComboBox.cs: Add FlatStyle.
10103 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10105 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
10106 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
10108 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10110 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
10111 CheckBox.cs, RadioButton.cs, BindingSource.cs,
10112 DataGridColumnStyle.cs: Remove warnings.
10114 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10116 * Menu.cs: MergeMenu: Check menu argument for null before looping over
10118 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
10119 visibility of mdi child forms. FormSizeChangedHandler: update the
10120 maximized size if size has changed while maximized.
10121 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
10122 creating the handle.
10123 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
10124 avoid creating the handle if not created.
10125 * XplatUI.cs: Update debug output.
10126 * XplatUIStructs.cs: Added ToString's for a couple of structs.
10128 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10130 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
10132 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
10133 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
10134 Implement keyboard shortcuts.
10136 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10138 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
10139 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
10140 ColorDialog and all derived classes.
10142 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10144 [ Fixes bug #79828 ]
10147 - Rename ToolBarButtonInfor to ToolBarItem.
10148 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
10149 - Maintain an array of ToolBarItem, used instead of ToolBarButton
10150 collection to be able add same button more than one time on a toolbar.
10151 - Refactory all properties and methods to use ToolBarItem.
10153 * ToolBarButton.cs:
10154 - Remove all propeties and methods that is now in ToolBarItem.
10155 - Rectangle propery now gets the rectangle from first ToolBarItem to
10156 mimic win32 behavior.
10157 - Size calculation and layout methods also removed.
10159 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
10160 ToolBarItem instead of ToolBarButton to right drawing buttons when
10161 same button/separator was added more than one time to ToolBar.
10163 * ThemeNice.cs: Same as above.
10165 2007-03-15 Andreia Gaita <avidigal@novell.com>
10167 * XplatUIX11.cs: Fire extra MouseMove events right after
10168 MouseDown and MouseUp, emulating win32's <censored> behaviour
10169 for apps that rely on it.
10171 2007-03-15 Jackson Harper <jackson@ximian.com>
10174 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
10175 it is drawn on the controls client window and there is no NC
10177 - Set the background color to gray on 2.0 when we are readonly.
10179 2007-03-15 Chris Toshok <toshok@ximian.com>
10181 [ Fixes bug #81144 ]
10183 * XplatUIX11.cs: implement VirtualScreen independently of
10184 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
10187 2007-03-15 Chris Toshok <toshok@ximian.com>
10189 * Hwnd.cs: add an internal field for the cached_window_state.
10191 * XplatUIX11.cs: cache the window state, invalidating the cache
10192 (and thus re-querying the X server) only when we see an update to
10193 the _NET_WM_STATE property.
10195 2007-03-15 Chris Toshok <toshok@ximian.com>
10197 * BindingSource.cs: get a lot of the unit tests working.
10199 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10201 * Control.cs: Modify UpdateStyles to store distances when bounds >=
10202 0 instead of just bounds > 0. [Fixes bug #80912]
10204 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10206 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
10209 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
10211 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
10212 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
10213 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
10214 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
10216 2007-03-15 Chris Toshok <toshok@ximian.com>
10220 * Control.cs: add Ivan's fix for 81101, with a slight modification
10221 - you can set control.Target to null.
10223 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
10225 * ToolStripItem.cs: If our OwnerItem is null, we can't use
10226 HideDropDown, use Hide instead to prevent an NRE.
10229 2007-03-14 Jackson Harper <jackson@ximian.com>
10231 * TextBoxBase.cs: Mess with the creation stuff a little. We need
10232 to calculate the document before the handle is created, in some
10233 cases. (Actually just one case).
10235 2007-03-14 Jackson Harper <jackson@ximian.com>
10237 * TextBoxBase.cs: Need to display the caret after letting the base
10238 wndproc handle the focus methods, because the caret display
10239 methods check the focus state.
10240 - Try to display the caret after updating it's position with SelectWord.
10241 - Don't need to do an immediate update on this recalc, since there
10242 will be an invalidate anyways.
10244 2007-03-14 Jackson Harper <jackson@ximian.com>
10246 * TreeView.cs: Some workarounds so that we can match event order a
10249 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
10251 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
10252 #80803. Avoid NullReferenceException when Control does not have
10253 parent. Fixed different blinkstyle issues. Only subscribe to Tick
10254 event a single time. Only draw error icon when control is created and
10255 visible. Fixes failing unit tests.
10257 2007-03-14 Andreia Gaita <avidigal@novell.com>
10259 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
10260 Selecting events. Fire Leave and Enter events when changing tabs.
10262 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
10264 * TreeView.cs: Add TreeViewNodeSorter.
10265 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
10267 2007-03-14 Chris Toshok <toshok@ximian.com>
10269 * Form.cs: go ahead and remove the RecreateHandles that jpobst
10270 removed earlier and I had him add back it. It turns out metacity
10271 *does* in fact handle the MOTIF_WM_HINTS property changing, it
10272 just doesn't redraw the window titlebar until you resize the
10273 window. This also means we aren't recreating the entire window
10274 hierarchy on X when you change this property. And it looks better
10277 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10280 * ListView.cs: Collecting selection information
10281 is now done in SelectedIndexCollection rather than in
10282 SelectedListViewItemCollection. This is done so we can
10283 have the selection information code in one single place
10284 (virtual mode selection information entirely depends on
10285 SelectedIndexCollection).
10287 2007-03-13 Miguel de Icaza <miguel@novell.com>
10289 * ErrorProvider.cs: Add stubs for ISupportInitialize
10291 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10293 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
10294 in the right order with the right values, from the Checked property,
10295 just as MS does (instead of triggering them from ListView).
10297 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
10299 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10301 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
10302 the correct handler in OnItemCheck method (ItemCheckEventHandler
10303 instead of EventHandler). This used to throw an InvalidCastException.
10305 2007-03-13 Jackson Harper <jackson@ximian.com>
10307 * TextBoxBase.cs: Calculate the document before the handle is
10308 created, so there isn't an extra invalidate called.
10310 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
10312 * Form.cs: Don't set owner in ShowDialog until we are sure
10313 that we aren't going to throw an exception. [Fixes bug #80773]
10315 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
10317 * TreeView.cs: Make it compile.
10319 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10321 * Control.cs: Another place we don't call SizeFromClientSize.
10322 * Form.cs: Another place we don't call SizeFromClientSize.
10325 2007-03-12 Jackson Harper <jackson@ximian.com>
10327 * TreeView.cs: Basically emulating some strangness here with
10328 exanding nodes and setting node positions when windows aren't
10330 - Also attempting to walk the node tree less than previously, and
10331 just use visible order calculations for determining offsets.
10332 - oops made scrolling backwards.
10333 * TreeNode.cs: We need to start nodes with a zero visible order,
10334 because the order calcs are based on the first nodes order.
10336 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10338 * Form.cs: Don't exit the program if RecreateHandle is called on
10341 2007-03-12 Chris Toshok <toshok@ximian.com>
10343 * XEventQueue.cs: remove the use of PostQuitState.
10345 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
10346 WM_QUIT message in GetMessage, return false (and if we're in the
10347 nested WaitForHwndMessage, repost the WM_QUIT message).
10349 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10351 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
10352 or the MaximizeBox properties. [Part of bug #80640]
10354 2007-03-12 Everaldo Canuto <everaldo@simios.org>
10356 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
10359 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10361 * ToolStripItem.cs: Fix some tests I broke by checking Visible
10362 instead of visible.
10364 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
10366 * FileDialog.cs: Use text of File name combobox to determine what
10367 files the user selected. Added tokenizer to parse the file names.
10370 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10372 * Control.cs: We can't call SizeFromClientSize in the constructor,
10373 but we still need to do the same work, so make an internal version.
10376 2007-03-12 Jackson Harper <jackson@ximian.com>
10380 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
10383 2007-03-12 Jackson Harper <jackson@ximian.com>
10385 * TextBoxBase.cs: Now that the handles are being created a little
10386 later, we need to make sure that the document is recalculated when
10387 the handle is created.
10389 2007-03-11 Everaldo Canuto <everaldo@simios.org>
10391 * Theme.cs: GetLinkFont abstract method added.
10394 - Remove CalcTrimRectangle, no longer needed.
10395 - Factor also remove, position issues must be fixed in libgdiplus.
10396 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
10397 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
10398 care about font used to draw links.
10399 - Set TabStop to true when control is "Selectable", control is selectable
10400 when have one or more links. Fixes #80501 (test case is also added).
10401 - Set the LinkArea values after links change, LinkArea values must be
10402 based in first link position and size, a test case was created.
10403 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
10404 the attribute must be true LinkArea.Length > 0. The same was applied to
10407 * ThemeWin32Classic.cs:
10408 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
10410 - Use CPDrawStringDisabled to draw disabled text instead of hard code
10412 - Draw focus rectangle for every parts focused, including parts that
10413 is on another line, its because regions returns various rectangles
10414 and not only one. Needed to mimic W32 look.
10415 - Uses Graphics.Clip to delimite region painted, it mean that now
10416 complete text is passed to DrawString, with this we solve layout
10417 issues without create another text renderer.
10418 - Uses Region.Intersect to fix some flickers problems, now only needed
10419 parts will redrawed.
10420 - This changes fixes #79614 and some other unreported issues, on Linux
10421 some layout problems still remain, the problem is under
10422 MeasureCharacterRanges but it is an libgdiplus bug.
10424 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
10426 * TextBox.cs: Set for foreground color.
10427 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
10428 this is already done in Control.
10430 2007-03-10 Jackson Harper <jackson@ximian.com>
10432 * TextBox.cs: Set the background color, but reset the
10433 backcolor_set flag which is just for the user setting the
10436 2007-03-09 Chris Toshok <toshok@ximian.com>
10438 * Control.cs: really remove the call to XplatUI.SetVisible from
10439 CreateHandle(), like I said I did when I merged the branch.
10441 * BindingSource.cs: implement some more of this stuff.
10443 2007-03-09 Jackson Harper <jackson@ximian.com>
10445 * TextBox.cs: Don't explicitly set our background colors.
10447 * TextBoxBase.cs: Draw readonly text.
10448 - Need to invalidate when backcolor or readonly are changed.
10450 2007-03-09 Jackson Harper <jackson@ximian.com>
10452 * TextBoxBase.cs: Don't set the forecolor until the handle is
10454 - Do not raise OnPaint, and removed some old debug code.
10456 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
10458 * ScrollableControl.cs: Fix mouse wheel scrolling.
10460 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10462 * Control.cs: Wire up MouseDoubleClick event.
10464 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10466 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10468 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10469 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10470 item is added. This logic was moved to ToolStrip.OnItemAdded.
10473 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10475 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10477 2007-03-08 Jackson Harper <jackson@ximian.com>
10479 * TreeView.cs: Show the correct image for selected node (this used
10480 to work, not sure how the code got deleted). Also implemented 2.0 feature
10483 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10486 * ListViewItem.cs: Cache index in items when retrieving them
10489 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10491 * ToolStripItem.cs: Don't return the explicit_size if we are using
10492 AutoSize. Fixes invalidation issue when user has explicitly set a
10493 size and has AutoSize = true.
10495 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10497 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10499 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10501 * DataGridView.cs: Remove event handler from DataView when a
10502 DataTable is used as DataSource.
10504 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10506 * Control.cs: Create internal setter for client_size to allow it to be
10507 set without triggering resizing code.
10508 * Form.cs: Calculate client_size in constructor, only change client_size
10509 in FormBorderStyle property if Handle has been created.
10510 [Fixes #80574, #80791]
10512 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
10514 * SystemInformation.cs: Add TerminalServerSession.
10516 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10518 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10521 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10523 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10524 Handle before we were supposed to. Now checks ActivateOnShow property
10526 * Control.cs: Add internal ActivateOnShow property.
10527 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10528 for ActivateOnShow.
10529 * Hwnd.cs Remove no longer needed no_activate field.
10531 2007-03-07 Jackson Harper <jackson@ximian.com>
10533 * TreeView.cs: Implement owner draw tree nodes. And a couple more
10535 * DrawTreeNodeEventHandler.cs: Add
10536 * DrawTreeNodeEventArgs.cs: Correct default value.
10538 2007-03-07 Chris Toshok <toshok@ximian.com>
10540 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10541 to be called before NativeWindow.WndProc. Put the HwndCreating
10542 magic there to hook up our Hwnd's to handles.
10544 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
10546 * DataGridView.cs: Comment out debug code.
10548 2007-03-07 Chris Toshok <toshok@ximian.com>
10550 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10551 to make the rest of the world happy]
10553 * Control.cs (CreateHandle): there's no need to call
10554 XplatUI.SetVisible here, it's effectively done by
10555 XplatUI.CreateWindow on X now, and always was on windows.
10557 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10558 shortcircuit out of the loop if we have a message loop running on
10561 [Changelog from merge]
10563 2007-03-05 Chris Toshok <toshok@ximian.com>
10565 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10566 causes handle creation.
10568 2007-02-28 Chris Toshok <toshok@ximian.com>
10570 * ApplicationContext.cs: Add a flag to make sure we only raise the
10571 ThreadExit event once (ExitThreadCore can be indirectly called
10572 from a few places.) I don't like the additional flag, but it
10573 makes the event ordering/count correct.
10575 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10576 without locking the collection. An enumerator doesn't give us any
10577 protection from modification anyway. Lock the thread hash and
10578 replace the complicated enumerator loop with a foreach.
10579 (Application.CloseForms): make internal so it can be called from
10580 ApplicationContext. This should probably be moved to MWFThread.
10581 (Application.ExitThread): don't call MWFThread.Current.Exit()
10582 here. just call XplatUI.PostQuitMessage. We'll exit the thread
10583 when the runloop exits (in response to WM_QUIT.)
10584 (Application.RunLoop): add a comment (and check) for
10585 context.MainForm being null after setting context.MainForm.Visible
10586 = true. This is because you're perfectly free to dispose of a
10587 form in VisibilityChanged. Chalk this up to another case where we
10588 need to synchronously generate WM_ACTIVATE from Control.Show.
10589 Also, add handling for WM_QUIT here so we'll exit the loop.
10591 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
10592 fact that we don't wait if we're only unmapping the whole_window
10593 makes me a bit nervous, but it doesn't seem to cause any problems
10596 also, add a comment about the stupid, broken and wrong resetting
10597 of PostQuitState to false in GetMessage().
10599 In PostQuitMessage, we need to add a WM_QUIT message to the
10600 thread's queue. We use the FosterParent to get the right
10603 Lastly, in SetVisible, we need to unmap both windows, since the
10604 waiting only happens when we're unmapping the client window. So
10605 now, the *only* time we unmap just the whole_window is in the hack
10606 for resizing a control to 0,0.
10608 2007-02-21 Chris Toshok <toshok@ximian.com>
10610 * Application.cs (CloseForms): rewrite this so that we don't
10611 modify the list while we're traversing it.
10613 2007-02-20 Chris Toshok <toshok@ximian.com>
10615 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
10616 of OnHandleCreated.
10617 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
10618 handle is created. otherwise we'll create it here.
10619 (VerticalScrollEvent): same here.
10621 * Application.cs (CloseForms): call Form.Dispose, don't post
10624 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
10625 here. Application should Dispose() of the Form's.
10627 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
10628 WM_DESTROY as well.
10629 (MapWindow,UnmapWindow): only actually do the waiting for
10630 SHOWWINDOW if the control we're dealing with is a Form.
10631 (CreateWindow): if the control isn't a form, SendMessage
10632 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
10634 * Control.cs (SetVisibleCore): always use is_visible here, not
10635 value. If we use value, we can end up re-setting something
10636 visible if, for instance, you do Control.Hide() in a delegate
10637 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
10639 2007-02-20 Chris Toshok <toshok@ximian.com>
10641 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
10642 the message we need. PeekMessage returning false should not be a
10643 condition under which we exit the loop.
10645 2007-02-15 Chris Toshok <toshok@ximian.com>
10647 * Control.cs (Refresh): only refresh if we've got a handle and are
10649 (CreateAccessibilityInstance): CreateControl() here.
10650 (UpdateChildrenZOrder): complicate the code loop even more by
10651 taking into account controls that haven't had their handle
10652 created, and those that aren't visible. But on the flip side,
10653 simplify the code by splitting it into two loops. one which
10654 builds up the list of child controls we're interested in, and the
10655 other that sets the z order of those children.
10657 2007-02-14 Chris Toshok <toshok@ximian.com>
10659 * Control.cs: Control.AccessibilityObject causes the control to be
10660 created, not just the handle.
10662 2007-02-14 Chris Toshok <toshok@ximian.com>
10664 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
10665 problem on X where a window might have its handle created (and be
10666 visible) while the window is unmapped. calling XConfigureWindow
10667 on an unmapped window is bad, and generates X errors.
10669 2007-02-13 Chris Toshok <toshok@ximian.com>
10671 * Control.cs (CreateHandle): don't loop over our children setting
10672 their parent here. do it when in WndProc when we're shown.
10673 (UpdateChildrenZOrder): make this internal so we can call it from
10675 (WndProc): for WM_SHOWWINDOW, reparent the child control after
10676 creating its handle. Also, remove the calls to PerformLayout from
10677 here. they're done in ScrollableControl.OnVisibleChanged. Also,
10678 OnVisibleChanged only seems to be called directly here for the
10679 toplevel control. It's propagated down the window hierarchy by
10680 calls to child.OnParentVisibleChanged.
10681 (OnVisibleChanged): don't do layout here - it's done (oddly
10682 enough, according to a glance at stack traces on ms.net..) in
10685 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
10686 z order of our children before calling PerformLayout.
10688 2007-02-12 Chris Toshok <toshok@ximian.com>
10690 [big change, fixes #80020]
10692 * AccessibleObject.cs: we need to make owner internal again to fix
10693 some of ControlAccessibleObject.
10695 * Control.cs: lots of changes here. add support for WM_CREATE,
10696 for which we generate OnHandleCreated. Remove the OnHandleCreated
10697 call from CreateHandle. Also add support for WM_SHOWWINDOW where
10698 we create child controls. leave the MonoTODO's for the
10699 accessibility calls, but fix the exceptions so the tests pass.
10701 Add the InvalidOperationExceptions to Invoke methods, and remove a
10702 couple of InvokeInternal methods we aren't using.
10704 Also, add a couple of CreateHandle calls in places where we know
10705 the handles are being created but our code doesn't reference
10708 Make SetVisibleCore call OnVisibleChange if the handle isn't
10709 created. If the handle is created, we rely on XplatUI.SetVisible
10710 generating the event synchronously.
10712 Lastly, make sure we don't use this.Handle inside CreateHandle,
10713 because we can call back into client (and that code can dispose of
10716 * XplatUIStructs.cs: misc/cleanup.
10718 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
10719 although we don't populate the wParam properly.
10720 (CreateWindow): generate WM_CREATE.
10721 (MapWindow,UnmapWindow): make these calls synchronous, at great
10722 performance expense (particularly in the unmap case), to match
10725 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
10727 (set_MdiParent): don't recreate the handle unless it's been
10730 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
10733 * NativeWindow.cs: this is probably the weirdest part of the
10734 patch. We need a way to link up the window being created to the
10735 WM_CREATE message. Since we can only be creating one window at a
10736 time on a given thread, we keep track of a per-thread reference so
10737 we can dispatch it properly. We also need to keep track of the
10738 Hwnd currently being created so that the win32 backend doesn't
10741 * XplatUIWin32.cs: a similar change to the one we made in
10744 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10746 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
10747 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
10748 to draw the menu shortcut string.
10750 2007-03-07 Jackson Harper <jackson@ximian.com>
10752 * TreeNode.cs: Add the 2.0 collapse method.
10754 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10756 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
10758 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10760 * DataGridView.cs: Change DataSource will clear column and row
10761 lists. Call Invalidate() to reflect DataSource change.
10763 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10765 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
10766 and a new row is added to it.
10768 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10770 * DataGridView.cs: Add columns when DataSource is en empty list but
10771 is a System.Data.DataView (from a System.Data.DataTable).
10773 2007-03-06 Andreia Gaita <avidigal@novell.com>
10775 * Label.cs: Implement AutoEllipsis (2.0)
10777 2007-03-06 Jackson Harper <jackson@ximian.com>
10779 * TreeView.cs: Implement 2.0 TopNode setter property.
10780 - Use a local var instead of the skipped_nodes field for computing
10781 how many nodes to skip. Otherwise we won't scroll because the
10782 valuechanged handler checks if skipped_nodes is equal to the new
10784 - Implement 2.0 Sort method.
10785 - Add useless 2.0 DoubleBuffer property
10786 - Implement 2.0 LineColors property. Lets you change the color of
10787 the lines in the tree. Terribly useful for creating non cohesive
10789 - Implement 2.0 image key feature.
10791 2007-03-06 Jackson Harper <jackson@ximian.com>
10793 * TreeView.cs: We can't get the bounds of the nodes before raising
10794 the AfterSelect event, because that event could change the node's
10795 bounds (scrolling, font change, etc).
10797 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10799 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
10800 * Form.cs: Don't recreate handle when creating FormWindowManager, just
10801 update window styles. In CreateParams us VisibleInternal instead of
10802 VIsible to get the actual visible flag set for this form.
10803 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
10804 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
10805 handle the case when the form is already maximized, in which case
10806 it should be restored. Fixes #81043.
10808 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10810 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
10812 2007-03-05 Jackson Harper <jackson@ximian.com>
10814 * TreeViewHitTestInfo.cs: implement.
10816 2007-03-05 Jackson Harper <jackson@ximian.com>
10818 * InternalWindowManager.cs: class status fix.
10820 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
10822 * InternalWindowManager.cs: All windows that have a parent
10823 are confined to their parent when they're being moved.
10826 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
10828 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
10829 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
10831 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10833 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
10834 buttons invisible before deciding which ones should be visible
10835 (fixes minimize/maximize buttons showing up in toolwindows). Remove
10836 an unused variable.
10837 * InternalWindowManager.cs: Remove warning.
10839 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10841 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
10842 to throw an InvalidOperationException is virtual mode is being used.
10844 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10846 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
10847 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
10848 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
10849 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10850 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
10851 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
10853 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10855 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
10856 driver.KeyboardDelay from XplatUI.KeyboardDelay
10857 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
10858 (patch by Sergey Volk)
10860 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10862 * ToolWindowManager.cs: Added, contains logic for
10864 * CreateParams.cs: Add a few helper methods and an
10865 internal variable to know which control the CreateParams belongs
10867 * Control.cs: Call Form.ChangingParent when the
10868 parent is about to be changed.
10869 * XplatUIX11.cs: DeriveStyles (): Set
10870 caption_height for all windows that have captions and are children.
10871 Update to use ToolWindowManager instead of InternalWindowManager
10873 * XplatUIWin32.cs: Set fake window styles for all
10874 windows that have window managers.
10875 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
10876 now duplicated for mdi windows when they are
10877 maximized, first for the buttons the window itself has, then for
10878 the buttons that appear in the menu bar. Makes things a little
10879 easier). Updated UpdateWindowDecorations, SetWindowState and the
10880 mouse eventhandlers accordingly.
10881 * Form.cs: Add ChangingParent (), contains the
10882 logic of what should happen when the parent changes. In MdiParent
10883 don't set things that ChangingParent () is doing. When handling
10884 WM_CLOSE, we can close the form if there are any other modal forms
10885 and the current form is a descendent of the modal form.
10886 * InternalWindowManager.cs: A lot of refactoring,
10887 the title buttons are now extracted to a separate container class
10888 that takes care of all button code (clicks, tooltips, etc). Moved
10889 Iconic|Maximized|Normal Bounds properties to this class from
10890 MdiWindowManager, so that the window state logic can succeed for
10891 other than mdi wm's. Implemented general window state change logic.
10892 Moved CreateButtons to ThemeWin32Classic, since the theme might
10893 override which buttons are available when as well as the exact
10895 * FormWindowManager.cs: Added, contains logic for
10897 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
10898 which buttons go where (and if they are at all visible).
10899 Removed special handling of maximized windows, since they aren't special.
10900 In DrawManagedWindowDecorations don't try to draw the text if it is
10902 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
10903 use whatever the wm gives us.
10905 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10907 * ButtonBase.cs: Add 2.0 properties.
10908 * Button.cs: Override Draw for 2.0.
10909 * Control.cs: Add Entered and Selected properties.
10910 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
10911 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
10912 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
10914 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
10916 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10918 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
10920 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10922 * XplatUIWin32.cs: Register a new class with Windows each time we get
10923 a new ClassStyle. [Fixes bugs #79432, #80817]
10924 * Controls.cs: Set the correct ClassStyle in CreateParams.
10925 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
10927 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
10929 * ListView.cs: Add fireEvent argument to ReorderColumn since the
10930 ColumnReordered event must not be signaled when modifying DisplayIndex
10931 of a ColumnHeader. Added internal ReorderColumns method which takes
10932 care of drawing, and updating the internal DisplayIndex of the
10933 ColumnHeader. Added AddColumn method which is invoked from
10934 ColumnHeaderCollection when adding or inserting columns, and which
10935 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
10936 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
10937 Recalculated dispay indices after removing a ColumnHeader.
10938 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
10939 match MS. Allows last display index to be returned after ListView
10940 is disposed. Update actual location of ColumnHeader when DisplayIndex
10943 2007-03-01 Everaldo Canuto <everaldo@simios.org>
10945 * LinkLabel.cs: Improve CalcTrimRectangle.
10947 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
10949 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10951 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
10952 get rectangle as a result value.
10954 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10956 * LinkLabel.cs: Theres some diferences between rectangle return from
10957 MeasureCharacterRanges and the area used for DrawString to fix this
10958 CalcMeasurementFactor method was created, it calcules the diferences
10959 to be use later to adjust rectangle in draw operations. Fixes #80473.
10961 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
10962 to adjust draw rectangle.
10964 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10966 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
10967 text and some other changes to reduce and optimize source code.
10969 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10971 * RadioButton.cs: Implement 2.0 event.
10972 * RelatedImageListAttribute.cs: Implement new class.
10974 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10976 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
10978 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10980 * CheckBox.cs: Implement 2.0 functionality.
10982 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10984 * ListView.cs: Refactor Add and AddRange methods of
10985 ListViewItemCollection, to not update the ListView
10986 everytime an item is added in AddRange. Also move the update
10987 code to a new CollectionChanged method, and call it
10988 from other methods that need it as well (this should also fix some
10989 bugs when Sorting is used).
10991 2007-02-27 Jackson Harper <jackson@ximian.com>
10993 * TextControl.cs: Try to never let the caret stay in a non-text
10995 * TextBoxBase.cs: Update the caret.
10997 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
10999 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
11000 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
11001 delete POINT structure, duplicate of one in XplatUIStructs.
11002 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
11004 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
11006 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
11007 edit box since otherwise the Label would immediately be set (even if
11008 the user did not modify the label). In OnKeyDown set Handled to true
11009 if Return or Escape was pressed. In ColumnHeaderCollection unlink
11010 columns that are to be removed. In ListViewItemCollection unlink items
11011 that are to be removed.
11013 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
11015 * TextRenderer.cs: If we set a GDI clip region, we need to clear
11016 it when we are done. [Fixes bug #80949]
11018 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11020 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
11022 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11024 * ListView.cs: I forgot to commit the changes for ListView
11025 in my previous patch.
11027 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11029 * Clipboard.cs: Partially implement an overload of SetDataObject.
11030 * Form.cs: Implement ShowWithoutActivation.
11031 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
11033 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11035 This is a first set of changes to make the Virtual mode works,
11036 by avoiding the retrieval of ListViewItem instances until
11039 * ListView.cs: Store item position in the ListView instead of the
11040 ListViewItem, this way we don't request the Bounds property of
11041 ListViewItem inside the ListView calculations, as well as cache the item
11042 size in item_size field. Store indexes instead of ListViewItem
11043 instances in the matrix used by icon view. Add a ItemMatrixLocation
11044 struct to hold the row and col info of the matrix info.
11046 * ListViewItem.cs: Don't store the location anymore, and only cache
11047 the rectangles for GetBounds. Use the ListView.GetItemLocation
11048 method to retrieve the actual location.
11050 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11052 * TextRenderer.cs: Add clipping support, thanks to George.
11055 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11057 * ListViewItem.cs: Cancel label edit when item is removed from
11059 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
11060 event before the edit textbox is displayed. Added CancelEdit method
11061 which is used end to editing while ignoring the value set by the
11062 user. In EndEdit, set focus to ListView to avoid losing focus to
11063 other controls. In ListViewItemCollection.Clear, cancel editing of
11064 any of the items. In Remove, cancel editing of item being removed.
11065 Avoid udplicate code by modifing RemoveAt to invoke Remove.
11067 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11069 * FileDialog.cs: Update FSEntry when move is successful. Fixes
11072 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11074 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
11075 compatible with non X11 systems. Fixes #80901.
11077 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11079 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
11080 whether the item should be unselected and reselect. We do no want this
11081 when we're starting to edit the label. Do not fire the
11082 SelectedIndexChanged event from ListView when its already been fired
11083 by modifying ListViewItem.Selected. Fixes bug #80943.
11085 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11087 * TextRenderer.cs: Previos commit logic was backwards.
11089 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11091 * TextRenderer.cs: Don't add padding on MeasureText if we were
11092 sent the NoPadding flag.
11094 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11096 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
11097 after DrawButton. To prevent image overlaps button borders SetClip and
11098 ResetClip added before and after draw image. Fixes #79129.
11100 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11102 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
11103 window size, it fix problem when you run under win32 that theres
11104 Size diferent than ClientSize. Also fix controls size and positions
11105 to mimic Win32. Fixes #80837.
11107 2007-02-22 Everaldo Canuto <everaldo@simios.org>
11109 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
11110 menu area to fix some problems for non X11 systems. Fixes #80613.
11112 2007-02-22 Jackson Harper <jackson@ximian.com>
11114 * TreeNode.cs: When a node is expanded, set its is_expanded flag
11115 even if it doesn't have any children.
11117 2007-02-22 Jackson Harper <jackson@ximian.com>
11119 * TreeView.cs: Calculate the top node 'on the fly', this
11120 eliminates issues where you need to click on the tree before
11121 scrolling it to get the top node computed correctly.
11122 * TreeNodeCollection.cs: We don't need to mess with the top node
11125 2007-02-22 Jackson Harper <jackson@ximian.com>
11127 * DataGridViewRow.cs: Fix typo so height can actually be set.
11128 Patch by Peter Grimm.
11130 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11132 * FileDialog.cs: Fixed support for renaming files and directories.
11133 * ListView.cs: Do not lose focus when edit is canceled. Process
11134 Escape as regular key (to prevent closing of dialogs).
11136 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11138 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
11139 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
11141 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11143 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
11144 did not modify label.
11145 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
11146 modified the text. Reset Label when user presses Escape in edit mode.
11147 Move focus to ListView after having cancelled or finished editing the
11150 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
11152 * ComboBox.cs: Removed unnecessary initializations. Marked items field
11153 private. Clear textbox when Text is set to null and SelectedIndex is
11155 * FileDialog.cs: Removed unnecessary initializations. Removed
11156 workarounds for ComboBox bugs that are now fixed. Modified
11157 DefaultExt, InitialDirectory and Title property to change null to
11158 zero-length string in getters. Avoid directly accessing fields.
11160 2007-02-20 Jackson Harper <jackson@ximian.com>
11162 * TextControl.cs: Remove RecalAlignments call, that was some
11163 debugging leftovers.
11164 - Don't use the line indent when we shouldn't.
11165 * RichTextBox.cs: Add support for paragraph left indents.
11167 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11169 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
11170 Seems like the class status pages doesn't catch params differences.
11172 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11174 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
11176 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11178 * ComboBox.cs: Setting Text should have no effect if item text of
11179 selected item exactly matches value. First lookup text using
11180 case-sensitive comparison, and fallback to case-insensitive comparison.
11181 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
11182 allow startIndex to be last index. Changed ArgumentOutOfRangeException
11183 paramname to match MS. Restart from first item if string is not found
11184 after startIndex. Fixed paramname of ArgumentNullException that is
11185 thrown for null value in ObjectCollection.Contains.
11187 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11189 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
11191 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11193 * ListControl.cs: In SelectedValue use value.Equals to compare for
11194 equality instead of ==, otherwise it will fail for strings.
11197 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11199 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
11200 since the caret won't show up unless ShowSelection is true.
11203 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11205 * Application.cs: When disabling all forms but the main form, do not
11206 disable any descendants of the main form (such as mdi children or
11207 other parented forms). Fixes #80822 on Windows.
11208 * Form.cs: If we have a parent, set the WS_CHILD style.
11209 * Control.cs: Update the window styles if the control whose parent has
11210 changed is a form (the WS_CHILD style has to be switched).
11212 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11214 * XplatUIStructs.cs: MsgUIState structure added.
11216 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11218 * FileDialog.cs: Removed need for separate fileName field. On 2.0
11219 profile, do not check filename(s) for illegal character if filename(s)
11220 were set non-interactively but always check on 1.0 profile. Fixed NRE
11221 in DefaultExt and only strip off first leading dot. Improve exception
11222 message when invalid Filter is set. Do not ignore InitialDirectory if
11223 it does no exist. Store specified Title, and if empty use default
11224 title (depending on type of dialog). Added an internal DialogTitle
11225 property for retrieving dialog title. Fixed logic of displayed dir to
11226 more closely match MS. Avoid setting ComboBox.Text to a zero-length
11227 string as its buggy.
11228 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
11229 FileName is a zero-length string (it can never be null). Override
11230 DialogTitle property to set default title of dialog box.
11231 * SaveFileDialog.cs: Override DialogTitle property to set default
11232 title of dialog box.
11234 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11236 * FileDialog.cs: Modify default text of filename and filetype labels
11237 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
11238 after we've updated the SelectedIndex. Fixes part of bug #80887.
11239 * SaveFileDialog.cs: Set text of filetype label.
11241 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11243 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
11244 label field. Needed by latest Jackson's fixes for ListView.
11246 2007-02-16 Andreia Gaita <avidigal@novell.com>
11248 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
11249 print preview images.
11251 2007-02-16 Jackson Harper <jackson@ximian.com>
11253 * ListView.cs: Make AfterLabelEdit work correctly.
11254 * FileDialog.cs: After changing the name of the folder, we have to
11255 make sure that it is created, or that we pop up an error because
11258 2007-02-16 Jackson Harper <jackson@ximian.com>
11260 * X11Dnd.cs: Implement aliases on mime handlers, so things like
11261 System.String are mapped to text.
11262 - Handle dataobjects, getting all the possible formats out of them
11263 - We dont need the drag event args before we give feedback. This
11264 allows feedback cursors to be immediate before selections have
11267 2007-02-16 Jackson Harper <jackson@ximian.com>
11269 * TextBoxBase.cs: Modified the method for inserting images to
11270 taking a line and position instead of tag and position.
11271 * RichTextBox.cs: Handle PngBlip data by inserting the png image
11273 * TextControl.cs: Allow images to be inserted as the first tag of
11275 - Fix some off by one issues when we assume the first tag is a
11276 text tag, not an image tag.
11278 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11280 * ListView.cs: Set focus to ListView when ItemControl gets a
11281 WM_RBUTTONDOWN message, to mimic .Net behaviour.
11282 Fixes part of #80467.
11284 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11286 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
11287 validate Text input (if null or empty string reset Value to default
11288 value). Fixes #80830.
11290 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11292 * ListView.cs: Set owner as null for columns and items when
11293 Dispose is invoked. Fixes #80607.
11295 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
11297 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
11298 showing DropDowns, don't show a Grip when doing Flow layout.
11299 [This fixes the toolbox in PDN 2.72.]
11300 * ToolStripItem.cs: Add Anchor property and some internal properties to
11301 reduces needed changes to FlowLayout.
11302 * ToolStripOverflow.cs: Remove unused variable.
11303 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
11304 use it in the layout calculations.
11306 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11308 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
11309 reported in #79640.
11311 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
11314 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11316 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
11317 MeasureString format, it can make button very large in some cases, it is
11318 strange but is what win32 do.
11320 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11322 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
11325 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
11326 rendering, the value is based on MenuAccessKeysUnderlined.
11328 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11330 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
11333 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
11335 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
11336 and use MenuAccessKeysUnderlined instead.
11338 2007-02-13 Andreia Gaita <avidigal@novell.com>
11340 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
11341 A selected control would not get a Focus call if:
11342 - the default active control of the container is the same as
11343 the one that was selected
11344 - we are switching from one container to another
11345 Under these conditions, the container being selected already has
11346 an active_control, which is the same as the one being activated,
11347 so set_ActiveControl would always return and not send the Focus
11348 call. Fix to check if the currently active control of the container
11349 is actually focused.
11351 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
11353 * StatusStrip.cs: Implement the spring layout.
11354 * ToolStripControlHost.cs: Make sure the hosted control's visibility
11355 always matches the host.
11356 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
11357 and TextAfterImage.
11359 2007-02-13 Andreia Gaita <avidigal@novell.com>
11361 * Control.cs: Code reorganization only.
11362 - Reorganize the WndProc cases so that each case has it's own handling method,
11363 to help with the no-line-numbering stack traces.
11364 - Formatting changes (it's vstudio's fault, really :p)
11366 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11368 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
11369 Thread.CurrentUICulture to match DateTimePicker's (and MS)
11372 2007-02-12 Jackson Harper <jackson@ximian.com>
11375 * TextBox.cs: By default we have a non multiline document
11376 - use the multiline property instead of the internal variable
11377 * TextBoxBase.cs: Treat multiline and non multiline the same in
11379 - Use the documents multiline flag instead of tracking it ourself
11380 * TextControl.cs: Attempt at getting multiline to match MS
11381 behavior. Lines now track an offset, which is either their X or Y
11382 offset depending on whether or not we are in multiline mode.
11383 - Update all the methods to understand that lines have an X value.
11384 - Fix crash in Undo::Duplicate when empty lines are deleted.
11386 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11388 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
11389 code moved to properties PreferredHeight and PreferredWidth. It solve the
11390 all problems when preferred sizes must be recalculated. Fixes #80801.
11392 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11394 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
11395 font height when compatible_text_rendering is false. Partially fix #80801.
11397 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11399 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
11401 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11403 * Form.cs: Improved exception messages in ShowDialog.
11405 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11407 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
11408 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
11409 if not set. Fixes bug #80764. Avoid accessing current_settings field
11412 2007-02-08 Everaldo Canuto <everaldo@simios.org>
11414 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
11417 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
11418 public in 2.0 and for easy maintenance and dont break compatibility it is
11421 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11423 * ToolStripItem.cs: Implement using images from ImageList.
11425 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11427 * DateTimePicker.cs: Change default date-formatting culture from
11428 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
11429 seems to be the way MS does it.
11431 2007-02-08 Andreia Gaita <avidigal@novell.com>
11433 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
11434 (the 6 was cut off on the right side)
11436 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11438 * Form.cs: Tell MenuStrips to close when the form is clicked.
11439 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
11440 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
11441 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
11442 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
11443 support for Overflow, where items that do not fit are automatically
11444 reparented to a drop down menu.
11445 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
11446 Also: fixes bug #80747.
11448 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11450 * ComboBox.cs: Remove warning (unused code).
11451 * ScrollableControl.cs: Remove warning for 1.1 profile.
11453 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11455 * Form.cs: Remove a warning.
11457 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11459 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11460 'g' specifier, not documented anywhere, but seems to always show up
11461 as a single space (might have something to do with the DateTime 'g'
11462 specifier, which is the era format, but since DateTimePicker can't
11463 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11464 won't crash if the format has an unmatched quote. Now shows
11465 single-character formats correctly. Fixes #80744.
11467 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11469 * StatusStrip.cs: Stretch property needs to call base.Stretch,
11470 not this.Stretch to fix stack overflow. [Fixes bug #80760]
11472 2007-02-07 Chris Toshok <toshok@ximian.com>
11474 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11475 background color. it overwrites the background image we've
11476 already painted. Fixes #80599.
11478 2007-02-07 Chris Toshok <toshok@ximian.com>
11480 * DataGrid.cs: return immediately from Edit() when there are no
11481 columns. Fixes #80662.
11483 2007-02-07 Chris Toshok <toshok@ximian.com>
11485 * MessageBox.cs: fix #80625. don't always show the Help button in
11486 2.0. use the displayHelpButton parameter to determine if we
11487 should show it. Also, make the internal show_help field private.
11489 2007-02-07 Chris Toshok <toshok@ximian.com>
11491 * Control.cs (SetVisibleCore): check in the proposed patch for
11492 80604, and set is_visible before calling CreateControl.
11494 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
11496 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
11497 MonoInternalNote. This is added automagically by VS2005, so let's not crash
11500 2007-02-06 Everaldo Canuto <everaldo@simios.org>
11502 * MenuAPI.cs: hotkey_active internal field added, it is required because
11503 we need to know when hotkeys must be draw, before this change a keystate
11504 Navigating was used but we can have menu in navigating state without
11505 hotkeys. Fixes #80694.
11507 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11509 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11511 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11512 corresponding events and methods to be internal for 1.1 profile and
11513 public for 2.0 profile (required by SizeGrip).
11514 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11515 implicit control list). Don't set the size nor the location of the
11516 SizeGrip anymore as it's not needed.
11517 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11518 draw directly on the captured control (fixes #80656). Removed
11519 ShowGrip (it wasn't used anywhere), redraw (always true), added
11520 GetDefaultSize and GetDefaultRectangle to calculate defaults.
11521 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11522 be called from SizeGrip.
11524 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11526 * Timer.cs: Throw ArgumentException if Interval <= 0.
11528 2007-02-05 Jackson Harper <jackson@ximian.com>
11530 * TreeView.cs: We need to check scrollbar visibility when window
11531 visibility is updated, because non visible trees don't ever add
11533 * Cursor.cs: We want the override cursor to be reset to NULL when
11534 we set current cursor to the default cursor.
11536 2007-02-05 Jackson Harper <jackson@ximian.com>
11538 * TextControl.cs: Don't have crlfs when we are non multiline.
11539 - Consolidate the line position.
11541 2007-02-05 Jackson Harper <jackson@ximian.com>
11543 * X11Keyboard.cs: BACK+CTRL gets a special char code.
11545 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11547 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11548 handling LeaveNotify->NotifyUngrab in order to send
11549 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11550 after calling XUngrabPointer, so we call WindowUngrabbed directly
11551 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11552 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11553 MouseCaptureChanged correctly. Also create handles if changing
11554 Capture (matches MS behaviour).
11556 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11558 * SizeGrip.cs: Make the last change 2.0 only.
11560 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11562 * SizeGrip.cs: If resizing and the capture is lost, revert any size
11563 changes to initial size (fixes #80597).
11565 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11567 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11569 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11571 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11572 background) and only allow dragging if enabled. This way the
11573 sizegrip can be used to fill the open square that otherwise would
11574 have been shown in the bottom right corner of ScrollableControl
11575 when ScrollableControl is not suppose to support sizing.
11576 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11577 sizegrip is shown and enabled, and hook up with necessary events.
11579 2007-02-01 Chris Toshok <toshok@ximian.com>
11581 * DataGridTextBoxColumn.cs: clean up the
11582 GetFormattedString/GetColumnValueAtRow combination of functions.
11583 Also fix UpdateUI, and the initial state of
11584 IsInEditOrNavigateMode.
11586 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11587 aren't supposed to scroll the textbox here, we're supposed to
11588 scroll the datagrid.
11590 2007-02-01 Chris Toshok <toshok@ximian.com>
11592 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11593 setting the position.
11595 2007-02-01 Chris Toshok <toshok@ximian.com>
11597 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
11598 here, since the most recent focus fixes keep us from generating
11599 the Leave event when our textbox gets focus.
11600 (Edit): we should be passing null for the column style's
11601 instantText parameter.
11603 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
11605 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
11606 raised. Fixes menu text/icons not showing up in PDN.
11608 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11610 * Control.cs: Remove code in constructor that makes every
11611 control with WS_CHILD set have initial location -1, -1.
11613 2007-01-31 Jackson Harper <jackson@ximian.com>
11615 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
11617 * XplatUIX11.cs: Give teh keyboard to teh dnd.
11619 2007-01-31 Jackson Harper <jackson@ximian.com>
11621 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
11622 - Remove some debug code.
11624 2007-01-31 Jackson Harper <jackson@ximian.com>
11626 * XplatUIX11.cs: If you set the override cursor during a grab, it
11627 should actually override the grab cursor. This comes into play
11628 when you are setting custom cursors in a DND feedback method.
11630 2007-01-31 Jackson Harper <jackson@ximian.com>
11632 * X11Dnd.cs: Add support for handling the QueryContinue and
11633 GiveFeedback events.
11634 - Cancel drag and drop actions when the escape key is clicked.
11635 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
11636 can handle the ESCAPE key.
11637 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
11638 done when dnd events are continued after the button is released.
11639 - Add a new helper method so that dnd can translate key events.
11641 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
11643 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
11644 make it more obvious what is happening.
11646 2007-01-30 Jackson Harper <jackson@ximian.com>
11648 * XplatUIX11.cs: Don't break when handling button release in drag
11649 and drop operations. We need that BUTTONUP message to get through
11650 so capture is released.
11651 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
11652 this is handled automatically when the mouse is down.
11654 2007-01-30 Jackson Harper <jackson@ximian.com>
11656 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
11657 is closed, so we need to make sure that we aren't changing the
11658 dialog result when the OK (Open or Save) button has been clicked
11659 and we are closing the window ourselves. Note we don't need to
11660 worry about the cache being written in this case, because it was
11661 already done in the previous FilOk call.
11663 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11665 * DateTimePicker.cs: Remove a warning.
11666 * ComboBox.cs: Remove a couple of warnings.
11668 2007-01-29 Chris Toshok <toshok@ximian.com>
11670 * XplatUIX11.cs: don't crash, and remove the icon if the user has
11671 set one, if SetIcon is passed a null icon.
11673 2007-01-29 Andreia Gaita <avidigal@novell.com>
11675 * TextBox.cs: Redraw when the password characters changes
11676 * TextControl.cs: Check if textbox has a password char and draw
11677 a line of password chars instead of the text in the line. LineTag gets
11678 an extra Draw() method which allows document.Draw to override the text
11679 that will be drawn. Removes 1024 char limitation on length of passworded
11682 2007-01-29 Jackson Harper <jackson@ximian.com>
11684 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
11685 single chars is not.
11687 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
11689 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
11690 one pixel. Fix a StackOverflowException caused by an overload wrongly
11693 2007-01-26 Everaldo Canuto <everaldo@simios.org>
11695 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
11696 also remove ProcessArrowKey and put the code inside ProcessKeys.
11698 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
11700 * PaddingConverter.cs: Added.
11702 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11704 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
11705 ShowPanels is false (fixes #80600). Only draw up to 127 characters
11706 of text (fixes #80601). For panels clip the text to draw to the
11707 panel (fixes #80603).
11709 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11711 * ComboBox.cs: Fixed implementation of ResetText.
11713 2007-01-25 Jackson Harper <jackson@ximian.com>
11715 * TextControl.cs: For the last char of a line we need to use the
11716 line size, not that chars width, since it won't actually be
11717 computed since the right side of a char is based on the start of
11718 the left side of the next char, and the next char does not exist.
11720 2007-01-25 Chris Toshok <toshok@ximian.com>
11722 * Splitter.cs: fix the new unit tests, and reindent some switch
11725 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11727 * ComboBox.cs: Implemented 2.0 methods and events.
11728 * TextBoxBase.cs: Added OnTextUpdate, so that
11729 ComboBox.ComboTextBox can inform ComboBox of it.
11731 2007-01-25 Jackson Harper <jackson@ximian.com>
11733 * TextControl.cs: Respect ShowSelection when deciding whether or
11734 not to display the caret, this allows comboboxes to have carets
11735 when the combotextbox does not have focus.
11737 2007-01-25 Jackson Harper <jackson@ximian.com>
11739 * TextControl.cs: Add a Suspend/Resume for updating, basically the
11740 same as the Suspend/Resume for recalc, except this will do actual
11742 - New Undo manager, works much like the MS version.
11744 * TextBoxBase.cs: The Cut operation is undoable.
11746 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11748 * TextBoxBase.cs: Don't antialias text. Makes it look way better
11749 on Windows (no difference on Linux).
11751 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11753 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
11754 we don't want to activate any windows. Fixes #79433.
11756 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
11758 - ButtonBase.cs: Fix capitalization of parameter: disposing.
11761 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
11764 - Move to using System.ComponentModel.EventHandlerList
11765 - Replace Refresh with Invalidate
11766 - Clear the mime filecache on closing
11767 - Some other memory reducing work. After beeing closed FD now uses
11768 only about 300 KB for the fdo mime stuff plus the memory of the
11770 * Mime.cs: Changed coding style and removed unnecessary commented
11771 code. Some more memory memory reducing work.
11773 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11775 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
11776 a few other missing 2.0 properties.
11777 * Theme.cs: Added DrawFlatStyleComboBox.
11778 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
11780 2007-01-24 Chris Toshok <toshok@ximian.com>
11782 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
11783 wake_waiting flag, not just when there's data to be read. if we
11784 don't, then future wakeup's won't reach us and we'll be doomed to
11785 wait for the entire 1 second timeout forever (unless there are X
11788 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
11790 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
11791 until you pass Items.Count, not Items.Count - 1 like 1.1.
11793 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
11795 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
11797 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
11799 * ToolStripContainer.cs: The recent Dock fix exposed that I was
11800 adding the panels in the wrong order.
11802 2007-01-24 Jackson Harper <jackson@ximian.com>
11804 * TextBoxBase.cs: When we move the caret we also need to move the
11805 selection, this fixes some random crashing after doing select
11806 text, unselect, delete a char, paste.
11808 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11810 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
11812 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11814 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
11815 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
11816 * ToolBar.cs: Force redraw in BackgroundImageChanged.
11818 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11821 - Implement support for vertical toolbars. Fixes #80539;
11822 - Call LayoutToolBar when resize, it fix some other problems in layout.
11823 - Rename requested_height to requested_size, as we can have width on it
11824 when toolbar is vertical.
11825 - Create a private property "Vertical" that uses Dock to verify when
11826 toolbar is vertical or not.
11827 - Set ControlStyles when change Dock property.
11828 - Refactory in LayoutToolBar to have better variables names and to support
11830 - Fixes default value for ButtonSize when button count is equal zero, size
11831 must be (39, 36) test case writed.
11833 2007-01-23 Chris Toshok <toshok@ximian.com>
11835 * Control.cs: fix the checks so that they work correctly for mdi
11838 2007-01-23 Chris Toshok <toshok@ximian.com>
11840 * Control.cs: ControlCollection seems to have super-secret
11841 abstraction breaking knowledge of Mdi containers. allow MdiClient
11842 to add toplevel controls.
11844 2007-01-23 Chris Toshok <toshok@ximian.com>
11846 * Control.cs: throw an ArgumentException if a toplevel control is
11847 added to our control collection from ControlCollection.Add, as
11848 well as from ControlCollection.IList.Add. This fixes the
11849 ControlSetTopLevelTest.TestTopLevelAdd unit test.
11851 Also, in ControlCollection.IList.Add, don't through an
11852 ArgumentNullException, throw an ArgumentException, when value ==
11853 null. This matches MS.
11855 2007-01-23 Chris Toshok <toshok@ximian.com>
11857 * BindingSource.cs: initial, incomplete, implementation of
11860 2007-01-23 Jackson Harper <jackson@ximian.com>
11863 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
11864 that I can fix a broken unit test (TextBoxTest::ClearUndo)
11866 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11868 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
11870 2007-01-23 Andreia Gaita <avidigal@novell.com>
11872 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
11873 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
11874 IndexOfKey() for 2.0
11876 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11878 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
11879 to prevent it from changing z-order.
11880 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
11881 leave UI updates in MdiWindowManager.
11882 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
11883 1 sized (NC handling goes weird on Linux otherwise).
11884 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
11885 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
11886 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
11887 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
11888 and SetWindowState(s) to allow for changing the size of an activated child
11889 before activating it (reduces a lot of flicker).
11891 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11893 * Form.cs: Changing FormBorderStyle has different semantics based
11894 on whether the Form is visible or not. If not visible, don't change
11895 the Size. But InvalidateNC needs to be called to force the window
11896 to pick up the changes and redraw itself. [Fixes bug #80574]
11898 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11901 * ContainerControl.cs: ProcessCmdKey.
11902 * ErrorProvider.cs: new constructor.
11903 * Form.cs: fix AutoValidateEvent compiler warning.
11904 * Label.cs: fix OnAutoSizeChanged compiler warning.
11905 * MenuStrip.cs: fix CanOverflow compiler warning.
11906 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
11907 * TextBox.cs: Dispose.
11908 * ToolStrip.cs: CanOverflow, re-enable double buffering.
11909 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
11910 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
11911 * ToolStripItem.cs: Overflow, RightToLeft properties.
11913 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11915 * Form.cs: Move the layout of the main form to MdiWindowManager.
11916 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
11917 do a layout of the main window to update MdiClient's client area to
11918 the right area. Fixes #80533. Remove the calculation of nc size,
11919 it was just wrong and the correct one is the same as for
11920 InternalWindowManager.
11922 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
11924 * Control.cs: Setting Anchor or Dock needs to reset the other
11925 to its default. [Fixes bug #80556]
11927 2007-01-20 Chris Toshok <toshok@ximian.com>
11929 * CheckedListBox.cs: class status changes.
11931 * ScrollableControl.cs: same.
11933 * RichTextBox.cs: same.
11935 * ContainerControl.cs: same.
11937 * ListView.cs: same.
11939 * NotifyIcon.cs: same.
11941 * MenuStrip.cs: same.
11943 * RadioButton.cs: same.
11945 * CheckBox.cs: same.
11947 * PrintPreviewDialog.cs: same.
11951 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
11953 * TreeNode.cs: Apply Alan's patch for Name property.
11955 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11957 * Form.cs: Implemented SizeGripStyle.
11958 * SizeGrip.cs: Check for minimum and maximum size for the
11959 control being resized and only resize if size has actually
11962 2007-01-19 Chris Toshok <toshok@ximian.com>
11964 * DataGridColumnStyle.cs: stop setting _readonly in the
11965 PropertyDescriptor setter. fixes a unit test failure.
11967 also, rename ParentReadOnly to TableStyleReadOnly, and have it
11968 just consult our table style (if we have one). We don't need to
11969 consult the datagrid readonly attribute because that's passed in
11970 as the _ro arg to Edit. this simplifies things a little.
11972 * DataGrid.cs: use CurrentColumn instead of
11973 current_cell.ColumnNumber just to simplify some of the code.
11975 switch the order of some things in the CurrentCell setter to keep
11976 the previous cell from getting a textbox again -
11977 EnsureCellVisibility causes scrolling to happen, which calls Edit.
11978 So we need to set the new cell before calling it.
11980 call Edit in OnEnter, as does Microsoft.
11982 also, make sure the current table style isn't the one we create
11983 initially when checking to see if it's different than the one
11984 we're setting it to in BindColumns (this fixes #80421).
11986 * GridTableStylesCollection.cs: table styles can have "" for a
11987 mapping name. part of the fix for #80421.
11989 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
11990 Edit significantly.
11992 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11994 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
11995 and less GDI object leaky-er.
11997 2007-01-18 Andreia Gaita <avidigal@novell.com>
11999 * LinkLabel.cs: Add opaque control style
12001 2007-01-18 Jackson Harper <jackson@ximian.com>
12003 * TextControl.cs: Calculate width properly.
12004 - Don't store the tag's X offset, this can be figured out very
12006 - When getting the caret tag make sure to get the last empty tag.
12008 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12010 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
12013 * Control.cs: Color.Empty shouldn't count for previous transparent
12016 2007-01-18 Jackson Harper <jackson@ximian.com>
12020 * TextControl.cs: Starting to merge in some pieces of my older
12021 undo work. Basically just some slight cleanup of the undo API.
12023 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12025 * TrackBar.cs: Fix signature of RightToLeftLayout.
12026 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
12027 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
12028 * Application.cs: Implemented UseWaitCursor.
12030 2007-01-18 Jackson Harper <jackson@ximian.com>
12032 * TextControl.cs: We can't skip tags if any part of the tag is
12035 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12037 * ContainerControl.cs: Override OnLayout.
12039 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12041 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
12043 * ContextMenuStrip.cs: Make sure context menu is shown on top of
12046 2007-01-18 Chris Toshok <toshok@ximian.com>
12048 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
12049 (leftover from the container_selected days, I'd wager). fixes bug
12052 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12054 * Control.cs: Apply patch from George to fix the new testcase on
12055 bug #80451. We can't just check for Color.Transparent, we need
12056 to check if the back color's alpha channel is < 255.
12058 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12060 * Form.cs: Move setting show_icon = true to before the constructor
12061 so that the base constructor has that information when it calculates
12062 the form's size. Was causing forms to be (6, 6) bigger than they
12063 were supposed to be. Thanks for catching this Rolf!
12065 2007-01-18 Jackson Harper <jackson@ximian.com>
12067 * TextControl.cs: When replacing a selection we need to invalidate
12068 from the initial selection start, because selection start is moved
12069 to the end of the replacement.
12071 2007-01-18 Andreia Gaita <avidigal@novell.com>
12073 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
12075 2007-01-18 Chris Toshok <toshok@ximian.com>
12077 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
12080 2007-01-17 Everaldo Canuto <everaldo@simios.org>
12082 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
12083 layout methods and properties from ToolBarButton must be available
12084 into ToolBarButtonInfo.
12086 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12088 * Control.cs: If the control has a transparent background, we
12089 need to refresh it when it moves and when it's parent's background
12090 image changes. [Fixes bug #80451]
12092 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12094 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
12096 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12098 * XplatUIWin32.cs: Implement proper double buffering for Windows.
12099 [Fixes bug #80447, and probably speeds up things as well]
12101 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12103 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
12104 * XplatUIWin32.cs: We need to recalculate NC size after changing
12105 window style to toolwindow (otherwise the client rectangle will be
12106 3 pixels to small for some reason).
12107 * MdiWindowManager.cs: Revert NC size calculations to match how
12108 they are calculated only based on window styles (to match
12109 Win32AdjustWindowRectEx, since otherwise when setting size or
12110 location, Control will call Win32AdjustWindowRectEx to update client
12111 size, which would provoke a paint, then we'd get a NCCALCSIZE and
12112 calculate a different value of client size causing another paint
12114 * InternalWindowManager.cs: When moving or resizing a window only
12115 update size or location if they actually changed.
12116 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
12117 (seems to match Windows behaviour better). Cleaned up
12118 ManagedWindowDecorations to draw what's needed and nothing else
12119 (was drawing borders and lines where they shouldn't be)
12120 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
12121 (style = 0xFFFF) and takes into account caption height when
12122 calculating window rectangle.
12124 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12126 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
12127 can be added to toolbar multiple times, we need to maintain a list of
12128 button information for each positions.
12130 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12132 * ToolBar.cs: Some small stetic changes.
12134 2007-01-16 Jackson Harper <jackson@ximian.com>
12136 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
12137 that allow us to have nested recalc = false blocks.
12138 - Add paste support for images in the RichTextBox
12139 * RichTextBox.cs: flush the text after the color is changed, so
12140 the change takes effect.
12141 - Use SuspendRecalc
12142 - Some extra debugging info
12143 * TextControl.cs: Tags no longer track their length, it is just
12144 computed from the next tags length, this makes things a little
12145 simpler and reduces places that we have to track length changes.
12146 - Refactored the linetag class a little so we could make it
12147 a base class for different kinds of tags
12148 - Created a image tag, a tag that can have a single image inserted
12150 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
12151 that we can call suspend multiple times.
12152 - Add some debugging methods
12154 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12156 * MdiClient.cs: Add ActivatePreviousChild for
12157 mdi child window navigation.
12158 * Form.cs: Use MdiClient.ActivateNextChild/
12159 ActivatePreviousChild instead of Form.SelectNextControl
12160 to select the next/previous child since
12161 SelectNextControl doesn't do it in the same order
12162 as mdi children should do it.
12164 2007-01-16 Chris Toshok <toshok@ximian.com>
12166 * Control.cs: remove container_selected field.
12168 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12170 * MdiClient.cs: Update main form's ActiveChild when
12171 updating keyboard focus for the mdi child.
12173 2007-01-16 Jonathan Pobst <jpobst@novell.com>
12175 * Control.cs: PreferredSize fix.
12177 * Form.cs: Add several 2.0 events, properties, and methods.
12179 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
12181 * Form.cs: Provide meaningful message when MdiParent is assigned a
12182 Form that is not an MdiContainer.
12184 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12186 * MdiClient.cs: Update main form's ActiveChild when
12187 activating a mdi child.
12189 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12191 * MdiWindowManager.cs: Fix NRE when merging menus and main form
12192 doesn't have a menu.
12194 * Form.cs: Request NCRecalc after creating a mdi child window.
12195 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
12196 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
12198 * MdiClient.cs: Add new method SendFocusToActiveChild that either
12199 sends keyboard focus to the active child, or to the MdiClient
12200 if there are no child forms.
12202 2007-01-15 Chris Toshok <toshok@ximian.com>
12204 * ListView.cs: drop the *Internal overrides, just do our work in
12205 ItemControl's WndProc instead.
12207 * UpDownBase.cs: a few large changes. Fix up the Selectable state
12208 of the various controls, and forward the events properly (in the
12209 same manner as MS) from the textbox to the UpDown. Also the
12210 ActiveControl of the UpDownBase gets set properly now. Finally,
12211 we don't call UpdateEditText from the ctor. Fixes bug #79957.
12213 * NumericUpDown.cs: set Text in the ctor.
12215 * DomainUpDown.cs: call UpdateEditText in the ctor.
12217 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
12218 so even a Selectable = false textbox can be focused if you click
12221 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
12222 just add their handling in their respective WndProc's. Also add
12223 an explicit FocusInternal method that doesn't consult CanFocus
12224 before calling Select(this).
12226 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
12227 do our work in WndProc instead.
12229 * TabControl.cs: same.
12231 * ComboBox.cs: same.
12233 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12235 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
12238 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12241 * ThemeWin32Classic.cs: Don't draw the item text outside
12242 item bounds in Details view, as well as use trimming.
12245 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12247 * Form.cs: Implement Form.ShowIcon.
12249 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
12250 null, which when combined with the DlgModalFrame window style removes
12251 the icon from the title bar.
12253 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12255 * Control.cs: Call OnMouseClick after OnClick. (2.0)
12257 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12259 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
12260 menu when mdi child windows theres a menu, uses insert to get icon
12261 at first position. Partially fix #80006.
12263 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12265 * Clipboard.cs: Implement 2.0 methods.
12267 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12269 * Menu.cs: Implement Insert method of MenuItemCollection class
12272 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12274 * ListView.cs: Implement 2.0 FindItemWithText method.
12276 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12278 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
12279 to calculate menu bar size. Fixes #80290.
12281 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12283 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
12285 2007-01-11 Chris Toshok <toshok@ximian.com>
12287 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
12290 2007-01-11 Chris Toshok <toshok@ximian.com>
12292 * LinkLabel.cs: make sure to call base.Select in our Select method
12293 if it turns out we're going to be selected (i.e. if we have a link
12294 that is going to receive focus). That way our container's
12295 ActiveControl is updated properly.
12297 2007-01-11 Chris Toshok <toshok@ximian.com>
12299 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
12300 they have 1 or more links. this fixes the crash gert reported.
12302 2007-01-11 Andreia Gaita <avidigal@novell.com>
12304 * ContainerControl.cs: Remove ContainerSelected flag, not needed
12307 * Control.cs (Controls.Add): Check if control to be added to the collection
12308 is a top level control, and throw an ArgumentException if it is.
12309 Remove ContainerSelectedFlag, not needed anymore.
12311 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
12312 top most control doesn't activate the form. This fixes a problem in the
12313 MessageBox, where the default button wouldn't get focus because the form
12314 was activated before being Loaded - when the Owner is set, SetTopMost is
12315 called, and it would activate it.
12317 2007-01-11 Jonathan Pobst <jpobst@novell.com>
12319 * Button.cs: When clicked and setting the parent form's DialogResult,
12320 use FindForm instead of Parent, since parent could be a container
12321 control and not the Form. Fixes bug #80495.
12323 2007-01-10 Chris Toshok <toshok@ximian.com>
12325 * Form.cs: move the call to SendControlFocus into the same
12328 2007-01-10 Chris Toshok <toshok@ximian.com>
12330 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
12331 It breaks in the face of the new ActiveControl stuff, and should
12334 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
12335 activecontrol's focus if it's not already set, after we set
12336 ActiveControl, but before we call OnActivated. Re-fixes #79667
12337 after the previous focus/active control fixes regressed it.
12339 * Control.cs: reindent some code.
12341 2007-01-10 Chris Toshok <toshok@ximian.com>
12343 * Splitter.cs: clearing some outstanding changes from my tree.
12344 Replace all accesses (not writes) to the internal dock_style field
12345 with the Dock property.
12347 2007-01-10 Chris Toshok <toshok@ximian.com>
12349 * Control.cs: make FireEnter, FireLeave, FireValidating, and
12350 FireValidated virtual.
12352 * Form.cs: override and don't chain up calls to FireEnter and
12355 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12357 * ListView.cs: Add more text padding space when using
12358 auto resize for columns (the previous value didn't work fine).
12360 * ThemeWin32Classic.cs: Update text position inside columns,
12361 to match the appeareance of .Net.
12363 * ColumnHeader.cs: When using auto resize, only the Width should
12364 depend on the sub items, not the Height. Also, set width after
12365 auto resizing (the value of Width should never remain as -1 or -2).
12367 2007-01-10 Chris Toshok <toshok@ximian.com>
12369 * Application.cs: fix compilation errors when debug is enabled.
12371 2007-01-10 Chris Toshok <toshok@ximian.com>
12373 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
12374 add some nice ascii art pictures and explanation of the process).
12375 (GetMostDeeplyNestedActiveControl): new utility function we need
12376 because our ActiveControl can refer to a child container with its
12379 * Form.cs (OnActivated): remove the call to SelectActiveControl
12380 from here, since you can override this method and not chain up,
12381 and winforms still sets the active control.
12382 (OnCreateControl): also remove the unnecessary SelectActiveControl
12384 (WndProc): it's actually called from the WM_ACTIVATE block, just
12385 before calling OnActivated.
12387 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
12388 inside the else. the ActiveControl setter will end up setting
12389 focus on @control. This keeps us from setting it again (and
12390 generating an extra LostFocus/GotFocus pair).
12391 (Select (bool, bool)): reindent.
12393 2007-01-10 Jonathan Pobst <jpobst@novell.com>
12395 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
12396 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
12397 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
12398 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12399 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
12400 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
12401 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
12402 ToolStripTextBox.cs: Another wave of corcompare work.
12404 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12406 * ColumnHeader.cs: Implement 2.0 AutoResize method using
12407 the Width property.
12409 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
12410 methods by callling Column.AutoResize method on columns.
12412 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12414 * Control.cs: Provide proper implementations of PreferredSize
12415 and GetPreferredSize (2.0).
12417 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12419 * Form.cs: Remove one character (!) to make my previous OnClosing
12420 stuff work for modal windows like MessageBox.
12422 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12425 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
12426 ListView.Columns to get the last displayed column. Fixes #80452.
12428 2007-01-09 Everaldo Canuto <everaldo@simios.org>
12430 * Label.cs, LinkLabel.cs: Source code identation fixes.
12432 2007-01-08 Everaldo Canuto <everaldo@simios.org>
12434 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
12435 we dont need to invalidate only borders because when we invalidate four
12436 border lines the invalidate's generates a complete redraw of button,
12437 because it now invalidate a complete rect some other redraws operations
12438 are fixed. Fixes #80196.
12440 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
12441 Remove ToolBarInvalidateEntireButton as it is not used.
12443 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12445 * Form.cs: Make sure that both OnClosing and OnFormClosing are
12446 called for 2.0 profile.
12447 * CloseReason.cs: Make class internal for 1.1.
12449 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12451 * ToolStripManager.cs: Implement FindToolStrip functionality.
12452 * ToolStrip.cs: Register and unregister with ToolStripManager.
12454 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12456 * Control.cs: This was messy. 2.0 moves much of ControlCollection
12457 to ArrangedElementCollection. Implemented this with as few #if's as
12458 possible (which is still too many).
12460 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12462 * Control.cs: Implement SizeFromClientSize() [2.0].
12464 2007-01-07 Everaldo Canuto <everaldo@simios.org>
12466 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12467 use Theme.BorderSize to calculate area instead of static value 1,
12468 by the way use new BorderStaticSize instead Border3DSize when
12469 border_static is true. Fixes #79537.
12471 * XplatUIOSX.cs: Fix call to GetClientRectangle.
12473 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12476 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12478 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12480 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12482 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12483 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12486 - border_static field added, it will used to define when a control
12487 theres 3D border but it must be static (thin).
12488 - In GetWindowRectangle use Theme.BorderSize to calculate area
12489 instead of static value 1, by the way use new BorderStaticSize instead
12490 Border3DSize when border_static is true.
12492 * XplatUIX11.cs, XplatUIOSX.cs:
12493 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12495 * Theme.cs: BorderStaticSize field added.
12497 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12499 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12501 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12503 * Control.cs: Under InternalBorderStyle call RecreateHangle to
12504 mimic same behavior than win32 that set border only in CreateParams,
12505 it fix problems under CreateParams overrides. Fix #79442 and partial
12508 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12509 of thi control you must call recreate handle.
12511 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12512 need to do anything as RecreateHangle will take care about borders.
12514 2007-01-05 Mike Kestner <mkestner@novell.com>
12516 * ListView.cs: hack to eliminate Lost/Got focus notifications on
12517 cycles between the ItemControl and parent. Fixes #80388.
12519 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
12521 * Control.cs: Lazy init layout engine. Do not directly use
12522 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12524 2007-01-05 Chris Toshok <toshok@ximian.com>
12526 * DataGrid.cs: don't forceably rebind columns in SetDataSource
12527 unless our list manager has changed (i.e. unless we have reason to
12528 believe our columns have changed). Fixes #80422.
12530 also, disable the call do BindColumns in
12531 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
12532 1.1 the event isn't raised in response to a column addition on a
12535 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12537 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12538 that inheritors can not call it if they choose. Fixes bug #80456.
12540 2007-01-05 Andreia Gaita <avidigal@novell.com>
12542 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
12543 doesn't blow up with a null exception on marshalling.
12545 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12547 * Control.cs: Implement several 2.0 protected properties and methods.
12548 Ensure that all necessary events are being called when properties
12551 2007-01-05 Mike Kestner <mkestner@novell.com>
12553 * ListView.cs: implement PgUp/PgDn for Details view. Also
12554 fixes First/LastVisibleIndex to use the item_control.ClientRect
12555 instead of the parent control. Fixes #80378.
12557 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
12559 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12560 determine whether to use yard-pound or not (bug #78399).
12562 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12564 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12565 problems. So it is time to bring back the old popupbutton colors.
12567 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12570 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12571 property by using the internal information of the
12572 columns order in ListView.
12574 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
12576 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12577 Add 2.0 Tag properties.
12579 * LinkArea.cs: Add 2.0 ToString method.
12581 2007-01-03 Chris Toshok <toshok@ximian.com>
12583 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12584 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
12585 when we're editing, which fixes #80047.
12587 2007-01-03 Chris Toshok <toshok@ximian.com>
12589 * Form.cs: apply patch contributed by Dominik Seichter. fixes
12592 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
12594 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
12595 property and implementation.
12597 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
12598 for MdiWindowListItem property.
12600 * ToolStripDropDown.cs: Don't consider hidden menu items while
12601 laying out the menu.
12603 2007-01-03 Andreia Gaita <avidigal@novell.com>
12605 * SendKeys.cs: window handle is not needed in win32, so just
12606 get the active window for X after parsing keys and don't use
12607 it when building the message; it is passed by parameter to the
12608 Xplat method and used there to build the message instead. Also,
12609 wait for events to be processed on SendWait, as opposed to Send,
12610 which doesn't wait :) Playing with threads and Send() completely
12611 hangs on ms.net, only SendWait() works.
12614 X11Display.cs: Check for valid window handle.
12616 2007-01-03 Jackson Harper <jackson@ximian.com>
12618 * TextControl.cs: Need to prevent wrap calculations when replacing
12619 text (this was there before i removed it accidently).
12620 - Don't update the cursor during the positioning, just set it to
12621 selection_start at the end of the operaion.
12623 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12626 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
12628 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12630 * MonthCalendar.cs: Added Click and DoubleClick events again,
12631 but this time they only hide Control's Click and DoubleClick.
12633 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
12635 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
12636 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
12638 2007-01-02 Jackson Harper <jackson@ximian.com>
12640 * TextBoxBase.cs: We move the caret with the split now, so we
12641 don't need to explicitly move the caret after splitting. This
12642 fixes the caret bumping down an extra line on Enter.
12644 2007-01-02 Miguel de Icaza <miguel@novell.com>
12646 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
12649 * ScrollableControl.cs: Add Scroll event.
12651 2007-01-02 Mike Kestner <mkestner@novell.com>
12653 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
12654 to fix all hdr height padding codepaths. Fixes #80207.
12656 2007-01-02 Chris Toshok <toshok@ximian.com>
12658 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
12659 setting it to the Control defaults anyway, and it being after the
12660 Dock set was screwing up layout.
12661 (set_Dock): don't short circuit out of setting base.Dock. Also,
12662 no need to call UpdateStatusBar here, as it'll be re-layed out if
12665 2007-01-02 Mike Kestner <mkestner@novell.com>
12667 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
12668 to header height for width == -1. Fixes the rest of #80207.
12670 2007-01-02 Mike Kestner <mkestner@novell.com>
12672 * ListView.cs: rework the mouse event forwarding everaldo added
12673 to translate the coordinates to the parent control not
12674 raise the parent events until after we've done our work. Hover
12675 needs more work, in the case where HoverSelection is on, because
12676 the item control receives more than one MouseHover per Enter
12677 event, so we need to ensure only the "first" hover gets forwarded.
12678 Opening a minor bug for that.
12680 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
12682 * CheckedListBox.cs: Fixed SelectionMode to match MS.
12683 * ListControl.cs: Implemented AllowSelection property. Removed extra
12685 * ListBox.cs: Implemented AllowSelection property.
12687 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12689 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
12690 SelectedItem, it prevent for errors when you must disable item
12691 before perform click. Fixes #80409.
12693 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12695 * MenuAPI.cs: Prevent second level and beyond submenus to close
12696 until first level when move out side of popup.
12698 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12701 - Down submenu positin in three pixels.
12702 - Closes sub menu when mouse leaves from menu. Fixes #80402.
12704 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12706 * ThemeWin32Classic.cs:
12707 - Fix popup menu size adding one pixel on the top.
12708 - Down menu item border from two to one to mimic Win32.
12709 - Some source identation fixes.
12711 2007-01-01 Everaldo Canuto <everaldo@simios.org>
12713 * ThemeWin32Classic.cs: Use float numbers to calculate size and
12714 position of menu arrows, it fix wrong arrow size.
12716 2007-01-01 Everaldo Canuto <everaldo@simios.org>
12718 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
12719 instead of line, it simplify draw operation and fix it using 3D
12720 borders to mimic Win32.
12722 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
12724 * StatusStrip.cs: Add implementation of the sizing grip.
12726 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
12727 StatusStrip rendering.
12729 2006-12-31 Chris Toshok <toshok@ximian.com>
12731 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
12732 override the layout style (anchor/dock) of the control. assign to
12733 Dock instead. Fixes bug #80416.
12735 * ToolStrip.cs: same.
12737 2006-12-31 Andreia Gaita <avidigal@novell.com>
12739 * ContainerControl.cs: Use ContainerSelected flag to check if
12740 a Container is directly selected, or if Select is called on a
12741 non-container. If a container is directly selected, focus events
12742 should not be raised.
12743 Apply #80411 patch to throw exception on set_ActiveControl if
12744 control is the same as the current one.
12746 * Control.cs: Use ContainerSelected flag (see above).
12747 Add invalidation check to raise event but not invalidate if
12749 Apply #80411 patch.
12752 2006-12-31 Everaldo Canuto <everaldo@simios.org>
12754 * MenuAPI.cs: After click, dont close popup menu when menu is
12755 ContextMenu. Fixes #80399.
12757 2006-12-30 Chris Toshok <toshok@ximian.com>
12759 * ContainerControl.cs: make sure we throw the exception if the
12760 container control doesn't contain the control we're setting
12763 2006-12-30 Chris Toshok <toshok@ximian.com>
12765 * Control.cs (SetTopLevel): fix the exception raised by
12766 SetTopLevel for child controls.
12767 (set_Anchor): call UpdateDistances when setting the anchor type.
12768 This fixes bug #80336.
12770 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12772 * Theme.cs: For now, revert back to 8pt font.
12774 2006-12-29 Everaldo Canuto <everaldo@simios.org>
12776 * MenuAPI.cs: Set popup as active when open a ContextMenu.
12779 2006-12-29 Chris Toshok <toshok@ximian.com>
12781 * Control.cs: reorder the code in OnResize to give the same event
12784 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
12786 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
12787 TileHorizontally and TileVertically.
12789 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
12791 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
12792 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
12793 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
12794 Corrected copyright and email adress.
12796 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12798 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
12799 of Exception in FullPath property if no TreeView is associated with
12802 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12804 * Theme.cs: Marked default_font as private, and initialize it in ctor
12805 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
12807 * ThemeGtk.cs: Removed default_font intialization.
12808 * ThemeWin32Classic.cs: Removed default_font initialization.
12810 2006-12-28 Chris Toshok <toshok@ximian.com>
12812 * Control.cs: fix a couple of place where we were creating handles
12813 more aggressively than we should be. Fixes ControlRefresh unit
12816 2006-12-28 Chris Toshok <toshok@ximian.com>
12818 * Control.cs: contrary to what the comment said, Control.Dock does
12819 not supercede Control.Anchor - the last one you assign to decides
12820 the layout behavior. so we need to keep track of which was the
12821 last set. Also, fix some of the affected property arguments in
12822 PerformLayout calls, and remove an redundant parent.PerformLayout
12825 Add a VisibleInternal property, which returns is_visible. We
12826 can/should get rid of all the usage of this field elsewhere.
12828 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12830 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
12831 control style, not DoubleBuffer. Added UseDoubleBuffering property
12832 that indicates whether doublebuffering is enabled and supported.
12833 (comment from and code based on Gert Driesen's patch in #80324).
12836 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12838 * Control.cs: Fixed a NRE.
12840 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12842 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
12845 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12847 * Control.cs: Rewrote double buffering, now a seperate
12848 class handles all the buffering, no Graphics is disposed of
12849 until the painting is finished (earlier implementation
12850 would crash if the control was resized in the OnPaint,
12851 since it would cause the double buffer to be recreated
12852 and the old one disposed), a separate Graphics is
12853 created for every paint (MS behaviour and anyways the state
12854 of the Graphics would have to be saved and restored otherwise)
12856 * XplatUIDriver.cs:
12858 * XplatUI.cs: Added and implemented GetOffscreenGraphics
12859 so that we can get the graphics for the back buffer without
12860 having to create a new one and remove the offscreen_dc parameter
12861 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
12863 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12865 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
12866 Also make virtual all the key-related methods.
12868 * ListViewItem.cs: Make virtual the key related methods for
12869 ListViewSubItemCollection.
12871 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12875 * ThemeWin32Classic.cs:
12876 * Theme.cs: Initial support for Tile view in ListView,
12877 as well as the implementation of the required bits for it (Item
12880 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12882 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
12883 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
12884 Provide useful exception messages.
12886 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12888 * TrackBar.cs: Remove a warning.
12889 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
12890 when used by DateTimePicker, fixes #80287. This also requires that
12891 MonthCalendar implements it's own drawing for the yearly updown control,
12892 otherwise the Capture tracking would be too complicated. Removed the Click
12893 and DoubleClick events (according to comments they were hiding the base class
12894 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
12895 raise these events, not that they cannot be raised. It is possible to raise
12896 them by calling OnClick and OnDoubleClick). Added two internal fields in
12897 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
12898 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
12899 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
12900 event, no longer needed.
12902 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12904 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
12905 true if new value differs from current value.
12907 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12909 * Control.cs: ControlCollection.Count must be public. Fixed build of
12912 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12914 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
12916 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12918 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
12920 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12922 * Control.cs: Invalidates control including when Width and Height is
12923 equal zero or is not visible, only Paint event must be care about
12924 this. Fixes #79913.
12926 2006-12-26 Chris Toshok <toshok@ximian.com>
12928 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
12929 more corcompare work.
12931 * DataGridView.cs: fix compiler warning.
12933 * ColumnHeader.cs: some corcompare work, and also take the
12934 opportunity to make the internal fields private.
12936 * ListView.cs: fix the fallout from the above field change.
12938 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12940 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
12941 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
12942 ToolStripTextBox.cs: Fixes to events and corcompare.
12944 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12946 * ListView.cs: Call owner.OnMousexx event to propagate events from
12947 item to ListView. Fixes #80367.
12949 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12951 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
12952 if value is less than one. ItemHeight should not be set to a value
12953 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
12954 Removed extra tabs.
12956 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12958 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
12959 * ToolStripStatusLabel.cs: Add Spring for Moma.
12961 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12963 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
12964 Fixed code formatting. Removed debug code.
12965 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
12967 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12969 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
12970 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
12971 ArgumentOutOfRangeException if ColumnCount is negative. In
12972 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
12973 less than 4 or higher than 32768.
12974 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
12975 Fixed FormatProvider to return CurrentCulture unless explicitly set.
12976 Fixed IsFormatProviderDefault to return true if FormatProvider has
12977 not been explicitly set.
12979 2006-12-25 Chris Toshok <toshok@ximian.com>
12981 * Application.cs: add a couple of 2.0 events.
12983 2006-12-25 Chris Toshok <toshok@ximian.com>
12985 * Control.cs: fix compiler warning.
12987 * AxHost.cs: corcompare fixes.
12989 * ApplicationContext.cs: corcompare fixes.
12991 2006-12-25 Chris Toshok <toshok@ximian.com>
12993 * Control.cs: only update dist_right/dist_bottom if the
12994 width/height is > 0. this fixes anchored controls being resized
12995 smaller until they disappear and then resized larger again.
12997 2006-12-25 Chris Toshok <toshok@ximian.com>
12999 * Control.cs: a couple of changes. Remove dist_left and dist_top,
13000 since they're nothing more than X/Left and Y/Top, respectively.
13002 Also, move back to a per-control Bitmap/Graphics for
13003 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
13004 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
13007 2006-12-25 Miguel de Icaza <miguel@novell.com>
13009 * MessageBox.cs: Implemented overload that takes a new "bool
13010 displayHelpButton" by adding a new internal field "show_help".
13011 When clicked this will raise the HelpRequested on the owner or the
13014 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
13015 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
13017 * ListView.cs: Add support ColumnWidthChanged and
13018 ColumnWidthChanging.
13020 Add support for ColumnReordered event.
13021 (ReorderColumn): Add NET_2_0 specific support for cancelling the
13024 Very nice codebase!
13026 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
13028 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
13030 2006-12-24 Chris Toshok <toshok@ximian.com>
13032 * GridTablesFactory.cs: 2.0 corcompare work.
13034 * ToolStripContainer.cs: add "override" to
13035 ContextMenuStripChanged, and remove the local event object.
13037 * ToolStripDropDown.cs: same with a couple properties.
13039 * ToolStripPanel.cs: same with AutoSizeChanged event.
13041 * TextBoxBase.cs: add "override" to AutoSizeChanged.
13043 * Form.cs: add the remaining 2.0 events, and do some corcompare
13046 * DateTimePicker.cs: add "new" to padding.
13048 * ButtonBase.cs: use Control's use_compatible_text_rendering.
13050 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
13052 * DataGridView.cs: PaddingChanged is overridden.
13054 2006-12-24 Chris Toshok <toshok@ximian.com>
13056 * Control.cs: corecompare work here too.
13058 * DataGridViewElement.cs, DataGridView.cs,
13059 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
13060 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
13061 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
13062 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
13065 2006-12-24 Miguel de Icaza <miguel@novell.com>
13067 * Control.cs: Switched the error message on the console for a
13068 todo. A review of the code will have to cope with this anyways
13069 (since its a large feature, it is in our radar) and it was
13070 producing too much output when running PDN.
13072 * ToolStripComboBox.cs: Set the text when the SelectedIndex
13073 changes. Applications depend on this (PDN 2.72)
13075 2006-12-23 Chris Toshok <toshok@ximian.com>
13077 * TableLayoutSettings.cs: finish up the corcompare work for this
13080 2006-12-23 Chris Toshok <toshok@ximian.com>
13082 * Control.cs: make SetImplicitBounds internal, do some futzing
13083 with LayoutEngine so that it's available in 1.1, and remove the
13084 entire duplicated code mess from PerformLayout. Use
13085 System.Windows.Forms.Layout.DefaultLayout instead.
13087 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
13089 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13091 * Form.cs: Add MainMenuStrip property.
13093 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13095 * Control.cs: Add ContextMenuStrip property and implementation.
13096 Fix ContextMenu implementation to show menu centered on control when
13097 activated using the keyboard instead of showing at screen (0,0).
13099 * ToolStripDropDown.cs: Fix needed overload of Show ().
13101 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13103 * Menu.cs: Name property added for 2.0 profile.
13105 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13107 * Menu.cs: Update information about FindMenuItem, method to be
13110 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13112 * MenuAPI.cs: When deselect items deselect also selected subitems.
13114 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13116 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
13117 FindSubItemByCoord to found itens that is not active, also an
13118 cheking added to FindSubItemByCoord to search for items only
13119 in visible popup windows. Fixes #80274.
13121 2006-12-22 Everaldo Canuto <everaldo@simios.org>
13123 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
13124 internal property, it be care about change ExStyle.
13126 2006-12-22 Andreia Gaita <avidigal@novell.com>
13128 * ContainerControl.cs: set activeControl for parent forms up the
13129 tree when the new activecontrol is a container.
13130 When validating the active control, if it is a container, also
13131 raise up the validation for it's active control. Fixes #80280
13133 * Control.cs: Add internal property flag and check to prevent
13134 Focus events from getting raised when Select() is called for
13135 a ContainerControl. There are still too many focus events being
13136 raised at the moment though.
13137 Cleaned up the code a bit.
13139 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13141 * Control.cs: Added all missing 2.0 events.and
13142 fixed a couple of corcompare issues.
13143 * TrackBar.cs: Implemented missing 2.0 bits.
13144 * MonthCalendar.cs,
13145 * DateTimePicker.cs,
13146 * MdiClient.cs: Fixed some corcompare issues.
13148 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13150 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
13151 SplitterPanel.cs: corecompare work.
13153 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13155 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
13156 Clean up warnings for BackgroundImageChanged and PaddingChanged
13157 events now that they are implemented in Control.cs.
13159 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13161 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
13163 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
13164 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
13165 of TableLayoutPanel and supporting cast.
13167 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13170 - GrabWindow now confines the mouse pointer to the confine window.
13171 - Added Win32ClipCursor and Win32GetClipCursor.
13174 - Added CaptureWithConfine to be able to capture and confine
13177 * InternalWindowManager.cs:
13178 - Call CaptureWithConfine instead of Capture if we're an
13179 MdiChild (fixes #79982).
13181 2006-12-21 Chris Toshok <toshok@ximian.com>
13183 * DataGrid.cs: guard against the initial state of selection, where
13184 selection_start == -1. make sure we only select from index >= 0.
13187 2006-12-21 Chris Toshok <toshok@ximian.com>
13189 * Control.cs: we don't need to be so draconian with
13190 UpdateDistances, and we thusly don't need to call it before
13191 calling PerformLayout in ResumeLayout. Fixes bug #80289.
13193 2006-12-21 Daniel Nauck <dna@mono-project.de>
13196 TextBox.cs: Implemented AutoComplete properties.
13198 2006-12-20 Chris Toshok <toshok@ximian.com>
13200 * DataGridView*.cs: some corecompare work.
13202 2006-12-20 Jackson Harper <jackson@ximian.com>
13204 * XplatUIX11.cs: We need to hide the caret when deleting it,
13205 otherwise you get carets left lying around everywhere.
13206 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
13207 prevents getting some weird half drawn caret tracers when
13209 * TextControl.cs: Attempt to reduce the number of times we need to
13210 recreate the caret.
13212 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
13214 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
13216 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13218 * DateTimePicker.cs:
13219 - Implemented missing 2.0 bits.
13220 - Changed some default values to match MS.
13222 2006-12-20 Jackson Harper <jackson@ximian.com>
13224 * TextBoxBase.cs: When changing the font across the document we
13225 can't recalculate after changing each line, since that will cahnge
13227 - PreferredHeight is a little different than i thought.
13228 - When backspacing, move the caret before we do the actual char
13229 delete, because when that delete crosses a wrap boundary the
13230 positional information will change.
13232 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13234 * Control.cs: Added some missing 2.0 bits:
13235 BackgroundImageLayout, BackgroundImageLayoutChanged,
13236 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
13237 add IBindableComponent and IDropTarget implementation.
13239 * MonthCalendar.cs:
13240 - Added all missing 2.0 features:
13241 BackgroundImageLayout, RightToLeftLayout,
13242 OnHandleDestroyed, RightToLeftLayoutChanged,
13243 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
13245 - Rewrote all the BoldDate code, it was completely broken.
13246 - Fixed all the tests (the tests can now be re-enabled, the
13247 problems were not with the tests, but with the control, it was
13250 * DateTimePicker.cs: Changed the location where the
13251 MonthCalendar is shown.
13253 2006-12-19 Chris Toshok <toshok@ximian.com>
13255 * DataGridView.cs: add IDropTarget implementation.
13257 * ToolStripPanel.cs: add IDropTarget implementation.
13259 2006-12-19 Jackson Harper <jackson@ximian.com>
13261 * TextControl.cs: soft now means something different than what it
13262 used to mean, we want to move the caret regardless of whether or
13263 not this break was soft (would we really have wanted the caret
13264 to not move with the break in the old context?)
13265 * TreeView.cs: Make sure we factor in the vert scrollbar when
13266 calculating the horizontal scrollbar's maximum.
13268 2006-12-19 Andreia Gaita <avidigal@novell.org>
13270 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
13271 check for keywords in alternate casing, close bug #80049.
13273 2006-12-19 Chris Toshok <toshok@ximian.com>
13275 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
13276 methods (which all do nothing).
13278 * IDropTarget.cs: add the 4 missing methods.
13280 2006-12-19 Chris Toshok <toshok@ximian.com>
13282 * TableLayoutRowStyleCollection.cs: corcompare work.
13284 * TableLayoutSettings.cs: same.
13286 * TableLayoutStyle.cs: same.
13288 * TableLayoutColumnStyleCollection.cs: same.
13290 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
13292 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
13293 TableLayoutPanel I've had in my local tree for way too long.
13295 2006-12-19 Miguel de Icaza <miguel@novell.com>
13297 * TableLayoutSettings.cs: Finish the public API (still needs all
13298 the logic to update on changes).
13300 * TableLayoutPanelCellPosition.cs: new file.
13302 * TableLayoutRowStyleCollection.cs,
13303 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
13304 TableLayoutSettings.cs: Track the final 2.0 table api.
13306 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13308 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
13309 and Image List 2.0 members for ColummnHeader.
13310 * ListView.cs: Add key-related 2.0 methods for
13311 ColumnHeaderCollection.
13313 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13315 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
13316 ArgumentNullException if items argument is null. Ignore null item in
13317 arrays. Removed extra tabs.
13319 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13321 * MonthCalendar.cs: Fixed InvalidCastException.
13323 2006-12-19 Jackson Harper <jackson@ximian.com>
13325 * TextControl.cs: Don't increment the position here.
13326 - When calculating char positions only add in the line break size
13327 for hard line breaks.
13329 2006-12-19 Andreia Gaita <avidigal@novell.org>
13331 * SendKeys.cs: Changed some things to match ms.net behaviour
13332 when parsing shifted capital letters.
13334 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
13335 Add window handle as parameter to SendInput. X11 needs the
13336 window handle, and the handle being passed to it in the keys
13337 queue is the active control handle (which windows needs), not
13340 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
13341 to support SendKeys on X.
13343 * X11Keyboard: Implement helper method to lookup a linux keycode
13344 given the virtual keycode. Added table of keycode-2-virtualkey
13345 values to support this.
13347 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13349 * ListView.cs: Add support for SelectedIndexCollection
13350 and SelectedItemCollection 2.0 methods. Implement support
13352 * ListViewItem.cs: Add support for ListViewSubItemCollection
13353 2.0 methods. Also, fix an incorrect behavior of AddRange method
13354 (it shouldn't call Clear).
13355 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
13357 2006-12-19 Jackson Harper <jackson@ximian.com>
13360 * TextBoxBase.cs: New args for FormatText
13361 * TextControl.cs: Rewrote the main drawing method, this version
13362 feels a little easier to understand and debug to me. Hopefully it
13363 does to others also
13364 - Fix FormatText to OR in the new formating values. Added
13365 FormatSpecified param, basically this works in the same way as
13366 BoundsSpecified in Control.
13367 - Set the caret properties when the caret is positioned.
13368 - When wrapping text make sure that we calculate the width of the
13370 - when calculating alignments we might have wrapped down to the
13371 next line, so don't search for an individual tag, search for the
13373 - We need to invalidate the selection area when we replace the
13376 2006-12-19 Daniel Nauck <dna@mono-project.de>
13378 * Application.cs: add Restart () 2.0 support
13380 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13382 * MenuItem.cs: Invalidate menu item rectangle after change Enable
13383 property. Fixes #80268.
13385 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13387 * MenuAPI.cs: Dont trigger select event when closes top menu
13388 item. Fixes #80270.
13390 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13392 * MenuAPI.cs: When you click on menuitem only trigger onselect
13393 event for top menu itens. Fixes #80271.
13395 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13397 * MdiWindowManager.cs: Make IconicBounds depend on
13398 the bottom of MdiClient, not the top (fixes #80267)
13400 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13402 * MdiClient.cs: Added missing 2.0 attribute
13404 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13406 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
13407 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
13409 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13411 * MenuAPI.cs: Fix click when menuitem is not popup,
13412 this regression was caused by last commit (#80272).
13414 2006-12-17 Everaldo Canuto <everaldo@simios.org>
13416 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
13417 fire click event or close menu. Fixes #80272.
13419 2006-12-17 Daniel Nauck <dna@mono-project.de>
13421 * ListViewHitTestInfo.cs: add
13423 2006-12-17 Daniel Nauck <dna@mono-project.de>
13425 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
13426 * FlatButtonAppearance.cs: add
13427 * DockingAttribute.cs: add
13429 2006-12-17 Chris Toshok <toshok@ximian.com>
13431 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
13432 and rebind our columns when it does - this way, if you make
13433 changes to the DataTable (or set the Table attribute on a DataView
13434 after setting it as the DataGrid's DataSource, the changes are
13435 made visible.) Fixes bug #80107.
13437 2006-12-17 Daniel Nauck <dna@mono-project.de>
13439 * ListViewGroup.cs: add internal Location property for layouting.
13440 * Theme.cs: add abstract ListViewGroupHeight function.
13441 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
13443 2006-12-16 Andreia Gaita <avidigal@novell.com>
13445 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
13446 Added reset of selected index to 0 when adding first tab page.
13449 * NumericUpDown.cs: Fix NET_2_0 check
13451 2006-12-16 Daniel Nauck <dna@mono-project.de>
13453 * ListViewGroup.cs: fixed DefaultValueAttribute value
13455 2006-12-16 Daniel Nauck <dna@mono-project.de>
13457 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13459 2006-12-15 Miguel de Icaza <miguel@novell.com>
13461 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13462 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13463 ScrollableControl.cs: Add a handful of methods that are
13466 2006-12-15 Chris Toshok <toshok@ximian.com>
13468 * XplatUIWin32.cs: initial implementation of the Reversible
13469 drawing functions. there are some problems. DrawReversibleFrame
13470 doesn't seem to work at all for Dashed FrameStyle, and in the
13471 Thick case there are drawing errors at the corners (we probably
13472 need to bind Rectangle instead of doing moveto/lineto's.)
13474 2006-12-16 Andreia Gaita <avidigal@novell.com>
13476 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
13477 to send blocks of key messages. Send accumulates keys to send with Flush,
13478 while SendWait sends all keys immediately.
13480 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13481 XplatUIX11.cs, XplatUIX11-new.cs:
13482 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13483 to Win32 SendInput.
13484 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13486 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
13487 testing for ms.net on this class is very tricky, as the tests run too fast
13488 to allow the hook to release, essentially freezing the keyboard and the
13489 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
13492 2006-12-16 Daniel Nauck <dna@mono-project.de>
13494 * Padding.cs: fixed serialization compability to MS ("_var" field names),
13495 added missing attributes.
13497 2006-12-15 Daniel Nauck <dna@mono-project.de>
13499 * ListViewGroup.cs: Added missing attributes.
13500 * ListViewGroupCollection.cs: Added missing attributes.
13502 2006-12-15 Daniel Nauck <dna@mono-project.de>
13504 * ListViewItem.cs: fixed ListViewSubItem text property.
13506 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13508 * Control.cs: Added missing 2.0 attributes
13510 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13512 * MdiClient.cs: Added missing 2.0 attribute.
13513 * MonthCalendar.cs: Added some missing 2.0 attributes
13516 2006-12-15 Daniel Nauck <dna@mono-project.de>
13518 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13520 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
13522 * MainMenu.cs: Add the new 2.0 constructor to help out people
13523 using the MainMenu in VS2005.
13525 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13527 * MdiChildContext.cs: Removed it, no longer used.
13528 * MdiClient.cs: Added missing 2.0 attributes.
13530 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13532 * InternalWindowManager.cs: Fix a NullRef with previous
13533 changes for toolwindows.
13535 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13538 - Added AfterTopMostControl to allow for certain controls
13539 to always stay on top when normal controls are brought to
13543 - (DrawInversibleRectangle): Get window rectangle from Win32
13544 in stead of from control, since Win32 doesn't calculate
13545 screen coords correctly from control's Location if it
13546 have docked siblings.
13548 * MdiWindowManager.cs:
13549 - Correct the control menu popup location when clicked on
13550 the maximized form icon. (fixes #80223.1)
13551 - Don't show moving rectangle if mouse hasn't moved from
13552 the original clicked point.
13553 - Removed FormGotFocus handler (not used).
13554 - Calculate the control buttons location from the main
13555 window's size and not client size (fixes #79770).
13556 - Form is now closed when the form icon is double-clicked
13558 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13560 * InternalWindowManager.cs:
13561 - Moved some MDI-only methods to MdiWindowManager.
13562 - Removed unused properties and methods.
13563 - Unified method naming for methods handling wm messages.
13564 - Moved all message handling to seperate methods for
13567 * ThemeWin32Classic.cs:
13568 - DrawManagedWindowDecorations now draws the title bar
13569 with a gradient brush.
13570 - Add a CPDrawButtonInternal that allows us to specify
13571 light, normal and dark colors for the buttons (control
13572 buttons for MDI children were drawn with the same light
13573 color as the background, therefore loosing the 3D effect).
13576 - Add a CapturedControl property that is used to
13577 determine the control to resize (defaults to parent).
13578 Needed for MdiClient, since its SizeGrip's parent is
13579 MdiClient, but the control to resize is the main form.
13582 - Set SizeGrip's CapturedControl to the main form in order
13583 to resize the main form and not the MdiClient.
13584 - Override AfterTopMostControl to leave the scrollbars
13587 2006-12-15 Daniel Nauck <dna@mono-project.de>
13589 * ListView.cs: fixed ListViewItemCollection AddRange and
13590 implemented ListViewItemCollection AddRange 2.0 support.
13592 2006-12-15 Daniel Nauck <dna@mono-project.de>
13594 * ListViewGroup.cs: Add.
13595 * ListViewGroupCollection.cs: Add
13596 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
13597 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
13598 stub for ImageKey 2.0 support.
13600 2006-12-14 Mike Kestner <mkestner@novell.com>
13602 * ListView.cs: add text padding to the autocalculation for columns
13603 of width -2. Fixes #80207.
13605 2006-12-14 Mike Kestner <mkestner@novell.com>
13607 * ListView.cs: add some index guarding for partial row navigation
13608 logic. Fixes #80250.
13610 2006-12-14 Mike Kestner <mkestner@novell.com>
13612 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
13613 are added or inserted to the collection. Fixes #81099.
13615 2006-12-13 Everaldo Canuto <everaldo@simios.org>
13617 * MenuAPI.cs: Closes menu when right click out side of popup
13618 it fix problem in ContextMenu and MainMenu. Fixes #80252.
13620 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13622 * ListViewItem.cs: Fix dumb error.
13624 * ListView.cs: Add Find and ContainsKey methods in
13625 ListViewItemCollection, and also return true for IsReadOnly
13626 and IsFixedSize (changes for 2.0).
13628 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
13630 * Control.cs: Allow Region to be set to null.
13632 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13634 * MdiWindowManager.cs: Remove unused (commented out) code.
13635 * Form.cs: When the MdiChild is maximized, the form needs
13636 WM_NCMOUSELEAVE, so request it.
13637 * InternalWindowManager.cs:
13638 - Added tooltips to control buttons.
13639 - Removed duplicated control button handling code.
13640 - Removed unused (commented out) code.
13642 2006-12-12 Everaldo Canuto <everaldo@simios.org>
13644 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
13645 was used because we must set cursor without trigger ChangeCursor event
13646 and without change Cursor control property. Fixes #79963.
13648 2006-12-12 Andreia Gaita <avidigal@novell.com>
13650 * Control.cs: Check if Region setter value is null, and ignore
13652 2006-12-12 Jackson Harper <jackson@ximian.com>
13654 * TextControl.cs: We were almost always drawing one more line then
13655 needed, since the GetLineByPixel will return the last line found
13656 at that pixel. In most cases though, we were invalidating up to
13657 the junction between two lines.
13658 - Improve debug code.
13660 2006-12-12 Chris Toshok <toshok@ximian.com>
13662 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
13663 and FillReversibleRectangle.
13665 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
13666 and FillReversibleRectangle.
13668 * XplatUIWin32.cs: add stubs which do nothing for
13669 DrawReversibleFrame, DrawReversibleLine, and
13670 FillReversibleRectangle.
13672 * XplatUIOSX.cs: add stubs which raise NIE for
13673 DrawReversibleFrame, DrawReversibleLine, and
13674 FillReversibleRectangle.
13676 * XplatUIX11.cs: add working implementation for
13677 DrawReversibleFrame, DrawReversibleLine, and
13678 FillReversibleRectangle.
13680 * ControlPaint.cs: implement DrawReversibleFrame,
13681 DrawReversibleLine, and FillReversibleRectangle, by calling into
13682 the appropriate XplatUI method.
13684 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13686 * Form.cs: Make MdiClient have the focus even if it's
13687 not selectable, since it should receive WM_KEY* and WM_MOUSE
13688 messages. Fixes #79907.
13690 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13692 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
13693 queried after the window is created.
13695 * XplatUIX11.cs: Added SendParentNotify to implement
13696 WM_PARENTNOTIFY logic. Fixes #79965.
13698 * Control.cs: Added MakeParam.
13700 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13702 * MdiClient.cs: Resume Layout before setting window
13703 states (fixes #80201).
13705 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13707 * MenuAPI.cs: Deselect a menu item after performing
13708 the click (fixes #80197).
13710 2006-12-11 Jackson Harper <jackson@ximian.com>
13712 * TextBoxBase.cs: We need to cap this value, since Maximum -
13713 ViewPortHeight can be less than zero.
13714 - Only do selection with the left mouse button.
13715 * TextBox.cs: Don't tell the world that we have a context menu.
13716 * Control.cs: New method so that we can control whether or not the
13717 context menu is visible outside MWF.
13719 2006-12-11 Everaldo Canuto <everaldo@simios.org>
13721 * ToolBarButton.cs: Fix text positon.
13723 2006-12-11 Miguel de Icaza <miguel@novell.com>
13725 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
13727 * Control.cs (DoubleBuffered): Add implementation.
13729 * Application.cs (OpenForms): Add.
13731 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
13733 * Form.cs: Use opacity instead of Opactiy to determine if we need
13734 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
13736 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
13738 * Control.cs: Fix NRE if Control.Site was set to null.
13740 2006-12-11 Chris Toshok <toshok@ximian.com>
13742 * Control.cs: ControlCollection.Remove should return if the arg is
13743 null, and ControlCollection.SetChildIndex should raise a ANE.
13745 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
13747 * Control.cs: Verify value set for Dock property. Code formatting
13750 2006-12-11 Jackson Harper <jackson@ximian.com>
13752 * TextControl.cs: Draw the caret and the selection when a flag is
13754 * TextBoxBase.cs: We want to draw the caret and the selection for
13755 TextBox but not for TextBoxBase.
13756 - If the window is resized and scrolling is no longer needed (the
13757 whole doc is visible) set the scroll position to zero.
13758 - The default SelectWord (the one TextBox uses) should move the
13759 caret to the end of the word.
13760 - SelectAll moves the caret to the end of the selection.
13761 * TextBox.cs: We don't selectall on focus, we just do it when the
13762 control is created.
13764 2006-12-11 Mike Kestner <mkestner@novell.com>
13766 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
13768 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13770 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
13772 * ListViewItem.cs: Add Name 2.0 property.
13774 2006-12-11 Andreia Gaita <avidigal@novell.com>
13776 * TabControl.cs: Set visibility on selected or default tab
13777 when tabcontrol handle is created, so that it's contents
13778 actually show up (duh). Fixes #80193
13779 Don't redraw the control if there is no handle created, as
13780 the selected index might be completely invalid. Added some tests
13783 2006-12-11 Everaldo Canuto <everaldo@simios.org>
13785 * ToolBar.cs: Uses maximun width and height of all buttons as
13786 button rectangle when ButtonSize specified, it looks strange but
13787 is what happens in Win32. Fixes #80189.
13789 2006-12-11 Jackson Harper <jackson@ximian.com>
13791 * TextControl.cs: Need to track undo levels ourself, since
13792 compound actions will mess them up.
13794 2006-12-10 Andreia Gaita <avidigal@novell.com>
13796 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
13797 SelectedIndex value is changed (even if it's not valid).
13798 Reset SelectedIndex to 0 when the handle is created and if
13799 the current index is invalid.
13800 Fixes SelectdeIndex unit tests and #80128
13802 2006-12-08 Chris Toshok <toshok@ximian.com>
13804 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
13805 calls EndEdit, it needs to be called before we set current_cell to
13806 its new value. Otherwise, we end up committing the value in the
13807 textbox to the new cell as well. Fixes bug #80160.
13809 2006-12-08 Chris Toshok <toshok@ximian.com>
13811 * Form.cs (set_CancelButton): if the button's DialogResult is
13812 None, set it to Cancel. Fixes bug 80180.
13814 2006-12-08 Jackson Harper <jackson@ximian.com>
13816 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
13817 to watch ourselves when setting the canvas size and setting the
13820 2006-12-08 Chris Toshok <toshok@ximian.com>
13822 * DataGrid.cs: comment out the two MakeTransparent calls for the
13823 time being so people using trunk (and not 1.2.2) on windows can
13824 actually use the datagrid. This deals with bug #80151.
13826 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
13828 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
13829 Graphics.DrawImage (image, int, int, int, int) overload instead
13830 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
13831 the dpi difference and was blurring images it drew.
13834 2006-12-08 Chris Toshok <toshok@ximian.com>
13836 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
13837 rowcnt is 0 (such as with an empty datasource), and make sure we
13838 initialize not_usedarea.Y to cells.Y, so we don't draw over the
13839 other areas (caption, parent row, etc, etc). Fixes bug #80095.
13841 2006-12-08 Chris Toshok <toshok@ximian.com>
13843 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
13846 2006-12-08 Chris Toshok <toshok@ximian.com>
13848 [ Fixes bug #80167 ]
13850 * ThemeWin32Classic.cs: don't draw the image if the button's flat
13851 style is FlatStyle.System.
13853 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
13854 ButtonBase.flat_style private, and switch uses of it to the public
13857 2006-12-08 Chris Toshok <toshok@ximian.com>
13859 [ Fixes bug #80121 ]
13861 * ThemeWin32Classic.cs: center the caption text in the datagrid
13864 * DataGrid.cs: lessen the amount we add to the caption height from
13865 6 to 2. 6 was making it huge.
13867 2006-12-08 Andreia Gaita <avidigal@novell.com>
13869 * UpDownBase: Handle MouseWheel call directly instead of capturing
13870 the inner textbox's OnMouseWheel. Fixes #80166
13872 2006-12-08 Jackson Harper <jackson@ximian.com>
13874 * TextControl.cs: We need to invalidate the textbox when we empty
13875 it (how had this not been discovered before?)
13877 2006-12-08 Jackson Harper <jackson@ximian.com>
13879 * TextBoxBase.cs: Reworked the mouse down code so I could get it
13880 to behave like MS, we now ignore the eventargs.Click and just
13881 track state ourself, which we were already doing anyways.
13882 - Constrain the double click handler to the double click size.
13884 2006-12-08 Chris Toshok <toshok@ximian.com>
13886 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
13887 direction if that scrollbar isn't shown. fixes bug #80158.
13889 2006-12-08 Andreia Gaita <avidigal@novell.com>
13891 * NumericUpDown.cs: Update value on getter. Fixes #79950
13893 2006-12-08 Chris Toshok <toshok@ximian.com>
13895 * MenuItem.cs: add back in the event cloning code. I didn't know
13896 how to do it in the face of the EventHandlerList work i'd done
13897 last week. Fixes bug #80183.
13899 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
13901 * Control.cs: Add an invalidate to the BackgroundImage setter.
13904 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13906 * ToolStrip*: Add some small properties reported by MoMA, fix event
13907 firing and default properties based off of unit tests, and add some
13908 attributes based off of the class status page.
13910 2006-12-07 Jackson Harper <jackson@ximian.com>
13912 * TextBoxBase.cs: Take HideSelection into account when determining
13913 whether or not to show the selection.
13914 * RichTextBox.cs: After inserting the RTF into the document move
13915 the cursor to the beginning of the document.
13917 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13919 * Control.cs: Remove static ArrayList "controls" which maintained
13920 a reference to every control created.
13921 * Application.cs: Create a static FormCollection to maintain a reference
13922 to every form created. Use it in places that formerly enumerated through
13923 the controls one looking for forms.
13924 * Form.cs: Add and remove self from above FormCollection.
13926 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
13928 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
13929 not libgdk (though it makes me wonder why I didn't have any
13932 2006-12-07 Chris Toshok <toshok@ximian.com>
13934 [ you had to know this was coming after that last commit...]
13936 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
13937 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
13938 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
13941 2006-12-07 Chris Toshok <toshok@ximian.com>
13943 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
13944 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
13945 all the behavior we need for double buffering.
13947 * XplatUIDriver.cs: implement the 3 double buffer methods using a
13948 client side Bitmap, just like the old Control-based double buffer
13949 code did. The methods are virtual, so each XplatUI driver
13950 subclass can replace the implementation to use a faster, platform
13953 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
13954 double buffer code, and clean things up a bit in the process.
13956 2006-12-06 Chris Toshok <toshok@ximian.com>
13958 * Control.cs: reindent WndProc.
13960 2006-12-06 Chris Toshok <toshok@ximian.com>
13962 [ I wanna be like BenM when I grow up ]
13964 * Hwnd.cs: create a single static Graphics object on the static
13965 Bitmap we create. use this for our text measurements.
13967 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
13968 This was causing us to allocate a backbuffer for every control,
13969 even when it wasn't flagged as double buffered. Instead use the
13970 single graphics instance. This might have implications for
13971 multithreaded applications. If we run into problems we can switch
13972 to creating 1 Graphics per control, on the static Hwnd bitmap.
13974 this change nets us a 7M savings in private dirty mappings when
13975 running FormsTest.exe.
13977 2006-12-06 Chris Toshok <toshok@ximian.com>
13979 * ListView.cs: the BackgroundImage override is just to set
13980 attributes. chain up to base.BackgroundImage.
13982 * RichTextBox.cs: same.
13984 * ToolBar.cs: same, but we need to also redraw the toolbar when it
13985 changes, so instead a handler for BackgroundImageChanged.
13987 * Control.cs: make background_image private.
13989 2006-12-06 Chris Toshok <toshok@ximian.com>
13991 * ScrollBar.cs: change the assignment of cursor to Cursor. not
13992 sure we even need this assignment, but roll with it for now.
13994 * Control.cs: make the cursor field private.
13996 2006-12-06 Chris Toshok <toshok@ximian.com>
13998 * Form.cs: we don't need to explicitly set ImeMode to
13999 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
14000 behavior in the face of ImeMode.Inherit.
14002 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
14003 change the ctor's assignment to use ImeMode instead of ime_mode.
14005 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
14006 ImeModeInherit. Only check for the parent's imemode (and return
14007 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
14008 This fixes the button unit test, which sets both ImeMode and
14009 DefaultImeMode to ImeMode.Disable.
14011 also make the ime_mode field private.
14013 2006-12-06 Chris Toshok <toshok@ximian.com>
14015 * Control.cs: make control_style private.
14017 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
14018 setting the styles to true, then setting them to false instead of
14019 reverting to their previous values.
14021 also, call SetStyle on the scrollbars instead of using
14022 control_style directly.
14024 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
14026 * FormCollection.cs: Implement. [2.0]
14028 2006-12-06 Chris Toshok <toshok@ximian.com>
14030 * Control.cs: make tab_stop private.
14032 * Label.cs: set TabStop, not tab_stop. reformat some event
14033 add/remove methods to make them more compact.
14035 2006-12-06 Chris Toshok <toshok@ximian.com>
14037 * RadioButton.cs: fix TabStop handling.
14039 2006-12-06 Chris Toshok <toshok@ximian.com>
14041 * TextBox.cs: remove the explicit assignments to has_focus.
14044 * ButtonBase.cs: remove the assignment to has_focus. Control will
14047 2006-12-06 Chris Toshok <toshok@ximian.com>
14049 * ButtonBase.cs: remove all uses of is_enabled from this code.
14050 it's always true when any of the code containing the checks is
14053 2006-12-06 Chris Toshok <toshok@ximian.com>
14055 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
14056 with different semantics (some are present in both 1.1 and 2.0
14057 profiles) so that we match MS's behavior in our unit tests.
14059 2006-12-06 Jackson Harper <jackson@ximian.com>
14061 * TextControl.cs: Make this operation undoable.
14062 * TextBoxBase.cs: Factor the border width into the preferred
14064 - implement Modified as per the spec.
14066 2006-12-06 Chris Toshok <toshok@ximian.com>
14068 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
14070 2006-12-06 Chris Toshok <toshok@ximian.com>
14072 * Control.cs: make right_to_left and context_menu fields private.
14074 2006-12-06 Chris Toshok <toshok@ximian.com>
14076 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
14077 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
14078 Control.child_controls private. switch all uses over to
14081 2006-12-06 Chris Toshok <toshok@ximian.com>
14083 * System.Windows.Forms/GroupBox.cs,
14084 System.Windows.Forms/AccessibleObject.cs,
14085 System.Windows.Forms/ErrorProvider.cs,
14086 System.Windows.Forms/Control.cs,
14087 System.Windows.Forms/UpDownBase.cs,
14088 System.Windows.Forms/ScrollBar.cs,
14089 System.Windows.Forms/DateTimePicker.cs,
14090 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
14091 System.Windows.Forms/ToolTip.cs,
14092 System.Windows.Forms/RadioButton.cs,
14093 System.Windows.Forms/LinkLabel.cs,
14094 System.Windows.Forms/Splitter.cs,
14095 System.Windows.Forms/TextBoxBase.cs,
14096 System.Windows.Forms/ToolStripTextBox.cs,
14097 System.Windows.Forms/ContainerControl.cs,
14098 System.Windows.Forms/ThemeWin32Classic.cs,
14099 System.Windows.Forms/SizeGrip.cs,
14100 System.Windows.Forms/ToolStripDropDown.cs,
14101 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
14102 private. switch all uses over to Control.Parent.
14104 2006-12-06 Chris Toshok <toshok@ximian.com>
14106 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
14107 Control does this before calling emitting these events.
14109 * TabControl.cs: same.
14111 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
14112 Control.client_rect.
14114 * ButtonBase.cs: use the ClientSize property instead of the
14117 * ScrollableControl.cs: same.
14119 * Control.cs: another pass at making properties private. also,
14120 move the initialization of tab_stop to the ctor.
14122 2006-12-05 Andreia Gaita <avidigal@novell.com>
14124 * TabControl.cs: Let the selected index be set freely if the
14125 control handle is not yet created.
14127 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14129 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
14130 internal until I can rewrite DefaultLayout.
14131 * ToolStrip.cs: Fix build error and some general cleaning.
14132 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
14133 Fix build errors caused by making some of Control's fields private.
14135 2006-12-05 Jackson Harper <jackson@ximian.com>
14137 * TextControl.cs: Redo Insert a little so that it use IndexOf
14138 instead of Split, this prevents it from messing up on things like
14139 \n\n\n. Also more effecient since the split array doesn't need to
14141 * TextBoxBase.cs: AppendText doesnt handle multiline and non
14142 multiline text differently, this is the first of many fixes that
14143 will make multiline/non-multiline the same thing as far as the
14144 TextBoxBase is concerned.
14145 - Don't split the text and insert lines, this can lose some line
14146 endings (like is the last line a soft or hard break). Instead use
14148 - Fix an off by one when combining all the lines in the Text
14150 - Remove separate multiline handling from the Text getter/setter.
14152 2006-12-05 Chris Toshok <toshok@ximian.com>
14154 * ButtonBase.cs: a few changes:
14156 - don't reinitialize internal Control fields in the ctor when they
14157 have the same values as Control sets them.
14159 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
14160 this before calling those methods.
14162 - we don't need to call Refresh for anything. use Invalidate
14165 - OnEnabledChanged doesn't need to redraw at all - Control.cs
14166 calls Refresh in its OnEnabledChanged.
14168 - several of the events we were registered for in the ctor to
14169 redraw ourselves already include calls to Invalidate in the
14170 property setters that raise the events. remove the extra
14173 - reformat a switch statement that was 83274658 columns wide.
14175 2006-12-05 Mike Kestner <mkestner@novell.com>
14177 * ComboBox.cs: fix a unit test regression from a TextBox
14178 SelectionLength return of -1 when there's no selection.
14180 2006-12-05 Chris Toshok <toshok@ximian.com>
14182 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
14183 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
14184 cleaning up some of the internal Control fields being used by
14187 2006-12-05 Mike Kestner <mkestner@novell.com>
14189 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
14190 listbox after AddImplicit calls since it defaults to hidden. Add a
14191 hack to preserve requested heights across DropDownStyle changes.
14193 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14195 * PropertyGrid.cs: Hide FindFirstItem method from public API.
14197 2006-12-05 Chris Toshok <toshok@ximian.com>
14199 * DataGridView.cs: fix compiler warnings.
14201 * PrintControllerWithStatusDialog.cs: same.
14203 * ToolBar.cs: same.
14205 * FolderBrowserDialog.cs: same.
14207 * Splitter.cs: same.
14209 * DataGridViewComboBoxCell.cs: same.
14211 * XplatUIWin32.cs: same.
14213 * PictureBox.cs: same.
14215 * Win32DnD.cs: same.
14217 * PageSetupDialog.cs: same.
14219 * FileDialog.cs: same.
14221 * PrintDialog.cs: same.
14223 * DataGridTextBoxColumn.cs: same.
14225 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
14227 2006-12-05 Chris Toshok <toshok@ximian.com>
14229 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
14230 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
14231 System.ComponentModel.EventHandlerList work.
14233 2006-12-05 Jonathan Chambers <joncham@gmail.com>
14235 * DrawTreeNodeEventArgs.cs: Added.
14237 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14239 * InternalWindowManager.cs: Remove an unused field.
14241 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14243 * InternalWindowManager.cs:
14244 - Save the point where the title bar is clicked.
14246 * MdiWindowManager.cs:
14247 - Only allow moving of the window as long as the
14248 clicked point on the title bar does not get out of
14249 MdiClient's rectangle. Fixes #79982.
14252 - Added Horizontal/VerticalScrollbarVisible.
14253 - Simplified the scrollbar sizing algorithm.
14254 - Cache the difference in scrolled value in
14255 H/VBarValueChanged and move the calculation out
14258 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14260 * Control.cs: Make the Console.WriteLine in WndProc
14263 2006-12-05 Chris Toshok <toshok@ximian.com>
14265 * ToolStripManager.cs, ToolStripButton.cs,
14266 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
14267 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
14268 ToolStripSplitButton.cs, ToolStripSeparator.cs,
14269 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
14270 ToolStripProgressBar.cs, ToolStripContainer.cs,
14271 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
14272 to using System.ComponentModel.EventHandlerList.
14274 2006-12-04 Chris Toshok <toshok@ximian.com>
14276 * LinkLabel.cs: fix up compiler warnings.
14278 * TableLayoutSettings.cs: same.
14280 * TreeView.cs: same.
14282 * ToolBar.cs: same.
14284 * TabControl.cs: same.
14286 * RichTextBox.cs: same.
14288 * ListViewItem.cs: same.
14290 * PropertyGrid.cs: same.
14292 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
14296 * TextRenderer.cs: fix up compiler warnings.
14300 * Form.cs: corcompare fixes.
14302 * PictureBox.cs: fix up compiler warnings.
14304 * ImageListStreamer.cs: same.
14306 * TrackBar.cs: corcompare fix.
14308 * Control.cs: fix up compiler warnings.
14310 * SplitterPanel.cs: same.
14312 * NumericTextBox.cs: same.
14314 * ImageList.cs: same.
14316 * StatusStrip.cs: same.
14318 * ProgressBar.cs: corcompare fix.
14320 * ToolStripButton.cs: fix up compiler warnings.
14322 * ToolStripStatusLabel.cs: same.
14324 * ToolStripSplitButton.cs: same.
14326 * ToolStripSeparator.cs: same.
14328 * ToolStripProgressBar.cs: same.
14330 * ToolStripDropDownMenu.cs: same
14332 * ToolStripDropDown.cs: same.
14334 * ToolStripDropDownButton.cs: same.
14336 * ToolStrip.cs: same.
14338 * ToolStripControlHost.cs: same.
14340 * ToolStripContentPanel.cs: same.
14342 * ToolStripDropDown.cs: same.
14344 * ToolStripContainer.cs: same.
14346 * ToolStripPanel.cs: same, and add "new" where we need it to work
14347 with the new ArrangedElementCollection.
14349 * ToolStripItemCollection.cs: add "new" where we need it to work
14350 with the new ArrangedElementCollection.
14352 2006-12-04 Andreia Gaita <avidigal@novell.com>
14354 * TabControl.cs: Fix default tab selection to after TabControl
14355 gets focus and not before. Fixes #80128
14357 2006-12-04 Chris Toshok <toshok@ximian.com>
14359 * DataGridTableStyle.cs: remove the gross calling of
14360 datagrid.Refresh from here. It's a broken idea and it doesn't
14363 * DataGrid.cs: instead, just register/unregister from the
14364 DataGridTableStyle events in CurrentTableStyle. we play it
14365 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
14366 even though some would most likely not require it. Fixes bug
14367 #80115 (and one portion of #80117 as a side effect).
14369 2006-12-04 Chris Toshok <toshok@ximian.com>
14371 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
14372 so the textbox (if any) goes away. Fixes bug #80117.
14374 2006-12-04 Chris Toshok <toshok@ximian.com>
14376 * DataGridColumnStyle.cs: set the column's readonly property
14377 initially based on the property descriptor's IsReadOnly. Fixes
14380 2006-12-04 Chris Toshok <toshok@ximian.com>
14382 * ComboBox.cs: wrap the dropdown style changing work in
14383 SuspendLayout/ResumeLayout. Fixes bug #79968.
14385 2006-12-04 Jackson Harper <jackson@ximian.com>
14387 * TextBoxBase.cs: Fix off by one, since these are one-based.
14388 * TextBox.cs: Select all the text when we get focus. The TextBox
14389 does this but the RTB does not.
14391 2006-12-04 Chris Toshok <toshok@ximian.com>
14393 * DataGridTextBoxColumn.cs: remove some spew.
14395 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
14396 but some part of me is saying "it shouldn't be here.." At any
14397 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
14400 2006-12-04 Chris Toshok <toshok@ximian.com>
14402 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
14403 to reassign the propertydescriptor.
14405 2006-12-04 Jackson Harper <jackson@ximian.com>
14408 * TextControl.cs: Remove some unused variables. Maybe this will
14409 patch things up between mike and I.
14410 - don't split lines less then one char wide, if the viewport is
14411 that small text won't be visible anyways.
14413 2006-12-04 Jackson Harper <jackson@ximian.com>
14415 * TextBoxBase.cs: Default selection length is -1, need to do some
14416 more testing on windows to see when this is used for the property.
14417 - Redid the Lines [] property to that we properly remove soft line
14419 - added support for preserving carriage returns
14420 - CanUndo is not a variable like 'is undo enabled' it just returns
14421 true if there is undo operations available.
14422 - AppendText doesn't need to grab the last tag itself anymore,
14423 this happens automatically when we move the cursor.
14424 * TextControl.cs: Add CompoundActions to the undo class. This
14425 allows combining the other operations into one big option. ie a
14426 paste will combine { delete old, insert new, move cursor }
14427 - Add InsertString undo operation
14428 - New method for deleting multiline text
14429 - Add carriage returns to lines. So we can preserve carriage
14430 returns when text is 'roundtripped'
14432 2006-12-04 Chris Toshok <toshok@ximian.com>
14434 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
14435 minimum 0. Fixes the scrollbar exception in bug #80136.
14437 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14440 * MdiWindowManager: Removed unused fields and methods.
14442 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14444 * StatusBar.cs: Update all panels when a AutoSize=Contents
14445 panel needs updating.
14447 * StatusBarPanel.cs: Remove twidth and only use initialize.
14450 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14452 * Form.cs: When a form's MdiParent is set add it directly
14453 on top of the z-order in stead of relying on MdiClient's
14454 ActivateChild to do it. Fixes #80135.
14457 - Remove original_order, mdi_child_list is already doing
14459 - Create mdi_child_list on construction in
14460 stead of first use (avoids a few null checks).
14462 * MenuItem.cs: Use an already existing list of mdi children
14463 to get the correct order of children and remove the other
14466 2006-12-04 Chris Toshok <toshok@ximian.com>
14468 * PropertyGridView.cs: cached_splitter_location is only used in
14469 !DOUBLEBUFFER code.
14471 * PropertyGrid.cs: implement the ComComponentNameChanged event
14472 using Events, hoping that would fix the warning. Looks like a
14473 compiler bug instead (#80144).
14475 * PropertyManager.cs: remove unused method.
14477 2006-11-04 Everaldo Canuto <everaldo@simios.org>
14479 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
14480 include parentesis to fix expression evaluation. Fixes #79634.
14482 2006-11-02 Everaldo Canuto <everaldo@simios.org>
14485 - Changes to fix behavior in Menu control, some reported in #80097
14486 and other detected during behavior refactory like a select event
14488 - Remove unneded "if's" conditions.
14489 - Created an internal to flag when popup is active in control, we need
14490 it because in .NET you can have menu active but without popup active
14491 when you active menu using popup without visible items.
14492 - Mimic win32 behavior for Select and Popup events.
14493 - Dont open popup menu when you dont have visible subitems.
14494 - Do nothing when click on disabled menu item.
14495 - Some small changes to follow the coding style guidelines.
14496 - Unselect menu only when another control gives focus. Fixes #80097.
14497 - Remove unused code.
14499 * MenuItem.cs: internal VisibleItems method to check if menu
14500 theres visible subitems, it will be usefull to fix some
14501 behavior in Menu control.
14503 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14505 * Timer.cs: Tag property for 2.0 profile.
14507 2006-12-01 Chris Toshok <toshok@ximian.com>
14509 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14511 * Win32DnD.cs: comment out some unused fields.
14513 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14514 some unused properties/methods.
14516 * XplatUIX11.cs: fix MousePosition so we override the base class's
14517 property instead of conflicting with it.
14519 * PictureBox.cs: comment out some unused fields
14521 * OSXStructs.cs: make some struct fields public.
14523 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14524 MousePosition so we override the base class's property instead of
14525 conflicting with it.
14527 * X11Dnd.cs: comment out some unused fields
14529 * X11DesktopColors.cs: fix some struct field visibility to quiet
14532 * X11Dnd.cs: remove some debug code.
14534 * ThemeClearlooks.cs: comment out unused field.
14536 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14538 * ThemeGtk.cs: comment out some unused pinvokes.
14540 * Timer.cs: remove some unused fields.
14542 * ThemeClearlooks.cs: comment out unused field.
14544 * UpDownBase.cs: comment out unused field.
14546 * DataObject.cs: comment out unused field.
14548 * DataGridBoolColumn.cs: reomve unused field.
14550 * DataGrid.cs: remove unused field.
14552 * Cursor.cs: remove old ToBitmap code.
14554 * ControlPaint.cs: remove unused method.
14556 * ScrollBar.cs: remove unused fields.
14558 * ComboBox.cs: remove unused field, and chain up to
14559 AccessibleObject ctor.
14561 * ListBox.cs: remove unused field.
14563 * ButtonBase.cs: wrap a couple fields in NET_2_0.
14565 * GridEntry.cs: remove unused fields.
14567 * Binding.cs: remove unused fields.
14569 * AxHost.cs: remove unused method.
14571 * ContainerControl.cs: remove unused field.
14573 * ScrollableControl.cs: remove unused fields.
14575 2006-12-01 Chris Toshok <toshok@ximian.com>
14577 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14578 the Where/WhereString stuff. it's easy enough to CWL
14579 Environment.StackTrace.
14581 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14582 unused private fields.
14584 2006-12-01 Jackson Harper <jackson@ximian.com>
14586 * TextControl.cs: Do not update the view while inserting multiline
14587 text. If we update the view we might wrap lines, before entering
14588 the new lines, which causes the new line insertion calculations to
14589 be totally fubared.
14590 - Remove an old TODO
14591 - Make debug output a little nicer
14593 2006-12-01 Chris Toshok <toshok@ximian.com>
14595 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
14597 2006-12-01 Chris Toshok <toshok@ximian.com>
14599 [ fix the majority of the CS0108 warnings we've been suppressing ]
14601 * TreeView.cs: mark BackgroundImageChanged as 'new'.
14603 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
14604 to "LayoutToolBar" to quiet mcs.
14606 * TabControl.cs: mark our ControlCollection class as 'new'.
14608 * TextBoxBase.cs: mark some events as 'new'.
14610 * Splitter.cs: TabStop is 'new'.
14612 * ControlBindingsCollection.cs: mark a few methods as new since
14613 they change the visibility from protected to public.
14615 * RadioButton.cs: DoubleClick -> base class, and remove unused
14618 * MonthCalendar.cs: ImeMode property -> base class, and mark many
14621 * NumericUpDown.cs: TextChanged -> base class.
14623 * CheckedListBox.cs: mark our ObjectCollection class as new to
14626 * FolderBrowserDialog.cs: make HelpRequest event new and have it
14627 muck with the base class.
14629 * StatusBar.cs: fix some mcs warnings about Update being the same
14630 name as a base class method.
14632 * RichTextBox.cs: mark some events as new, and make them do things
14633 to the base class impl.
14635 * UserControl.cs: mark TextChanged as new, and have it manipulate
14638 * UpDownBase.cs: mark some things new.
14640 * CheckBox.cs: mark DoubleClick "new", and add some text about
14641 what we need to look at.
14643 * Panel.cs: make the events "new", and manipulate the base
14644 version. these are just here for attributes.
14646 * AccessibleObject.cs: make owner private.
14648 * Control.cs: deal with AccessibleObject.owner being private.
14649 cache our own copy if we need it.
14651 * Button.cs: add "new" to the DoubleClickEvent.
14653 * ListBox.cs: no need to track our own has_focus here. let
14654 Control.has_focus do it for us. Also some other work to clear up
14655 warnings about not overriding base class methods of the same name.
14657 * ComboBox.cs: clear up some warnings about not override base
14658 class methods of the same name.
14660 2006-12-01 Chris Toshok <toshok@ximian.com>
14662 * Form.cs: flag a few things as "new" to quiet some of the mcs
14667 * PrintPreviewDialog.cs: same.
14669 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
14670 now DGV isn't so horrible on the class status page. also, move
14671 all events to using System.ComponentModel.EventHandlerList. my
14674 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
14676 * MdiWindowManager.cs:
14677 - Set form to active mdi child if shown,
14678 and update the active mdi child to the next
14679 remaining child in the z-order if the form is hidden.
14682 - Track if the form has been visible and if its
14683 visibility is beeing changed, so that the MdiClient
14684 can properly decide the ActiveMdiChild. The MdiClient
14685 cannot track this since the form can change visibility
14686 before MdiClient is created.
14689 - Don't activate anything of the parent form is changing
14691 - Rework ActiveMdiChild to only return visible mdi
14692 children and take into account several other corner
14695 2006-12-01 Chris Toshok <toshok@ximian.com>
14697 * IBindableComponent.cs: new 2.0 interface.
14699 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
14701 * DataGrid.cs: Font for caption area is bold by default.
14703 2006-12-01 Everaldo Canuto <everaldo@simios.org>
14705 * Menu.cs: Tag property for 2.0.
14707 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14709 * ThemeWin32Classic.cs: Adjust menu separator drawing.
14711 2006-12-01 Chris Toshok <toshok@ximian.com>
14713 * TreeView.cs: doh, the Begin* events should be
14714 TreeViewCancelEventHandler.
14716 2006-12-01 Chris Toshok <toshok@ximian.com>
14718 * Form.cs: Form.ControlCollection already stores off the
14719 form_owner field. don't access the base class's internal "owner"
14722 * Control.cs: make all the fields in Control.ControlCollection
14723 private. there's no need for any internal fields here.
14725 2006-12-01 Chris Toshok <toshok@ximian.com>
14727 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
14728 OnHandleCreated. Fixes bug #80109.
14730 2006-12-01 Chris Toshok <toshok@ximian.com>
14732 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
14733 SplitContainer.cs, Control.cs, StatusStrip.cs,
14734 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
14735 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
14736 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
14737 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
14738 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
14739 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
14740 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
14741 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
14742 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
14743 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
14745 do most of the work to convert our code over to use
14746 System.ComponentModel.Component.Events for
14747 adding/removing/dispatching events.
14750 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
14752 * DataGridView.cs: Fix an ArgumentNullException reported
14753 twice today in IRC.
14755 2006-11-30 Mike Kestner <mkestner@novell.com>
14757 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
14758 grabbed listbox. Fixes #80036 and #80101.
14760 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14762 * Message.cs: Changed ToString() to match MS.
14764 2006-11-30 Jackson Harper <jackson@ximian.com>
14766 * TextBoxBase.cs: You can still change the selected text on a read
14768 * TextControl.cs: Lower magic number for wrap calculations. This
14769 lets text get closer to the right (far) edge.
14771 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
14773 * Control.cs: Tweak 2.0 layout properties.
14774 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
14775 * TextRenderer.cs: Add a new overload.
14776 * ToolStrip*: Huge amount of changes and new features.
14778 2006-11-30 Mike Kestner <mkestner@novell.com>
14780 * ComboBox.cs: fixes for LargeChange and Maximum to get the
14781 scroll range correct. Fixes #79994.
14783 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14785 * MdiWindowManager.cs: Update main form's text when
14786 a form is closed. (fixes #80038)
14788 2006-11-30 Everaldo Canuto <everaldo@simios.org>
14791 - Fix an regression in ButtonSize.
14792 - Get ImeMode default value change to "Disable".
14793 - Get ShowTooltips default value change to true, default value is
14794 "false" but after make a test in .NET we get "true" result as default.
14796 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
14798 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
14800 2006-11-29 Chris Toshok <toshok@ximian.com>
14802 * XplatUIWin32.cs (GetWindowTransparency): check return value of
14803 GetLayeredWindowAttributes. if it's 0, return 1.0, as
14804 SetWindowTransparency hasn't been called.
14806 2006-11-29 Chris Toshok <toshok@ximian.com>
14808 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
14810 (set_AllowTransparency): reorder things a little so that the
14811 WS_EX_LAYERED style is removed properly.
14813 2006-11-29 Chris Toshok <toshok@ximian.com>
14815 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
14817 * Form.cs: only call the XplatUI transparency method (get/set) if
14818 SupportsTransparency says it's supported. Otherwise fallback to
14819 doing nothing (in the set case) or returning the instance field we
14820 cache (in the get case).
14822 * XplatUIStructs.cs: add TransparencySupport flag enum.
14824 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
14825 change to SupportsTransparency.
14827 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
14828 TransparencySupport.None from SupportsTransparency.
14830 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
14831 TransparencySupport.Set from SupportsTransparency.
14833 * XplatUIWin32.cs: implement GetWindowTransparency calling
14834 GetLayeredWindowAttributes, and implement SupportsTransparency by
14835 checking whether or not both
14836 GetWindowTransparency/SetWindowTransparency are available
14837 entrypoints. We need to do this since SetWindowTransparency is
14838 available as of win2k, but GetWindowTransparency requires winxp.
14841 * XplatUI.cs: Add GetWindowTransparency, and change
14842 SupportsTransparency to allow for either/both Get/Set.
14844 2006-11-29 Chris Toshok <toshok@ximian.com>
14846 * DataGrid.cs: keep from going into an infinite loop redrawing a
14847 datagrid that has no datasource. Fixes bug #80033.
14849 2006-11-29 Chris Toshok <toshok@ximian.com>
14851 * MenuItem.cs: fix the NRE when we assign text (and therefore call
14852 Invalidate) before the mainmenu has been assigned to a control.
14854 2006-11-29 Chris Toshok <toshok@ximian.com>
14856 * DataGrid.cs: detect when we should be double the double click
14857 row/column autosize stuff, although that codepath has yet to be
14858 written. part of the work for bug #79891.
14860 2006-11-29 Chris Toshok <toshok@ximian.com>
14862 * Binding.cs (SetControl): fix unit test.
14864 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14866 * PageSetupDialog.cs: Validate the margins and set them in
14868 * NumericTextBox.cs: New class to mimic the behavior of the
14869 textboxes used in the printing dialogs.
14871 2006-11-29 Andreia Gaita <avidigal@novell.com>
14873 * Form.cs: Revert previous change (remove call UpdateBounds
14874 from form constructor), because it messes with the handle creation
14875 order, and that one needs lots and lots of love.
14876 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
14877 for valid printer and throw InvalidPrinterException if document
14878 is set but printer not valid), adding a MonoTODO. Once
14879 handle creation is done properly, we can put this back in.
14881 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14883 * MenuItem.cs: Create a invalidate method for menu item, to be
14884 calling from set text, it make text changes to imadiate update
14885 on screen. Fixes #80013.
14887 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14889 * ToolBar.cs: Fixes and simplify toolbar button layout, it
14890 fixes bug #80070 and some other problem on toolbar buttons
14893 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14895 * ThemeWin32Classic.cs: Paint toolbar toggle button background
14896 with dotted brush. Fixes #79564
14898 2006-11-28 Andreia Gaita <avidigal@novell.com>
14900 * Form.cs: Removed call to UpdateBounds on Form
14901 constructor, it was causing a call to CreateHandle
14902 before it was supposed to.
14903 * PrintControllerWithStatusDialog: Applied patch
14904 by Chris Toshok to hide controller when there are
14905 no printers available.
14906 PrintDialog.cs: initialize printer settings to
14907 null - correct DefaultValues test #5
14908 * PrintPreviewControl.cs: Move PrintController
14909 initialization to GeneratePreview
14910 * PrintPreviewDialog.cs:
14911 - Remove Preview generation from Document_set(). It is
14913 - Throw InvalidPrinterException on CreateHandle if
14914 a Document is set but there are no printers or
14915 printer is not valid.
14916 * ThemeWin32Classic: don't paint PrintPreviewControl
14917 if there is nothing to paint
14919 2006-11-28 Miguel de Icaza <miguel@novell.com>
14921 * Form.cs: Add another popular method.
14923 * TabPage.cs: ditto.
14925 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14927 * MenuItem.cs: Fixed a warning.
14928 * InternalWindowManager: Fixed a warning.
14930 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14933 - When cloning a menu also clone MdiList and clone the
14934 window menu items properly (as the forms and menuitems
14935 are kept in an internal hashtable, these need updating
14937 - Rewrote the window menu code, menu items are added in the
14938 order the forms were added to their parent, and they are
14939 updated every time the window menu is shown (before the
14940 list was only generated once, in the current order of the
14941 forms, and would never be updated). A checkmark is shown
14942 next to the item corresponding to the active mdi child.
14944 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14946 * XplatUIStructs.cs:
14947 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
14950 - Added TME_NONCLIENT to TMEFlags.
14951 - Handles WM_NCMOUSEMOVE in GetMessage to
14952 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
14954 * MdiWindowManager:
14955 - Now merges mdi child menu to parent menu when maximized.
14956 - Recalculate NC areas of both mdi child and mdi parent.
14958 on window state and size changes.Fixes #79844 (3).
14959 - Handle WM_NCCALCSIZE to properly calculate borders.
14962 - Add/remove to the mdi containers list of mdi children
14963 in the order they are added.
14964 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
14965 to the maximized mdi child.
14967 * InternalWindowManager.cs:
14968 - Only execute a click on the control buttons on the mouse up,
14969 not on the mouse down. Show the state of the button
14970 (was only showing Normal state, never Pressed state). The
14971 pressed button now follows the mouse (if you click the Close
14972 button and move the mouse over the Maximize button, the
14973 Maximize button will be shown as pressed). Since Win32 does
14974 not generate WM_NCLBUTTONUP if you release the button outside
14975 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
14978 * ThemeWin32Classic.cs:
14979 - Draw a missing border around mdi child forms. Fixes #79844 (2).
14982 - Added a list of forms which contains the order the forms are
14983 added to the mdi parent.
14984 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
14985 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
14986 - If the active form changes set the scrollbars to the top
14987 of the Z order, otherwise the form could hide them.
14988 - Scrollbars are now sized according to ClientSize, not
14989 to Size, and they take into account the other scrollbar
14990 to determine maximum.
14992 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14995 * XplatUIDriver.cs:
14999 - Added RequestAdditionalWM_NCMessages for windows to
15000 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
15001 Currently only implemented in XplatUIWin32.
15003 2006-11-27 Chris Toshok <toshok@ximian.com>
15005 * Hwnd.cs: only add the hwnd to the windows hash in
15006 set_WholeWindow and set_ClientWindow if whole_window/client_window
15007 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
15009 2006-11-27 Mike Kestner <mkestner@novell.com>
15011 * ComboBox.cs: remove redundant OnDropDown call. It is called
15012 from the ComboListBox.ShowWindow code. Fixes #79969.
15014 2006-11-27 Chris Toshok <toshok@ximian.com>
15016 * Hwnd.cs: remove the setters for ExposePending and
15017 NCExposePending - noone uses them.
15019 2006-11-27 Jackson Harper <jackson@ximian.com>
15021 * TextControl.cs: new param for ReplaceSelection which determines
15022 whether we select the new selection, or set the cursor to the end
15023 of the new selection.
15024 * TextBoxBase.cs: Use new param for ReplaceSelection. When
15025 pasting, select the new text.
15026 * RichTextBox.cs: Use new param for ReplaceSelection.
15028 2006-11-27 Jackson Harper <jackson@ximian.com>
15030 * TextBoxBase.cs: Set the selection to the caret after the caret
15031 is moved, otherwise they get out of sync.
15033 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15035 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
15038 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15040 * ThemeWin32Classic.cs:
15041 - Fix toolbar drop down arrow position.
15042 - Fix drop down appearance when ToolBar.Appearance is normal,
15045 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
15047 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
15048 * Control.cs: Same.
15049 * UpDownBase.cs: Same.
15050 * ButtonBase.cs: Same.
15051 * ScrollBar.cs: Same.
15052 * TrackBar.cs: Same.
15053 * PictureBox.cs: Same.
15054 * UserControl.cs: Same.
15056 * ListControl.cs: Same.
15057 * TextBoxBase.cs: Same.
15058 * ListView.cs: Same.
15059 * RichTextBox.cs: Same.
15060 * TreeView.cs: Same.
15062 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
15065 - Text label for where
15066 - Text label comment was not shown
15068 2006-11-23 Everaldo Canuto <everaldo@simios.org>
15070 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
15072 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15074 * InternalWindowManager.cs:
15075 - Handle WM_PARENTNOTIFY to activate the form
15076 if any child control is clicked.
15077 - The form is only sizable if not minimized.
15079 * MdiWindowManager.cs:
15080 - Save the IconicBounds if the form is moved.
15081 - Rework SetWindowState, now the window bounds
15082 are stored only if the old window state is Normal.
15085 - In SetWindowStates store the old window state if
15086 the window is maximized and restore window state if
15087 the window looses focus.
15088 - Don't handle any scrollbar value changes if
15089 initializing the scroll bars. Fixes #79771.
15090 - Reworked ArrangeIconicWindows. Current algorithm
15091 tests bounds agains all other minimized windows, if
15092 any intersections create new bounds (going left to
15093 right, bottom to top) and then test again. When
15094 successful the bounds are saved and never computed
15095 again. Fixes #79774.
15097 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15099 * InternalWindowManager.cs: Added HandleTitleBarUp.
15101 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15103 * NumericUpDown.cs: In .NET 1.1, user entered text is still
15104 hexadecimal in ParseUserEdit.
15107 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15109 * MdiWindowManager.cs:
15110 - Handle a click on the form's icon to show the
15111 system menu (when maximized). Fixes #79775.
15112 - Change the existing click handler for the form's
15113 icon when not maximized to show on MouseUp.
15116 * Form.cs: In OnResize only layout the mdi child's
15117 parent if it actually has a parent. Might not if
15118 the window is closing.
15121 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15123 * MdiClient.cs: Ignore active MDI client for text of parent, if
15124 child has no text set.
15126 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15128 * ToolBar.cs: Fixed ToString to match MS.
15130 2006-11-22 Andreia Gaita <avidigal@novell.com>
15133 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
15134 update inner values on set. Fixes #79966.
15135 - Override OnLostFocus to update value on NET 2. Fixes #79950.
15136 - Fix hexadecimal parsing.
15138 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
15139 parent. Fixes #79957
15141 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15143 * Control.cs: After calling SetWindowsPos in SetBoundsCore
15144 the actual size has to be queried, since if height /
15145 width is negative Win32 changes it to 0.
15146 Fixes #79999 on Windows.
15148 * XplatUIX11.cs: Set height / width to 0 if negative
15149 in SetWindowPos. Fixes #79999 on Linux.
15151 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15153 * ThemeWin32Classic.cs: Fix text redenring when button is
15156 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15158 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
15159 and later navigate by mouse. Fixes #79528.
15161 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15163 * ToolBar.cs: Set default value for TabStop to false in
15164 constructor, it fixes remaining behavior of bug #79863.
15166 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15168 * MdiWindowManager.cs:
15169 * InternalWindowManager.cs:
15170 - Moved a few methods specific to Mdi from
15171 InternalWindowManager to MdiWindowManager.
15174 2006-11-21 Chris Toshok <toshok@ximian.com>
15176 * XplatUIOSX.cs: stub out InvalidateNC.
15178 * XplatUIWin32.cs: implement InvalidateNC using the call I found
15179 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
15181 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
15183 * XplatUIDriver.cs: add InvalidateNC abstract method.
15185 * XplatUI.cs: add InvalidateNC.
15187 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15189 * ToolBar.cs: Invalidate complete button area when pressed status
15191 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
15192 * ThemeWin32Classic.cs: Increase vertical and horizontal position
15193 by 1 when button is pressed.
15195 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15197 * ToolButton.cs: Invalidate middle of DropDown button when
15198 ToolBar theres DropDownArrows.
15199 * ThemeWin32Classic.cs: Change position of DropDown arrow and
15200 fix DropDown drawing operations.
15202 2006-11-20 Chris Toshok <toshok@ximian.com>
15204 * NativeWindow.cs: fix the formatting of functions ('{' on the
15205 following line), and enable the thread exception dialog.
15207 * Application.cs: remove the duplicate exception catching from
15210 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15212 * Toolbar.cs: Triggers button click event when click on icon
15213 of dropdown ToolBarButton. Fixes #79912.
15215 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15218 * ThemeWin32Classic.cs:
15219 - Added a property WindowBorderFont to enable themeing
15220 of mdi child windows' Text.
15222 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15224 * InternalWindowManager.cs:
15227 * MdiWindowManager.cs:
15228 - If mdi child is maximized, set mdi parent's
15229 text to "Parent - [Child]". Fixes #79770.
15230 - If there is any maximized mdi child windows, only the active
15231 window (and any new windows) is maximized, the rest are normal.
15232 - On a WindowState change only save mdi child's window bounds
15233 if the old window state was normal. Fixes #79774.
15234 - The scroll bars are now calculated on hopefully all
15235 necessary events. Fixed #79771 / #79844->6 / #79906.
15236 - MdiClient.SizeScrollBars() now takes into account docked
15237 controls in the parent when calculating available space.
15238 - InternalWindowManager now always repaints the entire title
15239 area. Fixes #79844->1/4/5.
15240 - Added RequestNCRecalc on mdi child windowstate changes.
15243 2006-11-20 Mike Kestner <mkestner@novell.com>
15245 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
15246 in the MouseUp handler of the listbox and move the return handling
15247 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
15249 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15251 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
15253 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15255 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
15256 working in 1.2.x anymore. So, updated.
15258 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
15260 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
15261 NumberGroupSeparator of current culture instead of assuming en-US.
15264 2006-11-17 Mike Kestner <mkestner@novell.com>
15266 * Control.cs: Add the concept of implicit bounds setting so that
15267 dock/undock round trips preserve explicitly set size/locations.
15270 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15272 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
15273 can't handle those filters. (Fixes bug #79961)
15275 2006-11-17 Chris Toshok <toshok@ximian.com>
15277 [ fixes the exit/crashes associated with #79835. it's clearly
15278 suboptimal though, we need to figure out a better way to solve
15281 * PrintPreviewControl.cs: deal with the new invalid printer
15284 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
15285 and return false (so CommonDialog.ShowDialog doesn't actually show
15288 * PrintDialog.cs: enable/disable the Ok button depending on
15289 whether or not the printer is valid.
15291 * CommonDialog.cs (ShowDialog): only actually show the form if
15292 RunDialog returns true.
15294 2006-11-17 Jackson Harper <jackson@ximian.com>
15296 * TextControl.cs: When soft splitting a line, mark it as a soft
15297 split line. Also carry over the current line break to the next
15300 2006-11-17 Chris Toshok <toshok@ximian.com>
15302 * XplatUIX11.cs: when scrolling a window with an invalid area, we
15303 only want to shift the part of the invalid area that overlaps the
15304 area we're scrolling. we also don't want to clear the invalid
15305 area unless the invalid area was entirely contained within the
15308 2006-11-16 Chris Toshok <toshok@ximian.com>
15310 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
15311 also make sure to free the memory returned by XGetWindowProperty
15314 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
15316 2006-11-16 Chris Toshok <toshok@ximian.com>
15318 * XplatUI.cs: add a new super secret way to get at the totally
15319 unsupported X11 backend.
15321 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
15323 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
15325 2006-11-16 Jackson Harper <jackson@ximian.com>
15327 * TreeView.cs: Allow more explicit setting of top node position
15328 for scrollbars. Slower algo, but more accurate.
15329 - CollapseAll should maintain the current top node.
15330 * TextBoxBase.cs: When positioning the caret, use the line, pos
15331 method, since the x, y method does not grab the correct tag, and
15332 the caret height never gets set correctly. (Maybe I should just do
15333 away with the caret having its own height, and always use the
15334 carets current tag for height).
15336 2006-11-16 Jonathan Pobst <monkey@jpobst.com
15338 [Fixes 79778, 79923]
15340 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
15341 Parent to the FosterParent instead.
15343 2006-11-16 Jackson Harper <jackson@ximian.com>
15345 * TreeView.cs: Need to recalc the topnode when we expand or
15346 collapse. The scrolling methods can't handle this on their own,
15347 since they use differences between the last scroll position, and
15348 those difference get completely messed up since we are expanding
15349 nodes. This problem should probably be fixed in the scrolling
15350 methods, so they can figure out exactly where they are, but this
15351 will slow things down a little.
15352 * ThemeWin32Classic.cs: Special case for groupboxes with empty
15353 strings, makes nunit-gui look a lot nicer.
15355 2006-11-16 Chris Toshok <toshok@ximian.com>
15357 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
15358 the broken multithreaded event handling we have in here. File
15359 this entry under "Why we should move to the new X11 backend".
15361 Any thread can make it into UpdateMessageQueue, which gets events
15362 from the X socket - some of which could belong to hwnds being
15363 managed by a different thread. We can also have multiple threads
15364 in UpdateMessageQueue at the same time, with each one reading from
15365 the X socket. This leads to many problems, with the following
15368 We can't use hwnd.Queue.Enqueue anywhere in here and must use
15371 The MotionNotify compression we do can't work across threads
15372 (without locking the entire queue, perhaps) since we call
15373 hwnd.Queue.Peek, so we just punt and don't compress motion events
15374 unless the owning thread is the one which got the X event.
15376 ConfigureNotify is another fun one, since it modifies the hwnd's
15377 bounds and then enqueues the event. We add a lock to Hwnd which
15378 is held when setting configure_pending to true (and enqueuing the
15381 There is a race wrt the wake socket. we need to make sure that
15382 only 1 thread is waiting on that socket, or else a thread could
15383 sleep waiting for data that never comes. It's difficult (but not
15384 impossible) to make happen, because it seems to require something
15385 like the following:
15387 1. Thread 1 polls on wake_receive
15389 2. poll returns saying there's data to be read on
15392 3. Thread 2 polls on wake_receive and immediately returns
15393 saying there's data to be read.
15395 4. Thread 2 reads the wakeup byte from wake_receive
15397 5. Thread 1 attempts to read the wakeup byte from
15400 6. Thread 2 exits (due to a form closing, perhaps).
15402 7. Thread 1 blocks forever.
15406 Fixing the Expose handling isn't done yet, and the races inherent
15407 in that piece of code are responsible for the drawing mistakes you
15408 see when generating expose events in a MT app (like NPlot). This
15409 one is the likely to be the hardest to bandaid, and it doesn't
15410 appear to cause anything but drawing problems. The other issues
15411 caused apps to exit or hang.
15413 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
15414 called from a different thread than the one that should be calling
15417 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
15419 2006-11-15 Chris Toshok <toshok@ximian.com>
15421 * Application.cs: null out the context's MainForm when we exit
15422 RunLoop. Fixes a newly checked in unit test as well as the last
15423 ODE from bug #79933.
15425 2006-11-15 Chris Toshok <toshok@ximian.com>
15427 * Form.cs (set_Owner): allow a null value so we can clear the
15429 (Dispose): set all our owned_form's Owner properties to null, and
15430 clear the owned_forms collection.
15431 (WM_CLOSE): clean up this a little bit.. still not right though.
15433 * ApplicationContext.cs: OnMainFormClosed should only call
15434 ExitThreadCore if the main form isn't recreating. Fixes unit
15437 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15441 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
15443 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15447 * Hwnd.cs: Add a flag to show a window, but not activate it, to
15448 keep popup window types from stealing focus from the main form
15451 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
15453 * MenuAPI.cs: Set above flag to true.
15455 2006-11-15 Chris Toshok <toshok@ximian.com>
15457 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15458 the button being released is not in wParam.
15460 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15462 * Form.cs: Add the released button to MouseEventArgs.Button
15463 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
15466 2006-11-15 Chris Toshok <toshok@ximian.com>
15468 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15469 GetText(). untested because it's unused in our implementation.
15470 Control.Text always caches the text, even if
15471 ControlStyles.CacheText is not set.
15475 2006-11-15 Chris Toshok <toshok@ximian.com>
15479 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15480 message. no hiding, no disposing.
15482 in the WM_CLOSE handler, hide the form if it's modal.
15484 2006-11-15 Chris Toshok <toshok@ximian.com>
15486 * XplatUIX11.cs: use AddExpose instead of sending a message.
15487 fixes textbox border drawing.
15489 2006-11-15 Chris Toshok <toshok@ximian.com>
15491 * PropertyGridView.cs: keep from crashing on mouse move/down when
15492 the property grid is empty.
15494 2006-11-14 Jackson Harper <jackson@ximian.com>
15496 * TextControl.cs: Make PageUp and PageDown more like the MS
15498 * TextBoxBase.cs: When we set the text property position the
15499 cursor at the beginning of the document.
15501 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15503 * Form.cs: if a mdi child's WindowState has changed
15504 before it's creation, it would display wrong control
15507 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
15509 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15512 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15514 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
15515 the window gets to paint its borders even if the window is
15518 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
15519 otherwise the old control buttons would still be painted
15520 if the window gets bigger.
15522 * PaintEventArgs.cs: add an internal method so that the clip
15523 rectangle can be changed.
15525 2006-11-13 Chris Toshok <toshok@ximian.com>
15527 [ fixes bug #79745 ]
15529 * NotifyIcon.cs: lots of cleanup.
15531 * X11Structs.cs: add an enum for XEMBED messages.
15533 * XplatUIX11.cs: reindent one of the giant switch statements, it
15534 was taking up an additional tab stop, and this file is already way
15535 too wide for my laptop's screen.
15537 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
15538 we get it, resize the hwnd to the WMNormalHints max_width/height.
15540 2006-11-13 Jackson Harper <jackson@ximian.com>
15542 * TextBoxBase.cs: Compute the value changes for the mouse wheel
15545 2006-11-13 Chris Toshok <toshok@ximian.com>
15547 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15548 #79898. force a reference to the Region to stick around so the
15549 unmanaged object isn't collected (rendering our handle in the MSG
15552 2006-11-13 Chris Toshok <toshok@ximian.com>
15554 * XplatUIX11.cs: fix #79917 for window managers which support
15556 using XStoreName on the raw utf8, and we need to convert to
15557 COMPOUND_TEXT if it's non-latin1.
15559 2006-11-13 Chris Toshok <toshok@ximian.com>
15561 * Form.cs (set_DialogResult): we need to set closing to false if
15562 we're setting our result to None. fixes bug #79908.
15564 2006-11-13 Jackson Harper <jackson@ximian.com>
15566 * TextControl.cs: When formatting text, compute the adjusted tag
15567 lengths correctly, using FindTag for the end tag instead of trying
15568 to figure it out outselves.
15569 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15570 the item, ItemHeight doesn't work, because trees with large
15571 imagelists use those for their height
15572 * TreeView.cs: ActualItemHeight factors in the image height
15573 - compute left edge of checkboxes correctly
15574 - when expanding/collapsing move the bottom down one pixel, so we
15575 aren't moving part of the node
15577 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15579 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15580 stack in PaintEventStart so that it won't get disposed by the gc
15581 before reaching PaintEventEnd.
15583 2006-11-13 Jackson Harper <jackson@ximian.com>
15585 * TextBoxBase.cs: Don't select the word if we are on a line with
15587 - We don't need to position the caret on mouse up, since the mouse
15588 move handler should be doing this
15589 - When double clicking a blank line, the caret is advanced to the
15592 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
15594 * TreeNodeCollection.cs: Avoid duplicating indexer code.
15596 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
15598 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
15599 Fixes part of bug #79910.
15601 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
15603 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
15604 (bug #79903). Some minor string updates to match ms.
15606 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15608 * FileDialog.cs: Don't add an extension if the filename
15609 already ends with that extension.
15611 2006-11-10 Jackson Harper <jackson@ximian.com>
15613 * TreeView.cs: Use the currently highlighted node for the
15614 BeforeSelect event.
15615 * TextBoxBase.cs: There is no need to expand selection on
15617 - CanUndo means 'is there any undo operations', not 'is undo
15618 allowed on this textcontrol. Fixed ClearUndo unit test.
15620 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
15622 * Button.cs: only perform click when button is Selectable (so as
15623 not to activate default buttons when they're disabled)
15625 * Control.cs: Rewrite of the SelectNextControl and related
15626 methods. HandleClick now selects next control if the current one
15629 * Form.cs: OnActivated selects next active control only if Load
15630 has already occurred. If Load hasn't run, there's no point in
15631 selecting here, Load might change the state of controls.
15633 * FocusTest.cs: Tests marked as working again for these fixes
15635 2006-11-10 Chris Toshok <toshok@ximian.com>
15637 * XplatUIX11.cs: a couple of fixes.
15639 - use XInternAtoms with almost all the atoms we need to register,
15640 instead of many, many calls to XInternAtom. should help a bit on
15641 startup time, at the expense of making the code look a little
15644 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
15645 isn't reparented (which seems to be a clue that we're running fon
15646 compiz) and they have an Owner form. This fixes the tool windows
15647 in paint.net when running under compiz.
15649 - when setting the opacity of a window, support both the case
15650 where the window has been reparented and also when it hasn't been.
15651 Since compiz/beryl doesn't seem to reparent windows, and these are
15652 the only window managers which support translucency, I'm not sure
15653 why we need the hwnd.reparented case at all.. but leave it in.
15654 now we get translucent windows in paint.net under compiz/beryl.
15656 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15658 * FileDialog.cs: Always return the value for FilterIndex that
15659 was set. Internally convert it to values that make sense.
15661 2006-11-10 Everaldo Canuto <everaldo@simios.org>
15663 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
15665 2006-11-10 Everaldo Canuto <everaldo@simios.org>
15667 * Toolbar.cs: Change default value of DropDownArrows to true, the
15668 signature still using false to make it compatible with MS but the
15669 initial value is true. Fixes #79855.
15671 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15673 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
15674 only available on Linux.
15676 2006-11-09 Everaldo Canuto <everaldo@simios.org>
15678 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
15679 reduce number of calls to redraw method during toolbar creation.
15681 2006-11-09 Mike Kestner <mkestner@novell.com>
15683 * ListView.cs : raise SelectedIndexChanged when an item is selected
15684 programmatically via the Item.Selected property. Gert's nice
15685 ListViewSelectedIndexChanged test fixture now runs clean.
15687 2006-11-09 Mike Kestner <mkestner@novell.com>
15689 * ListView.cs : raise SelectedIndexChanged when a selected item is
15690 removed from the item collection using Remove or RemoveAt.
15692 2006-11-09 Mike Kestner <mkestner@novell.com>
15694 * ListView.cs : raise SelectedIndexChanged once per selected item
15695 for compat with MS. Fixes #79849+.
15697 2006-11-09 Chris Toshok <toshok@ximian.com>
15699 * TabControl.cs: initialize row_count to 0, and set it to 1 when
15700 we need to (if we have any tab pages). Fixes unit test.
15702 2006-11-09 Chris Toshok <toshok@ximian.com>
15704 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
15705 width is 0, not 3. Fixes a unit test.
15707 2006-11-09 Mike Kestner <mkestner@novell.com>
15709 * ListView.cs : use Implicit scrollbars so that focus isn't
15710 stolen from the listview when they are clicked. Fixes #79850.
15712 2006-11-09 Chris Toshok <toshok@ximian.com>
15714 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
15715 have a root item. Fixes #79879.
15717 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
15721 - An ArgumentException is now thrown if a wrong filter
15722 is applied (matches ms). The previous filter doesn't change
15723 anymore if an exception is thrown.
15724 - Changing the FileName property also affects FileNames
15725 * ColorDialog.cs: The length of the CustomColors array is always
15726 16. It doesn't matter if we use a smaller array or null to update
15727 or change the custom colors property.
15728 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
15729 for RootFolder if we get a undefined value.
15731 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15733 * StatusBarPanel.cs:
15734 - Width is set to MinWidth if Width is smaller than
15735 MinWidth. Fixes #79842.
15736 - MinWidth now always overrides Width (MSDN says MinWidth
15737 is set to Width when AutoSize = None, but they do not
15739 - Style has now the the correct default value.
15741 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15744 - The control is completely invalidated on
15745 Got/LostFocus to draw the focus rectangle correctly.
15746 - When AutoSize then height is always 45 (width for
15747 vertical controls).
15749 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
15750 on the mouse when moved and it doesn't move when grabbed
15751 until the mouse moves as well. Also fixed some wrong
15752 calculations when clicking on the thumb (control thought
15753 click was outside of thumb and didn't grab it).
15754 Fixes some of the issues in #79718.
15756 2006-11-08 Everaldo Canuto <everaldo@simios.org>
15758 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
15760 2006-11-08 Chris Toshok <toshok@ximian.com>
15762 * PropertyGridView.cs: only call ToggleValue if the item is not
15765 2006-11-08 Jackson Harper <jackson@ximian.com>
15767 * TextBoxBase.cs: The RichTextBox and textbox have very different
15768 word selection methods. Implement the textbox's simple word
15769 selection here, and let the RichTextBox override and provide it's
15771 - Don't do extra selection on mouseup
15772 * RichTextBox.cs: Use the documents word selection algorithm, I
15773 think ideally, this function will be pulled into the
15774 RichTextBox.cs code someday.
15776 2006-11-08 Chris Toshok <toshok@ximian.com>
15778 * RootGridEntry.cs: new class to represent GridItemType.Root.
15780 * CategoryGridEntry.cs: reformat, and add boilerplate.
15782 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
15783 returns the UI parent anyway, and we need special handling to
15784 implement the GetTarget method in the face of it. Also, implement
15787 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
15788 a root grid item, and use that instead of PropertyGrid.grid_items.
15789 Also, make use of TypeConverters (and add limitted support for
15790 ICustomTypeDescriptors) when initially populating the grid.
15791 Arrays now show up more or less properly.
15793 2006-11-08 Chris Toshok <toshok@ximian.com>
15795 * Application.cs: set the modal dialog to non modal after we close
15796 it. Fixes bug #79866.
15798 2006-11-08 Jackson Harper <jackson@ximian.com>
15800 * TextControl.cs: When combining lines carry over the line end
15801 style from the end line.
15802 - Invalidate the selected area when setting it, if it is visible.
15803 * TextBoxBase.cs: Only rich text box can do full line selects.
15804 - Make sure to set the cursor position when there is a click,
15805 otherwise two clicks in separate areas could cause a large chunk
15808 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15810 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
15813 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15815 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
15816 time. Remove tooltips when ToolButton click events. Fixes #79856.
15818 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15820 * MenuAPI.cs: Ignore right click for menu actions and fixes
15821 menu border when clicked. Fixes #79846.
15823 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15825 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
15826 MouseState after create wParam for message, this fixes mouse button
15827 equal none in mouse up events.
15829 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
15831 * Control.cs : Focus() now calls Select to set the Container's
15832 Active Control and to give it focus. To avoid infinite recursion
15833 (because ActiveControl also calls Focus at one point), a check
15834 is made in Focus with the help of a new internal variable
15837 2006-11-07 Mike Kestner <mkestner@novell.com>
15839 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
15840 if there's a selection. Fixes #79849.
15842 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
15844 * PropertyGrid.cs: Avoid fixed height of help description label.
15845 Fixes part of bug #79829.
15847 2006-11-07 Chris Toshok <toshok@ximian.com>
15849 * XplatUIX11.cs: fix #79790 again, by using the
15850 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
15852 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15854 * ToolBar.cs: Fix left click checking.
15856 2006-11-07 Chris Toshok <toshok@ximian.com>
15858 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
15860 2006-11-07 Chris Toshok <toshok@ximian.com>
15862 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
15863 PropertyManager unit tests.
15865 * PropertyManager.cs: make property_name internal.
15867 2006-11-07 Chris Toshok <toshok@ximian.com>
15869 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
15870 pass a unit test. Also, don't set image_index to anything in
15871 response to setting the ImageList property.
15873 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15875 * ToolBar.cs: Ignore click events when mouse button is not a
15876 left button, only accepts other button for dropdown menus.
15879 2006-11-07 Chris Toshok <toshok@ximian.com>
15881 * DataGrid.cs: make the back and parent row buttons a little less
15884 2006-11-07 Jackson Harper <jackson@ximian.com>
15886 * TextBoxBase.cs: When converting to Text don't put line breaks in
15887 for soft line breaks.
15888 * TextControl.cs: There is an initial "fake" line in the document,
15889 this is now a soft break line, so that an extra line feed doesn't
15890 get added to the end of documents.
15892 2006-11-07 Chris Toshok <toshok@ximian.com>
15896 * CurrencyManager.cs: if the list is readonly, don't bother
15897 checking if IBindingList.AllowNew is true.
15899 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
15900 for non-DataRowView datasources.. or rather, make it not crash.
15901 (DataGridPaintRelationRow): make sure we limit the row painting to
15902 the area not covered by the row header, and make our cell width at
15903 least large enough to cover the relation area. This allows grids
15904 that have relations but no rows to render correctly.
15905 (DataGridPaintRowContents): same type of changes here.
15906 (SetDataSource): move back to always calling
15907 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
15908 navigating back through relations.
15909 (HitTest): handle the case where we have no cells but have
15910 relations. Right now we generate a hit in cell 0 of whatever the
15911 row is, not sure if this is strictly correct, but it works for our
15914 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
15915 bother doing anything.
15917 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
15919 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
15920 early version of StatusStrip. Not responsible for eaten
15921 application or firstborn children.
15923 2006-11-06 Chris Toshok <toshok@ximian.com>
15925 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
15926 call GetTabRect with a -1 index. Fixes #79847.
15928 2006-11-06 Jackson Harper <jackson@ximian.com>
15930 * TreeNodeCollection.cs: Update scrollbars after clearing.
15932 2006-11-06 Chris Toshok <toshok@ximian.com>
15934 * NumericUpDown.cs: fix the ToString method for some unit test
15937 2006-11-06 Chris Toshok <toshok@ximian.com>
15940 - set the initial SelectedGridItem if we can.
15942 - Exclude non-mergable properties only if we're merging > 1
15943 object. Merging 1 object isn't really merging, obviously.
15945 - Handle PropertySort.NoSort just like Alphabetical, which is
15946 wrong of course, but at least gets things on the screen.
15948 * PropertyGridView.cs:
15949 - Add method "FindFirstItem" which finds the first property grid
15950 item, so we can select it by default.
15952 - make use of GridEntry.CanResetValue.
15954 - Don't call RedrawBelowItemOnExpansion here anymore, the
15955 individual GridEntry's will do that.
15957 - Remove the ITypeDescriptorContextImpl internal class.
15960 - this class needs to implement ITypeDescriptorContext, as it's
15961 what MS's PropertyDescriptorGridEntry does, which means we can
15962 remove the ITypeDescriptorContextImpl internal class from
15963 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
15965 - keep a reference to our PropertyGridView, and move the call to
15966 RedrawBelowItemOnExpansion here from PGV. This means
15967 programmaticly setting Expanded actually does something visible.
15969 - add a CanResetValue() function which takes into account our
15970 possibly multiple "selected_objects" in the merged case. Shifting
15971 PropertyGridView to use this method fixes another unreported
15972 crasher found running the test for #79829.
15974 - when Top or Bounds is updated, make sure the PropertyGridTextBox
15975 is updated to reflect this.
15977 * CategoryGridEntry.cs: the ctor takes the PGV now.
15979 2006-11-06 Jackson Harper <jackson@ximian.com>
15981 * TextControl.cs: These are 1 based.
15982 * TextBoxBase.cs: When setting the selected text, don't change the
15983 selected text tags, this is done by ReplaceText, just position the
15984 cursor at the end of the new text.
15986 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15988 * ListView.cs: Allow label edit only when, when LabelEdit is
15991 2006-11-06 Jackson Harper <jackson@ximian.com>
15993 * TextControl.cs: If a suitable wrapping position isn't found,
15994 just wrap right in the middle of a word.
15996 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15998 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
16001 2006-11-06 Jackson Harper <jackson@ximian.com>
16003 * TreeView.cs: Can't use the VisibleCount property when setting
16004 scrollbar heights, because this doesn't take into account whether
16005 or not the horz scrollbar just came visible.
16007 2006-11-05 Everaldo Canuto <everaldo@simios.org>
16009 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
16010 activated. Fixes #79369, #79832.
16012 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
16014 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
16015 had to remove support for links that point to a directory. FileInfo
16016 returns no usefull information (means, the directory they point to)
16017 for such links. Replaced some empty string ("") with String.Empty.
16019 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16021 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
16022 NullReferenceException when attempting to remove node that is not in
16023 collection. Throw NullReferenceException when null is passed to
16024 Remove. Allow first element of the collection to be removed. Fixes
16025 bug #79831. In GetEnumerator ().Current return null if positioned
16026 before the first element of the collection. In GetEnumerator ().Reset,
16027 position before first element of the collection.
16029 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16031 * PropertyGrid.cs: To match MS, remove default title and description
16032 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
16035 2006-11-04 Chris Toshok <toshok@ximian.com>
16037 * Theme.cs: add a Clamp method, just for kicks.
16039 * ThemeWin32Classic.cs: clamp all color components to [0..255].
16041 2006-11-04 Chris Toshok <toshok@ximian.com>
16043 * Form.cs: if the form isn't visible, Close() does nothing.
16045 2006-11-03 Chris Toshok <toshok@ximian.com>
16047 * Form.cs (Close): if the form is modal, don't Dispose of it, only
16049 (WndProc): don't Dispose after handling the WM_CLOSE message.
16051 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
16052 them as such, instead of using casts from Control to Form. Also,
16053 don't Dispose of the modal dialog when we fall out of the loop -
16054 Close() it instead.
16058 2006-11-03 Chris Toshok <toshok@ximian.com>
16060 * Control.cs (Dispose): only go through the dispose thing if we're
16061 @disposing, and we haven't already been disposed. Fixes bug
16064 * Form.cs: no reason to call "base.Dispose()" here instead of
16067 2006-11-03 Mike Kestner <mkestner@novell.com>
16069 * ComboBox.cs : use ToString instead of casts in AddItem for
16070 sorting functionality. Fixes #79812.
16072 2006-11-03 Chris Toshok <toshok@ximian.com>
16074 * Application.cs: pave the way for actually using the thread
16075 exception dialog. it's ifdefed out at the moment.
16077 2006-11-03 Chris Toshok <toshok@ximian.com>
16079 * ThreadExceptionDialog.cs: until we get a better layout, actually
16080 hide the details textbox and label when we shouldn't see them.
16082 2006-11-03 Jackson Harper <jackson@ximian.com>
16084 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
16085 multiline textboxes anymore. This method also determines the
16086 width/height of a textboxes canvas area.
16087 - Sorta a revert of the last patch. For multiline just position
16088 the controls, then bail. This way the scrollbar width won't be
16091 2006-11-03 Everaldo Canuto <everaldo@simios.org>
16093 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
16094 it dont need. Fixes #79537.
16096 2006-11-02 Jackson Harper <jackson@ximian.com>
16098 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
16099 send the status after firing the DndOver event.
16101 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16103 * TrackBar.cs: Now orientation only switches height / width if
16104 the control's handle is created (Win32 does it like this). Also
16105 fixed a typo in ToString() for a test to pass, changed the
16106 exception thrown in set_LargeChange and set_SmallChange to
16107 match Win32 behaviour, and added TrackBar tests to the unit
16110 2006-11-02 Chris Toshok <toshok@ximian.com>
16112 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
16113 not _NET_WM_STATE_NO_TASKBAR.
16115 2006-11-02 Jackson Harper <jackson@ximian.com>
16117 * TextControl.cs: Increment count by one, since in the update view
16120 2006-11-02 Jackson Harper <jackson@ximian.com>
16122 * TextBoxBase.cs: Use client rectangle not bounds for checking if
16123 the mouse is in the client rectangle (duh).
16125 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16127 * TrackBar.cs: Fixed trackbar jumping around when clicking
16128 on it - the trackbar was not detecting correctly at which
16129 side of the thumb the click was done. (fixes #79718)
16131 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16133 * ListBox.cs: scroll visible area when change SelectedIndex to
16134 a non visible area. Fixes #79481.
16136 2006-11-01 Jackson Harper <jackson@ximian.com>
16138 * TextControl.cs: When replacing the selection move the selection
16139 start/end/anchor to the end of the new text.
16141 2006-11-01 Jackson Harper <jackson@ximian.com>
16143 * XplatUIWin32.cs: When setting the parent change the controls
16144 visibility to it's visibility flag, not to it's old parents
16145 visibility (.Visible walks the parent chain).
16147 2006-11-01 Chris Toshok <toshok@ximian.com>
16149 * XplatUIX11.cs: revert the #79790 fix, as the simple.
16150 XSetTransientForHint fix breaks paint .net's tool windows. more
16151 work needed for that one.
16153 2006-11-01 Chris Toshok <toshok@ximian.com>
16155 * ScrollBar.cs: throw ArgumentException instead of Exception in
16156 LargeChange/SmallChange setters. fixes unit tests.
16158 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16160 * ContainerControl.cs: reverted rev.67183 (which was itself
16161 a reversion of rev.66853... eh).
16163 * Control.cs: Fixes Reflector hang by changing Focus() call
16164 to what it was before rev.66643 (calling Select() here sets
16165 ActiveControl, which in some situations calls back Focus and
16166 eventually does a stack overflow). Temp fix.
16167 Changes to GetNextControl() to not look for children to select when
16168 parent cannot be selectable (so it looks for siblings instead)
16170 2006-10-31 Mike Kestner <mkestner@novell.com>
16172 * CheckedListBox.cs : off by one error in returned index from
16173 ObjectCollection.Add. Fixes #79758.
16175 2006-10-31 Chris Toshok <toshok@ximian.com>
16177 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
16178 calls for the textbox/spinner, to keep from recursing to the point
16179 where we crash. Fixes #79760.
16181 2006-10-31 Chris Toshok <toshok@ximian.com>
16183 * ListControl.cs (set_SelectedValue): don't throw exceptions on
16184 null/"" value, just return. matches ms's behavior and fixes some
16187 2006-10-31 Chris Toshok <toshok@ximian.com>
16189 * Control.cs (set_Capture): make a logic a little easier to
16192 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
16193 if it's being destroyed. A necessary fix surely, but a bandaid
16194 also, to fix the stuck capture problem in bug #78413.
16196 2006-10-31 Chris Toshok <toshok@ximian.com>
16198 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
16199 convention of clearing hwnd.ClientRect when we set the
16200 width/height (so it'll be recalculated by Hwnd).
16202 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16204 * ContainerControl.cs: reversed Contains check from
16205 ActiveControl due to hanging problems. This fix
16206 partly regresses #79667 (button does not have
16207 initial focus), so this might be a symptom for
16208 a larger parenting problem (set_ActiveControl
16209 is being called but the child control does
16210 not have the parent set yet?)
16212 2006-10-31 Mike Kestner <mkestner@novell.com>
16214 * MenuAPI.cs : fix keynav when menu is click activated.
16216 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
16218 * ToolStrip*: Version 0.2.
16220 * MenuStrip.cs: Version 0.1.
16222 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
16224 2006-10-30 Chris Toshok <toshok@ximian.com>
16226 [ fixes the oversized notify icon issue in bug #79745 ]
16228 * NotifyIcon.cs: scale the icon down to the size we're given by
16229 the XplatUI layer (this would be faster if we did it once instead
16230 of whenever we paint..) Also, remove the WM_NCPAINT handling,
16231 since it's never invoked.
16233 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
16234 pixels high by default, so let's hardcode our systray icon to that
16235 size. The SYSTEM_TRAY protocol should really have a way for
16236 client apps to query for the correct icon size.. but oh well. A
16237 couple of patches to deal with the screwy client_window ==
16238 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
16239 instance, and also make sure we don't XSelectInput twice).
16241 2006-10-30 Chris Toshok <toshok@ximian.com>
16243 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
16244 recreating forms. Control recreation is the bane of my existence.
16245 Fix it in a way that keeps everyone happy.
16247 2006-10-30 Chris Toshok <toshok@ximian.com>
16249 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
16250 just non-CHILD ones. otherwise sometimes scrollbars end up with
16251 client_windows not being resized to the proper size (ReportBuilder
16252 shows this extremely well).
16254 2006-10-30 Chris Toshok <toshok@ximian.com>
16256 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
16257 for non-WS_EX_APPWINDOW windows. This is what keeps them from
16258 showing up in the gnome taskbar. Fixes bug #79790.
16260 2006-10-30 Chris Toshok <toshok@ximian.com>
16262 * ApplicationContext.cs: guard against a NRE.
16264 * Application.cs: null out the old MainForm for the context, so we
16265 don't try to use it again once it's disposed. Fixes bug #79783.
16267 2006-10-30 Chris Toshok <toshok@ximian.com>
16269 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
16270 BindingContext, set the data source directly, otherwise do the
16271 lazy approach - the actual ListManager will be created when we get
16272 a BindingContext. Fixes bug #79700.
16274 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16276 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16277 XplatUIX11.cs: Remove old 2 parameter SetVisible.
16279 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
16281 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16283 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
16284 of SetVisible that allows a window to be shown, but not activated.
16285 This is needed on Windows for MenuStrip, and can probably be used
16286 with MainMenu and ComboBox to fix the focus stealing issues on
16289 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
16291 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
16293 * PictureBox.cs: Fix the output of the ToString method.
16295 2006-10-29 Chris Toshok <toshok@ximian.com>
16297 * Control.cs (get_TopLevelControl): fix bug #79781.
16299 2006-10-29 Chris Toshok <toshok@ximian.com>
16301 * ListControl.cs (set_DataSource): throw Exception here, not
16302 ArgumentException, to match MS behavior.
16304 2006-10-29 Chris Toshok <toshok@ximian.com>
16306 * Form.cs: remove the try-catch's around calls to GetWindowState.
16307 We can just check the return value.
16309 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
16312 * XplatUI.cs: Add note about additional return value for
16315 2006-10-29 Chris Toshok <toshok@ximian.com>
16317 * Control.cs (CreateHandle): when we create our handle, we also
16318 create the handles of our child controls. Fixes one of the
16319 Control unit tests (CH11).
16321 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16323 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
16325 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16327 * ThemeClearlooks.cs: A little speedup.
16329 2006-10-27 Chris Toshok <toshok@ximian.com>
16331 * Control.cs: implement Control.FromChildHandle in a way that
16332 matches the docs (and fixes the failed test.)
16334 2006-10-27 Chris Toshok <toshok@ximian.com>
16336 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
16339 * DataGrid.cs: implement ResetForeColor such that the tests
16342 2006-10-27 Chris Toshok <toshok@ximian.com>
16344 * ToolBarButton.cs: setting text/tooltiptext to null results in it
16345 being set to "". Fixes bug #79759.
16347 2006-10-27 Jackson Harper <jackson@ximian.com>
16349 * TextControl.cs: We need to clear the entire selection area when
16350 setting the start, otherwise multiline selections are still
16353 2006-10-26 Chris Toshok <toshok@ximian.com>
16355 * PropertyGridView.cs:
16357 - ifdef all the code specific to the double
16358 buffer case, and provide some alternatives in the non-doublebuffer
16359 code, which makes heavy use of XplatUI.ScrollWindow to move things
16360 around without having to invalidate (and cause flicker). There
16361 are still some drawing problems in the non-doublebuffered case, so
16362 DOUBLEBUFFER is defined by default.
16364 - Fix the way dropdowns are handled. now we explicitly watch for
16365 the events which might cause the dropdown to close, and break out
16366 of the nested event loop there. This gets rid of all Capture
16367 code, at the expense of the Msg special casing. Seems to work,
16368 though, and fixes bug #79743.
16370 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16371 * Control.cs: SetIsRecreating now recreates implicitly added
16372 child controls as well. Finally fixes #79629. The flag passed to
16373 SetIsRecreating has also been removed since it wasn't used.
16375 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16377 * PageSetupDialog.cs: Clean some code, fix some bits,
16378 add some checks, and add a printer sub-dialog.
16380 2006-10-26 Chris Toshok <toshok@ximian.com>
16382 * PropertyGrid.cs: make set_SelectedObject call
16383 set_SelectedObjects, and move the duplicate logic to the
16384 SelectedObjects setter. Also, raise SelectedObjectsChanged.
16386 * PropertyGridView.cs: hide the textbox when we get a
16387 SelectedObjectsChanged event.
16391 2006-10-26 Chris Toshok <toshok@ximian.com>
16393 * PropertyGridView.cs: deal with the type converter not supporting
16394 GetStandardValues() or GetStandardValues() returning null, which
16395 is does in the default case. Fixes #79742.
16397 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16399 * CheckedListBox.cs: nunit no longer crashes when selecting
16400 Project/Edit menu option
16402 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16404 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
16405 is no menu selected. fixes #79739
16407 2006-10-25 Chris Toshok <toshok@ximian.com>
16409 * PropertyGridView.cs: factor out the splitter invalidation code
16410 into the SplitterPercent setter, and for kicks implement the
16411 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
16412 amount in either direction.
16414 2006-10-25 Chris Toshok <toshok@ximian.com>
16416 * PropertyGridView.cs: do some cleanup of the brush used to draw
16417 text - read only fields should be grayed out. not sure how to do
16418 this with the textbox, though. but the textbox's should also be
16419 readonly now at least. Also, hide/show the textbox when resizing
16422 * CursorConverter.cs: use System.Reflection when getting the
16423 properties of Cursors, as TypeDescriptor.GetProperties isn't
16424 returning static properties.
16426 2006-10-25 Chris Toshok <toshok@ximian.com>
16428 * PropertyGridView.cs: factor out the up/down handling, and reuse
16429 it for page up/down. also add End/Home support.
16431 2006-10-25 Chris Toshok <toshok@ximian.com>
16433 * PropertyGridView.cs:
16435 - ensure the selected grid item is visible in the scrolled area,
16438 - fix Keys.Down handling when you're on the last item in the
16441 2006-10-25 Mike Kestner <mkestner@novell.com>
16443 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
16444 clicks too. Fixes #79725.
16446 2006-10-24 Chris Toshok <toshok@ximian.com>
16448 * PropertyGrid.cs: use property.Converter instead of
16449 TypeDescriptor.GetConverter(property.PropertyType), so we catch
16450 TypeConverters declared on the property as well as on the
16451 PropertyType. Fixes bug #79678.
16453 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
16455 * MimeIcon.cs, Mime.cs:
16456 Fallback to the default platform handler if no shared mime info
16457 stuff exists (fixes #79693).
16459 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16460 * ContainerControl.cs: Incorrect contains check in ActiveControl
16461 from previous fix (duh).
16463 2006-10-20 Chris Toshok <toshok@ximian.com>
16465 * PropertyGridView.cs: the dropdown should be MIN(number of items
16466 in list, 15). Fixes #79551.
16468 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16469 Fixes #79384, #79394, #79652, #79667
16472 - Modal windows are now destroyed in the proper order for windows
16474 * ContainerControl.cs:
16476 - ActiveControl setter has more conditions on when to return:
16477 - if we're reselecting the active control, but it actually
16478 didn't have focus (window hidden or some such), it runs
16479 - if the active control being selected doesn't actually
16480 exist in the container, it returns
16484 - The ShowDialog now gets the current form as the owner when
16485 invoking without parameters, and correctly activates the owner
16490 - MessageBox now catches the Escape key to exit
16492 2006-10-20 Chris Toshok <toshok@ximian.com>
16494 * PropertyGridView.cs: fix a number of issues (bug #78565, and
16495 most of bug #79676):
16497 - you can navigate around the property grid with the arrow keys.
16499 - the dropdown is sized properly when the pg has a vertical
16502 - fix the indentation for subentries, and properly select the
16505 - fix the gray bar's drawing (only draw it to the last element,
16506 not for the height of the control. Also make sure we draw that
16507 last horizontal grid line.
16509 - use the same mechanism the datagrid uses wrt the editing textbox
16510 when scrolling/resizing/etc. Namely, we hide it first, do the
16511 operation, then show it again (if it's still visible).
16513 - aggressively remove a lot of unnecessary refreshes (and also
16514 calls to Invalidate(). call more limited variants, and only redraw
16519 - when we're populating the merged collection, fill in the UI
16520 parent with either the passed in item, or the category item we
16523 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16525 * GridItem.cs: drop some fully qualified names.
16527 * GridEntry.cs: add a "UIParent", which is basically the parent
16530 * GridItemCollection.cs: add an IndexOf method.
16532 2006-10-20 Mike Kestner <mkestner@novell.com>
16534 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
16535 a working win32 NC invalidation mechanism, we can't invalidate
16536 menus. [Fixes #79705]
16538 2006-10-20 Mike Kestner <mkestner@novell.com>
16540 * ListBox.cs : don't update the VScrollbar if the list is empty,
16541 just hide it. [Fixes #79692]
16543 2006-10-20 Jackson Harper <jackson@ximian.com>
16545 * RichTextBox.cs: Handle some special chars better, and don't skip
16546 the entire group when we encounter a special char that we don't
16549 2006-10-18 Chris Toshok <toshok@ximian.com>
16551 * PropertyGridView.cs: address a number of issues from bug #79676,
16552 mostly of the cosmetic variety.
16554 - The highlight rectangle for indented items not extends all the
16557 - Indented items aren't indented so much.
16559 - the dropdown is properly sized width-wise if the pg has a
16560 vertical scrollbar.
16562 2006-10-18 Chris Toshok <toshok@ximian.com>
16564 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16565 systray stuff is rather convoluted to begin with.
16567 systray icons are a single window for some reason (that I haven't
16568 figured out yet), and for them, client_window == whole_window.
16569 Given the way the tests are structured elsewhere to determine
16570 which paints are pending (client vs. nc), that situation will
16571 always yield PAINT, not NCPAINT. So, if we have a pending
16572 nc_expose and no pending expose, remove the hwnd from the paint
16573 queue, and also set nc_expose_pending to false, to keep us from
16574 blocking further expose's adding the hwnd to the paint queue.
16576 phew. like i said, a rather convoluted change. Fixes the
16577 notifyicon repaint issues in bug #79645.
16579 2006-10-18 Chris Toshok <toshok@ximian.com>
16581 * Form.cs: when getting the backcolor of the form, don't get
16582 base.BackColor, as this allows parents to influence the background
16583 color. This breaks mdi forms. Instead, if the background_color
16584 is empty, return the default.
16586 2006-10-18 Chris Toshok <toshok@ximian.com>
16588 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16589 to being private instead of internal static.
16591 * Control.cs: remove all the stupid ParentWaitingOnRecreation
16592 crap, it wasn't working for more deeply nested controls anyway,
16593 and we already have the is_recreating flag - use that instead.
16594 Before calling DestroyHandle in RecreateHandle, recurse through
16595 the control tree setting it to true. this returns the recreate
16596 code to much of its original simplicity, while now guaranteeing we
16597 actually recreate everything we're supposed to. This change gets
16598 fyireporting actually showing mdi children.
16600 2006-10-17 Chris Toshok <toshok@ximian.com>
16602 * Form.cs: remove some debug spew, and collapse some duplicate
16603 code at the end of SetClientSizeCore.
16606 - add some more debug spew here too wrt Destroy handling.
16607 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
16608 in Control's handling of WM_DESTROY.
16609 - Remove the handling of zombie window DestroyNotifies from the
16610 event loop - we don't need it. Now the only DestroyNotifies we
16611 actually handle are ones generated by X.
16612 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
16613 match gtk's (functioning) handling of this. This keep metacity
16614 from leaving droppings in the form of wm borders with no window
16615 contents all over the place.
16618 - add a bunch of debug spew wrt control recreation.
16619 - fix a bug where we weren't tracking Visible properly on
16621 - fixed the WM_PAINT double buffer handling to support re-entrant
16622 calls (yes, i know it's gross, but it's happening to us).
16624 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16625 * ThemeWin32Classic.cs: changed drawing of selected days
16626 to make them look better.
16628 2006-10-16 Chris Toshok <toshok@ximian.com>
16630 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
16631 drawing_stack. Nuke the ClientDC/NonClientDC properties.
16633 * XplatUIX11.cs: move away from using hwnd.client_dc and
16634 hwnd.non_client_dc and on to a stack of dc's (and in window's
16635 case, PAINTSTRUCT's), so we can deal with nested Paint calls
16636 without puking or not disposing of Graphics objects.
16638 * XplatUIOSX.cs: same.
16640 * XplatUIWin32.cs: same.
16642 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
16644 * FileDialog.cs: Don't call on_directory_changed inside
16645 OnSelectedIndexChanged (it changes the SelectedIndex too).
16646 Instead move it to OnSelectionChangeCommitted.
16648 2006-10-13 Chris Toshok <toshok@ximian.com>
16650 * XplatUIX11.cs: more Destroy work. the current code does the
16651 following things, in order:
16653 1. Enumerates all handles of all controls at or below the one
16654 being destroyed, in pre-order. As it is doing this, it marks the
16655 handles as zombie and clears all references to them.
16657 2. calls XDestroyWindow on the window passed in.
16659 3. SendMessage's WM_DESTROY to all he handles in the accumulated
16662 2006-10-13 Chris Toshok <toshok@ximian.com>
16664 * XplatUIX11.cs: set hwnd.zombie to true before calling
16665 SendMessage (WM_DESTROY). this keeps us from marking the new
16666 window a zombie, and also keeps us from calling sendmessage at
16669 2006-10-13 Jackson Harper <jackson@ximian.com>
16671 * TextControl.cs: Do not show the caret and selection at the same
16672 time. Reduces ugliness by 35%.
16674 2006-10-13 Chris Toshok <toshok@ximian.com>
16676 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
16677 zombie after we do the recursive call, so we actually do call
16678 SendMessage on the children controls.
16679 (GetMessage): if we find a pending paint event for a zombie hwnd,
16680 remove the hwnd from the paint queue, or else it will always be
16681 there (and we'll effectively loop infinitely)
16683 2006-10-13 Mike Kestner <mkestner@novell.com>
16685 * MenuItem.cs : add Selected format under keynav too.
16688 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
16690 * PropertyGrid.cs: Fixed some NRE's and small difference between our
16691 implementation and that of MS.
16693 2006-10-13 Chris Toshok <toshok@ximian.com>
16695 * Control.cs (OnInvalidated) only futz with the invalid_region if
16696 the control is double buffered. this fixes the apparent hang in
16697 the ListView unit tests. Someone needs to make the
16698 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
16700 2006-10-13 Chris Toshok <toshok@ximian.com>
16702 * PropertyGridView.cs:
16704 - do a little refactoring so that only one place calls
16705 dropdown_form.Hide, and that is CloseDropDown. make everywhere
16706 else call that. Also make it Refresh, since there are redraw bugs
16707 otherwise (we should take a look at that...)
16709 - do a little more refactoring work to share the body of code
16710 involved with the drop down. it was duplicated in the code
16711 dealing with the listbox handling and in the code dealing with the
16714 - add a Capture to the dropdown form's control once it's
16715 displayed, and add a MouseDown handler that checks to make sure
16716 the position is inside the control. If it's not, close the
16717 dropdown. This fixes #78190.
16719 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
16720 if the value is different than the initial value.
16722 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
16724 * Control.cs: see #78650
16725 - Fixed GetNextControl for several cases:
16726 - Changed FindFlatForward to return
16727 correct sibling control when more than one
16728 control has same TabIndex as the currently
16730 - Changed FindFlatBackward to loop children
16731 from last to first and apply same logic as in
16733 - Changed FindControlForward to search for
16734 children when control is not a container
16735 but has children, or search for siblings if
16736 control is a container...
16737 - Changed FindControlBackward to continue
16738 searching for child controls when hitting
16741 - Fixed Focus method to update ActiveControl
16742 (FocusTest.FocusSetsActive failure)
16745 - Focus rectangle now refreshes when gaining
16747 - Removed grab for Tab key on IsInputKey that
16748 was keeping tab navigation from working (#78650)
16750 2006-10-13 Chris Toshok <toshok@ximian.com>
16752 * PropertyGridView.cs:
16753 - Rewrite SetPropertyValue to loop over SelectedGridItem's
16756 - Deal with GridItem.Value == null a few places.
16759 - replace the PopulateGridItemCollection with a pair of methods
16760 which compute the intersection of all the properties in the
16761 SelectedObjects array. Fixes #79615.
16763 - Throw ArgumentException from set_SelectedObjects if there's a
16766 - Add GetTarget method which can be used to traverse up the
16767 GridItem.Parent chain. It depends on the assumption that
16768 selected_objects for different GridEntries are always in the same
16769 order (a safe assumption). Use this method and loop over all the
16770 selected objects in the entry when calling RemoveValueChanged and
16773 * GridEntry.cs: Make this handle multiple selected objects.
16774 .Value returns null if not all the selected objects share the same
16777 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
16778 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
16779 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
16780 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
16781 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
16782 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
16783 add additional functionality.
16785 2006-10-12 Mike Kestner <mkestner@novell.com>
16787 * ErrorProvider.cs : new ToolTipWindow ctor sig.
16788 * HelpProvider.cs : new ToolTipWindow ctor sig.
16789 * ToolTip.cs : remove ToolTip param from Window sig since it is
16791 * ToolBar.cs : add tooltip support. Fixes #79565.
16793 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16795 * ComboBox.cs: move the events in set_SelectedIndex to
16796 after the call to HighlightIndex in order to avoid
16797 possible recursion and subsequent problems with the call
16798 to HighlightIndex and include a range check in
16799 set_HighlightIndex. Fixes #79588
16801 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16803 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
16804 to ui thread's settings instead of sunday.
16805 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
16807 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16809 * DateTimePicker.cs
16811 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
16812 and implement missing functionality (selecting different parts
16813 of the date and edit them individually with the keyboard).
16815 2006-10-11 Chris Toshok <toshok@ximian.com>
16817 * Control.cs (OnInvalidated): fix NRE relating to last change.
16819 2006-10-11 Chris Toshok <toshok@ximian.com>
16821 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
16822 atoms in _NET_WM_STATE here if the window is maximized. We need
16823 to do this because we're *replacing* the existing _NET_WM_STATE
16824 property, so those atoms will be lost otherwise, and any further
16825 call to GetWindowState will return Normal for a window which is
16826 actually maximized. Fixes #79338.
16828 2006-10-11 Jackson Harper <jackson@ximian.com>
16830 * TextControl.cs: Special case for setting selection end to
16831 selection start, we basically kill the anchor.
16832 - some todo comments.
16834 2006-10-11 Chris Toshok <toshok@ximian.com>
16836 * Control.cs: switch to using an "invalid_region" to track which
16837 parts of the image buffer need updating. This is more code than
16838 the simple fix from r66532. That version just attempted to always
16839 fill the entire buffer on redraw, which turns out to be
16840 inefficient when invalidating small rectangles. This version
16841 simply adds the invalid rectangle to the invalid region. When we
16842 get any WM_PAINT message we see if it can be filled using the
16843 image buffer, and if it can't (if the paint event's clip rectangle
16844 is visible in the invalid region) we first fill the image buffer.
16845 So, the image buffer is still a cache, we just fill it lazily.
16847 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
16848 need it any longer.
16850 2006-10-11 Chris Toshok <toshok@ximian.com>
16852 * XplatUIX11.cs (SetWindowPos): we need to update both position as
16853 well as size after calling XMoveResizeWindow. This keeps us from
16854 ignoring future SetWindowPos calls. Fixes the disappearing
16855 DateTimePicker in the ToolBarDockExample from bug #72499.
16857 2006-10-11 Chris Toshok <toshok@ximian.com>
16859 * TextBoxBase.cs: reorder things a bit when it comes to
16860 resizing-causing-recalculation. we were recalculating the
16861 document when our position was changed, which shouldn't happen.
16862 We only care about size changes. Clear up some more redundant
16863 recalculation calls while I'm at it. This makes the toolbar dock
16864 example snappy when you're just dragging toolbars around (since it
16865 causes a relayout whenever you move one.)
16867 2006-10-11 Chris Toshok <toshok@ximian.com>
16869 * ToolBarButton.cs (get_Rectangle): this only returns
16870 Rectangle.Empty if Visible == false, or Parent == null.
16871 Parent.Visible doesn't matter.
16873 2006-10-10 Chris Toshok <toshok@ximian.com>
16875 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
16876 by .net 1.1, so switch to an internal method instead.
16878 2006-10-10 Chris Toshok <toshok@ximian.com>
16880 * Control.cs (WM_PAINT): when a control is double buffered we draw
16881 initially to the ImageBuffer and then copy from there. But when a
16882 parent control which has child controls is double buffered, the
16883 initial drawing doesn't encompass the entire ClientRectangle of
16884 the parent control, so we end up with uninitialized bits (this is
16885 easily seen by dragging the top toolbar in
16886 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
16887 manually set the ClipRectangle of the paint_event (only the one we
16888 use to populate the ImageBuffer) to ClientRectangle. Fixes more
16889 of the nastiness in bug #72499.
16891 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
16892 which we use in Control.cs's WM_PAINT handling.
16894 2006-10-10 Jackson Harper <jackson@ximian.com>
16896 * TextBoxBase.cs: Finish off the autoscrolling stuff.
16898 2006-10-10 Chris Toshok <toshok@ximian.com>
16900 * Cursor.cs: Apply a slightly different patch to the one suggested
16903 2006-10-10 Jackson Harper <jackson@ximian.com>
16905 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
16906 not the parent form.
16907 * TextControl.cs: use difference in old line count vs new count to
16908 calculate how many lines were added, this takes into account soft
16909 line breaks properly.
16911 2006-10-10 Chris Toshok <toshok@ximian.com>
16913 * LinkLabel.cs: don't call MeasureCharacterRanges against a
16914 rectangle located at 0,0 and the size of the text. Use
16915 ClientRectangle instead. This fixes rendering of non-left aligned
16918 2006-10-10 Jackson Harper <jackson@ximian.com>
16920 * TextBoxBase.cs: When we set the selection start position the
16922 * TextControl.cs: Need to update the caret when we decrement it to
16924 - Make sure that the selection_visible flag gets reset to false if
16925 the selection isn't visible. Before this you could get it set to
16926 visible by changing the selection start, then changing the end to
16929 2006-10-09 Jackson Harper <jackson@ximian.com>
16931 * TreeView.cs: Don't update scrollbars when we aren't visible.
16932 * TreeNodeCollection.cs: Only need to update scrollbars if being
16933 added to an expanded visible node or the root node.
16935 2006-10-09 Chris Toshok <toshok@ximian.com>
16937 * XplatUIX11.cs (SendMessage): fix NRE.
16939 2006-10-09 Jackson Harper <jackson@ximian.com>
16941 * TextBoxBase.cs: Implement horizontal autoscrolling.
16942 * TextControl.cs: Add a movement types that allows moving forward
16943 and backwards without wrapping.
16945 2006-10-09 Mike Kestner <mkestner@novell.com>
16947 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
16948 with focus "expansion" of labels. Fixes #79532 and then some.
16949 * ThemeWin32Classic.cs : add LineLimit to ListView label format
16952 2006-10-09 Jackson Harper <jackson@ximian.com>
16954 * TextBoxBase.cs: Set the default max values to MaxValue since
16955 we use the scrollbar for autoscrolling and the default value is
16956 100. If we don't do this the caret won't keep up with typing
16957 after about 18 characters.
16958 * TextControl.cs: Make sure the selection is offset by the
16959 viewport x. This fixes selection when using auto scrolling.
16961 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
16963 * Form.cs: The active control should be selected after the
16964 OnLoad so that any child control initialization that affects
16965 the selection is done. Fixes #79406
16967 2006-10-06 Chris Toshok <toshok@ximian.com>
16969 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16970 to have no evil effects.
16972 - Stop selecting StructureNotifyMask on non-toplevel windows.
16974 The only way children should be resized is by using the SWF api,
16975 and we already send WM_WINDOWPOSCHANGED messages in those cases.
16976 Toplevel windows can be interacted with via the window manager,
16977 and so we keep the input mask there.
16979 The other event StructureNotifyMask gives us (that we care
16980 about) is DestroyNotify. The code is already structured such
16981 that it assumes we won't be getting a DestroyNotify event for
16982 the window we pass to XDestroyWindow (which is what
16983 StructureNotifyMask is supposed to guarantee.) So, that code
16984 shouldn't be affected by this either.
16986 - Stop selecting VisibilityChangeMask altogether.
16988 We weren't doing anything with the resulting events anyway.
16990 This vastly reduces the number of X requests and events we see
16991 when resizing/laying out a large ui.
16993 2006-10-06 Chris Toshok <toshok@ximian.com>
16995 * ScrollableControl.cs (DisplayRectangle): we need to take into
16996 account the DockPadding regardless of whether or not auto_scroll
16997 == true. rework this slightly to this effect, and fix bug #79606,
16998 and part of #72499 (you can now see the drag handles and drag
17001 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
17003 * ListViewItem.cs: Collections of selected and checked items are now
17004 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
17005 we mark the collection "dirty".
17006 * ListView.cs: Marked collections readonly. Modified UpdateSelection
17007 to only clear SelectedItems when a new item is selected and MultiSelect
17008 is enabled. CheckedItems and SelectedItems now subscribe to Changed
17009 event of ListViewItemCollection, and mark its list dirty whenever
17010 that event is fire. This allows us to return selected/checked items
17011 in the same order as they are in the Items collection. This matches
17014 2006-10-06 Chris Toshok <toshok@ximian.com>
17016 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
17017 right mouse clicks. Fixes bug #79593.
17019 2006-10-06 Chris Toshok <toshok@ximian.com>
17021 * Splitter.cs: doh, fix splitters that don't want to cancel the
17022 movement when you drag them. Also, impose the limits on the
17023 values we send to the SplitterMovingEvent. Fixes #79598.
17025 2006-10-06 Jackson Harper <jackson@ximian.com>
17027 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
17028 since we use this for auto scrolling also.
17030 2006-10-05 Chris Toshok <toshok@ximian.com>
17032 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
17033 beginning to think that most datagrid column types don't need this
17034 method. Fixes bug #79392.
17036 2006-10-05 Chris Toshok <toshok@ximian.com>
17038 * DataGrid.cs: move back to a more lazy scheme for creating the
17039 CurrencyManager, so we aren't updating it every time you set
17040 either DataSource or DataMember. Also, don't call
17041 RecreateDataGridRows if the currency manager hasn't changed.
17043 2006-10-05 Chris Toshok <toshok@ximian.com>
17045 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
17046 emitted, SelectedIndex should already be updated. Fixes bug
17049 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
17051 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
17052 ToolStripTextBox.cs: Initial commit.
17053 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
17055 2006-10-05 Jackson Harper <jackson@ximian.com>
17057 * TabControl.cs: We need to invalidate the tab control area when
17058 new ones are added (duh).
17060 2006-10-03 Chris Toshok <toshok@ximian.com>
17062 * Form.cs (ProcessDialogKey): if the focused control is in this
17063 form and is a button, call its PerformClick method here. Fixes
17066 2006-10-04 Jackson Harper <jackson@ximian.com>
17068 * TabPage.cs: Ignore setting of Visible, and add an internal
17069 method for setting the controls visibility. TabPage's Visible
17070 property is a little strange on MS, this seems to make us
17071 compatible, and fixes cases where people set all the tab pages to
17073 * TabControl.cs: Use the new internal setting on tab pages
17076 2006-10-03 Mike Kestner <mkestner@novell.com>
17078 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
17080 2006-10-03 Mike Kestner <mkestner@novell.com>
17082 * ListView.cs : use is_visible instead of Visible to check if
17083 scrollbars should be placed/sized. Also some max_wrap_width
17084 love for LargeIcon view. [Fixes #79533]
17086 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
17089 Make set_TextAlign() do actually update the align. Fixed #78403.
17091 2006-10-03 Chris Toshok <toshok@ximian.com>
17093 * DataGrid.cs: fix a crash when switching datasources if the
17094 vertical scrollbar is at someplace other than Value = 0. Also,
17095 reduce the number of recalculation passes we do in SetDataSource
17098 2006-10-03 Jackson Harper <jackson@ximian.com>
17100 * TextBoxBase.cs: Move the if value the same bail check up, we
17101 don't want to empty the document if it is already empty, this
17102 seems to severly mess up the caret. TODO: I should probably fix
17103 the empty statement to update teh caret somehow.
17105 2006-10-03 Chris Toshok <toshok@ximian.com>
17107 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
17108 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
17109 reflection, an internal row type, properties on said type, etc.)
17110 will work with our datagrid. Fixes #79531.
17112 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17114 * FileDialog.cs: Don't crash if a path is not accessible
17115 (System.UnauthorizedAccessException). Fixes #79569.
17116 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
17117 a ':' too. Return unknown icon for those paths/files.
17119 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
17121 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
17122 GetContainerControl returns null.
17124 2006-10-02 Chris Toshok <toshok@ximian.com>
17126 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
17127 call to XGetWindowAttributes instead of "handle". fixes an X
17128 error using notifyicon after the NotifyIconWindow to Form base
17131 2006-10-02 Chris Toshok <toshok@ximian.com>
17133 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
17134 server grab and looping we need to do to get down to the most
17135 deeply nested child window.
17136 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
17137 QueryPointer again after the WarpPointer so we can generate a
17138 proper (fake) MotionNotify event to be enqueued in the destination
17140 (GetCursorPos): call QueryPointer.
17144 2006-10-02 Jackson Harper <jackson@ximian.com>
17146 * NotifyIcon.cs: Derive the notify icon from a form, so things
17147 like FindForm work on it.
17148 - Swallow the WM_CONTEXTMENU message, since that is generated on
17149 mouse down, and context menu is a mouse up kinda guy. I believe
17150 the correct fix here is probably to make the notify icon entirely
17151 NC area, but this seems to work fine for anyone not manipulating
17154 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
17156 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
17157 ToolStripItemCollection.cs, ToolStripLabel.cs,
17158 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
17159 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
17160 Initial implementation.
17161 * TextRenderer.cs: Provide padding to MeasureText.
17163 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
17165 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
17166 of ButtonBaseAccessibleObject. Fix bug #79552.
17168 2006-10-02 Jackson Harper <jackson@ximian.com>
17170 * MdiWindowManager.cs: When maximizing use the containers client
17171 rect, not it's bounds, so nc area is accounted correctly.
17172 - Use the parent form's size for the menu position, since the
17173 client isn't always the full form size.
17175 2006-10-01 Chris Toshok <toshok@ximian.com>
17177 * ScrollableControl.cs: make sure neither right_edge or
17178 bottom_edge are < 0, since they're used as LargeChange for the
17179 horiz/vert scrollbars respectively. Fixes #79539.
17181 2006-10-01 Chris Toshok <toshok@ximian.com>
17183 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
17184 the xplatuix11 code can cause us to destroy/recreate our handle.
17188 - this code can be invoked many times for the same Hwnd. Make
17189 sure we only destroy the client window once (the first time this
17190 method is called). This fixes bug #79544.
17191 - Remove the call to the improperly bound XSync. why we had two
17192 bindings to this, I will never know, but this call resulted in
17193 events being discarded from the queue(!).
17194 - correct a misunderstanding of _XEMBED_INFO - the second atom is
17195 not our current state but the state we wish to be in. So, 0 if
17196 we don't want to be mapped. Change it to 1.
17197 (SystrayRemove): The XEMBED spec makes mention of the fact that
17198 gtk doesn't support the reparent of client windows away from the
17199 embedder. Looking at gtksocket-x11.c seems to agree with this.
17200 The only avenue we have for removing systray icons is to destroy
17201 them. We don't want the handle to go away for good, though, so
17202 call InternalRecreateHandle on the NotifyIconWindow. Fixes
17205 2006-10-01 Chris Toshok <toshok@ximian.com>
17207 * Form.cs (WndProc): inline the native_enabled variable usage into
17208 the cases in which it's used. Fixes #79536.
17210 2006-09-29 Mike Kestner <mkestner@novell.com>
17212 * ListView.cs : toggle the selection state for ctrl clicks in
17213 multiselect mode. [Fixes #79417]
17215 2006-09-29 Mike Kestner <mkestner@novell.com>
17217 * ListView.cs : kill CanMultiSelect and refactor the selection
17218 code to support multiselection in the absence of mod keys. Steal
17219 arrow/home/end keys by overriding InternalPreProcessMessage to
17220 restore regressed keynav behavior.
17223 2006-09-29 Jackson Harper <jackson@ximian.com>
17225 * MdiClient.cs: Repaint the titlebars when the active window is
17228 2006-09-29 Chris Toshok <toshok@ximian.com>
17230 * Application.cs: when entering a runloop with a modal, make sure
17231 the hwnd is enabled. Fixes #79480.
17233 2006-09-29 Chris Toshok <toshok@ximian.com>
17235 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
17236 when ListManager.CanAddRows == false, bump us back one.
17238 * DataGridColumnStyle.cs (ParentReadOnly): remove the
17239 listmanager.CanAddRows check. This makes ArrayLists uneditable
17240 using a datagrid, which is not right.
17241 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
17242 is an IEditable, but call property_descriptor.SetValue regardless.
17245 2006-09-29 Chris Toshok <toshok@ximian.com>
17247 * DataGridBoolColumn.cs: we need to test equality in the face of
17248 possible null values (as is the case with the default NullValue).
17249 This patch keeps us from crashing in that case.
17251 2006-09-29 Jackson Harper <jackson@ximian.com>
17253 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
17254 here, since it will get called for every node collection in the
17255 tree. This is now done in the treeview once the sorting is
17257 * TreeView.cs: Recalculate the visible order, and update the
17258 scrollbars after sorting, set the top nope to the root so that the
17259 recalc actually works.
17261 2006-09-29 Chris Toshok <toshok@ximian.com>
17263 * LinkLabel.cs: more handling of the default link collection in
17264 the face of LinkArea manipulation. The default link collection
17265 contains 1 element (start=0,length=-1). If the user sets LinkArea
17266 to anything and the links collection is the default, clear it.
17267 Then only add the link if its nonempty. Fixes #79518.
17269 2006-09-29 Chris Toshok <toshok@ximian.com>
17271 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
17272 piece correctly when we hit a '\n'. Fixes #79517.
17274 2006-09-29 Chris Toshok <toshok@ximian.com>
17276 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
17277 change the binding of gdk_init_check to take two IntPtr's, and
17278 pass IntPtr.Zero for both of them. Fixes #79520.
17280 2006-09-29 Mike Kestner <mkestner@novell.com>
17282 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
17285 2006-09-28 Jackson Harper <jackson@ximian.com>
17287 * XplatUIX11.cs: When translating NC messages make sure we go from
17288 whole window to screen, not client window to screen.
17289 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
17290 method doesn't exist
17291 - Skip over controls that aren't forms when arranging.
17293 2006-09-28 Jackson Harper <jackson@ximian.com>
17295 * XplatUIWin32.cs: Clip the rect to the parent window.
17296 * XplatUIStructs.cs: Add clipping modes struct.
17297 * InternalWindowManager.cs: New private method that factors title
17298 bar heights in when calculating the pos of an NC mouse message.
17299 - Use SendMessage to force a paint when the form's size is changed
17300 instead of painting the decorations immediately.
17301 - Don't let the NC button click messages get to DefWndProc,
17302 because they will attempt to handle windowing themself, and this
17303 messes up z-order (it will put them in front of the scrollbars).
17304 * XplatUIX11.cs: Make sure that we don't reset window managers if
17305 we already have one (ie the window is an MDI window).
17307 2006-09-28 Chris Toshok <toshok@ximian.com>
17309 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
17310 menu code really needs going over.
17312 2006-09-27 Chris Toshok <toshok@ximian.com>
17314 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
17315 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
17316 window is maximizable. So, we need to make sure that even if we
17317 clear the border/wm frame of those functions, they're still
17318 available (basically, we remove the decoration without removing
17319 the function). Half the fix for #79338.
17321 2006-09-27 Chris Toshok <toshok@ximian.com>
17323 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
17326 2006-09-27 Chris Toshok <toshok@ximian.com>
17328 * Splitter.cs: reorder things a bit so that we don't actually
17329 draw/move the splitter until after calling OnSplitterMoving. This
17330 lets users cancel/disallow the movement by explicitly setting
17331 event.SplitX/SplitY. Fixes #79372.
17333 2006-09-27 Jackson Harper <jackson@ximian.com>
17335 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
17336 because it is most likely on a window being destroyed, and that
17337 will give us an X11 error.
17339 2006-09-27 Chris Toshok <toshok@ximian.com>
17341 * PropertyGridView.cs: half of the fix for #78190. Clicking on
17342 the dropdown button now toggles between showing and hiding the
17343 dropdown. Also, get rid of dropdown_form_showing and just use
17344 dropdown_form.Visible. We still don't do a grab, but I'll leave
17345 that part to someone who has handled Capture-fu before.
17347 2006-09-27 Chris Toshok <toshok@ximian.com>
17349 * DataGrid.cs: return false if alt isn't pressed when '0' is
17350 pressed. this keeps the '0' key from being swallowed, and fixes
17353 2006-09-27 Chris Toshok <toshok@ximian.com>
17355 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
17356 Calling Refresh (in response to a scrollbar event) screws up the
17357 scrollbar painting. Fixes bug #78923.
17359 2006-09-27 Chris Toshok <toshok@ximian.com>
17361 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
17362 then insert into hashtable" blocks threadsafe.
17364 2006-09-27 Chris Toshok <toshok@ximian.com>
17366 * MessageBox.cs (CreateParams): the styles should be |'ed with our
17367 baseclass's, since otherwise the
17368 ControlBox/MinimizeBox/MaximizeBox assignments above have no
17369 effect. This gets the close button back in messageboxes.
17371 2006-09-27 Chris Toshok <toshok@ximian.com>
17373 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
17374 flag, not just != 0. this makes flags that are actually multiple
17375 bits (like WS_CAPTION) work. fixes bug #79508.
17377 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
17379 * PageSetupDialog.cs: add support for getting and settings the
17380 paper size, source and orientation.
17382 2006-09-26 Chris Toshok <toshok@ximian.com>
17384 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
17385 and caption == "", we need to remove the resize handles as well as
17388 * Control.cs (set_Text): turns out that setting Text on a form
17389 should change the WM styles on the window, since if ControlBox ==
17390 false, the only way to get a window border is to have a non-""
17391 Text property. check winforms/forms/text.cs for an example. so,
17392 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
17393 update both window styles and title. This fixes a lot of dialogs
17394 (including the preferences dialog in MonoCalendar.)
17396 2006-09-26 Chris Toshok <toshok@ximian.com>
17398 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
17399 control isn't a Form), call Win32ShowWindow to hide the window,
17400 but don't update the control Visible property. When we reparent
17401 back to a parent control, call SetVisible in order for the
17402 window's visibility to be reinstated.
17404 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
17407 * Control.cs (ControlCollection.Remove): remove that value.Hide()
17408 call for good, since it breaks MonoCalendar (and other things I'm
17409 sure.) Also, set all_controls to null *after* the owner calls,
17410 which end up regenerating it.
17411 (ChangeParent): allow new_parent to be == null, passing
17412 IntPtr.Zero down to XplatUI.
17414 this fixes #79294 the right way.
17416 2006-09-26 Mike Kestner <mkestner@novell.com>
17418 * GridEntry.cs : internal SetParent method.
17419 * PropertyGrid.cs : attach to property changed on the proper
17420 target if we have a hierarchical grid with subobjects. Setup
17421 GridItem.Parent for hierarchical items.
17422 * PropertyGridView.cs : Set value on the correct target for
17423 hierarchical grids. [Fixes #78903]
17425 2006-09-26 Chris Toshok <toshok@ximian.com>
17427 * Control.cs (ChildNeedsRecreating): this should return true if
17428 either we're being recreated and the child is in our list, or our
17429 parent is waiting for our recreation.
17431 2006-09-26 Chris Toshok <toshok@ximian.com>
17433 * Control.cs (ControlCollection.Remove): reinstate the
17434 value.Hide() call as suggested in bug #79294.
17436 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
17438 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
17439 coordinates (versus a relative move).
17441 2006-09-26 Chris Toshok <toshok@ximian.com>
17443 * Control.cs: rework child recreation a little bit. It turns out
17444 that we race between the DestroyNotify the WM_DESTROY message. If
17445 the parent gets its DestroyNotify before the child gets the
17446 WM_DESTROY message, the child ends up not recreating (since the
17447 parent finishes its recreation on DestroyNotify, and the child
17448 checks ParentIsRecreating.)
17450 So, instead we store off a list of all the child controls which
17451 need to be recreated when the parent control starts to recreate
17452 itself. Then, when child controls get their WM_DESTROY message we
17453 check to see if they're in the parent's pending recreation list,
17454 and if so, we recreate. This removes all dependency on ordering
17455 from the code and fixes the initial MonoCalendar upgrade dialog.
17457 2006-09-26 Jackson Harper <jackson@ximian.com>
17459 * TextControl.cs: Use the Line to get the length of the line,
17460 since soft line breaks can change the end line.
17462 2006-09-26 Chris Toshok <toshok@ximian.com>
17464 * Control.cs (ControlCollection.AddImplicit): don't add the
17465 control again if it's already in one of our lists. This keeps us
17466 from adding controls over and over again for comboboxes when their
17467 handle gets recreated (as the combobox adds implicit controls in
17468 OnHandleCreated). Fixes the X11 errors in bug #79480.
17470 2006-09-26 Jackson Harper <jackson@ximian.com>
17472 * TextControl.cs: When deleting characters make sure that any
17473 orphaned zero lengthed tags get deleted.
17474 - Fix ToString for zero lengthed tags.
17476 2006-09-25 Jackson Harper <jackson@ximian.com>
17478 * TextControl.cs: When getting a tag at the location there can be
17479 multiple tags at the same spot, these are 0-lengthed tags that
17480 appear when extra formatting has been stuck in a location. We
17481 need to pull out the last of these 0 lengthed tags.
17483 2006-09-25 Jackson Harper <jackson@ximian.com>
17485 * TextControl.cs: Fix print out in debug method.
17486 * TextBoxBase.cs: When text is set bail if we are setting to the
17489 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
17491 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17492 It is now possible to change the selected index in a FontXXXListBox
17493 with the up and down arrow keys from the FontXXXTextBoxes.
17494 Also, send the FontXXXTextBox mouse wheel event to the corresponding
17495 FontXXXListBoxes to match ms.
17497 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
17499 * SystemInformation.cs: Return a clone of the theme's MenuFont because
17500 anyone can dispose it, anytime. All other properties returns enums,
17501 structs or basic types so they don't need such tricks.
17503 2006-09-22 Jackson Harper <jackson@ximian.com>
17510 * XplatUIDriver.cs: Update interface to add a primary selection
17511 flag, so the driver can use the primary selection buffer if
17513 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17515 * RichTextBox.cs: We need to supply the data object to paste now
17516 (so we can choose to supply CLIPBOARD or PRIMARY).
17517 * TextBoxBase.cs: Supply data object to paste (see above).
17518 - Middle click uses the primary selection data object.
17520 2006-09-21 Chris Toshok <toshok@ximian.com>
17522 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17523 of SetWMStyles. It's still a rat's nest and is largely
17524 order-dependent which I dislike immensely. This also fixes the X
17525 button disappearing from toplevel forms.
17527 2006-09-21 Mike Kestner <mkestner@novell.com>
17529 * ListBox.cs: move Jordi's click/dblclick raising code to the
17532 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
17534 * ListBox.cs: Fixes 79450
17536 2006-09-21 Mike Kestner <mkestner@novell.com>
17538 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17539 to deal with people updating the TreeNodeCollection after the tree
17540 is disposed. "Fixes" 79330.
17542 2006-09-20 Jackson Harper <jackson@ximian.com>
17544 * TextControl.cs: Push the cursor record onto the undo stack
17545 before the delete action. This fixes 78651.
17547 2006-09-20 Jonathan Chambers <joncham@gmail.com>
17549 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17550 CreateParams. Fixes 79329.
17552 2006-09-19 Chris Toshok <toshok@ximian.com>
17554 * XplatUIX11.cs: a couple of blanket code massage passes to clean
17555 things up a bit. First, get rid of the NetAtoms array (and the NA
17556 enum), and just embed the atoms as static fields. Also, add a
17557 couple of functions (StyleSet and ExStyleSet) to clean up all the
17558 bitmask testing of styles.
17560 * X11Structs.cs: remove the NA enum, not needed anymore.
17562 2006-09-19 Chris Toshok <toshok@ximian.com>
17564 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17565 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
17566 added cleanup to get MessageBox titles appearing again, which were
17567 broken by my earlier fix for caption-less/ControlBox-less windows.
17569 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
17571 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17572 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17573 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17574 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17575 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17576 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17577 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17578 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17579 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17580 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17581 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17583 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17584 ToolStripButton.cs: Stubs needed for above.
17585 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17587 2006-09-15 Chris Toshok <toshok@ximian.com>
17590 - make the MessageQueues hashtable Synchronized.
17592 - SendMessage: if the Hwnd is owned by a different thread, use the
17593 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
17594 thread. Fixes bug #79201.
17596 2006-09-15 Chris Toshok <toshok@ximian.com>
17598 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
17599 ControlBox == false, we disallow maximize/minimize/close. If the
17600 form Caption is "" we also disallow move (and get rid of the Title
17601 decoration). Unfortunately, regardless of how things are set,
17602 we're stuck with the Title and WM menu.
17604 2006-09-15 Chris Toshok <toshok@ximian.com>
17606 * Application.cs: add locking around the static message_filters
17607 ArrayList, part of #79196.
17609 2006-09-15 Chris Toshok <toshok@ximian.com>
17611 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
17612 Form.ControlBox == false, the window has no titlebar nor resize
17613 handles. fixes bug #79368.
17615 2006-09-15 Chris Toshok <toshok@ximian.com>
17617 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
17618 >= 0. Fixes bug #79370.
17620 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
17621 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
17623 Add properties: LayoutEngine, Margin, DefaultMargin.
17624 Add method: GetPreferredSize.
17625 Move layout logic from PerformLayout to layout engines.
17627 2006-09-13 Chris Toshok <toshok@ximian.com>
17629 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
17630 fix for #79326 broke #78718, so this change addresses that.
17632 - in SendWMDestroyMessages remove the call to
17633 CleanupCachedWindows, since we might be recreating the control and
17634 need to maintain the references to right Hwnd handles. Also, set
17635 the zombie flag to true for each of the children in the hierarchy
17636 instead of calling hwnd.Dispose. This will cause GetMessage to
17637 ignore all events for the window except for DestroyNotify.
17639 - In GetMessage, ignore messages except for DestroyNotify for
17642 * Control.cs: revert the is_recreating fix from the last
17643 ChangeLog. It's definitely "right", but it breaks switching from
17644 an MDI form to a non-MDI form. Will need to revisit that.
17646 * Hwnd.cs: add a zombie flag, which means "the
17647 client_window/whole_window handles are invalid, but we're waiting
17648 for the DestroyNotify event to come in for them". Set the flag to
17649 false explicitly if setting WholeWindow/ClientWindow, and also
17652 2006-09-13 Chris Toshok <toshok@ximian.com>
17654 * XplatUIX11.cs: rework window destruction slightly.
17656 - when destroying the windows associated with a control, we don't
17657 need 2 separate XDestroyWindow calls. Just the one for the
17658 whole_window (or for client_window if whole_window is somehow
17659 IntPtr.Zero -- can this happen?) is enough.
17661 - reworked SendWMDestroyMessages slightly, so we always dispose
17662 the child control hwnd's after sending the messages.
17664 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
17665 the two places it was used (one was even using hwnd.Handle and the
17666 other hwnd.client_window. ugh), adding another call in
17667 SendWMDestroyMessages. We need this new call because now the
17668 DestroyNotify events in the queue will be ignored for the child
17669 controls (as their hwnd's were disposed, and the window id's
17670 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
17672 - this fixes bug #79326.
17674 2006-09-13 Chris Toshok <toshok@ximian.com>
17676 * Control.cs: don't always set is_recreating to false at the end
17677 of RecreateHandle, since sometimes we're not done (and won't be
17678 until WndProc handles the WM_DESTROY message). Also, set
17679 is_recreating to false in the WM_DESTROY handling code. Part of
17680 the fix for bug #79326.
17682 2006-09-13 Miguel de Icaza <miguel@novell.com>
17684 * X11DesktopColors.cs: Start the droppage of debugging messages.
17686 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
17688 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
17690 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
17692 2006-09-12 Chris Toshok <toshok@ximian.com>
17694 * DataGrid.cs (get_ListManager): if the list_manager is null, try
17695 to create it using SetDataSource. Fixes bug #79151.
17697 2006-09-11 Chris Toshok <toshok@ximian.com>
17699 * XEventQueue.cs: add a DispatchIdle property.
17701 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
17702 either the queue is null, or the queue has DispatchIdle set to
17704 (DoEvents): set queue.DispatchIdle to false around the
17705 peek/translate/dispatch message loop in this method. This keeps
17706 Application.Doevents from emitting idle events. Part of the fix
17709 2006-09-11 Chris Toshok <toshok@ximian.com>
17711 * DataGrid.cs (set_DataSource): make this work for both the
17712 winforms/datagrid test and ReportBuilder. It seems as though when
17713 we've created a ListManager (or maybe it's if we have a
17714 BindingContext?), when we set the DataSource it clears the
17715 DataMember to "". otherwise we reuse the datamember. Fixes bug
17718 2006-09-11 Chris Toshok <toshok@ximian.com>
17720 * XplatUIX11.cs: deal with queue being null, which happens in all
17721 the Clipboard functions. Fixes one of the two problems mentioned
17724 2006-09-11 Chris Toshok <toshok@ximian.com>
17726 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
17727 button on various spots (including outside the menu) works closer
17728 to MS, and doesn't crash. Fixes #79343.
17730 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
17732 * ListView.cs: Do not initialize item_sorter in init. To match MS,
17733 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
17734 and the internal comparer is set. When a new ListViewItemSorter is set,
17735 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
17736 was specified. No further processing is necessary if SortOrder is set
17737 to it's current value. If Sorting is modified to None, and View is
17738 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
17739 (either custom or our internal ItemComparer) to null, on 1.0 profile
17740 only set item_sorter to null if its our internal IComparer. If Sorting
17741 is modified to Ascending or Descending, then use our internal IComparer
17742 if none is set, and if the current IComparer is our internal one then:
17743 on 2.0 profile always replace it with one for new Sorting, and on 1.0
17744 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
17745 Enum.IsDefined to verify whether a valid View value is specified in
17746 its setter. Automatically sort listview items when listview is
17747 created. In Sort, do nothing if ListView is not yet created, or if
17748 no item_sorter is set (no Sorting was set, Sorting was explicitly set
17749 to None or ListViewItemSorter was set to null). Added Sort overload
17750 taking a bool to indicate whether the ListView should be redrawn when
17751 items are sorted (we use this in ListViewItemCollection to avoid double
17752 redraws). Modified our internal IComparer to take the sort order into
17753 account. In Add and AddRange methods of ListViewItemCollection, also
17754 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
17755 view), but use overload with noredraw option to avoid double redraw.
17756 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
17757 true when View is Tile, and do the same when attempting to set View to
17758 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
17759 for selected/checked indices, as it involves overhead when sorting is
17760 done while these collections are not used all that often. Instead
17761 we'll build the indices on demand. Modified IList implementation of
17762 CheckedIndexCollection to use public methods if object is int.
17763 Modified CheckedListViewItemCollection to hide checked items if
17764 ListView.CheckBoxes is false. Removed LAMESPEC remark in
17765 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
17766 IList implementation in SelectedIndexCollection to use public methods
17767 if object is int. Modified SelectedListViewItemCollection to hide
17768 selected items if listview is not yet created.
17769 * ListViewItem.cs: CheckedIndices list no longer needs to be
17770 maintained separately (see ListView changes). Also clone font, fixes
17773 2006-09-11 Mike Kestner <mkestner@novell.com>
17775 * ComboBox.cs: if we are updating the contents of the currently
17776 selected index, refresh the control or the textbox selection.
17779 2006-09-11 Mike Kestner <mkestner@novell.com>
17781 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
17782 the 'specified' logic has been moved there. This seems like a bug
17783 in Control.cs, since our current SetBoundsCore completely ignores
17784 the specified parameter. Peter's commit seems to indicate that is
17785 the way the MS control implementation works. [Fixes #79325]
17787 2006-09-10 Jonathan Chambers <joncham@gmail.com>
17789 * XplatUI.cs: Set default_class_name to be composed
17790 of current domain id. This allows MWF to be loaded in multiple
17793 2006-09-09 Miguel de Icaza <miguel@novell.com>
17795 * X11Keyboard.cs: If we are unable to obtain the input method, do
17796 not call CreateXic to create the input context. Should fix
17799 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
17801 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
17802 Simplified gnome support by adding more pinvokes to get the
17803 icon for a file or mime type.
17805 2006-09-08 Jackson Harper <jackson@ximian.com>
17807 * MenuAPI.cs: Deslect popup context menu items before closing the
17808 window, so that you don't see the previously selected item
17809 selected when you reopen the menu.
17810 * TextControl.cs: Update the cursor position even if we don't have
17811 focus. This fixes typing in things like the ComboBox. I'm not
17812 totally sure we should always set the visibility if we don't have
17813 focus, but couldn't find any corner cases where the cursor showed
17814 up when it shouldn't.
17816 2006-09-08 Chris Toshok <toshok@ximian.com>
17818 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
17819 our arrays are length 256. & 0xff before indexing. Fixes the
17820 crash in bug #78077.
17822 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17824 * ThemeWin32Classic.cs:
17825 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
17826 is true. Handle that check box too.
17828 2006-09-07 Chris Toshok <toshok@ximian.com>
17830 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
17833 2006-09-07 Chris Toshok <toshok@ximian.com>
17835 * Control.cs: in set_BackColor only do the work if
17836 background_color != value.
17838 * XplatUIX11.cs: move the clearing of invalid areas (both client
17839 and nc) to the same block of code where we set (nc_)expose_pending
17840 to false. That is, move it from PaintEventEnd to PaintEventStart,
17841 so things that cause invalidates from within OnPaint will trigger
17842 another call to OnPaint. Fixes bug #79262.
17844 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
17846 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
17847 * FileDialog.cs: Fix typo
17849 2006-09-07 Jackson Harper <jackson@ximian.com>
17851 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
17852 for tab pages if they have any.
17854 2006-09-06 Mike Kestner <mkestner@novell.com>
17856 * Splitter.cs: use the "current" rect when finishing drag handle
17857 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
17859 2006-09-06 Mike Kestner <mkestner@novell.com>
17861 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
17862 support offset splitters. [Fixes #79298]
17864 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
17866 * Mime.cs: Fixed a bug that could override the global mime type
17869 2006-09-05 Jackson Harper <jackson@ximian.com>
17871 * TabControl.cs: Better calculation method for setting the slider
17872 pos. Prevents crashes on really wide tabs.
17873 - Draw Image on tab pages if an image list is used.
17875 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17877 * MonthCalendar.cs: When Font changes, the Size should be
17878 updated to fit the new font's space requirements.
17880 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
17882 * ListBox.cs: If the items are cleared with Items.Clear set
17885 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17887 * MonthCalendar.cs: Handle arrow keys as input keys. Also
17888 fire DateChanged event instead of DateSelected event when
17889 the date was changed by keyboard interaction.
17891 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17893 * DateTimePicker.cs: Handle DateChanged for the associated
17894 month_calendar control, and set month_calendar.Font from
17895 OnFontChanged method, as well as resize the height of the
17896 control when needed. Make PreferredHeight proportional.
17898 2006-09-01 Chris Toshok <toshok@ximian.com>
17900 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
17903 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
17905 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
17907 * FileDialog.cs: Set ClientSize instead of window size, to allow space
17908 for decorations (Fixes #79219)
17910 2006-09-01 Mike Kestner <mkestner@novell.com>
17912 * ComboBox.cs: first stab at sorting plus some selection handling
17913 fixes to bring us more in line with MS behavior. Also switches back
17914 to index based selection. Alternative patches for index-based
17915 selection were provided by Jackson Harper, Carlos Alberto Cortez,
17916 and latency@gmx.de on bug 78848. I assume they were similar to this
17917 code I've had simmering in my tree forever.
17920 2006-09-01 Chris Toshok <toshok@ximian.com>
17922 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
17923 when setting list position guard against ending up with a -1 index
17924 (the other part of the fix for #78812). Should probably make sure
17925 we don't need the analogous fix in the ItemDeleted case.
17928 - in SetDataSource, work around the fact that the way
17929 OnBindingContextChanged is invoked will cause us to re-enter this
17930 method. I'll remove the hack once I investigate
17931 OnBindingContextChanged.
17933 - fix the logic in set_DataSource and set_DataMember (basically
17934 what to do if the other of the two is null.)
17936 - in OnListManagerItemChanged, we need to take into account the
17937 edit row when deciding whether or not to call RecreateDataGridRows
17938 (part of the fix for #78812).
17940 2006-09-01 Jackson Harper <jackson@ximian.com>
17942 * Splitter.cs: Don't do anything if there is no control to affect
17943 (prevents us from crashing in weird tet cases).
17944 * TreeView.cs: Bounding box for the mouse movement reverting
17945 focus/selection back to previously selected node. This matches
17946 MS, and makes the tree a lot more useable.
17947 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
17948 use clipping so they are not drawn. This fixes when the control
17949 is set to have a transparent background, or if it was over an
17952 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
17954 * MimeIcon.cs: Improved handling for reading default icons when
17955 using gnome (2.16 made it necessary). Check and read svg icons
17956 first, then 48x48 and then 32x32 icons.
17958 2006-08-31 Chris Toshok <toshok@ximian.com>
17960 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
17963 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
17964 ProcessKeyPreview. Fixes part of #77806.
17966 * DataGrid.cs: big patch.
17968 - revert the queueing up of DataSource/DataMember if inside
17969 BeginInit/EndInit calls. That's not the way the datagrid achieves
17970 its delayed databinding. Instead, call SetDataSource in
17971 OnBindingContextChanged. This mimic's MS's behavior, and fixes
17974 - Also, it wasn't mentioned in #78811, but the test case exhibits
17975 behavior that was lacking in our datagrid implementation - Columns
17976 that have mapping names that don't exist in the datasource's
17977 properties aren't shown. Yuck. To fix this I added the bound
17978 field to the column style, and basically any calculation to figure
17979 out anything about columns uses a loop to find the bound columns.
17980 still need to investigate if I can cache an array of the bound
17981 columns or if the indices must be the same.
17983 - When setting CurrentCell, we no longer abort if the cell being
17984 edited was in the add row. This fixes the other part of #77806.
17986 - The new code also fixes #78807.
17988 * ThemeWin32Classic.cs: perpetrate the same disgusting
17989 column.bound field hack, and only render bound fields.
17991 2006-08-31 Chris Toshok <toshok@ximian.com>
17993 * DataGridColumnStyle.cs: add bound field. this field is true if
17994 the datasource has a property corresponding to the mapping name.
17996 * DataGridTableStyle.cs: set the bound field on the column styles
17997 depending on whether or not we have a column for that property.
17999 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
18001 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
18002 splitter control (fixes #79228)
18004 2006-08-31 Chris Toshok <toshok@ximian.com>
18006 * DataGridColumnStyle.cs: we need to delay the assignment of
18007 property descriptor until the last possible moment due to the lazy
18008 databinding stuff in the datagrid. Also, fix the exceptions
18009 thrown by CheckValidDataSource to match MS.
18011 2006-08-31 Jackson Harper <jackson@ximian.com>
18013 * Form.cs: When activated select the active control, if there is
18014 no active control, we select the first control.
18015 * XplatUIX11.cs: If there is no focus control when we get a
18016 FocusIn event, find the toplevel form and activate it. This
18017 occurs when you popup a window, it becomes the focus window, then
18018 you close that window, giving focus back to the main window.
18020 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18022 * MonthCalendar.cs:
18023 * ThemeWin32Classic.cs: Cache Font in bold style, as well
18024 as StringFormat with Center alignments in MonthCalendar,
18025 instead of creating new ones when drawing the control.
18026 Also, draw the month name in bold style.
18028 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
18031 - PerformLayout(): It would seem MS performs the fill even if the
18032 control is not visible (part of #79218 fix)
18033 - ResetBackColor(): Use the setter to reset the color, to allow
18034 overriders to catch the change.
18036 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
18037 - CreateHandle(): dito (part of $79218 fix)
18038 - Don't set an icon if we have a dialog
18039 * ScrollableControl.cs:
18040 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
18041 - ScrollIntoView(): No need to scroll if control is already visible
18042 (resolves fixme and fixes #79218)
18044 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18046 * MonthCalendar.cs: Change proportions in SingleMonthSize
18047 to match the aspect of the original control.
18049 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
18051 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
18052 get updated when they get maximized.
18054 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
18056 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
18058 2006-08-29 Chris Toshok <toshok@ximian.com>
18060 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
18062 2006-08-29 Jackson Harper <jackson@ximian.com>
18064 * TreeView.cs: Need to track selected node and highlighted node,
18065 they aren't always the same thing, when the mouse is down on a
18066 node it is hilighted, but not selected yet.
18067 - Do the HideSelection stuff right
18068 - Need to focus on rbutton mouse down. And redraw selection when
18069 right click is mouse upped.
18071 2006-08-29 Mike Kestner <mkestner@novell.com>
18073 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
18074 when SubItems.Count < Columns.Count. [Fixes #79167]
18076 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18078 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
18080 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18082 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
18083 from X. Only send based on ConfigureNotify if we don't have the
18084 correct location in hwnd (if the window manager moved us)
18086 2006-08-28 Mike Kestner <mkestner@novell.com>
18088 * ListView.cs: remove a TODO.
18089 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
18090 [Fixes ListView part of #79166]
18092 2006-08-28 Mike Kestner <mkestner@novell.com>
18094 * ListView.cs: move wheel handler to parent since it is focused
18095 instead of the item_control now. [Fixes #79177]
18097 2006-08-28 Mike Kestner <mkestner@novell.com>
18099 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
18100 when the control is focused. [Fixes #79171]
18102 2006-08-28 Mike Kestner <mkestner@novell.com>
18104 * ListView.cs: size the item and header controls for empty and
18105 unscrollable views.
18106 * ThemeWin32Classic.cs: draw disabled backgrounds.
18109 2006-08-28 Chris Toshok <toshok@ximian.com>
18111 * Form.cs: remove unused "active_form" static field.
18113 * Hwnd.cs: lock around accesses to static windows collection.
18115 * Application.cs: lock threads in Exit ().
18117 2006-08-28 Chris Toshok <toshok@ximian.com>
18119 * NativeWindow.cs: lock around accesses to window_collection.
18121 2006-08-28 Chris Toshok <toshok@ximian.com>
18123 * Control.cs: err, fix this the right way, by locking on controls
18124 when using it. not by making it synchronized.
18126 2006-08-28 Chris Toshok <toshok@ximian.com>
18128 * Control.cs: make the static "controls" field synchronized, as it
18129 gets updated from multiple threads.
18131 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18133 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
18134 Prevent other threads from exiting when calling thread sets quit state.
18135 * XEventQueue.cs: Added PostQuitState property
18137 2006-08-27 Chris Toshok <toshok@ximian.com>
18139 * AsyncMethodData.cs: add a slot for the window handle.
18141 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
18142 window (the destination control's window, not the foster window).
18144 * Control.cs (BeginInvokeInternal): store the window's handle in
18145 the AsyncMethodData.
18148 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18151 - PostQuitMessage: Removed resetting S.D display handle, we might have
18152 another loop started after calling PostQuitMessage (Fixes #79119)
18153 - Created destructor to reset S.D handle
18155 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18157 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
18159 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18161 * TextControl.cs (Insert): Update the caret position even if we don't
18162 have a handle yet, just don't call the driver in that case.
18163 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
18164 to the end of the new selection text (Fixes #79184)
18166 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18168 * Form.cs (Activate): Only activate if the handle is created)
18170 - Mark window as invisible when it's disposed
18171 - Check if window handle is created when setting window visible,
18172 instead of relying just on the is_created variable
18173 - Check if object is disposed when creating the control (Fixes #79155)
18175 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18177 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
18178 when allowing layout again. Otherwise we re-generate the anchoring
18179 distance to the border again and actually alter what the user wanted
18180 This is ugly, it'd be better if we used DisplayRectangle instead of
18181 ClientRectangle for Control.UpdateDistances, but that causes us to
18182 have other problems (initial anchoring positons would be wrong)
18185 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18188 - The size and location setters shouldn't go directly to
18189 SetBoundsCore, but to SetBounds, which triggers layout on the
18190 parent, then calls SetBoundsCore. (Related to fix for #78835)
18191 - SetBounds: Moved actual location update code into this function
18192 from SetBoundsCore, to match MS. Added call to PerformLayout if
18193 we have a parent (to trigger resizing of anchored parents if the
18194 child size has changed (see testcase for #78835)
18195 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
18197 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
18199 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18201 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
18202 System.Drawing when a toplevel window gets closed; there might
18203 be other toplevel windows belonging to the same app (Fixes #78052)
18205 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
18207 * FileDialog.cs: After reading FileDialog settings from mwf_config
18208 use Desktop prefix only if a real folder doesn't exist anymore.
18209 * FontDialog.cs: Added char sets.
18210 It is now possible to select the font, size or style with the
18213 2006-08-25 Kornél Pál <kornelpal@gmail.com>
18215 * PrintPreviewDialog.cs: Use assembly name constants.
18217 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18219 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
18220 scrollbar from whacking it's buttons)
18222 2006-08-24 Chris Toshok <toshok@ximian.com>
18224 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
18225 in this patch (aggregating setting Left/Top/Width/Height to
18226 setting Bounds on the scrollbars), but the crux of the fix is in
18227 Recalculate, where we scroll by the remaining scroll_position if
18228 we're hiding a scrollbar. The 2*$5 reward in the comment is
18231 2006-08-24 Jackson Harper <jackson@ximian.com>
18234 * MdiWindowManager.cs: If the form is made a non-mdi window we
18235 need to remove the form closed event so that closing forms works
18238 2006-08-24 Jackson Harper <jackson@ximian.com>
18240 * Control.cs: Make IsRecreating internal so that the driver can
18242 - Temporarily remove the Hide when controls are removed, its
18243 making a whole bunch of things not work because visibility isn't
18244 getting reset elsewhere correctly
18245 * Form.cs: Need to do a full handle recreation when the mdi parent
18247 * XplatUIX11.cs: If we are recreating handles don't dispose the
18248 HWNDs. What was happening is the handles were being recreated in
18249 SendWMDestroyMessages, but then flow continued on in that method
18250 and destroyed the new handles.
18252 2006-08-23 Jackson Harper <jackson@ximian.com>
18254 * Form.cs: MdiClient is always at the back of the bus
18255 * Control.cs: When the order of items in the collection is changed
18256 we need to reset the all_controls array
18257 - do the same sorta setup thats done when adding a control when a
18258 control is set on the collection.
18260 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18262 * TextBoxBase.cs (get_Text): Return an empty array if our document
18263 is empty (fixes #79052)
18265 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18267 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
18268 on WM_SYSCHAR messages (fixes #79053)
18270 2006-08-23 Chris Toshok <toshok@ximian.com>
18272 * DataGrid.cs: fix flickering when scrolling vertically.
18274 2006-08-23 Chris Toshok <toshok@ximian.com>
18276 * DataGrid.cs (EndEdit): only invalidate the row header when we
18279 2006-08-23 Chris Toshok <toshok@ximian.com>
18281 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
18282 methods. fixes the flicker when scrolling around.
18284 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18286 * FileDialog.cs: Making sure the control is created before we get a
18287 chance to use it with BeginInvoke (Fixes #79096)
18289 2006-08-23 Chris Toshok <toshok@ximian.com>
18291 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
18292 width to use when painting the rows.
18294 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18297 - Throw ArgumentException if a negative value is passed to SelectionLength
18298 - Update the selection end if start is moved. end needs to be always
18299 after start. (Fixes #79095)
18300 - Track selection length; MS keeps the selection length even if start
18301 is changed; reset on all other operations affection selection
18303 2006-08-22 Jackson Harper <jackson@ximian.com>
18305 * TreeView.cs: Make sure both scrollbars get displayed and sized
18306 correctly when the other bar is visible.
18307 - Use the original clip rectangle for checking if the area between
18308 the two scrollbars is visible, not the viewport adjusted clipping
18311 2006-08-22 Jackson Harper <jackson@ximian.com>
18313 * Binding.cs: We don't use IsBinding because it requires the
18314 control to be created, which really shouldn't be necessary just to
18315 set a property on the control.
18317 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18319 * ComboBox.cs: Some CB.ObjectCollection methods must throw
18320 ArgumentNullReferenceException when the argument is null.
18322 2006-08-21 Jackson Harper <jackson@ximian.com>
18324 * Timer.cs: Track the thread that the timer is started in (NOT
18325 CREATED), this way messages for it will only be triggered on its
18327 * XEventQueue.cs: Track the timers here, this makes timers per
18329 * XplatUIX11.cs: The timers are moved to the XEventQueue.
18331 2006-08-19 Chris Toshok <toshok@ximian.com>
18333 * XplatUIX11.cs: after further communication with pdb, we get the
18334 best of both worlds. SetZOrder working for un-Mapped windows, and
18335 no X errors for un-mapped windows.
18337 2006-08-19 Chris Toshok <toshok@ximian.com>
18339 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
18340 as it was causing pdn toolbars to not have the correct stacking.
18342 2006-08-18 Mike Kestner <mkestner@novell.com>
18344 * ListView.cs : guard against negative ClientArea.Width in scrollbar
18345 calculation. Not sure why control should ever be setting a negative
18346 width though. Fixes #78931.
18348 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18350 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
18351 null items in ObjectCollection class.
18352 * ListBox.cs.: Likewise.
18354 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
18356 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
18357 as the base method in ThemeWin32Classic should work fine.
18360 2006-08-18 Jackson Harper <jackson@ximian.com>
18362 * Binding.cs: When validating if the value entered doesn't convert
18363 properly reset to the old value.
18364 * RadioButton.cs: Don't fire click when we get focus.
18366 2006-08-18 Jackson Harper <jackson@ximian.com>
18368 * FileDialog.cs: Paint the selection on the directory combobox the
18371 2006-08-17 Jackson Harper <jackson@ximian.com>
18373 * ErrorProvider.cs: Don't allow the error control to be selected.
18374 * Control.cs: Don't send the SetFocus messages, the control
18375 activation will do this, and if we do it blindly here validation
18378 2006-08-17 Jackson Harper <jackson@ximian.com>
18381 * ContainerControl.cs: Make validation events fire in the correct
18382 order. TODO: For some reason the first validation event is not
18385 2006-08-17 Mike Kestner <mkestner@novell.com>
18387 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
18389 2006-08-17 Mike Kestner <mkestner@novell.com>
18391 * ComboBox.cs : implement scroll wheel support for popped-down
18392 state. Fixes #78945.
18394 2006-08-17 Jackson Harper <jackson@ximian.com>
18396 * TreeView.cs: Specify treeview actions (old patch that didn't get
18397 committed for some reason).
18398 - Don't let the mouse wheel scroll us too far. Just want to make
18399 the bottom node visible, not scroll it all the ways to the top.
18401 2006-08-17 Jackson Harper <jackson@ximian.com>
18403 * XplatUIX11.cs: Mouse wheel events go to the focused window.
18405 2006-08-17 Mike Kestner <mkestner@novell.com>
18407 * ComboBox.cs : don't do mouseover selection in simple mode.
18409 2006-08-16 Jackson Harper <jackson@ximian.com>
18411 * Form.cs: Fire the closing events for all the mdi child windows
18412 when a window is closed. If the cancel args are set to true, the
18413 main window still gets the event fired, but it doesn't not close.
18414 * MdiWindowManager.cs: Do this closing cleanup in a Closed
18415 handler, instead of when the button is clicked, so cancelling the
18416 close works correctly.
18417 * ComboBox.cs: Send the mouse down to the scrollbar.
18419 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18421 * ListBox.cs: When passing 'null' to SelectedItem,
18422 set SelectedIndex to -1, to unselect items. This is the
18423 observed behaviour in .Net.
18425 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
18427 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
18428 MS flags saying there won't be any. (fixes #78800)
18429 * Control.cs (HandleClick): Made virtual
18431 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
18433 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
18434 cultures. Fixed bug #78399.
18436 2006-08-16 Jackson Harper <jackson@ximian.com>
18438 * Form.cs: Use the MdiClients MdiChildren property to access
18439 MdiChildren instead of creating the array from the child controls.
18440 * MdiClient.cs: Maintain a separate array of the mdi children, so
18441 that insertion order is maintained when the Z-order is changed.
18443 2006-08-16 Mike Kestner <mkestner@novell.com>
18445 * ListView.cs : add an ItemComparer and default to it for sorting.
18446 Fixes #79076, but sorting needs a complete overhaul to be compat with
18449 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18451 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
18453 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18455 * Hwnd.cs (Mapped): Properly traverse the tree
18457 2006-08-15 Chris Toshok <toshok@ximian.com>
18459 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
18460 pass manager.Current.GetType() to ParseData. It has to be the
18461 property type. So, hold off doing the ParseData until we're in
18462 SetPropertyValue where we know the type. This fixes the crash in
18463 #78821 but the textbox is still empty.
18465 2006-08-15 Chris Toshok <toshok@ximian.com>
18468 - when we're scrolling, only call Edit() again if the
18469 current cell is still unobscured. Fixes bug #78927.
18470 - when handling mousedown on a cell, ensure the cell is visible
18471 before calling Edit.
18472 - remove the properties from DataGridRow, and remove the
18473 DataGridParentRow class altogether.
18476 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18478 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18479 fire OnTextChanged by ourselves. There's no point calling base,
18480 we don't set the base value anywhere else. Fixes #78773.
18482 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18484 * ListBox.cs: Call CollectionChanged when modifying
18485 an item from Items indexer, to update the actual items
18488 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18490 * PrintDialog.cs: Small fixes for focus and a pair of checks,
18491 to match .Net behaviour.
18493 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18495 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18497 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18499 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18501 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18503 * MessageBox.cs: Prevent potential NRE exception.
18504 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18506 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18508 * MessageBox.cs: Calculate the owner of a messagebox, also make
18509 it topmost. Fixes #78753
18511 2006-08-14 Chris Toshok <toshok@ximian.com>
18513 * XplatUIX11.cs: A couple of fixes so that metacity will let us
18514 programmatically move windows. first, set the PPosition hint as
18515 well as the USPosition hint. Second include some code from pdb
18516 that sets the window type to NORMAL when we set the transient for
18517 hint. This is because, in the absence of a window type, metacity
18518 thinks any window with TransientFor set is a dialog, and refuses
18519 to let us move it programmatically. fascists.
18521 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18523 * XplatUIX11.cs: When setting normal hints, take into consideration
18524 an different hints previously set so we don't delete them (fixes #78866)
18526 2006-08-12 Chris Toshok <toshok@ximian.com>
18528 * ToolBarButton.cs: make Layout return a boolean, if something to
18529 do with the button's layout changed.
18532 - add another parameter to Redraw, @force, which all existing
18534 - make the Layout function return a boolean which is true if the
18535 layout has actually changed. Redraw now uses this (and @force)
18536 to determine when to invalidate. At present the only place
18537 where @force can be false is the call from OnResize, when
18538 background_image == null. So, resizing a toolbar when the
18539 layout doesn't change results in no drawing.
18541 2006-08-12 Chris Toshok <toshok@ximian.com>
18543 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
18544 the VScrollBar and HScrollbar reversed. oops.
18546 * DataGrid.cs: fix the logic that assigns sizes to the implicit
18547 scrollbars. we were assigning them twice (once in
18548 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18549 therefore causing two scrollbar resizes (and redraws?) to happen
18552 2006-08-12 Chris Toshok <toshok@ximian.com>
18554 * ToolBarButton.cs: redraw the entire button if the theme tells us
18557 * Theme.cs: add ToolBarInvalidateEntireButton.
18559 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18560 buttons, just the border.
18562 * ThemeNice.cs: redraw the entire toolbar button since we need to
18563 draw the highlight image.
18565 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18566 we need to redraw the entire button (not just the border).
18568 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18570 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18571 for vertical bars. Fixes the mismatches shown by #78513
18573 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
18575 * FileDialog.cs: If a saved/remembered path doesn't exist
18576 anymore, fall back to "Desktop".
18578 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18580 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18581 parent. It's apparently legal to not have one
18583 - SetZOrder: Don't try to set Z-Order on an unmapped window
18584 - CreateWindow: 0,0 are legal coordinates for a window. don't move
18585 it unless the coordinates are negative
18587 2006-08-10 Mike Kestner <mkestner@novell.com>
18589 * ListControl.cs: allow null for DataSource. Clear DisplayMember
18590 when setting to null per msdn docs. Fixes #78854.
18592 2006-08-10 Chris Toshok <toshok@ximian.com>
18594 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
18595 flickering by setting a clip rectangle on the Graphics when we
18596 need to redraw just a particular menuitem. Also, rename "OnClick"
18597 to "OnMouseDown" to reflect what it actually is.
18599 * Form.cs: track the OnMouseDown change.
18601 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
18603 * CommonDialog.cs: Properly inherit the CreateParams from the form
18604 and only change what we need. Fixes #78865
18606 2006-08-10 Chris Toshok <toshok@ximian.com>
18608 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
18609 flickering in flat mode (and most of the flickering in general) by
18610 only invalidating the button border (and not the entire rectangle)
18611 when the state changes. A couple of cases still flicker:
18612 ToggleButtons, and the dropdown arrow case when the user mouse
18615 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
18617 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
18618 for german keyboards. Numlock state shouldn't affect the behaviour
18619 of the Del key. Fixes bug #78291.
18621 2006-08-10 Chris Toshok <toshok@ximian.com>
18623 * ListControl.cs: remove the items.Clear line from BindDataItems,
18624 as this is the first thing done by both subclasses in their
18625 SetItemsCore overrides. Also, add a ItemChanged handler, and when
18626 passed -1, refresh the list. This gets databinding working when
18627 the datasource is set on the list before the datasource is
18628 populated (as in wf-apps/ReportBuilder.)
18630 * ComboBox.cs: remove the argument to BindDataItems. This call
18631 should really go away, and be initiated by the ListControl code.
18633 * ListBox.cs: same.
18635 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18637 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
18638 if no data is in the document when the control is displayed
18640 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18642 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
18645 - PositionCaret: Allow positioning of caret but don't call methods
18646 requiring a handle if the window isn't created yet
18647 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
18648 - owner_HandleCreated: Don't position the caret, just update it's
18649 location. User might have already set a different position
18651 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18653 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
18654 windows. Screws up the returned coordinates for child windows.
18655 Fixes #78825. I'm hoping this doesn't break something, since the
18656 code was explicitly put in 8 months ago, but no bug was attached.
18657 Menus still seem to work properly.
18659 2006-08-08 Chris Toshok <toshok@ximian.com>
18661 * DataGrid.cs: make BeginInit/EndInit actually do what they're
18662 supposed to do - delay data binding until the EndInit call. Also,
18663 make the table style collection's CollectionChangeAction.Refresh
18666 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
18667 (with action = Refresh) when a consituent table's MappingName is
18670 2006-08-08 Chris Toshok <toshok@ximian.com>
18672 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
18673 Invalidate, since changing the text can change the size of the all
18676 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
18678 * Form.cs (AddOwnedForm): Still need to add the form to our listif
18679 we don't have it yet
18681 2006-08-08 Chris Toshok <toshok@ximian.com>
18683 * PrintControllerWithStatusDialog.cs: don't .Close() the status
18684 dialog, as this causes X errors later on, since we actually
18685 destroy the window. Instead, .Hide() it.
18687 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
18689 * ComboBox.cs: Added focus reflection for popup window
18691 - Removed transient setting for non-app windows for now, not sure it
18693 - Fixed logic checking if we have captions when deciding
18694 override_redirect, WS_CAPTION is two bits and a 0 check was not
18696 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
18699 - AddOwnedForm: Don't just add the form to the list, call the property
18700 to ensure the driver is informed about the ownership as well
18701 - CreateHandle: Set the TopMost status in the driver if we have an owner
18702 * XplatUI.cs: Fixed debug statement
18704 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
18705 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18706 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
18707 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
18708 TrackBarRenderer.cs: Make constructor private.
18709 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
18710 * ProfessionalColorTable.cs: Make properties virtual.
18712 2006-08-06 Duncan Mak <duncan@novell.com>
18714 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
18717 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18718 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18719 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
18720 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
18721 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
18722 Initial import of new 2.0 classes.
18724 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18725 * Application.cs: Add 2.0 VisualStyles properties.
18727 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18728 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18729 XplatUIX11.cs: Create property to allow access to existing private
18730 variable "themes_enabled"
18732 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18734 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
18735 file size, as otherwise our class libraries fail using windows. Fixes
18738 2006-08-04 Jackson Harper <jackson@ximian.com>
18741 * XplatUIX11.cs: Move the toolwindow window manager creation into
18742 the X11 driver, this way on win32 we can let windows create/handle
18745 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18747 * PrintDialog.cs: Remove some redundant checks, add some others,
18748 clean some code, and move the focus to the text boxes when the
18749 values are incorrect.
18751 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
18753 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
18755 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
18757 * NumericUpDown.cs: Setting the Minimum and Maximum is now
18758 handled correctly. Fixes bug #79001.
18760 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18762 * PrintDialog.cs: The "Copies" numeric up down must have
18763 set the Minimum property to 1; only if the value is bigger
18764 than 1, activate "Collate" check box. This is the behaviour of .Net.
18765 Also modify the Document elements only if it is not null.
18767 2006-08-03 Jackson Harper <jackson@ximian.com>
18769 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
18770 length. (We have a larger array then actual node count).
18772 2006-08-03 Jackson Harper <jackson@ximian.com>
18774 * ComboBox.cs: Don't show selection by default.
18775 - The SelectAll isn't needed here, since the focus code should do
18777 - DDL style lists to manual selection drawing, so when they
18778 get/lose focus they have to invalidate.
18780 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
18782 * TextBoxBase.cs: Don't always show all selections by default.
18784 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
18785 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
18786 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
18787 Fixed various typos.
18789 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
18791 * Control.cs: Removing the controls in a ControlCollection with
18792 Clear now hides the controls as expected. Fixes bug #78804.
18794 2006-08-03 Jackson Harper <jackson@ximian.com>
18796 * Control.cs: Revert previous focus patch, it breaks reflector.
18798 2006-08-03 Jackson Harper <jackson@ximian.com>
18800 * ComboBox.cs: Cleanup selection and focus with the combobox.
18801 This also eliminates some duplicated keyboard code, since now
18802 everything is handled by the main class.
18803 - Make list selection work on mouse up instead of down, to match
18806 2006-08-02 Jackson Harper <jackson@ximian.com>
18808 * Control.cs: Setting focus needs to go through the whole
18809 selection mechanism.
18811 2006-08-02 Chris Toshok <toshok@ximian.com>
18813 * PrintPreviewDialog.cs: change MinimumSize to use
18814 base.MinimumSize so it works.
18816 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
18819 - UpdateCaret: Added sanity check in case caret isn't defined yet
18820 - Line.Delete: Now updating selection and caret markers if we're
18821 transfering a node (Properly fixes #78323)
18822 - SetSelectionEnd: Added sanity check
18823 * TextBoxBase.cs: Removed broken attempt to fix #78323
18825 2006-08-01 Chris Toshok <toshok@ximian.com>
18827 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
18828 Close() call is handled in Form, not here.
18830 2006-08-01 Chris Toshok <toshok@ximian.com>
18832 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
18835 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
18836 for sizes < 100% zoom. The code now aggressively attempts to keep
18837 from calling document.Print (), and tries not to use the scaling
18838 g.DrawImage whenever possible (it still does if you scale to >
18839 100%, since usually that involves huge images).
18841 * PrintPreviewControl.cs: hook up the close button.
18843 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
18844 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
18845 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
18846 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
18847 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
18848 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
18849 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
18850 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
18851 Removed [Serializable] for 2.0 Event Handlers.
18853 2006-07-31 Jackson Harper <jackson@ximian.com>
18855 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
18856 * TextControl.cs: Uncomment out the body of this method.
18858 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
18860 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
18863 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18865 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
18866 that embed TextBox and need selections visible even if textbox is not
18867 focused to enforce that behaviour.
18868 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
18871 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18874 - Added new SetSelectionStart/SetSelectionEnd overloads
18875 - Fixed viewport width assignment to be accurate
18876 - Adjusted alignment line shift calculations to allow cursor on right
18877 aligned lines to be always visible at the right border (like MS)
18879 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
18880 - TextBoxBase_SizeChanged: recalculating canvas on size changes
18881 - CalculateScrollBars: Use ViewPort size instead of window size, to
18882 properly consider space occupied by the border and scrollbars
18884 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
18885 calculations; no longer leaves artifacts
18886 - CaretMoved: Adjusted window scrolling to match MS and fixed several
18887 calculation bugs (Still missing right/center align calculations)
18889 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18891 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
18892 use of both scroll rect and clip rect, as they do the same.
18894 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18896 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
18897 in the event handler (fixes #78912)
18899 2006-07-31 Chris Toshok <toshok@ximian.com>
18901 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
18902 grid.ListManager.Count, since grid.ListManager might be null.
18903 This of course begs the question "why are we drawing rows for a
18904 grid with no list manager (and therefor no rows)?" Fixes the
18905 crash in bug #78929.
18907 2006-07-31 Chris Toshok <toshok@ximian.com>
18909 * RelatedPropertyManager.cs: Don't always chain up to the parent
18910 ctor. instead, call SetDataSource if the parent's position is !=
18911 -1. Fixes the crash in #78822.
18913 2006-07-31 Chris Toshok <toshok@ximian.com>
18915 * DataGrid.cs (get_ListManager): use field instead of property
18916 accessors for datasource and datamember.
18917 (RowsCount): make internal again.
18918 (OnMouseDown): end edits before resizing columns/rows.
18919 (OnMouseUp): restart edits after resizing columns/rows.
18921 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
18923 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
18924 This fixes the situation where the last set cursor is displayed
18925 whenever the mouse is over scrollbars.
18927 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18929 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
18930 Document properties, as well as initial values.
18932 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
18934 * XplatUIWin32.cs (SetBorderStyle): Setting both border
18935 and ClientEdge results in a 3-pixel border, which is
18938 2006-07-28 Jackson Harper <jackson@ximian.com>
18940 * TreeNodeCollection.cs: Fix the clear method.
18941 - Fix the Shrink also
18943 2006-07-27 Jackson Harper <jackson@ximian.com>
18945 * TreeView.cs: Make sure the visible order is computed when we
18946 attempt to size the scrollbars (for trees that mess with the
18947 scrolling when they shouldn't.
18948 - Make sure to give the scrollbars valid values.
18950 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18952 * XplatUIX11.cs: Move motion compression code to where it
18953 has less performance impact
18955 2006-07-26 Jackson Harper <jackson@ximian.com>
18957 * UpDownBase.cs: When the control is selected make the child
18958 controls non selectable, so that a click on them won't do a
18959 focus/unfocus cycle.
18960 - Don't give focus to the text box when the spinner is selected.
18961 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
18963 2006-07-26 Chris Toshok <toshok@ximian.com>
18965 * ThemeWin32Classic.cs: add print preview rendering. I'm not
18966 satisfied with this solution. If the bitmaps are small, we should
18967 just cache them in the PrintPreviewDialog and draw them here.
18968 Also, the layout is broken for the 2-up and 3-up cases.
18970 * Theme.cs: add PrintPReviewControlPaint.
18972 * PrintPreviewDialog.cs: first pass implementation.
18974 * PrintPreviewControl.cs: first pass implementation. No
18977 * PrintDialog.cs: only validate fields if that particular portion
18978 of the UI is enabled. Also, set the document's controller to a
18979 PrintControllerWithStatusDialog wrapping the document's print
18982 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
18983 bring up a SaveFileDialog (i hope we don't want to match the
18984 behavior of the crappy windows file entry) and set the
18985 PrinterSettings.PrintFileName accordingly.
18987 2006-07-26 Jackson Harper <jackson@ximian.com>
18989 * ContainerControl.cs: Add a field that disables auto selecting
18990 the next control in a container when the container is activated.
18991 * UpDownBase.cs: Don't select the text box when the up down is
18994 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18996 * XEventQueue.cs: Added methods for peeking (used for compression
18997 of successive events)
18998 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
18999 mouse move events (fixes #78732)
19001 2006-07-25 Jackson Harper <jackson@ximian.com>
19003 * UpDownBase.cs: Use an internal class for the textbox so that we
19004 can control focus. the updown control should always have focus,
19005 if either the text area or the buttons are clicked.
19006 - Send the key messages to the textbox, since it never actually
19008 - Activate and decativate the textbox caret.
19010 2006-07-24 Jackson Harper <jackson@ximian.com>
19012 * Control.cs: Use the directed select when selecting a control,
19013 this way the container controls override will get called and the
19014 whole ActiveControl chain will get triggered. TODO: probably need
19015 to make sure this gets done everywhere instead of the old
19017 * ContainerControl.cs: Implement the directed Select method to
19018 find and activate the correct child control.
19020 2006-07-22 Mike Kestner <mkestner@novell.com>
19022 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
19023 menu handling code so that clicks without a grab work too.
19026 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
19028 * FileDialog.cs: Enable the BackButton when dirstack has one element.
19029 Added some small optimizations.
19031 2006-07-21 Matt Hargett <matt@use.net>
19033 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
19035 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
19037 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
19038 tests pass and match MS in some strange border cases.
19040 2006-07-21 Chris Toshok <toshok@ximian.com>
19042 * ThemeWin32Classic.cs: handle drawing of the relation links and
19043 parent row buttons.
19045 * Theme.cs: change args to DataGridPaintParentRow.
19047 * DataGrid.cs: Don't use controls for the relation links and
19048 parent buttons, so we have to handle all their interactions in
19049 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
19050 when we're navigating through child tables, so we can reinstate
19051 selection, expanded state, current cell, etc.
19053 2006-07-20 Chris Toshok <toshok@ximian.com>
19055 * ToolBar.cs: When we redraw a button, for whatever reason,
19056 there's no reason to redraw the entire toolbar. Also, don't call
19057 Control.Refresh from within Redraw, as it's much heavier than
19058 Invalidate (which is really what we want).
19060 2006-07-20 Chris Toshok <toshok@ximian.com>
19062 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
19063 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
19064 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
19065 traces from within a debug IBindingList datasource
19066 (in mono/winforms/datagrid) for *days*, I've finally gotten things
19067 to work in a similar fashion.
19069 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19071 * ListBox.cs: Don't call Sort () when setting
19072 the Sorted property to false (avoid an unnecessary sort).
19074 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19076 * ListControl.cs: DataSource should throw an ArgumentException
19077 instead of a normal exception when the argument is not of the
19080 2006-07-20 Mike Kestner <mkestner@novell.com>
19082 * Control.cs: add InternalPreProcessMessage to allow us to steal
19083 key events before MWF gets its paws on them. Adapted from a
19085 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
19086 up/down/left/right navigation. Override the new internal control
19087 method to steal the events since they never make it to WndProc.
19088 * ToolBarButton.cs: don't worry about pushed when setting hilight
19089 since the drawing code prefers pushed to hilight. Invalidate on
19090 Hilight changes. Fixes #78547 and #78525.
19092 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19094 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
19095 the canvas size. Fixes #78868
19097 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19099 * Splitter.cs: Track requested split position until first layout
19100 is performed. Fixes #78871
19102 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19104 * Application.cs: Removed code that forces 1.x for the version
19105 number if the version started with 0. Not sure why that code was
19106 there and I couldn't find any bugs that indicated we needed it.
19109 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
19111 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
19112 ResetDefaults(), just write some output to the console until it's
19113 implemented. Fixes bug #78907 for now. Eliminated two warnings.
19115 2006-07-19 Jonathan Chambers <joncham@gmail.com>
19117 * PropertyGridView.cs: set StartPosition of drop down forms
19118 so they appear in correct initial spot. Fixes #78190.
19120 2006-07-19 Mike Kestner <mkestner@novell.com>
19122 * ThemeWin32Classic.cs: use parent background color when drawing
19123 flat toolbars. Restructure the conditionals to make sure non-flat
19124 non-Divider toolbars are filled too. Fixes #78837.
19126 2006-07-19 Mike Kestner <mkestner@novell.com>
19128 * ListBox.cs: Sort on collection changes even if the handle
19129 isn't created yet. Fixes #78813.
19131 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19133 * ListControl.cs: DisplayMember should never be null,
19134 and now we assign String.Empty when null is passed to it (this
19137 2006-07-17 Mike Kestner <mkestner@novell.com>
19139 * ListViewItem.cs: restructure Font and subitem Font handling
19140 to hold a specific font and refer back to owner on null.
19143 2006-07-17 Mike Kestner <mkestner@novell.com>
19145 * ToolBar.cs: bandaid for side-effect of previous patch which was
19146 discarding explicit heights for non-AutoSize toolbars. Need to
19147 extend my format tester to deal with AutoSize=false. Fixes #78864.
19149 2006-07-15 Jackson Harper <jackson@ximian.com>
19151 * LabelEditTextBox.cs:
19152 * TreeView.cs: Use a new LabelEdit class for node editing, this
19153 class automatically 'closes' itself when it gets the enter key or
19155 - Use the client rectangle when setting the trees scrollbars, so
19156 border style is taken into account.
19158 2006-07-14 Jackson Harper <jackson@ximian.com>
19161 * TreeView.cs: Make the editing work similar to MSs, firing the
19162 events correctly and ending edits correctly.
19164 2006-07-14 Mike Kestner <mkestner@novell.com>
19166 * ToolBarButton.cs:
19167 * ToolBar.cs: layout restructuring and redraw enhancements to support
19168 formatting changes gracefully, like setting TextAlign, ImageList,
19169 ButtonSize, and Appearance. Handles explicit button sizing quirks
19170 of the MS controls. Things like flat toolbars ignoring button size
19171 but becoming constant sized at the largest button's size. Normal
19172 toolbars with an image set cannot be shrunk smaller than the image,
19173 but text can be clipped/ignored.
19174 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
19175 is zero. Seems like DrawString should be smart enough to not put
19176 anything on screen though. Also trim labels and ellipsize at the char
19177 boundary, not word.
19178 Fixes #78711 and #78483.
19180 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19182 * FolderBrowserDialog.cs: Disable "New Folder" button and
19183 "New Folder" contextmenu menuitem if a folder like "My Computer"
19186 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19188 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
19189 * FolderBrowserDialog.cs:
19190 - Use MWFConfig to store and read size and position settings
19191 - Added code to create a new folder (button or context menu).
19192 Use TreeView labeledit to change the name of the new folder.
19194 2006-07-14 Jackson Harper <jackson@ximian.com>
19196 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
19197 when the tree is scrolled we end editing.
19199 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19201 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
19204 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19206 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
19207 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
19208 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
19209 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
19210 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
19211 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
19212 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
19213 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
19214 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
19215 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
19216 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
19217 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
19218 ListViewItemSelectionChangedEventHandler.cs,
19219 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
19220 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
19221 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
19222 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
19223 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
19224 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
19225 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
19226 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
19227 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
19228 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
19229 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
19230 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
19231 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
19232 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
19233 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
19234 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
19235 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
19236 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
19237 WebBrowserNavigatingEventHandler.cs,
19238 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
19240 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19242 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
19243 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
19244 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
19245 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
19246 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
19247 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
19248 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
19249 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
19250 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
19251 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
19252 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
19253 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
19254 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
19255 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
19256 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
19257 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
19258 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
19259 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
19260 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
19261 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
19262 ListViewItemStates.cs, MaskFormat.cs: Added
19264 2006-07-13 Jonathan Chambers <joncham@gmail.com>
19266 * PropertyGridView.cs: Fix keyboard navigation of drop down.
19267 Patch from eno for bug 78558.
19269 2006-07-13 Jackson Harper <jackson@ximian.com>
19271 * TreeView.cs: When an edit is finished make sure that the
19272 selected node is visible.
19273 - When setting the top/bottom use the scrollbars is_visible, so
19274 everything will be set correctly even if the tree isn't visible
19277 2006-07-13 Jackson Harper <jackson@ximian.com>
19279 * ComboBox.cs: Revert the item->index part of my previous patch.
19280 * TreeView.cs: Use LostFocus instead of Leave for detecting when
19281 the edit box has lost focus (duh).
19282 - Just make the edit box not visible when we get return, that will
19283 take the focus, which will call EndEdit
19284 * TreeNode.cs When we start editing, notify the treeview.
19286 2006-07-12 Jackson Harper <jackson@ximian.com>
19288 * ComboBox.cs: Clear out old items before setting the item list.
19289 This prevents databound controls from having their items added
19291 - Switch the combobox to use indices whereever possible instead of
19292 using Item's. This allows usto navigate through lists that have
19293 more then one item with the same string value (ie a, b, b, a).
19294 - Scroll the listboxes scrollbar when a non visible item is
19296 - Allow keypress to cycle through all the possible values. For
19297 example if you have b1, b2, b3 and hold down the B key all the
19298 values will be cycled through.
19300 2006-07-12 Jackson Harper <jackson@ximian.com>
19303 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
19304 this using the internal methods.
19305 * Control.cs: Add OnGotFocusInternal. A new method that allows
19306 controls to "override" OnGotFocus and change focus behavior if
19308 - Same thing for LostFocus
19309 * ComboBox.cs: Pass off focus to the text control properly.
19311 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
19313 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
19314 * FolderBrowserDialog.cs: Almost a complete rewrite.
19315 - Better support for Environment.Specialfolders
19316 - Added support for MWFVFS
19317 - Made setting SelectedPath work
19319 2006-07-12 Jackson Harper <jackson@ximian.com>
19321 * Control.cs: Optimze getting all the controls.
19323 2006-07-11 Jackson Harper <jackson@ximian.com>
19325 * ContainerControl.cs: Override SETFOCUS in the container control,
19326 so that it is not selected on mouse click.
19328 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19330 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
19331 Hopefully we will have a better way once all of focus is complete.
19333 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19335 * ThemeWin32Classic.cs: Commented out some debug code and fixed
19336 a compile error with csc.
19338 2006-07-11 Jackson Harper <jackson@ximian.com>
19340 * Control.cs: When hiding a control only select the next control
19341 if the current control was focused.
19342 - Don't handle enter/leave when setting/killing focus, this is
19343 done by the container control.
19344 - Remove is_selected, it's not needed anymore.
19345 - Add utility methods for selecting a child control, and for
19346 firing the Enter/Leave events.
19347 * ContainerControl.cs: When a control is activated fire the
19348 enter/leave events.
19349 - Don't wrap when processing the tab key, so that focus can be
19350 moved outside of the container.
19351 - Use the correct active control
19353 2006-07-11 Jackson Harper <jackson@ximian.com>
19355 * ComboBox.cs: Remove some debug code that was blinding me.
19356 * UpDownBase.cs: These controls actually aren't implicit, they are
19357 visible to the user.
19359 2006-07-10 Chris Toshok <toshok@ximian.com>
19361 * DataGrid.cs: move back to the is_adding boolean field. god i
19362 hate this is_editing/is_adding/is_changing stuff.
19364 2006-07-10 Chris Toshok <toshok@ximian.com>
19366 * DataGridTableStyle.cs: just check if the property type is bool.
19367 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
19368 Don't use CanRenderType.
19370 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
19371 if our text == NullText. Remove CanRenderType.
19373 * DataGridBoolColumn.cs: nuke CanRenderType.
19375 * DataGrid.cs: reenable some code to end the current edit inside
19376 of set_CurrentCell. This fixes the other 1.1.16 regression.
19377 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
19378 Also, remove the visible_row_count arg from CalcRowHeaders, since
19379 we don't need to worry about the actual height of the area.
19381 2006-07-10 Chris Toshok <toshok@ximian.com>
19383 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
19386 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
19387 the real sense of the IsInEditOrNavigateMode property (true =
19388 navigate, false = edit). Also, update OnKeyPress to reflect this.
19390 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
19391 column style exists, we still need to set its property descriptor
19392 to match up with our list manager.
19394 2006-07-10 Chris Toshok <toshok@ximian.com>
19396 * ThemeWin32Classic.cs: implement the new row/header painting
19397 approach. The parent row painting will likely go away and
19398 replaced with label controls, but the rest seems to work ok (and
19401 * Theme.cs: change the way we draw datagrid rows. we don't draw
19402 the row headers as a block now. Instead we draw them in the
19403 normal draw-row loop. Add some calls for drawing parent rows and
19406 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
19407 a default table style. Set the defaults from ThemeEngine.Current,
19408 not SystemColors. Fix lots of misc issues with property setters.
19410 * DataGrid.cs: move loads of style information out of this class
19411 as it's being duplicated with DataGridTableStyle. keep track of a
19412 special DataGridTableStyle for the properties we used to mirror
19413 here. Switch all the style properties to access this table style
19414 instead of instance fields of this class. Also add a internal
19415 class to represent parent rows (more needs to be stored here, like
19416 the selection state from the parent table, as well as the
19417 expansion state.) Also, for datasources with relations, do the
19418 right thing for collapse/expand, and add support for the
19419 navigation/parent row buttons.
19421 Lastly, fix the crash in the 1.1.16 build.
19423 * GridTableStylesCollection.cs: make the explicit interface
19424 implementations call the class's methods as opposed to duplicating
19427 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
19428 0 so the text doesn't jump around when we move the cursor.
19430 2006-07-10 Jackson Harper <jackson@ximian.com>
19433 * ListBox.cs: Match MS's ToString (this makes debugging focus
19434 stuff infinitely easier).
19436 2006-07-10 Jackson Harper <jackson@ximian.com>
19438 * Control.cs (SelectNextControl): When checking the control's
19439 parent use this instead of ctrl.parent so that null can be passed
19440 to SelectNextControl. (I have unit tests for this).
19441 - Remove unused var.
19443 2006-07-10 Chris Toshok <toshok@ximian.com>
19445 * CurrencyManager.cs: correct one regression, the removal of the
19446 finalType field. Also, add a MonoTODO on CanAddRows, implement
19447 Refresh() correctly, and fix some event emission in
19448 ListChangedHandler.
19450 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19452 * FileDialog.cs: Don't use brackets for new folders if they exist
19453 under *nix. Instead use -(number of existing folders +1).
19455 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19458 - Fixed really nasty bug #78771
19459 - Don't block the whole GUI when reading directories with a lot of
19460 entries. Use an other thread instead and call BeginInvoke to
19461 update the ListView in MWFFileView
19463 2006-07-07 Chris Toshok <toshok@ximian.com>
19465 * Control.cs (Dispose): release any Capture when disposing.
19467 2006-07-07 Chris Toshok <toshok@ximian.com>
19469 * LinkLabel.cs (Select): if we chain up to the parent, set
19470 focused_index to -1 so we'll search for the first available link
19471 the next time the user tabs into us. Also, if the direction is
19472 backward and focused_index == -1, start the search from the last
19475 2006-07-07 Chris Toshok <toshok@ximian.com>
19477 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19478 is beyond the end of the text, don't do anything.
19479 (CreateLinkPieces): set our ControlStyles.Selectable based on
19480 whether or not we have any links.
19481 (Link.Invalidate): use a loop instead of foreach.
19482 (Link.set_Start): null out owner.sorted_links so it'll be
19483 recreated by CreateLinkPieces.
19485 2006-07-06 Chris Toshok <toshok@ximian.com>
19487 * LinkLabel.cs: revert the SetStyle change.
19489 2006-07-06 Chris Toshok <toshok@ximian.com>
19491 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19492 (OnEnableChanged): s/Refresh/Invalidate
19493 (OnGotFocus): if we have a focused index already, refocus it (so
19494 if we mouse out/in to the window it'll focus the right link).
19495 (OnKeyDown): move the tab handling out of here.
19496 (OnLostFocus): don't set focused_index to -1, so we can refocus it
19497 when we lose focus.
19498 (OnMouseDown): don't Capture here - Control handles it. Also,
19499 focus the active link.
19500 (OnMouseUp): don't deal with Capture.
19501 (OnPaintBackgroundInternal): remove.
19502 (OnTextAlignChanged): CreateLinkPieces before calling the
19503 superclass's method.
19504 (OnTextChanged): call CreateLinkPieces before calling superclass's
19506 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19508 (Select): implement this, moving the selection between different
19509 links, and call parent.SelectNextControl if we don't have another
19510 link to focus in the given direction.
19511 (CreateLinkPieces): call Invalidate instead of Refresh.
19513 2006-07-06 Chris Toshok <toshok@ximian.com>
19515 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19516 new LinkLabel internals.
19518 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
19519 over pieces looking for active/focused/etc links. also, deal with
19520 runs of text (and links) with embedded \n's in them, and use
19521 MeasureCharacterRanges instead of MeasureString to figure out the
19522 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
19525 2006-07-04 Jackson Harper <jackson@ximian.com>
19527 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19528 XKB or key auto repeat, do it manually. Without key auto repeat,
19529 when a key is held down we get key press, key release, key press,
19530 key release, ... with auto repeat we get key press, key press, key
19531 press ..., and then a release when the key is actually released.
19533 2006-07-03 Jackson Harper <jackson@ximian.com>
19536 * ThemeWin32Classic.cs: Tabs do not obey normal background color
19537 rules, they are always control color regardless of the background
19540 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
19542 * FileDialog.cs: Added internal class MWFConfig.
19543 Removed Registry support and replaced it with support for the new
19544 MWFConfig class. See MWFConfig comments for more information.
19546 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
19548 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19549 rectangle. Added some patches from eno from bug #78490 and fixed
19550 the arrow position for small up and down CPDrawScrollButtons.
19552 2006-06-30 Jackson Harper <jackson@ximian.com>
19554 * InternalWindowManager.cs: Remove some debug code.
19555 * Form.cs: When an MdiParent is set to null, the window is
19556 "detatched" and becomes a normal window.
19557 * MdiClient.cs: Don't bring the new child form to the front until
19558 it is activated (setting it as active does this), this makes the
19559 previously active forms titlebar get redrawn as inactive.
19561 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
19563 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19564 with later controls
19566 2006-06-29 Mike Kestner <mkestner@novell.com>
19568 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19569 arrow in keynav state. Fixes #78682.
19571 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19573 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
19574 order (fixes #78393)
19576 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
19578 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
19579 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19580 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19581 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19582 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19583 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
19584 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19585 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19586 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19587 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19588 enumerations (FlagsAttribute, SerializableAttribute, added/removed
19591 2006-06-28 Mike Kestner <mkestner@novell.com>
19593 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
19595 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19598 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
19599 item lines from other area (It also makes BackColor consistent and
19600 compatible with .NET). Fixed bug #78564.
19602 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
19604 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
19605 Patch from Eno for #78555.
19607 2006-06-27 Chris Toshok <toshok@ximian.com>
19609 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
19611 * DataGridColumnStyle.cs: same.
19613 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
19615 * DataGridDrawingLogic.cs: nuke.
19617 2006-06-27 Chris Toshok <toshok@ximian.com>
19619 * DataGridTableStyle.cs: clean up the constructors, and build the
19620 list of child relations for this table. I have no idea if this is
19621 where we should be doing it (it probably isn't), but since we're
19622 already iterating over the properties..
19624 * DataGrid.cs: add row resizing. for now we add a DataGridRow
19625 struct and array for keeping track of row information, similar to
19626 what's shown in a hack on
19627 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
19629 * Theme.cs: be consistent about the naming of DataGrid methods,
19630 prefering ColumnWidths and RowHeights over columnsWidths and
19633 * ThemeWin32Classic.cs: same, and also add support for variable
19634 sized rows (and the +/- expansion icons for related rows).
19636 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19638 * TextBoxBase.cs: Applied Eno's patch from #78660
19640 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19642 * Form.cs (ScaleCore): We don't want to scale our form if it's
19643 state is minimized or maximized, but we still need to scale our
19644 child windows. Also, added try/finally block to ensure layout
19645 gets reset (Fixes #78697)
19647 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19649 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
19651 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19653 * Form.cs: Fixed c+p error and added check to resize form if minimum
19654 size is bigger than current size (Fixes #78709)
19656 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
19658 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
19660 2006-06-26 Mike Kestner <mkestner@novell.com>
19662 * ComboBox.cs: only do Keypress handling in the combo when there
19663 are items in the collection. Fixes #78710.
19665 2006-06-26 Chris Toshok <toshok@ximian.com>
19667 * Binding.cs: make this work bi-directionally. also, clear up
19668 other mixups between Push/Pull Data (e.g. we're supposed to pull
19669 data when validating).
19671 * BindingManagerBase.cs: trim some fully qualified collection
19674 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
19676 2006-06-23 Chris Toshok <toshok@ximian.com>
19678 * PropertyManager.cs: It appears (according to the unit tests)
19679 that PropertyManager doesn't use
19680 PropertyDescriptor.AddValueChanged to track propery value changes
19681 in its datasource, but uses the same scheme as Binding, where it
19682 looks for a <Property>Changed event and binds to it.
19684 Also, according to the docs, IsSuspended always returns false for
19685 a property manager with a non-null datasource.
19687 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
19689 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
19690 need to update the actual DialogResult. (Fixes #78613)
19692 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
19694 * Form.cs (ShowDialog): Release any captures before running the
19695 new message pump (fixes #78680)
19697 2006-06-22 Mike Kestner <mkestner@novell.com>
19699 * ListView.cs: Layout column widths properly in details mode even
19700 if HeaderStyle.None is set. Fixes #78691.
19702 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
19704 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
19706 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
19708 * Control.cs (ContainsFocus): Using new driver method to get focused
19709 window, instead of trying to use internal tracking var, which can
19710 recursion issues (Fixes #78685)
19711 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19712 XplatUIWin32.cs: Added GetFocus method to return focused window
19714 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19716 * ColorDialog.cs: when the mouse button is pressed inside the color
19717 matrix, don't let the cursor move out of it until the button is
19718 released, which is the behavior on windows. Changed 'colours' by
19719 'colors' to use the same word consistently.
19721 2006-06-21 Chris Toshok <toshok@ximian.com>
19723 * DataGrid.cs: add in some basic navigation stuff (navigating to a
19724 child relation and back, using a stack). Also, remove
19725 GetDataSource and the code that calls it - it's not needed. Also,
19726 track CurrencyManager.ListName's removal.
19728 2006-06-21 Chris Toshok <toshok@ximian.com>
19730 * CurrencyManager.cs: push some of the original type checking from
19731 BindingContext.CreateBindingManager to here, and remove some of
19732 the finalType stuff. Need more tests to make sure I've got the
19733 ListName part right, and we might need more in SetDataSource.
19735 * PropertyManager.cs: add a ctor that takes just the datasource,
19736 and no property name. Make SetDataSource work with a null
19737 property_name, and make Current return the data_source if the
19738 property descriptor is null. this makes 'string foo = "hi";
19739 BindingContext[foo].Current' return "hi" as it should.
19741 * RelatedCurrencyManager.cs: make this code more generic - there's
19742 no reason the parent manager has to be CurrencyManager, and
19743 there's no reason to pass the DataRelation. It suffices to use a
19744 BindingManagerBase and PropetyDescriptor.
19746 * RelatedPropertyManager.cs: make a similar change here.
19748 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
19749 flower I knew it could be.
19751 2006-06-20 Chris Toshok <toshok@ximian.com>
19753 * PropertyManager.cs: the PropertyChangedHandler is invoked when
19754 data in the source has changed and we need to update the control,
19755 so s/PullData/PushData.
19757 * CurrencyManager.cs: Refresh is meant to update the control from
19758 data in the datasource. So, s/PullData/PushData.
19760 * BindingContext.cs: add more ugliness (we weren't handling the
19761 case where data_source = DataTable and data_member = column_name).
19763 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
19764 from the perspective of the datasource. PullData pulls from the
19765 control, PushData pushes to the control.
19767 2006-06-20 Chris Toshok <toshok@ximian.com>
19769 * BindingContext.cs: rewrite the CreateBindingManager code to
19770 handle navigation paths more or less properly. This could
19771 definitely stand some more work, in particular to push the
19772 recursion up to the toplevel. But that relies on fixes in other
19773 places (System.Data comes to mind).
19775 Also, move to a flat hashtable (and encode the twolevel nature of
19776 the dictionary into the hash key). This lets us implement the
19777 IEnumerable.GetEnumerator method.
19779 * RelatedCurrencyManager.cs: new class. Update our view based on
19780 our relation and our parent CurrencyManager's position.
19782 * CurrencyManager.cs: split out some logic from the ctor into
19783 SetView, so it can be called from the new RelatedCurrencyManager
19786 * RelatedPropertyManager.cs: new class. Update our datasource
19787 based on the position of our parent CurrencyManager.
19789 * PropertyManager.cs: split out some logic from the ctor into
19790 SetDataSource, so it can be called from the new RelatedDataSource
19791 subclass. Also, make the Current getter return the value
19792 of the PropertyDescriptor, not the data_source.
19794 * Binding.cs: no need to duplicate the string splitting code here.
19796 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
19799 - set_Enabled: OnEnabledChanged is not called if the inherited state
19800 of the control is not altered, even though we might be changing the
19801 internal state of the control (#78458)
19802 - set_Enabled: (Re)Moved the enabling/disabling of the window to
19803 OnEnabledChanged, to allow easy altering of any child window state
19804 - OnEnabledChanged: Added code to enable/disable driver window state
19805 - OnParentEnabledChanged: Instead of firing the event, call
19806 OnEnabledChanged, which will fire the event and also a) set driver
19807 window state and pass the enabled state to any grandchildren (#78458)
19809 2006-06-19 Jackson Harper <jackson@ximian.com>
19811 * InternalWindowManager.cs: We don't set the cursor explicitly
19812 thats done via the response to NCHITTESTs.
19813 - Don't need to adjust for titlebar heights anymore, the
19814 coordinates are coming in the correct coordinates now (see peters
19818 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
19820 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
19821 being translated relative to whole window, instead of client window.
19822 That caused broken offsets on mouseclick (and caused gas for our
19823 InternalWindowManager)
19825 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
19828 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
19829 - Undo(): Added replay of cursor move on DeleteChars action; added
19830 calling Undo() again if a recorded cursor move is invalid (to
19831 ensure that some action is performed on Undo)
19832 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
19834 2006-06-16 Jackson Harper <jackson@ximian.com>
19836 * MdiClient.cs: Instead of just sizing maximized windows when
19837 there is a resize we also have to adjust the Y of minimized
19838 windows, so they stay pinned to the bottom of the mdi container.
19839 - Eliminate separate tracking of the active control, we can just
19840 get this from the controls collection.
19841 - Paint the decorations for the newly activated titlebar so we get
19843 * InternalWindowManager.cs:
19844 * ThemeWin32Classic.cs: Minimized windows get all three buttons
19845 even if they are a tool window.
19847 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
19849 * TextControl.cs (Undo): Handle non-existent cursor locations in the
19850 undo buffer, these can happen when text was deleted and the cursor
19851 was recorded first. Since we will also have a recorded cursor
19852 after the delete this is not an issue. (Fixes #78651)
19854 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
19856 * AccessibleObject.cs: Remove dependence on Control.is_selected;
19857 instead properly track control states internally (allows us to
19858 remove is_selected from Control)
19860 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19862 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
19863 whose width is not a multiple of 8.
19865 2006-06-13 Jackson Harper <jackson@ximian.com>
19867 * MdiClient.cs: Only maximize the next child if the current one
19870 2006-06-13 Chris Toshok <toshok@ximian.com>
19872 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
19873 modified. Also, guard against grid or grid_drawing being null in
19876 * DataGrid.cs: Reformat tons of getters/setters. In the
19877 DataMember setter, just call SetNewDataSource instead of
19878 duplicating some of its functionality. In SetNewDataSource, don't
19879 check ListManager for null, since the property getter creates the
19882 * DataGridTableStyle.cs: don't set TableStyle or call
19883 SetDataGridInternal on the column here, it's done in
19884 GridColumnStylesCollection.Add.
19886 * GridColumnStylesCollection.cs: fix all the explicit interface
19887 implementations to just call our methods. Nuke AddInternal() and
19888 move the body of it to Add(). Also, add a call to
19889 column.SetDataGridInternal to Add().
19891 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
19892 base()+duplicate code. Also, use the Format property instead of
19893 format to generate an Invalidate ala MS. Lastly, create the
19894 textbox here, unconditionally.
19895 (set_Format): call Invalidate.
19896 (get_TextBox): no need to call EnsureTextBox.
19897 (Commit): remove the message box.
19898 (Edit) remove the call to EnsureTextBox.
19899 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
19900 (EnterNullValue): no need to check textbox for null.
19901 (HideEditBox): no need to check textbox for null.
19902 (SetDataGridInColumn): add the textbox to the grid's controls.
19903 (EnsureTextBox): nuke.
19905 2006-06-13 Jackson Harper <jackson@ximian.com>
19907 * MdiWindowManager.cs: Hook up to the maximized menus paint event
19908 and redraw the buttons when needed. Unhook when the window is
19910 * MainMenu.cs: Add an internal Paint event, the mdi window manager
19911 needs this so that it can redraw its buttons when the menu is
19913 * InternalWindowManager.cs:
19914 * Form.cs: The method order has changed for DrawMaximizedButtons,
19915 so that it can be a PaintEventHandler.
19917 2006-06-13 Jackson Harper <jackson@ximian.com>
19919 * MdiClient.cs: When we close a maximized mdi window, the next mdi
19920 window is activated and maximized, even if it wasn't before.
19921 - When a new window is activated repaint the decorations of the
19922 old one, so that it no longer has the Active "look" (the blue
19924 * InternalWindowManager.cs: Open up CreateButtons to base classes
19925 so they can recreate the buttons on state changes.
19926 - If a window is maximized give it all three buttons
19927 * MdiWindowManager.cs: Create the titlebar buttons when the state
19928 is changed, this is needed because a toolwindow will not have all
19929 three buttons until it is maximized.
19931 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
19933 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
19936 2006-06-12 Jackson Harper <jackson@ximian.com>
19938 * KeysConverter.cs: Make sure we handle the Ctrl special case
19939 if its the only key.
19941 2006-06-12 Jackson Harper <jackson@ximian.com>
19943 * Theme.cs: Add a method to get the size of a managed window
19945 * InternalWindowManager.cs: Remove the ButtonSize property, this
19946 should be retrieved from the theme.
19947 * MdiWindowManager.cs: Get the button size from the theme
19948 * ThemeWin32Classic.cs: Make the method to get the managed window
19949 titlebar button size public.
19950 - Handle the different button sizes of maximized toolwindows
19951 (should match any maximized window).
19952 - Get the titlebar height from the theme, not the WM (which gets
19953 it from the theme).
19955 2006-06-12 Jackson Harper <jackson@ximian.com>
19957 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
19958 event down to the mdi window manager.
19959 - Expose some extra stuff to base classes
19960 - Make sure to end the Capture on an NC Mouse up, so that we can
19961 get double clicks properly, and the sizing doens't stick.
19962 - When doing PointToClient contain it in the workable desktop
19963 area, this prevents windows from changing size when the cursor is
19964 pulled outside of the working area while sizing.
19965 * MdiWindowManager.cs: When we get a double click maximize the
19967 - Reset the cursor after handling mode changes.
19969 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
19971 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
19972 current desktop, instead of just assuming a 0, 0 origin. This
19973 is needed for our internal window manager, to know the top
19974 margin of the desktop
19976 2006-06-12 Chris Toshok <toshok@ximian.com>
19978 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
19979 we need this to get rid of the selected background in the bool
19981 (CancelEditing): move the ConcedeFocus call to above the Abort
19982 call. Also, set is_changing to false and invalidate the row
19983 header if we were changing before.
19984 (ProcessKeyPreviewInternal): remove, since noone outside this
19985 class calls it anymore. Roll the code into ProcessKeyPreview.
19986 (EndEdit): remove the internal version.
19987 (InvalidateCurrentRowHeader): make private.
19989 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
19990 Keys.Escape handling (and with it the last call to
19991 DataGrid.EndEdit from outside the class.)
19994 2006-06-12 Chris Toshok <toshok@ximian.com>
19996 * DataGridTextBox.cs (.ctor): isedit defaults to false.
19997 (OnKeyPress): set isedit to true.
19998 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
19999 already handled by the grid.
20001 * DataGrid.cs (set_CurrentCell): more work here. it's still not
20003 (set_DataSource): SetDataSource always returns true, so stop
20004 putting it in an if statement.
20005 (EndEdit): get rid of some {}'s
20006 (ProcessGridKey): return true in case Keys.Escape.
20007 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
20008 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
20009 PositionChanged, stopped connecting to CurrentChanged.
20010 (GetDataSource): simplify this a bunch.
20011 (SetDataSource): change return type from bool to void.
20012 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
20013 to this, and make sure we don't set ListManager.Position inside
20015 (OnListManagerItemChanged): if we're passed an actual index,
20018 * CurrencyManager.cs (set_Position): don't call PullData here.
20020 2006-06-09 Jackson Harper <jackson@ximian.com>
20022 * TreeNode.cs: Recalculate the visible order before doing the
20023 Expand/Collapse Below calls, because those calls generate an
20025 - Reduce calls to the TreeView property, which is mildly expensive
20026 by using a local var.
20027 * Form.cs: Layout the MDI child windows when creating the parent
20029 - Don't use the internal constructor anymore
20030 * MdiClient.cs: use the parent form width/height (if available)
20031 when laying out the child windows, we do this because the
20032 mdiclient isn't docked yet when the initial layout is done.
20033 - Don't need an internal constructor anymore.
20035 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20037 * FileDialog.cs: handle access errors when trying to create a folder
20038 or changing to a directory. No need to initialize out parameters.
20040 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20042 * FileDialog.cs: Append a number when creating a new folder if the
20043 folder already exists (use parenthesis instead of square brackets)
20045 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20048 - Disabled registry support for windows and added better registry
20049 error checking for other systems (need to investigate why it
20050 works perfectly on my system)
20051 - If a folder already exist show an error MessageBox instead of
20052 trying to create an indexed name.
20053 - Fixed a non intentional typo.
20055 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20057 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
20059 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20061 * FileDialog.cs: When creating a new folder don't crash if the
20062 folder already exists.
20064 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20066 * FileDialog.cs: Allmost a complete rewrite.
20067 - added a "virtual" file system that handles the differences
20068 between unix and windows file systems (especially the directory
20069 structure). Moved most of the directory and file handling code
20071 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
20072 UnixFileSystem and FSEntry.
20073 - Recently used folder/directory, size, location and used file names
20074 (file name ComboBox) are now stored in the registry and get read
20075 before the dialog shows up (fixes part 6 of bug #78446).
20076 - Creation of new folders/directories is now possible (context menu
20077 or ToolBar). Added TextEntryDialog for this that fills in the gap
20078 until ListView.LabelEdit works.
20079 - Fixed cursor handling (bug #78527) and focus handling for
20081 - Various "Search in" ComboBox enhancements. The content of the
20082 dropdown listbox now almost matches ms.
20083 - Changed the behaviour when the user switches to SpecialFolder
20084 Recent to show the ListView in View.Details.
20085 - Beside using the ToolBar to change the View property of the
20086 file ListView it is now possible to use the context menu too.
20088 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20090 * ComboBox.cs: Don't create a new ObjectCollection when an item
20091 gets inserted. Just insert the item in the existing object_items
20094 2006-06-08 Jackson Harper <jackson@ximian.com>
20096 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
20097 that the treeview and root node checks are done also, this fixes a
20098 regression i caused in the unit tests.
20100 2006-06-07 Wade Berrier <wberrier@novell.com>
20102 * RichTextBox.cs: More ISO8859-1 -> unicode
20104 2006-06-07 Mike Kestner <mkestner@novell.com>
20106 * ComboBox.cs : use items to hold highlight/selection so that
20107 collection insertions don't require synchronization.
20109 2006-06-07 Jackson Harper <jackson@ximian.com>
20111 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
20112 routine. We now always keep the sized edge at the cursor instead
20113 of computing movement and adjusting rects. There is one buglet
20114 with this method though when the cursor is moved over area that
20115 the window can not expand too (such as the toolbars on the desktop).
20117 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20119 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
20120 here. Fixes crash on startup in AlbumSurfer.
20122 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
20124 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
20127 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20129 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
20130 statement to avoid calling XNextEvent which will block if another thread
20131 took the event that we were expecting. Fixes bug #78605.
20133 2006-06-07 Mike Kestner <mkestner@novell.com>
20135 * ListView.cs : isolated checkbox clicking from the selection logic.
20136 Toggle check state on item doubleclicks. Really fixes #78454 part2.
20138 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20140 * Form.cs: Check that the value passed to Form.DialogResult
20141 is a valid enum value.
20143 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20145 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
20146 Computer'. Clicking it in the network view goes to 'My Computer'.
20147 Added CIFS filesystem type. Display the mount point of filesystems.
20148 Avoid duplicate mount points (happens for me with CIFS);
20150 2006-06-06 Jackson Harper <jackson@ximian.com>
20152 * InternalWindowManager.cs: Draw the maximized windows buttons
20155 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20157 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
20158 all other dialogs. Fixes bug #78585.
20160 2006-06-06 Mike Kestner <mkestner@novell.com>
20162 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
20163 Only invalidate checkbox on checkstate changes to avoid flicker.
20164 * ListBox.cs : avoid unselect/select when clicking selected item.
20165 avoid reselection flicker for already multiselected items.
20168 2006-06-06 Jackson Harper <jackson@ximian.com>
20170 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
20171 the parent form so that the menu is removed if needed.
20173 2006-06-06 Mike Kestner <mkestner@novell.com>
20175 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
20176 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
20178 2006-06-06 Mike Kestner <mkestner@novell.com>
20180 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
20183 2006-06-06 Jackson Harper <jackson@ximian.com>
20185 * Control.cs: Use the property (instead of the field) to get the
20186 default cursor so it is instantiated correctly.
20187 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
20188 resizes so we need to manually repaint the window decorations here.
20189 - Set the titlebar button locations as soon as they are created,
20190 otherwise they are not set correctly on win32.
20192 2006-06-06 Chris Toshok <toshok@ximian.com>
20194 * CurrencyManager.cs (set_Position): call PullData before
20196 (AddNew): after calling IBindingList.AddNew, update our
20197 listposition, and call OnCurrentChanged/OnPositionChanged (without
20199 (OnCurrentChanged): remove the call to PullData from here.
20200 (OnItemChanged): remove the call to PushData from here.
20201 (OnPositionChanged): change the test from == null to != null to
20202 match the other methods.
20203 (ListChangedHandler): the grossest part of the patch. Implement
20204 this such that it passes the unit tests in CurrencyManagerTest and
20205 the output more or less matches that of MS's implementation.
20207 2006-06-06 Mike Kestner <mkestner@novell.com>
20209 * ListView.cs : only update check state on single click.
20210 * ThemeWin32Classic.cs : fix focus drawing for details view without
20211 fullrowselect. Fixes #78454.
20212 * XplatUIX11.cs : fix for double click emission.
20214 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
20216 * PropertyGridView.cs : Applied Atsushi's patch to fix
20217 font dialog bug (#78197).
20219 2006-06-05 Jackson Harper <jackson@ximian.com>
20221 * TreeNode.cs: Compute the next node for expanding/collapsing
20222 correctly. We now factor in nodes without a NextNode
20223 correctly. (Fixes somes cases in nunit-gui).
20224 * InternalWindowManager.cs: Set the bounds when updating the
20225 virtual position of a tool window.
20227 2006-06-05 Chris Toshok <toshok@ximian.com>
20229 * DataGrid.cs: rename cached_currencymgr to list_manager.
20230 (set_CurrentCell): move SetCurrentCell code here, and clean it up
20232 (CurrentRow, CurrentColumn): single accessors so we can make the
20233 cursor movement code a lot easier to understand.
20234 (CurrentRowIndex): implement this in terms of CurrentRow.
20235 (BeginEdit): clean this up a bit.
20236 (CancelEditing): sort out the is_editing/is_changing/is_adding
20238 (EndEdit): minor changes.
20239 (OnKeyDown): add a comment about a (most likely) unnecessary
20241 (OnMouseDown): cancel editing when we click on a row header. And
20242 use the CurrentRow setter, not CurrentCell.
20243 (ProcessDialogKey): directly call ProcessGridKey.
20244 (UpdateSelectionAfterCursorMove): factor out this common block of
20245 code (it's used everywhere that we move the cursor by updating row
20247 (ProcessGridKey): pretty substantial overhaul. Use the
20248 CurrentRow/CurrentColumn properties to make the code a lot more
20249 readable. Only use the CurrentCell property when we have to
20250 modify both row and column at once. Tab behavior is still broken,
20251 and Delete is untested.
20252 (Select): if we have no selected rows, set selection_start to
20254 (EditCurrentCell): rename EditCell this. It was only ever invoked
20255 with CurrentCell as the arg, so drop the arg and rename it.
20257 * DataGridColumnStyle.cs: clean up the constructors a little, and
20258 drop CommonConstructor().
20260 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
20261 actually get notified when the user hits it.
20262 (ProcessKeyMessage): *substantially* simplify this method.
20263 There's no reason (that I can see) for the textbox to be making
20264 calls into the datagrid at all. Remove all of them but the ones
20265 for Enter handling. those will take some more work.
20267 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
20268 calling HideEditBox.
20269 (HideEditBox): if we have an active textbox, render it invisible
20270 without causing a re-layout of the datagrid.
20272 2006-06-05 Mike Kestner <mkestner@novell.com>
20274 * ListView.cs : fix NRE crasher when focuseditem is cleared by
20275 collection changes by resetting it to Items[0]. Fixes #78587.
20277 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20279 * MessageBox.cs: if the height of the text is larger than the icon_size,
20280 use that. Fixes bug #78575.
20282 2006-06-05 Jackson Harper <jackson@ximian.com>
20284 * TreeView.cs: Fix line drawing when scrolling. To do this each
20285 node is basically responsible for drawing its entire horizontal
20286 area. When drawing a node it draws its parent node lines if
20288 - Adjust the clip area to the viewport rectangle
20289 - Fix Left/Right key handling to match MS. (It expand/collapses
20290 and moves to parents/first child but does not move selection to
20292 - Fix SetTop to work with new bound calculation code
20293 - When scrollbars are no longer needed we need to reset scrolling
20294 vars and recalculate the visible order so the redraw is correct
20295 * TreeNode.cs: We can't expand/collapse nodes with no children.
20297 2006-06-03 John Luke <john.luke@gmail.com>
20299 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
20300 so the colors work without dev packages
20302 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
20305 - Select: Implemented to just use activate. Seems to match MS
20306 behaviour closest. Documented to only do actual control walking
20307 based on it's parameters if in a container control so I moved
20309 - Removed selection check logic from our internal Select() method
20310 * ContainerControl.cs:
20311 - Select: Moved selection logic from Control here, since MS documents
20312 that containers obey the bool arguments. No longer calling base
20314 2006-06-02 Jackson Harper <jackson@ximian.com>
20316 * TreeView.cs: If the selected node isn't changed when we get
20317 focus update the previously selected node so that we see the
20320 2006-06-02 Mike Kestner <mkestner@novell.com>
20322 * ComboBox.cs: restructure grab and general mouse event handling.
20323 Make the composite control raise mouse events like it was a single
20324 control for leaves/enters/motion/up/down events. fix dropdown list
20325 coordinate mangling and refactor it into the scrollbar subclass to
20326 reduce code duplication. Fixes #78282 #78361 and #78457.
20328 2006-06-02 Mike Kestner <mkestner@novell.com>
20330 * ScrollBar.cs: remove Capture setting/clearing, as it happens
20331 automatically in the Control.WndProc.
20333 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20335 * FileDialog.cs: fix crash when running SharpChess, which sets the
20336 FilterIndex to 2 with only one Filter.
20338 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20340 * ToolBar.cs: add SizeSpecified property.
20341 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
20342 try to figure out our real size, otherwise fallback to what the
20345 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20347 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
20348 * Control.cs (WndProc): MS always calls the DefWndProc to pass
20351 2006-06-01 Mike Kestner <mkestner@novell.com>
20353 * ListView.cs: revamp the focus management in ListView. It still
20354 causes churn of LostFocus/GotFocus emissions on clicks, but it's
20355 better than not handling focus at all. Will revisit when pdb feels
20356 the general focus handling is solid. Fixes #78526.
20358 2006-06-01 Jackson Harper <jackson@ximian.com>
20360 * TreeView.cs: Set the default border style in the constructor.
20361 - Move painting to use OnPaintInternal instead of capturing
20362 WM_PAINT, this is the correct way of doing things
20363 - UpdateBelow shouldn't invalidate the scrollbar area
20364 - Cap the top on update below in case the node was above the top
20365 of the viewport rectangle.
20366 - ExpandBelow and Collapse below need to obey Begin/End Update.
20367 * TreeNode.cs: Make is_expanded internal so the treenode
20368 collection can change it without firing the whole event chain.
20369 * TreeNodeCollection.cs: When clearing all the child nodes make
20370 sure to recalc the visible order.
20371 - Improve algo for remove the top node
20373 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20375 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
20376 SendMessage directly calling window procedures, which in turn might
20379 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20381 * Control.cs: Don't handle WM_SETFOCUS if the same window already
20382 has focus (works around X11 sending a FocusIn after our SetFocus)
20383 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
20385 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
20387 * Mime.cs: Fix for the NET_2_0 build.
20388 NameValueCollection needs StringComparer now.
20390 2006-05-31 Chris Toshok <toshok@ximian.com>
20392 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
20393 return (via an out parameter) the starting X of the column.
20394 (UpdateVisibleColumn): track change to FromPixelToColumn.
20395 (HitTest): add a ColumnResize case here.
20396 (DrawResizeLine): new function, probably poorly named.
20398 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
20399 only need to keep one reference.
20400 (set_ListManager): same.
20401 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
20402 Also, add support for HitTestType.ColumnResize.
20403 (OnMouseMove): add column resize behavior here, and change the
20404 cursor to the correct one as we move around the datagrid.
20405 (OnMouseUp): terminate the column resize if we're resizing.
20406 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
20407 for the current cell.
20408 (ConnectListManagerEvents): use cached_currencymgr.
20409 (DisconnectListManagerEvents): fill this in, using
20410 cached_currencymgr.
20411 (SetCurrentCell): remove cached_currencymgr_events handling.
20412 (SetDataMember): only call DisconnectListManagerEvents if
20413 cached_currencymgr is != null.
20414 (SetDataSource): same.
20415 (OnListManagerCurrentChanged): cached_currencymgr_events ->
20416 cached_currencymgr.
20418 2006-05-31 Jackson Harper <jackson@ximian.com>
20420 * BindingManagerBase.cs: Remove somedebug code that creeped into
20422 * TreeNode.cs: We get the indent level dynamically right now, so
20423 don't track it as a member.
20424 * TreeNodeCollection.cs: Make sure all nodes added to the list
20425 have parents, treeviews/topnodes setup properly.
20426 - Don't attempt to track indent level.
20428 2006-05-30 Jackson Harper <jackson@ximian.com>
20430 * BindingContext.cs: Create the currency manager tables here.
20431 This allows us to more easily create null tables (when bad data
20432 members are used), and more easily create related currency
20434 * CurrencyManager.cs: All the table creation stuff is done by the
20435 binding context now.
20436 - Current should throw an exception if listposition is -1.
20437 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
20440 2006-05-30 Mike Kestner <mkestner@novell.com>
20442 * ListView.cs: allow reexpansion of zero-width column headers.
20445 2006-05-28 Chris Toshok <toshok@ximian.com>
20447 * CurrencyManager.cs (get_Current): after the late binding
20448 listposition = -1 fix, we need to guard against it here and return
20449 null, otherwise we raise an exception (which is swallowed
20450 elsewhere, and breaks datagrid databinding.)
20452 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20454 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
20455 than WM_SYSKEY, don't throw if get something unexpected (#78507)
20457 2006-05-26 Jackson Harper <jackson@ximian.com>
20460 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20461 values, it's faster and it's all we care about (we don't care if
20462 the names aren't equal).
20463 * KeyboardLayouts.cs: Eliminate some dead code.
20465 * X11Keyboard.cs: Lazy init keyboard detection.
20466 - Cleanup access modifiers a little.
20468 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20470 * XplatUIX11.cs: Once again, attempting to get layout just right.
20472 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20474 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20475 the sizes of each link section, that will result in sizes that
20476 match DrawString's layout (Fixes #78391)
20478 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
20480 * FileDialog.cs: If AddExtension property is true autocomplete the
20481 extensions in SaveFileDialog correctly. Fixes bug #78453.
20482 Set MyNetwork and MyComputer to "C:\" for windows. This should
20483 fix part 8 of bug #78446 for now.
20485 2006-05-26 Chris Toshok <toshok@ximian.com>
20487 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
20488 invalidate the current row header if we need to, but presumably
20489 we'll invalidate the row corrsponding to the bounds or
20491 (GridHScrolled): switch back to this method, as it's part of the
20492 public api. *sigh*.
20493 (GridVScrolled): same.
20494 (OnMouseWheel): hack up something that more or less works. Call
20495 GridHScrolled/GridVScrolled directly, instead of duplicating much
20496 of their code here.
20497 (EnsureCellVisibility): reinstate a bunch of this code, since we
20498 can't just set the scrollbar Value and expect to do all the work
20499 in the ValueChanged handler. Also, Call Update() after scrolling
20500 in one direction so the other XplatX11.ScrollWindow call has the
20501 proper stuff in the proper places.
20502 (EditCell): set is_editing to true before calling .Edit.
20504 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20505 don't bother comparing first.
20506 (OnKeyPress): call grid.ColumnStartedEditing before calling
20507 base.OnKeyPress. this will set is_changing and invalidate the row
20508 header if necessary.
20509 (ProcessKeyMessage): for WM_CHAR messages, call
20510 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
20513 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20514 it's done in the DataGrid.
20515 (NextState): call grid.ColumnStartedEditing, which takes care of
20516 invalidating the row header (and setting is_changing).
20518 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20519 here. it's done in the DataGrid.
20521 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20523 * Control.cs: allow changing the cursor when the mouse position is
20524 out of bounds but Capture is set.
20525 * LinkLabel.cs: handle the case when the mouse button is pressed on the
20526 linklabel but released somewhere else.
20528 2006-05-25 Jackson Harper <jackson@ximian.com>
20530 * TreeView.cs: When we get focus if there is no selected node make
20532 - Remove some uneeded setup code from Draw.
20533 * TreeNodeCollection.cs: If the tree doesn't have a top node when
20534 a new node is inserted make the new node the top.
20536 * Timer.cs: Use Utc time so that no local time zone stuff needs to
20537 be used (should be faster).
20539 2006-05-25 Chris Toshok <toshok@ximian.com>
20541 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20542 problem with the last commit.
20544 2006-05-25 Chris Toshok <toshok@ximian.com>
20546 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20547 need the invalidate call here, while scrolling right-to-left via
20548 the left arrow key (i.e. moving the editing cell while scrolling).
20550 * DataGrid.cs (.ctor): remove the initialization of
20551 ctrl_pressed/shift_pressed. We no longer track them using key
20552 up/down handlers, but by using Control.ModifierKeys. Also, switch
20553 to using ValueChanged handlers on the scrollbars instead of
20554 Scrolled event handlers. This simplifies a bunch of the scrolling
20556 (GridHValueChanged): rename from GridHScrolled, and change it to
20557 work with the new event args.
20558 (GridVValueChanged): same.
20559 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20560 (OnMouseWheel): actually scroll the datagrid. Don't change the
20562 (ProcessGridKey): correct all the keyboard navigation stuff I
20563 could find. Ctrl up/down/left/right/home/end work now.
20564 (EnsureCellVisibility): correct method name spelling. Also,
20565 simplify this a touch by not explicitly calling the
20566 ScrollToRow/ScrollToColumnInPixels methods. We just set the
20568 (OnKeyUpDG): no need for this method now.
20570 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20572 * LinkLabel.cs: display the OverrideCursor when hovering the label.
20575 2006-05-25 Chris Toshok <toshok@ximian.com>
20577 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20580 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20582 * Application.cs: Moved setting of is_modal and closing to before
20583 we create the control, to allow the event handlers called as a
20584 result of creation affect closing. Also removed Gonzalo's previous
20585 change to setting DialogResult, the behaviour has been moved to
20588 - ShowDialog(): Removed explicit creation of the form, let RunLoop
20590 - ShowDialog(): If no dialog result is set, we need to return Cancel
20591 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20592 the close is cancelled
20594 2006-05-25 Jackson Harper <jackson@ximian.com>
20596 * StatusBar.cs: We only need to update the sizes of the other
20597 panels when we have auto size contents. Also we are only updating
20598 the contents of the panel, not the borders, so compensate for the
20599 border width (TODO: get this width from the theme somehow).
20600 * TreeView.cs: Scrollable is true by default
20601 - Use invalidate instead of refresh where needed
20602 - Factor the scrollable value into scrollbar updating
20603 - Update the scrollbars if the Scrollable property is altered
20604 - Update the selected node if its ImageIndex is changed
20605 - Handle null nodes in UpdateNode (mainly so we don't have to
20606 check if selected is null when updating it
20607 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
20608 are factored into the visible count
20609 - Use VisibleCount for clarity in the code
20610 - When the font is changed we need to recurse through all the
20611 nodes and invalidate their sizes
20613 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20615 * Application.cs: set the DialogResult to fixed when the main form is
20616 hidden or destroyed while being modal.
20618 2006-05-25 Miguel de Icaza <miguel@novell.com>
20620 * Theme.cs: Use Tangoified messagebox icons.
20622 (GetSizedResourceImage): Also cope with width = 0 and do not
20623 trigger a warning in that case (0 means "give me your icon from
20624 the resouce, no special size needed).
20626 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20628 * Application.cs: Leave runloop if the the main modal form is
20629 hidden (fixes #78484)
20631 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
20633 * BindingContext.cs : reject null datasource in Contains() and
20635 * CurrencyManager.cs : check data_member validity when data_source
20636 is dataset. When it is late binding, the initial position is -1.
20638 2006-05-24 Jackson Harper <jackson@ximian.com>
20640 * TreeNodeCollection.cs: Dont't recalculate the visible order on
20641 inserted nodes that aren't visible. This changes the
20642 max_visible_order which confuses scrollbar settings.
20643 - Use the enumerator to get the prev node instead of duplicating
20645 * TreeView.cs: Use new method for setting scrollbar values
20646 - Don't set the bounds every time the scrollbar is updated
20647 - When updating below the root node use an invalidate instead of a
20648 refresh to prevent the child controls (scrollbars) from being
20649 refreshed. (UpdateBelow still needs to be reworked anyways).
20650 - Reenable SetBottom now that visible orders are set correctly,
20651 added some debug code incase we ever get bad values there again.
20652 - Set the scrollbar max to 2 less then the max value, this
20653 compensates for the max value being one above the node count, and
20654 for scrollbars adding one extra "notch".
20655 - When drawing image nodes if there is an imagelist we draw the
20656 first image in the list if the supplied image index is out of the
20657 image list's bounds.
20659 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20661 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
20662 we receive a size change from the WM (Fixes #78503)
20664 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20666 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
20667 rectangle (Fixes #78501)
20669 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20672 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
20674 - Fixed MouseMove to no longer switch pressed state unless the left
20675 mouse button is pressed. Atsushi provided the original patch (#78485)
20677 2006-05-24 Jackson Harper <jackson@ximian.com>
20679 * ScrollBar.cs: New internal methods that allow us to change a
20680 couple values on the scrollbar (the most common case is maximum
20681 and large change) without getting multiple invalidates.
20683 2006-05-24 Chris Toshok <toshok@ximian.com>
20685 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
20686 (Edit): save off the original state in oldState, and set
20687 grid.is_editing to true.
20688 (OnKeyDown): abort editing if escape is pressed. also, call
20689 NextState if space is pressed.
20690 (OnMouseDown): call NextState.
20691 (NextState): factor out shared code from OnKeyDown and OnMouseDown
20692 here. Also, only invalidate the row header once (on the initial
20693 is_changing switch) to save on redraws.
20695 2006-05-24 Chris Toshok <toshok@ximian.com>
20697 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
20698 if the value in the cell is different than it was before. This
20699 keeps us from triggering a layout when we move around a datarid
20700 with a highlighted cell.
20701 (Edit): suspend layout when creating/positining the text box, and
20702 resume passing false so we don't ever actually re-layout.
20703 (ReleaseHostedControl): same.
20704 (EnsureTextBox): reformat slightly, and set WordWrap to false.
20706 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
20707 control-key sequences should go to the datagrid - remove that
20708 lock. Also, modify the conditions under which we move between
20709 cells when moving the cursor within a cell, and remove the "this"
20710 and "base" from field accesses. We weren't even consistent, given
20711 they all were in the base class.
20713 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
20715 * Binding.cs : (.ctor)
20716 An obvious NRE fix for BindingTest.CtorNullTest().
20718 2006-05-23 Chris Toshok <toshok@ximian.com>
20720 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
20721 them between lines. This fixes some quirks editing cells in the
20724 2006-05-23 Jackson Harper <jackson@ximian.com>
20726 * TreeView.cs: Use begin/end update when doing expand/collapse all
20727 so that we don't get flicker on the scrollbar.
20729 2006-05-23 Jackson Harper <jackson@ximian.com>
20731 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
20732 treenode calculations to be independant of the painting code. To
20733 do this nodes track a visible order which is calculated by the
20735 - Call new methods for expanding/collapsing nodes. These methods
20736 use scrollwindow so we don't have to update everything below the
20738 * TreeView.cs: Refactored drawing and scrolling code. We don't
20739 need to update nodes when drawing anymore or calculate scrollbar
20741 - Added new methods for expanding/collapsing nodes. These methods
20742 use ScrollWindow so as to not have to redraw all the nodes below.
20743 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
20744 we add/remove nodes or sort.
20745 - Handle removing the selected and the top node properly.
20747 2006-05-23 Chris Toshok <toshok@ximian.com>
20749 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
20750 maybe this should actually happen in the datagrid code?
20751 (EndEdit): no need to invalidate anything, given that
20752 ReleaseHostedControl causes the datagrid to relayout, which
20753 invalidates everything anyway.
20755 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
20756 in SetCurrentCell).
20757 (set_SelectionBackColor): call InvalidateSelection instead of
20759 (set_SelectionForeColor): same.
20760 (BeginEdit): Flesh this out a bit.
20761 (CancelEditing): only do any of this if we're editing/adding.
20763 (OnMouseDown): there's no need to cancel editing here, it's done
20765 (SetCurrentCell): only invalidate the current row header if it's a
20766 different row than the new one.
20767 (ShiftSelection): fix this to work like MS does.
20768 (ResetSelection): factor out the invalidation of selected_rows to
20769 InvalidateSelection.
20770 (SetDataSource): cancel any editing that's going on.
20772 * DataGridColumnStyle.cs
20773 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
20774 call the non-interface version.
20776 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
20777 header rectangle with the clip rectangle so we don't redraw the
20778 entire header for just a small area. Gets rid of the last flicker
20779 when horizontally scrolling.
20780 (DataGridPaintRow): same.
20782 2006-05-23 Mike Kestner <mkestner@novell.com>
20784 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
20785 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
20786 poorly placed checkbox on the MS control. Fixes Alex's unfiled
20787 Critical bug report.
20789 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
20791 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
20792 and this fixes #78493
20794 2006-05-23 Miguel de Icaza <miguel@novell.com>
20796 * Theme.cs (GetSizedResourceImage): Scale images if the proper
20799 * FileDialog.cs: Do not change the background for the side bar as
20800 it wont work nicely with the theme, and also reduces the artifacts
20801 in rendering the icons (which I want to fix too).
20803 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
20804 resources, not resgen resources.
20806 (PlatformDefaultHandler): Pull images using the new API.
20808 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
20810 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
20811 a reference to the hwnd and will not remove it unless there are
20812 no pending exposures (fixes #78341)
20813 * XplatUI.cs: Improved debug
20815 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
20817 * MenuAPI.cs : don't handle OnClick event when it was not the left
20818 button. Fixed bug #78487.
20820 2006-05-23 Mike Kestner <mkestner@novell.com>
20822 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
20823 prefer submenus to the top menu for item lookup, to avoid popping down
20826 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
20828 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
20829 Graphics.FillRectangle as the visual results are really bad (even
20830 on win). We now draw perfect arrows (and perfect shadows when the
20831 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
20832 Pen.DashPattern to draw the dots of each line.
20834 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
20836 * FileDialog.cs: Update the filename combobox when navigating through
20837 the ListView with the cursor keys. Fixes part 7 of bug #78446.
20839 2006-05-22 Mike Kestner <mkestner@novell.com>
20841 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
20844 2006-05-22 Mike Kestner <mkestner@novell.com>
20846 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
20847 requests. Fix a misspelled parameter and a copy paste exception error
20850 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
20852 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
20853 to get the same width/height (5/13) on X11 as the default font has on
20854 win32. This means that our DefaultFont emSize is smaller than the
20855 the MS SWF equivalent (even thought the width/height stays the same)
20857 2006-05-20 Jackson Harper <jackson@ximian.com>
20860 * MdiWindowManager.cs:
20861 * InternalWindowManager.cs: Make sure to use the border width from
20864 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
20866 * PrintDialog.cs: Implements printer details
20868 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
20870 * FileDialog.cs: Added focus handling for PopupButtonPanel.
20871 Fixes part 1 and 2 of bug #78446
20873 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
20875 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
20876 instead of sticking to the first ever calculated value
20878 2006-05-19 Mike Kestner <mkestner@novell.com>
20880 * ComboBox.cs: fix mouse motion selection to use MousePosition and
20881 PointToClient, since Capture is set. Fixes #78344.
20883 2006-05-19 Mike Kestner <mkestner@novell.com>
20885 * ListView.cs: match MS behavior in Details view where items are not
20886 drawn if Columns.Count == 0.
20887 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
20888 Use a separate pen to draw the check, since changing the width affects
20889 the box as well. Fixes #78454.
20891 2006-05-18 Miguel de Icaza <miguel@novell.com>
20893 * ListView.cs: ArgumentOutOfRangeException, single versions of the
20894 exception should throw the name of the invalid argument.
20896 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
20897 there are no files listed.
20899 2006-05-18 Jackson Harper <jackson@ximian.com>
20901 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
20904 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20906 * Control.cs: Brought back our old UpdateZOrder method as a private
20907 function and switched our calls from UpdateZOrder to the new one.
20908 This fixes the Paint.Net canvas disappearing bug.
20910 2006-05-18 Jackson Harper <jackson@ximian.com>
20913 * ThemeWin32Classic.cs:
20914 * InternalWindowManager.cs: Move the drawing into the theme,
20915 expose everything the theme should need from the window manager.
20917 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20919 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
20920 from the call to NativeWindow to avoid walking up the parent chain
20921 further than needed (speeds up setting cursors and avoids setting
20922 the wrong cursor if a parent has another cursor defined)
20923 * Cursor.cs: When loading an icon as cursor, MS uses the center of
20924 the icon as hotspot, not what's contained as hotspot in the icon
20925 file. This fixes the perceived drawing offset seen with Paint.Net
20927 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20930 - Store the calculated rectangle in Hwnd object and use it when
20931 setting the client size
20932 - Force Toolwindows to always be type Dock, to ensure they're on top
20934 2006-05-18 Mike Kestner <mkestner@novell.com>
20936 * ComboBox.cs: first pass at ComboBox rework. Layout is more
20937 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
20938 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
20939 Substantial refactoring to remove confusing nested classes. Coding
20940 standard and Get+Set->property refactorings. Shift to index based
20941 highlighting in ComboListBox instead of constantly using IndexOf and
20942 Items[]. Add invalidations on resize for DropDownList to fix ugliness
20943 in FileDialog growth. Draw borders manually since Simple mode needs
20944 to look like two independent controls. Make listbox border
20945 conditional to DropDownStyle. Improved OwnerDraw support.
20947 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
20949 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
20950 Don't set the disposed graphics to null, so we can throw the "right"
20951 exception if the graphics is reused later (added a flag to avoid
20952 double disposing). Some behaviours are different under 2.0 and are
20953 filled under bug #78448.
20955 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20957 * Control.cs: When double-buffering is enabled, we need to reset
20958 our graphics context between paint calls. Otherwise, any
20959 transformations and other alterations on the context will
20960 become cumulative (#77734)
20962 2006-05-18 Mike Kestner <mkestner@novell.com>
20964 * ListView.cs: do focused item selection like MS on clicks.
20965 Rework focus handling for ItemControl so LostFocus invalidates as
20967 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
20968 the ListView ItemControl has focus.
20970 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
20972 * XplatUIX11.cs: If client_window ends up being width or height zero
20973 due to border settings, move it off window inside whole_window (#78433)
20975 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20977 * Mime.cs: Shrink the mime file cache correctly.
20979 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20981 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
20983 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20985 * XplatUIX11.cs (AddExpose): More sanity checks
20987 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20990 - AddExpose: Don't add expose ranges outside the size of our
20992 - Cast opacity values to Int32 to avoid crashes with certain
20994 - Added disabled code paths that protect against illegal cross-
20995 thread painting (Developers.exe)
20997 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20999 * ProgressBar.cs: Invalidate the control when it's resized
21000 since block size is based on control size. (#78388)
21002 2006-05-16 Miguel de Icaza <miguel@novell.com>
21004 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
21005 of setting the incoming argument to the "reset" value, we set the
21006 this.datamember to string.empty (before we were invalidating the
21011 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21013 * Form.cs: Only apply transparency settings after the form
21014 is created. (Fixes #77800)
21016 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21018 * ApplicationContext.cs: Grab the HandleDestroyed event so
21019 we know when to fire OnMainFormClosed
21021 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21023 * Application.cs: Introduced sub-class to allow tracking of
21024 threads and centralized triggering of the event mess for
21025 ThreadExit, AppExit, etc.. (#76156)
21027 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
21030 - Do not return a null icon index value for a mime subclass.
21031 Instead try the main mime type class too.
21032 - Seems that some newer distributions don't have a link to some
21033 gnome default icons anymore. So check the default gnome dir too.
21036 2006-05-16 Jackson Harper <jackson@ximian.com>
21038 * MdiClient.cs: Don't paint the parent background image if we have
21039 our own background image.
21041 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21044 - PerformLayout: Do not shrink space filled by DockStyle.Fill
21045 controls, all filled controls are supposed to overlap (#78080)
21046 - UpdateZOrder is supposed to update the control's z-order in the
21047 parent's z-order chain. Fixed to behave like that
21048 - BringToFront: Removed obsolete code
21049 - SendToBack: Simplyfied
21050 - SetChildIndex: Trigger layout calculations when Z-order changes
21051 since layout is done by z-order
21053 2006-05-16 Chris Toshok <toshok@ximian.com>
21055 [ fixes bug #78410 ]
21056 * DataGrid.cs (set_AlternatingBackColor): use
21057 grid_drawing.InvalidateCells instead of Refresh().
21058 (set_BackColor): call grid_drawing.InvalidateCells.
21059 (set_BackgroundColor): use Invalidate instead of Refresh.
21061 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
21062 invalidate the cell area.
21064 2006-05-15 Chris Toshok <toshok@ximian.com>
21066 [ fixes bug #78011 ]
21067 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
21068 on to DataGridPaintRow.
21069 (DataGridPaintRow): take a clip argument, and only draw the cells
21070 which intersect it. same with the not_usedarea.
21072 * Theme.cs (DataGridPaintRow) add @clip parameter.
21074 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
21075 XplatUI.ScrollWindow.
21076 (ScrollToRow): same.
21078 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
21079 with last column which was causing a gray swath to appear with the
21080 XplatUI.ScrollWindow code.
21082 2006-05-15 Chris Toshok <toshok@ximian.com>
21084 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
21085 use XplatUI.ScrollWindow.
21086 (VerticalScrollEvent): use XplatUI.ScrollWindow.
21088 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21090 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
21092 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21094 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
21095 file since there are no equivalent X11 cursors
21097 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21099 * MonthCalendar.cs : DateTimePicker should reflect selected date
21100 on mouse*up*, not mouse*down*. Fixed originally reported part of
21103 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21105 * TabControl.cs : When argument index is equal or more than tab
21106 count, just ignore. Fixed bug #78395.
21108 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21110 * Control.cs: Dispose all child controls when control is diposed (#78394)
21112 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21114 * ColorDialog.cs: Finally it is possible to select the color with
21117 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21119 * PrintDialog.cs: Fix typo
21121 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21123 * PrintDialog.cs: PrintDialog is not resizable
21124 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
21125 color. Made some ToolBar drawing methods protected virtual.
21127 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
21129 * PrintDialog.cs: Implementation of the PrintDialog
21131 2006-05-12 Chris Toshok <toshok@ximian.com>
21133 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
21134 thumb, instead use MoveThumb. This has the side effect of making
21135 most of the other thumb moving machinery use MoveThumb as well.
21136 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
21137 need to actually invalidate the rectangle where the new thumb will
21139 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
21140 We force an Update() after, so it's not as fast as it could be,
21141 but at least there's zero flicker and no droppings.
21142 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
21143 (UpdateThumbPos): add another argument (dirty), which says whether
21144 or not to calculate/add dirty regions which we later invalidate.
21145 For cases where we know we're going to use MoveThumb, we pass
21146 false for this. Otherwise, pass true.
21148 2006-05-12 Jackson Harper <jackson@ximian.com>
21150 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
21153 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
21155 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
21156 and GetClipRegion methods and UserClipWontExposeParent property.
21157 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
21158 overriding UserClipWontExposeParent property, setting to false, since
21159 Win32 handles the required expose messages to draw our clipped parent
21161 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
21162 PaintEventStart to set the user clip region if set.
21164 - Now internally tracking the Region for the control since we need to
21165 store it if the handle is not yet created and only set it when it
21166 becomes created. Before setting the region forced handle creation
21167 - Added code to draw the parents underneath a user-clipped region
21168 * Hwnd.cs: Added UserClip property
21170 2006-05-12 Chris Toshok <toshok@ximian.com>
21172 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
21173 (set_Maximum): same.
21174 (set_Minimum): same.
21175 (set_SmallChange): same.
21176 (OnMouseUpSB): remove the call to refresh when releasing the
21177 thumb. We shouldn't need it.
21179 2006-05-12 Miguel de Icaza <miguel@novell.com>
21181 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
21182 AutoSize set to None, we do not need to relayout everything, we
21183 just need to invalidate the current region.
21185 (Draw): Do not draw the entire ClientArea, just redraw the
21186 clip area being passed.
21188 * MdiClient.cs: Make MdiClient constructor with the Form argument
21191 2006-05-12 Jackson Harper <jackson@ximian.com>
21193 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
21194 parents background image, but strangely not their own.
21195 - (DrawStatusBarPanel): Take into account horizontal alignment
21196 when drawing the strings and icons.
21198 2006-05-12 Mike Kestner <mkestner@novell.com>
21200 * ListBox.cs: avoid invalidations for focus when the collection is
21203 2006-05-12 Chris Toshok <toshok@ximian.com>
21205 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
21206 invalidate the entire thumb area. Call InvalidateDirty which
21207 limits the redraw to the thumb itself and surrounding pixels.
21209 * XplatUIX11.cs (ScrollWindow): optimize copying.
21211 2006-05-12 Chris Toshok <toshok@ximian.com>
21213 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
21214 Figure out the positioning/layout in a single pass instead of
21215 multiple recursive invocations. Speeds up the initial display of
21216 the data grid. Also, make many things private that were
21217 originally public but unused outside this class.
21219 2006-05-11 Jackson Harper <jackson@ximian.com>
21221 * MdiClient.cs: Improved layout code.
21223 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
21225 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
21226 not SelectedObject.
21228 2006-05-11 Chris Toshok <toshok@ximian.com>
21230 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
21231 union of that will always be {0,0,width,height}.
21233 2006-05-11 Jackson Harper <jackson@ximian.com>
21235 * Form.cs: Match MS's DefaultSize for forms (they must have
21236 changed the size in sp2).
21238 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21240 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
21242 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21244 * TextControl.cs : Fixed bug #78109. This incorrect position
21245 comparison caused crash on automatic line split.
21246 * TextBoxBase.cs : reduce duplicate code.
21248 2006-05-10 Jackson Harper <jackson@ximian.com>
21250 * MdiClient.cs: Active form is only sent to the back when using
21251 the Next form functionality, when a form is clicked the current
21252 active shouldn't be sent to the back.
21253 - Layout the mdi windows when the container is first made visible.
21254 * Form.cs: Give the MdiClient a ref to the containing form when we
21257 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21259 * LinkLabel.cs : link_font could be uninitialized, so populate one
21260 before actual use. Fixed bug #78340.
21262 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21264 * XplatUIX11.cs : clipboard format native value is IntPtr.
21267 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21270 - Instead of showing context menus directly we send WM_CONTEXTMENU,
21271 which is passed up the parent chain by DefWndProc
21272 - We now handle WM_CONTEXTMENU to display any menu, or pass it
21273 to DefWndProc (#77956)
21274 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
21276 2006-05-10 Jackson Harper <jackson@ximian.com>
21278 * MdiClient.cs: We need to remove the controls from the mdi
21279 collection, when we close the window.
21280 * MdiWindowManager.cs: Special handling of closing mdi windows.
21281 * InternalWindowManager.cs: Make the close method virtual so the
21282 mdi window manager can handle it specially.
21284 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
21287 - Recalculate grid when the data source has changed
21288 - Matches styles provided by user from all data sources types
21289 * DataGridTableStyle.cs: For columns that provided by the user set the
21290 with the preferred value is there was unassigned.
21291 * CurrencyManager.cs: throw OnItemChanged event
21293 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21295 * PictureBox.cs: Don't animate until handle is created. Start animation
21296 when handle is created.
21298 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21300 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
21302 * XEventQueue.cs: We don't need to provide the extra info
21304 2006-05-10 Jackson Harper <jackson@ximian.com>
21306 * MdiClient.cs: If the mdi clients parent form has a background
21307 image set, we draw that background image for the mdi area's
21310 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21312 * TextBoxBase.cs: Set IBeam cursor (#78347)
21314 2006-05-10 Mike Kestner <mkestner@novell.com>
21316 * ToolBar.cs: fix some text padding issues with ButtonSize
21317 calculation. Update the default size to match MS documentation.
21318 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
21319 button size. Fixes #78296.
21321 2006-05-10 Mike Kestner <mkestner@novell.com>
21323 * ListBox.cs: use is_visible for scrollbar positioning in case the
21324 control isn't on screen yet. Fix off by one with Right vs Width
21325 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
21327 2006-05-10 Jackson Harper <jackson@ximian.com>
21329 * X11Dnd.cs: Drop to a control with another control on top of it.
21330 * ToolBar.cs: Work on a copy of the buttons list, so that it can
21331 be modified in click handlers. TODO: Look for similar problems in
21334 2006-05-09 Jackson Harper <jackson@ximian.com>
21336 * Form.cs: Window managers need the old window state when setting
21338 * InternalWindowManager.cs: Allow the base mdi window manager to
21339 handle more of the MDI only stuff (like maximize buttons).
21340 * MdiWindowManager.cs: Fix some snafus in changing the window
21341 state. Add all the menu functionality, for both popup and
21343 * MdiClient.cs: When a new form is selected the currently
21344 activated form is sent to the back, this matches MS.
21345 - Implement a new method to activate the next mdi child window.
21347 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21350 - Added new InternalCapture method to allow controls to prevent
21351 the capture behaviour on the click handlers
21352 - Switched to use InternalCapture
21354 - Using InternalCapture to prevent mouse captures from being released
21355 on mouse button release (Fixes #78100)
21356 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
21357 returns Form borders if a caption is present. (Fixes #78310)
21359 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21361 * TreeNode.cs: Changed serialization .ctor to not require every field
21362 to be present. (#78265)
21363 * OwnerDrawPropertyBag.cs: Added serialization .ctor
21365 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
21367 * MimeIcon.cs: for is faster than foreach for strings.
21369 2006-05-05 Mike Kestner <mkestner@novell.com>
21371 * CheckedListBox.cs: update check handling code to not use selected.
21372 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
21373 behavior for visual feedback, motion response, shift/ctrl handling,
21374 and properly deal with all 4 selection modes. Updates to bounds
21375 handling logic. Add scroll wheel support. [Fixes #77842]
21377 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21380 - Moved adding of Implicit controls into .ctor. That way, subsequent
21381 creation of the controls will not cause them to think they are
21382 toplevel windows (fixes #78200 header problem)
21383 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
21384 - Switched visibility setting of header control to use internal field
21385 to avoid triggering handle creation
21386 - Now checking if handle is created before causing a refresh when items
21387 are added (This makes us now match handle creation time with MS)
21388 * Splitter.cs: Removed loading of private splitter cursor, switched to
21389 Cursors version now that that is loading the right ones
21390 * Cursors.cs: Load proper splitter cursors from resources
21391 * Cursor.cs: Added second method of loading resource cursors for the
21392 VS.Net users amongst us
21394 2006-05-05 Mike Kestner <mkestner@novell.com>
21396 * ListView.cs: give header_control a minimum size based on the
21399 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21401 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
21402 window seems to do that with metacity, so set that type. (#78120)
21404 2006-05-05 Mike Kestner <mkestner@novell.com>
21406 * ListViewItem.cs: fix Details mode checkbox layout bug.
21407 * ThemeWin32Classic.cs: draw a ListView column header for unused space
21408 at the end of the header, if it exists. [Fixes for #78200]
21410 2006-05-04 Jackson Harper <jackson@ximian.com>
21412 * MdiClient.cs: Add a helper property to get the container form.
21413 * MdiWindowManager.cs: We have to make sure to use the menu origin
21414 when drawing the icons and buttons, this fixes maximized window
21415 icons/buttons on win32.
21416 * InternalWindowManager.cs: Reset the restore captions when a
21417 window goes from Maximized to Minimized and vice versa. Move the
21418 DrawMaximizedButtons into the MdiWindowManager source, tool
21419 windows can't be maximized. NOTE: This could use a little
21420 refactoring if time ever permits.
21422 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21424 * TextBox.cs: Add MWFCategoryAttributes
21425 * TextBoxBase.cs: Add MWFCategoryAttributes
21426 * Form.cs: Add MWFCategoryAttributes
21428 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21430 * Control.cs: Add MWFCategoryAttributes
21431 * ScrollableControl.cs: Add MWFCategoryAttributes
21433 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
21435 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
21436 Divider is true. Fix a little glitch in PropertyToolBar
21439 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
21442 - Dispose: Call base.Dispose, this causes the disposed event
21443 to be fired (and probably other, more important stuff)
21444 - SetVisibleCore: Set is_visible to true after creating the
21445 window so that the window still gets created invisible (if
21446 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
21447 to generate a WM_ACTIVE message
21448 * Form.cs: Call Dispose when we want to destroy the window, instead of
21449 just destroying the handle (Dispose will do that for us)
21451 - RootWindow also needs a queue, so we can properly process the
21452 property change events from RootWindow (like Activate)
21453 - Generatic synthetic WM_ACTIVE message when the active window is
21456 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21458 * LinkLabel.cs: Trigger a recalc of our label dimensions when
21461 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21463 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21464 for determining width and height (image might not be assigned if
21465 we're drawing an imagelist)
21467 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21469 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21470 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21472 * Theme.cs: No longer returns hardcoded menu height, instead calls
21474 * Form.cs (OnLoad): Scaling happens before triggering Load events
21477 2006-05-01 Mike Kestner <mkestner@novell.com>
21479 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
21481 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21483 * TextBoxBase.cs: Removed Fixme
21484 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21486 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21489 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21490 the rectangle relative to the parent, considering borders. We
21491 don't really want that.
21492 - ScrollWindow: Fixed warning to be more understandable
21493 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21494 scrollbars and scroll only the visible area
21495 * RichTextBox.cs: Removed debug output
21497 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21499 * NumericUpDown.cs (Text): Just use base
21500 * UpDownBase.cs: Ensure txtView is created before using it
21502 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21504 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21505 casting to IntPtr to avoid 64bit overflow errors
21507 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21510 - AllowDrop: Don't force handle creation.
21511 - CreateHandle: Added call to tell driver if we're allowed to drop
21513 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21515 * FileDialog.cs: Remember the last directory not only for the
21516 current instance but also for new FileDialog instances.
21518 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21520 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21521 broke sending async messages
21523 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21526 - ScrollWindow: Fixed method. We finally generate expose events again
21527 for scrolled areas. This was causing 'garbage' when scrolling
21528 textbox and other controls that used ScrollWindow
21529 - Switched from using the regular queue for paint events to the MS
21530 model of 'generating' paint events when the queue is empty.
21531 We use the new XQueueEvent.Paint subclass to store which windows
21533 - AddExpose now takes the x/y/width/height of the exposed area
21534 and inserts the window into the paint queue if not already there
21535 - InvalidateWholeWindow: Switched to use new AddExpose method
21536 - UpdateMessageQueue: Added which queue to monitor for paint events
21537 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21538 the unlikely case nothing above handles it. We reset the expose
21539 pending states to get them off the queue.
21540 - GetMessage: Now pulls a paint event if no other events are in the
21542 - Invalidate: Switched to new AddExpose method
21543 - PeekMessage: Updated to understand pending paint events
21544 - UpdateWindow: Fixed logic bug. We were only updating if the window
21545 didn't need updating. Also switched to sending WM_PAINT directly,
21547 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21548 and random access Remove(). The random access is needed to handle
21549 UpdateWindow() where a WM_PAINT is sent directly without accessing
21551 * ScrollBar.cs: Added Update() calls to cause immediate updates to
21552 allow for better feedback when scrolling. Scrollbars are small and
21553 the immediate update should make it 'feel' more responsive without
21554 slowing things down. ScrollBar still needs it's invaliate logic
21555 updated to not always invalidate the whole bar on certain changes.
21557 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21560 (BackColor): if the control does not support a transparent background,
21561 return the default backcolor when the parent backcolor is transparent.
21563 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
21565 * Application.cs: Updated to new StartLoop/GetMessage API
21566 * RichTextBox.cs: Provide some output on RTF parsing errors
21567 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21568 new queue_id argument to GetMessage and PeekMessage to allow faster
21569 handling of per-thread queues in drivers.
21570 * Hwnd.cs: Added Queue tracking and property
21571 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21572 * XEventQueue.cs: Added thread trackingA
21573 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21575 - Implemented new per-thread queue
21576 - GetMessage: Fixed return/break behaviour on several cases. We were
21577 returning stale messages in some cases, instead of just processing
21580 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21582 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21584 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
21586 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21587 fixed off-by-one comparisons between Width/Height and Right/Bottom.
21589 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21591 * PropertyGridView.cs: Fix drop down width.
21593 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21595 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
21596 a mess in DrawToolBar, so I removed one of them.
21598 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21600 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
21601 needed (clip). Otherwise we get artifacts.
21603 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21605 * FixedSizeTextBox.cs: Added constructor to allow specifying which
21607 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
21608 and switched FixedSizeTextBox to only be fixed vertical (#78116)
21609 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
21610 if it matches the scale base font (avoids unneeded scaling)
21612 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
21614 * X11DesktopColors.cs: One gtk_init_check should be enough
21616 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21618 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
21621 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21624 - Generate OnTextChanged for Backspace even if we're only deleting
21625 the current selection
21626 - When setting the Text property, only select all text if the
21627 control does not have focus when it is being set. Otherwise
21628 just place the cursor at the beginning of the control
21630 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
21632 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
21633 Added a little helper to draw PropertyGrid ToolBar with a different
21634 border and a different BackColor.
21635 * PropertyGrid.cs: Some background parts didn't get painted with the
21636 correct background color. Added a class that helps us to draw the
21637 correct border for PropertyGridView and a class that helps us to
21638 draw ToolBars with a different backcolor
21639 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
21641 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
21643 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
21644 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
21646 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21648 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
21649 into the palette entries. Also, since we're working on a copy
21650 we needed to copy the palette back onto the bitmap.
21651 * Cursor.cs: Same fix as XplatUIWin32.cs.
21653 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21655 * ImageListStreamer.cs: Need to read the var (or we're off)
21657 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21659 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
21660 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
21661 TextBoxBase.cs: Unused var fixes
21662 * AxHost.cs: Small 2.0 fix
21663 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
21664 as it seems that is what at least Metacity expects. This will make
21665 icons show up on 64bit platforms. We still have some 64bit size
21666 issues, though, since the startup app window size still won't match.
21668 2006-04-25 Mike Kestner <mkestner@novell.com>
21670 * *.cs: cleanup newly reported exception var unused warnings.
21672 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21674 * ThemeWin32Classic.cs: Button image alignment now matches exactly
21677 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21679 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
21680 image. The image position is always the same, no matter if the
21681 button is pressed or not.
21683 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21685 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
21686 selection and set the correct filename for SaveFileDialog.
21687 Patch by Emery Conrad.
21689 2006-04-24 Mike Kestner <mkestner@novell.com>
21691 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
21692 check for item.X outside the ClientRect instead of item.Y. Fixes
21695 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21697 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
21698 trust that value blindly and do some sanity check. Fixes bug #77814.
21700 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21702 * ImageListStreamer.cs: save the mask as a 1bpp image.
21704 2006-04-21 Mike Kestner <mkestner@novell.com>
21706 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
21707 pass Checked and Indeterminate to the Theme Engine. Improve
21708 encapsulation with ListBox.
21709 * ListBox.cs: Keep a StringFormat instead of calculating it every item
21710 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
21711 nested types. Move all CheckState functionality to CheckedListBox.
21712 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
21713 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
21714 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
21715 single base list. Fix scrollbar sizing and placement to mirror MS.
21716 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
21718 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
21719 for CheckedListBox by using new DrawItemState info. Center the
21720 checkboxes on the items. Use new StringFormat property.
21722 2006-04-18 Jackson Harper <jackson@ximian.com>
21724 * Form.cs: MdiChildren don't do default locations the same way as
21725 regular forms. This prevents a crash when trying to position the
21728 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
21730 * PropertyGridTextBox.cs: Formatting, copyright
21731 * PropertiesTab.cs: Formatting
21732 * PropertyGrid.cs: Formatting
21733 * PropertyGridView.cs: Formatting, fix drop down, enabled double
21734 click toggling of values
21736 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
21738 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
21739 * Control.cs (.ctor): verify_thread_handle is static, don't reset
21740 every time a control is created
21741 * Application.cs: Removed obsolete EnableRTLMirroring method
21743 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
21745 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
21746 SelectedIndex to -1. Fixes bug #78121.
21748 2006-04-17 Jackson Harper <jackson@ximian.com>
21750 * Binding.cs: Handle null values for Current and BindingContext.
21751 This occurs when binding is a little delayed.
21752 * CurrencyManager.cs: return null for Current when there are no
21754 - Hookup to the listchanged event on the DataView and update
21755 bindings when the list is changed. This fixes late binding of
21758 2006-04-17 Jackson Harper <jackson@ximian.com>
21761 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
21764 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
21766 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
21768 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
21769 with the correct ButtonState
21771 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
21773 * XplatUIX11.cs: Improved distinguishing between window types to
21774 tell the WM a type closer to what the app wants (Fixes #78107)
21776 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
21778 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
21781 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
21783 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
21784 drawing code to reflect the size grip changes
21786 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21788 * ImageListStreamer.cs: fix handling of the mask that follows the main
21789 bitmap when deserializing and serialize it properly. The generated mask
21790 should better be a 1bpp image, but I'll do that later.
21792 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
21794 * FileDialog.cs: Show something in the DirComboBox on *nix if the
21795 path doesn't fit into some of our Current.Places
21797 2006-04-13 Jackson Harper <jackson@ximian.com>
21799 * ComboBox.cs: Use borders instead of drawing our own decorations,
21800 try to obey correct rules for heights.
21803 * ThemeClearLooks.cs:
21804 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
21805 this is now handled by borders.
21806 - Remove unused DrawListBoxDecorationSize method.
21808 2006-04-13 Mike Kestner <mkestner@novell.com>
21810 * MenuAPI.cs: null guarding for the disbled click check fixes crash
21813 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
21815 * ThemeWin32Classic.cs:
21816 - Fixed CPDrawStringDisabled
21817 - Corrected drawing of disabled menu items
21818 - Fixed drawing of disabled radio buttons (bug #78095)
21819 - Draw check in a disabled CheckBox with color ControlDark
21821 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21823 * Form.cs: Use the provided width when calculating the menu size;
21824 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
21825 and ClientSize.Width won't be updated yet
21826 * Application.cs: Use Visible instead of Show() to make form visible,
21827 this way we create the handle later and menusize is considered
21829 2006-04-12 Mike Kestner <mkestner@novell.com>
21831 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
21834 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21836 * TextBox.cs: Implemented context menu
21838 2006-04-12 Mike Kestner <mkestner@novell.com>
21840 * ListView.cs: implement box selection. fixes #77838.
21841 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
21843 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21845 * XplatUIX11.cs: Added setting of window type when transient window
21846 is created (metacity would move it otherwise)
21847 * X11Structs.cs: Added WINDOW_TYPE atoms
21848 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
21849 background (the control is Opaque but still wants transparent
21852 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21854 * Control.cs: Added OnPaintBackgroundInternal to allow controls
21855 that set Opaque but don't mean it (like all ButtonBase-derived
21856 controls) to still draw their background
21857 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
21860 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21862 * Control.cs (PaintControlBackground): Set the graphics object
21863 on our PaintEvent to null to prevent it from being disposed
21864 when the PaintEvent gets disposed
21866 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
21868 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
21869 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
21871 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21874 - Added transparency check to BackColor property. Transparent
21875 backgrounds are only allowed if the control styles permit it
21876 - Added recursive painting of parent control background and
21877 foreground if a control with a transparent backcolor is drawn
21878 (Thanks to Tim Ringenback for providing his 'hack' as a base
21879 for this patch) Fixes #77985 and #78026.
21880 - Added Opaque style check before calling OnPaintBackground, no
21881 need to draw the background if the control is opaque
21882 - Removed ControlAccessibleObject owner variable (inherited from
21883 base, no need to define again)
21884 - Added some documentation links explaining the drawing events
21887 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21889 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
21890 that the affected control is the located at the left border of our
21891 parent (Fixes #77936)
21893 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21895 * TextBoxBase.cs: When rendering disabled or readonly controls,
21896 draw the background with 'Control' instead of 'Window' color as
21897 long as the user hasn't specifically set a color
21899 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21901 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
21902 since that won't be updated if the user types text (only if it's
21903 programatically set)
21905 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21907 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
21908 layout changes do to app-triggered resizes will have the proper
21909 display rectangle for layout
21911 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
21913 * ThemeWin32Classic.cs:
21914 - Make use of the SystemBrushes and SystemPens wherever possible
21915 - Corrected some highlight colors
21916 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
21918 * Theme.cs: Added Empty field to CPColor struct
21920 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21922 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
21923 is displayed when calculating the display rectangle. Thanks to Mike
21924 for teaching me the err of my ways.
21926 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
21928 * ScrollableControl.cs:
21929 - Rewrote DisplayRectangle code, now returning the proper x/y coords
21930 (instead of 0,0) and we now return the real width/height instead of
21931 just the clientrectangle, adjusted for padding. The rectangle is
21932 now cached and created by the new CalculateDisplayRectangle method.
21933 - Created new CalculateDisplayRectange method, which basically does
21934 what get_DisplayRectangle() did originally, but now using the
21935 right edge instead of DisplayRectangle to determine the size of
21937 - get_Canvas(): Fixed it to properly calculate canvas for
21938 right/bottom controls which seem to be placed to the right/bottom
21939 of any controls that have a fixed location
21940 - Removed TODO that's taken care of
21941 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
21942 and SetDisplayRectLocation according to new MSDN2 docs
21943 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
21944 event when that is called, this is added for compatibility
21945 - ScrollControlIntoView(): Implemented.
21946 - Switched scrollbars to be implicit, they shouldn't be selectable
21947 * ContainerControl: Now that ScrollControlIntoView is implemented, we
21948 call it when the active control is set/changed
21949 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
21950 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
21951 implicit_control variable (used for native Win32 message generation)
21952 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
21953 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
21954 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
21955 * XplatUIStructs.cs: Added ScrollBarCommands enum
21957 2006-04-10 Jackson Harper <jackson@ximian.com>
21960 * CheckedListBox.cs:
21967 * PrintPreviewControl.cs:
21973 * UpDownBase.cs: Fixup base event overrides.
21975 2006-04-06 Mike Kestner <mkestner@novell.com>
21977 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
21978 all user-initiated value changes to min <= value <= max-thumbsz+1.
21979 (set_Value): check for vert/horiz when calculating new thumb position.
21980 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
21982 (OnMouseMoveSB): refactor the thumb dragging code and refine
21983 invalidation logic to reduce flicker.
21984 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
21985 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
21986 (UpdateThumbPosition): small code readability cleanup
21988 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
21990 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
21993 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21995 * ThemeNice.cs: Use a better graphics effect when a button is pressed
21997 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21999 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
22000 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
22001 This dramatically reduces the number of Pen.Dispose calls.
22002 Where possible call ResPool methods only once instead of calling it
22003 over and over again (for example for the same color).
22005 2006-04-06 Mike Kestner <mkestner@novell.com>
22007 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
22008 Also remove an unused private field on the collection. Fixes #77972.
22010 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22012 * ThemeNice.cs: Added ToolBar drawing code
22014 2006-04-06 Mike Kestner <mkestner@novell.com>
22016 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
22017 I'm assuming that means we need to look up the toplevel for the
22018 provided control. Fixes the crash trace in #77911 but exposes another
22019 crash in some strange reflection usage in NDocGui.
22021 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22023 * ThemeNice.cs: Gave it a little silver touch and added Images
22025 * FontDialog.cs: FontDialog is not resizable
22026 * FileDialg.cs: Added SizeGripStyle.Show
22028 2006-04-05 Jackson Harper <jackson@ximian.com>
22030 * KeyboardLayouts.cs: Remove warning.
22032 2006-04-05 Jackson Harper <jackson@ximian.com>
22034 * Control.cs: Enable OnPaintInternal so we can use it for drawing
22035 all of our controls instead of Paint +=.
22050 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
22051 use OnPaintInternal. Remove Width/Height and Visible checks in
22052 paint handler, this is done at a higher level now.
22053 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
22054 * PaintEventArgs.cs: Add a handled flag so controls that don't
22055 want anymore painting after OnPaintInternal can make sure OnPaint
22058 2006-04-05 Mike Kestner <mkestner@novell.com>
22060 * Form.cs: fix the menu WndProc hacks to respect the native enabled
22061 state of the form, so that we don't process events when Modal dialogs
22062 are up. Fixes #77922.
22064 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
22066 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
22069 2006-04-05 Mike Kestner <mkestner@novell.com>
22071 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
22073 2006-04-05 Mike Kestner <mkestner@novell.com>
22075 * ListView.cs (HeaderMouseMove): null guarding for the over column
22076 when setting up the drag_to_index. Fixes #78015.
22078 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22080 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
22081 in the taskbar. Transient windows seem to accomplish that.
22083 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22086 - Re-enabled CreateParams.X/Y code for FormStartPosition
22087 - Added code for manual placement when creating the Control
22088 - Incomplete patch to treat MDI forms differently when
22089 setting the ClientSizeCore. (Still need to figure out handling
22092 - When we're explicitly setting the X/Y position of a non-Child
22093 window, let the WM know. Metacity really wants this.
22095 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22097 * ThemeNice.cs: Added CPDrawButton
22099 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22101 * ThemeNice.cs: Changed the color for focused buttons and activated
22102 the arrows for small scroll buttons.
22104 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22106 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
22107 anymore. Changed some method modifiers to protected (virtual)
22108 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
22110 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
22111 Updated drawing of menus, buttons and progressbars; added
22114 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22116 * ImageListStreamer.cs: implemented serialization/deserialization
22119 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
22121 * ThemeWin32Classic.cs:
22122 - Removed all the DrawFrameControl stuff; CPDrawButton,
22123 CPDrawCheckBox and CPDrawRadioButton are now handled directly
22125 - Updated and corrected the drawing code of CPDrawButton,
22126 CPDrawCheckBox and CPDrawRadioButton to better match ms
22127 - Updated theme checkbox and radiobutton code to use the CP*
22130 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22132 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
22135 2006-03-31 Jackson Harper <jackson@ximian.com>
22137 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
22139 * UpDownBase.cs: Don't CreateGraphics manually, use a
22140 Refresh. Ideally we would invalidate the correct areas here.
22142 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22145 - We now track the mapping state of windows. If a window (or
22146 one of it's parents) is not mapped we no longer permit
22147 WM_PAINT messages to be generated since we'd otherwise get
22148 lots of BadMatch X errors. Jackson did all the work figuring
22150 - Destroying the caret if the window it's contained in is
22151 destroyed. Can't use regular DestroyCaret method since it
22152 might fall into a drawing function (trying to remove the
22153 caret) and with that generate new BadMatch errors. Again,
22154 Jackson tracked this down.
22155 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
22156 make sure we send the messages to all windows. (The old code
22157 would send the WM_DESTROY to the window, and then all child
22158 windows would be 'gone' because the WM_DESTROY handle lookup
22159 would no longer find the destroyed window)
22160 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
22161 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
22163 2006-03-31 Jackson Harper <jackson@ximian.com>
22165 * ScrollableControl.cs: Dont recalc if we are not visible.
22167 2006-03-31 Mike Kestner <mkestner@novell.com>
22169 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
22170 the visibility branch.
22172 2006-03-31 Jackson Harper <jackson@ximian.com>
22174 * ScrollBar.cs: Cap values when incrementing/decrementing.
22176 2006-03-31 Mike Kestner <mkestner@novell.com>
22178 * MenuAPI.cs: setup menu.tracker for popup/context menus.
22179 * ToolTip.cs: guard against timer expirations with no active control.
22180 Not sure why it happened.
22182 2006-03-31 Mike Kestner <mkestner@novell.com>
22184 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
22186 * ToolTip.cs: Position the tooltip based on where the cursor is at
22187 popup time, not at MouseEnter time. Add a Down state so that we don't
22188 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
22189 positioning offset. Lookup DisplaySize at positioning time, since it
22190 can theoretically change during invocation.
22191 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
22192 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
22194 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22196 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
22197 Fixes behaviour when the Text property of the box is String.Empty
22199 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22201 * XplatUIX11.cs: Only send mouseleave for our client windows, not
22202 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
22205 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22207 * FileDialog.cs: Visual enhancement for the popup buttons in
22210 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22212 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
22215 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
22217 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
22218 highlighted menu items to match ms
22220 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
22222 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
22224 2006-03-30 Mike Kestner <mkestner@novell.com>
22226 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
22227 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
22228 go active to account for HotLight to Selected transition.
22229 * MenuItem.cs: add internal Selected prop. Fill out the Status
22230 property by calculating it from item info. Add HotLight,
22231 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
22233 2006-03-30 Mike Kestner <mkestner@novell.com>
22235 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
22237 2006-03-29 Jackson Harper <jackson@ximian.com>
22239 * Form.cs: Implement TODO.
22241 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22243 * PrintPreviewDialog.cs: Implemented missing methods and events; still
22244 missing proper dialog setup in the constructor
22246 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22248 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
22250 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
22251 - Fixed ResetBindings and removed TODO
22252 - Added check for cross-thread calls to get_Handle()
22253 - Added Marshaller attribute for set_Font to satisfy class status
22254 * FontDialog.cs: Removed TODOs that seemed implemented
22255 * UpDownBase.cs: Removed unneeded TODO and Fixme
22256 * MessageBox.cs: Implemented support for Default button and removed TODO
22257 * FileDialog.cs: Removed obsolete TODO
22258 * DomainUpDown.cs: Removed obsolete TODO
22259 * ButtonBase.cs: Removed obsolete TODO
22260 * XplatUIWin32.cs: Removed obsolete TODO
22262 - Removed obsolete TODO
22263 - Calling CheckAcceptButton when the acceptbutton is changed to allow
22264 internal status updates
22265 - Making sure the active control is selected when the control is created
22266 * CurrencyManager.cs: Removed obsolete TODO
22268 2006-03-29 Mike Kestner <mkestner@novell.com>
22270 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
22271 of PrintPreviewDialog and RichTextBox.
22273 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22275 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
22276 DarkDark, Light and LightLight colors for a specific color
22277 * ThemeWin32Classic.cs:
22278 - Use Button drawing code to draw RadioButtons and CheckBoxes with
22279 Appearance = Button
22280 - Make use of the new ResPool helper CPColor
22281 - Draw ProgressBar and StatusBar with correct 3D borders
22283 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22285 * ColorDialog.cs: Return selected color. Fixes bug #77940.
22287 2006-03-28 Mike Kestner <mkestner@novell.com>
22289 * ListView.cs: fix Icon layout to plan for scrollbar widths when
22290 calculating col/row counts.
22292 2006-03-28 Mike Kestner <mkestner@novell.com>
22298 switch to explicit interface method implementation for some methods
22299 corcompare identifies as inconsistent with MS.
22301 2006-03-28 Mike Kestner <mkestner@novell.com>
22305 add a few missing methods from the class status output.
22307 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
22309 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
22312 2006-03-28 Mike Kestner <mkestner@novell.com>
22314 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
22316 2006-03-27 Mike Kestner <mkestner@novell.com>
22318 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
22319 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
22321 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
22323 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
22325 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22327 * ThemeWin32Classic.cs:
22328 - GroupBox: Inserted a little gap between the text and the lines
22330 - Made the code in CPDrawBorder3D more readable
22331 - Corrected the drawing location of the up and down arrows in
22334 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22336 * ControlPaint.cs: Corrected line widths in DrawBorder for
22337 ButtonBorderStyle Inset and Outset
22339 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22341 * ThemeWin32Classic.cs:
22342 - Rewrote the totally broken CPDrawBorder3D method. That was
22343 one of the main problems for the terrific ThemeWin32Classic
22345 - Updated and corrected Button drawing
22346 - Correct the dimensions of the SizeGrip to match ms ones
22347 - Removed a small drawing glitch in DrawComboBoxEditDecorations
22348 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
22349 Border3DStyle.Sunken to match ms.
22351 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22353 * ThemeWin32Classic.cs: First small part of the "de-uglify
22354 ThemeWin32Classic" effort, SizeGrip
22356 2006-03-24 Jackson Harper <jackson@ximian.com>
22358 * XplatUIX11.cs: Give a max idle time of one second, this matches
22359 MS and forces an Idle event every second when there are no other
22360 events in the queue.
22362 2006-03-24 Mike Kestner <mkestner@novell.com>
22364 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
22365 * ListView.Item.cs: fix layout issues with null image lists and images
22366 smaller than checkbox size.
22367 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
22368 mode like MS does. It's weird, but consistent. ;-)
22371 2006-03-24 Mike Kestner <mkestner@novell.com>
22373 * ListView.cs: Scroll wheel support for the item control. Fixes
22376 2006-03-23 Jackson Harper <jackson@ximian.com>
22378 * ScrollableControl.cs: Special case negative sized areas, not
22380 * MonthCalendar.cs: Save the rect of the clicked date so we can
22381 use it for invalidation.
22382 - Try to cut down on the number of invalidates
22383 - Invalidate the rect the mouse is over and was over when moving
22384 the mouse, so we get the focus box following the cursor.
22386 2006-03-23 Mike Kestner <mkestner@novell.com>
22388 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
22389 focus rectangle drawing. Fixes #77835.
22391 2006-03-23 Mike Kestner <mkestner@novell.com>
22393 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
22394 the if and else if and reverting back to the original == check on the
22397 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22399 * FontDialog.cs: Update the example panel if the selected index of
22400 the fontListBox changes.
22402 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22404 * FileDialog.cs: Make FileDialog remember which directory it was in
22405 last in the same execution.
22407 2006-03-22 Mike Kestner <mkestner@novell.com>
22409 * FileDialog.cs: make the DropDownMenu on the toolbar display
22410 RadioChecks since they are mutually exclusive and that's what MS does.
22412 2006-03-22 Mike Kestner <mkestner@novell.com>
22414 * Theme.cs: add Color param to CPDrawMenuGlyph.
22415 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
22416 checks and radio marks and arrows are visible on highlighted items.
22417 * ControlPaint.cs: update to use new Theme signature.
22419 2006-03-22 Mike Kestner <mkestner@novell.com>
22421 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
22422 is active. Fixes #77870.
22424 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22426 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
22427 to be focused/selected after startup
22429 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22432 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
22433 CustomColors and ShowHelp properties
22434 - Some internal rewrites to get better results when using the
22437 2006-03-22 Mike Kestner <mkestner@novell.com>
22439 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
22440 HoverSelection. Fixes #77836.
22442 2006-03-22 Mike Kestner <mkestner@novell.com>
22444 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
22445 ToggleButtons. (De)Sensitize the Back button around a stack count of
22446 1, not 0. Update ButtonSize based on a pixel count of the win32
22447 control. Adjust the toolbar size/location for new button size.
22449 2006-03-22 Jackson Harper <jackson@ximian.com>
22451 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
22453 * ScrollBar.cs: When doing increments and decrements we need to
22454 set the Value property so that ValueChanged gets raised. A
22455 possible optimization here would be to make an internal SetValue
22456 that doesn't invalidate immediately.
22457 * ToolTip.cs: Tooltips get added to their container (when
22458 supplied) so they get disposed when the container is disposed.
22459 - Don't create tooltips for String.Empty. This prevents all these
22460 little 2-3 pixel windows from showing up when running nunit-gui
22461 and driving me mad.
22462 * Form.cs: Don't set topmost when setting the owner if the handles
22463 haven't been created yet. The topmost set will happen when the
22464 handles are created.
22466 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
22469 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22470 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
22471 visible (to allow them to recalculate their sizes)
22473 2006-03-21 Mike Kestner <mkestner@novell.com>
22475 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22476 methods. Removed a ton of redundant code. Still not really happy with
22477 the border rendering, but I think that's mainly because of the
22478 ControlDarkDark being black instead of a dark grey. Depending on how
22479 close we want to be, we might want to revisit those color choices.
22480 Among the new features added during the refactor were DropDownArrow
22481 pressed rendering, Disabled image rendering. Proper flat appearance
22482 boundary rendering. Removed the Divider and Wrapping dividers since I
22483 can't figure out any combination of themes and conditions to make the
22484 MS control draw a horizontal line on a toolbar despite what the
22485 Divider property docs indicate.
22486 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22487 conditions and incorrect layout. Updated to coding standard.
22488 * ToolBarButton.cs: refactored layout and positioning code from
22489 ToolBar to here. Invalidate wherever possible instead of forcing
22490 redraws of the whole toolbar.
22491 (Known remaining issues: explicit ButtonSize smaller than provided
22494 2006-03-21 Mike Kestner <mkestner@novell.com>
22496 * ContextMenu.cs (Show): use the position parameter instead of just
22497 showing at the MousePosition.
22499 2006-03-21 Jackson Harper <jackson@ximian.com>
22501 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22502 control handle this.
22503 * TreeNodeCollection.cs: If we are clearing the root node we need
22504 to reset top_node so calcs can still happen.
22505 * ThemeWin32Classic.cs: This is a Flags so we need to check
22508 2006-03-21 Jackson Harper <jackson@ximian.com>
22510 * DataGrid.cs: Create columns when the binding context has been
22512 * X11Structs.cs: Keysyms are uints.
22513 - Add size to fix build.
22515 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
22517 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22519 - Added ResetMouseHover method to allow controls to retrigger
22520 hovering if they need it more than once
22521 - Implemented MouseHoverTime and MouseHoverSize properties
22522 * Timer.cs: Start() must reset the interval
22523 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22526 2006-03-21 Jackson Harper <jackson@ximian.com>
22528 * X11Keyboard.cs: improved layout detection. Move the nonchar
22529 tables into this file.
22530 * KeyboardLayouts.cs: Move the tables into resource files.
22532 2006-03-21 Mike Kestner <mkestner@novell.com>
22534 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22536 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
22538 * Mime.cs: Various speed optimizations. Looking up mime types
22539 is now 2 times faster than before
22541 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22543 * CreateParams.cs: Added internal menu field
22545 - Switched call order for UpdateBounds; now we always call
22546 the one that also takes ClientSize, and we're calculating the
22547 client size via driver method in the others. The previous
22548 method of tracking client size by difference wasn't working
22549 for forms where even the starting client size wouldn't match
22550 the overall form size (due to borders) (Part of fix for #77729)
22551 - CreateParams(): Do not use parent.Handle unless the handle is
22552 already created. Causes havoc with Nexxia and throws off our
22553 creation of controls
22555 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22556 - Switched handling of ConfigureNotify over to new PerformNCCalc
22557 method (consolidates code)
22558 - Changed RequestNCRecalc to use new PerformNCCalc method
22559 - Added calls to RequestNCRecalc when menus and borders are changed
22560 to allow app to set NC size. (Part of fix for #77729) This matches
22561 when MS send a WM_NCRECALC on Win32 windows.
22562 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22563 (Part of fix for #77729). This matches what MS does, they also
22564 send that message when the form is made visible.
22565 - XException.GetMessage: Improved usability of X errors by including
22566 a translation of the window into Hwnd and Control class
22567 - Improved debug info for window creation, reparenting and destruction
22568 - Created helper method WindowIsMapped() [Currently not used]
22569 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22571 - CreateParams: Now setting our menu on the new internal menu field
22572 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22573 avoid calculating the same property twice
22575 - Improved usability of ToString() for debugging purposes
22576 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22577 determine the height of the menu, instead of just the font. This
22578 required to also create a graphics context and to keep a bmp
22579 around (for performance reasons)
22581 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22583 * MenuAPI.cs: Added OnMouseUp method
22585 - Now remembering the requested client size, avoids size errors
22586 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22587 instead of base if the menu is active. This is required due to
22588 control now capturing and releasing on down/up and it would
22589 prematurely release our menu capture
22591 2006-03-17 Jackson Harper <jackson@ximian.com>
22593 * KeyboardLayouts.cs: Add the czech layouts.
22595 2006-03-16 Jackson Harper <jackson@ximian.com>
22597 * Control.cs: Use the viewport space when sizing not the controls
22598 client size, so things like ScrollableControl that effect the
22599 viewport size (when scrollbars are added) are computed correctly.
22600 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
22602 - Handle creating BindingManagers for null data sources.
22603 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
22604 source, otherwise when rows are added they are added to the 'fake'
22605 datasource and we will crash when trying to set the position in
22607 - Use Implicit scrollbars on the datagrid so they arent
22610 2006-03-16 Jackson Harper <jackson@ximian.com>
22613 * InternalWindowManager.cs:
22614 * MdiWindowManager.cs:
22615 * X11Keyboard.cs: I really want Mike to love me again (fix
22616 compiler warnings).
22618 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
22621 - OnMouseDown: Switch to editing mode when clicking on the cell
22622 even if we're clicking on the cell that's currently
22624 - ProcessGridKey: Left/Right now wrap like MS.Net does
22625 - ProcessGridKey: Tab now knows to add a new row when tab is
22626 pressed in the cell of the last column of the
22628 - ProcessGridKey: Enter now adds another row if pressed in the last
22629 row and selectes the new row, same column cell
22630 - ProcessGridKey: Home/End navigate columns, not rows, like
22631 originally implemented
22632 - Broke ProcessKeyPreview code out into an extra Internal method
22633 so it can be called from the edit code
22634 * DataGridTextBox.cs (ProcessKeyMessage):
22635 - Switched to accept Tab keypresses
22636 - Added F2 handling to allow jumping to the end of the edited cell
22637 - Added logic to allow moving caret left/right inside edited cell
22638 and making the edited cell jump when the caret hits cell borders
22639 - Tab and Enter are now passed to the datagrid after being handled
22641 - Removed capture code now that Control handles it
22642 - set_SelectionStart now ensures caret is visible
22644 2006-03-16 Jackson Harper <jackson@ximian.com>
22646 * TrackBar.cs: Debackwards the increment/decrement for handling
22647 mouse clicks on the bar with vertical trackbars.
22648 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
22649 bottom to match MS.
22651 2006-03-16 Mike Kestner <mkestner@novell.com>
22653 * ListView.cs: make shift/ctrl keyboard and mouse selection
22654 consistent with the MS control. Fix a bug in
22655 SelectedListViewItemCollection.Clear that was pissing me off for the
22656 better part of a day because the collection was being altered
22657 underneath us as we walked the list.
22659 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
22661 * Control.cs: Not sure how we could miss this so long, but it seems
22662 that MS.Net has Capture set all the way from before calling
22663 OnMouseDown through sending the mouse events until after
22664 OnMouseUp. This will fix DataGrid's selection being set to end
22665 at the location of the MouseUp.
22667 2006-03-15 Jackson Harper <jackson@ximian.com>
22669 * BindingContext.cs: Check the binding after its added so that it
22670 can initialize the binding managers and hookup to events.
22671 * Binding.cs: Data members seem to sometimes include rows/cols in
22672 the format Row.Column we now take this into account.
22673 - Hookup to the position changed event so we can update the
22674 control when the position has changed in the data set.
22675 * CurrencyManager.cs: Take into account the row/col naming
22676 convention when creating dataset tables.
22677 * BindingContext.cs: Using a newer better way of storing
22678 datasource/datamember pairs. Hopefully this better matches MS for
22679 looking up binding managers.
22682 2006-03-15 Jackson Harper <jackson@ximian.com>
22684 * BindingContext.cs: The currency manager needs the data member
22685 name, if the member is a data set we use the name to find the
22687 * CurrencyManager.cs: When creating the list prefer an IList over
22689 - Attempt to create a DataTable from a DataSet (TODO: might need
22690 some better error checking here, although MS doesn't seem to have much)
22691 - If we have a DataTable create a view and use it as our list.
22693 2006-03-15 Mike Kestner <mkestner@novell.com>
22695 * ListView.cs: keep a matrix of the icon mode layout to facilitate
22696 keyboard navigation. Support Up/Down/Left/Right selection correctly
22697 for all 4 View modes.
22698 * ListViewItem.cs: add internal row/col fields for icon layouts.
22700 2006-03-15 Jackson Harper <jackson@ximian.com>
22702 * TabControl.cs: Redraw the tabs when we resize so their newly
22703 calculated sizes are drawn on screen.
22704 * X11Keyboard.cs: Begginnings of XIM support. We also now support
22705 composite characters.
22706 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
22707 - filter events so that composite characters can be created
22709 * X11Structs.cs: Add XIMProperties enum.
22711 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22713 * Control.cs (BringToFront, SendToBack): Don't use window or handle
22714 unless it's created
22716 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22718 * Control.cs (PerformLayout): We don't need to consider visiblity
22719 for anchoring, only for docking. This fixes 'whacky' alignment
22720 in listbox and other controls that use implicit scrollbars after
22721 the previous PerformLayout patch
22722 * ListBox.cs: Switched to use implicit scrollbars
22724 2006-03-14 Mike Kestner <mkestner@novell.com>
22728 - chain up the "new event" overrides to base and use
22729 OnEvent to raise them. Part of fix for bug #76509.
22731 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
22733 * FileDialog.cs: Do not select an item in the parent directory
22736 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22738 * Control.cs (PerformLayout): It would seem that we considered
22739 invisible windows for our layout. Not quite the right thing
22740 to do. Now we don't any longer, thereby fixing bug #76889.
22742 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22744 * Control.cs (CanFocus): I goofed. A control can have focus
22745 even though it's not selectable. Made it match MS docs.
22747 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22749 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
22750 center by default (fixes #76895)
22751 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
22752 all uses of Border3DSides.All with the explicit ORd together
22753 Left|Right|Top|Bottom because I assume that nobody was aware
22754 that All also implies a center fill. Most places I checked had
22755 a fill right above.
22756 * ProgressBarStyle.cs: Added
22758 2006-03-13 Mike Kestner <mkestner@novell.com>
22760 * ListView.cs: fix breakage in drag shadow header positioning
22761 from Peter's csc compilation fix.
22763 2006-03-13 Mike Kestner <mkestner@novell.com>
22765 * ListView.cs: fix NRE produced by backspacing twice in a focused
22768 2006-03-13 Mike Kestner <mkestner@novell.com>
22770 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
22772 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22774 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
22776 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
22777 the allowed size before making programmatic size changes
22779 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22781 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
22782 set, metacity is broken and will still use the emty sizes in
22783 the struct. (Fix for #77089)
22785 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22787 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
22788 WindowExStyles and marked both enums as Flags
22789 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
22790 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
22791 to match WindowStyles split
22793 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
22794 - Updated to match WindowStyles split
22796 - Fixed FosterParent creation, was using ExStyle on the Style field
22797 (This should help with Popup focus issues)
22798 - Updated to match WindowStyles split
22800 2006-03-13 Jackson Harper <jackson@ximian.com>
22802 * MdiWindowManager.cs: Use the system menu height. Fixes some
22803 strange sizing issues.
22805 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22807 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
22809 - Scroll to caret after inserting text (#77672)
22810 - Make scroll range one pixel higher, fixes off-by-one error (and
22811 makes underlines visible on the last line)
22813 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22815 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
22816 the keyboard state from being stuck with keys in 'pressed' state when
22817 focus is switched away via keyboard
22818 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
22819 reset the keyboard if no X11 KeyUp events are expected to come
22820 * X11Structs.cs: Switched type of Visible to bool to match driver
22822 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22825 - Switched caret to be just 1 pixel wide, matches MS and looks less
22827 - Moved caret display 1 pixel down from the top of the control
22829 - InsertCharAtCharet: Update the selection start if moving the caret
22830 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
22831 - No longer always creating the caret when the caret methods are
22832 called. Only the actual ShowCaret/HideCaret will do that now
22833 - Only setting caret visible if the owner control has focus
22834 - UpdateView: Added invalidation-shortcut logic for center and right
22835 aligned text. Previously we'd update all according to the left
22836 logic which caused drawing errors. Also fixed height of invalidated
22837 areas, now properly invalidating the whole area (was off-by-one)
22838 - owner_HandleCreated: Always generate the document when the
22839 handle is created; this ensures that
22841 - Fixed situation where caret would disappear under the right
22842 window border, also improved scrolling behaviour on left-
22844 - Fixed right-aligned textboxes to have a border to the
22845 right instead of the caret being under the right border
22847 - Switched from 'nested' to simple visible/not visible tracking
22848 for caret (part of fix for #77671)
22849 - No longer passing through translated FocusIn/FocusOut messages
22850 since we were notifying too often and the wrong windows. Instead
22851 we just notify our focussed window of receiving or loosing focus
22852 * XplatUIWin32.cs: Switched from 'nested' show/hide
22853 counting for caret to simple visible yes/no behaviour (part of
22856 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22858 * Mime.cs: Remove debug code...
22860 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22862 * MimeGenerated.cs: Removed
22863 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
22864 and subclasses) from /usr/(local/)share/mime and
22865 $HOME/.local/share/mime.
22867 2006-03-10 Jackson Harper <jackson@ximian.com>
22869 * MdiWindowManager.cs: Recalc the NC area when a window is
22870 maximized/restored so that the menu area is drawn on forms that
22873 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22875 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22876 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
22877 us to force a WM_NCCALCRESIZE message being sent. This is needed
22878 for MDI maximizing.
22880 2006-03-10 Jackson Harper <jackson@ximian.com>
22882 * Form.cs: We need to use the ActiveMenu when calculating menu
22884 - Fix nullref when the window manager hasn't been created yet.
22885 * Control.cs: Fix nullref when we try to bring a control to the
22886 front that has no parent.
22887 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
22889 - Add a dummy item to the maximized menu so it always has the
22890 correct height. Otherwise when there are no menus we don't get our
22894 2006-03-10 Jackson Harper <jackson@ximian.com>
22896 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
22898 * Form.cs: Make the window_state internal so the window managers
22900 - When an MDI child is maximized let its window manager create the
22901 main menu (so it can add its icon).
22902 - Notify the window managers of state changes
22903 - Let the window manager paint its buttons and handle button
22904 clicks on the menu when it is maximized.
22905 * InternalWindowManager.cs: Move the prev_bounds into the mdi
22906 window manager, since tool windows don't use it, only mdi windows.
22907 - Tell the main form that we don't want it to handle NCPAINT
22908 itself to avoid extra painting.
22909 - Handle clicks on a maximized windows menu.
22910 - Handle window state changes
22911 - Handle minimize/maximize clicks correctly by setting the window state.
22912 * MdiWindowManager.cs: Add an icon menu that (the menu you get
22913 when clicking on the forms icon).
22914 - New method to create a forms maximized menu. This is its normal
22916 - Handle window state changes.
22917 - Handle sizing of maximized windows. Maximized windows are just
22918 drawn bigger then the parent visible area. All controls are still
22919 there, they are just outside the visible area (this matches windows).
22920 * MdiClient.cs: No scrollbars when a child window is maximized.
22921 - Let the children windows figure out how big they should be when
22922 sizing maximized windows.
22923 - Implement a version of ArrangeIconicWindows somewhat similar to
22924 Windows version. There are some little differences, but I don't
22925 think any app will rely on the layout of minimized mdi windows.
22927 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22929 * Padding.cs: Several fixes to allow compiling with csc 2.0
22931 2006-03-09 Jackson Harper <jackson@ximian.com>
22934 * MenuItem.cs: Cheap hack so we can add items to the list without
22935 the events being raised. This allows adding mdi items during
22936 drawing. TODO: Should probably find a better time to add the items.
22938 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22940 * ThemeWin32Classic.cs:
22941 - CheckBox_DrawText: Added logic to not wrap if not enough space
22942 is available (Fix for bug #77727)
22943 - RadioButton_DrawText: Added logic not to wrap if not enough
22944 space is available (Fix for bug #77727). Also removed some
22945 duplicate code, DrawString always drawing the regular text
22946 before hitting the if statement.
22948 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22950 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
22952 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22954 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
22955 * ContainerControl.cs: Partial implementation of some 2.0 scaling
22956 methods. Moved the new 2.0 properties into alphabetical order with
22957 other properties and added MonoTODO tags
22959 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22961 * AutoScaleMode.cs: Added. Fix build.
22963 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22965 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22966 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
22967 and was requiring premature handle creation for calls from above
22968 * Form.cs, Control.cs: Removed handle arguments from calls to
22969 CalculateClientRect()
22971 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22973 * ListView.cs (HeaderMouseMove): Fix csc compilation.
22974 drag_column.column_rect is MarshalByRef and can't be used that way
22976 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22978 * AxHost.cs: Added deserialization constructor for
22979 AxHost+State (fixes 77743)
22981 2006-03-09 Mike Kestner <mkestner@novell.com>
22984 - Added column drag reordering for details view.
22985 - fixed behavior when mouse is dragged off column and
22986 AllowColumnReorder is false.
22987 * ColumnHeader.cs: clone the format too in Clone.
22988 * Theme.cs: add DrawListViewHeaderDragDetails method.
22989 * ThemeWin32Classic.cs:
22990 - impl new method for drawing drag column shadows and targets.
22991 - support column offset for details mode in DrawListViewItem.
22993 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22995 * TextControl.cs: Reset the char_count when the document is cleared
22996 (Fixes bug reported on mono-winforms mailing list)
22998 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23000 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
23001 of calling base we simply process the key ourselves, since both
23002 DefWindowProc and the handled method would set m.Result.
23005 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23007 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
23008 method also moves the window; instead implemented a copy of
23009 Control.ScaleCore (Part of fix for #77456)
23011 - Created new CreateGraphicsInternal method to allow providing
23012 a graphics context when no handle is created without triggering
23013 handle creation. (Part of fix for #77456)
23014 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23016 - Switched Constructor to require TextBoxBase instead of Control (to
23017 allow uncast access to CreateGraphicsInternal)
23018 - Safeguarded use of owner.Handle property. No longer accessing it
23019 unless the handle is already created.
23020 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23021 - Now triggering a recalc when owning control becomes visible
23022 * TextBox.cs, RichTextBox.cs: Switched to use new internal
23023 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
23024 premature handle creation (Part of fix for #77456)
23026 - We now only destroy our double-buffering buffers when the
23027 control is resized or disposed, but not when visibility
23028 changes. (The code even re-created them twice every time)
23029 - Now requiring a redraw of the buffer on visibility changes
23030 (fixes bug 77654 part 2)
23031 - Not passing OnParentVisibleChanged up unless the control
23033 - CanFocus: Fixed to match MS documentation
23034 - Focus: Fixed to return actual focus state and to check if
23035 setting focus is legal before setting it
23037 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
23039 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
23040 when to draw focus rectangle by looking at parent focus and
23041 selected state instead. This fixes TabPages on Linux sometimes
23042 having none or multiple focus rectangles.
23043 * XplatUIX11.cs (SetFocus):
23044 - Don't set the focus if the same window already has focus
23045 - Use SendMessage instead of PostMessage (like it's Win32
23046 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
23047 to match MS behaviour
23048 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
23049 are not selectable.
23051 2006-03-07 Jackson Harper <jackson@ximian.com>
23053 * PictureBox.cs: Revert line I accidently committed last week.
23055 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
23058 - Added new IsRecreating and ParentIsRecreating properties to
23059 allow testing if RecreateHandle has been called on ourselves
23060 or one of our parents
23061 - WndProc(WM_DESTROY): If our control handle is being recreated
23062 we immediately need to create the handle when receiving the
23063 destroy, that way our child windows find a valid parent handle
23064 when they themselves are being recreated upon WM_DESTROY receipt
23065 (fix for bug #77654 part 1)
23067 - DestroyWindow: WM_DESTROY must be sent to our own window before
23068 notifying any child windows. MS documents that child windows
23069 are still valid when WM_DESTROY is received. (Control now relies on
23071 - Added some fine-grain debug options
23073 2006-03-06 Jackson Harper <jackson@ximian.com>
23075 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
23076 box and base calculations off this.
23077 * MdiChildContext.cs:
23078 * MdiWindowManager.cs: Don't need to ensure scrollbars here
23081 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
23083 * Splitter.cs: In situations where the affected control is added
23084 to the parent's control list after the splitter, we would not
23085 populate affected. Now we try populating it on mousedown, if
23086 it's not already set, and force it to be re-set whenever our
23089 2006-03-03 Matt Hargett <matt@use.net>
23091 * Control.cs: implement Control.Padding
23092 * Padding.cs: -Padding.All returns -1 when constructing with the
23093 implicit default ctor
23094 -Padding.ToString() matches MS.NET
23095 * ContainerControl.cs: implement
23096 ContainerControl.AutoScaleDimensions
23097 * ListControl.cs: implement ListControl.FormattingEnabled
23098 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
23100 * TabPage.cs: Implement UseVisualStyleBackColor.
23101 * PictureBox.cs: Implement PictureBox.InitialImage.
23103 2006-03-03 Mike Kestner <mkestner@novell.com>
23105 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
23106 event declarations to proxy to base event.
23107 * ListViewItem.cs: update to use ItemControl.
23108 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
23109 * ThemeWin32Classic.cs: update to new ListView theme API and fix
23110 column header label rendering for 0 width columns.
23112 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
23114 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
23115 that causes the control to be created. Fixes #77476.
23117 2006-03-02 Jackson Harper <jackson@ximian.com>
23119 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
23122 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
23124 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
23125 passed in for the EventArgs (fixes #77690)
23127 2006-03-01 Jackson Harper <jackson@ximian.com>
23129 * ScrollBar.cs: Refresh afterbeing resized.
23131 2006-02-28 Mike Kestner <mkestner@novell.com>
23133 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
23134 Clean up a tracker compile warning.
23135 * MenuItem.cs: add internal PerformPopup method.
23138 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23140 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
23141 implicit expose) when the text is set to null
23143 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23145 * RichTextBox.cs (FlushText): When newline is true, we always
23146 need to split the line, even if no text is on it and we may
23147 never eat newlines. (Fixes #77669)
23149 2006-02-28 Mike Kestner <mkestner@novell.com>
23151 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
23152 and set Selected instead.
23153 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
23156 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23158 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
23160 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
23163 - Got rid of the panel. All controls are now directly added to
23165 - It is now possible to set a font with the Font property
23166 - MinSize and MaxSize property do now what they should
23167 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
23168 - Searching and selecting a font with the font textbox works now,
23169 the same applies to the style and size textbox
23170 - Draw the correct 3D border in the example panel
23171 - Fixed a little mem leak (unused fonts didn't get disposed)
23172 - Many other internal updates/rewrites...
23175 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23178 - InsertRTFFromStream: Added 'number of characters inserted' argument
23179 - set_SelectedRTF: Now using the number of characters to calculate
23180 the new location for the selection and cursor (x/y cannot be used
23181 due to potentially already wrapped text)
23183 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23185 * TextControl.cs: Added property and implemented means to allow
23186 disabling recalculation of a document (can be used to speed up
23187 multiple inserts and is needed to make RTF inserts predictable, see
23189 * RichTextBox.cs: Using the new NoRecalc property of Document to
23190 keep x/y insert locations predictable. Also makes it faster inserting
23191 large chunks of RTF
23193 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23195 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
23196 it's easier for a child control to handle the other messages without
23197 having to duplicate the special functionality
23199 - WndProc: Removed calling base handler for WM_KEYDOWN and added
23200 code to handle processing the key ourselves, in order to get
23201 access to the result of KeyEventArgs.Handled. We now only call
23202 ProcessKey if they key hasn't been handled already. Fixes #77526.
23203 - set_Text: If null or empty string is given, just clear the
23204 document. Fixes part of #77526
23206 2006-02-27 Jackson Harper <jackson@ximian.com>
23208 * SizeGrip.cs: Paint the background color before painting the grip
23209 so things look right.
23210 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
23212 2006-02-27 Mike Kestner <mkestner@novell.com>
23215 - Restructure layout and invalidation model to remove a ton of
23216 flicker from the control and speed up performance in general.
23217 - Add manual column resize, flickers like crazy, but I already have
23218 some ideas on how I'll fix that. (#76822)
23219 - Merge the three Icon-based views into a single layout method.
23220 - Move item selection interaction logic from the item since
23221 interaction with the collections is more appropriate to the view.
23222 - Deselection on non-item clicks.
23224 - Encapsulate most of the layout. Add some internal props to trigger
23225 layout. Move to a model where Items invalidate themselves instead
23226 of just invalidating the whole control every time something changes.
23227 - Invalidate on Text/Caption changes.
23228 - switch to an offset based layout model to avoid having to absolute
23229 position every element on item moves.
23230 - correct checkbox layout to conform to MS layout.
23231 * ThemeWin32Classic.cs:
23232 - refactor some column header drawing code.
23233 - fix string justification for column headers (#76821)
23234 - make SmallIcon labels top justified for compat with MS impl.
23235 * ThemeClearlooks.cs:
23236 - adjust to new ListViewItem internal checkbox bounds api.
23238 2006-02-27 Jackson Harper <jackson@ximian.com>
23240 * Control.cs: Change where implicit controls fall in the zorder.
23241 They are now on top of all children.
23242 - Synced AddImplicit code with Add
23243 - Removed unused enumerator.
23244 * SizeGrip.cs: Remove the TODO as its been TODONE.
23246 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23248 * TextControl.cs(Insert): Combine the last lines unless the insertion
23249 string ends with \n\n, otherwise we leave one line too many (Fixes
23250 something I noticed with the testapp for #77526; the bug itself was
23251 already fixed in the previous checkin)
23253 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23256 - SelectionColor and SelectionFont methods no longer set absolute
23257 styles. Instead, the keep font or color respectively (This
23258 resolves a long-standing FIXME in the code)
23259 - When flushing RTF text, the insert code now considers text trailing
23260 behind the insertion point (Fixes the bug where when replacing
23261 the selected text via SelectedRTF the remainder of the line behind
23262 the selection would stay on the first insertion line)
23264 - AppendText now updates the selection points after inserting text
23265 - AppendText now ensures that the last tag (sometimes 0-length) of
23266 the document is used for the style information (Fixes part of
23269 - Created new FontDefiniton class to allow describing partial style
23271 - StreamLine() now takes a lines argument, to allow it to decide
23272 whether an encountered zero-length tag is the last in the document
23273 (which must be kept to not loose the font/color contained in it,
23275 - Created Combine() and Split() methods for Marker structs, to
23276 support marker updates due to reformatted documents (soft line
23278 - Implemented Document.CaretTag setter
23279 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
23280 of the last line (Not the cause, but also exposed by bug #77220)
23281 - Added LineTag argument to InsertString method, to allow callers
23282 to force a certain tag to be used (required to force use of the
23283 trailing zero-length tag of a document)
23284 - Now updating markers in Combine(), to avoid stale tag markers
23285 - Added some method descriptions to aid maintenance
23286 - Implemented new FormatText concept, allowing additive/subtractive
23287 formatting by only specifying the components that are to be
23288 changed. This was needed for resolving the RTB.SelectedColor/
23289 RTB.SelectedFont fixmes
23290 - Added Break() support method to allow breaking up linetags (used
23291 for partial formatting)
23292 - Added GenerateTextFormat() method. It is used for partial
23293 formatting and allows to generate a full font/color from given
23294 attributes and an existing tag.
23296 2006-02-26 Jackson Harper <jackson@ximian.com>
23298 * XplatUIX11.cs: Use the correct caption height.
23299 - Translate hittest coordinates to screen coords to match MS.
23300 * XplatUIWin32.cs: When we create MDI windows we need to reset
23301 some of the style flags, so we get a nice blank window, and can
23302 draw all the decorations ourselves.
23303 - Set a clipping rectangle on the non client paint event, the
23304 window manager drawing code needs one.
23305 * Form.cs: The window manager needs to know when the window state
23307 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
23308 don't need to factor in border and title sizes in these
23309 methods. TODO: Remove the args and fix the call points.
23310 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
23312 - Let the driver set the cursors.
23313 - Improve active window handling
23314 - Correct sizes for title bars and buttons.
23315 - Match MS drawing better
23316 * MdiWindowManager.cs: We don't need to handle border style
23317 updates specially anymore.
23318 - Check for scrollbars when windows are done moving
23319 - Handle Active properly.
23320 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
23321 correctly. I am spewing the exception though, so we don't hide the
23324 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
23326 * DataGridViewRowPostPaintEventArgs.cs,
23327 DataGridViewCellPaintingEventArgs.cs,
23328 DataGridViewRowCollection.cs,
23329 DataGridViewRowPrePaintEventArgs.cs,
23330 DataGridViewCell.cs: Clear a few warnings and implement a few
23331 exceptions that should be thrown.
23333 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23335 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
23336 'inheriting' our parent's (non-default) cursor. (Part of
23337 the fix for #77479)
23339 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23341 * XplatUIX11.cs: Fixed cast to make csc happy
23343 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23345 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
23346 it's for the client area (part of fix for #77479 and needed
23347 for MDI window cursor handling)
23349 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
23350 the appropriate default cursors and also passing the message
23351 up the parent chain
23352 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
23353 for non-client areas
23355 2006-02-15 Jackson Harper <jackson@ximian.com>
23357 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
23358 is a real MDI window
23360 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
23362 * X11DesktopColors.cs: Instead of checking the desktop session
23363 string for "KDE" check if it starts with "KDE"
23365 2006-02-10 Jackson Harper <jackson@ximian.com>
23367 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
23370 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23372 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
23375 - Got rid of the panel. All controls are now directly added to
23377 - Changed to mono coding style
23379 2006-02-10 Jackson Harper <jackson@ximian.com>
23381 * InternalWindowManager.cs: We don't need the set visibility to
23382 false hack anymore now that peter has written beautiful shutdown
23385 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
23387 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
23388 where already explicitly destroyed
23390 2006-02-10 Jackson Harper <jackson@ximian.com>
23392 * MdiClient.cs: Handle the case where windows are too high or to
23393 the left and we need scrollbars.
23395 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23397 * MimeIcon.cs: Added some icons
23400 - Got rid of the panel. All controls are now directly added to
23402 - Changed to mono coding style
23403 - On Linux "My Computer" and "My Network" will now show some
23404 more usefull information. A new class, MasterMount, gathers
23405 this information from /proc/mount. Updated MWFFileView to make
23406 use of this information
23407 - Fixed a bug that caused FileDialog to crash when
23408 ".recently_used" file had a zero size
23409 - FilterIndex does now what it should
23411 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
23414 2006-02-09 Jackson Harper <jackson@ximian.com>
23416 * ComboBox.cs: Don't touch if null.
23418 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
23420 * Cursor.cs: 64bit safeness fix
23421 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
23423 2006-02-09 Jackson Harper <jackson@ximian.com>
23425 * Form.cs: If a form is made into an MDI form update the styles so
23426 all the props can get set correctly.
23427 - Kill the mdi_container when we dont need it anymore.
23428 * InternalWindowManager.cs: Add missing NOT
23430 2006-02-08 Jackson Harper <jackson@ximian.com>
23432 * InternalWindowManager.cs: Respek clipping when drawing MDi
23435 2006-02-08 Jackson Harper <jackson@ximian.com>
23437 * Hwnd.cs: Add bits to track non client expose events.
23438 * XplatUIX11.cs: Track non client expose events on the hwnd. This
23439 gives us a proper invalid rect and will allow for some nice
23440 optimizations with NC client drawing
23441 - MDI windows are children windows, so move their style handling
23442 into the child window block.
23443 * InternalWindowManager.cs: Remove a state reset that was
23444 getting invoked at the wrong time. Fixes managed windows getting
23445 into a 'stuck' captured state.
23447 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23449 * TextControl.cs (Document.ctor): Now initializing
23450 selection_anchor. Fixes #77493
23452 2006-02-07 Jackson Harper <jackson@ximian.com>
23454 * TrackBar.cs: The increment/decrements were backwards.
23456 2006-02-07 Mike Kestner <mkestner@novell.com>
23458 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23459 to the instance itself.
23461 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23463 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23464 on ulongs and pointers, the size differs between 32bit and 64bit
23467 2006-02-07 Mike Kestner <mkestner@novell.com>
23469 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23470 for 64 bit platforms to work around a metacity bug.
23472 2006-02-07 Jackson Harper <jackson@ximian.com>
23474 * TrackBar.cs: Process the input keys we need, and hookup to
23475 KeyDown instead of using WndProc, so we get key messages.
23477 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23479 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23481 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23482 we need to translate the XdndVersion atoms array before sending it
23484 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23487 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23488 number of bits for the property, not the number of bytes. The
23489 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23490 but would not crash since it specified 8 bits instead of 4 bits)
23491 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23492 defined as XID -> long in the C headers)
23493 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
23494 references since those are now IntPtr to begin with
23495 - Switched all Atom.XXX 'int' casts to IntPtr casts
23496 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23497 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23498 - Added XChangeActivePointerGrab DllImport (for X11DnD)
23500 - Changed 'int' type for Atoms in XEvent structures to IntPtr
23501 - Changed atom in HoverStruct to be IntPtr
23503 - Removed local DllImports, switched code to use those from XplatUIX11
23504 - Removed/fixed casts related to the switch of Atom to be a IntPtr
23506 2006-02-06 Mike Kestner <mkestner@novell.com>
23508 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
23509 method signatures in the import region. There may still be some
23510 lingering struct marshaling issues, as I didn't drill down into those.
23513 2006-02-06 Jackson Harper <jackson@ximian.com>
23515 * ComboBox.cs: Dont manually set the top_item, this is computed
23516 when the scrollbar position is set.
23518 2006-02-06 Mike Kestner <mkestner@novell.com>
23520 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23521 startup crashes on amd64. There's other fixes needed. All pinvoke
23522 usage of Atom needs to be mapped to IntPtr for example. And there are
23523 likely other int/long issues to be addressed.
23525 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
23527 * FileDialog.cs: One more...
23529 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23531 * FileDialog.cs: Next try
23533 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23535 * FileDialog.cs: First part of fix for #77464
23537 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23539 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23540 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23541 AcceptButton border drawing.
23543 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23545 * Form.cs: Moved positioning of form after auto scaling is applied,
23546 otherwise it would possibly use wrong form size.
23548 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23550 * Control.cs (RecreateHandle): No need to re-create any child
23551 controls, the child windows will get destroyed automatically by
23552 the windowing system or driver, and re-created when the handle
23553 is being accessed the first time. Fixes #77456
23554 * Form.cs: No longer setting the form to closing if the handle is
23555 being recreated. This seems like the right thing to do, don't
23556 have a bug or testcase for this, though.
23558 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23560 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23561 controls to avoid unwanted side effects
23563 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23566 - ScaleCore needs to scale the bounds, not the ClientSize of the
23567 control. Fixes #77416.
23568 - DefaultSize is 0,0 for control
23570 - DefaultSize is 100, 20
23571 - SetBoundsCore: Now enforcing the height, no matter if the provided
23572 height is more or less than the preferred one, as long as AutoSize
23574 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23576 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23579 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23580 call unless both performLayout is true *and* we have a pending
23582 - ResumeLayout: MS does not completely nest Suspend and Resume,
23583 they bottom out at 0, fixed our code to match that.
23584 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23585 SetBoundsCore, we were updating even when we shouldn't. This fixes
23586 swf-anchors mis-anchoring when resizing the app fast and lots.
23587 - UpdateDistances: Now only setting the left and top distance if
23588 we have a parent and are not suspended, this is based on
23589 a suggestion by Don Edvaldson in bug #77355.
23590 - OnVisibleChanged: Fixed logic when to create the control. We may
23591 not create the control if we have no parent or if it's not visible;
23592 switched to using Visible property instead of is_visible field
23593 since the property also considers parent states. This fixes a bug
23594 when starting Paint.Net
23596 2006-02-02 Jackson Harper <jackson@ximian.com>
23598 * Form.cs: If the forms handle hasn't been created yet don't call
23599 into xplatui to make it top most, just set the topmost flag on the
23600 form in CreateParams
23601 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
23603 2006-02-01 Jackson Harper <jackson@ximian.com>
23605 * ScrollableControl.cs: Refactored the Recalculate method a
23606 little, this wasn't handling all the variants of bottom and right
23607 bars needed to be added and added/removed based on their
23608 counterparts being added/removed (which changes the drawable
23609 size). Also we special case client widths and heights of 0 and
23610 don't add the scrollbar for those.
23612 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
23615 - Added method to get AbsoluteGeometry(); currently unused, but might
23616 be used in the future, if we try again to figure out toplevel
23617 coordinates with some more crappy window managers
23618 - Added FrameExtents() method to retrieve the WM set decoration size
23619 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
23620 to deal with at least KDE, FVWM and metacity (Fixes #77092)
23622 - Added whacky_wm tracking var for metacity
23623 - Added logic to have default menu height if the actual menu height
23624 has not yet been calculated (part of fix for #77426)
23625 * Form.cs: Keep track whether client size has been set and re-set
23626 it if a menu is added/removed afterwards (Fixes #77426)
23628 2006-01-31 Jackson Harper <jackson@ximian.com>
23630 * Control.cs: When a new Site is set on the component attempt to
23631 pull the AmbientProperties from it.
23633 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
23635 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
23636 in the background of the owning form. Fixes #77332
23638 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
23640 * MimeIcon.cs: Fix for #77409
23642 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
23644 * XplatUIX11GTK.cs: Initial import
23646 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
23648 * FixedSizeTextBox: fixes class signature
23650 2006-01-30 Jackson Harper <jackson@ximian.com>
23652 * FixedSizeTextBox.cs: New internal class that represents a
23653 textBox that will not be scaled.
23656 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
23659 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
23661 * XplatUIX11.cs: Retrieve default screen number instead of
23662 assuming 0. Attempted fix for #77318
23664 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
23667 - GetWindowPos: When a window is parented by FosterParent, use
23668 the desktop instead of FosterParent as the base to get coordinates
23669 - CreateWindow: Don't make FosterParent the parent window for Popups
23670 if we don't want a taskbar entry, Popups automatically don't get one
23671 * Hwnd.cs: Need to call remove to actually remove the key from the
23674 2006-01-30 Mike Kestner <mkestner@novell.com>
23676 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
23678 2006-01-30 Jackson Harper <jackson@ximian.com>
23681 * TreeNode.cs: Raise events no matter how the treenode is
23682 checked. Patch by Don Edvalson.
23684 2006-01-30 Jackson Harper <jackson@ximian.com>
23686 * TreeNode.cs: Signature fix.
23688 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
23690 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
23692 2006-01-20 Mike Kestner <mkestner@novell.com>
23694 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
23695 event forwarding when menus are active.
23696 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
23697 Most of the patch is pdb's with a little rework.
23699 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23701 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
23702 Removed GetMenuDC and ReleaseMenuDC methods; replaced
23703 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
23704 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
23705 * InternalWindowManager.cs: Added use of PaintEventStart/End to
23706 handling of WM_NCPAINT message, now passing the PaintEventArgs to
23707 the PaintWindowDecorations method
23708 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
23709 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
23710 * MenuAPI.cs: Made tracker window invisible
23712 - Removed GetMenuDC and ReleaseMenuDC methods
23713 - Implemented the client=false path for PaintEventStart and
23716 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23718 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
23719 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
23722 - MaximizeBox, MinimizeBox: Recreate the handle when setting
23724 - CreateParams: Reworked the styles to match MS look'n'feel,
23725 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
23726 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
23728 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23730 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
23731 window is not mapped, since otherwise every form that's being
23732 created is considered minimized, which is wrong.
23733 * Form.cs: Catching the exception and returning our internal value
23736 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23738 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
23739 SetWindowMinMax() to have means to tell the driver about the minimum,
23740 maximum and maximized state window sizes. (Part of the fix for #76485)
23742 - Implemented tracking of minimum and maximum window size, now calling
23743 new SetWindowMinMax() driver method to tell the driver (Part of the
23745 - Finished handling of WM_GETMINMAXINFO method, now setting all values
23746 (Completes fix for #76485)
23747 - Calling new SetWindowMinMax driver method when the handle for a
23748 form is created, to make sure the driver knows about it even if
23749 the values have been set before the window was created
23750 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
23751 to avoid messing up our anchoring calculations (partial fix
23753 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
23755 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
23756 - Improved GetWindowState() to detect 'Minimized' state on Metacity
23757 (and presumably other freedesktop.org compliant WMs). Left the
23758 assumption unmapped=minimized, needed for SetVisible to work.
23759 - Now setting the window state when creating windows
23760 - Fixed SetVisible to consider/set the window state when mapping
23761 a Form. We cannot set the state before it's mapped, and we cannot
23762 use Form.WindowState once it's mapped (since it would ask the
23763 driver and get 'normal'. Therefore, we grab the state before
23764 mapping, map, and then set state.
23765 - Implmemented SetWindowMinMax method; Metacity does not seem to
23766 honor the ZoomHints, though.
23768 - Removed MINMAXINFO (moved to XplatUIStructs)
23769 - Added SetWindowMinMax stub (on Win32 the only way to set that
23770 information is in response to the WM_GETMINMAXINFO message, which
23771 is handled in Form.cs)
23772 - Added logic to SetVisible to set the proper window state when a
23773 form is made visible (fixes #75720)
23775 2006-01-26 Jackson Harper <jackson@ximian.com>
23777 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
23778 same way we handle them with Invoke.
23780 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
23783 - Added tracking of window state so CreateParams can return
23784 the appropriate style
23785 - Moved setting of WS_CAPTION style in CreateParams to allow
23786 styles without caption
23787 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
23788 control if the TextBox property is accessed. Fixes #77345
23790 - get_Created: now uses is_disposed and is_created to determine
23791 return value (suggested by Jackson)
23792 - CreateHandle: No longer exits if the handle is being recreated
23793 - RecreateHandle: If the handle is not yet created call the
23794 appropriate method to create either control or handle. If the
23795 control is already created CreateHandle will simply exit instead
23796 of just creating the handle
23797 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
23798 now SendMessage WM_DESTROY directly to the control when DestroyWindow
23801 - When DestroyWindow is called, instead of waiting for the
23802 DestroyNotification from X11, we directly post it to the WndProc
23803 and immediately dispose the hwnd object.
23804 Same applies to DestroyChildWindows, and this obsoletes the
23805 expose_pending tracking. Contrary to Win32 behaviour we destroy our
23806 child windows before our own, to avoid X11 errors.
23807 - Removed the direct sending of WM_PAINT on UpdateWindow
23809 - Reworked DoEvents and GetMessage to allow access to internal queue
23810 even when trying non-blocking access to the queue. Fixes #77335.
23811 Based on a patch suggestion by Don Edvalson. The new private
23812 GetMessage can now also be used as a backend for a PeekMessage
23814 * XplatUI.cs: Improved debug output for CreateWindow
23816 2006-01-25 Jackson Harper <jackson@ximian.com>
23818 * Help.cs: Allow param to be null. Patch by Don Edvalson.
23820 2006-01-24 Jackson Harper <jackson@ximian.com>
23822 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
23823 when we have a MaxDropItems lower then the selected index.
23825 2006-01-24 Jackson Harper <jackson@ximian.com>
23827 * Control.cs: Don't allow selection of non visible controls, allow
23828 selection of controls without parents.
23830 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
23832 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
23833 * DataGridDrawingLogic.cs: Add editing row only when is necessary
23835 2006-01-23 Jackson Harper <jackson@ximian.com>
23837 * UpDownBase.cs: Make the textbox handle all the selection and
23838 tabbing. This fixes tabing to updown controls.
23840 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
23842 * TextBoxBase.cs: fixes exception thown the object was null
23844 2006-01-23 Jackson Harper <jackson@ximian.com>
23846 * ButtonBase.cs: Just use the base CreateParams. They set
23847 visibility and enabled correctly.
23850 * MonthCalendar.cs: Lets let the base set as much of the
23851 createparams as possible so we don't have duplicate code all over
23854 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
23856 * ThemeGtk.cs: Added TrackBar and some experimental code to
23857 get double buffering back
23859 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23861 * DataGrid.cs: Allows row number set internally higher than the last
23862 when creating a new row. Restores the editing functionality.
23864 2006-01-20 Mike Kestner <mkestner@novell.com>
23866 * MimeIcon.cs: delay Image creation until the icons are accessed
23867 instead of creating 190 scaled images on GnomeHandler startup.
23869 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23871 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
23872 first call base before processing the event. Fixes #77279
23874 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23876 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
23877 that the stride for the GDI bitmap would match the stride of
23880 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
23882 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
23884 2006-01-19 Jackson Harper <jackson@ximian.com>
23886 * ComboBox.cs: Hookup the text controls keydown event so we get
23887 those when the text control has the focus.
23889 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23891 * Label.cs: Now using the base events instead of defining new ones;
23892 this allows us to just call the base properties without having to
23893 duplicate all base property logic
23895 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23897 * Label.cs: A label by default is not a tabstop (Fixes one of our
23898 failing nunit tests)
23900 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23902 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
23903 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
23905 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23907 * Cursor.cs: Reimplemented creating cursor bitmaps without using
23908 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
23911 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
23912 constructor creates images that can't be saved. Part of the fix
23914 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
23915 - SetWindowState: Switched ShowWindow flags (part of an upcoming
23916 bug fix for handling window state in forms properly)
23918 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23920 * ThemeGtk.cs: Simplify ScrollBar drawing
23922 2006-01-18 Jackson Harper <jackson@ximian.com>
23924 * Splitter.cs: Set the default dock style for the splitter control
23925 in the constructor.
23927 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23929 * ThemeGtk.cs: Corrected StateType and ShadowType for
23932 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23934 * Control.cs: Make use of Theme.DoubleBufferingSupported
23936 - Added drawing for flat style buttons
23937 - Added ScrollBar drawing
23939 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23941 * ThemeClearlooks.cs: Removed some unneeded code.
23942 * ThemeGtk.cs: First part of ThemeGtk enhancements.
23944 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23946 * LinkLabel.cs: We need to update the hover drawing when
23947 leaving the control as well.
23949 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
23951 * DataGrid.cs: Clicking on non empty areas in the columns
23952 area was giving an exception
23954 2006-01-17 Jackson Harper <jackson@ximian.com>
23956 * ThemeWin32Classic.cs:
23957 * ListView.cs: Do not draw/clip the headers when the header style
23960 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23962 * DataGrid.cs: Fixes 77260
23964 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23966 * DataGrid.cs: Clicking on a column on a empty grid was giving
23969 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23971 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
23972 or any keypress will crash the grid.
23974 2006-01-17 Mike Kestner <mkestner@novell.com>
23976 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
23977 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
23978 invisible/previously-visible items.
23981 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
23983 * ThemeClearlooks.cs:
23984 - Added CL_Draw_Button method; now other theme controls that are
23985 not derived from button or do not have a button can draw buttons
23987 - Updated ComboBox drawing
23988 - Beautified RadioButton drawing
23989 - Corrected drawing of bottom and left tabs
23990 - Beautified DateTimePicker and MonthCalendar
23991 - Added CPDrawButton and CPDrawRadioButton
23993 2006-01-16 Jackson Harper <jackson@ximian.com>
23995 * ComboBox.cs: Set the initial value of the scrollbar to the
23996 current index. Reduce the numbers of refreshs and IndexOfs called.
23998 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
24000 * FileDialog.cs: When the file listview is focused hitting the
24001 backspace key moves the fileview to the parent directory
24003 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24006 - Added RecreateHandle call when changing taskbar visibility to
24007 trigger reparenting in Win32 driver (Fixes #75719)
24008 - If a window has minimize or maximize buttons, it cannot have
24011 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
24012 the toplevel form with FosterParent (A toolwindow not on the
24013 taskbar) (Fixes #75719)
24014 - Made FosterParent a toolwindow
24016 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24018 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
24020 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24022 * ToolTip.cs: If SetToolTip is called from a control and the mouse
24023 is currently over that control, make sure that tooltip_window.Text
24026 2006-01-13 Mike Kestner <mkestner@novell.com>
24028 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
24030 2006-01-13 Jackson Harper <jackson@ximian.com>
24032 * TreeView.cs: On MS GetNodeAt never actually factors in the X
24033 value passed. Also redraw the selected node when we recieve
24034 focus, so tabbing between trees works correctly.
24036 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24038 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
24039 ~/.gconf/%gconf-tree.xml, so use
24040 .gconf/desktop/gnome/interface/%gconf.xml
24042 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24044 * TextControl.cs: Draw text in gray if control is disabled
24046 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24048 * TreeView.cs: Draw the focus rectangle outside the highlight, to
24049 make sure it's always visible. Fixes #76680.
24051 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24053 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
24055 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
24057 * PageSetupDialog.cs: Added.
24058 * PrintDialog.cs: Attributes.
24059 * PrintPreviewControl.cs: Updates.
24060 * PrintPreviewDialog.cs: Updates.
24062 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24064 * Control.cs: Undid my selection check fix, since it's not needed
24066 - Now considering the presence of hscroll/vscroll when sizing
24067 vscroll/hscroll respectively. Fixed bug #77077
24068 - Added Left/Up/Down/Right to IsInputKey list to prevent
24069 ContainerControl from stealing them. This fixes what I broke
24070 with my last checkin.
24072 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24074 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
24075 I finally understand how the property can be set without a setter :-)
24077 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24080 - Switched RunLoop to use static Message.Create to create a
24082 - Added PreProcessMessage call in runloop for keyboard events; this
24083 is part of the fix for #77219, I overlooked this originally in the
24084 MSDN doc for PreProcessMessage
24086 - Removed call to PreProcessMessage from handling of keyboard
24087 messages; it's supposed to be done in the message pump
24088 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
24089 per MSDN documentation.
24090 - IsInputChar: All chars are input chars by default; removed the
24091 parent calling chain, MS does not document that
24092 - PreProcessMessage: If IsInputChar is true, we want to return false
24093 to allow dispatching of the message
24094 - When selecting the next control, now also check that we're not
24095 selecting ourselves again and therefore return a false positive.
24097 - Tried to match return values for IsInputKey and ProcessDialogKey
24098 to what MS returns; moved processing of our special keys outside
24099 ProcessDialogKey since MS does not seem to return true on those.
24100 - Moved code that previously was in ProcessDialogKey into new private
24101 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
24102 - Reworked handling of WM_CHAR to not have to duplicate code from
24103 Control.cs anymore, instead we simply call down to base.
24105 2006-01-12 Jackson Harper <jackson@ximian.com>
24107 * ComboBox.cs: We always need to refresh the text area when
24108 EndUpdate is called. Fixes the combobox in the file dialog.
24109 * Control.cs: Don't create the creator_thread until the controls
24110 handle is created. Also in InvokeRequired we check if the
24111 creator_thread is null. This gives the effect of InvokeRequired
24112 returning true if the controls handle is not created yet, and
24115 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24118 - Added StartLoop() driver method. This is used to allow drivers to
24119 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
24120 loop for a particular thread
24121 - Added EndLoop() driver method. This is called once the message
24122 pump for the thread is shut down
24123 - Added SupportsTransparency method to allow the driver to indicate
24124 opacity support for windows
24126 - Removed TODO attribute, completed AllowTransparency property
24127 - Added documented logic to Opacity
24128 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
24129 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
24130 versions of CompatibleTextRendering
24131 * X11Structs.cs: Added opacity atom to our atom enumeration
24132 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
24133 of a form might be set before it's reparented by the WM, and we need
24134 the opacity value without calling up to Form)
24135 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
24136 SupportsTransparency() driver methods
24137 * Application.cs: Now calling StartLoop and EndLoop driver methods
24139 - Added opacity atom registration
24140 - Added StartLoop()/EndLoop() methods. They're empty right now but
24141 will need to get implemented when we switch to a per-thread queue
24142 - Implemented SupportsTransparency() method
24143 - Implemented SetWindowTransparency() method
24144 - Added support for setting the opacity value when a window is
24145 reparented (since the opacity needs to be set on the WM frame)
24146 * XplatUIOSX.cs, XplatUIWin32.cs:
24147 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
24149 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24151 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
24153 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24155 * FileDialog.cs: Added ToolTip for MWFFileView
24156 * MimeIcon.cs: Rewrote GnomeHandler.
24157 - Get currently used gnome icon theme from
24158 ($HOME)/.gconf/%gconf-tree.xml
24159 - Make use of inherited icon themes
24160 - Support SVG icon themes like Tango via librsvg
24162 2006-01-12 Miguel de Icaza <miguel@novell.com>
24164 Revert's Jackson's revert which broke 2.0 builds. Fix both
24167 * Application.cs: Move the use_compatible_text_rendering outside
24168 the NET_2_0 define. If we ever need to use the
24169 use_compatible_text_rendering on the individual controls they will
24170 access the variable from the common shared code paths.
24172 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24175 - Added more granular debug options
24176 - Added method to print both window text and id
24177 - Switched debug output to use new Window() debug method
24178 - Added IsEnabled() driver method
24179 - Added EnableWindow() driver method
24181 - Removed end_modal; no longer needed, new loop handles termination
24182 via 'closing' variable
24183 - If form is modal, setting DialogResult will now initiate loop
24184 termination via 'closing' variable
24185 - Added support for is_enabled/WS_DISABLED to CreateParams
24186 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
24188 - Removed code that's now in RunLoop from ShowDialog()
24189 - Added various documented sanity checks to ShowDialog()
24190 - Added handling of WM_DESTROY message; we set 'closing' on getting
24191 the message to indicate the message pump to terminate
24192 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
24193 send by the Application.ExitThread method. (We send the message
24194 to destroy the window after all other events have been
24195 processed through the queue, instead of destroying the handle
24197 - Moved code from Close() method to WM_CLOSE handler; added logic
24198 to only send close-related events if the form is not displayed
24200 * Splitter.cs (..ctor): Fixed typo in resource name
24202 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
24204 - set_Cursor: Now only setting calling into XplatUI if the handle for
24205 the control is already created; this avoids implict handle creation
24206 or crashes if it's not created
24207 - set_Enabled: Now setting the enabled state via the new driver method
24208 instead of just tracking it
24209 - CreateParams: Added logic to set WS_DISABLED based on enabled state
24210 - CreateControl: Reordered event firing and method calls to more
24211 closely fire events in the order MS does. Now setting the
24212 enabled state in the driver when creating the control.
24213 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
24215 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
24216 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
24217 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
24219 - Added tracking of window enabled state (get_Enabled/set_Enabled)
24220 - Added EnabledHwnd property to easily allow a driver to find the
24221 handle of the first enabled window in the parent chain (this is
24222 used by drivers to pass up input events of disabled windows)
24223 * XplatUIDriver.cs: Added IsEnabled() method
24225 - Removed crude and obsolete exiting tracking variable
24226 - Removed internal ModalRun(); replaced by RunLoop()
24227 - Implemented private CloseForms() method to allow closing all
24228 windows owned by a particular (or all) threads
24229 - Exit() now properly closes all windows without forcing the message
24231 - Removed obsolete InternalExit() method
24232 - Changed Run() methods to use new RunLoop() message pump
24233 - Implemented new RunLoop() method for both modal and non-modal forms
24235 - get_CreateParams: Added setting of WS_DISABLED
24236 - Simplified ShowDialog(); now all the work is done in RunLoop(),
24237 invoked via Form.ShowDialog()
24238 * NativeWindow.cs: We don't remove the window from the collection when
24239 the handle is destroyed; there might still be messages for it in the
24240 queue (mainly the resulting WM_DESTROY); instead it will be removed
24241 when Control calls InvalidateHandle in the WM_DESTROY handler
24243 - CreateWindow: Added logic to handle the WS_DISABLED window style
24244 - EnableWindow: Implemented based on Hwnd.Enabled
24245 - GetMessage: Reset PostQuitState so the method can be called again
24246 - Implemented support for disabled windows (passing messages to the
24247 first enabled parent) in handling all input messages
24248 - Added optimizations for handling Expose events
24249 - Implemeted new driver method IsEnabled()
24250 - Now always resetting paint pending tracking vars when we start paint
24251 - Re-implemented UpdateWindow via just sending a WM_PAINT message
24252 * XplatUIOSX.cs: Added IsEnabled method stub
24253 * XplatUIWin32.cs: Implemented new IsEnabled() method
24255 2006-01-11 Jackson Harper <jackson@ximian.com>
24257 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24258 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
24259 variables a little.
24260 * ColorDialog.cs: Clear out the old form before adding the new
24263 2006-01-11 Jackson Harper <jackson@ximian.com>
24265 * X11Dnd.cs: Make sure to add all the text formats when adding
24266 strings to the data object.
24267 * TreeNodeCollection.cs: When adding to a sorted tree we need to
24268 do some redrawing too. Also change the UpdateNode to an
24269 UpdateBelow so the newly added node gets painted.
24271 2006-01-11 Miguel de Icaza <miguel@novell.com>
24273 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24274 LinkLabel.cs, PropertyGrid.cs: Implement the
24275 UseCompatibleTextRendering property for 2.x
24277 * Application.cs (SetCompatibleTextRenderingDefault): Add.
24279 2006-01-11 Jackson Harper <jackson@ximian.com>
24281 * TreeView.cs: Use the property for setting the selected node so
24282 the correct events get raised.
24283 * TreeNode.cs: Update the tree when the fore/back colours of a
24286 2006-01-10 Jackson Harper <jackson@ximian.com>
24288 * TreeView.cs: Allow setting SelectedNode to null.
24290 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24292 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
24294 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24296 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
24298 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24300 * PrintDialog.cs: Added attributes and set default property values.
24302 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24304 * PrintControllerWithStatusDialog.cs:
24305 Added PrintControllerWithStatusDialog.
24307 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24309 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24310 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
24312 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24314 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
24316 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24318 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
24319 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
24321 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24323 * MimeIcon.cs: Added internal class SVGUtil.
24325 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24327 * FileDialog.cs: Don't crash if there are two files with the
24328 same name but different locations.
24330 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
24332 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
24333 dates across multiple month grids. Used to not highlight entire
24334 month, but does now.
24336 2006-01-06 Jackson Harper <jackson@ximian.com>
24338 * MonthCalendar.cs: Removed DoEvents call to prevent a running
24339 message loop. Change timer intervals to numbers that seem more
24342 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
24344 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
24345 object for location info since screen object is now implemented.
24347 2006-01-05 Jackson Harper <jackson@ximian.com>
24349 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
24350 * AsyncMethodResult.cs: We no longer use a WeakReference for the
24351 AsyncMethodResult, this is because we ALWAYS want the
24352 ManualResetEvent to get set.
24353 * Control.cs: When disposing use an async invoke to call shutdown
24354 code, so that thigns don't block on the finalizer thread. Also
24355 check if we even have a message loop before trying to send
24356 messages, if we don't then don't bother sending messages.
24357 - No more weak references for async methods
24358 * XplatUIDriver.cs: No more weak references for async methods.
24360 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24362 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
24363 returns two FontFamily with the same name
24365 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24367 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
24368 drawing disabled text. Instead using the ColorGrayText color
24370 2006-01-04 Jackson Harper <jackson@ximian.com>
24372 * TreeNode.cs: redraw the node when its image index is changed.
24374 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24376 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
24377 time I checked there are no others like it.
24379 2006-01-04 Jackson Harper <jackson@ximian.com>
24381 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
24382 this gives the behavoir I was looking for.
24383 * Control.cs: Special case Invoking EventHandlers, this matches MS
24384 and fixes part of bug #76326.
24386 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24388 * ThemeClearlooks.cs, FileDialog.cs:
24389 - Reflect the latest Theme class changes
24390 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
24393 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24395 * Theme.cs: Cache UI resource images and resize them if needed
24397 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24399 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
24400 is called. This fixes the crash in Nexxia when setting the font
24401 attributes in the chat. [However, RTF needs a look-over to make sure
24402 that all SelectionXXX methods handle the special case that selection
24403 is empty and therefore the change must be applied to all text starting
24404 at the cursor/selection start]
24406 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24408 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24409 XplatUIOSX.cs: Added SendMessage and PostMessage methods
24410 * X11Keyboard.cs: Switched to new way of calling PostMessage
24412 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24414 * Theme.cs: Added theme interface for images to allow the theme to
24415 control what images are used for things like FileDialog, MessageBox
24417 * MessageBox.cs: Now uses the new Theme icon/image interfaces
24419 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
24422 - Removed some dead code
24423 - Opening a recently used file does work now
24424 - Small UI enhancements
24427 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24429 * FileDialog.cs: Forgot too add __MonoCS__
24431 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24433 * FileDialog.cs: We are able to read recently used files now let's
24434 go on and write them.
24436 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
24438 * FileDialog.cs: Breathe some life into "last open"/"recently used"
24440 * MimeIcon.cs: Do a check for the top level media type also
24442 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24444 * ThemeClearlooks.cs:
24445 - Added CPDrawStringDisabled
24446 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
24447 some chars if the text doesn't fit into text_rect
24448 - DrawListViewItem: If View = View.LargeIcon center the image;
24449 rewrote the drawing of ListViewItem.Text if View =
24452 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24454 * MimeIcon.cs: Use default KDE icon theme if there is no
24455 "48x48" directory for the current icon theme, fixes #77114
24456 * Mime.cs: Disable not working and actually not used code.
24457 * ThemeWin32Classic.cs:
24458 - Replace "new SolidBrush" in GetControlBackBrush and
24459 GetControlForeBrush with ResPool.GetSolidBrush
24460 - Changed DrawListViewItem from private to protected virtual
24462 - Added form.MaximizeBox = true
24463 - Don't throw an exception if there is a broken symbolic link
24465 2005-12-23 Jackson Harper <jackson@ximian.com>
24467 * TabControl.cs: Give the panels focus, keyboard navigation is
24468 fixed so this works correctly now.
24469 - We need these key events also.
24470 * ToolBar.cs: Remove some of the poor mans double buffering.
24472 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
24474 * ComboBox.cs: The internal TextBox now returns the focus.
24476 2005-12-23 Jackson Harper <jackson@ximian.com>
24478 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
24480 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24482 * Control.cs: Removed debug code
24483 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24486 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24488 * Control.cs: When creating the control, update the Z-order after
24489 all it's children are created, too. (Fixes nexxia not showing
24492 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24494 * Control.cs: Do not update the anchoring distances if layout is
24495 suspended, instead do it once layout is resumed
24497 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24500 - After many hours of debugging, for both Jackson and
24501 myself, it turns out that it helps to set the parent of a control
24502 if you want to actually see it onscreen. In the spirit of that
24503 discovery, we're now setting the parent of the control and
24504 it's children when the control's handle is created. This fix
24505 will make Lutz Roeder's Reflector run happily.
24506 - now just creating the handle instead of the whole control when
24507 getting a graphics context for the control.
24509 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24511 * ScrollableControl.cs: When calculating the canvas, don't consider
24512 the scrollbar widths. Instead, predict if horizontal scrollbar
24513 will affect canvas when deciding on vertical display and vice versa.
24515 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24517 * RichTextBox.cs: Set default RTF font for documents that don't
24518 have a font table (Fixes #77076)
24520 2005-12-22 Jackson Harper <jackson@ximian.com>
24522 * TextBoxBase.cs: It's difficult to do, but you can have an empty
24523 clipboard. This prevents a NullRef in that case.
24524 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24525 clipboard. PRIMARY is for the currently selected text only. (We
24526 should implement PRIMARY at some point.
24528 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24530 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24531 a Unicode function with a structure that was defined in Ansi way.
24534 2005-12-21 Jackson Harper <jackson@ximian.com>
24536 * StatusBar.cs: Statusbar handles its fore/back colours on it's
24537 on. Because thats how it rolls. (and this avoids it using ambient
24539 * ThemeWin32Classic.cs: Use the proper back color for filling.
24540 * Menu.cs: Use the system menu bar color for drawing menu
24541 bars. Using the window back color will bring ambient colours into
24544 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
24546 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24547 Bitmaps were created and not disposed.
24549 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24551 * Control.cs (CreateControl): Don't do anything if the control is
24552 already created, otherwise we'd fire the OnCreated event more than
24555 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24557 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24558 will always match. Instead return -1. Fixes #76464.
24560 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24562 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24563 neither the beginning nor the end of the line (Fixes bug #76479)
24565 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24568 - ControlNativeWindow.ControlFromHandle(): Now handling situation
24569 where handle is invalid
24570 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24571 instead of slower linear search
24572 * NativeWindow.cs: Don't remove the window from the hashtable until
24573 after the driver has destroyed it (since the driver might use
24574 Control.FromHandle to lookup the control object
24575 * Hwnd.cs: Added DestroyPending property to track if a window is
24576 already destroyed as far as the driver is concerned and only hasn't
24577 yet notified the control
24579 - Activate(): Check if the window is still valid before using the
24581 - Implemented DestroyChildWindow() method to mark child windows as
24582 destroyed when a window is destroyed. This prevents situations
24583 where we might call an X method based on queued events for a
24584 window that already has been destroyed but we haven't yet pulled
24585 the destroy method from the queue.
24586 - Added a call to the new DestroyChildWindow() method to the drivers
24587 DestroyWindow code. Also now marking the destroyed window itself
24590 2005-12-20 Jackson Harper <jackson@ximian.com>
24593 * StatusBarPanel.cs: Don't calculate panel sizes on draw
24594 anymore. Just do them when needed, also track the rects of panels
24595 so that we can optimize refreshing more in the future.
24597 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
24599 * ColorDialog.cs: Fixed focus drawing in small color controls
24601 2005-12-19 Jackson Harper <jackson@ximian.com>
24603 * InternalWindowManager.cs:
24604 * MdiWindowManager.cs: Cleanup some coordinate system changes so
24605 moving windows works properly.
24607 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
24610 - Removed call to InitLayout() from SetBoundsCore(); doc says
24611 it's only called when a control is added to a container
24612 - Split InitLayout logic, moved to separate UpdateDistances() method
24613 since we need to perform those calculations more often than just
24614 when adding the control to a container. (Needed to fix #77022)
24615 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
24616 - Reduced the OnBindingContextChanged events count, don't send them
24617 unless the control is created, we still aren't totally matching
24618 MS, but I can't quite figure out some of their rules
24620 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24622 * ThemeClearlooks.cs: Corrected distance between ProgressBar
24625 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24627 * ThemeClearlooks.cs:
24628 - Updated ProgressBar drawing
24629 - Corrected drawing of ScrollBars and scroll buttons
24630 - Some temporary fixes for minor pixel artefacts
24632 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
24635 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
24636 cause events to be sent in the same order as MS does.
24637 - Added ChangeParent() method to trigger various OnXXXChanged events
24638 that need to be fired when a parent changes (This is a reworking
24639 of the patch from r54254, with the X11 errors fixed)
24640 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
24641 since on MS we get OnLayoutChanged events when calling Clear()
24642 - Changed Enabled property to consider parent state as well, if a
24643 parent is not enabled, the control will not be either
24644 - Changed Parent property to simply call Controls.Add() since that
24645 now does all the work required, this way we avoid code duplication
24646 - Threw in a few OnBindingsContextChanged calls to try and match
24647 when MS sends them. We seem to send a few too many, though.
24648 - Added call to CreateControl when adding the control to a parent.
24649 We were never calling CreateControl. Still needs some work, in
24650 some places we treat HandleCreated and ControlCreated as equal,
24652 - Removed obsolete commented out code from UpdateZOrder()
24654 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24656 * ThemeClearlooks.cs: Updated TrackBar drawing.
24658 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
24660 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
24662 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
24664 * FileDialog.cs: Add the Help button and the open readonly
24665 checkbox only if needed
24667 2005-12-16 Jackson Harper <jackson@ximian.com>
24669 * Control.cs: Make sure we have an active menu before trying to
24670 process commands on it. Prevents menu-less forms from crashing
24671 when Alt is pressed.
24672 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
24674 * RichTextBox.cs: Expand statement to help out gmcs and fix the
24677 2005-12-16 Jackson Harper <jackson@ximian.com>
24679 * InternalWindowManager.cs: Don't translate tool windows screen
24680 coordinates. This fixes windows 'bouncing' around when being moved.
24682 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
24685 - MaxLength now treats 2^31-1 equal to unlimited length (this is
24686 not quite MS compatible, MS uses that number only for single line
24687 and 2^32-1 for multi-line, but I figure it won't hurt keeping
24689 - Now enforcing the MaxLength limit when entering characters
24690 - Added argument to internal Paste() method to track if it's called
24691 from programatically or via keyboard, since keyboard driven pastes
24692 need to enforce max-length
24693 - Added logic to Paste to only paste as many chars as MaxLength
24695 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
24697 - Added Length property to return number of characters in document
24698 - Added private CharCount property which only tracks actual chars
24699 in the document (no linefeeds) and fires event when CharCount
24701 - Added tracking of character count to all methods that alter it
24702 - Added LengthChanged event to allow applications to subscribe
24703 to any changes to the document
24705 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
24708 - Removed local password_char field (moved to TextBoxBase)
24709 - Now setting the document's password var when password is
24712 - Added password_char field (needed here so MultiLine can
24714 - Added logic to MultiLine property setter to set the document's
24715 variable when password display is allowed
24716 - Removed debug code and made some debug code conditional
24718 - Added RecalculatePasswordLine() method to handle special password
24720 - Added PasswordChar property, also added related tracking vars
24721 - Draw() method now uses local text var for grabbing text to draw,
24722 this var is set to line.text unless we're doing password display,
24723 then it is set to the pre-generated all-password-chars line
24724 - Added calling RecalculatePasswordLine() method for password lines
24726 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
24729 - Added Reparented property to allow tracking of Window Manager
24730 reparenting actions (which affect X/Y calculations of toplevel
24732 - Made ToString() print window handles in hex
24734 - AddConfigureNotify(): Now uses reparented state off Hwnd to
24735 determine if X/Y needs offsetting
24736 - AddConfigureNotify(): Fixed offset calculations
24737 - Now adds ReparentNotify messages into the queue
24738 - Now processes ReparentNotify messages and causes a
24739 WM_WINDOWPOSCHANGED message to be sent upstream if a window
24740 is reparented (as most likely it's X/Y coordinates are changed
24743 2005-12-14 Jackson Harper <jackson@ximian.com>
24745 * XplatUIX11.cs: Tool windows still need to respek focus.
24747 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
24749 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
24750 have a working release
24752 2005-12-13 Jackson Harper <jackson@ximian.com>
24754 * Form.cs: Update styles after setting the border style regardless
24755 of whether or not the window is using a window manager.
24757 2005-12-13 Jackson Harper <jackson@ximian.com>
24759 * Form.cs: We now hook into an internal window manager instead of just an
24760 MDI subsystem, this is so we can have properly behaving tool windows.
24761 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
24762 * InternalWindowManager.cs: New internal class that acts as a
24763 window manager for tool windows and as a base for mdi windows.
24764 * MdiWindowManager.cs: New class that acts as a window manager for
24767 2005-12-12 Jackson Harper <jackson@ximian.com>
24769 * Control.cs: Updates so we match behavoir for for implicit
24770 controls. Fixes explosions in MDI.
24772 2005-12-12 Jackson Harper <jackson@ximian.com>
24774 * Control.cs: Implement Invalidate (Region).
24776 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
24779 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
24780 the same events as MS does. MS fires events for each property
24781 except, for unknown reasons, Cursor, when the control is reparented.
24782 I can't seem to totally match add/remove since MS also fires some
24783 VisibleChanged events, which makes no sense. Consolidated the
24784 parenting code into a separate method so it can be called from
24785 both Add and Remove. set_Parent no longer needs any special logic
24786 as it calls the parent's add method which implicitly fires
24788 - Removed some obsolete code and debug output
24789 - Enabled state is inherited from parents, if this is enabled
24791 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
24793 * Form.cs: Removed commented out code
24795 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
24798 - Added internal version of Invoke, with additional argument
24799 indicating if we're calling it from a Dispose() handler. That
24800 way we can avoid BeginInvoke throwing an exception if we're
24801 calling for an already destroyed window.
24802 - Added a dispose argument to BeginInvokeInternal, and made the
24803 check if a valid window handle chain exists conditional on
24804 it not being a dispose call
24805 - Removed code in DestroyHandle to destroy our children. Since we
24806 now handle the WM_DESTROY message we will catch all our children
24808 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
24810 - Added a field to track the application context of the form.
24811 - No need to set closing variable as response to WM_CLOSE, instead
24812 we destroy the window. We also call PostQuitMessage if the form
24813 has an application context (which makes it the main app form,
24814 which, when closed terminates the app)
24816 - Dropped Exit() method, it's naming was confusing
24817 - Added PostQuitMessage() which causes GetMessage to return false
24818 once the message queue is empty
24819 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
24821 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
24822 no longer a valid XplatUI method, but left it in since it's used
24823 internally. Added empty PostQuitMessage() method.
24824 * MenuAPI.cs: Replaced call to Exit() with call to
24825 PostQuitMessage, even though this is probably no longer needed.
24826 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
24827 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
24829 - Replaced call to XplatUI.Exit() with PostQuitMessage()
24830 - Removed old debug code that would call XplatUI for exception
24831 display, enabled standard exception handling (Still not enabled
24832 though, until NativeWindow's ExternalExceptionHandler define
24835 - Added internal method to allow control to update NativeWindow
24836 after a window has been destroyed
24837 - Added handling of already destroyed windows when calling i
24839 - Added removal of handle from list on ReleaseHandle
24841 - Dropped GetMessageResult var and related code
24842 - Added PostQuitState to field to track if PostQuitMessage has been
24844 - Dropped Exit() method
24845 - Added PostQuitMessage() method
24846 - GetMessage now will return false if PostQuitState is set and no
24847 more messages are in the queue.
24848 - Expose handler will no longer generate WM_PAINT messages if we are
24849 in PostQuitState since it's very likely any windows have already
24850 been destroyed, and since Hwnd won't get updated until we have
24851 processed the DestroyNotify we'd be causing X errors.
24853 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24855 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
24856 Thanks to Mike for pointing out the err of my ways.
24858 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24860 * Control.cs(PreProcessMessage): Moved menu handling back, but
24861 after all other key handling, to match MS (who handles Menu in
24863 * Menu.cs (WndProc): Removed my brainfart
24865 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24867 * Control.cs(PreProcessMessage): Removed special menu handling
24868 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
24870 2005-12-07 Mike Kestner <mkestner@novell.com>
24872 * Control.cs : special case SYSKEYUP so that we can adjust keynav
24873 state according in tracker.
24874 * Menu.cs : promote tracker field to base class and provide a tracker
24875 lookup capability. Add/Remove shortcuts dynamically if the top menu
24876 has a tracker. Unparent items that are removed from the collection.
24877 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
24878 * Theme*.cs: add always_show_hotkeys field to support configurability
24879 of mnemonic display. win32 doesn't show mnemonics until Alt is
24882 2005-12-07 Jackson Harper <jackson@ximian.com>
24884 * MdiChildContext.cs: Use Control.ResetCursor.
24885 * Control.cs: ResetCursor needs to set the property so that the
24886 correct XplatUI call gets made.
24888 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24890 * Control.cs: More fixes to make our key events match MS. We
24891 were not setting the modifier state on KeyData, and we were
24892 not generating any events when Alt was pressed with a key
24893 since handling of WM_SYSxxx was missing for the OnKey methods.
24895 2005-12-07 Jackson Harper <jackson@ximian.com>
24897 * MdiChildContext.cs: reenable the sizing code.
24898 - When the mouse leaves a window reset its cursor.
24900 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24902 * ThemeClearlooks.cs: Reflect latest Hwnd changes
24904 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24906 * Hwnd.cs: Now using the theme 3d bordersize to calculate
24907 widths of Fixed3D borders
24909 2005-12-07 Jackson Harper <jackson@ximian.com>
24911 * MdiClient.cs: Fix warnings. Earn Mike's love.
24913 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24915 * ThemeClearlooks.cs:
24916 - Adjusted mouse over button color
24917 - Added first parts of CheckBox drawing
24918 - Added correct color for selected text background
24919 - Fixed ComboBox drawing
24920 - Added CPDrawBorder3D and CPDrawBorder
24922 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24924 * XplatUIX11.cs: Added call to XBell for AudibleAlert
24926 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24928 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24929 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
24930 alert users via sound. We could add an enum arg with different
24931 types of alerts in the future
24933 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24935 * Control.cs: Fix behaviour problems pointed out by Mike
24937 2005-12-05 Mike Kestner <mkestner@novell.com>
24939 * StatusBarPanel.cs: add Invalidate method and hook it into all the
24940 prop setters. Calls parent.Refresh for now, but could be maybe be
24941 optimized with an internal method on StatusBar at some point.
24944 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
24946 * RichTextBox.cs: Implemented get_SelectionColor
24948 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
24950 * ThemeClearlooks.cs:
24951 - Removed dead code
24952 - Draw black button border only if button is Form.AcceptButton
24953 - Draw correct button color for pressed RadioButton if the mouse
24954 has entered the button
24955 - Updated ProgressBar drawing!
24956 - Updated CPDrawSizeGrip drawing
24957 - Updated StatusBarPanel drawing
24959 2005-12-05 Mike Kestner <mkestner@novell.com>
24961 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
24962 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
24964 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
24966 * ThemeClearlooks.cs: Initial check-in, activate with
24967 export MONO_THEME=clearlooks
24968 * ThemeEngine.cs: Added ThemeClearlooks
24970 2005-12-03 Mike Kestner <mkestner@novell.com>
24972 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
24975 2005-12-02 Jackson Harper <jackson@ximian.com>
24977 * Form.cs: If the child form has no menu the default main menu is
24978 used as the active menu.
24980 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24982 * ListBox.cs: Check if any items exist before trying to resolve
24983 coordinates into items
24985 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24987 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
24988 as the second color for the background hatch
24990 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24992 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
24993 * RichTextBox.cs: FormatText position arguments are 1-based, now making
24994 sure that what we pass to FormatText is always 1-based. Fixes #76885
24996 2005-11-29 Miguel de Icaza <miguel@novell.com>
24998 * NumericUpDown.cs (EndInit): When we are done initializing,
24999 reflect any updates on the UI.
25001 2005-12-02 Jackson Harper <jackson@ximian.com>
25003 * ImplicitHScrollBar.cs:
25004 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
25005 their container controls.
25006 * TreeView.cs: Use the new implicit scrollbars.
25008 2005-12-02 Jackson Harper <jackson@ximian.com>
25010 * TreeView.cs: Make top_node internal so the TreeNodeCollections
25012 * TreeNodeCollection.cs: If we remove the topnode we need to
25013 update topnode to the next node in line.
25014 - When clearing nodes go through the same process as removing
25015 them, so they get depareneted and checked if they are top node.
25017 2005-12-01 Jackson Harper <jackson@ximian.com>
25019 * TreeView.cs: When imagelists are used the image area is
25020 selectable as well as the text.
25021 - If there are no selected nodes select the first one.
25022 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
25023 so don't do it more then we need to.
25025 2005-12-01 Jackson Harper <jackson@ximian.com>
25027 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
25028 that arrows can be scaled.
25030 2005-12-01 Jackson Harper <jackson@ximian.com>
25032 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
25033 fail. Patch by Dieter Bremes
25035 2005-11-30 Jackson Harper <jackson@ximian.com>
25037 * Form.cs: Property is 2.0 only
25038 * PrintDialog.cs: Signature fix.
25040 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25043 - No longer artificially moves text 2 pixels down (now that we have
25044 borders this is no longer needed)
25045 - Added calcs for left, hanging and right indent
25047 2005-11-23 Mike Kestner <mkestner@novell.com>
25049 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
25051 2005-11-30 Jackson Harper <jackson@ximian.com>
25053 * MdiChildContext.cs: Set the cloned menus forms, as these don't
25054 get cloned as part of CloneMenu ().
25055 * Menu.cs: Make sure the parent of the items get set correctly
25056 when they are added. And the owners are notified of the changes.
25057 * Form.cs: Create an ActiveMenu property, so that when MDI is used
25058 we can change the menu being displayed/handled by the form without
25059 changing the menu assosciated with the form.
25060 - Don't let Mdi children draw/handle menus.
25062 2005-11-30 Jackson Harper <jackson@ximian.com>
25064 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
25065 a MenuChanged event. Just to make the API a little more
25068 * MenuItem.cs: Use the new OnMenuChanged
25069 * MdiChildContext.cs: Handle menu merging.
25070 * Form.cs: Implement MergedMenu.
25072 2005-11-30 Jackson Harper <jackson@ximian.com>
25074 * Menu.cs: We were misusing Add. Add goes behind the specified
25075 index according to the docs, and does not replace the specified
25076 index. So I added an Insert method.
25078 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25080 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
25081 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
25083 * RichTextBox.cs: Added calls to base for DnD events
25085 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
25088 - Fixed drag-selection related crash; style fixes
25089 - Implemented undo class
25090 o Implemented method to capture document state for specified
25091 range in document tree
25092 o Implemented method to restore captured document state
25093 o Implemented cursor tracking
25094 o Implemented basic undo stack
25095 - Added undo cursor tracking to methods altering cursor location
25096 - Added undo tracking to selection deletion (still missing
25097 other text-altering hookups)
25099 - Added SelectionLength property
25100 - Implemented CanPaste()
25101 - Implemented Paste()
25102 - Added missing protected methods
25103 - Fixed RTF->Document conversion; now uses font index 0 and color
25104 index 0 as the default font for the parsed text
25105 - Fixed RTF<->Document font size translation
25106 - Fixed RTF generation, now properly handles cross-tag boundaries
25107 for single line selection
25108 - No longer always appends blank line to generated RTF
25110 - Added missing attributes
25111 - Hooked up undo-related methods
25113 - Implemented Copy()
25114 - Implemented Paste()
25115 - Implemented Cut()
25116 - Fixed caret mis-behaviour on backspace across line-boundaries
25118 2005-11-29 Jackson Harper <jackson@ximian.com>
25120 * MdiClient.cs: Add a method for activating mdi children. Very
25121 basic right now. I imagine someday it might need more girth.
25122 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
25123 children windows names are added to the menu item.
25124 * ThemeWin32Classic.cs: Draw the arrow if the item is an
25125 mdilist. This happens regardless of whether or not there are any
25126 mdi windows to see in the list, and according to my tests happens
25127 before the items are even added. Also happens if there isn't even
25128 an mdi client to get windows from.
25130 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
25132 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
25133 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
25135 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
25137 * DataGridTableStyle.cs:
25138 - Create always the styles for the missing columns even if they are
25139 provided by the user (not default table style)
25142 - Fixes SetDataBinding (always re-attach source)
25143 - Fixes SetNewDataSource (only clear styles if they are not for
25145 - Expands OnTableStylesCollectionChanged to handle style refresh
25146 and remove properly
25148 2005-11-29 Jackson Harper <jackson@ximian.com>
25150 * FileDialog.cs: Implement missing bits, remove some dead
25152 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
25153 creation of the panel so that the options set on the dialog are
25154 seen when the panel is created.
25155 * TreeView.cs: raise a click when items are clicked.
25157 2005-11-29 Jackson Harper <jackson@ximian.com>
25159 * MdiClient.cs: Pass some signature methods through to base.
25161 2005-11-28 Jackson Harper <jackson@ximian.com>
25163 * ListView.cs: Raise the click event when items are clicked.
25165 2005-11-28 Jackson Harper <jackson@ximian.com>
25167 * MdiClient.cs: Make this algorithm even more beautiful. And fix
25170 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
25172 * ThemeNice.cs: - Removed 1 pixel bitmaps
25173 - Use SmoothingMode.AntiAlias where it makes sense
25174 (ScrollButton arrow for example)
25175 - Enhanced Button focus drawing
25176 - Fixed ComboBox drawing (no artefacts anymore, focus
25177 rectangle is back again, reduced size of ComboButton, etc.)
25178 - Fixed RadioButton focus drawing for Appearence.Button
25179 - Slight ScrollButton redesign
25180 - Some LinearGradientBrush size fixes
25181 - GroupBoxes have now rounded edges
25182 - Fixed StatusBar drawing
25184 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
25186 * ThemeNice.cs: - Remove dead code
25187 - use correct background colors for menus, etc.
25188 - Fake pixel drawing with 1 pixel bitmaps
25190 2005-11-24 Jackson Harper <jackson@ximian.com>
25192 * MdiClient.cs: Size the scrollbars when resizing the window.
25193 - Resize the maximized windows when the client is resized
25194 * Form.cs: Make the child context available
25196 2005-11-23 Jackson Harper <jackson@ximian.com>
25198 * MdiChildContext.cs: Don't size windows if they are maximized.
25200 2005-11-23 Mike Kestner <mkestner@novell.com>
25202 * ContextMenu.cs: use MenuTracker.
25203 * Control.cs: remove menu handle usage.
25204 * Form.cs: remove menu handle usage.
25205 * Hwnd.cs: remove menu handle usage.
25206 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
25207 motion and clicks to the new Tracker handlers.
25208 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
25210 * MenuAPI.cs: refactored to combine popup and menubar event handling.
25211 Killed the MENU and MENUITEM data types and associated collections
25212 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
25213 MenuTracker class that exposes the leftovers from the old MenuAPI
25214 static methods. Restructured Capture handling so that only one grab is
25215 done for the entire menu hierarchy instead of handing off grabs to
25216 submenus. Tracker now has an invisible control to Capture when active.
25217 * MenuItem.cs: add sizing accessors, kill Create
25219 * Theme.cs: remove menu handle and MENU(ITEM) usage.
25220 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
25221 MENU(ITEM). remove menu handle usage, use Menu directly.
25222 * XplatUIDriver.cs: remove menu handle usage.
25223 * XplatUIOSX.cs: remove menu handle usage.
25224 * XplatUIWin32.cs: remove menu handle usage.
25225 * XplatUIX11.cs: remove menu handle usage.
25227 2005-11-22 Jackson Harper <jackson@ximian.com>
25229 * Hwnd.cs: Don't compute the menu size for
25230 DefaultClientRectangle.
25231 - Reenable menu sizes being computed for GetClienRectangle.
25232 * Form.cs: Remove comment of trechery
25234 2005-11-22 Jackson Harper <jackson@ximian.com>
25236 * Hwnd.cs: The adjustments for the menu bar are made when it is
25237 attached to the form.
25239 2005-11-19 Jackson Harper <jackson@ximian.com>
25241 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
25242 (just like on windows).
25244 2005-11-19 Jackson Harper <jackson@ximian.com>
25246 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
25247 use real buttons anymore because they are in non client area. The
25248 one TODO here is that I need to somehow invalidate a section of
25249 the non client area.
25251 2005-11-18 Jackson Harper <jackson@ximian.com>
25253 * Control.cs: Put the enum check back in now that MDI doesnt have
25254 to use this to set border styles.
25255 * Form.cs: Only set mdi child windows borders if the handle has
25257 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
25258 this directly on to the driver.
25259 - Get the move start position before adjusting for the titlebar
25260 height, this fixes the windows "skipping" when they are first
25263 2005-11-18 Jackson Harper <jackson@ximian.com>
25265 * XplatUIX11.cs: Just compute the mdi borders separately as they
25266 don't totally match up with normal form borders.
25268 2005-11-18 Jackson Harper <jackson@ximian.com>
25270 * Control.cs: Set WS_ styles for borders, so that the driver does
25271 not have to retrieve the control instance to figure out what kind
25272 of borders it should have.
25273 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
25274 driver can know its an mdi child easily.
25275 * XplatUIX11.cs: Get the border styles and whether the window is
25276 MDI from the Styles and ExStyles params instead of having to get a
25277 control. This prevents a chicken and egg problem.
25279 2005-11-18 Jackson Harper <jackson@ximian.com>
25281 * MdiClient.cs: Fix typo so scrollbars show up correctly.
25283 2005-11-18 Jackson Harper <jackson@ximian.com>
25285 * MdiClient.cs: Calculate when to add and remove scrollbars
25287 * MdiChildContext.cs: Adjust the y position to take the titlebar
25289 - No height for FormBorderStyle.None
25291 2005-11-18 Jackson Harper <jackson@ximian.com>
25293 * Control.cs: Allow non enum values to be used for
25294 InternalBorderStyle. MDI does this to set a special border style.
25295 - New utility methods for converting points to/from client coords
25296 - Add the newly created control to the Controls collection before
25297 updating its style. This way UpdateStyle can walk the control
25298 heirarchy to find the control if needed.
25299 so I don't need to create a new Point object all the time.
25300 * Form.cs: Let MDI windows handle their border styles.
25301 - Set styles on MDI windows so the correct title style is derived.
25302 * MdiChildContext.cs: Move all the painting and window handling
25303 into the non client area.
25304 - Use correct sizing and put correct buttons on frames based on
25305 the FormBorderStyle.
25306 - Notify the mdi client about scrolling
25307 - Need to handle the buttons ourselves now, because they are all
25308 in non client areas and we can't add controls there.
25309 * MdiClient.cs: Halfway to scrolling, this implementation is
25310 somewhat broken though, we need to check to make sure other
25311 windows aren't causing scrolling before removing the bars. Also
25312 the bars need to be drawn on top, maybe I can switch implicit
25313 controls to be on top.
25314 * Hwnd.cs: caption_height and tool_caption_height are now
25315 properties of an hwnd, this way they can be set by the driver
25316 based on the type of window they are. In X11 the window manager
25317 handles the decorations so caption_height is zero unless its an
25319 - Add 3 pixel borders for MDI windows (0xFFFF).
25320 - Get rid of some code duplication, have DefaultClientRectanle
25321 just call GetClientRectangle.
25322 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
25324 - Set border styles differently for mdi windows.
25325 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
25328 2005-11-15 Mike Kestner <mkestner@novell.com>
25330 * Menu.cs: when adding an item to the collection, if item is already
25331 parented, remove it from the parent.
25333 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
25335 * X11DesktopColors.cs: Added KDE support
25337 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
25340 - Clipboard methods now can translate Rtf format
25341 - No longer removes clipboard contents whenever a new format is added
25342 to allow placing multiple formats on the clipboard
25343 * Clipboard.cs: Clipboard now supports getting a IDataObject and
25344 will place all formats contained in it onto the clipboard. Also
25345 now cleans the clipboard before placing a new object onto it
25347 - Implemented set_Rtf
25348 - Implemented set_SelectedRtf
25349 - Created InsertRTFFromStream() method to allow single code base
25350 for all properties and methods that insert RTF into document
25351 - Removed debug output
25353 - Fixed Delete(int) to fix up line numbers
25354 - Fixed ReplaceSelection to combine start and end line
25355 - Fixed serious DeleteChars bug that would leave the document tree
25357 - Improved DumpTree with several logic checks to detect broken
25359 - Removed debug lines
25360 - Fixed Caret.WordForward/WordBack moving code, now always also
25361 updates caret.tag (fixes crash when word-selecting across tag
25362 boundaries via keyboard)
25363 - Added Insert() method for inserting multiline text into documents
25364 - Fixed DeleteChars() calculation errors that would cause a broken
25365 tag chain with multiple tag lines
25366 - DeleteChars() no longer crashes on multi-tag lines if not all tags
25367 - Split() no longer moves caret if split is at caret location
25368 - ReplaceSelection() now updates the cursor and re-displays it
25369 - ReplaceSelection() now uses new Insert() method to avoid code
25371 - FormatText() can now handle formatting partial lines
25373 - Append now uses new TextControl.Insert() method (this avoids
25375 - Implemented Ctrl-X (Cut) (
25376 - Implemented Ctrl-C (Copy)
25377 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
25378 regeneration when pasting text; roundtripping Copy&Paste within
25379 edit control still fails due to some calculation bugs in GenerateRTF)
25380 - The Delete key will now remove the current selection if it is visible
25381 * TextBox.cs: Removed debug lines
25382 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
25383 driver to be initialized and can't therefore be done via a static ctor)
25385 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
25387 * TextControl.cs: Added backend code for finding char arrays and strings
25389 - Added mouse wheel scroll support
25390 - Added support for VScroll and HScroll events
25392 - Implemented all seven Find() variants
25393 - Implemented GetCharFromPosition()
25394 - Implemented GetCharIndexFromPosition()
25395 - Implemented GetLineFromIndex()
25396 - Implemented GetPositionFromCharIndex();
25397 - Implemented SaveFile for PlainText and UnicodeText
25398 - Fixed set_Font, now setting a new font applies that font to
25400 - Implemented generic Document to RTF converter
25401 - Implemented SaveFile for RichText format (still missing unicode
25402 conversion for non-ansi chars)
25403 - Implemented get_Rtf
25404 - Implemented get_SelectedRtf
25406 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
25408 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
25409 to allow any captures to be released before triggering OnClick. This
25410 way a click handler may capture the mouse without interference.
25411 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
25412 This way we send them even though X may not allow a grab (if the window
25413 isn't visible, for example)
25415 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
25417 * DataGridViewRowEventArgs.cs: DataGridView implementation
25418 * DataGridViewElement.cs: DataGridView implementation
25419 * DataGridViewComboBoxCell.cs: DataGridView implementation
25420 * DataGridViewDataErrorContexts.cs: DataGridView implementation
25421 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
25422 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
25423 * ImageLayout.cs: DataGridView implementation
25424 * DataGridViewComboBoxColumn.cs: DataGridView implementation
25425 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
25426 * DataGridViewSelectionMode.cs: DataGridView implementation
25427 * IDataGridViewEditingControl.cs: DataGridView implementation
25428 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
25429 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
25430 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
25431 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
25432 * DataGridViewColumnSortMode.cs: DataGridView implementation
25433 * DataGridView.cs: DataGridView implementation
25434 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
25435 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
25436 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
25437 * Padding.cs: DataGridView implementation
25438 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
25439 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
25440 * DataGridViewRowEventHandler.cs: DataGridView implementation
25441 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
25442 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
25443 * DataGridViewButtonCell.cs: DataGridView implementation
25444 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
25445 * DataGridViewEditMode.cs: DataGridView implementation
25446 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
25447 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
25448 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
25449 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
25450 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
25451 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
25452 * DataGridViewCellEventHandler.cs: DataGridView implementation
25453 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
25454 * DataGridViewCellStyleConverter.cs: DataGridView implementation
25455 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
25456 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
25457 * DataGridViewColumnEventArgs.cs: DataGridView implementation
25458 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25459 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25460 * QuestionEventArgs.cs: DataGridView implementation
25461 * IDataGridViewEditingCell.cs: DataGridView implementation
25462 * DataGridViewTriState.cs: DataGridView implementation
25463 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25464 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25465 * DataGridViewColumnCollection.cs: DataGridView implementation
25466 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25467 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25468 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25469 * DataGridViewColumn.cs: DataGridView implementation
25470 * DataGridViewCellBorderStyle.cs: DataGridView implementation
25471 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25472 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25473 * DataGridViewRow.cs: DataGridView implementation
25474 * DataGridViewImageCellLayout.cs: DataGridView implementation
25475 * DataGridViewImageCell.cs: DataGridView implementation
25476 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25477 * DataGridViewCheckBoxCell.cs: DataGridView implementation
25478 * DataGridViewHeaderCell.cs: DataGridView implementation
25479 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25480 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25481 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25482 * DataGridViewTextBoxColumn.cs: DataGridView implementation
25483 * QuestionEventHandler.cs: DataGridView implementation
25484 * DataGridViewCellStyleScopes.cs: DataGridView implementation
25485 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25486 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25487 * DataGridViewCell.cs: DataGridView implementation
25488 * DataGridViewCellEventArgs.cs: DataGridView implementation
25489 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25490 * DataGridViewCellStyle.cs: DataGridView implementation
25491 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25492 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25493 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25494 * TextFormatFlags.cs: DataGridView implementation
25495 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25496 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25497 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25498 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25499 * DataGridViewButtonColumn.cs: DataGridView implementation
25500 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25501 * HandledMouseEventArgs.cs: DataGridView implementation
25502 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25503 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25504 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25505 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25506 * DataGridViewRowCollection.cs: DataGridView implementation
25507 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25508 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25509 * DataGridViewHitTestType.cs: DataGridView implementation
25510 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25511 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25512 * DataGridViewColumnEventHandler.cs: DataGridView implementation
25513 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25514 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25515 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25516 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25517 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25518 * DataGridViewContentAlignment.cs: DataGridView implementation
25519 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25520 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25521 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25522 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25523 * DataGridViewPaintParts.cs: DataGridView implementation
25524 * DataGridViewCellCollection.cs: DataGridView implementation
25525 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25526 * DataGridViewImageColumn.cs: DataGridView implementation
25527 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25528 * DataGridViewElementStates.cs: DataGridView implementation
25529 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25530 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25531 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25532 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25533 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25534 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25535 * DataGridViewRowHeaderCell.cs: DataGridView implementation
25536 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25537 * DataGridViewTextBoxCell.cs: DataGridView implementation
25538 * DataGridViewBand.cs: DataGridView implementation
25539 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25540 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25541 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25542 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25543 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25544 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25545 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25546 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25547 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25548 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25549 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25551 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
25553 * ThemeWin32Classic.cs:
25554 - Draw the outside focus rectangle around buttons
25555 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25556 doesn't use end caps for every dash of a line anymore. This
25557 workaround ignores the forecolor.
25559 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
25561 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25564 2005-11-07 Jackson Harper <jackson@ximian.com>
25566 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25568 2005-11-07 Jackson Harper <jackson@ximian.com>
25570 * ScrollableControl.cs: Calculate the maximum and change vars
25571 (more) correctly so that scrollbars appear as a sensible size.
25573 2005-11-04 Jackson Harper <jackson@ximian.com>
25575 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25577 * TreeView.cs: When the tree is sorted null out the top_node so
25578 that it is recalculated.
25579 - Use dotted lines instead of dashed lines to match MS better.
25581 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
25584 - Implements key search for items. Useful when browsing files with FileDialog
25585 - When changing view mode or when clear the items reset scrollbar positions
25587 2005-11-04 Jackson Harper <jackson@ximian.com>
25589 * CurrencyManager.cs: Implement the MetaDataChanged event, the
25590 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25591 as to what the method may do as there is no real way of creating a
25592 derived CurrencyManager and calling the method.
25594 2005-11-03 Jackson Harper <jackson@ximian.com>
25596 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
25597 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
25598 method which seems to just be used internally to refresh the tabs.
25600 2005-11-03 Jackson Harper <jackson@ximian.com>
25602 * TabControl.cs: Implement the remove method. Fix some broken
25605 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25607 * DateTimePicker.cs:
25608 - Added missing DateTimePickerAccessibleObject class
25609 - Added missing events
25610 - Added OnFontChanged method
25611 * Form.cs: Added missing attributes
25612 * TreeView.cs: Added missing attributes
25614 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25616 * GridItemCollection.cs: Fix signatures
25618 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25620 * XplatUI.cs: Updated build rev/date
25621 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
25622 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
25623 * Application.cs: Trigger context-specific ExitThread events
25625 2005-11-03 Jackson Harper <jackson@ximian.com>
25629 * GridTableStylesCollection.cs:
25634 * MonthCalendar.cs: Signature fixes
25636 2005-11-03 Jackson Harper <jackson@ximian.com>
25638 * TreeNodeCollection.cs: Remove should not be virtual.
25639 * TreeView.cs: Implement the last of the missing methods.
25641 2005-11-03 Jackson Harper <jackson@ximian.com>
25643 * TreeNodeConverter.cs: Implement to get off my class-status back.
25645 2005-11-03 Jackson Harper <jackson@ximian.com>
25647 * TreeView.cs: Hookup the bits for drag and drop.
25648 * TreeNode.cs: Don't cache the tree_view or index anymore, now
25649 that nodes can be moved from tree to tree easily this just causes
25650 all sorts of problems.
25651 * TreeNodeCollection: Don't need to give treenodes an index and
25652 treeview anymore when they are added, these are computed on the
25653 fly. Also make sure to remove a node before its added.
25655 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25658 - Added CaretSelection enum
25659 - Added comparison methods to Marker struct, makes selection code
25661 - Added SelectionStart and SelectionEnd as 'moveable' location for
25662 the CaretDirection enum and handler
25663 - Added selection_prev variable to track optimized invalidation for
25664 word and line selection
25665 - Added SelectionVisible property (returns true if there is a valid
25667 - Switched CaretHasFocus to only display the caret if there is no
25669 - Avoiding StringBuilder.ToString to retrieve a single char, instead
25670 using the direct character index; should be much faster
25671 - Added various conditional debug statements
25672 - Fixed invalidation calculation for selection ranges
25673 - Added ExpandSelection() method to support word and line selection
25674 - Switched SetSelectionToCaret to use new Marker compare overloads
25675 - Added central IsWordSeparator() method to determine word
25676 separators/whitespace and FindWordSeparator() to streamline common
25677 usage of IsWordSeparator()
25679 - Removed unneeded grabbed variable, it was just mirroring
25681 - No longer firing OnTextChanged event when Text setter is called,
25682 since the base will fire the event for us
25683 - Added handling of Ctrl-Up/Down selection
25684 - Added handling of Shift-Cursorkey selection
25685 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
25687 - Added handling of Shift and Ctrl-Shift-Home/End selection
25688 - Removed some debug output
25689 - Added handling for single/double/tripple-click to place caret/
25690 select word/select line respectively (Fixes bug #76031)
25691 - Added support for drag expansion of word/line selection
25692 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
25695 2005-11-02 Jackson Harper <jackson@ximian.com>
25697 * X11Dnd.cs: If the drag is going to and from a MWF window just
25698 copy the data instead of sending it out through the X Selection
25701 2005-11-02 Jackson Harper <jackson@ximian.com>
25704 * XplatUIX11.cs: When in a drag we don't want motion notify
25705 messages to get passed on to the other controls. This prevents
25706 mouse move messages from showing up in the drag source.
25708 2005-11-02 Jackson Harper <jackson@ximian.com>
25710 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
25711 the correct button is release to end a drag.
25712 * XplatUIX11.cs: Make the button state internal so the drag system
25713 can access it. Dragging needs to know about all button releases,
25714 not just left button.
25716 2005-11-02 Miguel de Icaza <miguel@novell.com>
25718 * Form.cs (Icon): If the icon is null, reset the icon to the
25721 * Cursor.cs: When writing the AND-mask bitmap do not include the
25722 number of colors, but hardcode those to two (black and white),
25723 fixes the loading of color cursors (Paint Dot Net).
25725 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
25726 turn off autoscaling.
25728 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
25730 2005-11-02 Jackson Harper <jackson@ximian.com>
25732 * X11Dnd.cs: Make sure to send a status message if the pointer
25733 enters a control that can not accept a drop, otherwise the cursor
25734 isn't updated correctly. Also tried to compress the lines of code
25737 2005-11-02 Jackson Harper <jackson@ximian.com>
25739 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
25740 set actions correctly. This isn't perfect as XDND and win32 have
25741 some differences on how you allow actions. I'll clear this up by
25742 adding a path for drag from MWF to MWF windows.
25743 * XplatUIX11.cs: Hook into the dnd system.
25745 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
25747 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
25748 previously shown but they are no longer need it. Very obvious when
25749 browsing files with FileDialog.
25751 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
25753 * Control.cs: We always need to call OnPaintBackground. We pretty much
25754 ignore AllPaintingInWmPaint and always do the painting there, whether
25755 it's set or not, since we always ignore the WM_ERASEBKGND message
25756 (which we don't generate on X11). This fixes #76616.
25757 * Panel.cs: Removed unneeded background painting. This happens properly
25758 in Control.cs already
25760 2005-10-31 Mike Kestner <mkestner@novell.com>
25762 * Menu.cs: Add items to collection before setting their index.
25763 * MenuItem.cs : add range checking with ArgumentException like MS.
25766 2005-10-31 Jackson Harper <jackson@ximian.com>
25768 * ListBox.cs: Invalidate if the area is visible at all not just
25769 contained in the visible rect. Fixes unselection of semi visible
25772 2005-10-31 Jackson Harper <jackson@ximian.com>
25774 * Control.cs: Consistently name the dnd methods. Make them
25775 internal so we can override them to match some MS behavoir
25777 * Win32DnD.cs: Use the new consistent names.
25779 2005-10-31 Jackson Harper <jackson@ximian.com>
25781 * TreeView.cs: Don't draw the selected node when we lose focus.
25783 2005-10-31 Jackson Harper <jackson@ximian.com>
25785 * X11Dnd.cs: We still need to reset the state even though a full
25786 reset isn't being done, otherwise status's still get sent all over
25789 2005-10-31 Jackson Harper <jackson@ximian.com>
25791 * Control.cs: Make the dnd_aware flag internal so the dnd
25792 subsystem can check it. Catch exceptions thrown in dnd handlers to
25794 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
25795 * X11Dnd.cs: Handle null data in the converters. Set the XDND
25796 version when sending a XdndEnter. Use the control/hwnd dnd_aware
25797 flags to reduce the number of dnd enters/status's sent.
25799 2005-10-31 Jackson Harper <jackson@ximian.com>
25801 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
25803 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
25805 * PictureBox.cs: Fixes 76512
25807 2005-10-28 Jackson Harper <jackson@ximian.com>
25809 * X11Dnd.cs: Early implementation to support winforms being a drag
25810 source for data on X11. Also restructured the converters so they
25811 can go both ways now.
25812 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
25814 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
25816 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
25819 2005-10-27 Jackson Harper <jackson@ximian.com>
25821 * TreeNode.cs: Implement serialization so my DnD examples will work.
25823 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
25825 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
25826 TreeView.cs: Don't dispose objects that are not owned.
25828 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
25830 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
25831 should retrieve the current cursor and report that, but XplatUI
25832 doesn't (yet) have an interface for that (and I'm not sure I even
25834 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
25835 until any message loop processing is done (and the WM_SETCURSOR
25836 replaces the cursor to the proper one)
25838 - Fixed override behaviour, we can't set the cursor globally on X11,
25839 just for our windows.
25840 - Invalidating the System.Drawing X11 display handle when we are
25842 * Control.cs: Fix to make csc happy
25844 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
25847 - get_Text: Add last line (without trailing newline) to returned
25848 value (Fixes 76212)
25849 - get_TextLength: Count last line in returned length
25850 - ToString: Call Text property instead of duplicating code
25852 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
25854 * ImageList.cs: Dispose ImageAttributes objects.
25856 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25858 * ImageList.cs: Use attribute constructors with less arguments where
25861 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25863 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
25864 Use typeof instead of strings when assembly is referenced. Added
25865 some more comments.
25867 2005-10-21 Jackson Harper <jackson@ximian.com>
25869 * ListView.cs: Raise a double click event. Also tried to somewhat
25870 fix when the selectedindexchanged event is raised. Its still
25873 2005-10-21 Jackson Harper <jackson@ximian.com>
25875 * TreeView.cs: New method to invalidate the plus minus area of a
25876 node without invalidating the whole node (maybe this can be used
25877 in some more places).
25878 * TreeNodeCollection.cs: When adding to an empty node we need to
25879 invalidate its plus minus area so the little block shows up.
25881 2005-10-21 Jackson Harper <jackson@ximian.com>
25883 * TreeView.cs: Make sure that when we invalidate a node the bounds
25884 are big enough to cover the selected box and the focus
25885 rectangle. Use a different colour for the lines connecting nodes
25886 so they show up with all themes.
25888 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25890 * NativeWindow.cs: Don't call anything that could call into the driver,
25891 we might be on a different thread.
25893 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25895 * Control.cs(Dispose): Since Dispose might run on a different thread,
25896 make sure that we call methods that could call into the driver via
25897 invoke, to avoid thread issues
25899 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25901 * XplatUI.cs: Removed finalizer
25902 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
25903 not allowing to be called on the finalizer thread.
25905 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
25908 - Reverted r51889 and r51891.
25909 - Added ImageListItem class that stores unmodified image items and image
25910 properties required to create list images until handle is created.
25911 - Added AddItem and moved image creation logic to AddItemInternal.
25912 - Added CreateHandle method that creates images based on unmodified items.
25913 - Added DestroyHandle that changes state to store unmodified items.
25914 - Add and AddStrip methods no more create handle.
25915 - ReduceColorDepth has no return value.
25916 - Dispose destroys handle.
25917 - Modified other methods to reflect the above changes.
25918 - Implemented key support.
25919 - Added profile 2.0 members and attributes.
25920 - Added private Reset and ShouldSerialize methods that provide the same
25921 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
25922 them as they are private.
25923 - Added some more comments about implementation details.
25925 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25927 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
25929 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25931 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
25933 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25935 * DataGridDrawingLogic.cs: Fixes column hit calcultation
25936 * DataGridColumnStyle.cs: Remove debug message
25938 2005-10-20 Jackson Harper <jackson@ximian.com>
25940 * TreeView.cs: We can always get input keys regardless of whether
25941 or not editing is enabled. They are used for navigation.
25943 2005-10-20 Jackson Harper <jackson@ximian.com>
25945 * TreeNode.cs: Use the viewport rect for determining if a node
25946 needs to be moved for visibility. Don't use Begin/End edit. This
25947 calls a full refresh when its done.
25948 * TreeView.cs: New SetBottom works correctly. Make the viewport
25949 rect property internal so the treenodes can see it. When clicking
25950 on a node we need to ensure that its visible because it might just
25951 be partly visible when clicked.
25953 2005-10-20 Jackson Harper <jackson@ximian.com>
25955 * TreeNodeCollection.cs: Remove debug code.
25957 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25959 * Datagrid.cs: Implements column sorting in Datagrid
25960 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
25962 2005-10-20 Jackson Harper <jackson@ximian.com>
25964 * TreeNodeCollection.cs: Remove items properly. Update the correct
25965 area after removing them.
25967 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25969 * Datagrid.cs: Should not call base.OnPaintBackground
25971 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25973 * XplatUIX11.cs (GetMessage):
25974 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
25975 window instead of client window
25976 - Now properly calculates NC_xBUTTONUP message coordinates
25977 - ScreenToMenu now properly calculates it's coordinates of whole
25978 window, since menus are in the whole window, not in the client
25980 - Added WholeToScreen coordinate translation method
25982 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25984 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
25985 want to return a message, loop back to the beginning of the function
25986 and grab the next real message to process instead.
25988 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25990 * Splitter.cs: Properly set limits if no filler control is used
25992 2005-10-19 Jackson Harper <jackson@ximian.com>
25994 * ColorDialog.cs: Don't show the help button if it is not enabled
25995 instead of disabling it (this is what MS does). Don't create the
25996 panel until the dialog is run, otherwise the vars (such as
25997 ShowHelp) are not set yet.
25999 2005-10-19 Jackson Harper <jackson@ximian.com>
26001 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
26002 are reduced when adding nodes.
26004 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
26007 2005-10-19 Jackson Harper <jackson@ximian.com>
26009 * FolderBrowserDialog.cs: End editing our treeview so the window
26010 actually gets refreshed.
26012 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26014 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
26015 Obsoleted handling of WM_ERASEBKGND, now always draws our background
26018 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26020 * MenuAPI.cs: Returns after Hidding window
26021 * XplatUIX11.cs: Added TODO found while debugging menu issues
26023 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26025 * XplatUIX11.cs: Do not re-map the whole window when it's size
26026 becomes non-zero unless it's supposed to be actually visible
26028 2005-10-18 Jackson Harper <jackson@ximian.com>
26030 * TreeView.cs: We don't need to keep a count anymore.
26031 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
26032 use the Grow method.
26034 2005-10-18 Jackson Harper <jackson@ximian.com>
26036 * TreeNodeCollection.cs: Insert is not supported on arrays, so
26037 implement it manually here.
26039 2005-10-18 Jackson Harper <jackson@ximian.com>
26041 * ImageList.cs: Dont kill the list when the colour depth is
26042 changed, just change the colour depth of all the images.
26043 - Same goes for setting the image size. Just resize them all
26044 instead of killing the list softly.
26046 2005-10-18 Jackson Harper <jackson@ximian.com>
26048 * Control.cs: Don't invalidate empty rectangles.
26050 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26053 - Adds checked item to the Checked/Item lists (where empty before)
26054 - Do not add items to the Selected lists if they are already present
26056 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
26057 - When deleting items make sure that we delete them for the Selected
26058 and Checked list also.
26060 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26062 * Label.cs: Dispose objects no longer used
26063 * ThemeWin32Classic.cs: Dispose objects no longer used
26065 2005-10-18 Jackson Harper <jackson@ximian.com>
26067 * TabControl.cs: Don't refresh the whole control when the tabs are
26068 scrolled, we just need to refresh the tab area.
26070 2005-10-17 Jackson Harper <jackson@ximian.com>
26072 * XplatUIX11.cs: Compress code a little bit. Only calculate the
26073 after handle when we need it.
26075 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26077 * Control.cs: When the parent size changes, recalculate anchor
26078 positions. Partial fix for #76462
26080 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26082 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
26083 drawn. Fixes #76462
26085 2005-10-17 Jackson Harper <jackson@ximian.com>
26087 * MonthCalendar.cs: Don't create the numeric up down until our
26088 handle is created. Otherwise our handle is created in the
26089 constructor and we don't know if we are a WS_CHILD or WS_POPUP
26092 2005-10-17 Jackson Harper <jackson@ximian.com>
26094 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
26097 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26098 * TreeNode.cs : small logical fix (was using local var instead of field)
26100 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26102 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
26104 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26106 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
26108 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
26111 - Re-implemented anchoring code. My first version was really broken.
26112 This fixes bug #76033. Unlike the previous implementation we will
26113 no longer have round errors since all numbers are calculated from
26114 scratch every time. Removed various anchor-related obsolete vars.
26115 - InitLayout no longer causes layout event firing and layout to be
26118 2005-10-16 Jackson Harper <jackson@ximian.com>
26120 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
26123 2005-10-16 Jackson Harper <jackson@ximian.com>
26125 * TabControl.cs: Remove debug code.
26127 2005-10-16 Jackson Harper <jackson@ximian.com>
26129 * XEventQueue.cs: Increase the default queue size (very simple
26130 apps needed to grow the queue).
26131 * Hwnd.cs: No finalizer so we don't need to suppress
26132 finalization. Compute the invalid area manually so a new rectangle
26133 does not newto be created.
26134 * ScrollableControl.cs: Don't set any params (otherwise visibility
26135 isn't set correctly).
26136 * MdiChildContext.cs: New constructor takes the mdi parent so it
26137 doesn't have to be computed and avoids a crash on windows. Draw
26138 the window icon properly, and allow the text to be seen.
26139 * Form.cs: Use new MdiChildContext constructor. Make sure the
26140 child context isn't null in wndproc.
26141 * TabControl.cs: Don't set focus, this is muddling keyboard
26142 behavoir. Expand the tab rows when a window size increase will
26143 allow extra tabs to be seen. Don't allow tabs smaller than the
26144 width of a window to be scrolled out of view.
26146 * TreeView.cs: Use measure string to calculate a nodes width, the
26147 width is cached and only updated when the text or the font is
26148 changed. Don't check for expand/collapse clicks on the first level
26149 nodes if root lines are disabled.
26151 2005-10-16 Ritvik Mayank <mritvik@novell.com>
26153 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
26155 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26157 * DataGridBoolColumn.cs: fixes warning
26159 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26161 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
26162 to match more to match more precisely the MS Net behavior
26164 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26166 * Hwnd.cs: Added field to track if window is mapped
26168 - Unmap windows if they become 0-size, re-map when
26169 they are >0 again; fixes #76035
26170 - Re-set our error handler after initializing X11Desktop
26171 to override any error handlers Gtk or whatever was called
26174 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26176 * CheckedListBox.cs: Removed unused vars
26177 * ListView.cs: Fixed signatures
26178 * RichTextBox.cs: Removed unused vars
26179 * TextBoxBase.cs: Removed unused vars
26180 * XplatUIWin32.cs: Removed unused vars
26181 * XplatUIX11.cs: Removed unused vars
26182 * XplatUI.cs: Updated version and date to latest published
26184 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26186 * Cursor.cs: Added private .ctor to work around a bug in
26187 resourceset (Thanks to Geoff Norton for the help on this)
26188 * SplitterEventArgs.cs: Made fields accessible so we don't
26189 waste boatloads of objects and can reuse the same one
26191 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
26192 any captions and borders when generating screen coordinates
26193 * Splitter.cs: Reimplemented control, now fully complete, uses
26194 rubberband drawing, supports and obeys all properties, has
26197 2005-10-13 Miguel de Icaza <miguel@novell.com>
26199 * Form.cs (Form): Setup default values for autoscale and
26200 autoscale_base_size; Make these instance variables, not static
26203 (OnLoad): on the first load, adjust the size of the form.
26205 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26207 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
26208 width argument to DrawReversibleRectangle()
26209 * XplatUIWin32.cs, XplatUIX11.cs:
26210 - Implemented width for DrawReversibleRectangle()
26211 - Added logic to DrawReversibleRectangle that recognizes a zero
26212 width or height and only draws a line in that situation
26214 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26216 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
26217 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
26218 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
26219 method (it uses our FosterParent window to get a graphics context)
26221 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26223 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
26224 and SetWindowBackground methods
26226 - Setting proper ControlStyles
26227 - We no longer call XplatUI.SetWindowBackground and XplatUI.
26228 EraseWindowBackground, instead we draw the window background
26229 ourselves in PaintControlBackground. This behaviour is
26230 required to match MS, where, when OnPaintBackground is not
26231 called, the background is not drawn.
26232 - Removed unneeded Refresh() in set_Text
26233 * Hwnd.cs: Dropped the ErasePending support. No longer needed
26235 - Created DeriveStyles method to translate from CreateParams to
26236 FormBorderStyle and TitleStyle, also handles BorderStyle (which
26237 matches FormBorderStyle enum values)
26238 - Consolidated SetHwndStyles and CalculateWindowRect border/title
26239 style calculations into single DeriveStyles method
26240 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
26241 from redrawing the whole window on any resize or expose.
26242 - Fixed CreateWindow usage of SetWindowValuemask. Before not
26243 all styles were applied to our whole/client window appropriately
26244 - Removed EraseWindowBackground() and SetWindowBackground() methods
26245 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
26246 no longer clear/redraw the background through X
26247 - Removed handling of erase_pending bit, we have no use for it (or
26250 - Removed generation and handling of WM_ERASEBKGND message
26251 - Removed EraseWindowBackground() and SetWindowBackground() methods
26252 - Removed handling of hwnd.ErasePending flag
26254 - Removed EraseWindowBackground() and SetWindowBackground() methods
26255 - We no longer call EraseWindowBackground on PaintEventStart, we
26256 ignore the fErase flag, erasing is handled in Control in the
26258 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
26259 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
26260 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
26261 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
26262 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
26263 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
26264 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
26266 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
26268 * PropertyGrids.cs: Get sub properties
26269 * PropertyGridView.cs: Fix drawing code
26271 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26273 * ListBox.cs: Fixes 76383
26275 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26277 * DataGridTextBoxColumn.cs: Sets location and size before attachment
26278 * ThemeWin32Classic.cs: Fixes border drawing and calculations
26279 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
26282 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26284 * ComboBox.cs: Fixes border drawing
26286 2005-10-10 Miguel de Icaza <miguel@novell.com>
26288 * MimeIcon.cs: Ignore errors if the file can not be read.
26290 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26292 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
26293 - Fixed border calculations
26294 - Fixed horizontal scrolling in single column listboxes
26295 - Fixed drawing issues
26297 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
26299 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
26300 FormBorderStyle enum
26301 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
26302 code to determine FormBorderStyles from CreateParams
26304 - Fixed bug where we'd set the wrong window styles if we were
26305 not creating an MDI window
26306 - Added call to XplatUI.SetBorderStyle when form borders are set
26307 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
26309 - Removed obsolete edge style
26310 - Switched from BorderStyle to FormBorderStyle
26312 2005-10-10 Jackson Harper <jackson@ximian.com>
26314 * Form.cs: Use the property to get the window handle instead of
26315 accessing it directly. Prevents a null reference exception.
26317 2005-10-10 Jackson Harper <jackson@ximian.com>
26319 * TreeView.cs: Don't adjust the rect given to DrawString now that
26320 our libgdiplus draws correctly.
26322 2005-10-08 Jackson Harper <jackson@ximian.com>
26324 * TreeView.cs: Don't try to find the clicked on node if there are
26325 no nodes in the tree.
26327 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26333 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26335 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
26336 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
26338 Use ResPool for brushes and dispose System.Drawing objects that
26339 are not used anymore.
26341 2005-10-07 Jackson Harper <jackson@ximian.com>
26343 * MdiChildContext.cs: Use the new borders instead of drawing them
26346 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26348 * Calling UpdateBounds after changing the window's BorderStyle
26349 since the style can change the ClientSize
26351 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26353 * Control.cs: Made PaintControlBackground virtual
26354 * Panel.cs: Overriding PaintControlBackground instead of using paint
26355 event; paint event method was interfering with 'real' users of the
26358 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26360 * ThemeWin32Classic.cs: remove border drawing since it is handled
26361 by the base control class now and was causing double border drawing.
26363 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26365 * Panel.cs: Redraw our background on paint. Not a pretty solution,
26366 but it does seem to match MS behaviour. This fixes bug #75324
26368 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26370 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
26371 somewhat hackish looking
26373 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26376 - We now accept Enter even if AcceptEnter is false, if the containing
26377 form does not have an AcceptButton configured (fixes bug #76355)
26378 - Calculations are now fixed to no longer use Width/Height, but
26379 ClientSize.Width/Height, since we now support borders (this was
26380 a result of fixing borders and therefore bug #76166)
26381 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
26382 true (fixes bug #76354)
26384 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26387 - Defaulting BorderStyle and setting it in XplatUI when our window
26389 - Added enum check to InternalBorderStyle setter
26391 - Added drawing of window borders
26392 - Now properly calculates WM decorations offset for toplevel
26393 windows (fixes bug #74763)
26395 - Implemented BorderStyles for windows (we're letting win32 draw
26397 - Fixed the signature for SetWindowLong
26398 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
26399 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
26401 * UpDownBase.cs: Remove drawing of borders, this is handled by
26402 the driver, outside the client area
26403 * ListView.cs: Removed bogus border calculations. The control should
26404 be oblivious to borders, since those are not part of the client
26406 * X11DesktopColors.cs: Commented out (currently) unneeded variables
26407 * ThemeWin32Classic.cs: Removed border calculations from ListView
26410 2005-10-06 Jackson Harper <jackson@ximian.com>
26412 * MdiChildContext.cs: Clear out the old virtual position remove
26413 all the unneeded calls to CreateGraphics.
26415 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26417 * TextControl.cs: Use proper color for highlighted text; fixes #76350
26419 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26422 - Added loading and setting of our new default icon
26423 - Only set icon if window is already created
26425 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26428 - Do not explicitly set the foreground and background colors, to
26429 allow inheriting from parents (fixes #76302)
26430 - Use Control's InternalBorderStyle property to deal with borders
26432 2005-10-06 Jackson Harper <jackson@ximian.com>
26434 * MdiChildContext.cs: Use the new xplatui function to draw a
26437 2005-10-06 Jackson Harper <jackson@ximian.com>
26439 * Form.cs: Add the parent before creating the child context cause
26440 we need the parent when setting up the child.
26442 2005-10-06 Jackson Harper <jackson@ximian.com>
26444 * FolderBrowserDialog.cs: redo the tree population code so a
26445 second thread isn't used. Should be a lot faster and more stable
26448 2005-10-05 Jackson Harper <jackson@ximian.com>
26450 * TreeView.cs: There are no expand/collapse boxes if the node has
26453 2005-10-05 Jackson Harper <jackson@ximian.com>
26455 * X11DesktopColors.cs: Get menu colours for the gtk theme.
26457 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
26459 * FileDialog.cs: Fix InitialDirectory
26461 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26464 - Fixes changing between styles
26465 - Fixes simple mode
26466 - Fixes last item crashing when navigating with keyboard
26468 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26470 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26472 2005-10-05 Jackson Harper <jackson@ximian.com>
26474 * TreeView.cs: If updating the root node do a full refresh.
26475 * TreeNode.cs: The root node should be expanded by default. Also
26476 added a utility prop to tell if we are the root node.
26477 * TreeNodeCollection.cs: Only refresh if the node we are being
26478 added to is expanded. Also added a comment on a potential
26481 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
26483 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
26484 in dispose method. Fixes #76330
26486 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
26488 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26490 - Implements vertical and horizontal scrolling using XplatUI
26491 - Fixes keyboard navagation
26492 - Fixes EnsureVisible
26494 - Handles and draws focus properly
26497 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
26499 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26500 Create handle. NET_2_0: Destroy handle when value is null.
26502 2005-10-03 Jackson Harper <jackson@ximian.com>
26504 * ScrollBar.cs: My last scrollbar patch was broken. This is a
26505 revert and a new patch to prevent the thumb from refreshing so
26508 2005-10-02 Jackson Harper <jackson@ximian.com>
26510 * ScrollBar.cs: Don't update position if it hasn't actually
26511 changed. This occurs when you hold down the increment/decrement
26512 buttons and the thumb gets to the max/min.
26514 2005-10-01 Jackson Harper <jackson@ximian.com>
26517 * MdiChildContext.cs:
26518 * MdiClient.cs: Implement ActiveMdiChild in Form.
26520 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
26522 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26524 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
26526 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26529 2005-09-30 Jackson Harper <jackson@ximian.com>
26531 * ListBox.cs: Don't do a full refresh unless some data has
26534 2005-09-30 Jackson Harper <jackson@ximian.com>
26536 * TreeView.cs: Make sure that the checkboxes size is factored in
26537 even when not visible.
26539 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26541 * FileDialog.cs: Fix Jordi's build break
26543 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26546 - Use standard the Windows colours for the combobox as espected
26547 - Dispose objects that use resouces when no longer need them
26549 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26551 * X11DesktopColors.cs: Initial incomplete implementation
26552 * XplatUIX11.cs: Added call to initialize X11DesktopColors
26554 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26557 - Switched Theme color names to match the names defined in
26558 System.Drawing.KnownColors. Life's hard enough, no need to make
26560 - Added setters to all theme color properties so themes can set
26561 their color schemes. The setters also propagate the color changes
26562 to System.Drawing.KnownColors via reflection
26563 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26564 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26565 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26566 use the new, more logical theme color names
26567 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26569 * ThemeWin32Classic.cs:
26570 - Removed code to set the old classic Windows colors. Instead it
26571 now relies on the colors returned by System.Drawing.KnownColors
26572 which will be either modern static colors (Unix) or colors
26573 read from the user's configuration (Win32)
26574 - Updated to use the new, more logical theme color names
26575 - Switched DataGrid drawing code to use only Theme colors instead of
26576 a mix of System.Drawing.KnownColors and Theme colors
26577 - DrawFrameControl(): Removed code that fills the button area, the
26578 fill would overwrite any previous fill done by a control. This
26580 - Added DrawReversibleRectangle() stub
26581 * ScrollableControl.cs: Set visible state to false when scrollbars
26582 are removed (pdn fix)
26583 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
26584 DrawReversibleRectangle() method to allow drawing primitive
26586 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26588 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26590 * ImageList.cs: Add(Icon): Create handle.
26592 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26595 * ThemeWin32Classic.cs:
26596 - Fixes detail mode
26598 - Issues with drawing
26600 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26602 * ImageList.cs: Moved RecreateHandle back to ImageList as event
26603 source has to be the ImageList.
26605 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26607 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
26609 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26611 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
26613 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26615 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
26617 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
26618 * GridItem.cs: Fixed TODOs
26619 * GridItemCollection.cs: Added ICollection interface
26621 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26623 * ImageList.cs: Resize icons when needed.
26625 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
26628 - Fixes GetBounds and returns on screen rects
26630 - Fixes vertical and horzintal scrolling of items
26631 * ThemeWin32Classic.cs:
26634 2005-09-29 Raja R Harinath <harinath@gmail.com>
26636 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
26638 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
26640 * ImageList.cs: Added comments about handle creation. Moved Handle,
26641 HandleCreated and OnRecreateHandle implementations to ImageCollection.
26642 Handle is created in Add methods.
26644 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
26646 * DataGridDrawingLogic.cs:
26647 - Takes rows into account on Colum calculations
26648 - Returns the column when clickig
26650 - Fixes default HitTestInfo values
26651 - Fixes HitTestInfo.ToString
26652 - Fixes ResetBackColor
26654 2005-09-28 Jackson Harper <jackson@ximian.com>
26656 * MdiChildContext.cs: Obey rules for fixed sized windows (no
26657 sizing or cursor changes). Also added some temp code to draw the
26658 titlebars text (Makes dev a little easier).
26660 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
26662 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
26664 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
26666 * ListBox.cs: Fixes bug 76253
26668 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
26670 * ImageList.cs: Added comments about the current implementation. Added
26671 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
26672 Format32bppArgb to preserve transparency and can use Graphics.FromImage
26673 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
26674 with Bitmap.LockBits for better performance. Revised the whole file to
26675 match MS.NET behaviour and provide better performance. Non-public
26676 interface members are calling public members even when they throw
26677 NotSupportedException for better maintainability. Moved ColorDepth,
26678 ImageSize, ImageStream and TransparentColor implementations to
26679 ImageCollection for better performance as these properties are not used
26681 * ImageListStreamer.cs: Added a new internal constructor that takes an
26682 ImageList.ImageCollection and serializes Images based on
26683 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
26684 match ImageList property name.
26686 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
26688 * ListBox.cs: Fixes IndexFromPoint for last item
26690 2005-09-27 Jackson Harper <jackson@ximian.com>
26692 * Form.cs: Set the position of new mdi children correctly.
26694 2005-09-27 Jackson Harper <jackson@ximian.com>
26696 * MdiClient.cs: New mdi children need to be added to the back of
26697 the controls collection so the zorder is set correctly. Also add a
26698 count of all the child windows that have been created.
26700 2005-09-27 Jackson Harper <jackson@ximian.com>
26702 * Form.cs (CreateParams): Setup MDI forms correctly.
26704 2005-09-27 Jackson Harper <jackson@ximian.com>
26706 * MdiChildContext.cs:
26707 * MonthCalendar.cs:
26713 * ScrollableControl.cs:
26714 * ComboBox.cs: Add implicit controls using the new implict control
26715 functionality in ControlCollection. Also try to block multiple
26716 control add in a suspend/resume layout to save some cycles.
26718 2005-09-27 Jackson Harper <jackson@ximian.com>
26720 * Control.cs: Add functionality to the controls collection to add
26721 'implicit controls' these are controls that are created by the
26722 containing control but should not be exposed to the user. Such as
26723 scrollbars in the treeview.
26724 * Form.cs: The list var of the ControlsCollection is no longer
26725 available because of the potential of implicit controls getting
26726 ignored by someone accessing the list directly.
26728 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
26730 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
26731 loose it's parent. (Fixed bug introduced in r49103 when we added
26732 setting the child parent to null on Remove)
26734 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
26736 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
26737 * Splitter.cs: Added missing attributes for BorderStyle property.
26738 * TextBoxBase.cs: Marked Calculate* methods internal.
26739 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
26742 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
26744 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
26746 2005-09-25 Jackson Harper <jackson@ximian.com>
26748 * TreeView.cs: Update the node bounds correctly regardless of
26749 whether the node is visible.
26751 2005-09-25 Jackson Harper <jackson@ximian.com>
26753 * ImageList.cs: Don't dispose the image after it is added to the
26754 image list. Only reformat images that need to be resized.
26756 2005-09-25 Jackson Harper <jackson@ximian.com>
26758 * ImageList.cs: Don't set the format when changing the image.
26760 2005-09-25 Jackson Harper <jackson@ximian.com>
26762 * TreeView.cs: We can't just assume the node has a font. Use the
26763 treeviews font if no node font is available.
26765 2005-09-25 Jackson Harper <jackson@ximian.com>
26767 * TreeView.cs: Allow the scrollbars to be reset with negative
26769 - Don't add scrollbars to negative sized windows.
26771 2005-09-23 Jackson Harper <jackson@ximian.com>
26773 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
26774 old Mono.Posix. Also remove some stray code that shouldn't have
26777 2005-09-23 Jackson Harper <jackson@ximian.com>
26779 * TreeView.cs: Attempt at proper sizing of the horizontal
26780 scrollbar. Also don't resize the scrollbars unless they are
26783 2005-09-23 Jackson Harper <jackson@ximian.com>
26785 * TreeView.cs: We don't need to expand the invalid area when the
26786 selection changes, as this is all drawn in the node's bounding
26787 box. The area needs to be expanded (previous typo was contracting
26788 it) when the focus rect moves.
26790 2005-09-23 Jackson Harper <jackson@ximian.com>
26792 * TreeView.cs: Display the selection box under the correct
26793 circumstances. We were rendering white text with no selection box
26796 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
26798 * TextControl.cs(Split): Now updates selection start/end if it points
26799 into a line that's being split. Fixes a FIXME and bug #75258
26801 2005-09-23 Jackson Harper <jackson@ximian.com>
26804 * ListControl.cs: Don't use the path when retrieving binding
26805 managers from the binding context. My bat sense tells me that the
26806 path is only used on insertion.
26808 2005-09-22 Jackson Harper <jackson@ximian.com>
26810 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
26812 2005-09-22 Jackson Harper <jackson@ximian.com>
26814 * Splitter.cs: There are special cursors used for splitting.
26815 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
26817 2005-09-22 Jackson Harper <jackson@ximian.com>
26819 * Splitter.cs: Change the cursor appropriately when the splitter
26820 is moused over, so the user actually knows there is a splitter
26823 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26825 * Label.cs : Fix ToString method to give same output as MS.NET
26827 2005-09-22 Jackson Harper <jackson@ximian.com>
26829 * TreeView.cs: Create the scrollbars when the handle is created
26830 and add them right away, just make them invisble. Also account for
26831 the window being shrunk vertically to the point that the vert
26832 scrollbar needs to be added.
26833 - Remove some 0.5 adjustments to get around anti aliasing issues.
26835 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
26837 * MainMenu.cs: Fixes default value
26838 * MenuItem.cs: Fixes default value
26840 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
26842 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
26844 2005-09-21 Jackson Harper <jackson@ximian.com>
26846 * Control.cs: Don't try to set the border style on the window if
26847 it hasn't been created. When the window is created the border
26848 style will be used.
26850 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26852 * Control.cs (Update): Don't call XplatUI if we don't have a
26855 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26857 * ContainerControl.cs: Instead of throwing an exception, print
26858 a one-time warning about Validate not being implemented
26859 * XplatUIWin32.cs: Removed debug output
26861 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26863 * Control.cs: Only set XplatUI background if we expect the windowing
26864 system to handle the background. This stops controls that draw their
26865 own background from flickering
26867 * XplatUIX11.cs: Support custom visuals and colormaps for window
26868 creation. This allows, amongst other things, using MWF X11 windows
26871 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26873 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
26874 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
26875 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
26876 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
26877 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
26878 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
26879 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
26880 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
26881 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
26882 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
26883 GridColumnStylesCollection.cs,
26884 IDataGridColumnStyleEditingNotificationService.cs,
26885 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
26886 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
26887 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
26888 TreeNodeCollection.cs, AmbientProperties.cs,
26889 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
26890 DataObject.cs, ErrorProvider.cs, Splitter.cs,
26891 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
26892 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
26893 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
26894 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
26895 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
26896 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
26897 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
26898 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
26899 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
26900 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
26901 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
26902 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
26903 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
26904 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
26905 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
26906 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
26907 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
26908 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
26909 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
26910 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
26911 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
26912 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
26913 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
26914 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
26915 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
26916 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
26917 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
26918 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
26919 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
26920 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
26921 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
26922 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
26923 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
26924 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
26925 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
26927 2005-09-21 Jackson Harper <jackson@ximian.com>
26929 * TreeNode.cs: Call Before/After Expand not Collapse when
26932 2005-09-20 Jackson Harper <jackson@ximian.com>
26934 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
26936 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26940 - Fixes proper storing of subitems
26941 - Fixes not updated items
26943 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26945 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
26946 things if our window handle isn't created yet. Also disabled
26947 debug for TextBoxBase
26949 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26951 * MenuAPI.cs: Remove filtering of events to allow menu usage
26953 2005-09-20 Miguel de Icaza <miguel@novell.com>
26955 * Cursor.cs: Allow null to be passed to Cursor.Current.
26957 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
26959 * ThemeWin32Classic.cs:
26960 - Change some private methods/fields to protected virtual so that
26961 they can be accessed and overriden in derived classes
26962 - First refactoring of some methods. Derived themes now don't
26963 need to duplicate the complete code from ThemeWin32Classic
26965 - Added nice StatusBar
26966 - Derive from ThemeWin32Classic and not Theme
26967 - Removed duplicate ThemeWin32Classic code
26969 2005-09-20 Miguel de Icaza <miguel@novell.com>
26971 * Control.cs (ControlCollection.Add): If the value null is passed
26972 the control is ignored.
26974 Optimize this loop.
26976 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26978 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
26979 PostQuitMessage state.
26980 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
26982 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26984 * Application.cs: Our constructor will never get called, move
26985 initialization to fields; fixes bug #75933
26987 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26990 - Allow files to be selected properly using file name
26992 - Add ability to change diretory (absolute / relative)
26993 using file name combo box.
26995 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26998 - Fixes Multicolumn listboxes item wrong calculations
26999 - Allows to click when only one item is in the listbox
27000 - Fixes crash when no items using keyboard navigation
27002 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
27004 * ComboBox.cs: Reverted almost everything from the latest patch which
27007 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
27010 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
27012 - When DropDownStyle is Simple, it does not show scrollbar
27013 to the last item of the list.
27014 - When DropDownStyle is Simple, it crashed when the list was
27015 scrolled down with the down cursor key.
27016 - Fixed a bug that when DropDownStyle is DropDownList, the
27017 selected item was not shown.
27018 - The position of the selected item was not preserved when
27019 the next dropdown happened.
27020 * ThemeWin32Classic.cs:
27021 - Items were wrapped at the right end.
27022 * CheckedListBox.cs:
27025 - Items should be fully shown.
27026 - When resizing and vertical scrollbar disappeared, the item
27027 of index 0 should be on the top of the list.
27028 - GetItemRectangle should consider the size of ver. scrollbar
27030 - SizingGrip area should not be allocated when it is not
27032 - Now it reflects MinWidth of the containing panel and
27033 fixed a crash that happens when its width becomes so small.
27035 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27037 * CheckedListBox.cs: Fixes bug 76028
27038 * ListBox.cs: Fixes bug 76028
27040 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27042 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
27043 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
27045 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
27047 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
27049 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27051 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
27053 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27055 * IRootGridEntry.cs: Added
27056 * PropertyGridCommands.cs: Added
27057 * PropertiesTab.cs: Added missing methods and property
27058 * PropertyGridView.cs: Made class internal
27059 * PropertyGridTextBox.cs: Made class internal
27061 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27063 * MimeIcon.cs: Try to check some other environment variables
27064 if "DESKTOP_SESSION" returns "default"
27066 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27068 * ThemeNice.cs: Corrected background colors (e.g. menus)
27069 * ColorDialog.cs: Use correct background colors for controls
27071 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27073 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
27075 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
27077 * RichTextBox.cs: Added initial implementation
27078 * lang.cs: Removed. Was accidentally checked in long time ago
27079 * TODO: Removed. Contents were obsolete
27081 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27083 * PropertiesTab.cs : Added
27085 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27087 * PropertyGrid.cs : Update
27088 * PropertyGridView.cs : Update
27089 * System.Windows.Forms.resx : Added images and strings
27091 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27093 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
27095 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27097 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
27098 a busy loop right after the Ungrab the X11 display is otherwise
27101 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
27103 * ThemeWin32Classic.cs: Optimise the use of clipping
27105 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
27107 * DataGrid.cs: fixes recursion bug
27109 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
27112 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
27115 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
27117 * ThemeNice.cs: Draw nice ProgressBars
27119 2005-09-01 Miguel de Icaza <miguel@novell.com>
27121 * VScrollBar.cs: Another buglet found by Aaron's tool.
27123 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
27126 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
27129 - Added nicer menu drawing
27133 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27135 * CreateParams.cs (ToString): Made output match MS
27136 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
27137 handle is already created (to avoid forcing window creation)
27138 * XplatUIX11.cs: Set window text to caption after creating window,
27139 in case Text was set before window was created
27140 * Form.cs: Use this.Text instead of a static string as caption
27142 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27144 * NotifyIcon.cs: Don't set the window to visible; this screws
27145 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
27146 OnPaint without a bitmap)
27147 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
27148 happen very often anyway; we could add the check to the WM_PAINT
27149 event generation code
27151 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27153 * NotifyIcon.cs: Fill the icon area with a background color, to
27154 avoid 'residue' when transparent icons are drawn
27156 - Handle whole_window == client_window when destroying windows
27157 - SystrayAdd(): Set client_window to whole_window value to
27158 get mouse and other events passed to NotifyIcon
27160 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27162 * Form.cs: Set proper default for Opacity property
27164 - ShowSystray(): Don't bother creating telling the OS
27165 about the systray item if no icon is provided
27166 - Now handles WM_NCPAINT message to deal with whole/client window
27168 - Create window as visible to not get caught by Expose optimization
27169 * Hwnd.cs: Removed debug message
27170 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
27171 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
27172 PaintEventStart/End to use new client argument
27174 - Commented out debug messages
27175 - Switched PaintEventStart/End to use new client argument
27176 * XplatUI.cs: Added client window bool to PaintEventStart()/
27177 PaintEventEnd() calls, to support drawing in non-client areas
27178 * XplatUIDriver.cs:
27179 - Added client window bool to PaintEventStart()/PaintEventEnd()
27180 calls, to support drawing in non-client areas
27181 - Added conditional compile to allow using MWF BeginInvoke
27184 - Added some conditional debug output
27185 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
27186 whole/client window split
27187 - Implemented handling of client argument to PaintEventStart()/End()
27189 - Throw exception if BeginInvoke() is called and the window handle
27190 or one of the window's parent handles is not created
27191 - Added conditional compile to allow using MWF BeginInvoke on
27193 - get_Parent(): Only sets parent if handle is created. This avoids
27194 forcing window handle creation when parent is set.
27195 - Now fires Layout and Parent changed events in proper order
27196 - Switched to use Handle instead of window.Handle for Z-Order setting,
27197 the get_Parent() patch above causes us to possibly get null for 'window'
27198 - Implemented handling of client argument to PaintEventStart()/End()
27199 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
27201 - Now sends a Refresh() to all child windows when Refresh() is called
27203 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
27205 * Form.cs: Added (non-functional) Opacity property
27206 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
27208 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
27209 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
27210 use export MONO_THEME=nice to activate it.
27211 Currently supported controls:
27215 - TabControl (TabAlignment.Top only, other will follow)
27216 * ThemeEngine.cs: Add theme nice
27217 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
27220 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27222 * Splitter.cs: Resize docked control and its neighbor.
27224 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27225 -- Making Windows with Menus layout correctly --
27226 * Form.cs : The first leg of the fix
27227 Menu setter - adjust Client Size as needed to make space for the menu
27228 SetClientSizeCore - doesn't call base version to be able to pass the
27229 menu handle to XplatUI.CalculateWindowRect
27230 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
27231 * XplatUIX11.cs: The critical second leg of the fix
27232 GetWindowPos needs to use a recalculated client_rect
27233 so that resizing the window doesn't break layout of child controls.
27234 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
27235 Lots of \t\n killed
27237 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
27239 * Label.cs: Now properly recalculates width and height on Font and Text
27240 changes if AutoSize is set
27242 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27243 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
27245 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
27247 * ImageList.cs: Makes ToString method compatible with MS
27249 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
27251 * MenuAPI.cs: fixes bug 75716
27253 2005-08-11 Umadevi S <sumadevi@novell.com>
27254 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
27256 2005-08-11 Umadevi S <sumadevi@novell.com>
27257 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
27259 2005-08-10 Umadevi S <sumadevi@novell.com>
27260 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
27262 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
27264 * Menu.cs: fixes bug 75700
27265 * MenuAPI.cs: fixes navigation issues
27267 2005-08-09 Umadevi S <sumadevi@novell.com>
27268 * CheckedListBox.cs - simple fix for GetItemChecked.
27270 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
27272 * ComboBox.cs: Serveral fixes
27273 * ListBox.cs: Serveral fixes
27275 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27277 * ComboBox.cs: Fixes FindString methods and GetItemHeight
27278 * ListBox.cs: Fixes FindString methods
27280 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27282 * DataGrid.cs: fixes bugs exposed by new tests
27284 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
27286 * Mime.cs: Compile Mono assembly references only if compiling
27287 with Mono (Allows to build with VS.Net again)
27289 2005-07-28 Marek Safar <marek.safar@seznam.cz>
27291 * Control.cs (PaintControlBackground): Draw background image
27293 (CheckForIllegalCrossThreadCalls): Stubbed.
27295 * Form.cs (OnCreateControl): Center when should be centered.
27297 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
27299 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
27301 * Binding.cs: Binding to properties should be case unsensitive
27303 2005-07-18 vlindos@nucleusys.com
27305 * DataGrid.cs: fixes setmember order
27307 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
27309 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
27310 * FileDialog.cs: FileDialog is now resizable and uses the new
27313 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
27315 * DataGridTextBoxColumn.cs: default value
27316 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
27317 * GridTableStylesCollection.cs: fixes checking MappingName
27318 * DataGridDrawingLogic.cs: fixes drawing logic issues
27319 * DataSourceHelper.cs: rewritten to make compatible with more data sources
27320 * DataGrid.cs: fixes
27322 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
27324 * MimeGenerated.cs: Use case sensitive comparer for
27325 NameValueCollections
27327 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
27329 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
27330 * ThemeWin32Classic.cs: bug fixes, code refactoring
27331 * DataGridDrawingLogic.cs: bug fixes, code refactoring
27332 * DataGrid.cs: bug fixes, code refactoring
27333 * DataGridTextBox.cs: bug fixes, code refactoring
27334 * DataGridColumnStyle.cs: bug fixes, code refactoring
27335 * Theme.cs: bug fixes, code refactoring
27337 2005-07-01 Peter Bartok <pbartok@novell.com>
27339 * TextControl.cs: Quick fix for the reported crash on ColorDialog
27340 and other text box usage
27342 2005-07-01 Jackson Harper <jackson@ximian.com>
27344 * TabControl.cs: Make sure the bottom of the tab covers the pages
27347 2005-06-30 Peter Bartok <pbartok@novell.com>
27349 * Form.cs (ShowDialog): Assign owner of the dialog
27350 * TextBoxBase.cs: Always refresh caret size when deleting, caret
27351 might have been moved to a tag with different height
27353 2005-06-30 Jackson Harper <jackson@ximian.com>
27355 * Form.cs: Don't create an infinite loop when setting focus
27356 * MenuItem.cs: Don't dirty the parents if we don't have any
27358 2005-06-29 Ben Maurer <bmaurer@ximian.com>
27360 * LibSupport.cs: Rename
27362 2005-06-29 Peter Bartok <pbartok@novell.com>
27364 * TextBoxBase.cs: Re-align caret after deleting a character
27366 - DeleteChars(): Ensure that tag covers the provided position
27367 - StreamLine(): Drop reference for dropped tag
27369 2005-06-29 Peter Bartok <pbartok@novell.com>
27372 - Selections now work properly, anchoring at the initial location
27373 and properly extending in either direction (SetSelectionToCaret(),
27374 SetSelectionStart() and SetSelectionEnd())
27375 - No longer redraws the whole control on selection change, now
27376 calculates delta between previous and new selection and only
27377 invalidates/redraws that area
27378 - Fixed FindPos() math off-by-one errors
27379 - Changed DeleteChars() to verify the provided tag covers the
27380 provided position, selections may have a tag that doesn't cover
27381 the position if the selection is at a tag border
27382 - Fixed off-by-one errors in DeleteChars()
27383 - Added missing streamlining check in DeleteChars() to remove
27385 - Implemented Invalidate() method, now properly calculates exposures
27386 between two given lines/positions
27387 - Implemented SetSelection()
27388 - Obsoleted and removed FixupSelection()
27389 - Improved RecalculateDocument() logic, removing code duplication
27391 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27393 * LibSupport.cs: changes to match different input/output arguments.
27395 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27397 * LibSupport.cs: added libsupport.so init routine.
27399 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
27401 * ControlBindingsCollection.cs
27402 - Throws an exception on null datasource when adding
27403 - Checks for duplicated bindings when adding
27405 2005-06-28 Jackson Harper <jackson@ximian.com>
27407 * TreeView.cs (OnKeyDown): Support left and right properly
27408 (navigates as well as expanding and collapsing.
27409 - Add support for Multiply, this expands all the selected nodes
27411 - Fix some tabbing.
27413 2005-06-28 Jackson Harper <jackson@ximian.com>
27415 * TreeView.cs: Implement keyboard navigation, currently supports,
27416 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
27417 support for toggling checkboxes with the space bar.
27419 2005-06-28 Jackson Harper <jackson@ximian.com>
27421 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
27424 2005-06-28 Jackson Harper <jackson@ximian.com>
27426 * TreeView.cs: Add missing event.
27428 2005-06-27 Peter Bartok <pbartok@novell.com>
27431 - Made line ending size configurable (now allows for counting
27432 lineendings as \n or \r\n)
27433 - Added margin to viewport to keep caret visible on right side
27434 - Fixed translation routines for line/pos to documentpos to consider
27435 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
27436 - Fixed some line-endings to be unix style
27437 - Fixed Document.FormatText to perform it's calculations 1-based
27438 - Added descriptions for a few methods that might otherwise get
27440 - Added NOTE section with some basic conventions to remember at
27441 the top of the file
27442 - Major fixup for RichTextBox selection drawing:
27443 * Fixed crashes when multiple tags on a single line were selected
27444 * fixed selection box drawing not overlaying text
27445 * fixed bogus offset calculation for tags not starting at index 1
27446 * Switched behaviour from using multiple Substrings of a
27447 StringBuilder.ToString() to using multiple
27448 StringBuilder.ToString(start, length) statements, hoping this is
27449 faster (kept original version commented out in the code, in case
27450 original version was faster)
27451 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
27453 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
27456 2005-06-27 Jackson Harper <jackson@ximian.com>
27458 * TabControl.cs: Move to the left and right with the arrow
27459 keys. These keys don't cycle beyond first and last like
27460 tab. Refresh all the tabs when scrolling them to the left or
27463 2005-06-27 Jackson Harper <jackson@ximian.com>
27466 - ToString: Added method
27467 - CreateParams: Remove TODO and comment
27468 - OnKeyDown: Cycle through bounds properly.
27469 - SelectedIndex: Scroll to the right or left if we need to
27470 display the newly selected tab.
27472 2005-06-23 Jackson Harper <jackson@ximian.com>
27474 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27477 2005-06-23 Jackson Harper <jackson@ximian.com>
27479 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27480 CTRL-SHIFT-TAB, and HOME, END are there any others?
27482 2005-06-23 Jackson Harper <jackson@ximian.com>
27484 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27486 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27488 * DataGridTextBoxColumn.cs: fixes and enhancements
27489 * ThemeWin32Classic.cs: fixes and enhancements
27490 * DataGridBoolColumn.cs: fixes and enhancements
27491 * DataGridDrawingLogic.cs: fixes and enhancements
27492 * CurrencyManager.cs: fixes and enhancements
27493 * DataGrid.cs: fixes and enhancements
27494 * DataGridColumnStyle.cs: fixes and enhancements
27496 2005-06-22 Jackson Harper <jackson@ximian.com>
27498 * TabControl.cs: Add some missing methods that just call into the
27499 base. Make the TabPageCollection's IList interface behave in the
27500 same manner as the MS implementation.
27502 2005-06-22 Peter Bartok <pbartok@novell.com>
27504 * TextControl.cs: Added sanity check
27506 - Fixed wrapping behaviour, don't set wrap on single line controls
27507 (this fixes the breakage of colordialog introduced in an earlier
27509 - Added rudimentary support for autoscrolling right-aligned controls
27510 (still needs fixing, also, center alignment scroll is missing)
27512 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27514 * ScrollBar.cs: Fixes thumbpos on Maximum values
27516 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
27518 * PropertyGridView.cs: Pass context information to UITypeEditors
27520 2005-06-21 Peter Bartok <pbartok@novell.com>
27523 - Now calling PositionCaret with absolute space coordinates
27524 - Enabled vertical scrolling
27525 - Better tracking of scrollbar changes, tied into WidthChange
27527 - Improved cursor tracking
27528 - Removed debug output
27530 - PositionCaret coordinates are now works in absolute space, not
27532 - Improved tracking of document size
27533 - Added events for width and height changes
27535 2005-06-21 Peter Bartok <pbartok@novell.com>
27537 * Form.cs: Set focus to active control when form is activated
27539 - Added word-wrap functionality to RecalculateLine()
27540 - Added some short function descriptions for VS.Net to aid in
27541 writing dependent controls
27542 - Added Caret property, returning the current coords of the caret
27543 - Added ViewPortWidth and ViewPortHeight properties
27544 - Added Wrap property
27545 - Added CaretMoved event
27546 - Removed some old debug code
27547 - Split() can now create soft splits
27548 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27549 - Added method to format existing text
27550 - Fixed size/alignment calculations to use viewport
27551 - RecalculateDocument now can handle changing line-numbers while
27555 - Added some wrap logic, we don't wrap if alignment is not left
27556 - Added casts for scrollbar var, base class switched types to
27557 also support RichTextBoxA
27558 - Implemented handling of scrollbar visibility flags
27561 - Switched scrollbars type to RichTextBoxScrollBars to support
27563 - Added tracking of canvas width/height
27564 - Switched scrollbars to be not selectable (to keep focus on text)
27565 - Added central CalculateDocument() method to handle all redraw
27567 - Added ReadOnly support
27568 - Added WordWrap support
27569 - Fixed handling of Enter key (we now treat it as a DialogKey)
27570 - Fixed caret positioning when h or v scroll is not zero
27571 - Fixed placing/generation of vertical scrollbar
27572 - Added CalculateScrollBars() method to allow updating scrollbar
27573 limits and visibility
27574 - Fixed handling of horizontal scroll
27575 - Added handling of vertical scroll
27576 - Implemented auto-'jump' when caret moves to close to a left or
27577 right border and there is text to be scrolled into view (currently
27578 there's the potential for a stack overflow, until a bug in
27579 scrollbar is fixed)
27581 2005-06-21 Geoff Norton <gnorton@customerdna.com>
27583 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27585 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
27589 - return application/x-zerosize for files with size zero
27590 (if no extension pattern matches).
27591 - check matches collection for strings too.
27592 - return only the first mime type if the name value
27593 collection has more than one mime type.
27595 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
27597 * PropertyGrid.cs: Cleaned up some TODOs
27598 * PropertyGridView.cs: Added support for UITypeEditors
27600 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27602 * DataGrid.cs: clears cached value
27604 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27606 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
27607 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
27608 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
27609 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
27611 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
27613 * ThemeWin32Classic.cs: fixes colour
27615 2005-06-15 Peter Bartok <pbartok@novell.com>
27617 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
27618 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
27619 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
27620 * Control.cs: Added some MWFCategory and MWFDescription attributes
27621 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
27623 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
27625 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
27628 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
27630 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
27631 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
27632 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
27633 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
27634 * DataGrid.cs: default datagrid settings for Default Styles, fixes
27635 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
27637 2005-06-13 Jackson Harper <jackson@ximian.com>
27639 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
27640 isn't printed when the user enables dropping. (X11 does accept
27643 2005-06-13 Jackson Harper <jackson@ximian.com>
27645 * TreeView.cs: Remove some TODOS.
27647 2005-06-13 Jackson Harper <jackson@ximian.com>
27649 * Form.cs: Hook into the mdi framework.
27650 * MdiClient.cs: Use the base control collections add method so
27651 parents get setup correctly. Set the default back colour and dock
27653 * MdiChildContext.cs: New class, this bad actor handles an
27654 instance of an MDI window. Right now there is only basic
27655 support. You can drag, close, and resize windows. Minimize and
27656 Maximize are partially implemented.
27658 2005-06-13 Jackson Harper <jackson@ximian.com>
27660 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
27661 freaky when both vals are negative. NOTE: There are probably other
27662 places in XplatUIX11 that this needs to be done.
27664 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
27666 * DataGrid.cs: implement missing methods, move KeyboardNavigation
27667 * DataGridColumnStyle.cs: fixes signature
27669 2005-06-12 Jackson Harper <jackson@ximian.com>
27671 * XplatUIX11.cs: Use sizing cursors similar to the ones on
27674 2005-06-11 Jackson Harper <jackson@ximian.com>
27676 * StatusBarPanel.cs: Signature cleanups. Implement
27679 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
27681 * DataGridTextBoxColumn.cs: Honors aligment
27682 * GridColumnStylesCollection.cs: Contains is case unsensitive
27683 * GridTableStylesCollection.cs: several fixes
27684 * DataGridTableStyle.cs: default column creation
27685 * DataGridDrawingLogic.cs: fixes
27686 * CurrencyManager.cs: ListName property
27687 * DataGrid.cs: multiple styles support
27688 * DataGridColumnStyle.cs: fixes
27691 2005-06-10 Peter Bartok <pbartok@novell.com>
27693 * Control.cs(Select): Moved SetFocus call to avoid potential
27694 loops if controls change the active control when getting focus
27695 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
27696 the up/down buttons
27698 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
27700 * ImageListConverter.cs: Implemented
27702 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
27704 * MonthCalendar.cs: Wired in NumericUpDown control for year
27706 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
27708 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
27709 DoubleClick events, since they are not meant to be fired.
27711 2005-06-09 Peter Bartok <pbartok@novell.com>
27713 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
27714 Jonathan's standalone controls into MWF, implemented missing
27715 events, attributes and methods; added xxxAccessible classes
27716 * AccessibleObject.cs: Made fields internal so other classes
27717 can change them if needed
27719 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
27721 * UpDownBase.cs: Complete implementation
27722 * NumericUpDown.cs: Complete implementation
27723 * DomainUpDown.cs: Complete implementation
27725 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
27727 * DataGridTextBoxColumn.cs: drawing fixes
27728 * DataGridCell.cs: fixes ToString method to match MSNet
27729 * DataGridTableStyle.cs: fixes
27730 * DataGridBoolColumn.cs: fixes, drawing
27731 * DataGridDrawingLogic.cs: fixes, new methods
27732 * DataGridTextBox.cs: Keyboard and fixes
27734 - Keyboard navigation
27736 - Row selection (single, multiple, deletion, etc)
27739 2005-06-07 Jackson Harper <jackson@ximian.com>
27741 * ThemeWin32Classic.cs: Clear the background area when drawing
27744 2005-06-06 Peter Bartok <pbartok@novell.com>
27746 * ImageListStreamer.cs: Fixed signature for GetData
27747 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
27749 - Added missing ChildAccessibleObject class
27750 - Added missing OnXXXFocus overrides, switched to using those
27751 instead of the event handler
27753 - Added Parent property for ControlAccessibleObject
27756 - Added ResetBindings()
27757 * ListBindingConverter.cs: Implemented some methods
27758 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
27759 * ImageList.cs: Implemented basic handle scheme, removed TODOs
27760 * ContainerControl.cs: Fixed signature, now subscribing to the
27761 ControlRemoved event instead of overriding the handler, LAMESPEC
27762 * CurrencyManager.cs: Added missing attribute
27763 * MonthCalendar.cs: Added missing properties
27765 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
27767 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
27769 2005-06-06 Gaurav Vaish and Ankit Jain
27771 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
27772 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
27774 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
27776 * Control.cs: fixes CreateParams Width / Height.
27778 2005-06-05 Peter Bartok <pbartok@novell.com>
27780 * Win32DnD.cs: Removed compilation warnings
27782 2005-06-05 Peter Bartok <pbartok@novell.com>
27784 * Control.cs (CreateParams): Since we don't know if one of the
27785 properties we use is overridden, lets make sure if we fail accessing
27786 we continue with a backup plan
27788 2005-06-05 Peter Bartok <pbartok@novell.com>
27791 - Removed debug output
27792 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
27794 - Plugged resource leak
27795 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
27798 2005-06-05 Peter Bartok <pbartok@novell.com>
27800 * XplatUIWin32.cs: Removed DnD code
27801 * Win32DnD.cs: Implemented drop source and drop target functionality
27803 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27805 * UpDownBase.cs: remove duplicate addition of event, enable some code
27806 that was commented out.
27807 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
27808 Validate input when a key is pressed. It works fine now for every
27809 combination of Hexadecimal. Only missing some drawing love when sharing
27810 space with other controls.
27812 2005-06-04 Peter Bartok <pbartok@novell.com>
27815 - We need to pass a window for DragDrop, so enable callback events
27816 - Added DnD callback events when being a DragSource
27817 * XplatUI.cs (StartDrag): Added window handle argument
27818 * XplatUIDriver.cs (StartDrag): Added window handle argument
27819 * QueryContinueDragEventArgs: Made fields internally accessible so
27820 drivers can set them
27821 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
27824 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
27826 * DataGridTextBoxColumn.cs: column text editing
27827 * DataGridTableStyle.cs: Respect columns styles created by the user
27828 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
27829 * DataGridBoolColumn.cs: bool column editing
27830 * DataGrid.cs: fixes to scrolling, properties, etc
27831 * DataGridTextBox.cs: handle keyboard
27832 * DataGridColumnStyle.cs: fixes
27834 2005-06-02 Jackson Harper <jackson@ximian.com>
27836 * ImageListStreamer.cs: Somewhat broken implementation of
27837 GetObjectData. The RLE needs some work to match MS properly.
27839 2005-06-02 Jackson Harper <jackson@ximian.com>
27841 * X11Dnd.cs: Attempting to keep at least one file in MWF
27844 2005-06-02 Peter Bartok <pbartok@novell.com>
27846 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
27849 2005-06-02 Peter Bartok <pbartok@novell.com>
27851 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
27852 * XplatUI.cs: Added DoDragDrop() method
27853 * XplatUIDriver.cs: Added DoDragDrop() method
27855 2005-06-02 Jackson Harper <jackson@ximian.com>
27857 * Splitter.cs: Implement BorderStyle.
27859 2005-06-02 Jackson Harper <jackson@ximian.com>
27861 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
27862 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
27865 2005-06-02 Peter Bartok <pbartok@novell.com>
27868 - Added Data setter
27869 - Fixed broken insertion code for SetData, now also
27870 overwrites any existing entry of the same format name
27871 * Hwnd.cs: Added list of pointers that automatically gets
27872 freed when the window is disposed
27873 * XplatUI.cs: Call driver initialization method when loading
27876 - OnDragLeave takes EventArgs, not DragEventArgs
27877 - Added setting of WS_EX_ACCEPTFILES style when dropping is
27879 - Forces style update when drop state changes
27880 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
27881 not perfect since we cannot (yet) call the IDataObject.GetData()
27882 method, we keep getting 0x80004005 error, dunno why)
27884 2005-06-02 Peter Bartok <pbartok@novell.com>
27886 * DragEventArgs.cs: Make fields internal so we can cache the
27887 object and re-set the fields from XplatUI
27889 2005-06-02 Jackson Harper <jackson@ximian.com>
27891 * Control.cs: Add some internal methods so the DnD subsystem can
27892 raise DnD events. Also call into the driver when AllowDrop is set.
27894 * XplatUIDriver.cs: New method for setting whether or not a window
27895 is allowed to accept drag and drop messages.
27897 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
27899 * ScrollBar.cs: Make sure that values sent in Scroll events
27900 are always between Maximum and Minimum.
27902 2005-06-01 Marek Safar <marek.safar@seznam.cz>
27904 * Menu.cs: Call MenuChanged when menuitem visibility has been
27906 * MenuItem.cs: Rebuild menu when item is (not) visible.
27907 * MainMenu.cs: MainMenu has special MenuChanged.
27908 * Theme.cs: Caption and FrameBorderSize are not fixed.
27909 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
27910 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
27912 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
27913 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
27915 2005-05-30 Jackson Harper <jackson@ximian.com>
27917 * DataFormat.cs: We can't statically initialize this stuff because
27918 it calls into the xplatui and could create a loop. So we lazy init
27921 2005-05-28 Jackson Harper <jackson@ximian.com>
27923 * Control.cs: Proper implementation of Product(Name/Version).
27925 2005-05-27 Jackson Harper <jackson@ximian.com>
27927 * DataObject.cs: Dont crash if no data is found.
27929 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27930 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
27931 as per status page, guessing it should be set to true
27933 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
27935 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
27936 * DataGridTableStyle.cs: set proper formatting text, def header text
27937 * ThemeWin32Classic.cs: new themable paramaters
27938 * DataGridBoolColumn.cs: paint check box, get data, fixes
27939 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
27940 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
27941 * DataGridColumnStyle.cs: fixes
27942 * Theme.cs: new themable paramaters
27944 2005-05-26 Peter Bartok <pbartok@novell.com>
27946 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
27948 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27949 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
27951 2005-05-24 Peter Bartok <pbartok@novell.com>
27953 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
27954 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
27955 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
27956 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
27957 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
27958 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
27959 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
27960 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
27961 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
27962 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
27963 missing attributes, etc
27964 * DataGridPreferredColumnWidthTypeConverter.cs: Added
27966 2005-05-24 Peter Bartok <pbartok@novell.com>
27968 * Help.cs: Added, implemented trivial functions, throws up MessageBox
27969 when user tries to get help
27970 * DataObject.cs, DataFormats.cs, LinkArea.cs,
27971 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
27972 to suppress warnings
27973 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
27974 avoid unreachable code warning
27976 2005-05-20 Peter Bartok <pbartok@novell.com>
27978 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
27980 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27982 * DataGridTextBoxColumn.cs: Basic painting methods
27983 * DataGridTableStyle.cs: Set table style in the column
27984 * ThemeWin32Classic.cs: Use Theme for colors
27985 * DataGridDrawingLogic.cs: Implement more drawing
27986 * DataGrid.cs: drawing, theming, enhacements, fixes
27987 * DataGridColumnStyle.cs: fixes, drawing
27988 * Theme.cs: theming for Datagrid
27990 2005-05-20 Peter Bartok <pbartok@novell.com>
27992 * Cursor.cs: Implemented GetObjectData() method
27994 2005-05-20 Peter Bartok <pbartok@novell.com>
27996 * Cursors.cs: Added setting of cursor name
27998 - Implemented constructors
27999 - Implemented Draw and DrawStretched
28000 - Implemented Current property
28001 - Implemented == and != operators
28002 - Implemented Dispose()
28003 - Implemented ToString
28004 - Added missing attributes
28006 - Added missing reset for OverrideCursor when DoEvents is called
28007 - Fixed creation of cursor, logic was wrong
28009 - Added missing reset for OverrideCursor when DoEvents is called
28010 - Fixed creation of cursor, bit arrays were swapped
28011 * Clipboard.cs: Removed obsolete MonoTODO attribute
28013 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28015 * ComboBox.cs: fixes OnSelectedItemChanged
28016 * ControlBindingsCollection.cs: fixes item range check
28018 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28021 - Calc preferred height properly
28022 - Implement missing properties
28024 * NumericUpDown.cs: Implement missing events
28026 2005-05-19 Jackson Harper <jackson@ximian.com>
28028 * TabControl.cs: New method that resizes the tab pages before
28029 redrawing them. This as needed as the control is double buffered
28030 and sizing will not be recalculated unless ResizeTabPages is
28032 * TabPage.cs: Set base.Text instead of Text in the constructor so
28033 that UpdateOwner does not get called. Use the new Redraw method of
28034 TabControl instead of Refresh so the sizing is recalculated.
28035 * ThemeWin32Classic.cs: Draw the text for button tabs.
28037 2005-05-19 Jackson Harper <jackson@ximian.com>
28039 * Control.cs: Paint control background images. Fix typo where
28040 PaintControlBackground was not getting called correctly.
28042 2005-05-19 Peter Bartok <pbartok@novell.com>
28044 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
28045 I can investigate, apparently I broke FileDialog
28047 2005-05-19 Marek Safar <marek.safar@seznam.cz>
28049 * AxHost.cs: Some simple properties.
28050 * Control.cs: window must be accessible after ctor.
28051 * Form.cs: Added TransparencyKey property.
28052 * TextBoxBase.cs: Implemented Clear. Text property can be null.
28053 * XplatUIWin32.cs: SetBorderStyle implemented.
28055 2005-05-18 Peter Bartok <pbartok@novell.com>
28057 * DataObject.cs: Entries are not global but particular to the
28058 DataObject, now it behaves that way
28059 * XplatUIWin32.cs: Implemented Clipboard methods
28060 * Clipboard.cs: Implemented
28061 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
28062 * XplatUIOSX.cs: Updated to final clipboard prototypes
28063 * XplatUIX11.cs: Implemented Clipboard methods
28064 * XplatUIDriver.cs: Updated to final clipboard prototypes
28065 * XplatUIStructs.cs:
28066 - Added BITMAPINFOHEADER struct
28067 - Added ClipboardFormats enum
28069 - Added ClipboardStruct
28070 - Added Atom enum items for clipboard types
28071 - Fixed atom types for Selection event structures
28073 - Added internal properties and methods for drivers to enumerate
28075 - Switched initialization method to allow drivers to assign their
28076 own IDs even for the MS predefined clipboard IDs
28077 * XplatUI.cs: Updated to final clipboard interface
28079 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28080 * PropertyGridView.cs: Fixed compiler warnings.
28082 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28083 * PropertyGrid.cs: Added some event calls
28084 * PropertyGridView.cs: Change drawing code to use double buffering
28085 * PropertyGridTextBox.cs: Changed Text property name
28086 * GridItem.cs: Added Bounds property.
28087 * GridEntry.cs: Added Bounds property.
28089 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
28091 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
28092 since GetType() may not return the correct type if the object is
28095 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
28097 * TreeNodeCollection.cs: fixes get/set item ranges
28099 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28101 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
28103 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28105 * ComboBox.cs: Fix item range comparation
28106 * ListView.cs: Fix item range comparation
28108 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28111 - Clear example panel when OnPaint is called
28112 - Better solution for displaying the example panel text
28113 - Select default indexes in the ListBoxes
28115 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28117 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
28119 2005-05-11 Peter Bartok <pbartok@novell.com>
28121 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
28122 * SelectionRangeConverter.cs: Implemented
28123 * PropertyGrid.cs: Fixed attribute value
28125 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
28126 - Added Sebastien Pouliot's CAS Stack Propagation fixes
28127 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
28128 that's common to all drivers. First methods to go there are
28129 Sebastien Pouliot's CAS Stack Propagation helper methods
28130 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
28131 Sebastien Pouliot for CAS Stack Propagation
28133 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28136 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
28138 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
28140 * DataGridTextBoxColumn.cs: fixed some members
28141 * GridColumnStylesCollection.cs: indexed column is case insensitive
28142 * DataGridTableStyle.cs: fixes
28143 * ThemeWin32Classic.cs: add new theme parameter
28144 * Theme.cs: add new theme parameter
28145 * DataGridDrawingLogic.cs: Datagrid's drawing logic
28146 * DataGrid.cs: fixes, new internal properties, etc.
28147 * DataGridColumnStyle.cs: allows to set grid value
28150 2005-05-10 Peter Bartok <pbartok@novell.com>
28152 * AccessibleObject.cs:
28153 - Removed MonoTODO attribute on help, method is correct
28154 - Fixed Bounds property
28155 * AxHost.cs: Moved MonoTODO
28156 * ButtonBase.cs: Now setting AccessibleObject properties
28157 * RadioButton.cs: Setting proper AccessibleObject role
28158 * CheckBox.cs: Setting proper AccessibleObject role
28159 * ControlBindingsCollection.cs: Added properties, methods and attributes
28160 * DataFormats.cs: Fixed awkward internal API, and changed to enable
28161 userdefined DataFormats.Format items as well
28162 * ListControl.cs: Removed data_member from the public eye
28163 * OpenFileDialog.cs:
28164 - Made class sealed
28165 - Added missing attributes
28166 * SaveFileDialog.cs: Added missing attributes
28167 * ImageListStreamer.cs: Fixed code that caused warnings
28168 * LinkLabel.cs: Removed unreachable code
28169 * TreeView.cs: Fixed code that caused warnings
28170 * PropertyGridView.cs: Fixed code that caused warnings
28171 * GridColumnStylesCollection.cs: Added missing attributes
28172 * GridTableStylesCollection: Added missing attribute
28173 * PropertyManager: Added .ctor
28174 * SecurityIDType: Added
28175 * DataObject.cs: Implemented class
28176 * LinkArea.cs: Added missing attribute
28178 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
28180 * RadioButton.cs: call base method to allow to fire OnClick event
28181 * UpDownBase.cs: OnMouseUp call base method
28182 * CheckedListBox.cs: call base method before returning
28183 * TrackBar.cs: call base method before returning
28186 2005-05-10 Peter Bartok <pbartok@novell.com>
28188 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
28191 2005-05-10 Peter Bartok <pbartok@novell.com>
28193 * DataFormats.cs: Implemented
28194 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
28195 XplatUIX11.cs: Added Clipboard APIs
28196 * XplatUIWin32.cs: Implemented Clipboard APIs
28197 * FolderBrowserDialog.cs: Added missing event, attributes
28199 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
28201 * CheckBox.cs: call base method to allow to fire OnClick event
28203 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
28205 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
28207 2005-05-06 Peter Bartok <pbartok@novell.com>
28209 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
28210 * Screen.cs: Implemented
28211 * HelpNavigator.cs: Added
28212 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
28214 * HelpProvider.cs: Implemented all we can do until we have a CHM
28215 help library (which means that "What's This" does work now)
28217 2005-05-06 Jackson Harper <jackson@ximian.com>
28219 * XplatUIX11.cs: Fix waking up the main loop.
28221 2005-05-05 Peter Bartok <pbartok@novell.com>
28223 * XplatUI.cs: Updated revision
28224 * Form.cs: Removed enless loop
28225 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
28226 * Label.cs (OnPaint): Added call to base.OnPaint()
28227 * ToolTip.cs: Made ToolTipWindow reusable for other controls
28228 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
28229 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
28231 * ButtonBase.cs: Moved base.OnPaint() call to end of method
28232 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
28233 to ToolTip.ToolTipWindow for drawing and size methods; this allows
28234 reuse of ToolTipWindow by other controls
28235 * SizeGrip.cs: Moved base.OnPaint() call to end of method
28236 * XplatUIX11.cs: Now clipping drawing area (experimental)
28237 * PictureBox.cs: Moved base.OnPaint() call to end of method
28238 * Theme.cs: Fixed ToolTip abstracts to match new format
28239 * ErrorProvider.cs: Implemented
28241 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
28243 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
28247 - Implements LinkBehavior
28248 - Fixes many issues
28250 2005-05-03 Jackson Harper <jackson@ximian.com>
28252 * ListView.cs: Calculate the scrollbar positioning on resize and
28253 paint, so they get put in the correct place.
28255 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28257 * ColorDialogs.cs: The small color panels are now handled by
28258 SmallColorControl. This fixes drawing of the focus rectangle
28259 and adds a 3D border.
28261 2005-05-03 Peter Bartok <pbartok@novell.com>
28263 * Control.cs: Modified version of Jonathan Chamber's fix for
28266 2005-05-03 Jackson Harper <jackson@ximian.com>
28268 * ListView.cs: Remove redraw variable. Control now handles whether
28269 or not a redraw needs to be done, and will only raise the paint
28270 event if redrawing is needed.
28272 2005-05-03 Jackson Harper <jackson@ximian.com>
28274 * Splitter.cs: No decorations for the splitter form. Cache the
28277 2005-05-03 Jackson Harper <jackson@ximian.com>
28279 * TreeView.cs: Use dashed lines to connect nodes. Use the
28280 ControlPaint method for drawing the focus rect instead of doing
28283 2005-05-02 Peter Bartok <pbartok@novell.com>
28285 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
28287 2005-04-29 Jackson Harper <jackson@ximian.com>
28289 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
28290 entire image buffer. Just clear the clipping rectangle.
28292 2005-04-29 Jackson Harper <jackson@ximian.com>
28294 * ThemeWin32Classic.cs: Don't draw list view items that are
28295 outside the clipping rectangle.
28297 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
28299 * ListBox.cs: added horizontal item scroll
28301 2005-04-29 Jackson Harper <jackson@ximian.com>
28303 * ThemeWin32Classic.cs: Remove some old debug code that was
28304 causing flicker with the new double buffering code.
28306 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
28308 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
28309 behave like combobox and comboboxlist (still not sure if this is
28312 2005-04-28 Jackson Harper <jackson@ximian.com>
28314 * ThemeWin32Classic.cs: Don't fill the middle of progress
28315 bars. This fills areas outside of the clip bounds that don't need
28318 2005-04-28 Jackson Harper <jackson@ximian.com>
28320 * Control.cs: Don't expose functionality to touch the image buffers.
28322 * ListView.cs: We do not need to (and no longer can) manipulate
28323 the image buffers directly. All of this is handled by Control.
28325 2005-04-28 Peter Bartok <pbartok@novell.com>
28327 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28328 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
28329 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
28331 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28334 - Adjust control's height for non-simple comboboxes (bug fix)
28336 * MenuAPI.cs: remove unused var
28337 * ScrollBar.cs: remove unsed var
28339 * ListBox.cs: unselect items when clearing
28341 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28343 * ListControl.cs: honors OnPositionChanged and default Selected Item
28344 * ListBox.cs: unselect items when clearing
28346 2005-04-27 Jackson Harper <jackson@ximian.com>
28348 * X11Keyboard.cs: Initialize a default keyboard and give a warning
28349 if a "correct" keyboard is not found. This will make us not crash,
28350 but might give some users bad keyboard layouts...seems to be the
28351 same thing rewind does.
28353 2005-04-27 Jackson Harper <jackson@ximian.com>
28355 * BindingManagerBase.cs: Attach the current/position changed
28356 handlers to their respective events.
28358 2005-04-27 Jackson Harper <jackson@ximian.com>
28360 * Control.cs: Make sure that the first WM_PAINT does a full draw,
28362 * ThemeWin32Classic.cs: Don't fill the background for picture
28363 boxes. This could overright user drawing.
28364 * ComboBox.cs: Just fill the clipping rect not the entire client
28365 rect when drawing the background. This prevents pieces of the
28366 image buffer from getting overwritten and is theoretically faster.
28368 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
28370 * ComboBox.cs: Databinding support fixes, fire missing events
28371 * ListControl.cs: implement missing methods and properties, fixes
28372 * ThemeWin32Classic.cs: Databiding support on Drawing
28373 * CheckedListBox.cs: Databinding support fixes, fire missing events
28374 * ListBox.cs: Databinding support fixes, fire missing events
28376 2005-04-25 Peter Bartok <pbartok@novell.com>
28378 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
28380 2005-04-25 Jackson Harper <jackson@ximian.com>
28382 * TreeView.cs: Use the horizontal scrollbars height not width when
28383 determining how much of the client area is available.
28385 2005-04-25 Jackson Harper <jackson@ximian.com>
28387 * Control.cs: Double buffering is handled differently now. As per
28388 the spec, the extra buffer is created in the WM_PAINT message and
28389 passed down to the control's drawing code.
28397 * PropertyGridView.cs:
28409 * DateTimePicker.cs:
28411 * TreeView.cs: Update to new double buffering system.
28412 * MonthCalendar.cs: Uncomment block, as Capture is now
28413 working. Update to new double buffering
28414 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
28415 * PaintEventArgs.cs: New internal method allows us to set the
28416 graphics object. This is used for double buffering.
28417 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
28418 rectangle. The internal paint_area var has been removed from
28419 StatusBar. The clipping rect should be used instead.
28420 * Theme.cs: Give the PictureBox drawing method a clipping rect.
28421 * TabPage.cs: The RefreshTabs method was removed, so just call the
28422 tab controls Refresh method now.
28423 * TabControl.cs: Update to new double buffering. Make sure the
28424 handle is created before sizing the tab pages, otherwise we will
28425 get stuck in a loop.
28427 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
28429 * LinkLabel.cs: Fix typo, bug #74719; patch
28430 from Borja Sanchez Zamorano
28432 2005-04-22 Jackson Harper <jackson@ximian.com>
28434 * TreeNode.cs: Implement Handle stuff.
28435 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
28437 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
28439 * DataGridTextBoxColumn.cs: call base constructors, fixes
28440 * GridColumnStylesCollection.cs: missing events, methods, and functionality
28441 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
28442 * DataGridTableStyle.cs: implements create default column styles
28443 * DataGridBoolColumn.cs: which types can handle
28444 * DataGrid.cs: missing methods, fixes, new functionality
28445 * DataGridColumnStyle.cs: fixes
28447 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
28448 * FolderBrowserDialog.cs:
28449 - Use a thread to fill the TreeView
28450 - Adjusted some sizes
28452 2005-04-19 Peter Bartok <pbartok@novell.com>
28454 * LinkLabel.cs: (Re-)create the pieces when setting the Text
28455 property. Fixes #74360.
28457 2005-04-19 Jackson Harper <jackson@ximian.com>
28459 * XEventQueue.cs: Lock when getting the lockqueue size.
28460 * PictureBox.cs: Call base OnPaint
28462 2005-04-19 Peter Bartok <pbartok@novell.com>
28464 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28465 messages were no longer being processed (this broke BeginInvoke)
28468 2005-04-18 Jackson Harper <jackson@ximian.com>
28470 * TreeView.cs: buglet that caused node images to get drawn
28471 regardless of whether or not they were in the clipping rectangle.
28473 2005-04-18 Jackson Harper <jackson@ximian.com>
28475 * CurrencyManager.cs: There are four rules for GetItemProperties:
28476 - If the type is an array use the element type of the array
28477 - If the type is a typed list, use the type
28478 - If the list contains an Item property that is not an object, use
28480 - use the first element of the list if there are any elements in
28483 2005-04-17 Jackson Harper <jackson@ximian.oom>
28485 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28486 click. This handles offsets for scrolling properly and reduces
28487 memory. Also fixed GetNode to not offset now that TopNode works
28489 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28491 2005-04-17 Jackson Harper <jackson@ximian.com>
28493 * CursorConverter.cs: Initial implementation.
28495 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28497 * ListControl.cs: work towards complex data binding support on ListControl
28498 * CurrencyManager.cs: work towards complex data binding support on ListControl
28499 * ListBox.cs: work towards complex data binding support on ListControl
28502 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28504 * GridTableStylesCollection.cs: fixes name and constructor
28505 * DataGridTableStyle.cs: fixes
28506 * DataGridBoolColumn.cs: fixes names and constructors
28507 * DataGrid.cs: define methods and properties. Some init implementations
28508 * DataGridCell.cs: define methods and properties. Some init implementations
28509 * GridTablesFactory.cs: Define methods and properties
28511 2005-04-15 Geoff Norton <gnorton@customerdna.com>
28513 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
28514 graphics port changes. We still want the coordinates in global screen
28517 2005-04-14 Jackson Harper <jackson@ximian.com>
28519 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28520 check plus minus or checkbox clicks unless those features are enabled.
28522 2005-04-14 Jackson Harper <jackson@ximian.com>
28524 * TreeView.cs: Add methods for setting the top and bottom visible
28525 nodes. TreeNode::EnsureVisible uses these methods.
28526 * TreeNode.cs: Implement EnsureVisible
28528 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
28530 * Form.cs: Pospone menu assignation if the window has not been created yet
28531 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28534 2005-04-12 Jackson Harper <jackson@ximian.com>
28536 * TreeView.cs: Set the TopNode properly when scrolling
28537 occurs. This has the added benifit of reducing the amount of
28538 walking that needs to be done when drawing. Also removed an old
28540 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28542 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
28544 * Timer.cs: fixes interval setting when the timer is already enabled
28546 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
28548 * FolderBrowserDialog.cs: First approach
28550 2005-04-09 Peter Bartok <pbartok@novell.com>
28552 * FolderBrowserDialog: Added
28554 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
28556 * LinkLabel.cs: move drawing code into the theme
28557 * ThemeWin32Classic.cs: drawing code and painting background bugfix
28558 * Theme.cs: define DrawLinkLabel method
28560 2005-04-05 Jackson Harper <jackson@ximian.com>
28562 * BindingContext.cs: Use weak references so these bad actors don't
28563 stay alive longer then they need to.
28565 2005-04-05 Jackson Harper <jackson@ximian.com>
28567 * ListControl.cs: Basic implementation of complex databinding.
28569 * ListBox.cs: Add calls to ListControl databinding methods.
28571 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
28574 - Don't change PopupButtonState to Normal when the
28575 PopupButton gets pressed several times.
28576 - Renamed ButtonPanel to PopupButtonPanel
28578 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
28580 * ColorDialog.cs: Use cached objects instead of creating them
28581 * LinkLabel.cs: Use cached objects instead of creating them
28582 * Splitter.cs: Use cached objects instead of creating them
28583 * FontDialog.cs: Use cached objects instead of creating them
28584 * PropertyGridView.cs: Use cached objects instead of creating them
28585 * MessageBox.cs: Use cached objects instead of creating them
28586 * FileDialog.cs: Use cached objects instead of creating them
28587 * ThemeWin32Classic.cs: Use cached objects instead of creating them
28588 * TreeView.cs: Use cached objects instead of creating them
28590 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
28592 * Control.cs: use Equals to compare the font since no == op
28593 * ScrollBar.cs: use Equals to compare the font since no == op
28595 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
28597 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
28599 2005-04-01 Jackson Harper <jackson@ximian.com>
28601 * Binding.cs: Implement IsBinding.
28602 * BindingManagerBase.cs:
28603 * PropertyManager.cs:
28604 * CurrencyManager.cs: Add IsSuspended property.
28606 2005-04-01 Jackson Harper <jackson@ximian.com>
28608 * Binding.cs: Had some IsAssignableFrom calls backwards.
28610 2005-04-01 Jackson Harper <jackson@ximian.com>
28612 * Binding.cs: Handle null data members when pulling data.
28613 * PropertyManager.cs: Handle the data member being a property that
28616 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
28618 * DataGridTextBoxColumn.cs: fixes signature
28619 * DataGrid.cs: calls right constructor
28621 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
28623 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
28624 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
28625 * GridTableStylesCollection.cs: implements GridTableStylesCollection
28626 * DataGridTableStyle.cs: implements DataGridTableStyle
28627 * DataGridBoolColumn.cs: implements DataGridBoolColumn
28628 * DataGridTextBox.cs: implements DataGridTextBox
28629 * DataGridColumnStyle.cs: implements DataGridColumnStyle
28631 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
28633 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
28635 2005-03-29 Peter Bartok <pbartok@novell.com>
28638 - Properly implemented CompanyName property
28639 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
28640 returns a path that includes CompanyName, ProductName and
28641 Version (fixes bug #70330)
28643 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
28645 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
28648 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
28650 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
28652 - Added ReadOnly CheckBox
28653 - Further refactoring: moved some code from Open-/SaveFileDialog
28656 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
28658 * OpenFileDialog.cs: Fixed CheckFileExists
28660 Moved FileView and DirComboBox outside FileDialog class.
28661 They can now be used outside FileDialog
28663 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
28665 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
28666 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
28668 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
28670 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28671 - Added missing CreatePrompt property in SaveDialog
28672 - Overall SaveDialog handling should be better now
28673 - Added non standard ShowHiddenFiles property
28674 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
28675 - Added InitialDirectory and RestoreDirectory support
28677 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
28679 * FileDialog.cs: Made dirComboBox usable
28681 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
28683 * FileDialog.cs: Added Filter support (case sensitiv)
28685 2005-03-24 Jackson Harper <jackson@ximian.com>
28687 * TabControl.cs: Need a couple more pixels for the lines.
28689 2005-03-23 Jackson Harper <jackson@ximian.com>
28691 * TabControl.cs: Give the tab page focus when it is selected.
28693 2005-03-23 Jackson Harper <jackson@ximian.com>
28695 * TabControl.cs: Account for the drawing of tabs borders when
28696 invalidating. If the slider was clicked dont do click detection on
28699 2005-03-23 Jackson Harper <jackson@ximian.com>
28701 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
28703 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
28705 * CategoryGridEntry.cs: Added
28706 * GridItem.cs: Added helper properties
28707 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
28708 * GridEntry.cs: Updated code for collection
28709 * PropertyGrid.cs: Cleaned up some formatting
28710 * PropertyGridView.cs: Added drop down functionality for enums.
28711 * GridItemCollection.cs: Added enumerator logic
28712 * PropertyGridEntry.cs: Added
28714 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
28717 - Removed unnecessary commented code
28718 - Fixed handling for entering the filename manually in the combobox
28720 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
28722 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
28724 2005-03-18 Peter Bartok <pbartok@novell.com>
28726 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
28727 them being touching the border
28729 2005-03-18 Peter Bartok <pbartok@novell.com>
28731 * TextControl.cs: Quick hack to center text better
28733 2005-03-18 Peter Bartok <pbartok@novell.com>
28736 - Don't throw NotImplemented exceptions, just print a notice once
28737 instead (requested by Miguel). This makes running existing SWF
28740 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
28741 - Added context menu trigger on right click
28742 * Panel.cs: Trigger invalidate on resize
28744 - Removed old double-buffer drawing
28745 - Added ResizeRedraw style to force proper update of statusbar
28747 - Removed debug output
28748 * ThemeWin32Classic.cs:
28749 - Fixed drawing of status bar, now draws Text property if there
28750 are no defined panels
28752 2005-03-18 Jackson Harper <jackson@ximian.com>
28754 * ImageList.cs: When the image stream is set pull all the images
28756 * ImageListStreamer.cs: Implement reading image list streams.
28758 2005-03-18 Peter Bartok <pbartok@novell.com>
28760 * ThemeWin32Classic.cs (DrawPictureBox):
28761 - Fixed calculations for centered drawing
28762 - Fixed drawing for normal mode, not scaling the image on normal
28764 2005-03-18 Peter Bartok <pbartok@novell.com>
28766 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
28769 - Made Open/Save button the accept button for FileDialog
28770 - Tied the cancel button to the IButtonControl cancel button
28771 - Save/Open now properly builds the pathname
28772 - Now handles user-entered text
28773 - Preventing crash on right-click if no item is selected
28774 - Fixed Text property, now uses contents of textbox
28775 - Fixed SelectedText property, now just returns the text part that
28776 is selected in the text box
28778 2005-03-18 Jackson Harper <jackson@ximian.com>
28780 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
28781 rect, make sure to de-adjust the interior rect after drawing the
28784 2005-03-18 Peter Bartok <pbartok@novell.com>
28786 * MenuAPI.cs: Remove menu *before* executing selected action to
28787 prevent the menu from 'hanging around'
28789 2005-03-17 Geoff Norton <gnorton@customerdna.com>
28791 * XplatUIOSX.cs: Implemented WorkingArea property
28793 2005-03-17 Peter Bartok <pbartok@novell.com>
28795 * XplatUIX11.cs: Fixed menu coord calculations
28796 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
28797 for calculating offsets
28799 2005-03-17 Peter Bartok <pbartok@novell.com>
28801 * Hwnd.cs: Do not consider menu presence for default client
28802 rectangle location/size
28803 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28804 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
28805 translation functions
28806 * FileDialog.cs: Fixed (what I presume is a) typo
28808 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
28810 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
28811 X access (avoids X-Async errors)
28813 2005-03-16 Jackson Harper <jackson@ximian.com>
28815 * TabControl.cs: Raise the SelectedIndexChanged event.
28817 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
28819 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28820 - Removed vertical ToolBar and replaced it with a custom panel
28821 (desktop and home button already work)
28822 - Added Help button (some controls get resized or relocated then)
28823 - Draw correct text depending on Open or Save.
28824 - Fixed some typos...
28826 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
28829 - Only change Maximum and Minimum when need it (bug fix)
28831 2005-03-15 Peter Bartok <pbartok@novell.com>
28833 * Form.cs: Use Handle for icon, to trigger creation if
28834 the window does not yet exist
28836 - CanSelect: Slight performance improvement
28837 - Focus(): Preventing possible recursion
28838 - Invalidate(): Removed ControlStyle based clear flag setting
28839 - WM_PAINT: fixed logic for calling OnPaintBackground
28840 - WM_ERASEBKGND: Fixed logic, added call to new driver method
28841 EraseWindowBackground if the control doesn't paint background
28843 - Moved EraseWindowBackground() method to internal methods
28844 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
28845 is sent via SendMessage on BeginPaint call on Win32
28847 - Added EraseWindowBackground() method
28848 - No longer sends WM_ERASEBKGND on .Expose, but on call to
28849 PaintEventStart, which more closely matches Win32 behaviour
28850 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
28851 - Fixed SetFocus() to properly deal with client and whole windows
28852 * Hwnd.cs: Added ErasePending property
28853 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
28854 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
28856 2005-03-12 Geoff Norton <gnorton@customerdna.com>
28859 - Fix hard loop when timers exist.
28860 - Fix bugs with middle and right click for 3 button mice.
28862 2005-03-11 Peter Bartok <pbartok@novell.com>
28865 - get_WorkingArea: Need to call X directly, GetWindowPos only
28866 returns cached data now
28867 - Added sanity check to GetWindowPos hwnd usage
28869 2005-03-11 Jackson Harper <jackson@ximian.com>
28871 * BindingManagerBase.cs: This method isn't used anymore as
28872 PullData now updates the data in the control.
28874 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
28876 * Form.cs: fixes menu drawing on X11
28877 * MenuAPI.cs: fixes menu drawing on X11
28879 2005-03-11 Peter Bartok <pbartok@novell.com>
28881 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
28882 from Jonathan Gilbert; should fix bug #73606
28883 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
28884 in Screen coordinates. Thanks, Jordi.
28885 * Form.cs: Added missing attribute
28887 2005-03-11 Peter Bartok <pbartok@novell.com>
28890 - Rudimentary Mdi support
28891 - Removed outdated FormParent code
28892 - Implemented lots of missing properties and methods, still missing
28893 transparency support
28894 - Added missing attributes
28895 - Implemented support for MaximumBounds
28896 - Added firing of various events
28897 * XplatUI.cs: Added SetIcon() method
28898 * XplatUIDriver.cs: Added SetIcon() abstract
28899 * XplatUIOSX.cs: Stubbed out SetIcon() method
28901 - Implemented SetIcon() support
28902 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
28903 - Switched to unix line endings
28905 - Made POINT internal so for can access it as part of MINMAX
28906 - Implemented SetIcon() support
28907 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
28908 native Mdi support again, might have to go managed)
28909 * Control.cs: Now fires the StyleChanged event
28910 * MdiClient.cs: Added; still mostly empty
28912 2005-03-10 Peter Bartok <pbartok@novell.com>
28914 * SaveFileDialog.cs: Added emtpy file
28916 2005-03-08 Peter Bartok <pbartok@novell.com>
28918 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
28919 in turn triggers OnCreateContro) when creating a handle for the
28921 * TextControl.cs: Fixed endless loop in certain cases when
28922 replacing the current selection
28924 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
28927 - Honors NewValue changes in Scroll events allowing apps to change it
28928 - Adds First and Last Scroll events
28929 - Fixes Thumb events
28931 2005-03-07 Peter Bartok <pbartok@novell.com>
28933 * Hwnd.cs: Added DefaultClientRectangle property
28934 * XplatUI.cs: Now using the X11 driver Where() method, which provides
28935 more detailed debug information
28937 - Fixed size-change feedback loop, where we would pull an old size
28938 off the queue and mistakenly change our window's size to an
28940 - Now compressing ConfigureNotify events, to reduce looping and
28942 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
28945 2005-03-07 Jackson Harper <jackson@ximian.com>
28947 * Binding.cs: Push data pushes from data -> property. Check if the
28948 property is readonly when attempting to set it.
28950 2005-03-07 Jackson Harper <jackson@ximian.com>
28952 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
28953 instead of IsSubclassOf. Pulling data now sets the value on the
28955 * PropertyManager.cs:
28956 * CurrencyManager.cs: Just need to pull data when updating now,
28957 because PullData will set the value on the control.
28959 2005-03-04 Jackson Harper <jackson@ximian.com>
28961 * Binding.cs: Implement data type parsing and converting on pulled
28962 data. TODO: Are there more ways the data can be converted?
28964 2005-03-04 Jackson Harper <jackson@ximian.com>
28966 * Binding.cs: Support <Property>IsNull checks. Also bind to the
28967 controls Validating method so we can repull the data when the
28968 control loses focus.
28970 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
28973 - Fixes null string format
28976 - Adds enum type checks
28977 - Fixes redrawing and recalc need after changing some properties
28978 - Fixes on focus_item set after the event
28979 - Fixes adding columns after the control has been created
28981 * ThemeWin32Classic.cs:
28982 - Fixes CheckBox focus rectangle
28983 - Fixes ColumnHeader drawing
28986 2005-03-03 Jackson Harper <jackson@ximian.com>
28988 * Binding.cs: Bind to <Property>Changed events so we can detect
28989 when properties are changed and update the data.
28991 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
28994 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
28995 - Fixes ImageList constructor with ImageList container
28996 - Fixes image scaling (wrong parameters at DrawImage)
28998 2005-02-02 Jackson Harper <jackson@ximian.com>
29000 * Binding.cs: Make property searches case-insensitive. Eliminate
29001 some duplicated code.
29003 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
29006 - Handle focus event
29007 - Fix scrollbar events
29008 - Discard highlighted item if remove it
29009 - Fixes SelectedItem with strings
29011 2005-03-01 Peter Bartok <pbartok@novell.com>
29014 - Fixed Visible property, now follows (once again) parent chain
29015 to return false if any control in the chain is visible=false
29016 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
29017 - Fixed several places where is_visible instead of Visible was used
29018 - Implemented FIXME related to focus selection when setting focused
29019 control to be invisible
29021 * XplatUIWin32.cs: Now using proper method to find out if window is
29022 visible. Thanks to Jordi for pointing it out
29024 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
29026 * ComboBox.cs: show/hide scrollbar instead of creating it
29028 2005-02-27 Jackson Harper <jackson@ximian.com>
29030 * CurrencyManager.cs: Add PositionChanged stuff.
29032 2005-02-27 Peter Bartok <pbartok@novell.com>
29034 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
29035 * XplatUIOSX.cs: Added GetMenuOrigin() stub
29036 * XplatUIWin32.cs: Implemented GetMenuOrigin()
29038 - Implemented GetMenuDC()
29039 - Implemented GetMenuOrigin()
29040 - Implemented ReleaseMenuDC()
29041 - Implemented generation of WM_NCPAINT message
29042 - Implemented generation and handling of WM_NCCALCSIZE message
29043 * Form.cs: Added debug helper message for Jordi's menu work
29045 - Modified ClientRect property; added setter, fixed getter to handle
29046 setting of ClientRect
29047 - Added MenuOrigin property
29049 2005-02-26 Peter Bartok <pbartok@novell.com>
29052 - Destroys the caret if a window that's being destroyed contains it
29053 - Ignores expose events coming from the X11 queue for windows that
29054 already are destroyed
29055 - Now uses the proper variable for handling DestroyNotify, before we
29056 marked the wrong window as destroyed
29057 - Improved/added some debug output
29059 2005-02-26 Peter Bartok <pbartok@novell.com>
29061 * X11Keyboard.cs: Fixes to work on 64bit systems
29063 2005-02-26 Peter Bartok <pbartok@novell.com>
29066 - Now calling OnHandleDestroyed from DestroyHandle()
29067 instead of Dispose()
29068 - Removed bogus call to controls.Remove() from DestroyHandle()
29070 2005-02-26 Peter Bartok <pbartok@novell.com>
29072 * Control.cs: Properly destroy child windows when our handle is
29075 2005-02-25 Peter Bartok <pbartok@novell.com>
29078 - Added 'DriverDebug' define to allow tracing XplatUI API calls
29079 - Alphabetized Static Methods and Subclasses
29082 - Added XException class to allow custom handling of X11 exceptions
29083 - Created custom X11 error handler, tied into XException class
29084 - Added support for MONO_XEXCEPTIONS env var to allow the user
29085 to either throw an exception on X errors or continue running
29086 after displaying the error
29087 - Added handling of DestroyNotify message
29088 - Added handler for CreateNotify message (still disabled)
29089 - Improved (tried to at least) Where method to provide file and lineno
29091 - Added XErrorHandler delegate
29092 - Added XRequest enumeration (to suppor translation of errors)
29094 2005-02-25 Jackson Harper <jackson@ximian.com>
29096 * PropertyManager.cs: Implement editing features
29097 * CurrencyManager.cs:
29098 * Binding.cs: First attempt at UpdateIsBinding
29099 * BindingManagerBase.cs: Call UpdateIsBinding before
29100 pushing/pulling data.
29102 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
29104 * MenuAPI.cs: Respect disabled items
29105 * ThemeWin32Classic.cs
29106 - Caches ImageAttributes creation for DrawImageDisabled
29107 - Fixes vertical menu line drawing
29108 - Draws disabled arrows in disable menu items
29110 2005-02-24 Peter Bartok <pbartok@novell.com>
29113 - Added UserData property to allow associating arbitrary objects
29115 - Fixed leak; now removing Hwnd references from static windows array
29117 - Fixed Graphics leak in PaintEventEnd
29118 - Removed usage of HandleData, switched over to Hwnd class
29119 * HandleData.cs: Removed, obsoleted by Hwnd.cs
29121 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29123 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
29124 * ScrollBar.cs: Fixes bug
29125 * TrackBar.cs: removes death code, clipping, mimize refreshes,
29126 keyboard navigation enhancements
29128 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29130 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
29131 * GroupBox.cs: Add control styles
29132 * Label.cs: Add control styles
29133 * UpDownBase.cs: Add control styles
29134 * ListBox.cs: Add control styles
29135 * XplatUIWin32.cs: Fixes wrong parameter order
29138 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
29140 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
29142 2005-02-23 Jackson Harper <jackson@ximian.com>
29144 * PropertyManager.cs: Implement property binding. This doesn't
29145 seem to work yet though as (I think) there are some bugs in
29146 System.ComponentModel.PropertyDescriptor.
29147 * BindingContext.cs: Use new PropertyManager constructor.
29149 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
29151 * ProgressBar.cs: use clip region in ProgressBar
29152 * ThemeWin32Classic.cs: use clip region in ProgressBar
29154 2004-02-22 Jackson Harper <jackson@ximian.com>
29156 * BindingsCollection.cs: Remove some debug code.
29158 2005-02-22 Jackson Harper <jackson@ximian.com>
29160 * BindingContext.cs:
29161 * ControlBindingsCollection.cs:
29162 * CurrencyManager.cs:
29164 * BindingManagerBase.cs: Initial implementation
29165 * BindingsCollection.cs: Add an internal contains method that the
29166 BindingManagerBase uses to ensure bindings aren't added twice to
29168 * PropertyManager.cs: Stubbed out.
29170 * ContainerControl.cs: Hook up databinding
29172 2005-02-22 Geoff Norton <gnorton@customerdna.com>
29175 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
29176 Fixed Invalidate/Update chain.
29177 Fixed tons of other minor bugs (this is almost a complete rewrite).
29179 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
29181 * ComboBox.cs: do subcontrol creation when the control is created
29183 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29185 * Label.cs: fixes image drawing (image and imagelist)
29186 * ThemeWin32Classic.cs: cache brushes
29188 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29190 * Form.cs: Move menu drawing code to Theme class
29191 * ComboBox.cs: Move ComboBox drawing code to Theme class
29192 * MenuItem.cs: Move menu drawing code to Theme class
29193 * MenuAPI.cs: Move menu drawing code to Theme class
29194 * ThemeWin32Classic.cs: New methods
29195 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
29196 * ListBox.cs: Move Listbox drawing code to Theme class
29197 * Theme.cs: New methods
29199 2005-02-20 Peter Bartok <pbartok@novell.com>
29202 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
29203 only process mnemonics on those)
29204 - Fixed event sequence for key handling; first calling
29205 ProcessKeyEventArgs now
29207 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
29208 for processing non-character keys
29209 - Fixed WM_CHAR to generate proper event sequence before processing
29210 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
29213 2005-02-19 Peter Bartok <pbartok@novell.com>
29215 * UserControl.cs: Added TextChanged event; added attributes
29216 * SizeGrip.cs: Implemented resizing and optional display of grip
29217 * Form.cs: Fixed attribute
29218 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
29219 Changed meaning of ScrollWindow bool argument; instead of the
29220 clear attribute (which will be true usually anyway), it gives the
29221 option of moving child controls as well.
29223 - Changed to match new ScrollWindow argument
29224 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
29225 now handles the implicit parent window a WM puts around us
29226 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
29228 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
29229 * TreeView.cs: Adjusted to new ScrollWindow arguments
29231 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29233 * Form.cs: Menu integration with non-client area
29234 * MenuItem.cs: Menu integration with non-client area
29235 * MenuAPI.cs: Menu integration with non-client area
29237 2005-02-18 Peter Bartok <pbartok@novell.com>
29239 * MethodInvoker.cs: Added
29240 * MdiLayout.cs: Added
29241 * SendKeys.cs: Started implementation
29242 * ErrorIconAlignment.cs: Added
29244 2005-02-18 Peter Bartok <pbartok@novell.com>
29246 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
29247 * Form.cs: Added handling for Menu-related Non-client messages
29249 2005-02-17 Peter Bartok <pbartok@novell.com>
29251 * UpDownBase.cs: Fixed typo, compilation errors
29252 * DomainUpDown.cs: Fixed attribute value
29254 2005-02-16 Miguel de Icaza <miguel@novell.com>
29256 * UpDownBase.cs: Attach entry events.
29258 Add ForeColor property, Focused, InterceptArrowKeys (interception
29259 does not work yet).
29261 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
29264 - Redraw non client are on Setmenu
29265 - Calc proper menu starting point
29267 2005-02-17 Peter Bartok <pbartok@novell.com>
29269 * Application.cs: Fixed message_filter check
29271 2005-02-17 Peter Bartok <pbartok@novell.com>
29273 * Application.cs: Now calls registered message filters
29274 * DockStyle.cs: Fixed attribute
29275 * Form.cs: Fixed attribute
29276 * Menu.cs: Fixed attribute
29277 * ToolTip.cs: Fixed attribute
29278 * TreeNode.cs: Added missing attributes and arranged in regions
29279 * PropertyGrid.cs: Fixed signatures
29280 * TreeNodeCollection.cs: Added attributes
29281 * Splitter.cs: Added missing attributes; arranged into regions
29282 * TabPage.cs: Added missing attributes; arranged into regions
29283 * TextBoxBase.cs: Added missing attributes
29284 * TextBox.cs: Added missing attributes
29285 * ArrangeDirection.cs: Added missing attributes
29286 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
29287 * ToolBarButton.cs: Fixed attributes
29288 * AnchorStyles.cs: Fixed attribute
29289 * TrackBar.cs: Fixed attributes
29290 * TabControl.cs: Added missing attributes and arranged into regions
29291 * ToolBar.cs: Fixed attribute
29292 * StatusBar.cs: Fixed signature, organized into regions and added
29294 * StatusBarPanel.cs: Fixed attributes
29295 * ContentsResizedEventArgs.cs: Implemented
29296 * ContentsResizedEventHandler.cs: Implemented
29297 * DateBoldEventArgs.cs: Implemented
29298 * DateBoldEventHandler.cs: Implemented
29299 * UpDownEventArgs.cs: Implemented
29300 * UpDownEventHandler.cs: Implemented
29302 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
29304 * Form.cs: first Menu NC refactoring
29305 * MenuAPI.cs: first Menu NC refactoring
29307 2005-02-16 Peter Bartok <pbartok@novell.com>
29309 * ImeMode.cs: Added missing attributes
29310 * Menu.cs: Fixed attribute
29311 * GroupBox.cs: Fixed attribute
29312 * Label.cs: Fixed attribute
29313 * ColorDialog.cs (RunDialog): Removed TODO attribute
29314 * ComboBox.cs: Fixed attributes
29315 * ListControl.cs: Added missing attributes
29316 * PropertyGrid.cs: Fixed attributes
29317 * Control.cs: Fixed attributes
29318 * ListViewItem.cs: Added TypeConverter attribute
29319 * NotifyIcon.cs: Fixed attributes
29320 * ListView.cs: Fixed attributes
29321 * ButtonBase.cs: Fixed attribute
29322 * ImageList.cs: Added missing attributes
29323 * ContainerControl.cs: Fixed signature
29324 * CheckedListBox.cs: Fixed attribute; added missing attributes
29325 * Panel.cs: Fixed attributes
29326 * PropertyTabChangedEventArgs.cs: Added missing attribute
29327 * PropertyValueChangedEventArgs.cs: Added missing attribute
29328 * Binding.cs: Fixed attribute
29329 * ListViewItemConverter: Implemented ListViewSubItemConverter class
29330 * ListBox.cs: Fixed attribute; added missing attributes;
29331 * ScrollableControl.cs: Added missing attributes
29332 * PictureBox.cs: Added missing attributes; implemented missing property
29333 * DateTimePicker.cs: Added missing attributes
29334 * Theme.cs (ToolWindowCaptionHeight): Fixed type
29335 * MonthCalendar.cs: Fixed attributes
29336 * StatusBarPanel.cs: Added missing attributes
29337 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
29339 2005-02-16 Peter Bartok <pbartok@novell.com>
29341 * TextBoxBase.cs: The previous method to enforce height yet remember
29342 the requested high was less than ideal, this is an attempt to do
29344 * Control.cs: Added comment about possible problem
29345 * Copyright: Updated format
29346 * GridItemType.cs: Fixed swapped values
29348 2005-02-15 Jackson Harper <jackson@ximian.com>
29350 * BaseCollection.cs: Use property so we never access an
29351 uninitialized list. Also initialize the list in the property.
29353 2005-02-15 Peter Bartok <pbartok@novell.com>
29355 * GroupBox.cs (ProcessMnemonic): Implemented
29356 * Label.cs (ProcessMnemonic): Implemented
29357 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
29360 2005-02-15 Peter Bartok <pbartok@novell.com>
29362 * RadioButton.cs (ProcessMnemonic): Implemented
29363 * CheckBox.cs (ProcessMnemonic): Implemented
29365 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
29367 - Added internal method to allow calling ProcessMnemonic from other
29369 * ContainerControl.cs:
29370 - Started support for handling validation chain handling
29371 - Implemented ProcessMnemonic support
29372 - Added Select() call to Active, to make sure the active control
29374 * Form.cs: Setting toplevel flag for Forms (this was lost in the
29375 FormParent rewrite)
29376 * ThemeWin32Classic.cs:
29377 - DrawCheckBox(): Fixed stringformat to show hotkeys
29378 - DrawRadioButton(): Fixed stringformat to show hotkeys
29379 * CommonDialog.cs: Removed WndProc override, not needed
29381 2005-02-14 Peter Bartok <pbartok@novell.com>
29383 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
29384 missed those in the rewrite
29386 2005-02-14 Miguel de Icaza <miguel@novell.com>
29388 * NumericUpDown.cs (Increment, ToString): Add.
29389 (DecimalPlaces): implement.
29393 * UpDownBase.cs: Add the designer attributes.
29395 2005-02-13 Peter Bartok <pbartok@novell.com>
29397 * Panel.cs: Removed border_style, now in Control
29398 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
29399 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
29401 2005-02-13 Peter Bartok <pbartok@novell.com>
29403 * MouseButtons.cs: Added missing attributes
29404 * XplatUIStructs.cs: Added enumeration for title styles
29405 * LeftRightAlignment.cs: Added missing attributes
29406 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
29407 it compatible with Graphics.FromHwnd()
29408 * SelectedGridItemChangedEventArgs.cs: Fixed property type
29409 * Keys.cs: Added missing attributes
29410 * SelectionRange.cs: Added missing attributes
29411 * SelectionRangeConverter.cs: Added
29413 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
29414 ReleaseMenuDC methods
29415 - Renamed ReleaseWindow to UngrabWindow
29416 - Added proper startup notice to allow version identification
29418 - Added missing attributes
29419 - Removed FormParent concept
29420 * Label.cs: Removed border_style field, now in Control
29421 * RadioButton.cs: Now properly selects RadioButton when focus is
29423 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
29425 - Added missing attributes
29426 - Added borderstyle handling
29427 - Removed FormParent concept support
29428 - Fixed calls to XplatUI to match changed APIs
29429 - Fixed bug that would case us to use disposed Graphics objects
29430 - Removed unneeded internal methods
29431 - PerformLayout(): Fixed to handle DockStyle.Fill properly
29432 - SelectNextControl(): Fixed to properly check common parents
29433 * TextBoxBase.cs: Removed border_style field (now in Control)
29435 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
29436 fixed calculations for form size
29437 - Added support for localized strings and icons
29438 - Improved form size calculations, added border
29439 * ListView.cs: Removed border_style field (now in Control)
29440 * X11Structs.cs: Moved several structs from X11 driver here
29441 * X11Keyboard.cs: Changed debug message
29442 * Application.cs: Removed FormParent concept support
29444 - Resetting end_modal flag
29445 - Removed FormParent concept support
29446 * NativeWindow.cs: Removed FormParent concept support
29447 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
29448 Client area and Non-Client whole window to allow support for WM_NC
29450 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
29451 prevent using it until it supports Hwnd as per Geoff Norton's request
29452 * ToolBar.cs: Fixed drawing, was not doing proper drawing
29453 * PictureBox.cs: Removed border_style field, now in Control
29454 * XplatUIWin32.cs: Added new driver methods
29456 2005-02-12 Peter Bartok <pbartok@novell.com>
29458 * OpacityConverter.cs: Implemented
29459 * Hwnd.cs: Internal class to support drivers that need to emulate
29460 client area/non-client area window behaviour
29462 2005-02-11 Peter Bartok <pbartok@novell.com>
29464 * KeysConverter.cs: Implemented
29466 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
29468 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29469 * LinkLabel: Added missing attributes
29470 * MainMenu.cs: fixes ToString
29471 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29472 * ListBox.cs: fixes event position
29473 * TrackBar.cs: adds missing attributes and events
29475 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
29477 * MenuItem.cs: Use SystemInformation and bug fixes
29478 * MenuAPI.cs: Use SystemInformation and bug fixes
29480 2005-02-09 Jackson Harper <jackson@ximian.com>
29482 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29483 their keystate otherwise things like VK_MENU get stuck "on".
29485 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
29487 * ListBox.cs: Fixes AddRange bug
29489 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
29492 - Add missing attributes
29493 - Add missing method
29495 * CheckedListBox.cs: Added missing attributes
29496 - Add missing attributes
29497 - Remove extra method
29499 * ComboBox.cs: Added missing attributes
29500 * VScrollBar.cs: Added missing attributes
29501 * ScrollBar.cs: Added missing attributes
29502 * ListBox.cs: Fixes signature, add missing consts
29503 * LinkArea.cs: Added missing attributes
29506 2005-02-08 Peter Bartok <pbartok@novell.com>
29508 * Menu.cs: Added missing attributes
29509 * MainMenu.cs: Added missing attributes
29510 * GroupBox.cs: Added missing attributes
29511 * Label.cs: Added missing attributes
29512 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29514 - Added Instance and Options properties
29515 - Added missing attributes
29516 * Cursor.cs: Made Serializable
29517 * NotifyIcon: Added missing attributes
29518 * MenuItem.cs: Added missing attributes
29519 * TextBoxBase.cs: Implemented AppendText() and Select() methods
29520 * Panel.cs: Added Missing attributes
29521 * MonthCalendar.cs: Fixed CreateParams
29523 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29527 - Fixes issues with links
29528 - Adds the class attributes
29530 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29533 - Fixes button when no items available in dropdown
29534 - Fixes repainting problems
29535 - Adds the class attributes
29537 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29539 * XplatUIOSX.cs: Detect the menu bar and title bar height from
29540 the current theme. Cache these on startup.
29542 2005-02-07 Jackson Harper <jackson@ximian.com>
29544 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29545 the scrollbar buttons when they are depressed.
29547 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29549 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29550 Get the display size from the main displayid. We currently dont
29551 support multiple display configurations.
29553 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29555 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29557 2005-02-07 Miguel de Icaza <miguel@novell.com>
29559 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29561 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
29563 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29565 2005-02-04 Jackson Harper <jackson@ximian.com>
29567 * ThemeWin32Classic.cs: Respect the clipping rect when
29568 drawing. Only fill the intersection of clips and rects so there
29569 isn't a lot of large fills.
29570 * ScrollBar.cs: Pass the correct clipping rect to the theme
29571 engine. Remove some debug code.
29573 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
29575 * DateTimePicker.cs:
29576 - Fixed crash on DateTime.Parse, use Constructor instead
29578 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29582 - Owner draw support (MeasureItem and DrawItem)
29584 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29587 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29588 - Fixes MenuItems.Add range
29590 - MergeMenu and Clone and CloneMenu functions
29592 2005-02-03 Jackson Harper <jackson@ximian.com>
29594 * ScrollBar.cs: Make abstract
29595 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
29598 2005-02-03 Jackson Harper <jackson@ximian.com>
29600 * ScrollBar.cs: First part of my scrollbar fixups. This removes
29601 all the unneeded refreshes and uses invalidates with properly
29604 2005-02-03 Peter Bartok <pbartok@novell.com>
29606 * ComponentModel.cs: Added
29607 * IDataGridEditingService.cs: Added
29608 * Timer.cs: Added missing attributes
29609 * ToolTip.cs: Added missing attributes
29611 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
29613 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
29615 2005-02-03 Peter Bartok <pbartok@novell.com>
29617 * ListBox.cs: Added missing attributes
29619 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
29622 - Fixes font height after font change
29623 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
29625 2005-02-02 Peter Bartok <pbartok@novell.com>
29627 * HandleData.cs: Introduced static methods to allow class
29628 to be more self-contained and track it's own HandleData objects
29629 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
29630 HandleData to use new static methods
29632 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
29635 - Fixes default size and PreferredHeight
29637 - ObjectCollection.Insert implementation
29643 - ObjectCollection.Insert implementation
29644 - No selection after clean
29647 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
29649 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
29651 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
29654 - Caches ItemHeight calculation for OwnerDrawVariable
29655 - Handles dropdown properly
29656 - Fixes several minor bugs
29658 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
29661 - Fixes 71946 and 71950
29662 - Fixes changing Multicolumn on the fly
29663 - Fixes keyboard navigation on Multicolumn listboxes
29665 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29667 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
29668 crash reporter log.
29670 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29672 * XplatUIOSX.cs: Allow applications to actually exit.
29674 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29676 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
29677 their parent at creation time rather than lazily later. Fixes a major
29678 regression we were experiencing.
29680 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
29682 * ThemeWin32Classic.cs: more date time picker painting fixes
29683 * DateTimePicker.cs: more monthcalendar drop down fixes
29684 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
29686 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
29689 - When moving the thumb going outside the control should stop the moving
29690 - Adds the firing of missing events
29691 - Fixes no button show if Size is not specified
29692 - End / Home keys for keyboard navigation
29694 2005-01-30 Peter Bartok <pbartok@novell.com>
29696 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
29697 sanity check to prevent theoretical loop
29698 * XplatUIWin32.cs (SetVisible): Removed debug output
29699 * XplatUIX11.cs (SystrayChange): Added sanity check
29700 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
29701 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
29702 behaviour, valid until the X11 client window rewrite is done
29703 * TextBox.cs (ctor): Setting proper default foreground and background
29706 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
29708 * Theme: Added DrawDateTimePicker to interface
29709 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
29710 * DateTimePicker.cs: Created (still needs keys and painting code)
29711 * DateTimePickerFormat.cs: added
29712 * MonthCalendar.cs: fixed CreateParams for popup window mode
29714 2005-01-29 Peter Bartok <pbartok@novell.com>
29716 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
29717 this should also the calculations for ligher/darker
29718 * Theme.cs: Fixed defaults for ScrollBar widths/heights
29720 2005-01-29 Peter Bartok <pbartok@novell.com>
29722 * ArrangeDirection.cs: Added
29723 * ArrangeStartingPositon.cs: Added
29724 * SystemInformation.cs: Implemented
29725 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29726 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
29727 used by SystemInformation class
29728 * X11Strucs.cs: Added XSizeHints structure
29730 - Fixed CreateParams to make sure the menu window is always visible
29731 - TrackPopupMenu: Added check to make sure we don't draw the
29734 2005-01-29 Peter Bartok <pbartok@novell.com>
29736 * HandleData.cs: Added method for altering invalid area
29737 * TextBoxBase.cs: Implemented TextLength
29739 2005-01-28 Peter Bartok <pbartok@novell.com>
29741 * XplatUIX11.cs: Improvement over last patch, not sending
29742 the WM_PAINT directly anymore, instead we scroll any pending
29743 exposed areas and let the system pick out the WM_PAINT later
29745 2005-01-28 Peter Bartok <pbartok@novell.com>
29747 * SWF.csproj: Deleted, no longer used. Instead,
29748 Managed.Windows.Forms/SWF.csproj should be used
29749 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
29750 directly, to avoid a potential race condition with the next
29753 2005-01-28 Peter Bartok <pbartok@novell.com>
29755 * XplatUI.cs: Made class internal
29757 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
29759 * CheckedListBox.cs:
29762 - Missing methods and events
29764 2005-01-27 Peter Bartok <pbartok@novell.com>
29766 * Application.cs (Run): Don't use form if we don't have one
29768 2005-01-27 Peter Bartok <pbartok@novell.com>
29770 * TextBoxBase.cs (get_Lines): Fixed index off by one error
29772 2005-01-27 Peter Bartok <pbartok@novell.com>
29774 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
29775 * GridItem.cs: Added; Patch by Jonathan S. Chambers
29776 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
29777 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
29778 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
29779 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
29780 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29781 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29782 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29783 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29784 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29785 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29787 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
29790 - Draw focus on Simple Combobox
29791 - Fixes drawing issues
29794 2005-01-27 Peter Bartok <pbartok@novell.com>
29797 - Place window in default location, instead of hardcoded 0/0
29798 - Send initial LocationChanged event
29800 - UpdateBounds after creation to find out where the WM placed us
29801 - Make sure that if the ParentForm changes location the Form
29803 * XplatUIX11.cs: XGetGeometry will not return the coords relative
29804 to the root, but to whatever the WM placed around us.
29805 Translate to root coordinates before returning toplevel
29807 * XplatUIWin32.cs: Removed debug output
29808 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
29809 flag to GetWindowPos, to allow translation of coordinates on X11
29811 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
29813 * ListBox.cs: connect LostFocus Event
29815 2005-01-27 Peter Bartok <pbartok@novell.com>
29817 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
29818 XplatUIX11.cs: Extended the Systray API
29819 * Form.cs: Removed debug output
29820 * Application.cs: Fixed focus assignment, always need to call
29821 XplatUI.Activate() since Form.Activate() has rules that may
29823 * NotifyIcon.cs: Should be complete now
29824 * ToolTip.cs: Worked around possible timer bug
29826 2005-01-27 Jackson Harper <jackson@ximian.com>
29829 - Only invalidate the effected tabs when the
29830 selected index changes. This reduces drawing and gets rid of some
29832 - Only refresh if the tabs need to be shifted, otherwise only
29833 invalidate the slider button.
29834 - On windows the tabs are not filled to right if the slider is
29837 2005-01-27 Jackson Harper <jackson@ximian.com>
29839 * TabControl.cs: Only refresh on mouseup if we are showing the
29840 slider. Also only invalidate the button whose state has changed.
29842 2005-01-26 Peter Bartok <pbartok@novell.com>
29844 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
29845 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
29846 and SystrayRemove() methods
29847 * XplatUIOSX.cs: Stubbed Systray methods
29849 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
29851 - Fixed broken XChangeProperty calls (marshalling messed up things)
29852 * X11Structs.cs: Added enums and structs required for Size hinting
29853 * NotifyIcon.cs: Added & implemented
29855 2005-01-26 Jackson Harper <jackson@ximian.com>
29857 * TabControl.cs: Space vertically layed out tabs properly.
29859 2005-01-26 Peter Bartok <pbartok@novell.com>
29861 * Form.cs (CreateClientParams): Always set the location to 0,0
29862 since we're a child window.
29864 * Control.cs (SetVisibleCore): Always explicitly setting the location
29865 of a toplevel window, apparently X11 doesn't like to move windows
29866 while they're not mapped.
29868 2005-01-26 Jackson Harper <jackson@ximian.com>
29870 * TabControl.cs: Implement FillToRight size mode with vertically
29873 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29875 * ControlPaint.cs, ThemeWin32Classic.cs
29876 - Fixes DrawFocusRectangle
29878 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29881 - MenuBar tracking only starts when item is first clicked
29882 - Fixes menu hidding for multiple subitems
29883 - Unselect item in MenuBar when item Executed
29886 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
29889 - IsInputKey for ListBox
29892 - Shift and Control item selection
29893 - Implement SelectionMode.MultiExtended
29894 - Fixes RightToLeft
29896 - IsInputKey implemented
29897 - Do not generate OnTextChangedEdit on internal txt changes
29899 2005-01-23 Peter Bartok <pbartok@novell.com>
29901 * AccessibleObject.cs: Partially implemented Select()
29902 * MonthCalendar.cs: Added missing attributes and events
29903 * Form.cs: Fixed CreateParams behaviour, now controls derived from
29904 form can properly override CreateParams.
29905 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29906 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
29907 Control performs Invalidate & Update
29908 * NativeWindow (CreateHandle): Added special handling for Form
29909 and Form.FormParent classes to allow overriding of From.CreateParams
29911 - ControlNativeWindow: Renamed 'control' variable to more intuitive
29913 - ControlNativeWindow: Added Owner property
29914 - Removed usage of Refresh() on property changes, changed into
29915 Invalidate(), we need to wait until the queue is processed for
29916 updates, direct calls might cause problems if not all vars for
29917 Paint are initialized
29918 - Added call to UpdateStyles() when creating the window, to set any
29919 styles that CreateWindow might have ignored.
29920 - Added support for Form CreateParent overrides to UpdateStyles()
29921 * MessageBox.cs: Removed no longer needed FormParent override stuff,
29922 CreateParams are now properly overridable
29923 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
29924 CreateParams are now properly overridable
29926 2005-01-23 Miguel de Icaza <miguel@ximian.com>
29928 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
29931 Capture LostFocus and OnTextBoxChanged. The later introduces a
29932 recursive invocation that I have not figured out yet.
29934 Reset the timer when not using (it was accumulating).
29937 (OnTextBoxChanged): Set UserEdit to true here to track whether the
29938 user has made changes that require validation.
29940 Reset changing to avoid loops.
29942 2005-01-22 Miguel de Icaza <miguel@ximian.com>
29944 * NumericUpDown.cs: Display value at startup.
29946 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
29949 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
29950 filled in. Added some basic parsing of text.
29952 Still missing the OnXXX method overrides, and figuring out the
29953 events that must be emitted.
29955 * UpDownBase.cs: Handle UserEdit on the Text property.
29957 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
29960 - Fixes IntegralHeight
29963 2005-01-21 Jackson Harper <jackson@ximian.com>
29965 * TabControl.cs: Set the SelectedIndex property when SelectedTab
29966 is set so that the page visibility is updated and the tabs are
29969 2005-01-21 Jackson Harper <jackson@ximian.com>
29971 * TabControl.cs: Use cliping rectangle for blitting. Give the
29972 theme the clipping rect so we can do clipping while
29973 drawing. Remove some debug code.
29975 2005-01-21 Jackson Harper <jackson@ximian.com>
29977 * TabPage.cs: Add a new method so tab pages can force the tab
29978 control to recalculate the tab page sizes.
29979 * TabControl.cs: UpdateOwner needs to make the tab control recalc
29982 2005-01-20 Jackson Harper <jackson@ximian.com>
29984 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
29986 2005-01-20 Jackson Harper <jackson@ximian.com>
29988 * TreeView.cs: Set the bounds for nodes properly. They were
29989 getting screwed up when checkboxes were not enabled, but images
29992 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
29995 - Owner draw support
29998 2005-01-20 Jackson Harper <jackson@ximian.com>
30000 * XplatUIStructs.cs: More misc keys
30001 * X11Keyboard.cs: Ignore some control keys.
30003 2005-01-20 Jackson Harper <jackson@ximian.com>
30005 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
30006 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
30008 2005-01-19 Peter Bartok <pbartok@novell.com>
30010 * Control.cs: Un-selecting the control when it is loosing focus
30012 2005-01-19 Jackson Harper <jackson@ximian.com>
30014 * TreeView.cs: Hook up to the text controls leave event so we can
30015 end editing when the users clicks outside the text box.
30017 2005-01-19 Jackson Harper <jackson@ximian.com>
30019 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
30020 get set in the conversion array.
30022 2005-01-19 Peter Bartok <pbartok@novell.com>
30024 * Application.cs (ModalRun): Added a call to CreateControl to ensure
30025 focus is properly set
30027 - Added missing attributes
30028 - removed styles, those are already set in the base class
30030 - Added missing attributes
30031 - Added clip window styles
30032 * CheckBox.cs: Added missing attributes
30034 - FormParentWindow.CreateParams: Added required clip styles
30035 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
30036 also filters modifier keys
30038 - Added assignment of Accept and Cancel button to enable Enter
30039 and Esc keys in MessageBox dialogs
30040 - FormParentWindow.CreateParams: Added required clip styles
30041 * RadioButton.cs: Added missing attributes
30042 * TextControl.cs: No longer draws selection if control does not
30045 - Now draws simple rectangle around test area to make it obvious
30046 there's a control. This is a hack until we properly support borders
30047 - A few simple fixes to support selections better, now erases selected
30048 text when typing, and resets selection when using movement keys
30050 2005-01-19 Miguel de Icaza <miguel@ximian.com>
30052 * UpDownBase.cs: Added some new properties.
30054 * DomainUpDown.cs: Implement a lot to get my test working.
30056 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30058 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
30060 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30062 * OSXStructs (WindowAttributes): Fixed csc complaints
30064 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30067 OSXStructs.cs: Initial refactor to move enums and consts into
30068 OSXStructs and use them in the driver for greater readability.
30070 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30072 * XplatUIOSX.cs: Initial support for Standard Cursors.
30073 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
30075 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
30077 * ComboBox.cs: ability to change style when the ctrl is already
30078 created, missing methods and events, bug fixes, signature fixes
30080 2005-01-19 Peter Bartok <pbartok@novell.com>
30082 * Cursors.cs (ctor): Added ctor to fix signature
30084 2005-01-18 Peter Bartok <pbartok@novell.com>
30086 * Button.cs: Implemented DoubleClick event
30088 - Fixed keyboard handling to behave like MS, where the press of
30089 Spacebar is equivalent to a mousedown, and the key release is
30090 equivalent to mouseup. Now a spacebar push will give the same
30091 visual feedback like a mouse click.
30092 - Added missing attributes
30093 - Added ImeModeChanged event
30094 - Added support for generating DoubleClick event for derived classes
30096 - Implemented DoubleClick event
30097 - Added missing attributes
30098 * CommonDialog.cs: Added missing attribute
30099 * ContextMenu.cs: Added missing attributes
30101 - AutoChecked buttons do not allow to be unselected when clicked
30102 (otherwise we might end up with no selected buttons in a group)
30103 - Added missing attributes
30104 - Implemented DoubleClickEvent
30105 * ThreadExceptionDialog.cs: Enabled TextBox code
30107 2005-01-18 Peter Bartok <pbartok@novell.com>
30109 * Form.cs: Removed debug output
30110 * Button.cs: Added support for DoubleClick method
30112 2005-01-18 Peter Bartok <pbartok@novell.com>
30115 - Added method to parent window that allows triggering size
30116 calculations when a menu is added/removed
30117 - set_Menu: Cleaned up mess from early days of Form and Control,
30118 now properly triggers a recalc when a menu is added/removed
30119 - Added case to select form itself as focused form if no child
30121 - Added PerformLayout call when showing dialog, to ensure properly
30124 - Select(): Made internal so Form can access it
30125 - Focus(): Only call Xplat layer if required (avoids loop), and sets
30127 * Application.cs (Run): Removed hack and calls PerformLayout instead
30128 to trigger calculation when Form becomes visible
30130 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
30132 * ComboBox.cs: fixes for ownerdraw
30134 2005-01-18 Peter Bartok <pbartok@novell.com>
30137 - Sentinel is no longer static, each Document gets it's own, this
30138 avoids locking or alternatively overwrite problems when more
30139 than one text control is used simultaneously.
30140 - Switched to use Hilight and HilightText brushes for text selection
30142 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
30144 2005-01-18 Peter Bartok <pbartok@novell.com>
30147 - Hooked up the following events:
30155 o SystemColorsChanged
30156 o ParentFontChanged
30158 - Removed debug output
30159 - Added a call to the current theme's ResetDefaults when a color change
30161 * Form.cs: Now setting the proper ImeMode
30162 * Theme.cs: Defined a method to force recreation of cached resources
30163 and rereading of system defaults (ResetDefaults())
30164 * ThemeWin32Classic.cs: Added ResetDefaults() stub
30166 2005-01-17 Peter Bartok <pbartok@novell.com>
30168 * Control.cs: Added missing attributes
30170 2005-01-17 Jackson Harper <jackson@ximian.com>
30172 * TreeNode.cs: Implement editing. Add missing properties selected
30174 * TreeView.cs: Implement node editing. Also some fixes to use
30175 Invalidate (invalid area) instead of Refresh when selecting.
30177 2005-01-17 Peter Bartok <pbartok@novell.com>
30180 - Implemented InvokeGotFocus() method
30181 - Implemented InvokeLostFocus() method
30182 - Implemented InvokePaint() method
30183 - Implemented InvokePaintBackground() method
30184 - Implemented InvokeClick() method
30185 - Implemented FindForm() method
30186 - Implemented RectangleToClient() method
30187 - Implemented ClientToRectangle() method
30188 - Implemented ResetBackColor() method
30189 - Implemented ResetCursor() method
30190 - Implemented ResetFont() method
30191 - Implemented ResteForeColor() method
30192 - Implemented ResetImeMode() method
30193 - Implemented ResetLeftToRight() method
30194 - Implemented ResetText() method
30195 - Implemented Scale() methods
30196 - Implemented ScaleCore() method
30197 - Implemented Update() method
30198 - Removed unused variables
30199 - Stubbed AccessibilityNotifyClients and
30200 ControlAccessibleObject.NotifyClients() methods (dunno what to do
30202 - Now setting proper default for RightToLeft property
30203 - Fixed bug in SetClientSizeCore that would cause windows to get
30205 - Now sending Click/DoubleClick events
30206 - Now selecting controls when left mouse button is clicked on
30208 * AccessibleEvents.cs: Added
30209 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
30210 * XplatUIOSX.cs: Stubbed UpdateWindow() method
30211 * XplatUIWin32.cs: Implemented UpdateWindow() method
30212 * XplatUIX11.cs: Implemented UpdateWindow() method
30213 * Form.cs: Removed stray semicolon causing CS0162 warning
30214 * ThemeWin32Classic.cs: Fixed unused variable warnings
30215 * ScrollableControl.cs: Now calls base method for ScaleCore
30216 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
30217 style to avoid interference with internal click handler (which is
30218 different than standard Control click handling)
30220 - Now unchecks all sibling radio buttons when control is
30221 selected (Fixes #68756)
30222 - Removed internal tabstop variable, using the one inherited from
30225 2005-01-17 Jackson Harper <jackson@ximian.com>
30227 * NavigateEventArgs.cs: Fix base type.
30228 * LinkLabel.cs: Sig fix
30230 2005-01-17 Jackson Harper <jackson@ximian.com>
30232 * TreeView.cs: Only invalidate the effected nodes bounds when
30235 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30237 * XplatUIWin32.cs: fixes Win32 marshaling
30238 * XplatUIX11.cs: fixes method signature
30240 2005-01-17 Peter Bartok <pbartok@novell.com>
30242 * XplatUIX11.cs: Clean up resources when we no longer need them
30244 2005-01-17 Peter Bartok <pbartok@novell.com>
30246 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
30247 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
30248 and DestroyCursor() methods.
30249 * Cursor.cs: Partially implemented, now supports standard cursors;
30250 still contains some debug code
30251 * Cursors.cs: Implemented class
30253 - WndProc(): Added handling of WM_SETCURSOR message, setting the
30255 - Implemented Cursor property
30256 - Replaced break; with return; more straightforwar and possibly
30258 - Now properly setting the result for WM_HELP
30259 * X11Structs.cs: Added CursorFontShape enum
30260 * XplatUIStructs.cs:
30261 - Added StdCursor enum (to support DefineStdCursor() method)
30262 - Added HitTest enum (to support sending WM_SETCURSOR message)
30264 - Now sends the WM_SETCURSOR message
30265 - Implemented new cursor methods
30266 * XplatUIOSX.cs: Stubbed new cursor methods
30268 - Implemented new cursor methods
30269 - Added GetSystemMetrics function and associated enumeration
30271 2005-01-15 Peter Bartok <pbartok@novell.com>
30274 - WndProc(): Now handles EnableNotifyMessage
30275 - SelectNextControl(): Fixed bug where if no child or sibling
30276 controls exist we looped endlessly
30278 2005-01-14 Jackson Harper <jackson@ximian.com>
30280 * TreeView.cs: Recalculate the tab pages when a new one is added
30281 so that the proper bounding rects are created.
30283 2005-01-14 Jackson Harper <jackson@ximian.com>
30285 * TreeView.cs: Draw a gray box instead of a grip in the lower
30286 right hand corner when there are both horizontal and vertical
30289 2005-01-14 Jackson Harper <jackson@ximian.com>
30291 * Control.cs: When erasing backgrounds use FromHwnd instead of
30292 FromHdc when there is a NULL wparam. This occurs on the X driver.
30293 * XplatUIX11.cs: Set the wparam to NULL.
30295 2005-01-13 Jackson Harper <jackson@ximian.com>
30297 * PictureBox.cs: Implement missing methods (except ToString, need
30298 to test that on windows) and events. When visibility is changed we
30299 need to redraw the image because the buffers are killed. When size
30300 is changed refresh if the sizemode needs it.
30302 2005-01-13 Peter Bartok <pbartok@novell.com>
30304 * Control.cs (SelectNextControl): Was using wrong method to select
30307 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30309 * ComboBox.cs: fixes dropstyle
30311 2005-01-13 Peter Bartok <pbartok@novell.com>
30314 - Implemented Select() override
30315 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
30316 - Now sets keyboard focus on startup
30317 * Control.cs (SelectNextControl): Now properly handles directed=true
30319 - WndProc: Now passes tab key on to base if AcceptTabChar=false
30320 - Added (really bad) focus rectangle (mostly for testing)
30321 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
30322 to enforce redraw on focus changes
30323 * ContainerControl.cs:
30324 - Fixed detection of Shift-Tab key presses
30325 - Fixed traversal with arrow keys
30326 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
30327 gonna keep this or if it's complete yet
30329 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30331 * ComboBox.cs: missing properties, fixes
30333 2005-01-13 Peter Bartok <pbartok@novell.com>
30335 * Panel.cs (ctor): Setting Selectable window style to off
30336 * Splitter.cs (ctor): Setting Selectable window style to off
30337 * GroupBox.cs (ctor): Setting Selectable window style to off
30338 * Label.cs (ctor): Setting Selectable window style to off
30340 2005-01-12 Miguel de Icaza <miguel@ximian.com>
30342 * UpDownBase.cs (InitTimer): If the timer has been already
30343 created, enable it.
30345 Use a TextBox instead of a Label.
30347 2005-01-12 Jackson Harper <jackson@ximian.com>
30349 * TreeView.cs: Refresh the tree after sorting the nodes. Always
30350 draw the connecting node lines (when ShowLines is true).
30351 * TreeNode.cs: The nodes index can now be updated. This is used
30352 when a node collection is sorted.
30353 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
30354 insert or an existing unsorted node collection can be sorted.
30356 2005-01-12 Peter Bartok <pbartok@novell.com>
30358 * ContainerControl.cs: Implemented ProcessDialogKeys()
30360 2005-01-12 Peter Bartok <pbartok@novell.com>
30363 - Implemented SelectNextControl() method
30364 - Several focus related bug fixes
30365 - Fixed Docking calculations to match MS documentation and
30368 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
30370 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
30373 2005-01-12 Peter Bartok <pbartok@novell.com>
30376 - Fixed broken Contains() method
30377 - Implemented GetNextControl() method. Finally. This is the pre-
30378 requisite for focus handling.
30380 2005-01-12 Peter Bartok <pbartok@novell.com>
30382 * OSXStrucs.cs: Added
30384 2005-01-12 Peter Bartok <pbartok@novell.com>
30387 - Removed PeekMessageFlags
30388 - Implemented SetWindowStyle() method
30389 * XplatUIStructs.cs: Added PeekMessageFlags
30390 * X11Structs: Added missing border_width field to XWindowChanges struct
30392 - PeekMessage: Now throws exception if flags which are not yet
30393 supported are passed
30394 - Implemented SetWindowStyle() method
30395 - Fixed SetZOrder to handle AfterHwnd properly
30396 * XplatUI.cs: Added SetWindowStyle() method
30397 * XplatUIDriver.cs: Added SetWindowStyle() abstract
30399 - Implemented UpdateStyles() method
30400 - Implemented UpdateZOrder() method
30401 * XplatUIOSX.cs: Added SetWindowStyle() stub
30403 2005-01-12 Geoff Norton <gnorton@customerdna.com>
30405 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
30409 2005-01-11 Jackson Harper <jackson@ximian.com>
30411 * TreeView.cs: Still need to draw lines to siblings even if out of
30412 the current node is out of the clip.
30414 2005-01-11 Jackson Harper <jackson@ximian.com>
30416 * TreeView.cs: When setting the hbar/vbar/grip position use
30417 SetBounds so that perform layout is only called once. Also suspend
30418 and resume layout so layout is only done once for all controls.
30419 - Removed some debug fluff
30420 * SizeGrip.cs: Call base implmentation in overriding methods.
30421 - When visibility is changed the drawing buffers are killed so we
30424 2005-01-11 Jackson Harper <jackson@ximian.com>
30426 * TreeView.cs: Calculate the open node count while drawing. This
30427 saves us an entire tree traversal for every paint operation. Use
30428 a member var for the open node count so less vars are passed around.
30430 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
30432 * MonthCalendar.cs:
30433 - fixed selection to use mousemove, not mouse polling on timer
30434 * ThemeWin32Classic.cs
30435 - removed redundant unused variable "no_more_content"
30437 2005-01-11 Peter Bartok <pbartok@novell.com>
30439 * XplatUIX11.cs (DoEvents): Needs to return when no more events
30440 are pending, so it now calls PeekMessage instead of GetMessage;
30441 implemented a incomplete version of PeekMessage
30443 2005-01-11 Peter Bartok <pbartok@novell.com>
30445 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
30447 * TextBoxBase.cs: Added sending of TextChanged event
30449 2005-01-10 Jackson Harper <jackson@ximian.com>
30451 * TreeView.cs: Try not to draw outside the clipping rectangle on
30454 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
30456 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
30458 2005-01-10 Jackson Harper <jackson@ximian.com>
30461 - Implement fast scrolling. Now only the newly
30462 exposed nodes are drawn and the old image is moved using the
30463 XplatUI::ScrollWindow method.
30464 - Factor in height of nodes when calculating whether or not the
30465 node is in the clipping rect.
30467 2005-01-10 Jackson Harper <jackson@ximian.com>
30469 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30471 2005-01-10 Peter Bartok <pbartok@novell.com>
30473 * Application.cs: Added temporary hack to resolve all our resize
30474 required issues on startup. This will get fixed properly at
30475 some point in the future
30477 2005-01-10 Jackson Harper <jackson@ximian.com>
30479 * SizeGrip.cs: New internal class that is used as a sizing
30480 grip control...hence the name.
30482 2005-01-10 Peter Bartok <pbartok@novell.com>
30484 * Control.cs: Implemented proper TabIndex handling, now assigning
30485 a tabindex when a control is added to a container
30486 * GroupBox.cs (ctor): Now sets the Container style bit, required
30487 for Control.GetNextControl()
30489 2005-01-09 Jackson Harper <jackson@ximian.com>
30491 * TextBoxBase.cs: Clear window when scrolling (fixes build).
30493 2005-01-09 Peter Bartok <pbartok@novell.com>
30495 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30496 XplatUIX11.cs: Added ability to control ScrollWindow expose and
30497 an overload for ScrollWindow to allow only scrolling a rectangle
30499 2005-01-09 Peter Bartok <pbartok@novell.com>
30502 - Implemented SetDesktopBounds method
30503 - Implemented SetDesktopLocation method
30505 2005-01-08 Jackson Harper <jackson@ximian.com>
30507 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30508 the node count has changed, this removes to VScroll::Refresh calls
30511 2005-01-08 Geoff Norton <gnorton@customerdna.com>
30513 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30515 2005-01-07 Jackson Harper <jackson@ximian.com>
30517 * TreeNode.cs: Just update the single node when it is
30518 checked. Don't refresh after toggling, the Expand/Collapse already
30520 * TreeView.cs: Respect clipping a little more when drawing. Try
30521 not to redraw things that don't need to be redrawn. Just hide the
30522 scrollbars when they are no longer needed instead of removing
30523 them, so they don't have to be created again and again.
30525 2005-01-07 Geoff Norton <gnorton@customerdna.com>
30527 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
30528 coordinates to window space to place the caret properly, FIXED.
30529 Implement GetWindowState & SetWindowState
30531 2005-01-06 Peter Bartok <pbartok@novell.com>
30534 - Implemented ClientSize property
30535 - Implemented DesktopBounds property
30536 - Implemented DesktopLocation property
30537 - Implemented IsRestrictedWindow property
30538 - Implemented Size property
30539 - Implemented TopLevel property
30540 - Implemented FormWindowState property
30542 - Implemented GetTopLevel() method
30543 - Implemented SetTopLevel() method
30544 * X11Structs.cs (Atom):
30545 - Added AnyPropertyType definition
30546 - Added MapState definiton and updated XWindowAttribute struct
30547 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30548 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30549 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30551 - Implemented GetWindowState() and SetWindowState() methods
30552 - Fixed Win32GetWindowLong return type
30554 - Introduced central function for sending NET_WM messages
30555 - Implemented GetWindowState() and SetWindowState() methods
30556 * TextBoxBase.cs (set_Lines):
30557 - Now uses Foreground color for text added via Text property (Duh!)
30558 - Added code to remember programmatically requested size (fixes
30559 behaviour when Multiline is set after Size)
30560 - Added AutoSize logic
30562 2005-01-06 Jackson Harper <jackson@ximian.com>
30564 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30566 2005-01-06 Jackson Harper <jackson@ximian.com>
30568 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30569 set to less then 0.
30571 2005-01-06 Jackson Harper <jackson@ximian.com>
30573 * ScrollableControl.cs: Lazy init the scrollbars.
30575 2005-01-06 Jackson Harper <jackson@ximian.com>
30577 * Theme.cs: Speed up getting pens and solid brushes, by using
30578 their ARGB as a hash instead of tostring and not calling Contains.
30580 2005-01-06 Peter Bartok <pbartok@novell.com>
30583 - Implemented OnActivated and OnDeactivate event trigger
30584 - Implemented Activate() method
30585 - Fixed ShowDialog() to activate the form that was active before
30586 the dialog was shown
30588 - Added global active_window var that tracks the currently active
30590 - Now always grabs Property changes from the root window to always
30591 catch changes on the active window property
30592 - Added code to PropertyNotify handler to send Active/Inactive
30593 messages when state changes. This puts X11 and Win32 en par on
30594 WM_ACTIVATE notifications (except for double notifications when
30595 the user clicks away from our modal window to another one of our
30598 2005-01-05 Jackson Harper <jackson@ximian.com>
30600 * ImageList.cs: Implment ctor
30602 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30604 * XplatUIOSX.cs: Implement Activate/SetTopmost
30606 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30608 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
30610 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30612 * XplatUIOSX.cs: Implement GetActive/SetFocus.
30614 2005-01-05 Peter Bartok <pbartok@novell.com>
30616 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
30617 XplatUIOSX.cs: Added GetActive method to return the currently
30618 active window for the application (or null, if none is active)
30620 - Implemented ActiveForm
30621 - Commented out owner assignment for modal dialogs (causes problems
30622 on Win32, since the owner will be disabled)
30623 - Reworked some Active/Focus handling (still incomplete)
30624 * CommonDialog.cs: Commented out owner assignment for modal dialogs
30625 (causes problems on Win32, since the owner will be disabled)
30626 * IWin32Window: Added ComVisible attribute
30628 2005-01-05 Peter Bartok <pbartok@novell.com>
30630 * ToolTip.cs (WndProc): Enable setting focus now that we have the
30631 required XplatUI functions.
30633 2005-01-05 Peter Bartok <pbartok@novell.com>
30635 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
30636 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
30637 to implement focus and activation handling; still incomplete and
30640 2005-01-04 Peter Bartok <pbartok@novell.com>
30642 * TextBoxBase.cs: Changed access level for Document property to
30643 match switch to internal for TextControl
30645 2005-01-04 Peter Bartok <pbartok@novell.com>
30647 * AccessibleObject: Added ComVisible attribute
30649 2005-01-04 Jackson Harper <jackson@ximian.com>
30651 * X11Keyboard.cs: Remove unneeded var.
30653 2005-01-04 Jackson Harper <jackson@ximian.com>
30655 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
30657 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
30658 ClientMessage. This makes apps exit cleanly (more often).
30660 2005-01-04 Jackson Harper <jackson@ximian.com>
30662 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
30663 handling focus, return correct colors and fonts,
30664 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
30665 handle selection, horizontal scrolling, and mouse interaction.
30667 2005-01-04 Peter Bartok <pbartok@novell.com>
30669 * ICommandExecutor.cs: Added
30670 * IDataGridColumnStyleEditingNotificationService.cs: Added
30671 * IFeatureSupport.cs: Added
30672 * IFileReaderService.cs: Added
30673 * IDataObject.cs: Added ComVisible attribute
30674 * AmbientProperties.cs: Added
30675 * BaseCollection.cs: Added missing attributes
30676 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
30677 * BaseCollection.cs: Added missing attributes
30678 * Binding.cs: Added TypeConverter attribute
30679 * BindingContext.cs: Added DefaultEvent attribute
30680 * BindingsCollection.cs: Added DefaultEvent attribute
30681 * Button.cs: Added DefaultValue attribute
30682 * DragEventArgs.cs: Added ComVisible attribute
30683 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
30684 * KeyEventArgs.cs: Added ComVisible attribute
30685 * KeyPressEventArgs.cs: Added ComVisible attribute
30686 * MouseEventArgs.cs: Added ComVisible attribute
30687 * NavigateEventArgs.cs: Added
30688 * NavigateEventHandler.cs: Added
30689 * FeatureSupport.cs: Added
30690 * OSFeature.cs: Added
30691 * Theme.cs: Added abstract Version property to support OSFeature
30692 * ThemeWin32Classic.cs: Added Version property to
30693 support OSFeature.Themes
30694 * ProgressBar.cs: Removed OnPaintBackground override, not required since
30695 the proper styles to avoid background drawing are set, also doesn't
30697 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
30698 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
30699 * ScrollEventArgs.cs: Added ComVisible attribute
30700 * SplitterEventArgs.cs: Added ComVisible attribute
30701 * AccessibleSelection.cs: Added Flags attribute
30702 * Appearance.cs: Added ComVisible attribute
30703 * Border3DSide.cs: Added ComVisible attribute
30704 * Border3DStyle.cs: Added ComVisible attribute
30705 * BorderStyle.cs: Added ComVisible attribute
30706 * DragAction.cs: Added ComVisible attribute
30707 * ErrorBlinkStyle.cs: Added
30708 * ScrollEventType.cs: Added ComVisible attribute
30709 * AnchorStyles.cs: Added Editor attribute
30710 * DockStyle.cs: Added Editor attribute
30711 * HorizontalAlignment.cs: Added ComVisible attribute
30712 * HelpEventArgs.cs: Added ComVisible attribute
30713 * PaintEventArgs.cs: Added IDisposable
30715 2005-01-04 Peter Bartok <pbartok@novell.com>
30717 * TextControl.cs: Switched Line, LineTag and Document classes to
30720 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
30722 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
30723 Simple mode, fixes, IntegralHeight, etc.
30725 2005-01-04 Peter Bartok <pbartok@novell.com>
30727 * TextBoxBase.cs: Using proper font variable now
30729 2005-01-04 Peter Bartok <pbartok@novell.com>
30731 * Form.cs (ShowDialog): Set parent to owner, if provided
30732 * GroupBox.cs: Removed unused vars
30734 - Added GetHashCode() for Document and LineTag classes
30735 - Removed unused variables
30736 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
30737 to allow translation between continuous char position and line/pos
30738 * CheckBox.cs: Removed vars that are provided by base class
30739 * RadioButton.cs: Removed vars that are provided by base class, added
30740 new keyword where required
30741 * LinkLabel.cs: Added new keyword where required
30742 * Control.cs (WndProc): Removed unused variable
30744 - Finished SelectionLength property
30745 - Implemented SelectionStart property
30746 - Implemented Text property
30747 - Removed unused vars
30748 * MessageBox.cs: Added new keyword where required
30749 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
30751 * MenuAPI.cs: Added new keyword where required
30752 * ButtonBase.cs: Removed vars that are provided by base class, added
30753 new keyword where required
30754 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
30755 argument to double, to allow compiling with csc 2.0 (Atsushi ran
30757 * Application.cs (Run): Now triggers the ThreadExit event
30758 * CommonDialog.cs: Added new keyword where required; now properly sets
30759 parent (owner) for dialog
30760 * XplatUIX11.cs: Commented out unused vars
30761 * StatusBar.cs: Fixed signature for Text property
30762 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
30764 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
30766 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
30767 TrackBar.cs, MonthCalendar.cs: remove unused vars
30769 2005-01-03 Jackson Harper <jackson@ximian.com>
30771 * ThemeWin32Classic.cs:
30772 * X11Keyboard.cs: Remove unused vars.
30774 2005-01-03 Peter Bartok <pbartok@novell.com>
30777 - set_Text: Tied into TextControl
30778 - set_TextAlignment: Tied into TextControl
30780 - Added alignment properties and implemented alignment handling
30781 and drawing (still has a bug, not generating proper expose events)
30782 - Added new Line() constructor to allow passing the line alignment
30783 - Fixed selection setting, properly handling end<start now
30784 - Added aligment considerations to RecalculateDocument()
30786 - Now properly enforces control height for single line controls
30787 - Added support for CharacterCasing
30788 - Added IsInputKey override
30789 - Fixed Keys.Enter logic
30790 - Added SetBoundsCore override
30791 - Fixed mouse selection handling
30793 2005-01-03 Jackson Harper <jackson@ximian.com>
30796 - Collapse and uncheck all nodes when CheckBoxes is disabled.
30797 - Checkboxes are always aligned to the bottom of the node,
30798 regardless of item height.
30799 - Use the node bounds to draw the text so we can center it when
30800 the item height is greater then the font height.
30801 - Node::Bounds are only the text part of the node.
30802 * TreeNode.cs: New method to combine collapsing and unchecking all
30805 2005-01-02 Jackson Harper <jackson@ximian.com>
30807 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
30808 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
30809 tree when a check is changed. TODO: Only refresh the checked node.
30811 2004-12-30 Jackson Harper <jackson@ximian.com>
30813 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
30814 * TreeNode.cs: When collapsing make sure to never collapse the
30817 2004-12-29 Jackson Harper <jackson@ximian.com>
30819 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
30821 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
30823 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
30825 2004-12-28 Peter Bartok <pbartok@novell.com>
30827 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
30830 2004-12-28 Peter Bartok <pbartok@novell.com>
30832 * Control.cs (WndProc): Added WM_HELP handler, now generates
30833 HelpRequested event
30834 * Form.cs: Added HelpButton property and required support code
30835 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
30837 2004-12-28 Peter Bartok <pbartok@novell.com>
30840 - Made DialogForm.owner variable internal
30841 - Added check to ensure owner form is set before setting
30842 owner properties in CreateParams
30844 2004-12-28 Geoff Norton <gnorton@customerdna.com>
30846 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
30847 swizzling. Implement ClientToScreen and ScreenToClient. Implement
30848 GetCursorPos. Fix major visibility issues. Rework the windowing
30849 system to support borderless/titleless windows (implements menus).
30850 Fix GetWindowPos. Implement initial background color support for
30853 2004-12-28 Peter Bartok <pbartok@novell.com>
30855 * Form.cs (get_CreateParams): Make sure we have an owner before using
30856 the owner variable. Implement proper default if no owner exists
30858 2004-12-28 Peter Bartok <pbartok@novell.com>
30860 * In preparation for making Managed.Windows.Forms the default build target
30861 for System.Windows.Forms, the following stubbed files were added.
30862 Dialogs are currently being implemented by contributors and are only
30863 short-term place holders.
30864 * ColorDialog.cs: Initial check-in (minmal stub)
30865 * DataGrid.cs: Initial check-in (minimal stub)
30866 * DataGridLineStyle.cs: Initial check-in (minimal stub)
30867 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
30868 * DataGridTableStyle.cs: Initial check-in (minimal stub)
30869 * FontDialog.cs: Initial check-in (minimal stub)
30870 * FileDialog.cs: Initial check-in (minimal stub)
30871 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
30872 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
30873 * OpenFileDialog: Initial check-in (minimal stub)
30874 * IComponentEditorPageSite.cs: Initial check-in
30875 * Splitter.cs: Initial check-in (for Jackson)
30876 * SplitterEventArgs.cs: Initial check-in (for Jackson)
30877 * SplitterEventHandler.cs: Initial check-in (for Jackson)
30878 * TextBox.cs: Initial check-in; still needs some wiring to
30879 TextControl backend
30880 * Form.cs: Implemented ControlBox property
30881 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
30882 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
30883 * TextControl.cs: Added selection functionality; added todo header
30885 - Implemented Lines property
30886 - Implemented TextHeight property
30887 - Implemented SelectedText property
30888 - Implemented SelectionLength property
30889 - Implemented SelectAll method
30890 - Implemented ToString method
30891 - Removed and cleaned up some debug code
30892 - Implemented (still buggy) mouse text selection
30894 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
30896 * ComboBox.cs: Complete DropDownList implementation, fixes.
30898 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
30900 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
30901 * ComboBoxStyle.cs: ComboBoxStyle enum
30902 * ComboBox.cs: Initial work on ComboBox control
30904 2004-12-21 Peter Bartok <pbartok@novell.com>
30906 * Control.cs (ctor, CreateParams): Moved setting of is_visible
30907 forward so that anything that creates a window gets the default,
30908 also no longer uses Visible property in CreateParams to avoid
30909 walking up the parent chain and possibly get the wrong visible
30910 status. Fixed IsVisible to no longer walk up to the parent.
30912 2004-12-21 Peter Bartok <pbartok@novell.com>
30914 * Form.cs (ShowDialog): Unset modality for the proper window
30916 2004-12-20 Peter Bartok <pbartok@novell.com>
30918 * CommonDialog.cs: Initial check-in
30920 2004-12-20 Peter Bartok <pbartok@novell.com>
30922 * Control.cs (Visible): Now uses the parent window instead of the
30923 client area window for the property
30926 - ShowDialog(): Now uses the proper window for modality
30927 - The default visibility state for the form parent is now false. This
30928 will prevent the user from seeing all the changes to the form and
30929 its controls before the application hits Application.Run()
30930 - Removed some stale commented out code
30933 - Added FindWindow() method to have a method to check for existence
30935 - Added ability to override default exception handling (for example
30936 when debugging with VS.Net; to do this the ExternalExceptionHandler
30938 - Removed some useless debug output
30941 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
30942 not working as expected
30943 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
30944 property to allow switching back to the modal window if focus is
30945 given to another one of our windows (Application Modal)
30946 - Now only sets override_redirect if we create a window
30948 - Moved EventMask selection before mapping of newly created window
30949 so we can catch the map event as well
30950 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
30951 - Added various Atom related DllImports
30952 - Implemented Exit() method
30953 - .ctor() : No longer shows window if WS_VISIBLE is not defined
30954 in the CreateParams
30956 * MessageBox.cs: Now properly deals with the FormParent window by
30957 providing an override the FormParent CreateParams property to
30958 set as POPUP instead of OVERLAPPED window.
30960 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30962 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
30963 Minor code cleanup.
30965 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30967 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
30969 2004-12-18 Peter Bartok <pbartok@novell.com>
30971 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
30972 implementing SetModal() method
30974 2004-12-18 Peter Bartok <pbartok@novell.com>
30976 * X11Structs.cs (XGCValues): Fixed type of function element
30977 * XplatUI.cs: Added ScrollWindow() method
30978 * XplatUIDriver.cs: Added ScrollWindow() abstract
30979 * XplatUIWin32.cs: Implemented ScrollWindow() method
30980 * XplatUIX11.cs: Implemented ScrollWindow() method
30981 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
30983 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30985 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
30986 Some more keyboard support (INCOMPLETE)
30988 2004-12-17 Peter Bartok <pbartok@novell.com>
30991 - Added color attribute to line tags.
30992 - Added color argument to all functions dealing with tags
30993 - Added color argument support to various functions
30994 - Fixed miss-calculation of baseline/shift in certain circumstances
30996 * TextBoxBase.cs: Added new color option to test code
30998 2004-12-17 Jackson Harper <jackson@ximian.com>
31001 * MonthCalendar.cs: Signature fixes
31003 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31005 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
31006 keyboard event moved it. Create a new graphics context for each paint resolves this
31008 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31010 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
31011 Make caret exist and go blink blink. Initial keyboard support.
31012 Fix exception handler, Add Invalidate support. Change way RefreshWindow
31015 2004-12-17 Jackson Harper <jackson@ximian.com>
31017 * XplatUIStructs.cs: Updated set of virtual keycodes.
31018 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
31020 2004-12-17 Jackson Harper <jackson@ximian.com>
31022 * XplatUIX11.cs: Prune old keyboard code.
31024 2004-12-17 Jackson Harper <jackson@ximian.com>
31026 * XplatUIX11.cs: When generating mouse wparams get the modifier
31027 keys from the ModifierKeys property.
31029 2004-12-17 Jackson Harper <jackson@ximian.com>
31031 * X11Keyboard.cs: Send up/down input when generating
31032 messages. Remove some unused vars.
31034 2004-12-17 Jackson Harper <jackson@ximian.com>
31037 * TreeView.cs: get rid of warnings.
31039 2004-12-17 Jackson Harper <jackson@ximian.com>
31041 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
31043 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
31045 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
31046 CheckedListBox.cs: Implementation
31048 2004-12-17 Peter Bartok <pbartok@novell.com>
31050 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
31052 2004-12-16 Peter Bartok <pbartok@novell.com>
31055 - InsertCharAtCaret(): Fixed start pos fixup
31056 - CaretLine_get: No longer derives the line from the tag, the tag
31057 could be stale if lines in the document have been added or deleted
31058 - RebalanceAfterDelete(): Fixed bug in balancing code
31059 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
31060 - Line.Streamline(): Now can also elminate leading empty tags
31061 - DumpTree(): Added a few more tests and prevented exception on
31063 - Added Debug section for Combining lines
31064 - Delete(): Now copies all remaining properties of a line
31067 - Left mousebutton now sets the caret (and middle button still acts
31068 as formatting tester, which must go away soon)
31069 - Added Debug section for Deleting/Combining lines
31070 - Fixed calculations for UpdateView after Combining lines
31072 2004-12-16 Peter Bartok <pbartok@novell.com>
31074 * TextControl.cs: Now properly aligns text on a baseline, using the
31075 new XplatUI.GetFontMetrics() method. Simplified several calculations
31076 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
31079 2004-12-16 Peter Bartok <pbartok@novell.com>
31081 * XplatUI.cs: Added GetFontMetrics() method
31082 * XplatUIDriver.cs: Added GetFontMetrics() abstract
31083 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
31084 into libgdiplus, our private GetFontMetrics function
31085 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
31086 * XplatUIWin32.cs: Implemented GetFontMetrics() method
31088 2004-12-16 Jackson Harper <jackson@ximain.com>
31090 * XplatUIStruct.cs: Add enum for dead keys
31091 * X11Keyboard.cs: Map and unmap dead keys.
31093 2004-12-16 Jackson Harper <jackson@ximian.com>
31095 * X11Keyboard.cs: Detect and use the num lock mask.
31097 2004-12-16 Peter Bartok <pbartok@novell.com>
31099 * Control.cs (CreateGraphics): Added check to make sure the
31100 handle of the window exists before calling Graphics.FromHwnd()
31102 2004-12-16 Peter Bartok <pbartok@novell.com>
31104 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
31105 contains a lot of code that's not supposed to be there for the
31106 real thing, but required for developing/testing the textbox
31109 2004-12-16 Peter Bartok <pbartok@novell.com>
31112 - Fixed Streamline method
31113 - Added FindTag method to Line
31114 - Added DumpTree method for debugging
31115 - Added DecrementLines() method for deleting lines
31116 - Fixed UpdateView to update the cursor to end-of-line on single-line
31118 - Added PositionCaret() method
31119 - Fixed MoveCaret(LineDown) to move into the last line, too
31120 - Added InsertChar overload
31121 - Fixed InsertChar tag offset calculations
31122 - Added DeleteChar() method
31123 - Added Combine() method for folding lines
31124 - Fixed Delete() method, no longer allocates wasted Line object and
31125 now copies all properties when swapping nodes
31126 - Delete() method now updates document line counter
31128 2004-12-15 Jackson Harper <jackson@ximian.com>
31130 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
31131 * X11Keyboard.cs: Expose the currently selected modifier keys
31132 through a property.
31134 2004-12-15 Peter Bartok <pbartok@novell.com>
31136 * TextControl.cs: Initial check-in. Still incomplete
31138 2004-12-15 Jackson Harper <jackson@ximian.com>
31141 * TreeView.cs: Fix build on csc (second time today ;-))
31143 2004-12-15 Jackson Harper <jackson@ximian.com>
31145 * TreeView.cs: Store the treenodes plus/minus box bounds when it
31146 is calculated and use this for click testing.
31147 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
31149 2004-12-15 Jackson Harper <jackson@ximian.com>
31151 * TreeView.cs: Pass the nodes image index to the image list when
31152 drawing that image.
31154 2004-12-15 Jackson Harper <jackson@ximian.com>
31156 * X11Keyboard.cs: Set messages hwnd.
31157 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
31158 post_message calls.
31160 2004-12-15 Jackson Harper <jackson@ximian.com>
31162 * X11Keyboard.cs: Fix to compile with csc.
31164 2004-12-15 Jackson Harper <jackson@ximian.com>
31166 * X11Structs.cs: Add key mask values
31167 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
31168 * X11Keyboard.cs: New file - Extrapolates and interpolates key
31169 down/up foo into WM_CHAR foo
31170 * KeyboardLayouts.cs: Common keyboard layouts
31171 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
31172 post messages into the main queue.
31174 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
31176 * Button.cs: implement ProcessMnemonic
31177 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
31179 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
31180 * ButtonBase.cs: Show HotkeyPrefix (not the &)
31182 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
31184 * MonthCalendar.cs: Implemented click-hold for next/previous month
31187 2004-12-11 Peter Bartok <pbartok@novell.com>
31190 - Added XKeyboardState (moved from XplatUIX11.cs)
31191 - Added XCreateGC related enums and structures
31192 - Added GXFunction for XSetFunction
31194 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
31196 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
31197 CaretVisible() calls
31199 * ToolTip.cs: Added code to prevent stealing focus from app windows
31201 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
31202 DestroyCaret, SetCaretPos and CaretVisible)
31205 - Added implementation for caret functions
31206 - Moved hover variables into a struct, to make it a bit easier
31207 on the eyes and to debug
31208 - Removed XKeyboardState (moved to XplatUIX11.cs)
31209 - Moved Keyboard properties into the properties region
31211 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
31212 call to get a graphics context for our control
31214 * XplatUIOSX.cs: Added empty overrides for the new caret functions
31216 * TreeView.cs: Fixed bug. No matter what color was set it would always
31217 return SystemColors.Window
31219 * XplatUIWin32.cs: Implemented caret overrides
31221 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
31223 * ListBox.cs: fire events, implement missing methods and properties,
31226 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
31228 * MonthCalendar.cs: invalidation bug fixing
31229 * ThemeWin32Classic.cs: paint fixing
31231 2004-12-09 Geoff Norton <gnorton@customerdna.com>
31233 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
31234 prepare the CGContextRef there now.
31236 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
31238 * MonthCalendar.cs:
31239 - optimisationL only invalidate areas that have changed
31240 * ThemeWin32Classic.cs:
31241 - only paint parts that intersect with clip_area
31243 2004-12-09 Peter Bartok <pbartok@novell.com>
31245 * Application.cs: Undid changes from r37004 which cause problems
31248 2004-12-09 Ravindra <rkumar@novell.com>
31250 * ToolBar.cs: Added support for displaying ContextMenu
31251 attached to a button on ToolBar.
31252 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
31255 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31257 * Label.cs: autosize works in text change and removes unnecessary
31260 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31262 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31265 2004-12-08 Geoff Norton <gnorton@customerdna.com>
31267 * XplatUIOSX.cs: Added mouse move/click/grab support
31268 Remove some debugging WriteLines not needed anymore.
31269 Add window resizing/positioning.
31270 Fix visibility on reparenting.
31272 2004-12-08 Peter Bartok <pbartok@novell.com>
31274 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
31276 2004-12-07 Geoff Norton <gnorton@customerdna.com>
31278 * XplatUIOSX.cs: Initial checkin
31279 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
31281 2004-12-03 Ravindra <rkumar@novell.com>
31283 * ListView.cs: Added some keybindings and fixed scrolling.
31284 ScrollBars listen to ValueChanged event instead of Scroll
31285 Event. This would let us take care of all changes being
31286 done in the scrollbars' values programmatically or manually.
31287 * ListView.cs (CanMultiselect): Added a check for shift key.
31288 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
31289 * ListViewItem.cs (Clone): Fixed. We need to make a copy
31290 of ListViewSubItemCollection as well.
31292 2004-12-06 Peter Bartok <pbartok@novell.com>
31294 * Control.cs (Parent): Added check and exception to prevent
31297 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
31299 * ListBox.cs: implemented clipping, selection single and multiple,
31302 2004-12-03 Ravindra <rkumar@novell.com>
31304 * ListView.cs (ListView_KeyDown):
31305 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
31306 when CTRL key is pressed.
31307 * ListViewItem.cs (Selected): Fixed setting the property.
31309 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31311 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
31313 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
31314 MinimizeBox, ShowInTaskbar, TopMost properties.
31316 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
31317 will be implemented).
31319 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31321 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
31323 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
31326 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
31328 * TreeView.cs: BackColor is Colors.Window.
31330 2004-12-01 Jackson Harper <jackson@ximian.com>
31332 * TreeView.cs: When resizing the tree if the user is making it
31333 smaller we don't get expose events, so we need to handle adding
31334 the horizontal scrollbar in the size changed handler as well as
31335 the expose handler.
31337 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
31339 * DrawItemState.cs: fixes wrong enum values
31341 2004-12-01 Jackson Harper <jackson@ximian.com>
31343 * TreeView.cs: Resize the hbar as well as the vbar on resize.
31345 2004-12-01 Jackson Harper <jackson@ximian.com>
31347 * NodeLabelEditEventArgs.cs:
31348 * NodeLabelEditEventHandler.cs:
31349 * OpenTreeNodeEnumerator.cs:
31351 * TreeNodeCollection.cs:
31353 * TreeViewAction.cs:
31354 * TreeViewCancelEventArgs.cs:
31355 * TreeViewCancelEventHandler.cs:
31356 * TreeViewEventArgs.cs:
31357 * TreeViewEventHandler.cs: Initial implementation.
31359 2004-12-01 Ravindra <rkumar@novell.com>
31361 * ListView.cs (CalculateListView): Fixed scrolling related
31362 calculations. Also, removed some debug statements from other
31364 * ListViewItem.cs: Changed access to 'selected' instance variable
31365 from private to internal.
31366 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
31368 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
31370 * ThemeWin32Classic.cs: remove cache of brush and pens for
31371 specific controls and use the global system, fixes scrollbutton
31372 bugs (for small sizes, disabled, etc)
31374 * ScrollBar.cs: does not show the thumb for very small controls
31375 (as MS) and allow smaller buttons that the regular size
31377 2004-12-01 Miguel de Icaza <miguel@ximian.com>
31379 * UpDownBase.cs: Add abstract methods for the interface.
31380 Add new virtual methods (need to be hooked up to TextEntry when it
31382 Add override methods for most features.
31383 Computes the size, forces the height of the text entry.
31385 * NumericUpDown.cs: Put here the current testing code.
31387 * Set eol-style property on all files that do not have mixed line
31388 endings, to minimize the future problems. There are still a few
31389 files with mixed endings, and someone should choose whether they
31390 want to move it or not.
31392 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
31394 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
31397 2004-11-30 Ravindra <rkumar@novell.com>
31399 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
31400 drawing and replaced use of SystemColors by theme colors.
31401 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
31402 * ListView.cs (ListViewItemCollection.Add): Throw exception when
31403 same ListViewItem is being added more than once.
31405 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
31407 * MonthCalendar.cs:
31408 - ControlStyles love to make the control not flicker
31410 2004-11-30 Peter Bartok <pbartok@novell.com>
31412 * CharacterCasing.cs: Added
31414 2004-11-29 Peter Bartok <pbartok@novell.com>
31416 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31417 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
31418 I am removing these files as they conflict with already completed
31419 work. While it is fantastic to get contributions to MWF, I
31420 respectfully ask that everyone please coordinate their contributions
31421 through mono-winforms-list or #mono-winforms at this time. We're
31422 explicitly avoiding stubbing and don't want controls that don't have
31423 their basic functionality implemented in svn. Please also see
31424 http://www.mono-project.com/contributing/winforms.html
31427 2004-11-29 Marek Safar <marek.safar@seznam.cz>
31429 * Application.cs (ModalRun): Don't hang after exit.
31431 * Theme.cs: New TreeViewDefaultSize property.
31433 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
31434 with less hardcoded SystemColors constant.
31435 Implemented TreeViewDefaultSize.
31437 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31438 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
31441 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
31443 * MonthCalendar.cs:
31444 - Fix NextMonthDate and PrevMonthDate click moving calendar
31446 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31448 * MonthCalendar.cs:
31449 - Fix usage of ScrollChange Property when scrolling months
31451 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
31453 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
31454 - Fixes menu destroying
31455 - Support adding and removing items on already created menus
31457 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31459 * MonthCalendar.cs:
31460 - Re-worked all bolded dates handling to match win32
31461 * ThemeWin32Classic.cs:
31462 - Fixed rendering with bolded dates
31464 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
31466 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31467 - Horizontal scroolbar
31472 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
31474 * MonthCalendar.cs:
31475 - Fix Usage of MaxSelectionCount from SelectionRange
31476 - Fixed Shift + Cursor Selection
31477 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31478 - Fixed normal cursor selection to be compat with win32
31479 - Fixed Shift + Mouse Click selection
31481 2004-11-24 Peter Bartok <pbartok@novell.com>
31483 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31484 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31486 - CreatedKeyBoardMsg now updates keystate with Alt key
31487 - Added workaround for timer crash to CheckTimers, Jackson will
31488 develop a proper fix and check in later
31489 - Implemented DispatchMessage
31490 - Removed calling the native window proc from GetMessage (call
31491 now moved to DispatchMessage)
31493 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31494 the keydata (Fixes bug #69831)
31497 - (DispatchMessage): Switched to return IntPtr
31498 - Added DllImport for SetFocus
31500 2004-11-24 Ravindra <rkumar@novell.com>
31502 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31503 background drawing.
31504 * ListViewItem.cs: Fixed various properties, calculations
31505 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31506 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31507 and some internal properties. Fixed MouseDown handler and Paint
31510 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31512 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31514 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31516 * ContainerControl.cs: correct accidental check in of local changes
31518 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31520 * ThemeWin32Classic.cs:
31521 - Fixed Drawing Last month in grid (sometimes not showing)
31522 * MonthCalendar.cs:
31523 - Fixed title width calculation bug (makeing title small)
31525 2004-11-23 Peter Bartok <pbartok@novell.com>
31528 - Added generation of WM_MOUSEHOVER event
31529 - Added missing assignment of async_method atom
31530 - Fixed WM_ERASEBKGND; now only redraws the exposed area
31532 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31534 * ThemeWin32Classic.cs:
31535 - Fixed Drawing of today circle when showtodaycircle not set
31536 - fixed drawing of first and last month in the grid (gay dates)
31537 * MonthCalendar.cs:
31538 - Fixed Drawing of today circle
31539 - Fixed drawing of grady dates
31540 - Fixed HitTest for today link when ShowToday set to false
31541 - Fixed DefaultSize to obey ShowToday
31543 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31545 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31546 * System.Windows.Forms/Theme.cs
31547 * MonthCalendar.cs: added for MonthCalendar
31548 * SelectionRange.cs: added for MonthCalendar
31549 * Day.cs: added for MonthCalendar: added for MonthCalendar
31550 * DateRangeEventArgs.cs: added for MonthCalendar
31551 * DateRangeEventHandler.cs: added for MonthCalendar
31553 2004-11-22 Ravindra <rkumar@novell.com>
31555 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31558 2004-11-22 Miguel de Icaza <miguel@ximian.com>
31560 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31563 * NumericUpDown.cs: Added new implementation.
31564 * UpDownBase.cs: Added new implementation.
31566 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31569 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31572 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31575 2004-11-21 Miguel de Icaza <miguel@ximian.com>
31577 * Timer.cs (Dispose): Should call the base dispose when
31580 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31582 * ScrollBar.cs: updates thumb position when max, min or increment
31585 2004-11-21 Ravindra <rkumar@novell.com>
31587 * ListView.cs: Implemented item selection, activation and
31588 column header style. Fixed properties to do a redraw, if
31589 required. Added support for MouseHover, DoubleClick, KeyDown
31590 and KeyUp event handling and some minor fixes.
31591 * ListViewItem.cs: Fixed constructor.
31592 * ThemeWin32Classic.cs: Improved drawing for ListView.
31594 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31596 * ThemeWin32Classic.cs: initial listbox drawing code
31597 * DrawMode.cs: new enumerator
31598 * ListControl.cs: stubbed class
31599 * ListBox.cs: initial implementation
31600 * Theme.cs: new methods definitions
31601 * SelectionMode.cs: new enumerator
31603 2004-11-17 Peter Bartok <pbartok@novell.com>
31605 * XplatUIWin32.cs: Added double-click events to the class style
31606 * Control.cs (WndProc):
31607 - Added handling of click-count to MouseDown/ MouseUp events.
31608 - Added handling of middle and right mouse buttons
31609 - Removed old debug code
31611 2004-11-17 Jackson Harper <jackson@ximian.com>
31613 * XplatUIX11.cs: Use the new Mono.Unix namespace.
31615 2004-11-17 Ravindra <rkumar@novell.com>
31617 * ListView.cs: Added event handling for MouseMove/Up/Down.
31618 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
31619 * ThemeWin32Classic.cs: We need to clear the graphics context and
31620 draw column header in a proper state.
31623 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
31625 * Menu.cs: fixes signature
31627 2004-11-16 Peter Bartok <pbartok@novell.com>
31629 * XplatUIX11.cs (GetMessage): Implemented generation of
31630 double click mouse messages
31632 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
31634 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
31637 2004-11-11 Peter Bartok <pbartok@novell.com>
31639 * HandleData.cs: Added Visible property
31640 * XplatUIX11.cs (IsVisible): Now uses Visible property from
31642 * XplatUIX11.cs: Removed old debug leftovers
31643 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
31644 * Control.cs (WndProc): Removed old debug leftovers,
31645 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
31646 needed WM_SIZE handling
31648 2004-11-11 Jackson Harper <jackson@ximian.com>
31650 * OwnerDrawPropertyBag.cs:
31651 * TreeViewImageIndexConverter.cs: Initial implementation
31653 2004-11-10 Jackson Harper <jackson@ximian.com>
31655 * ThemeWin32Classic.cs:
31656 * TabControl.cs: instead of moving tabs by the slider pos just
31657 start drawing at the tab that is offset by the slider. This way
31658 scrolling always moves by exactly one tab.
31660 2004-11-10 Jackson Harper <jackson@ximian.com>
31662 * TabControl.cs: You can only scroll left when the slider has
31663 already ben moved right.
31665 2004-11-10 Jackson Harper <jackson@ximian.com>
31667 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
31670 2004-11-10 Jackson Harper <jackson@ximian.com>
31672 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
31675 2004-11-09 Jackson Harper <jackson@ximian.com>
31677 * TabControl.cs (CalcXPos): New helper method so we can determine
31678 the proper place to start drawing vertical tabs.
31679 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
31681 2004-11-09 Jackson Harper <jackson@ximian.com>
31683 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
31684 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
31685 and Bottom, left and right are illegal values for this and
31686 multiline is enabled when the alignment is set to left or right.
31687 (DrawTab): Each alignment block should draw the text itself now
31688 because Left requires special love. Also add rendering for Left
31691 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
31693 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
31694 does not destroy the windows, removes debugging messages
31696 2004-11-09 jba <jba-mono@optusnet.com.au>
31698 * ThemeWin32Classic.cs
31699 (DrawButtonBase): Fix verticle text rect clipping in windows
31700 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31701 rendering and incorrect text rect clipping
31702 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31703 rendering and incorrect text rect clipping
31705 2004-11-08 Jackson Harper <jackson@ximian.com>
31707 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
31708 bottom when they are bottom aligned so the bottoms of the tabs get
31710 * TabControl.cs (DropRow): Move rows up instead of down when the
31711 tab control is bottom aligned.
31713 2004-11-08 13:59 pbartok
31716 - Added handling for various window styles
31717 - Added handling for popup windows
31718 - Added SetTopmost handling
31720 2004-11-08 13:55 pbartok
31723 - Added argument to SetTopmost method
31724 - Fixed broken ClientToScreen function
31726 2004-11-08 13:53 pbartok
31728 * XplatUIStructs.cs:
31729 - Added missing WS_EX styles
31731 2004-11-08 13:53 pbartok
31733 * XplatUI.cs, XplatUIDriver.cs:
31734 - Added argument to SetTopmost
31736 2004-11-08 13:52 pbartok
31739 - Added XSetWindowAttributes structure
31740 - Improved XWindowAttributes structure
31741 - Added SetWindowValuemask enum
31742 - Added window creation arguments enum
31743 - Added gravity enum
31744 - Added Motif hints structure
31745 - Added various Motif flags and enums
31746 - Added PropertyMode enum for property functions
31748 2004-11-08 13:50 pbartok
31751 - Fixed arguments for updated SetTopmost method
31753 2004-11-08 13:49 pbartok
31756 - Fixed arguments for updated SetTopmost function
31757 - Fixed usage of PointToClient
31759 2004-11-08 13:44 pbartok
31762 - Added Clipping of children and siblings
31764 2004-11-08 13:41 pbartok
31767 - Removed SetMenuBarWindow call. We do this in Form.cs
31769 2004-11-08 13:40 jackson
31771 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
31772 scrolling jimmi in the correct location with bottom aligned tabs
31774 2004-11-08 13:36 pbartok
31776 * ContainerControl.cs:
31777 - Implemented BindingContext
31778 - Implemented ParentForm
31780 2004-11-08 12:46 jackson
31782 * TabControl.cs: Put bottom rendered tabs in the right location
31784 2004-11-08 07:15 jordi
31786 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
31789 2004-11-05 17:30 jackson
31791 * TabControl.cs: When selected tabs are expanded make sure they
31792 don't go beyond the edges of the tab control
31794 2004-11-05 14:57 jackson
31796 * TabControl.cs: Reset show_slider so if the control is resized to
31797 a size where it is no longer needed it's not displayed anymore
31799 2004-11-05 13:16 jackson
31801 * TabControl.cs: Make tab pages non visible when added to the
31804 2004-11-05 12:42 jackson
31806 * TabControl.cs: Implement SizeMode.FillToRight
31808 2004-11-05 12:16 jackson
31810 * Control.cs: Do not call CreateHandle if the handle is already
31813 2004-11-05 11:46 jackson
31815 * TabControl.cs: Remove superflous call to CalcTabRows
31817 2004-11-05 09:07 jackson
31819 * XplatUIX11.cs: Update for Mono.Posix changes
31821 2004-11-05 07:00 ravindra
31823 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
31826 2004-11-04 22:47 jba
31828 * ThemeWin32Classic.cs:
31829 - Fix Button rendering for FlatStyle = Flat or Popup
31830 - Fix RadioButton and CheckBox rendering when Appearance = Button
31831 (normal and flatstyle).
31832 - Correct outer rectangle color when drawing focus rectangle
31833 - Adjust button bounds to be 1 px smaller when focused
31834 - Make button not draw sunken 3d border when pushed (windows compat)
31835 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
31836 - Offset the text in RadioButton and Checkbox when being rendered as
31838 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
31840 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
31841 - Fixed disabled text rendering for normally rendered radiobuttons
31843 2004-11-04 10:26 jackson
31845 * TabControl.cs: Recalculate tab rows when resizing
31847 2004-11-04 07:47 jordi
31849 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
31850 collection completion, drawing issues, missing features
31852 2004-11-04 05:03 ravindra
31855 - We need to recalculate the Thumb area when
31856 LargeChange/maximum/minimum values are changed.
31857 - We set the 'pos' in UpdatePos() method to minimum, if it's less
31858 than minimum. This is required to handle the case if large_change is
31859 more than max, and use LargeChange property instead of large_change
31861 - We return max+1 when large_change is more than max, like MS does.
31863 2004-11-04 04:29 ravindra
31865 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
31866 - Changed default value signatures (prefixed all with ListView).
31867 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
31869 - Fixed calculations for ListViewItem and implemented Clone()
31872 2004-11-04 04:26 ravindra
31874 * Theme.cs, ThemeWin32Classic.cs:
31875 - Changed default ListView values signatures (prefixed all with
31877 - Fixed default size values for VScrollBar and HScrollBar.
31878 - Fixed DrawListViewItem method.
31880 2004-11-04 04:05 ravindra
31882 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
31884 2004-11-04 04:04 ravindra
31886 * ImageList.cs: Implemented the missing overload for Draw method.
31888 2004-11-03 19:29 jackson
31890 * TabControl.cs: Handle dropping rows on selection properly
31892 2004-11-03 11:59 jackson
31894 * TabControl.cs: remove debug code
31896 2004-11-03 11:52 jackson
31898 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
31899 the scrolly widgerywoo
31901 2004-11-02 13:52 jackson
31903 * TabControl.cs: Resize the tab pages and tabs when the tab control
31906 2004-11-02 13:40 jackson
31908 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
31909 selected tab to the bottom
31911 2004-11-02 13:39 jackson
31913 * TabPage.cs: Store the tab pages row
31915 2004-11-02 12:33 jordi
31917 * MenuItem.cs: fixes handle creation
31919 2004-11-02 11:42 jackson
31921 * TabControl.cs: signature fix
31923 2004-11-02 08:56 jackson
31925 * TabControl.cs: Calculate whether the tab is on an edge properly.
31926 Remove top secret debugging code
31928 2004-11-01 19:57 jackson
31930 * TabControl.cs: Add click handling, and proper sizing
31932 2004-11-01 19:47 jackson
31934 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
31937 2004-11-01 19:39 jackson
31939 * TabPage.cs: add internal property to store the bounds of a tab
31942 2004-10-30 04:23 ravindra
31944 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
31947 2004-10-30 04:21 ravindra
31949 * ListView.cs, ListViewItem.cs: Added support for scrolling and
31950 fixed calculations.
31952 2004-10-30 03:06 pbartok
31955 - Removed extension of DllImported libs
31957 2004-10-29 09:55 jordi
31959 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
31960 navigation, itemcollection completion, menu fixes
31962 2004-10-27 22:58 pbartok
31965 - Now throws a nice error message when no X display could be opened
31967 2004-10-26 13:51 jordi
31969 * ListView.cs: removes warning
31971 2004-10-26 03:55 ravindra
31973 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
31974 ThemeWin32Classic.cs: Some formatting for my last checkins.
31976 2004-10-26 03:36 ravindra
31978 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
31979 control and default values.
31981 2004-10-26 03:35 ravindra
31983 * Theme.cs: Added some default values for ListView control.
31985 2004-10-26 03:33 ravindra
31987 * ToolBar.cs: ToolBar should use the user specified button size, if
31988 there is any. Added a size_specified flag for the same.
31990 2004-10-26 03:33 ravindra
31992 * ColumnHeader.cs: Added some internal members and calculations for
31995 2004-10-26 03:32 ravindra
31997 * ListViewItem.cs: Calculations for ListViewItem.
31999 2004-10-26 03:31 ravindra
32001 * ListView.cs: Added some internal members and calculations for
32004 2004-10-22 13:31 jordi
32006 * MenuAPI.cs: speedup menus drawing
32008 2004-10-22 13:16 jackson
32010 * XplatUIX11.cs: Make sure to update exposed regions when adding an
32013 2004-10-22 11:49 jackson
32017 2004-10-22 11:41 jackson
32019 * Control.cs: Check to see if the window should have its background
32020 repainted by X when drawing.
32022 2004-10-22 11:31 jackson
32024 * XplatUIX11.cs: When invalidating areas only use XClearArea if
32025 clear is true, this way we do not get flicker from X repainting the
32028 2004-10-22 11:28 jackson
32030 * XEventQueue.cs: Queue properly
32032 2004-10-21 09:38 jackson
32034 * XEventQueue.cs: Fix access modifier
32036 2004-10-21 09:36 jackson
32038 * XEventQueue.cs: Don't loose messages
32040 2004-10-21 09:22 jackson
32042 * XEventQueue.cs: Don't loose messages
32044 2004-10-20 04:15 jordi
32046 * BootMode.cs: enum need it by SystemInfo
32048 2004-10-19 21:58 pbartok
32051 - Small sanity check
32053 2004-10-19 21:56 pbartok
32056 - Added private FormParentWindow class which acts as the container
32057 for our form and as the non-client area where menus are drawn
32058 - Added/Moved required tie-ins to Jordi's menus
32059 - Fixed/Implemented the FormStartPosition functionality
32061 2004-10-19 21:52 pbartok
32064 - Removed unneeded locals
32065 - Added code to all size and location properties to understand and
32066 deal with the parent container of Form
32068 2004-10-19 21:33 pbartok
32071 - Fixed to deal with new Form subclasses for menus
32073 2004-10-19 17:48 jackson
32075 * XEventQueue.cs: commit correct version of file
32077 2004-10-19 16:50 jackson
32079 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
32081 2004-10-19 16:15 jordi
32083 * MenuAPI.cs: MenuBarCalcSize returns the height
32085 2004-10-19 08:31 pbartok
32088 - Added missing call to PreProcessMessage before calling OnXXXKey
32091 2004-10-19 00:04 ravindra
32093 * ToolTip.cs: Fixed constructor.
32095 2004-10-18 09:31 jordi
32097 * MenuAPI.cs: menuitems in menubars do not have shortcuts
32099 2004-10-18 09:26 jordi
32101 * MenuItem.cs: fixes MenuItem class signature
32103 2004-10-18 08:56 jordi
32105 * MenuAPI.cs: prevents windows from showing in the taskbar
32107 2004-10-18 00:28 ravindra
32109 * ToolTip.cs: Suppressed a warning message.
32111 2004-10-18 00:27 ravindra
32113 * Control.cs: Default value of visible property must be true.
32115 2004-10-17 23:19 pbartok
32118 - Complete implementation
32120 2004-10-17 23:19 pbartok
32123 - Added EnableWindow method
32124 - Added SetModal stub
32125 - Added generation of WM_ACTIVATE message (still needs testing)
32126 - Added SetTopMost stub
32127 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
32129 2004-10-17 23:17 pbartok
32132 - Removed VirtualKeys to XplatUIStructs
32133 - Implemented SetTopMost method
32134 - Implemented EnableWindow method
32135 - Bugfix in ScreenToClient()
32136 - Bugfixes in ClientToScreen()
32138 2004-10-17 22:51 pbartok
32140 * XplatUIStructs.cs:
32141 - Added WS_EX styles to WindowStyles enumeration
32143 2004-10-17 22:50 pbartok
32145 * XplatUI.cs, XplatUIDriver.cs:
32146 - Added method for enabling/disabling windows
32147 - Added method for setting window modality
32148 - Added method for setting topmost window
32150 2004-10-17 22:49 pbartok
32152 * ThemeWin32Classic.cs:
32153 - Added ToolTip drawing code
32155 2004-10-17 22:49 pbartok
32158 - Added ToolTip abstracts
32160 2004-10-17 22:47 pbartok
32163 - Fixed Form.ControlCollection to handle owner relations
32164 - Added Owner/OwnedForms handling
32165 - Implemented Z-Ordering for owned forms
32166 - Removed unneeded private overload of ShowDialog
32167 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
32169 - Fixed Close(), had wrong default
32170 - Added firing of OnLoad event
32171 - Added some commented out debug code for Ownership handling
32173 2004-10-17 22:16 pbartok
32176 - Fixed/implemented flat list of controls
32178 2004-10-17 22:14 pbartok
32181 - Added code to simulate modal dialogs on Win32
32183 2004-10-17 16:11 jordi
32185 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
32188 2004-10-17 13:39 jordi
32190 * MenuAPI.cs: menu drawing fixes
32192 2004-10-15 09:10 ravindra
32194 * StructFormat.cs: General Enum.
32196 2004-10-15 09:09 ravindra
32198 * SizeGripStyle.cs: Enum for Form.
32200 2004-10-15 09:08 ravindra
32202 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
32203 in Theme for ListView.
32205 2004-10-15 09:06 ravindra
32207 * ColumnHeader.cs: Flushing some formatting changes.
32209 2004-10-15 09:05 ravindra
32211 * ListViewItem.cs: Implemented GetBounds method and fixed coding
32214 2004-10-15 09:03 ravindra
32216 * ListView.cs: Implemented Paint method and fixed coding style.
32218 2004-10-15 07:34 jordi
32220 * MenuAPI.cs: fix for X11
32222 2004-10-15 07:32 ravindra
32224 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
32225 - Renamed Paint() method to Draw() for clarity. Also, moved
32226 DrawImage() to OnPaint().
32228 2004-10-15 07:25 ravindra
32230 * CheckBox.cs, RadioButton.cs:
32231 - Removed Redraw (), we get it from ButtonBase.
32232 - Implemented Paint (), to do class specific painting.
32234 2004-10-15 07:16 ravindra
32237 - Redraw () is not virtual now.
32238 - Added an internal virtual method Paint (), so that
32239 derived classes can do their painting on their own.
32240 - Modified OnPaint () to call Paint ().
32242 2004-10-15 06:43 jordi
32244 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
32245 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
32247 2004-10-15 00:30 ravindra
32250 - MessageBox on windows does not have min/max buttons.
32251 This change in CreateParams fixes this on Windows. We
32252 still need to implement this windowstyle behavior in
32255 2004-10-14 05:14 ravindra
32258 - Changed Redraw () to do a Refresh () always.
32259 - Fixed the MouseMove event handling when mouse is pressed,
32260 ie drag event handling.
32261 - Replaced the usage of ToolBarButton.Pressed property to
32262 ToolBarButton.pressed internal variable.
32264 2004-10-14 05:10 ravindra
32266 * ToolBarButton.cs:
32267 - Added an internal member 'inside' to handle mouse move
32268 with mouse pressed ie mouse drag event.
32269 - Changed 'Pressed' property to return true only when
32270 'inside' and 'pressed' are both true.
32271 - Some coding style love.
32273 2004-10-14 00:17 ravindra
32275 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
32278 2004-10-14 00:15 ravindra
32280 * ButtonBase.cs: Redraw () related improvements.
32282 2004-10-14 00:14 ravindra
32284 * MessageBox.cs: Moved InitFormSize () out of Paint method and
32285 removed unnecessary calls to Button.Show () method.
32287 2004-10-13 17:50 pbartok
32291 - Removed destroying of window until we solve the problem of X
32292 destroying the window before us on shutdown
32294 2004-10-13 16:32 pbartok
32297 - Now Redraws on MouseUp for FlatStyle Flat and Popup
32299 2004-10-13 14:18 pbartok
32302 - Added code to destroy the X window
32304 2004-10-13 14:18 pbartok
32307 - Added code to destroy a window
32309 2004-10-13 14:12 pbartok
32312 - Added the Redraw on Resize that got dropped in the last rev
32314 2004-10-13 09:06 pbartok
32316 * ThemeWin32Classic.cs:
32317 - Path from John BouAntoun:
32318 * Fix check rendering (centre correctly for normal style, offset
32319 correctly for FlatStyle).
32320 * Fix border color usage (use backcolor) for FlatStyle.Popup
32321 * Use checkbox.Capture instead of checkbox.is_pressed when
32322 rendering flatstyle states.
32324 2004-10-12 21:48 pbartok
32326 * ThemeWin32Classic.cs:
32327 - Removed all occurences of SystemColors and replaced them with the
32328 matching theme color
32330 2004-10-12 21:41 pbartok
32332 * ThemeWin32Classic.cs:
32333 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
32334 him using the function for flatstyle drawing
32335 - Changed functions to use the new version of CPDrawBorder3D
32337 2004-10-12 21:15 pbartok
32340 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
32341 match MS documentation. They need to return defined colors if the
32342 passed color matches the configured control color. Thanks to John
32343 BouAntoun for pointing this out.
32345 2004-10-12 20:57 pbartok
32348 - Fix from John BouAntoun: Raise ForeColorChanged event when text
32351 2004-10-12 20:46 pbartok
32354 - Fix from John BouAntoun: Now properly sets the Appearance property
32356 2004-10-12 20:45 pbartok
32358 * ThemeWin32Classic.cs:
32359 - Fixes from John BouAntoun: now handles forecolors and backcolors
32360 for flatstyle rendered controls much better; It also fixes normal
32361 checkbox rendering when pushed or disabled.
32363 2004-10-08 02:50 jordi
32365 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
32368 2004-10-07 08:56 jordi
32370 * ThemeWin32Classic.cs: Removes deletion of cached brushes
32372 2004-10-06 03:59 jordi
32374 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
32375 XplatUIWin32.cs: removes warnings from compilation
32377 2004-10-05 12:23 jackson
32379 * RadioButton.cs: Fix ctor
32381 2004-10-05 11:10 pbartok
32384 - Partial implementation by Benjamin Dasnois
32386 2004-10-05 10:15 jackson
32388 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
32391 2004-10-05 03:07 ravindra
32394 - Removed a private method, Draw ().
32395 - Fixed the ButtonDropDown event handling.
32396 - Fixed MouseMove event handling.
32398 2004-10-05 03:04 ravindra
32400 * ThemeWin32Classic.cs:
32401 - Added DrawListView method and ListViewDefaultSize property.
32402 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
32403 - Changed DOS style CRLF to Unix format (dos2unix).
32405 2004-10-05 03:03 ravindra
32408 - Added DrawListView method and ListViewDefaultSize property.
32410 2004-10-05 02:42 ravindra
32412 * ToolBarButton.cs: Added an internal member dd_pressed to handle
32413 clicks on DropDown arrow.
32415 2004-10-04 22:56 jackson
32417 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
32418 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
32419 Control handle the buffers, derived classes should not have to
32420 CreateBuffers themselves.
32422 2004-10-04 21:20 jackson
32424 * StatusBar.cs: The control handles resizing the buffers now.
32426 2004-10-04 21:18 jackson
32428 * Control.cs: When resizing the buffers should be invalidated. This
32429 should be handled in Control not in derived classes.
32431 2004-10-04 14:45 jackson
32435 2004-10-04 02:14 pbartok
32437 * LeftRightAlignment.cs:
32440 2004-10-04 01:09 jordi
32442 * ThemeWin32Classic.cs: fixes right button position causing right
32443 button not showing on horizontal scrollbars
32445 2004-10-02 13:12 pbartok
32448 - Simplified the Invalidate method by using an X call instead of
32449 generating the expose ourselves
32450 - Added an expose when the window background is changed
32451 - Implemented ClientToScreen method
32453 2004-10-02 13:08 pbartok
32456 - Added Win32EnableWindow method (test for implementing modal
32458 - Added ClientToScreen method and imports
32460 2004-10-02 13:07 pbartok
32462 * XplatUI.cs, XplatUIDriver.cs:
32463 - Added ClientToScreen coordinate translation method
32465 2004-10-02 13:06 pbartok
32467 * KeyPressEventArgs.cs:
32468 - Fixed access level for constructor
32470 2004-10-02 13:06 pbartok
32473 - Changed access level for the window_collection hash table
32475 2004-10-02 13:05 pbartok
32478 - Added KeyPreview property
32479 - Added Menu property (still incomplete, pending Jordi's menu work)
32480 - Implemented ProcessCmdKey
32481 - Implemented ProcessDialogKey
32482 - Implemented ProcessKeyPreview
32484 2004-10-02 13:02 pbartok
32487 - Added private method to get the Control object from the window
32489 - Implemented ContextMenu property
32490 - Implemented PointToScreen
32491 - Implemented PreProcessMessage
32492 - Implemented IsInputChar
32493 - Implemented IsInputKey
32494 - Implemented ProcessCmdKey
32495 - Completed ProcessKeyEventArgs
32496 - Fixed message loop to call the proper chain of functions on key
32498 - Implemented ProcessDialogChar
32499 - Implemented ProcessDialogKey
32500 - Implemented ProcessKeyMessage
32501 - Implemented ProcessKeyPreview
32502 - Added RaiseDragEvent stub (MS internal method)
32503 - Added RaiseKeyEvent stub (MS internal method)
32504 - Added RaiseMouseEvent stub (MS Internal method)
32505 - Added RaisePaintEvent stub (MS Internal method)
32506 - Added ResetMouseEventArgs stub (MS Internal method)
32507 - Implemented RtlTranslateAlignment
32508 - Implemented RtlTranslateContent
32509 - Implemented RtlTranslateHorizontal
32510 - Implemented RtlTranslateLeftRight
32511 - Added generation of KeyPress event
32513 2004-10-02 05:57 ravindra
32515 * ListViewItem.cs: Added attributes.
32517 2004-10-02 05:32 ravindra
32519 * ListView.cs: Added attributes.
32521 2004-10-01 11:53 jackson
32523 * Form.cs: Implement the Close method so work on MessageBox can
32526 2004-09-30 14:06 pbartok
32531 2004-09-30 11:34 jackson
32533 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32535 2004-09-30 07:26 ravindra
32537 * ListViewItemConverter.cs: Converter for ListViewItem.
32539 2004-09-30 07:26 ravindra
32541 * SortOrder.cs: Enum for ListView control.
32543 2004-09-30 07:25 ravindra
32545 * ColumnHeader.cs: Supporting class for ListView control.
32547 2004-09-30 07:24 ravindra
32549 * ListView.cs, ListViewItem.cs: Initial implementation.
32551 2004-09-30 07:20 ravindra
32553 * ItemActivation.cs: Enum for ListView Control.
32555 2004-09-29 20:29 pbartok
32558 - Added lookup of pixel value for background color; tries to get a
32559 color 'close' to the requested color, it avoids having to create a
32560 colormap. Depending on the display this could mean the used color
32561 is slightly off the desired color. Might have to change it to a more
32562 resource intensive colormap approach, but it will work as a
32563 workaround to avoid red screens.
32565 2004-09-29 14:27 jackson
32567 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32569 2004-09-28 12:44 pbartok
32571 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32572 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32573 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32574 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32575 TrackBar.cs, VScrollBar.cs:
32576 - Streamlined Theme interfaces:
32577 * Each DrawXXX method for a control now is passed the object for
32578 the control to be drawn in order to allow accessing any state the
32579 theme might require
32581 * ControlPaint methods for the theme now have a CP prefix to avoid
32582 name clashes with the Draw methods for controls
32584 * Every control now retrieves it's DefaultSize from the current
32587 2004-09-28 12:17 jackson
32589 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32592 2004-09-24 14:57 jackson
32594 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
32595 Gives us a nice little performance boost.
32597 2004-09-24 12:02 jackson
32599 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
32600 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
32601 Control and supporting classes. Initial checkin
32603 2004-09-23 13:08 jackson
32605 * Form.cs: Temp build fixage
32607 2004-09-23 01:39 ravindra
32609 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
32610 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
32611 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
32612 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
32613 EventHandlers needed by ListView Control.
32615 2004-09-22 14:12 pbartok
32617 * ScrollableControl.cs:
32618 - Implemented DockPadding property
32619 - Implemented AutoScroll property
32620 - Implemented AutoScrollMargin property
32621 - Implemented AutoScrollMinSize property
32622 - Implemented AutoScrollPosition property
32623 - Implemented DisplayRectangle property (still incomplete)
32624 - Implemented CreateParams property
32625 - Implemented HScroll property
32626 - Implemented VScroll property
32627 - Implemented OnVisibleChanged property
32629 2004-09-22 14:09 pbartok
32632 - Added Form.ControllCollection class
32633 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
32634 RemoveOwnedForm (still incomplete, missing on-top and common
32635 minimize/maximize behaviour)
32636 - Added StartPosition property (still incomplete, does not use when
32638 - Added ShowDialog() methods (still incomplete, missing forcing the
32641 2004-09-22 14:05 pbartok
32644 - Added message loop for modal dialogs
32646 2004-09-22 14:02 pbartok
32649 - Fixed wrong types for events
32651 2004-09-22 14:00 pbartok
32653 * Shortcut.cs, FormWindowState.cs:
32654 - Fixed wrong values
32656 2004-09-22 12:01 jackson
32658 * Control.cs: Text is never null
32660 2004-09-20 22:14 pbartok
32663 - Fixed accessibility level for Idle handler
32665 2004-09-20 18:54 jackson
32667 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32668 XplatUIX11.cs: New message loop that uses poll so we don't get a
32671 2004-09-17 10:43 pbartok
32674 - Fixed behaviour of arrow buttons. Now properly behaves like
32675 Buttons (and like Microsoft's scrollbar arrow buttons)
32677 2004-09-17 10:14 pbartok
32680 - Added missing release of keyboard/mouse capture
32682 2004-09-17 06:18 jordi
32684 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
32685 Theme.cs: Very early menu support
32687 2004-09-16 17:45 pbartok
32690 - Fixed sending a window to the front
32691 - Added overload for SetWindowPos to avoid casting
32693 2004-09-16 17:44 pbartok
32696 - Added SendToBack and BringToFront methods
32698 2004-09-16 07:00 ravindra
32700 * Copyright: Added Novell URL.
32702 2004-09-16 07:00 ravindra
32704 * ToolBar.cs: Invalidate should be done before redrawing.
32706 2004-09-15 21:19 ravindra
32708 * ColumnHeaderStyle.cs: Enum for ListView Control.
32710 2004-09-15 21:18 ravindra
32712 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
32715 2004-09-13 18:26 jackson
32717 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
32720 2004-09-13 18:13 jackson
32722 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
32723 a second thread and post messages into the main threads message
32724 queue. This makes timing much more consistent. Both win2K and XP
32725 have a minimum timer value of 15 milliseconds, so we now do this
32728 2004-09-13 15:18 pbartok
32730 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32732 - Added Z-Ordering methods
32734 2004-09-13 10:56 pbartok
32737 - Fixed #region names
32738 - Moved properties and methods into their proper #regions
32740 2004-09-13 10:51 pbartok
32743 - Added Accept and CancelButton properties
32744 - Added ProcessDialogKey() method
32746 2004-09-13 08:18 pbartok
32748 * IWindowTarget.cs:
32751 2004-09-10 21:50 pbartok
32754 - Added DoDragDrop() [incomplete]
32755 - Properly implemented 'Visible' handling
32756 - Added SetVisibleCore()
32757 - Implemented FindChildAtPoint()
32758 - Implemented GetContainerControl()
32759 - Implemented Hide()
32761 2004-09-10 19:28 pbartok
32764 - Moved methods into their appropriate #regions
32765 - Reordered methods within regions alphabetically
32767 2004-09-10 18:57 pbartok
32769 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32770 - Added method to retrieve text from window
32772 2004-09-10 18:56 pbartok
32775 - Moved some internal functions into the internal region
32776 - Implemented FontHeight
32777 - Implemented RenderRightToLeft
32778 - Implemented ResizeRedraw
32779 - Implemented ShowFocusCues
32780 - Implemented ShowKeyboardCues
32781 - Implemented FromChildHandle
32782 - Implemented FromHandle
32783 - Implemented IsMnemonic
32784 - Implemented ReflectMessage
32785 - All public and protected Static Methods are now complete
32787 2004-09-10 16:54 pbartok
32790 - Implemented remaining missing public instance properties
32791 - Alphabetized some out of order properties
32793 2004-09-10 05:51 ravindra
32795 * PictureBox.cs: Added a check for null image.
32797 2004-09-10 00:59 jordi
32799 * GroupBox.cs: remove cvs tag
32801 2004-09-09 05:25 ravindra
32803 * ToolBar.cs: Make redraw accessible from ToolBarButton.
32805 2004-09-09 05:23 ravindra
32807 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
32810 2004-09-09 02:28 pbartok
32812 * ThemeWin32Classic.cs:
32813 - Improve disabled string look
32815 2004-09-09 01:15 jordi
32817 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
32820 2004-09-08 23:56 ravindra
32822 * ItemBoundsPortion.cs: It's enum, not a class!
32824 2004-09-08 23:47 ravindra
32826 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
32829 2004-09-08 21:13 ravindra
32831 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
32834 2004-09-08 21:03 ravindra
32836 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
32839 2004-09-08 21:01 ravindra
32841 * ScrollableControl.cs: Removed unreachable code.
32843 2004-09-08 06:45 jordi
32845 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
32847 2004-09-08 01:00 jackson
32849 * XplatUIX11.cs: Only run the timers when updating the message
32850 queue. This effectively gives X messages a higher priority then
32851 timer messages. Timers still need love though
32853 2004-09-07 14:01 jackson
32855 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
32856 this for us and the handle is no longer valid.
32858 2004-09-07 13:59 jackson
32860 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
32861 loop that manages to not crash. TODO: Add poll and cleanup timers
32863 2004-09-07 11:12 jordi
32865 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
32867 2004-09-07 03:40 jordi
32869 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
32870 fixes, methods, multiple links
32872 2004-09-06 06:55 jordi
32874 * Control.cs: Caches ClientRectangle rectangle value
32876 2004-09-05 02:03 jordi
32878 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
32881 2004-09-04 11:10 jordi
32883 * Label.cs: Refresh when font changed
32885 2004-09-02 16:24 pbartok
32888 - Added sanity check to creation of double buffer bitmap
32890 2004-09-02 16:24 pbartok
32893 - Fixed selection of text color
32894 - Fixed handling of resize event; now properly recreates double
32896 - Added missing assignment of TextAlignment
32897 - Added proper default for TextAlignment
32899 2004-09-02 14:26 pbartok
32902 - Added missing RadioButton.RadioButtonAccessibleObject class
32904 2004-09-02 14:26 pbartok
32907 - Added missing Control.ControlAccessibleObject class
32908 - Started to implement Select()ion mechanisms, still very incomplete
32910 2004-09-02 14:25 pbartok
32912 * AccessibleObject.cs:
32913 - Added missing methods
32915 2004-09-02 14:23 pbartok
32917 * AccessibleNavigation.cs, AccessibleSelection.cs:
32920 2004-09-02 10:32 jordi
32922 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
32923 pool for pens, brushes, and hatchbruses
32925 2004-09-01 15:30 jackson
32927 * StatusBar.cs: Fix typo
32929 2004-09-01 14:44 pbartok
32934 2004-09-01 14:39 pbartok
32936 * Button.cs, RadioButton.cs:
32937 - Functional initial check-in
32939 2004-09-01 14:01 pbartok
32942 - Added missing default
32943 - Added missing region mark
32945 2004-09-01 09:10 jordi
32947 * Label.cs: fixes method signatures, new methods, events, fixes
32950 2004-09-01 07:19 jordi
32952 * Control.cs: Init string variables with an empty object
32954 2004-09-01 04:20 jordi
32956 * Control.cs: fires OnFontChanged event
32958 2004-08-31 20:07 pbartok
32961 - Enabled display of strings
32963 2004-08-31 20:05 pbartok
32966 - Added (partial) implementation of DialogResult; rest needs to be
32967 implemented when the modal loop code is done
32969 2004-08-31 19:55 pbartok
32972 - Fixed to match the removal of the needs_redraw concept
32974 2004-08-31 19:55 pbartok
32977 - Removed the rather odd split between 'needs redraw' and redrawing
32978 - Now handles the events that require regeneration (ambient
32979 properties and size)
32981 2004-08-31 19:41 pbartok
32984 - Added firing of BackColorChanged event
32985 - Added TopLevelControl property
32986 - Fixed handling of WM_ERASEBKGRND message
32988 2004-08-31 12:49 pbartok
32994 2004-08-31 12:48 pbartok
32997 - Finished (famous last words)
32999 2004-08-31 04:35 jordi
33001 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
33002 scrolling bugs, adds new methods
33004 2004-08-30 14:42 pbartok
33007 - Implemented CheckBox drawing code
33009 2004-08-30 14:42 pbartok
33012 - Made Redraw() and CheckRedraw() virtual
33013 - Improved mouse up/down/move logic to properly track buttons
33015 2004-08-30 09:44 pbartok
33018 - Updated to fix broken build. Not complete yet.
33020 2004-08-30 09:28 pbartok
33025 2004-08-30 09:17 pbartok
33030 2004-08-27 16:12 ravindra
33032 * ToolBarButton.cs: Added TypeConverter attribute.
33034 2004-08-27 16:07 ravindra
33036 * ImageIndexConverter.cs: Implemented.
33038 2004-08-27 14:17 pbartok
33041 - Removed unneeded stack vars
33042 - First attempt to fix sizing issues when layout is suspended
33044 2004-08-25 15:35 jordi
33046 * ScrollBar.cs: more fixes to scrollbar
33048 2004-08-25 14:04 ravindra
33050 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
33051 Added the missing divider code and grip for ToolBar Control.
33053 2004-08-25 13:20 pbartok
33056 - Control now properly passes the ambient background color to child
33059 2004-08-25 13:20 jordi
33061 * ScrollBar.cs: small bug fix regarding bar position
33063 2004-08-25 12:33 pbartok
33066 - Now only calls SetTimer or KillTimer if the enabled state has
33069 2004-08-25 12:33 pbartok
33072 - Fixed timer handling, now seems to work
33073 - Improved error message for window creation
33075 2004-08-25 12:32 pbartok
33078 - Fixed generation of MouseUp message
33080 2004-08-25 12:29 jordi
33082 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
33083 and fixes for progressbar
33085 2004-08-24 18:43 ravindra
33087 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
33088 in ToolBar control.
33090 2004-08-24 17:15 pbartok
33094 - Added missing events
33097 2004-08-24 17:14 pbartok
33099 * StatusBar.cs, PictureBox.cs:
33100 - Now uses Control's CreateParams
33102 2004-08-24 16:36 pbartok
33105 - Fixed background color handling
33106 - Fixed sending of enter/leave events on a grab
33108 2004-08-24 16:35 pbartok
33111 - Refined definitions for CrossingEvent
33113 2004-08-24 12:37 jordi
33115 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
33116 formmating, methods signature, and adds missing events
33118 2004-08-24 12:24 jordi
33120 * Control.cs: fire OnEnabledChanged event
33122 2004-08-24 11:17 pbartok
33125 - Implemented SetTimer() and KillTimer()
33127 2004-08-24 11:16 pbartok
33130 - Now uses Remove instead of Add to kill the timer
33132 2004-08-24 10:16 jackson
33134 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
33135 picture boxes in the theme now. Draw picture box borders and obey
33138 2004-08-24 05:49 jackson
33140 * Timer.cs: Remove top secret debugging code
33142 2004-08-24 05:34 jackson
33144 * PictureBox.cs: Temp hack to make picture boxes draw their full
33147 2004-08-24 05:29 jackson
33149 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33150 XplatUIX11.cs: Move timers to the driver level. On X they are
33151 queued by the driver and checked on idle.
33153 2004-08-24 01:07 jackson
33155 * XplatUIX11.cs: Use a queue for async messages instead of passing
33156 them as ClientMessages since that was totally broken. Also simply
33157 check for events and return an idle message if none are found. This
33158 gives us an idle handler, and prevents deadlocking when no messages
33161 2004-08-23 18:19 ravindra
33163 * XplatUIWin32.cs: Removed the unwanted destructor.
33165 2004-08-23 17:27 pbartok
33168 - Finishing touches. Works now, just needs some optimizations.
33170 2004-08-23 16:53 jordi
33172 * ScrollBar.cs: small fix
33174 2004-08-23 16:45 pbartok
33177 - Removed debug output
33180 2004-08-23 16:43 jordi
33182 * ScrollBar.cs: [no log message]
33184 2004-08-23 16:10 pbartok
33187 - Fixed handling of WM_CLOSE message
33188 - Removed debug output
33190 2004-08-23 16:09 pbartok
33193 - Added handling of Idle event
33194 - Added handling of form closing
33195 - Fixed reporting of MessageLoop property
33196 - Removed some unneeded code, should provide a bit of a speedup
33198 2004-08-23 15:22 pbartok
33201 - Added InitLayout() method
33202 - Added code to properly perform layout when Anchor or Dock property
33204 - Changed 'interpretation' of ResumeLayout. MS seems to have a
33205 LAMESPEC, tried to do it in a way that makes sense
33207 2004-08-23 14:10 jordi
33209 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
33210 properties and methods
33212 2004-08-23 13:55 pbartok
33215 - Properly fixed Jordi's last fix
33216 - Now uses Cursor's Position property instead of calling XplatUI
33219 2004-08-23 13:44 jordi
33221 * PaintEventHandler.cs: Adding missing attribute
33223 2004-08-23 13:39 pbartok
33226 - Implemented Position property
33228 2004-08-23 13:39 pbartok
33230 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33231 - Added method to move mouse cursor
33233 2004-08-23 13:39 pbartok
33236 - Fixed setting of background color
33237 - Added method to move mouse cursor
33239 2004-08-23 13:16 jordi
33241 * Control.cs: avoids null exception
33243 2004-08-22 17:46 jackson
33245 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
33248 2004-08-22 17:40 jackson
33250 * XplatUIX11.cs: Add some missing locks
33252 2004-08-22 15:10 pbartok
33254 * Control.cs, Form.cs:
33255 - Removed OverlappedWindow style from Control, instead it's default
33257 - Made form windows OverlappedWindow by default
33259 2004-08-22 13:34 jackson
33261 * ScrollBar.cs: Update the position through the Value property so
33262 the OnValueChanged event is raised.
33264 2004-08-22 12:04 pbartok
33267 - Added Cursor.cs and UserControl.cs
33269 2004-08-22 12:03 pbartok
33272 - Started implementation, not usable yet
33274 2004-08-22 12:00 pbartok
33277 - Implemented UserControl (complete)
33279 2004-08-21 19:20 ravindra
33281 * ToolBar.cs: Correcting the formatting mess of VS.NET.
33283 2004-08-21 18:49 ravindra
33285 * ToolBar.cs: Probably this completes the missing attributes in
33288 2004-08-21 18:03 ravindra
33290 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
33291 Fixed toolbar control signatures.
33293 2004-08-21 16:32 pbartok
33298 2004-08-21 16:30 pbartok
33303 2004-08-21 16:19 pbartok
33305 * Control.cs, Label.cs:
33308 2004-08-21 15:57 pbartok
33311 - Added loads of debug output for development
33312 - Fixed typo in method name
33314 2004-08-21 15:52 pbartok
33316 * ToolBarButtonClickEventArgs.cs:
33317 - Added missing base class
33319 2004-08-21 14:53 pbartok
33322 - Updated to match new GrabWindow signature
33324 2004-08-21 14:51 pbartok
33326 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33327 - Added method to get default display size
33329 2004-08-21 14:23 pbartok
33331 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33332 - Added method to query current grab state
33333 - Added argument to allow confining a grab to a window
33335 2004-08-21 14:22 pbartok
33338 - Added [Flags] attribute so that modifiers can be used in bitwise
33341 2004-08-21 14:21 pbartok
33343 * TrackBar.cs, ScrollBar.cs:
33344 - Replaced direct XplatUI calls with their Control counterpart
33346 2004-08-21 13:32 pbartok
33349 - Implemented Created property
33351 2004-08-21 13:28 pbartok
33354 - Implemented ContainsFocus
33356 2004-08-21 13:26 pbartok
33359 - Implemented CausesValidation
33361 2004-08-21 13:21 pbartok
33364 - Implemented CanFocus
33365 - Implemented CanSelect
33366 - Implemented Capture
33368 2004-08-21 12:35 pbartok
33371 - Fixed bug with Async message handling
33372 - Implemented getting the ModifierKeys
33374 2004-08-21 12:32 jackson
33376 * AsyncMethodResult.cs: Make sure we have the mutex before we
33377 release it. Fixes BeginInvoke on windows
33379 2004-08-21 11:31 pbartok
33381 * XplatUIWin32.cs, XplatUIX11.cs:
33382 - Drivers now return proper mouse state
33384 2004-08-21 10:54 jackson
33386 * Control.cs: Implement EndInvoke
33388 2004-08-21 10:48 jackson
33390 * Timer.cs: Remove unneeded finalizer
33392 2004-08-20 19:52 ravindra
33394 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
33395 in mouse event handling in the ToolBar control.
33397 2004-08-20 19:50 ravindra
33399 * ImageList.cs: Changed draw method to use the arguments passed in
33402 2004-08-20 18:58 pbartok
33404 * XplatUIStructs.cs:
33405 - Added private message for async communication
33407 2004-08-20 17:38 ravindra
33409 * Control.cs: Made RightToLeft property virtual and removed a
33412 2004-08-20 14:39 jordi
33414 * ThemeGtk.cs: use style_attach
33416 2004-08-20 14:39 pbartok
33419 - Added jackson's Async code from X11 to Win32
33421 2004-08-20 14:09 pbartok
33424 - Added all new files
33426 2004-08-20 14:09 pbartok
33429 - Added call to set window background color
33431 2004-08-20 14:03 pbartok
33433 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33434 - Added method for setting the window background
33436 2004-08-20 14:02 pbartok
33439 - Added method for setting the background color
33440 - Added handling for erasing the window background
33442 2004-08-20 13:45 jordi
33444 * TrackBar.cs: fixes timer, new properties and methods
33446 2004-08-20 13:34 jackson
33448 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
33451 2004-08-20 13:22 jackson
33453 * Timer.cs: Timer Tick events are now handed through Controls Async
33454 mechanism so the callbacks are executed in the same thread as X
33456 2004-08-20 13:19 jackson
33458 * XplatUIDriver.cs: Expose functionality to send async messages
33461 2004-08-20 13:18 jackson
33463 * Control.cs: Implement Begininvoke
33465 2004-08-20 13:14 jackson
33467 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33468 messages through the driver
33470 2004-08-20 13:12 jackson
33472 * XplatUIX11.cs: Lock before all X operations. Also added Async
33473 method functionality through XSendEvent
33475 2004-08-20 13:11 jackson
33477 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33478 This will screw up on 64 bit systems)
33480 2004-08-20 13:10 jackson
33482 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33483 Async messages through X/Win32
33485 2004-08-19 19:39 pbartok
33488 - Updated code to match new HandleData.DeviceContext type
33490 2004-08-19 19:38 pbartok
33493 - Made DeviceContext a generic object to allow usage from various
33495 - Added support for queueing Windows messages
33497 2004-08-19 19:37 pbartok
33500 - Added generation of MouseEnter, MouseLeave and MouseHover events
33501 - Added cleanup on EndPaint
33503 2004-08-19 19:17 pbartok
33506 - Added handling of WM_MOUSEHOVER
33507 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33510 2004-08-19 18:55 jordi
33512 * ThemeGtk.cs: fixes button order
33514 2004-08-19 18:12 jordi
33516 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33518 2004-08-19 17:09 pbartok
33521 - Added Right property
33522 - Added RightToLeft property
33524 2004-08-19 16:27 jordi
33526 * ThemeGtk.cs: experimental GTK theme support
33528 2004-08-19 16:26 jordi
33530 * ITheme.cs, Theme.cs: move themes from an interface to a class
33532 2004-08-19 16:25 jordi
33534 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33537 2004-08-19 16:04 pbartok
33540 - Added colormap basics
33541 - Added a way to re-initialize with a different display handle
33542 - Fixed setting of the window background color
33543 - Added various X11 imports related to colors and colormaps
33545 2004-08-19 15:51 pbartok
33548 - Removed packing hints (Paolo suggested this a while back)
33549 - fixed colormap type
33550 - Added default Atom types
33551 - Added Screen and color structs and enums
33553 2004-08-19 15:39 pbartok
33556 - Added missing Draw() method
33557 - Added missing RecreateHandle event
33559 2004-08-19 15:30 pbartok
33562 - Added handling of WM_CLOSE
33564 2004-08-18 13:16 jordi
33566 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33569 2004-08-18 09:56 jordi
33571 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33573 2004-08-17 15:31 ravindra
33575 * SWF.csproj: Updated project.
33577 2004-08-17 15:25 pbartok
33580 - Drawing improvement; don't call UpdateBounds if we are not visible
33581 (or have been minimized)
33583 2004-08-17 15:24 pbartok
33586 - Finished IsVisible
33587 - Added Win32GetWindowPlacement
33589 2004-08-17 15:08 jackson
33591 * Panel.cs: Initial checkin of the Panel
33593 2004-08-17 14:25 pbartok
33596 - Fixed broken handling of default window sizes
33598 2004-08-17 13:29 jackson
33600 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
33601 has a large startup time.
33603 2004-08-17 10:25 jackson
33605 * HandleData.cs: union areas properly
33607 2004-08-17 10:12 jackson
33609 * HandleData.cs: union areas properly
33611 2004-08-16 20:00 ravindra
33613 * ToolBar.cs, ToolBarButton.cs: Added attributes.
33615 2004-08-16 18:48 ravindra
33617 * ToolBar.cs: Added attributes.
33619 2004-08-16 17:17 ravindra
33621 * SWF.csproj: Updated project.
33623 2004-08-16 17:16 jackson
33625 * XplatUIX11.cs: Check for more expose events before sending a
33626 WM_PAINT so they can all be grouped together. This makes dragging a
33627 window across another window redraw in a sane way.
33629 2004-08-16 15:47 pbartok
33632 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
33633 support OnMouseEnter/Leave()
33634 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
33637 2004-08-16 15:46 pbartok
33639 * XplatUIStructs.cs, XplatUIX11.cs:
33640 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
33641 OnMouseEnter/Leave()
33643 2004-08-16 15:34 jackson
33645 * XplatUIX11.cs: Group multiple expose events in HandleData, make
33646 sure messages get the message field set to WM_NULL if they are not
33649 2004-08-16 15:24 jackson
33651 * HandleData.cs: HandleData is used for storing message information
33654 2004-08-15 17:23 ravindra
33656 * ColorDepth.cs: Added attribute.
33658 2004-08-15 17:23 ravindra
33660 * SWF.csproj: Updated project for ToolBar Control.
33662 2004-08-15 17:20 ravindra
33664 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
33665 control and also dos2unix format.
33667 2004-08-15 17:13 ravindra
33669 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
33670 ToolBarButtonClickEventArgs.cs,
33671 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
33672 ToolBarTextAlign.cs: First Implementation of ToolBar control.
33674 2004-08-15 15:31 pbartok
33677 - First (mostly) working version
33679 2004-08-13 16:15 pbartok
33682 - Fixed Anchor default
33684 2004-08-13 15:43 pbartok
33687 - Changed GetCursorPos signature
33689 2004-08-13 15:42 pbartok
33691 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33692 - Changed signature for GetCursorPos
33694 2004-08-13 15:25 pbartok
33698 - Fixed resizing/exposure handling
33700 2004-08-13 15:22 jordi
33702 * ThemeWin32Classic.cs: removes redundant code and fixes issues
33705 2004-08-13 14:55 jordi
33707 * TrackBar.cs: change from wndproc to events
33709 2004-08-13 13:00 jordi
33711 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33712 XplatUIX11.cs: implements PointToClient (ScreenToClient)
33714 2004-08-13 12:53 pbartok
33717 - Changed GetWindowPos to also provide client area size
33718 - Fixed broken prototypes for several win32 functions
33720 2004-08-13 12:53 pbartok
33722 * XplatUI.cs, XplatUIDriver.cs:
33723 - Changed GetWindowPos to also provide client area size
33725 2004-08-13 12:52 pbartok
33728 - Added generation of WM_POSCHANGED
33729 - Changed GetWindowPos to also provide client area size
33731 2004-08-13 12:52 pbartok
33734 - Added Dispose() and destructor
33735 - Fixed resizing and bounds calculation
33737 - Added memory savings for invisible windows
33739 2004-08-13 12:46 jordi
33741 * TrackBar.cs: adds timer and grap window
33743 2004-08-13 10:25 jackson
33745 * Timer.cs: SWF Timer
33747 2004-08-12 16:59 pbartok
33749 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33750 - Implemented method to get current mouse position
33752 2004-08-12 14:29 jordi
33754 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
33755 enhancement, fix mouse problems, highli thumb, etc
33757 2004-08-12 13:31 pbartok
33760 - Fixed Anchoring bugs
33762 2004-08-12 13:01 jackson
33764 * StatusBar.cs: Don't forget things
33766 2004-08-12 12:54 jackson
33768 * ThemeWin32Classic.cs: Handle owner draw status bars
33770 2004-08-12 12:54 jackson
33772 * StatusBar.cs: Implement missing properties, events, and methods.
33773 Handle mouse clicking
33775 2004-08-12 10:19 jackson
33777 * StatusBarPanelClickEventArgs.cs,
33778 StatusBarPanelClickEventHandler.cs: Classes for handling status
33779 bar panel click events
33781 2004-08-12 10:10 jackson
33783 * Control.cs: Add missing properties
33785 2004-08-12 09:46 pbartok
33787 * BindingsManagerBase.cs:
33788 - Name changed to BindingManagerBase.cs
33790 2004-08-12 09:25 jordi
33792 * ScrollableControl.cs: calls ctrlbase instead of exeception
33794 2004-08-11 16:28 pbartok
33796 * InputLanguageChangingEventArgs.cs:
33797 - Never check in before compiling. Fixes the last check-in
33799 2004-08-11 16:26 pbartok
33801 * InputLanguageChangingEventArgs.cs:
33802 - More signature fixes
33804 2004-08-11 16:20 pbartok
33806 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
33807 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
33808 ImageListStreamer.cs, InputLanguage.cs,
33809 InputLanguageChangedEventArgs.cs,
33810 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
33811 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
33812 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
33813 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33816 2004-08-11 16:16 pbartok
33820 - Added .Net 1.1 method
33822 2004-08-11 15:25 pbartok
33825 - Fixed BindingManagerBase.cs filename
33827 2004-08-11 15:22 pbartok
33829 * BindingManagerBase.cs:
33830 - Was checked in with wrong filename
33832 2004-08-11 14:50 pbartok
33837 2004-08-11 13:41 jordi
33839 * XplatUIWin32.cs: Fixes ClientRect
33841 2004-08-11 13:19 pbartok
33843 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33845 - We had SetWindowPos and MoveWindow to set window positions and
33846 size, removed MoveWindow. We have GetWindowPos, so it made sense to
33847 keep SetWindowPos as matching counterpart
33848 - Added some X11 sanity checking
33850 2004-08-11 12:59 pbartok
33853 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
33854 (It seems that SetBounds is just a front for SetBoundsCore and
33855 SetBoundsCore updates the underlying window system and
33856 UpdateBounds is responsible for updating the variables associated
33857 with the Control and sending the events)
33858 - Major cleanup of Size handling; we now have two sizes, client_size
33859 and bounds. Bounds defines the window with decorations, client_size
33862 2004-08-11 12:55 pbartok
33864 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33865 - Added method to calculate difference between decorated window and
33868 2004-08-11 12:54 pbartok
33871 - Forcing redraw on resize
33873 2004-08-11 11:43 pbartok
33876 - Removed disposing of the actual images when the list is disposed
33878 2004-08-11 09:13 pbartok
33881 - Now properly reparents windows
33883 2004-08-11 08:37 pbartok
33888 2004-08-11 07:47 pbartok
33891 - Rewrote the collection stuff. Might not be as fast now, not
33892 keeping the number of children around and accessible directly, but
33893 it's more straightforward
33895 2004-08-11 07:44 pbartok
33897 * AccessibleObject.cs:
33898 - Fixed to match ControlCollection rewrite
33900 2004-08-11 07:43 pbartok
33903 - Added missing creation of the collection list
33905 2004-08-10 20:08 jackson
33907 * StatusBar.cs: Get the paint message from WndProc
33909 2004-08-10 19:31 jackson
33911 * ThemeWin32Classic.cs: Create Brushes as little as possible
33913 2004-08-10 19:20 jackson
33915 * UICues.cs: Add Flags attribute
33917 2004-08-10 19:19 jackson
33919 * StatusBarPanel.cs: Signature cleanup
33921 2004-08-10 19:10 jackson
33923 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
33924 Initial implementation of status bar item drawing
33926 2004-08-10 17:27 jordi
33928 * TrackBar.cs: add missing methods, properties, and restructure to
33931 2004-08-10 16:24 jackson
33933 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
33934 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
33937 2004-08-10 13:21 jordi
33939 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
33940 enhancements and standarize on win colors defaults
33942 2004-08-10 12:52 jackson
33944 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
33945 ThemeWin32Classic.cs: Implement DrawItem functionality
33947 2004-08-10 12:47 jordi
33949 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
33951 2004-08-10 12:32 jordi
33953 * Control.cs: throw ontextchange event
33955 2004-08-10 11:43 pbartok
33958 - Added more to the still unfinished Dock/Anchor layout code
33960 2004-08-10 11:39 pbartok
33962 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33963 - Added GetWindowPos method
33965 2004-08-10 11:36 pbartok
33968 - Implemented several methods
33970 2004-08-10 09:47 jackson
33972 * TrackBar.cs: Allow control to handle buffering
33974 2004-08-10 09:41 jackson
33976 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
33978 2004-08-10 09:24 jackson
33980 * Label.cs, LinkLabel.cs: Let Control handle buffering.
33982 2004-08-10 09:09 jackson
33984 * StatusBar.cs: Let Control handle all the buffering.
33986 2004-08-10 09:08 jackson
33988 * Control.cs: Control will now handle the buffering code, so each
33989 control does not have to implement this.
33991 2004-08-10 08:34 jackson
33993 * XplatUIDriver.cs: Use default colors from the theme
33995 2004-08-09 17:12 pbartok
33998 - Fixed several bugs Ravindra pointed out
34000 2004-08-09 16:11 pbartok
34003 - Added incomplete dock layout code
34004 - Added support for mouse wheel
34006 2004-08-09 16:09 pbartok
34009 - Added handling for middle and right mousebutton
34010 - Added handling for mouse wheel
34011 - Added handling for key state and mouse state and position
34012 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
34015 2004-08-09 15:40 jackson
34017 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
34018 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
34021 2004-08-09 15:37 jackson
34023 * StatusBar.cs: Initial implementation of StatusBar
34025 2004-08-09 15:36 jackson
34027 * ITheme.cs: Add support for drawing status bar and getting status
34030 2004-08-09 15:35 pbartok
34035 2004-08-09 15:34 jackson
34037 * ThemeWin32Classic.cs: Add support for drawing status bar and get
34038 status bar item sizes
34040 2004-08-09 15:21 jackson
34042 * ThemeWin32Classic.cs: Use known colors for default control
34045 2004-08-09 15:12 jackson
34047 * ThemeWin32Classic.cs: Make the default font static, it is static
34048 in control so this doesn't change functionality and creating fonts
34051 2004-08-09 14:56 pbartok
34054 - Added GrabMode enum
34056 2004-08-09 14:55 pbartok
34058 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34059 - Removed Run method, was only required for initial development
34061 2004-08-09 14:51 pbartok
34063 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34064 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
34067 2004-08-09 13:48 pbartok
34070 - Fixed default sizing for child windows
34072 2004-08-09 12:56 pbartok
34075 - Added generation of WM_DESTROY message
34076 - Added handling of window manager induced shutdown
34078 2004-08-09 11:31 jackson
34080 * ThemeWin32Classic.cs: New names for control properties
34082 2004-08-09 11:25 jackson
34084 * Control.cs: Use new color names
34086 2004-08-09 11:02 jackson
34088 * XplatUI.cs: Get default window properties from the theme
34090 2004-08-09 11:01 jackson
34092 * ITheme.cs: The theme engine now controls default window
34095 2004-08-09 11:00 jackson
34097 * ThemeWin32Classic.cs: Add default window color properties
34099 2004-08-09 10:17 jackson
34101 * ThemeWin32Classic.cs: Use correct default back color
34103 2004-08-09 10:05 jackson
34105 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
34108 2004-08-09 09:56 jackson
34110 * XplatUI.cs: Remove defaults, these are handled by the theme now.
34112 2004-08-09 09:54 jackson
34114 * Control.cs: Get default properties from the theme.
34116 2004-08-09 09:53 jackson
34118 * ITheme.cs: Themes now handle default control properties
34120 2004-08-09 09:53 jackson
34122 * ThemeWin32Classic.cs: Themes now handle default control
34123 properties so coloring will be consistent
34125 2004-08-08 16:54 jordi
34127 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
34129 2004-08-08 15:08 jordi
34131 * XplatUIX11.cs: fixes keyboard crash
34133 2004-08-08 13:47 jordi
34135 * Label.cs: add cvs header info
34137 2004-08-08 12:09 jackson
34139 * ThemeWin32Classic.cs: Add pen_buttonface
34141 2004-08-08 11:52 jordi
34143 * Label.cs, LinkLabel.cs: [no log message]
34145 2004-08-08 11:34 jordi
34147 * ThemeWin32Classic.cs: Use Windows Standard Colours
34149 2004-08-07 17:32 jordi
34151 * TrackBar.cs: throw exceptions of invalid enums values
34153 2004-08-07 17:31 jordi
34155 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
34158 2004-08-07 16:56 jackson
34160 * HorizontalAlignment.cs: Initial checkin
34162 2004-08-07 13:16 jordi
34164 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
34167 2004-08-07 13:05 jordi
34169 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
34170 GetSysColor defines
34172 2004-08-06 18:01 pbartok
34174 * ThemeWin32Classic.cs:
34175 - Fixed some rounding issues with float/int
34177 2004-08-06 18:00 jackson
34179 * DockStyle.cs, AnchorStyles.cs:
34181 Add flags and serializable attributes.
34183 2004-08-06 17:46 pbartok
34186 - Implemented GetParent
34188 2004-08-06 17:18 pbartok
34191 - Fixed some rounding issues with float/int
34193 2004-08-06 17:17 pbartok
34195 * X11Structs.cs, XplatUIX11.cs:
34196 - Fixed Refresh and Invalidate
34198 2004-08-06 15:30 pbartok
34200 * Control.cs, X11Structs.cs, XplatUIX11.cs:
34201 - Fixed recursive loop when resizing
34202 - Improved/fixed redrawing on expose messages
34204 2004-08-06 09:53 jordi
34206 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
34207 keyboard navigation
34209 2004-08-06 08:02 pbartok
34211 * X11Structs.cs, XplatUIX11.cs:
34212 - Fixed reparenting
34213 - Fixed window border creation
34215 2004-08-05 15:38 pbartok
34218 - Attempted fix for reparenting problems
34220 2004-08-04 15:14 pbartok
34223 - Fixed Invalidation bug (calculated wrong client area)
34224 - Added ClientSize setter
34226 2004-08-04 15:13 pbartok
34229 - Added AutoScale properties
34231 2004-08-04 15:13 pbartok
34234 - Added latest files
34236 2004-08-04 14:11 pbartok
34238 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34240 - Added Invalidate handling
34242 2004-08-03 17:09 jordi
34244 * XplatUIDriver.cs: fixes spelling mistake
34246 2004-07-27 09:53 jordi
34248 * TrackBar.cs: fixes trackbar events, def classname, methods
34251 2004-07-27 09:29 jordi
34253 * ScrollBar.cs: fixes scrollbar events
34255 2004-07-27 04:38 jordi
34257 * Control.cs: changes to be able to run winforms samples
34259 2004-07-26 11:42 jordi
34261 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
34262 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
34264 2004-07-26 05:41 jordi
34266 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
34267 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
34270 2004-07-22 09:22 jordi
34272 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
34273 check link overlapping, implement events, and fixes
34275 2004-07-21 10:28 jordi
34277 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
34279 2004-07-21 10:19 jordi
34281 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
34282 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
34283 LinkLabelLinkClickedEventArgs.cs,
34284 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
34285 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
34288 2004-07-19 13:09 jordi
34290 * Control.cs, Label.cs: label control re-written: added missing
34291 functionlity, events, and properties
34293 2004-07-19 10:49 jordi
34295 * Control.cs: fixes SetBounds logic
34297 2004-07-19 01:29 jordi
34299 * Control.cs: Call RefreshWindow only if the window has created
34301 2004-07-15 14:05 pbartok
34303 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
34304 - Implemented ImageList and ImageList.ImageCollection classes
34305 - Added ColorDepth enumeration
34306 - Updated SWF VS.Net project
34308 2004-07-15 11:06 jordi
34310 * XplatUIStructs.cs: added MsgButons enum
34312 2004-07-15 11:03 jordi
34314 * Control.cs: added basic mouse handeling events
34316 2004-07-15 03:38 jordi
34318 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
34319 Vertical TrackBar control implementation
34321 2004-07-13 09:33 jordi
34323 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
34325 2004-07-13 09:31 jordi
34327 * Control.cs, Form.cs: commit: new properties and fixes form size
34330 2004-07-09 14:13 miguel
34332 * ProgressBar.cs: Spelling
34334 2004-07-09 11:25 pbartok
34337 - Removed usage of Rectangle for drawing. Miguel pointed out it's
34340 2004-07-09 11:17 miguel
34342 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
34344 * ProgressBar.cs: Fixed spelling for `block'
34346 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
34349 Avoid using the += on rect.X, that exposed a bug in the compiler.
34351 2004-07-08 23:21 pbartok
34353 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
34354 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
34355 BaseCollection.cs, Binding.cs, BindingContext.cs,
34356 BindingMemberInfo.cs, BindingsCollection.cs,
34357 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
34358 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
34359 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
34360 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
34361 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
34362 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
34363 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
34364 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
34365 FrameStyle.cs, GiveFeedbackEventArgs.cs,
34366 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
34367 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
34368 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
34369 InputLanguageChangedEventArgs.cs,
34370 InputLanguageChangedEventHandler.cs,
34371 InputLanguageChangingEventArgs.cs,
34372 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
34373 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
34374 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
34375 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
34376 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
34377 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
34378 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
34379 QueryAccessibilityHelpEventArgs.cs,
34380 QueryAccessibilityHelpEventHandler.cs,
34381 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
34382 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
34383 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
34384 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
34385 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
34386 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
34387 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
34388 XplatUIX11.cs, lang.cs: