1 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * TabControl.cs: When invalidating in SelectedIndex and we need to
4 inflate to take into account the border of the tabs, make sure that
5 the invalidated rect doesn't overflow the control bounds, since that
6 would avoid updating at all.
8 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10 * TabControl.cs: Don't substract scroller width from the row width,
11 since we need to take into account the total width of the control when
12 calculating the position of the tabs. This avoids showing scroller
13 when it is actually not needed.
14 Fixes part of #322325.
16 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
18 * ThemeVisualStyles.cs: Added support for TextBoxBase.
20 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
22 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
23 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
25 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
27 * DataGridView.cs: Only paint the top left header cell if there
30 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
32 * DataGridView.cs: When binding to a BindingSource, get the underlying
33 list to bind to. [Fixes bug #345483]
35 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
37 * DataGridView.cs: Do not bind to collection properties.
40 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
42 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
44 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
46 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
49 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
51 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
53 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
55 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
58 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
60 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
62 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
64 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
67 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
69 * TabControl.cs: Extended to handle the hot style.
71 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
73 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
74 Extended UpDownBase code to handle hot and disabled styles.
76 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
78 * DataGridView.cs: Handle databinding to generic list type things.
81 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
83 * DataGridViewCellCollection.cs: Add a method to find the cell
84 with the given DataPropertyName.
85 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
86 * DataGridViewColumnCollection.cs: Add a method to clear all
87 autogenerated columns.
88 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
92 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
94 * DataGridView.cs: Don't try to update the RowTemplate with
97 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
99 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
100 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
101 * DataGridView.cs: Lots of fixes/enhancements to databinding to
104 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
106 * Control.cs: Remove invalidating implicit child controls when
107 control is invalidated. It was causing too many redraws on
108 controls with implicit scrollbars.
109 * ListView.cs: Listen to the Invalidated event and invalidate
112 2008-05-20 Andreia Gaita <avidigal@novell.com>
114 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
115 * HtmlDocument.cs: Check for nulls
117 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
119 * Control.cs: In ControlCollection.RemoveInternal, remove the
120 internal control before calling PerformLayout and OnControlRemoved,
121 which was leaving us in an invalid state and causing a X error (bad
122 match). Observe that Remove () call has the same order.
123 Fixes an X error changing ComboBoxStyle.DropDownStyle.
125 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
127 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
128 being fired if ControlStyles.UserPaint style is activated.
131 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
133 * GridEntry.cs: Don't be so strict when setting the value -
134 do not check if what we set is what we get.
137 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
139 * XplatUIX11.cs: If there are no timers timeout should be 0
142 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
144 * Control.cs: As a followup to invalidating implicit children when
145 a control is invalidated, only invalidate them if they are in the
148 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
150 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
152 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
154 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
156 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
158 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
159 * XplatUIWin32.cs: Made Win32DeleteObject public.
161 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
163 * GridEntry.cs: Determine HasDefaultValue more strictly by using
164 PropertyDescriptor.ShouldSerializeValue.
167 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
169 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
170 in the classic theme.
172 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
174 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
176 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
177 ScrollBarHasPressedThumbStyle.
179 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
181 * TextRenderer.cs: Included some methods in the 1.1 profile.
183 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
185 * Control.cs: When we make a control visible, it may have been
186 previously visible and while it wasn't visible, the z-order of
187 things may have been shuffled, so the control needs to have its
188 z-order updated just in case. [Fixes bug #391518]
190 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
192 * ThemeVisualStyles.cs: Added support for GroupBox.
194 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
196 * GroupBoxRenderer.cs: Included in the 1.1 profile.
198 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
200 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
201 bug #389996; XSelectInput() behaved as mouse handler robber,
202 so remove extra call to it.
204 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
206 * Control.cs: Simplify ControlCollection.Contains method.
208 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
210 * DataGridViewRow.cs: Implement GetPreferredSize.
212 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
214 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
216 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
218 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
219 painting and edit control fixes.
221 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
223 * DataGridView.cs, DataGridViewCell.cs: Work around some external
224 checks to make sure we are in an actual row/col for top left header cell.
225 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
227 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
229 * Control.cs: Use long instead of int when handling WParam from
230 mousewheel scrolling. Int was overflowing on Win64.
232 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
234 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
235 flow panel without scrolling first, and then calculate the
236 scrolling based on the new layout. [Fixes bug #390149]
238 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
240 * ListBox.cs: Invalidate after scrolling up when selected index
241 changes. [Fixes bug #390151]
243 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
245 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
246 set, default height to 150. I tried first with DefaultSize, but this
247 is not generating a SetBoundsCore call before handle creation time, so
248 we can take it into account. This is just what .net does.
250 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
252 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
253 as it broke some stuff. Calberto is filing a bug for eno to
256 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
258 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
259 to 0 is the current value is -1, and if style is not Simple, just
260 return, like .net does.
261 Fixes part of #374713.
263 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
265 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
266 progress bar stuffs, use doubles instead of ints to prevent
267 overflow. [Fixes bug #389798]
269 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
271 * XplatUIX11.cs, X11Keyboard.cs :
272 Significant refactoring on XIM support. Now IM engine UI
273 should show up, at mostly-correct preedit position.
274 - Eliminated use of FocusWindow, as it is never mapped
275 and hence blocks correct preedit position. XIC is now
276 created per window, and it must be destroyed too when
277 the window is destroyed.
278 - WM_QUIT messages should not be filtered even when hwnd
279 is zombie. Filtering it could cause endless loop.
280 - Preedit position must move only when the window is alive.
281 - Make it IDisposable and make sure to release XIM/XICs.
283 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
285 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
286 XplatUIX11.cs, XplatUIWin32.cs :
287 fix for bug #325033 and #387693;
288 - WM_QUIT should not be sent when no running application
290 - SetTimer/KillTimer (especially on win32) should be
291 invoked for the window that the timer is/will_be attached.
292 - There could be unattached timers to a window when it's
293 started. For those timers, hold pending timers and when
294 a window is mapped, attach them to it.
295 - WaitForHwndMessage() could run into loop when
296 WM_SHOWWINDOW is handled before this method is called.
297 So, strictly check wm_showwindow state.
298 - Tick handler should not be invoked while one Tick handler
299 call is still running (introduced Busy state).
301 2008-05-13 Andreia Gaita <avidigal@novell.com>
303 * WebBrowserBase.cs: Override Internal alternative methods for
304 SetBoundsCore and OnResize instead of the protected ones.
305 * Control.cs: Move SetBoundsCore and OnResize implementations to
306 SetBoundsCoreInternal and OnResizeInternal, so they can be
307 overriden internally (WebBrowserBase needs to catch them but can't
308 override the protected methods without api compat problems)
310 2008-05-13 Andreia Gaita <avidigal@novell.com>
312 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
314 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
317 * ListView.cs: Remove debug messages.
319 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
321 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
322 area is empty. Also calculate scrollbars in Simple mode based in area
323 height and total number of items, not in MaxDropDownItems.
324 Fixes part of #371991.
326 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
328 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
330 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
332 * BindingSource.cs: GetListSortDescription is not public.
334 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
336 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
338 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
340 * HtmlElement.cs: Fix parameter names to match MS.
341 * HtmlWindowCollection.cs: Should not be sealed.
343 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
345 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
346 button, because the thumb button will not get drawn if the scrollbar
347 is disabled. [Fixes bug #389262]
349 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
351 * ListBox.cs: Handle End key for multi-column listboxen.
354 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
356 * ListBox.cs: Fix algorithm to determine which column our item is in.
359 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
361 * ListBox.cs: Invalidate when the listbox is resized.
364 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
366 * ListBox.cs: There is always at least one row in the ListBox (if
367 we are doing these calculations.) [Fixes bug #389253]
369 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
371 * ListBox.cs: There is always at least one column in the ListBox.
374 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
376 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
377 ensure in Simple mode that the height is exactly the requested one.
378 Also add the ComboBoxListControl to the controls collection in Simple
379 mode even if handle hasn't been created.
380 Fixes part of #371991.
382 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
384 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
385 our ComboBox owner instead of giving it back to the previous control (
386 as done in other controls). Also remove the empty override of Select
387 method, since we want to be selected *and* give focus to our owner.
388 This should let the user do keys-navigation in Simple mode.
390 2008-05-10 Geoff Norton <gnorton@novell.com>
392 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
393 problems with rapid scrolling of treeviews. Fixes #381084
395 2008-05-10 Geoff Norton <gnorton@novell.com>
397 * XplatUICarbon.cs: Deactivate the active window before
398 activating the desired window. Completes fixing #386504
400 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
402 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
403 SmallChange to the item size width plus the padding, to match .net.
405 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
407 * FileDialog.cs: Apply the custom filter typed by the user in the file
408 name combobox as much as possible while navigating in the file dialog.
411 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
413 * Binding.cs: Actually use NullValue if the retrieved value of
414 data source is null or DBNull. Makes a test pass.
416 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
418 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
419 * MimeIcon.cs: Provide a way to get icons from resources.
421 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
423 * Binding.cs: When the value retrieved from the control to be assigned
424 to the data source is null, actually use the 2.0 DataSourceNullValue
425 value. Make pass a data binding test.
427 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
429 * Control.cs: We need to invalidate implicit children even when
430 invalidate is called with invalidatechildren = false. (Implicit
431 children are really part of the parent.)
432 * ListView.cs: Double-buffer internal child controls for less
434 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
435 owner ListView subitems for greatly increased performance.
438 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
440 * FileDialog.cs: When the user types a wildcard character in the
441 filename combobox, update the contents of the folder using the text as
443 Fixes part of #385261.
445 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
447 * ListBox.cs: Various fixes for MultiColumn listboxen.
450 2008-05-08 Andreia Gaita <avidigal@novell.com>
452 * HtmlElement.cs: Implement Style property
454 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
456 * ListBox.cs: Respect checkboxes when measuring item size.
457 * ThemeWin32Classis.cs: When drawing list items, don't draw
458 text outside of the item's bounds to prevent overlapping.
459 (.Net actually overlaps, but that's just silly.)
462 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
464 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
465 Gert Driesen. Fixes bug #324830.
467 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
469 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
472 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
474 * BindingSource.cs: When calling IsSynchronized, return the value of
475 the related IList list.
477 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
479 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
482 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
484 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
485 navigation to scroll the grid if the current cell is not visible.
487 2008-05-07 Andreia Gaita <avidigal@novell.com>
489 * HtmlElement.cs: Implement TabIndex
491 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
493 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
494 properties, even when there are no items.
497 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
499 * NativeWindow.cs: Add support for multiple handles per window.
500 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
501 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
502 directly - use FromHandle instead.
505 2008-05-07 Andreia Gaita <avidigal@novell.com>
507 * HtmlElement.cs: Implement InnerHTML setter
509 2008-05-07 Andreia Gaita <avidigal@novell.com>
511 * HtmlDocument.cs: Implement Focused
513 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
515 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
516 methods, as well as add messages to the exceptions.
518 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
520 * BindingSource.cs: Setting DataSource should only reset DataMember if
521 the previous value was null (make pass a not working test).
523 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
525 * BindingSource.cs: When EndInit call is postponed and is called until
526 DataSource.EndInit is called, remove the handler for data source.
528 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
530 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
532 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
534 * ToolStripManager.cs: Store references to toolstrips as
535 weak references so they do not prevent forms from getting collected.
538 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
540 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
541 on .Net. So do the same thing in WndProc.
543 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
545 * TrackBar.cs: Commit patch from Andy Hume that corrects
546 the clickable areas to better match .Net.
549 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
551 * TrackBar.cs: Commit patch from Andy Hume that adds the
552 ResizeRedraw control flag so the track bar repaints itself
553 when it is resized. [Fixes bug #387072]
555 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
557 * TrackBar.cs: Commit patch from Andy Hume that adds better
558 support for keyboard navigation when the TrackBar is vertical.
561 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
563 * BindingSource.cs: Implement ISupportInitializeNotification support.
565 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
567 * ThemeVisualStyles.cs: Added support for ToolBar.
569 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
571 * ToolBar.cs: Made the Vertical property internal.
573 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
575 * ThemeVisualStyles.cs: Added support for TrackBar.
577 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
579 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
580 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
581 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
582 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
583 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
584 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
586 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
588 * ThemeVisualStyles.cs: Added support for UpDownBase.
590 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
592 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
593 Extracted Theme.UpDownBaseDrawButton.
595 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
597 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
598 removed from the static toolstrips collection in ToolStripManager
599 when they are disposed. Provides a workaround for bug #386483.
601 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
603 * GridEntry.cs: Read-only properties with Editor with
604 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
607 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
609 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
610 the menu key and there are no items on the menu.
613 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
615 * Control.cs: Avoid calling ToString on a string.
616 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
617 * GroupBox.cs: In FlatStyle property throw, not just create, the
618 exception. Avoid calling ToString on a string.
619 * ProgressBar.cs: Avoid calling ToString on a string.
620 * ScrollBar.cs: Avoid calling ToString on a string.
621 [All issues were found using Gendarme]
623 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
625 * NotifyIcon.cs: Prevent click events to be trigger after double click
626 events. Fixes remaining issues of bug #324832.
628 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
630 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
631 to mimic win32 behavior. Partially fixes bug #324832.
633 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
635 * BindingSource.cs: Implement Find methods.
637 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
639 * BindingSource.cs: Implement Sort, ApplySort overloads, and
642 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
644 * ListBindingHelper.cs: When calling GetListItemProperties and the
645 passed object is ITypedList, return the result of
646 ITypedList.GetItemProperties instead.
648 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
650 * LinkLabel.cs: Set default value of name on constructor of Link class
651 only for 2.0 profile.
653 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
655 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
656 Fixes remaining issues of bug #346154.
658 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
660 * LinkLabel.cs: Set a default value for name on internal contructor of
661 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
663 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
665 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
666 and refer all instances to owner.links. Partially fixes #346154.
668 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
670 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
671 length equal zero. Also called CreateLinkPieces in constructor. It fixes
672 the LinkLabel test 'TestLinkArea'.
674 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
676 * Form.cs: Remove menu before close form to prevent form to be not gaced.
679 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
681 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
684 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
686 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
689 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
691 * MenuAPI.cs: Remove unused ProcessCmdKey method.
693 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
695 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
698 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
700 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
703 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
705 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
706 sometimes we open a conext menu on mouse down of some controls and the mouse
707 up is dispatched to menu and dont need to. It fix remaining issues of
708 #363711 and other problems related to menu mouse click events.
710 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
712 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
713 some var names to better fit changes, now we have month_menu and today_menu
714 vars. Fixes bug #363711.
716 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
718 * MonthCalendar.cs: Handle every right mouse click to open context menu,
719 right now the default month menu but it will be change to have "Go to today"
722 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
724 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
726 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
728 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
730 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
732 * ThemeVisualStyles.cs: Added support for TreeView.
734 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
736 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
737 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
739 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
741 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
743 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
745 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
746 Implement 2.0 SP1 stuffs.
748 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
750 * FileDialog.cs: Implement 2.0 SP1 stuffs.
752 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
754 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
755 Implement CanEnableIme property. (2.0 SP1)
757 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
759 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
762 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
764 * Control.cs: Provide an internal way for a control to override
765 the setting of Height.
766 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
767 set height using new method.
769 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
771 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
773 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
775 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
776 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
778 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
780 * ThemeVisualStyles.cs: Added support for StatusBar.
782 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
784 * DataObject.cs: Add the other IDataObject interface.
786 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
788 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
789 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
791 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
793 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
794 * ListView.cs: Hide non-public API.
795 * MaskedTextBox.cs: Remove extra attribute.
797 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
799 * DataGridViewImageCell.cs: Use formatted value instead of value
800 to calculate preferred size.
802 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
804 * ListBox.cs: Move some initialization around so that selected_indices
805 is not accessed before it is created.
807 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
809 * InputLanguageCollection.cs: Implement the collection better.
812 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
814 * ToolStripDropDownItem.cs: Get the correct event object for
816 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
819 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
821 * DataGridViewRowCollection.cs: We don't currently support shared
822 rows. Should fix test failures caused by previous commit.
824 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
826 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
827 datagridview gets set. Only paint cells in visible columns.
828 * DataGridViewCell.cs: Draw border after cell content.
829 * DataGridView.cs: Invalidate after setting some properties. Only
830 use visible columns. Fit hit test bug with areas in the col/row header
831 area but not in a row or col. Implement UpdateCell/Row methods.
833 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
835 * DataGridViewElement.cs: Don't throw NIEX.
836 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
837 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
838 * DataGridViewCheckBoxColumn.cs: Implement ToString.
839 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
840 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
841 if the user filled in the formatting Value, use it.
843 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
845 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
848 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
850 * BindingSource.cs: Some corrections to Filter property, as well as
851 setting it for our list when resetting it.
853 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
855 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
856 than the maximum. Fixes reopened bug #384182.
858 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
860 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
861 Fixes remaining issues of #367490.
863 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
865 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
866 SystemInformation.WorkingArea to get max_screen value.
868 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * BindingSource.cs: Implement Filter and RemoveFilter.
872 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
874 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
876 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
878 * X11Dnd.cs: When trying to convert data and we know we started the
879 dnd loop, don't try to use the cached data if the loop is not running,
880 which means that the data has been resetted.
883 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
885 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
888 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
890 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
891 it to drawn off screen edge. Fixes bug #367490.
893 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
895 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
896 menu position to have only one assignment of Location var.
898 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
900 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
901 for this patch. Fixes bug #384115.
903 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
905 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
906 the same. If LargeChange is zero, set a minimum size for the scroll
907 thumb grip. [Fixes bug #384182]
909 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
911 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
914 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
916 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
918 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
920 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
923 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
925 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
927 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
929 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
931 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
933 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
935 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
937 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
939 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
941 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
943 2008-04-27 Andreia Gaita <avidigal@novell.com>
945 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
946 supposed to return a reference to an mshtml interface, which we
948 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
949 reference to an mshtml interface, which we don't support). Code
951 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
952 DomDocument getter (it's supposed to return a reference to an
953 mshtml interface, which we don't support). Code formatting cleanup.
955 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
957 * ListView.cs: Ouch, forgot to commit.
959 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
962 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
964 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
966 * ListView.cs: When calculating box selection for virtual mode, don't
967 look for intersection with item's text, but item bounds, since that
968 would mean read ListViewItem's text for _every_ item, and that's
969 something we just can't do in virtual mode (items are only requested
972 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
974 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
975 partial support for managed windows (based on the patch from Ernesto).
977 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
979 * ListView.cs: When doing a key search use FindItemWithText method
980 instead of doing the search by ourselves, this way we avoid
981 duplicating the code and also we handle the special case for virtual
982 mode. To achieve that make our private overload of FindItemWithText
983 internal and also have a 'roundtrip' parameter.
985 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
987 * ListView.cs: When doing the layout don't request the
988 ListViewItem instance if we are in virtual mode (since we can't request it
989 until the item is actully drawn).
991 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
993 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
996 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
998 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
999 the patch from Ernesto).
1001 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1003 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1004 * ThemeVisualStyles.cs: Added.
1006 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1008 * IDeviceContext.cs: Added a missing using.
1010 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1012 * ButtonBase.cs: Made IsDefault protected internal.
1013 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1015 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1017 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1018 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
1019 RadioButtonRenderer.cs: Included in the 1.1 profile.
1020 * IDeviceContext.cs: Added.
1021 * TextRenderer.cs: Included a member in the 1.1 profile.
1023 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1025 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
1027 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1029 * ErrorProvider.cs: Make the error icons come after the control
1030 they refer to. It isn't the way the MS does it, but its better
1031 than what we were doing. See bug #368587.
1033 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1035 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
1036 from Eric Albright that lazy loads the input language as ensures
1037 everything gets properly initialized. Fixes bug #373871.
1039 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1041 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
1042 implicit mnemonics. [Fixes bug #383000]
1044 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1046 * X11Dnd.cs: When canceling the operation, automatically restore the
1047 default cursor - normally the default cursor is restored when the
1048 mouse buttons are released, but we should be able to restore it even
1049 if the buttons are still pressed (for example, when pressing ESC to
1053 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1055 * X11Dnd.cs: When starting a new drad and drop operation, set control
1056 field to null, just as the other fields, to avoid calling any
1057 operation on a previous control. Also, when calling DndLeave on a
1058 control, set it to null, thus we don't fire that event multiple times
1062 2008-04-23 Geoff Norton <gnorton@novell.com>
1064 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
1065 the whole_window object. Fixes #377084.
1067 2008-04-23 Andreia Gaita <avidigal@novell.com>
1069 * HtmlElement.cs: Implement RaiseEvent (event injection into the
1072 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
1074 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
1076 2008-04-23 Andreia Gaita <avidigal@novell.com>
1078 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
1081 2008-04-23 Andreia Gaita <avidigal@novell.com>
1083 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
1086 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1088 * X11Dnd.cs: When the drop was cancelled, or could just not be
1089 performed, return DragDropEffect.None always (match .net).
1091 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1093 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
1095 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1097 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
1099 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1101 * DataGridView.cs: Add support for error icon tool tips.
1102 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
1103 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
1105 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
1107 * X11Structs.cs: Add mouse button masks enum.
1108 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
1109 WM_EXITSIZEMOVE only once at the beginning and at the end of the
1110 form resize/move operation instead of for each step of it.
1111 [Fixes bug #346529 for the x11 backend]
1113 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1115 * DataGridView*: Implement support for drawing error icons.
1117 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1119 * TreeView.cs: Make vbar and hbar internal.
1120 * TreeNode.cs: If collapsing the node removes one of the TreeView's
1121 scrollbars, invalidate the whole thing.
1124 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1126 * TreeView.cs: Calling Sort() sets Sorted = true.
1127 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
1128 if the nodes need to be sorted.
1131 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
1133 * Form.cs: Fire SizeChanged for both when the form is minimized and
1135 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
1136 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
1138 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1140 * ComboBox.cs: If the combobox is disabled, draw a disabled
1141 background before painting anything else.
1144 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1146 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
1147 forget to send a Leave event to the target window - just as .net does
1148 when cancelling dnd operations.
1150 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1152 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
1153 soon as possible - this happens when we send the drop message to the
1154 target window. This way we avoid firing any DragOver _after_ drop finished.
1157 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1159 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
1160 * Form.cs: Handle form minimization as a special state, where size doesn't
1161 change, but we have to fire SizeChanged.
1162 [Fixes bug #325122 for the win32 and x11 backends]
1164 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1166 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
1167 if the handle is disabled.
1170 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1172 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
1173 for forms with FormBorderStyle.None.
1176 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1178 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
1180 [Fixes bug #346529 for the X11 backend]
1182 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1185 - Send a mouse Enter message after say dragging the mouse with a
1186 button down and then release it in another client.
1187 - Reset the cursor to prevent X11 from remembering it and setting it
1188 before the control gets WM_SETCURSOR.
1189 - Qeueue a mouse move after a mouse enter like win32.
1192 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1194 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
1195 It's sent when the form gets moved, resized, closed.
1196 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
1197 [Fixes bug #359193 for X11]
1199 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1201 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
1204 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1206 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
1207 group. Fixes the 1.1 build.
1209 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1211 * ListView.cs: Use display indexes for selection in Details view, as
1212 well as do the proper layout based on display indexes for that view
1215 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1217 * ListView.cs: Focused item information is now stored as a display
1218 index, and display indexes are used all over the place for selection,
1219 instead of ListViewItem.Index values, which doesn't give us enough
1220 information to modify the selection in groups mode, and was broken.
1222 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
1224 * Control.cs: Do not fire MouseDown if validation of the control has
1226 * Form.cs: Validate the form before closing.
1227 [Fixes bugs #330501 and #353310]
1229 2008-04-18 Andreia Gaita <avidigal@novell.com>
1231 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
1232 CreateWebBrowserSiteBase implementations
1233 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
1234 Style and TabIndex setters
1236 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1238 * ListViewGroup.cs: When returning the actual item count, return the
1239 proper count for default group.
1242 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1245 * ListViewGroup.cs: When calculating groups layout, get the actual
1246 number of items per group, since groups added to the group BUT not
1247 added to the ListView are just ignored, and can cause some nasty
1248 exceptions because of the lack of synchronization. Also for
1249 ListViewGroup don't use lazy initialization for items, since we
1250 the common scenario is to use it always - and it helps us to refactor
1251 and clean the .ctor overloads.
1253 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1255 * ListView.cs: When adding an item to a ListViewItemCollection
1256 belonging to a group (ListViewGroup.Items), don't generate a redraw if
1257 the added item hasn't beeen previously added to the ListView instance
1258 refered by the group, since it will be ignored. This should avoid some
1259 really nasty flickering.
1261 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263 * ListView.cs: When accessing an item in a specific display
1264 position, use the helper method GetItemAtDisplayIndex, instead of
1265 direct access to the reordered_items_indices array. When doing layout
1266 for groups set the correct Items index for the display position (since
1267 in groups mode items don't have the same position as in Items
1269 * ListViewGroup.cs: Add a field to store the starting item number,
1270 which is later used when calculating the layout.
1274 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
1276 * Application.cs: Fixed ProductVersion to fallback to the assembly
1277 version. Fixes regression for bug #325413.
1279 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1281 * ListView.cs: New helper method to retrieve an item in a _specific
1282 display_ position (the items can be displayed in a different order
1283 than one of Items collection).
1284 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
1285 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
1286 specific display position (again remember that items can be sorted
1287 different than Items).
1289 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1291 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
1292 list and update it when the collection changes. We were recreating
1293 this several times per row paint and for every pixel the mouse moved
1295 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
1298 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1300 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
1301 list to use generics.
1302 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
1303 and remove unneccessay casts.
1305 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1307 * DataGridViewBand.cs: Add internal way to set displayed variable.
1308 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
1309 * DataGridView.cs: Make sure we always keep track of Displayed
1310 rows and columns, and only draw things that are displayed.
1312 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
1314 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
1315 whether the key events are filtered or not. Introduced
1316 PreFilter() process for this purpose. This fixes atokx3/iiimx
1319 2008-04-16 Andreia Gaita <avidigal@novell.com>
1321 * HtmlHistory.cs: Implement Length property
1323 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
1325 * DataGridView.cs: Call EndEdit when a sort is performed so we take
1326 away the edit textbox. Refactor to reuse column sort code.
1328 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
1330 * MenuAPI.cs: Remove the code that save and restore capture status of
1331 grab_control, this fixes some Menu and Context menu bugs but maybe it can
1332 cause some others, I cant figure the possible problems of this patch but
1333 right now remove the code looks to be better than keep it. This patch fixes
1334 bugs #357638, #378721 and #379570.
1336 2008-04-12 Andreia Gaita <avidigal@novell.com>
1338 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
1339 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
1340 add missing properties and event handlers.
1342 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
1344 * ListBox.cs: Make sure the LargeChange we are setting is at least
1345 zero, to prevent an IOORE. [Fixes bug #379531]
1347 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
1349 * ComboBox.cs: Support item navigation by entering text. Firstly,
1350 in DropDownList mode, for each key-press select the next item
1351 starting with that letter.
1352 For other modes, when no item selected, on arrow-up/-down and open
1353 drop-down select the first item matching the text in the textbox.
1355 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
1357 * X11Keyboard.cs : Control.FromHandle() could return null
1358 in MoveCurrentCaretPos().
1360 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1362 * ListView.cs: When changing the size in VirtualMode, also Reset the
1364 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
1365 changing selection info for VirtualMode.
1368 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
1371 view, don't use LineLimit for the first item - use NoWrap *always*
1372 instead, since ListView.LabelWrap is not used for this view.
1375 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1377 * Binding.cs: Call UpdateIsBinding when setting control - probably
1378 Binding is already usable and we don't need to wait to check the
1379 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
1380 Created, just like 2.0 does.
1381 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
1383 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1385 * Binding.cs: Just realized we don't need to have a handler for
1386 BindingContextChanged, since this info should be now consumed directly
1387 in the BindingManagerBase. And also, the manager.IsBindingSuspended
1388 state info is checked directly, instead of caching it.
1390 * CurrencyManager.cs: IsSuspended should return always false if Count
1393 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1395 * Binding.cs: When calling PushData, return if manager.Count == 0,
1396 since we just don't have data to be read. Also, when setting the
1397 Control for binding, hook up some events to refresh the IsBinding
1398 state when BindingContext change or control gets created; use
1399 Control.IsHandleCreated instead of Control.Created check to set
1400 IsBinding state - we *actually* need to modify IsBinding when control
1401 is created, but we don't have any Created event, only HandleCreated.
1402 Fixes part of #349364.
1404 2008-04-11 Geoff Norton <gnorton@novell.com>
1406 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
1407 warping a null Caret.
1409 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1411 * DataGridView.cs: Implement row/column autosizing methods. Implement
1413 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
1414 * DataGridViewRowCollection.cs: Add an internal sorting method.
1416 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1418 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
1419 value in ListView drawing code.
1421 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1423 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
1424 is clicked. Respect the user setting Cancel in FileOk.
1426 2008-04-11 Geoff Norton <gnorton@novell.com>
1428 * ListView.cs: Avoid setting and resetting control Width/Heights and
1429 calculate the final value and set it once. Prevents a feedback loop
1432 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1434 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
1437 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
1439 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
1440 Add some on-the-spot code, but it seems we don't need it.
1442 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1444 * Form.cs: Add method for DataGridView to trigger focus cues
1445 even when it handles the tab keypress.
1447 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1449 * DataGridView.cs: More keyboard handling, tab, esc.
1450 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
1451 when at the beginning or end of the text in the text box.
1453 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1455 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
1457 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1459 * DataGridView.cs: Some fixups for showing and adding the edit control.
1460 * DataGridViewButtonColumn.cs: Implement ToString.
1461 * DataGridViewCell.cs: Size and position the control simultaneously.
1462 * DataGridViewTextBoxCell.cs: Use base to position control.
1464 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1466 * DataGridViewCell.cs: Fix up some formatting and painting code.
1467 * DataGridViewImageCell.cs: Implement some NIEX methods.
1469 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1471 * ToolStripItemCollection.cs: What moving an item from one owner
1472 to another, remove from source owner before adding to destination.
1475 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1477 * PictureBox.cs: Call Load when ImageLocation is set.
1480 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
1482 * X11Keyboard.cs, XplatUIX11.cs :
1483 Implement over-the-spot mode (with some odd offsets).
1484 - set preedit position when caret is set.
1485 - Wrap XMoveResizeWindow() to move preedit position.
1487 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1489 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
1492 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1494 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
1495 and ScanTableIndex public, it fix compilations errors when compiling
1496 WinForms to generate keyboard layout resources.
1498 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1500 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
1501 different element count than scan table. It prevents some errors in non
1504 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1506 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
1508 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1510 * DataGridView.cs: Call OnContentClick.
1511 * DataGridViewCell.cs: Do a null check on ValueType instead
1513 * DataGridViewCheckBoxCell.cs: Implement.
1515 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1517 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
1519 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1521 * X11Keyboard.cs : Check XGetIMValues() return value in
1522 case it does not return input styles in some environment.
1524 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1526 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
1528 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1530 * BindingContext.cs: Stub UpdateBinding method.
1532 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
1534 * X11Structs.cs : added couple of structs for XIM support.
1536 Release XIM in case it failed to create XIC.
1537 Use consts for XNblah string.
1538 Add support for IM style customization and XIC creation
1539 for preedit-position and preedit-callback.
1540 Right now use MONO_WINFORMS_XIM_STYLE environment variable
1541 (list of: over-the-spot | on-the-spot | root). Only root
1544 (redoing r99172 with fix.)
1546 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1548 * TreeView.cs: Center the checkbox a little better.
1550 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1552 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
1553 Apply very nice patch from Ernesto Carrea that simplifies our
1554 scrollbar drawing. [From bug #376146]
1556 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1558 * TreeView.cs: Correct the location of the root node checkbox when
1559 ShowRootLines = false. Don't draw the root lines for the root node
1560 when ShowRootLines = false. [Fixes bug #377535]
1562 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1564 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
1566 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
1568 * MaskedTextBox.cs: Added missing attribute. Code formatting.
1569 * PageSetupDialog.cs: Added missing attribute. Code formatting.
1570 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
1571 * ImeMode.cs: Added missing field.
1572 * HtmlWindow.cs: Code formatting. Fixed line endings.
1573 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
1575 * HtmlHistory.cs: Code formatting. Fixed line endings.
1576 * HtmlDocument.cs: Code formatting. Fixed line endings.
1577 * ToolStripPanel.cs: Added missing IList implementation.
1578 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
1580 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1582 * BindingContext.cs: Changed argument names to fix corcompare errors.
1583 * DataGridView.cs: Removed extra explicit interface implementation
1584 of IDropTarget. Code formatting.
1585 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
1586 * ComboBox.cs: Changed argument names to fix corcompare errors.
1587 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
1589 * GridColumnStylesCollection.cs: Changed argument names to fix
1590 corcompare errors. Removed extra tabs.
1591 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
1593 * Control.cs: Changed argument names to fix corcompare errors. Code
1594 formatting. Removed extra explicit IList implementation.
1595 * TextBox.cs: Changed argument names to fix corcompare errors. Code
1596 formatting. Use string.Empty instead of "".
1597 * GridItemCollection.cs: Changed argument names to fix corcompare
1598 errors. Code formatting.
1599 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
1600 corcompare errors. Code formatting.
1601 * ImageList.cs: Changed argument names to fix corcompare errors.
1602 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
1603 * DataGridViewRowCollection.cs: Changed argument names to fix
1604 corcompare errors. Code formatting.
1605 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
1606 * DataGridViewSelectedCellCollection.cs: Changed argument names to
1607 fix corcompare errors. Code formatting.
1608 * DataGridViewComboBoxCell.cs: Changed argument names to fix
1609 corcompare errors. Code formatting.
1610 * LinkLabel.cs: Changed argument names to fix corcompare errors.
1611 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
1613 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
1615 * BindingSource.cs: Changed argument names to fix corcompare errors.
1616 Removed extra explicit interface implementations.
1617 * DataGridViewSelectedRowCollection.cs: Changed argument names to
1618 fix corcompare errors. Code formatting.
1619 * ToolStripItemCollection.cs: Removed extra explicit interface
1620 implementation of IList.ReadOnly.
1621 * DataGridViewColumnCollection.cs: Changed argument names to fix
1622 corcompare errors. Code formatting.
1623 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
1624 * ListView.cs: Changed argument names to fix corcompare errors.
1625 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
1627 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
1629 * ListBindingHelper.cs: Changed argument names to fix corcompare
1631 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
1632 fix corcompare errors. Code formatting.
1633 * ToolStripPanel.cs: Removed extra explicit implementation of
1634 IDropTarget interface.
1635 * ListBox.cs: Changed argument names to fix corcompare errors. Code
1636 formatting. Removed extra tabs and spaces.
1637 * DataGridViewCellCollection.cs: Changed argument names to fix
1639 * Help.cs: Changed argument names to fix corcompare errors. Code
1641 * TabControl.cs: Changed argument names to fix corcompare errors.
1642 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
1644 * TableLayoutSettings.cs: Changed argument names to fix corcompare
1647 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649 * ListBindingHelper.cs: When returning properties, only return those
1650 that are browsable. Also, don't do a linear search of the properties,
1651 but use the indexer of the PropertyDescriptorCollection class.
1653 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1655 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
1656 Dictionary containing the related (child) currency managers. Also,
1657 when setting DataSource, add datasource to our List if it is not a list.
1659 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1661 * PropertyGridTextBox.cs: Fix background color of the buttons.
1662 * PropertyGridView.cs: Make the entry less jumpy.
1664 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1666 * PropertyGrid.cs: Fix unused variable warnings.
1668 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1670 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
1671 double-click. It expanded it once in the mouse down and then
1672 again in the double-click handler.
1674 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1676 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
1677 TypeConverter and UITypeEditors.
1679 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1681 * Control.cs: Visibility should be set synchronously,
1682 so we must also redraw once it is and not rely on layouting or
1683 other code to repaint.
1686 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
1688 * DataGridViewCell.cs: Respect DataGridView.GridColor.
1690 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1692 * Control.cs: Invalidate when the alpha channel is less than 255,
1693 not only when control is transparent.
1695 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1697 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
1698 Implement some painting convenience methods that threw NIEX.
1700 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1702 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
1703 * DataGridViewLinkCell.cs: Implement.
1705 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1707 * GridEntry.cs: Report the conversion exception error description.
1710 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1712 * PropertyGridView.cs: Do not scroll to item on resize.
1715 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1717 * BindingContext.cs: When retrieving a BindingManagerBase, if the
1718 dataSource parameter is ICurrencyManagerProvider, then return
1719 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
1720 instead of creating a new one.
1722 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1724 * BindingSource.cs: Implement support for Type instances as
1727 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1729 * DataGridView.cs: Minor cleanups and call CellMouseUp.
1730 * DataGridViewCell.cs: Make some painting routines internally virtual.
1731 * DataGridViewButtonCell.cs: Implement.
1733 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1735 * Control.cs: We always need to invalidate our children with
1736 transparent backgrounds when we are invalidated.
1739 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1741 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
1742 and CancelCurrentEdit on CurrencyManager respectively. Implement
1743 support for ICancelAddNew too.
1745 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1747 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
1748 call EndNew/CancelNew if list is ICancelAddNew.
1750 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1752 * DataGridView.cs: Guard against an exception while painting
1753 if there are no rows.
1755 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1757 * DataGridView.cs: Implement a bunch of keyboard commands.
1759 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
1761 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
1762 isn't set, don't call OnPaint. [Fixes bug #375300]
1764 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1766 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
1767 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
1768 hookup the remaining events related to CurrencyManager, and fire
1769 OnListChanged also for the Clear () method.
1771 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773 * BindingSource.cs: Use Current and Position implementations in
1774 CurrencyManager instead of using our own routines, since we need
1775 to be in synch with it. Count should NEVER return a -1 value, and
1776 also report ListChanged events for both simple IList data
1777 sources (manually) as well for IBindingList ones (by hooking up an
1778 event handler for it).
1780 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1782 * BindingSource.cs: Make one .ctor call the another, to avoid
1783 duplicate code. Add the CurrencyManager property, and also for AddNew
1784 throw the proper exceptions and show better error messages.
1786 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1788 * ComboBox.cs: Only adjust selectedindex if Handle has been
1789 created. Fixes failing test.
1791 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1793 * ComboBox.cs: Adjust selectedindex if we insert a new item
1794 above the current selectedindex in a sorted ComboBox.
1797 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1799 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
1802 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1804 * DataGridViewTextBoxCell.cs: Implement stuffs.
1806 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1808 * TreeView.cs: Create the scrollbars even earlier to be
1809 double dog certain they are created before they are accessed.
1811 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1813 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
1815 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1817 * ScrollBar.cs: Create an internal safe Value setter so we
1818 won't crash if we try to set a value outside the min and max.
1819 * TextBoxBase.cs: Use safe value setter to guard against a
1820 potential NRE that is being reported by Reflector.
1822 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1824 * TreeView.cs: Create the scrollbars earlier in the constructor
1825 to attempt to guard against an NRE in SetTop in Reflector.
1827 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1829 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
1830 DataGridViewRowCollection.cs: Do not scroll column and row headers,
1831 show messagebox on data format error, use column display index
1832 correctly, make sure HitTest supports new layout stuff,
1833 make sure scrollbars support new layout stuff.
1835 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1837 * XplatUIX11.cs : Patch by Doug Rintoul.
1838 For some IM engines, keypress events need to delay call
1839 to XPending() and XNextEvent() in the loop so that it
1840 does not mess the orders in XIM commit callback.
1841 Some KeyRelease events such as shift keys need to be
1842 processed both in the IM engine and winforms driver
1843 itself since winforms holds its own state check.
1845 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
1847 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1849 * X11Keyboard.cs, XplatUIX11.cs :
1850 add primitive support for XIM input support (preedit-
1851 nothing and status-nothing). It requires precise event
1852 capturing (XSelectInput/"filterEvents") and different
1853 call to XFilterEvent against root window.
1854 Get composed string and send dummy WM_IME_COMPOSITION.
1855 Free XIM and XIC instances in finalizer.
1857 (This first patch does not include suggested changes
1858 by Doug Rintoul. It will follow.)
1860 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1862 * DataGridView.cs: When binding to a property, if the property
1863 doesn't have a setter, set the column to readonly.
1866 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1868 * ComboBox.cs: Guard against NRE if an arrow key is hit while
1869 we aren't dropped down. Support Home/End in DropDownList mode.
1872 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1874 * TreeNodeCollection.cs: Don't increment count until we've
1875 saved our index to return.
1878 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1880 * Label.cs: Add padding to the label's AutoSize calculation.
1883 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1885 * ListBindingHelper.cs: Actually implement GetListName method.
1887 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1889 * BindingSource.cs: Throw the propert expceptions for some methods, as
1890 well as detect the list item type for Add method if DataSource is null.
1892 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1894 * DataGridViewCell.cs: I don't know why I commented this out,
1895 putting it back for now.
1897 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1899 * DataGridViewCell.cs: Remove storage for owning column, just
1901 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1902 * DataGridViewColumnHeaderCell.cs: If the header text has been
1903 explicitly set, return it.
1906 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1908 * DataGridViewRowCollection.cs: Disable row sharing when
1909 using data binding. Its a great feature, but lets work on
1910 getting DGV usable first before we worry about optimizations.
1912 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1914 * BindingSource.cs: When resetting our internal list, compute list
1915 item type information to be used for indirect list access. Also
1916 implement/tune some properties and methods related to the list access
1918 * ListBindingHelper.cs: Add a stub for GetListName method, used from
1921 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1923 * DataGridView.cs: If RowCount is increased while ColumnCount
1924 is zero, add a column. [Fixes bug #331649]
1926 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1928 * DataGridViewRowCollection.cs: When adding new rows for
1929 databinding, make sure they are place before the add row.
1932 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1934 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1935 instead of Index order.
1937 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1939 * DataGridView.cs: If columns are added by increasing ColumnCount,
1940 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1943 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1945 * DataGridView.cs: Turn off and on the "new row" when
1946 AllowUserToAddRows is toggled. When the handle is created,
1947 set current cell and selected cell/row/col.
1949 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1951 * ComboBox.cs: When navigating the drop down by keyboard, we
1952 need to scroll the list box if our selection moves out of the
1953 currently shown items. [Fixes bug #371990]
1955 2008-03-24 Luke Page <luke.a.page@gmail.com>
1957 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1958 on the control. Also now handles unicode compatibility characters and
1959 stores the unicode compatibility length on the stack. Fixes Bugs
1960 #355198 and #366436.
1962 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1964 * BindingSource..cs: Take into account DataMember when re-creating the
1965 List property, and also create a specific kind of list as needed.
1967 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1969 * ListBindingHelper.cs: Add a new case for GetList () method - when we
1970 get an empty IEnumerable, try to detect whether the datamember is
1971 valid or not for that type, if true, return null, and throw exception
1974 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
1976 * ComboBox.cs: Alt-Down should drop down the list, Esc should
1977 retract it. [Fixes bug #371989]
1979 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1981 * PropertyGrid.cs: Initialize the sorting button as pushed.
1983 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1986 - Visually select the PropertyTab.
1987 - Filter Properties by Attributes properly.
1989 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1991 * MenuItem.cs: Remove menu item from parent when disposed.
1994 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1996 * ToolBar.cs: Don't reset layout_type if Dock = None.
1998 2008-03-21 Andreia Gaita <avidigal@novell.com>
2000 * UserControl.cs: Select the first available control when we get focus.
2003 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2005 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2006 the content if we are in edit mode. [Fixes bug #343964]
2008 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2010 * DataGridViewCell.cs: Fix border painting for column headers.
2012 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2014 * BindingSource.cs: When setting or resetting data source,
2015 use ListBindingHelper.GetList () method, since it will get the list in
2016 case datasource is IListSource.
2018 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2020 * DataGridViewCell.cs: Implement lots more stuffs.
2022 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2024 * PropertyGridView.cs, GridEntry.cs: Implement support for
2025 UITypeEditor.IsDropDownResizable.
2027 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2029 * DataGridViewCell.cs: Remove unused variables, improve how
2030 several of the property getters work.
2031 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
2032 get its size from the parent row/col.
2034 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2036 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
2037 user alters manually the PropertyTabs collection via the
2038 PropertyTabs property.
2040 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2042 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
2043 new tests for them to be sure to be compatible with .net.
2045 2008-03-20 Andreia Gaita <avidigal@novell.com>
2047 * WebBrowserBase.cs: Fix attributes, add events
2048 * WebBrowser.cs: Fix Padding signature
2050 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2052 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2054 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
2056 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
2057 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2058 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
2059 passes the new suite of tests for it.
2061 2008-03-18 Andreia Gaita <avidigal@novell.com>
2063 * WebBrowser.cs: Add missing attributes, missing Padding and
2064 DefaultSize properties, remove extraneous getters
2066 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2068 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
2071 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2073 * ComboBox.cs: Move resetting the selected index to keypress
2074 instead of textchanged. Changing the text programmatically
2075 should not trigger resetting the selected index. Fixes test.
2077 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2079 * ComboBox.cs: When the user types into the textbox, reset
2080 the selected index to -1. [Fixes bug #371672]
2082 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2084 * FileDialog.cs: Support Control-A for selecting everything
2085 in an OpenFileDialog. [Fixes bug #371564]
2087 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
2089 * DataGridView.cs: When row/column visible/height properties
2090 change, invalidate. Take the NIEX out of InvalidateRow/Column
2091 etc. We don't support them yet, but we can just invalidate
2092 everything until we do support them. (Added MonoTODO). Set
2093 proper control styles.
2094 * DataGridViewRow.cs: Don't call PaintHeader if row headers
2097 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2099 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
2101 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
2103 * DataGridViewRow.cs: Only paint the white background in
2104 cell bounds, the row bounds extends past the cells if the
2105 grid width isn't as wide as the DGV.
2107 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
2109 * DataGridView*: Completely revamp the drawing to match the
2110 public API. Our grids now look better, and call all the
2111 appropriate methods and event to allow users to override
2112 the painting and do their own.
2114 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2116 * ListBindingHelper.cs: Implement 2.0 GetList methods.
2118 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2120 * DataGridView.cs: Implement BorderStyle.
2122 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2124 * FileDialog.cs: Apply patch from Andy Hume: Any time we
2125 are comparing attributes, make sure we only look at the
2126 one we are interested. These calls were failing if there
2127 were more than one attribute.
2130 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2132 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
2134 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2136 * PageSetupDialog.cs: Stub EnableMetric.
2137 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
2138 * PrintPreviewDialog.cs: Add ProcessDialogKey,
2141 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2143 * MonthCalendar.cs: Remove unused variable.
2145 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2147 * DataGridView*.cs: corcompare stuffs.
2149 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2151 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
2152 The savings aren't worth the extra code to fix the optimization.
2155 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2157 * ToolBar.cs: Always call base.Dock in the Dock override so that
2158 Control's layout_type gets reset correctly.
2161 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
2163 * X11Dnd.cs: End DnD operation also for the middle mouse button.
2165 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2167 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
2168 at the same time we do explicit ones, because we have to give all
2169 other controls on the container a chance to handle explicit ones
2170 first. If no one has an explicit mnemonic, then we can let the
2171 MenuStrip have a shot at implicit mnemonics.
2172 * MenuStrip.cs: Create an implicit mnemonic function.
2173 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
2174 mnemonics for MenuStrips.
2177 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2179 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
2180 DataGridColumnStyle.cs: corcompare stuffs.
2182 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2184 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
2185 Details - This is needed after we added the bits to use any available
2186 column also for List and SmallIcon view.
2188 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2190 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
2191 at the proper place, not only when changing SelectedIndex and changing
2192 the selection using keys/mouse, as .net does.
2194 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2196 * ControlBindingsCollection.cs: Implement last 2.0
2197 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
2198 in the new 2.0 Add methods.
2200 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2202 * ListBox.cs: When calling SelectedIndexCollection.Clear,
2203 return if no items are previously selected - this is done to avoid
2204 firing OnSelectedIndexChanged without need to do so. Also,
2205 when creating handle ensure that the focused item is visible (as
2208 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210 * ListBox.cs: Rewrote/refactored most of selection code. We require
2211 the following things in selection: a) keep selection sorted (both
2212 indices and items), b) SelectedIndices automatically detect the
2213 selection mode, c) SelectedIndex should be the first selected item
2214 index, d) Need to Focus/adjust scroll bar when selecting a new item,
2215 not only for SelectedIndex, which is specially important in Multi*
2216 selection modes. To achieve this we are moving the selection core to
2217 SelectedIndexCollection and make depend all selection modifications on
2221 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2223 * ToolStrip.cs: Enable implicit mnemonics for drop down
2224 menu strips. [Fixes part of bug #367692]
2226 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2228 corcompare - fix parameter names [stragglers].
2229 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
2230 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
2233 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2235 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
2236 was a mnemonic pressed as well as Alt. Also, if nothing handles a
2237 mnemonic, let the ToolStripManager have it even if it doesn't
2238 have a matching mnemonic.
2241 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2243 corcompare - fix warning about implicit implementation
2244 * ToolStrip.cs: Add IToolStripData interface.
2245 * IToolStripData.cs: Add.
2247 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2249 corcompare - fix warning about implicit implementation
2250 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
2253 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2255 corcompare - fix parameter names [N-Z].
2256 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
2257 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
2258 PropertyManager.cs, RichTextBox.cs,
2259 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
2260 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
2261 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
2262 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
2263 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
2264 ToolStripContentPanel.cs, ToolStripDropDown.cs,
2265 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2266 ToolStripPanel.cs, ToolStripSeparator.cs,
2267 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
2268 UICuesEventHandler.cs, UpDownBase.cs.
2270 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2272 corcompare - fix parameter names [G-M].
2273 GridColumnStylesCollection.cs, GridItemCollection.cs,
2274 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
2275 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
2276 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
2277 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
2278 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
2280 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2282 corcompare - fix parameter names [A-F].
2283 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
2284 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
2285 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
2286 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
2287 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
2288 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
2289 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
2291 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
2293 * GridEntry.cs: Do not convert not only if the types match,
2294 but also if the property type is assigneable from the value's
2298 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
2300 * PropertyGridView.cs:
2301 - Subscribe to the listbox only once and not everytime.
2302 - Update the textbox even if SetValue fails.
2303 - Close the listbox before calling TrySetValue just in case.
2306 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
2308 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
2310 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2312 * ListView.cs: Implement support for custom column width based on
2313 Columns collection (we were previously using this collection only
2317 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2319 * ListViewItem.cs: For Tile view, always set bounds for the first
2320 subitem (which is the main one), and also don't let Width be larger
2321 than ListView.TileSize.Width. Improve code readibility also.
2322 * ThemeWin32Classic.cs: When painting the ListViewItem instances
2323 in Tile view, _always_ use the NoWrap flag.
2326 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
2328 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
2330 * GridEntry.cs: For MS compitability make all child properties
2331 readonly if the parent is readonly. Ugh.
2332 [Fixes bug #365945 and #365944]
2334 2008-02-29 Andreia Gaita <avidigal@novell.com>
2336 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
2337 relative to the history
2339 2008-02-29 Andreia Gaita <avidigal@novell.com>
2341 * HtmlElement.cs: More handlers for mouse and key events
2343 2008-02-28 Andreia Gaita <avidigal@novell.com>
2345 * WebBrowserBase.cs: MouseClick sig changed.
2346 * HtmlHistory.cs: Implement history navigation
2347 * HtmlElement.cs: Add event handlers, and connect them.
2349 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
2352 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
2353 so that DisplayNameAttribute doesn't get ignored.
2354 - Check for ParenthesizeNameAttribute and parenthesize the Label.
2355 - Add support for PasswordPropertyTextAttribute
2356 * PropertyGridView.cs: Check if an entry is a password.
2357 [Fixes bugs #365589, #365586, #365588]
2359 2008-02-28 Andreia Gaita <avidigal@novell.com>
2361 * PropertyGridView.cs: Revert the message filtering change, as we
2362 need it to block after all. Remove block parameter, unnecessary.
2364 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
2366 * UserControl.cs: Better implementation of GetPreferredSize.
2367 First step to fixing bug #361441.
2369 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371 * Binding.cs: Actually implement data binding support for
2372 classes implementing IBindableComponent.
2373 * ControlBindingsCollection.cs: Likewise.
2375 2008-02-26 Andreia Gaita <avidigal@novell.com>
2377 * PropertyGridView.cs: Use a message filter to check when to
2380 2008-02-26 Andreia Gaita <avidigal@novell.com>
2382 * Application.cs: Change the message_filters loop so a filter
2383 can be removed while looping.
2385 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
2387 * GridEntry.cs: Optimization in ToggleValue so that it caches
2389 * PropertyGridView.cs: An optimization so that the property isn't
2390 re-read twice for each StandardValue added to the drop-down menu.
2391 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
2395 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
2397 * Application.cs: Apply patch from Justin Cherniak to match
2398 MS better for ProductName, ProductVersion, and CompanyName.
2401 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2403 * Binding.cs: Actually implement 2.0 NullValue property. Also
2404 when changing the formatting related properties, only update the state
2405 if formatting_enabled is true (we don't mind otherwise).
2407 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
2409 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
2412 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2414 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
2415 of GetType on the current value as it uses reflection to
2416 determine the type. This fixes the case where the new value is
2419 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2421 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
2424 2008-02-24 Luke Page <luke.a.page@gmail.com>
2426 * Line.cs, TextControl.cs: Implement offset x and y so that a
2427 document doesn't have to begin at (0,0) on the viewpoint.
2428 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
2429 bars and switches the text alignment (and therefore is now
2430 implemented for textbox). Fixes #321383.
2432 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2434 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
2435 properties. Also when changing FormattingEnabled update the control
2436 property -as .Net does-.
2438 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
2440 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
2441 * Binding.cs: Add stubs for the overloads of the Add method in
2444 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2446 * Binding.cs: PullData () returns a false value if we got an exception.
2447 Also when validating the control and we get an error, instead of
2448 setting the value of the previous one, cancel the event (tested in 1.1
2451 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
2453 * TreeView.cs: Make selected_node and highlighted_node internal.
2454 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
2455 to null when Nodes.Clear is called.
2458 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2460 * FontDialog.cs: Ensure that when the Font is set in code,
2461 all the gui pieces are updated accordingly.
2464 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2466 * TextRenderer.cs: Respect proposed size for MeasureString.
2467 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
2468 autosize, use a proposed width to force wrapping for long text.
2471 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2473 * TreeView.cs: Factor in checkboxes = false and state images in
2474 to HitTest. [Fixes bug #363360]
2476 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2478 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
2479 when drawing the selected range.
2482 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2484 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
2485 ResizeRedraw control styles.
2488 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2490 * TreeView.cs: StateImages are basically custom checkboxes, so
2491 factor their size the same as real checkboxes when determining
2495 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2497 * MessageBox.cs: Make the message box wider if the form caption
2498 is longer than the text in the form.
2501 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2503 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
2505 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2507 * TreeNode.cs: Guard against an NRE when the parent's
2508 StateImageList hasn't been set.
2511 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2513 * SplitContainer.cs: Add SupportsTransparentBackColor and
2514 OptimizedDoubleBuffering control styles.
2517 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2519 * Application.cs: For the app data paths and the registry key paths,
2520 ensure they are created before returning them to the user.
2523 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2525 * Application.cs: Guard against an NRE in CompanyName and
2528 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2530 * Application.cs: For CompanyName, ProductName, and ProductVersion,
2531 make sure we handle all three cases correctly: attribute is present,
2532 attribute is present but is an empty string, and attribute is not
2535 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2537 * PropertyGridView.cs:
2538 - Fix a NRE that caused a test failure
2539 - Another performance improvement - cache the standard values
2542 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2544 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
2547 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
2549 * PropertyGridView.cs: Fix a big performance bug.
2551 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2553 * SelectionRange.cs: Apply patch from Andy Hume to make
2554 constructor behavior more accurate. [Fixes bug #362117]
2556 2008-02-19 Andreia Gaita <avidigal@novell.com>
2558 * Control.cs: Added a new flag is_disposing to track if the
2559 window is currently in the process of being disposed of.
2560 This is used so that, when firing visibility changes triggered
2561 by unparenting controls during Dispose, the control doesn't
2564 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2566 * ComboBox.cs: Set height to preferred height when the handle
2567 is created. [Fixes bug #360862]
2569 2008-02-18 Andreia Gaita <avidigal@novell.com>
2571 * XplatUIX11.cs: Create FosterParent with border width at 0.
2572 With the previous value of 4, everytime a control got reparented
2573 from parent = null, it's location would be shifted right and
2574 down by 4, since these coordinates would be offset by the
2575 FosterParent's border width.
2577 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
2579 * Control.cs: During diposing firstly remove ourselfes from
2580 the parent and *then* destroy our handle, because removing
2581 ourselfes from the parent controls collection causes
2582 VisibilityChange, etc events, which require a handle and end
2583 up recreating the control.
2585 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
2587 * GridEntry.cs: Set expanded state before notifying that the
2588 expansion has taken place.
2589 * PropertyGridView.cs:
2590 - Set the propertygridtextbox text to the selected
2591 StandardValue before proceeding to setting it.
2592 - Scrolling bugfixes.
2594 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2597 - Fix ValueText to not return null.
2598 - Fix conversion error reporting to actually happen.
2599 * PropertyGridView.cs: Set entry only if the text has changed.
2602 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2605 - Fix handling of a null current value.
2606 - Swallow editor exceptions.
2609 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2611 * PropertyGrid.cs: Clear current items first thing before
2612 repopulating subitems.
2614 - Handle null StandardValuesCollection.
2615 - Mark as not editable if there is no PropertyDescriptor and
2616 if the Converter cannot convert from string.
2617 [Part of fix for bugs #360666 and #358332]
2619 2008-02-15 Luke Page <luke.a.page@gmail.com>
2620 * MaskedTextBox.cs: Now skips non editable characters after a
2621 character has been entered and we are progressing to the next
2622 position in the MaskedTextBox.
2624 2008-02-15 Luke Page <luke.a.page@gmail.com>
2625 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
2626 that it changes the selection rather than just repositioning the
2627 cursor. Fixes Bug #360873.
2629 2008-02-15 Luke Page <luke.a.page@gmail.com>
2630 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
2631 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
2632 correctly. See #359330
2634 2008-02-15 Andreia Gaita <avidigal@novell.com>
2636 * XplatUIX11.cs: If the handle is null when posting a message, use the
2637 current thread queue to post instead. Fixes #332409
2639 * SendKeys.cs: Slight optimization
2641 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
2643 * PropertyGrid.cs, PropertyGridView.cs:
2644 Fix multiple scrolling and sizing issues.
2647 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2649 * PropertyGridView.cs: Ensure that drop down editors are shown
2650 in the WorkingArea of the screen.
2653 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2655 * GridEntry.cs: Fail silently when UITypeEditor is missing.
2658 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2660 * Binding.cs: Implement 2.0 DataSourceNullValue property.
2662 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2664 * PropertyGridView.cs:
2665 - Clear the controls in the drop down form after it is hidden.
2666 - Fix Width sizing of the dropdown editors to match MSFT.
2668 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2670 * PropertyGridView.cs:
2671 - Fix height for drawing the grid entry
2672 text value, so that it clips multiline text properly.
2673 - Fix unfocusing to match MSFT.
2675 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2677 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
2678 Fixes a bug where on repopulation after value changed items become
2681 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2683 * Binding.cs: For the 2.0 profile, look for a
2684 'PropertyChanged' event in the target control, and add checks for
2685 DataSourceUpdateMode property to change -or not- the data source
2686 from validation/control property change.
2688 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
2690 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
2691 not compare struct with null in 2.0).
2693 2008-02-10 Luke Page <luke.a.page@gmail.com>
2695 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
2696 updates the provider and if not using a provider, uses the internal document
2697 class implementation of password char. Also when showing text, uses display string
2698 from the provider, instead of the actual text.
2700 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2702 * Binding.cs: Ooooops, forgot to take into account the data_source
2703 and binding_member_info null case (it was breaking the Binding tests).
2705 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707 * Binding.cs: Implement support for data source changes exposed by
2708 'PropertyNameChanged' events, and update the control property as
2711 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2713 * Binding.cs: Implement 2.0 WriteValue method.
2715 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2717 Commit patch from James Purcell for better AutoScale implementation:
2719 * ScaleControl should call GetScaledBounds with the control's total size rather
2720 than client size. GetScaledBounds should handle ignoring the borders in its
2721 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
2722 (for the most part they just call the base code now since that is fixed).
2723 * Added ScaleChildrenInternal to allow controls to disable scaling of children
2724 without having to override ScaleChildren (since none of .NET's controls do).
2725 This is required for most controls in Mono that have scrollbars to prevent the
2726 scrollbars from being moved/resized.
2727 * Nested ContainerControls can have a different scale mode than their parent.
2728 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
2729 designer produce different results both of which look incorrect).
2730 * Default AutoScaleMode for ContainerControl should be Inherit.
2731 * Simplified workaround for ComboBox scaling issue.
2732 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
2733 1.0 style auto scaling should scale the whole control's size instead of
2734 ignoring the borders (except for Form) and the rounding is done differently to
2735 preserve control alignment.
2736 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
2738 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
2739 * CurrentAutoScaleDimensions should round the estimated character width instead
2741 * ListBox's GetScaledBounds should always use the height it was set to instead
2742 of the height that was passed in. This prevents rounding errors from
2743 accumulating quickly with IntegralHeight.
2746 2008-02-08 Andreia Gaita <avidigal@novell.com>
2748 * Form.cs: Add a null check (darn it).
2750 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2752 * MdiClient.cs: Make sure the requesting form actually owns the
2753 control menu items before removing them. Also, use
2754 Suspend/ResumeLayout when adding or removing items so we only
2758 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2760 * Control.cs: Guard against an NRE in ShowFocusCues.
2763 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2765 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
2766 property, as well as stubbing DataSourceUpdateMode.
2768 2008-02-08 Andreia Gaita <avidigal@novell.com>
2770 * Form.cs: When closing forms, get focus back to the active control of the
2771 active form. [Fixes #341314, corner case]
2773 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2775 * MdiClient.cs: After we move the scrollbars, invalidate the NC
2776 area, so any old scrollbar artifacts are cleaned up.
2779 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2781 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
2782 for our menus, display that control box menu instead of the 1.1
2785 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2787 * MdiControlStrip.cs: Add property to access the mdi form tied to
2789 * MdiClient.cs: Be smarter about removing and adding toolstripitems
2790 to the implicitly merged menu. Every time we clicked the form, items
2791 were getting removed and the re-added, causing the form to jump around
2792 as the menu resized.
2794 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2796 * MdiClient.cs: Make sure the NormalBounds always gets set. It
2797 was being reset by the implicit menu merge for menustrips.
2800 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2802 * Form.cs: Don't do the previous change when WindowState = Normal,
2803 or it messes up where the window is placed. Fixes test failure.
2805 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2807 * Form.cs: When becoming visible, if we are an MDI child, call
2808 SetWindowState with a dummy old_state so that changes will actually
2810 [Fixes the 2nd part of bug #325473]
2812 2008-02-07 Andreia Gaita <avidigal@novell.com>
2814 * Control.cs: Reset properties to their pre parent-change values in case
2815 the new parent == null (in which case we're basically removing the control,
2816 and don't want any events fired due to fake property changes)
2819 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
2821 * PropertyGridView.cs:
2822 - Refactor SetValue to allow setting the value
2823 when a custom editor is used, but the entry is not editable.
2824 - Remove the custom editor control on CloseDropDown.
2827 2008-02-06 Andreia Gaita <avidigal@novell.com>
2829 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
2830 reflection only on 1.1, this property is public on system.drawing on 2.0.
2833 2008-02-06 Andreia Gaita <avidigal@novell.com>
2835 * WebBrowser.cs: Do a normal page refresh by default.
2837 2008-02-05 Andreia Gaita <avidigal@novell.com>
2839 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
2840 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
2841 platforms. Fixes #359036
2843 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
2844 platform-specific flags.
2846 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2848 * Binding.cs: Add 2.0 BindableComponent property - just return control
2851 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
2853 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2854 Jonathan for this patch. Fixes #358442.
2856 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
2858 * Form.cs: If we change the active MDI child form, let the others
2859 know they need to repaint their title bar so it will appear inactive.
2860 [Fixes part 1 of bug #325473]
2862 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
2864 * PropertyGridView.cs: Do not trucate custom editors' width
2865 and align them to the left.
2866 [Fixes #358353 and #358349]
2868 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2870 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2871 Also fix the arguments passed to CollectionChangeEventArgs in the
2874 2008-02-04 Geoff Norton <gnorton@novell.com>
2876 * Hwnd.cs: The conversion to Quartz coordinates happens in
2877 System.Drawing. Removing this translation from here.
2879 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2881 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2882 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2883 GridItemCollection.cs:
2884 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2886 2008-02-04 Geoff Norton <gnorton@novell.com>
2888 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
2889 SYSKEYUP if any other key has been pressed in the mean time.
2892 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2894 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2895 when the item in current position is different than 0. Also, save the
2896 item index in the beginning of the operation, instead of getting the
2897 index of the item when the event is actually performed. Lastly clean
2898 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2902 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2904 * Form.cs: Alt-Minus for MDI children system menu should work
2905 with both the minus keys on the keyboard.
2908 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2910 * Control.cs: Don't invalidate on region change. The WM should
2911 take care of this automagically. Keeps us out of an infinite
2912 paint loop if someone changes the Region in the OnPaint.
2915 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2917 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2919 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2921 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2922 down the MonthCalendar only on F4, not Alt+F4.
2923 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2926 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2928 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2929 if its part of a DateTimePicker, else, use the back color.
2932 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2934 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2937 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2939 * CurrencyManager.cs: When we get a ListChanged event from our source,
2940 always fire our own ListChanged event, as .Net does.
2942 2008-02-03 Luke Page <luke.a.page@gmail.com>
2944 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2947 2008-02-03 Luke Page <luke.a.page@gmail.com>
2949 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2950 property. Removed if for richtext property that was always true.
2951 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2953 2008-02-03 Luke Page <luke.a.page@gmail.com>
2955 * TextBoxBase.cs - commited patch from James Purcell that
2956 correctly sets the FixedHeight control style when the MultiLine
2957 property is changed on a TextBox control. Fixes bug 358229.
2959 2008-02-02 Luke Page <luke.a.page@gmail.com>
2961 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2962 Fixes bug 351938 - caret is positioned correctly when drawn
2963 and when calculating textual position of caret, no longer
2964 has a NRE in certain situations.
2966 2008-02-01 Geoff Norton <gnorton@novell.com>
2968 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2969 get that region removed from the paint event.
2970 * XplatUICarbon.cs: Remove the window mapping after disposing of
2971 window. Prevents a crash with handle reuse. Optimize exposes
2972 only onto visible windows (rare; but possible).
2974 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2976 * UpDownBase.cs: Make sure the internal textbox calls the base's
2977 OnMouseDown and OnMouseUp so the textbox will function correctly.
2978 There were notes saying it doesn't chain up, but its an internal
2979 class, so our implementation may differ.
2982 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2984 * ListBox.cs: Fix a logic error and don't process MouseDown
2985 for mouse buttons other than Left.
2987 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2989 * Control.cs: Remove HeightInternal.
2990 * ListBox.cs: Commit patch from James Purcell that correctly
2991 calculates heights for ListBoxen.
2994 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2996 * Label.cs: Apply patch from James Purcell that corrects the
2997 signature of the AutoSize property.
3000 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3002 * ListBox.cs: Don't throw [Mouse]Click events for buttons
3003 other than the left mouse button.
3005 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
3007 * Control.cs: Remove my awesome optimization as it caused some
3008 regressions with control ordering. :(
3011 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
3013 * PropertyGridView.cs: Fix a NRE on double click when there is no
3016 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3018 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
3020 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
3022 * ListBox.cs: Call MouseClick and MouseDoubleClick.
3025 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3027 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
3028 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
3029 instead of Hwnd.bmp_g.
3031 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3033 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
3034 Use the Hwnd one instead.
3036 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3038 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
3040 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3042 * Form.cs: corcompare for RestoreBounds.
3044 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3046 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
3048 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3050 * Form.cs: Handle Alt-Minus for MDI children forms.
3051 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
3052 Add mnemonics to the control menu.
3055 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3057 * Binding.cs: Initial implementation bits of FormattingEnabled
3058 property and BindingComplete event (2.0).
3059 * BindingCompleteEventArgs.cs: Internal methods for setting error text
3062 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
3064 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
3065 table.Location. [Fixes bug #354672]
3067 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
3069 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
3070 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
3072 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3074 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
3075 of doing all the re-bound work, just invalidate and call SetControlText
3076 to set the updated text of selected item to our textbox.
3079 2008-01-28 Andreia Gaita <avidigal@novell.com>
3081 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
3082 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
3083 missing properties and methods. Add Load, Unload, Error, GotFocus,
3084 LostFocus, Resize, Scroll events (only load and unload are connected)
3086 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
3088 * AccessibleObject.cs: Modified argument names to match MS.
3089 * Button.cs: Modified argument names to match MS.
3090 * BindingContext.cs: Modified argument names to match MS.
3091 * BindingMemberInfo.cs: Modified argument names to match MS.
3092 * ButtonBase.cs: Modified argument names to match MS.
3093 * ComboBox.cs: Modified argument names to match MS.
3094 * Control.cs: Modified argument names to match MS.
3095 * CheckedListBox.cs: Modified argument names to match MS.
3096 * CommonDialog.cs: Modified argument names to match MS.
3097 * DataGrid.cs: Modified argument names to match MS.
3098 * CursorConverter.cs: Modified argument names to match MS.
3099 * ControlPaint.cs: Modified argument names to match MS.
3100 * CheckBox.cs: Modified argument names to match MS.
3101 * ControlBindingsCollection.cs: Modified argument names to match MS.
3102 * BindingSource.cs: Modified argument names to match MS.
3103 * DataFormats.cs: Modified argument names to match MS.
3104 * ContainerControl.cs: Modified argument names to match MS.
3105 * CurrencyManager.cs: Modified argument names to match MS.
3106 * Application.cs: Modified argument names to match MS.
3107 * ContextMenuStrip.cs: Modified argument names to match MS.
3108 * ContextMenu.cs: Modified argument names to match MS.
3109 * BindingManagerBase.cs: Modified argument names to match MS.
3110 * WindowsFormsSection.cs: Fixed line ending.
3112 2008-01-27 Andreia Gaita <avidigal@novell.com>
3114 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
3115 detecting that the dropdown toolwindow is hidden. EndLoop outside the
3118 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
3120 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
3121 MS. Code formatting.
3123 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3125 * Binding.cs: Don't avoid the Format event if the control
3126 property type is object. Also, if the value retrieved by
3127 the data source is null _and_ the control proeprty type
3128 is object, return Convert.DBNull (match .Net).
3129 Fixes part of #324286.
3131 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3133 * ListControl.cs: Since we are getting two BinginContextChanged events
3134 for the same binding context instance (when the control is added to
3135 form, and when the form is actually shown), take it into account only the
3136 first time for a given binding context instance.
3137 Fixes part of #324286.
3139 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
3141 * PropertryGridView.cs: Ops.
3143 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
3145 * PropertyGridView.cs: Close dropdown form if the owner form is
3149 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
3151 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
3152 RootGridEntry.cs, CategoryGridEntry.cs:
3153 PropertyGrid rewrite.
3154 - Rewrite all of the control logic in PropertyGrid.
3155 - Rewrite all of the ComponentModel logic in GridEntry.
3156 - Rewrite all UI work in PropertyGridView.
3157 - Many bugfixes, etc.
3159 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
3161 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
3162 when all contained controls are autosize or dock-fill. Also take into
3163 account when the total percentage of column/row sizes is not 100%.
3166 2008-01-24 Andreia Gaita <avidigal@novell.com>
3169 - Save a reference to the IDocument in the instance and
3170 use that one instead of going to WebHost.Document; the document that the
3171 WebHost returns might not be the right one (in case of frames).
3172 - Use the hashcode returned from the IDocument interface.
3173 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
3174 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
3175 LinkColor, Url, VisitedColor, Window
3178 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
3179 set_Attribute, NextSibling, Parent, TagName, AppendChild,
3180 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
3181 SetAttribute, Equals, equality operators.
3182 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
3183 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
3185 * HtmlElementCollection.cs: Change implementation to use a generic
3186 collection. Implemented Enumerator and CopyTo
3188 * HtmlHistory.cs: Add constructor, no implementation yet.
3190 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
3191 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
3192 Equals, equality operators.
3194 * HtmlWindowCollection.cs: Implemented.
3196 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
3197 has been deprecated).
3199 * WebBrowserBase.cs: Use Completed event to track document loading
3200 (Navigated has been deprecated)
3202 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
3204 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
3205 level MenuItems do not respect tabs.
3208 2008-01-23 Geoff Norton <gnorton@novell.com>
3210 * XplatUICarbon.cs: Ensure that windows are created in their initial
3211 FormWindowState. Finished fixing Fullscreen windows on Carbon
3213 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3215 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
3216 be used as grab_control. Also save status of capture before show ContextMenu
3217 and restore it after close.
3219 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3221 * Control.cs: Internal FindRootParent method added to return high control
3224 2008-01-23 Geoff Norton <gnorton@novell.com>
3226 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
3227 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
3228 it work again. Handle HITTEST events.
3230 2008-01-23 Geoff Norton <gnorton@novell.com>
3232 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
3233 a crash in certain cases. Support for fullscreen windows in certain cases.
3235 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
3237 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
3240 2008-01-23 Geoff Norton <gnorton@novell.com>
3242 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
3244 2008-01-23 Geoff Norton <gnorton@novell.com>
3246 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
3248 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3250 * SplitContainer.cs: Remove unused declarations.
3251 * Binding.cs: Remove unused declarations.
3253 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3255 * Form.cs: Remove unused declaration of 'active' in Activate method.
3256 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
3257 prevent compilation warnings.
3258 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
3259 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
3260 * Bindings.cs: Remove unused formatting_enabled declaration.
3261 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
3263 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
3265 * PropertyGridView.cs: Remove usused 'ex' declaration.
3266 * DataGridView.cs: Remove unused declarations.
3268 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3270 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
3272 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
3273 to Control class, it makes possible to grab menu to controls that can't
3274 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
3275 WmMouseMove removed since it was used only to track menu events.
3278 - Moved all active_tracker stuff from Form.
3279 - ProcessActiveTracker added to prevent code duplicity, now mouse events
3280 can call this method instead of reimplement all necessary code handle for
3282 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
3286 - Remove special handle to ToolStripOverflow, now we can grab menu to
3287 controls that can't reach Form using parent tree.
3288 - Change type of grab_control from Form to Control.
3290 2008-01-22 Geoff Norton <gnorton@novell.com>
3292 * TextBoxBase.cs: Split up the sizing of controls and placing of
3293 controls. Fixes a bug where scrollbars in Reflector could be sized
3294 wrong and have non-working thumbers.
3296 2008-01-23 Geoff Norton <gnorton@novell.com>
3298 * XplatUI.cs: Refactor environment variables to default support to the
3299 Carbon driver on the Mac.
3301 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3303 * Label.cs: Uses new LabelPainter for drawing operations.
3304 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
3305 * Theme.cs: DrawLabel and LabelDefaultSize removed.
3307 2008-01-22 Geoff Norton <gnorton@novell.com>
3309 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
3311 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3313 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
3314 through the normal flat button code and don't draw the checkbox glyph.
3315 * Theme.cs: Button->ButtonBase signature change.
3318 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
3320 * LinkLabel.cs: Uses new class LinkLabelPainter.
3322 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
3324 * MessageBox.cs: Adjust right border space, we don't need to add
3325 "space_border*2" two times.
3327 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3329 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
3330 becomes a wrapper around Padding.
3331 [Fixes a part of bug #354676]
3333 2008-01-22 Geoff Norton <gnorton@novell.com>
3335 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
3336 acquired. Also ensure the buffer is large enough to grab the header
3337 we need on linux boxes.
3339 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3341 * Control.cs: Implement a custom enumerator so people can delete
3342 from the Controls collection while in a foreach.
3345 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3347 * PropertyGridView.cs: Fix focusing behavior:
3348 - Tab should focus the grid text box.
3349 - Clicking on the labels shouldn't focus the grid text box.
3351 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3353 * PropertyGridView.cs: IsValueTypeGridItem should return true
3356 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3358 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
3359 - Renamed GridEntry.SelectedObjects to TargetObjects to better
3360 reflect the property name role.
3361 - PropertyGrid.GetTarget is not required as the target is known
3363 - Setting values will handle value types as a special case now and
3364 populate them up in the chain.
3367 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
3369 * Hwnd.cs: Create a public property for the Graphics we keep around.
3371 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
3373 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
3374 when the current object selection changes.
3375 Fixes failing test SelectedObject_Null2.B5.
3377 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
3379 * PropertyGrid.cs: Process Browsable properties with
3380 DesignerSerializationVisibilityAttribute.Content as being expandable.
3381 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
3382 will not be expandable. We should be nested components-friendly now.
3384 2008-01-21 Andreia Gaita <avidigal@novell.com>
3386 * WebBrowserBase.cs: Check if control was loaded properly,
3387 don't bind if it wasn't.
3389 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
3390 GetElementFromPoint, equality operators, OpenNew, Write.
3391 Remove extra set_Body
3393 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3395 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
3396 that makes our AutoScale* stuff more tolerant to different orders
3397 of being set. [Fixes bug #354669]
3399 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3401 * PropertyGridView.cs, PropertyGridTextBox.cs:
3402 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
3403 [Fixes #339005 and #348209]
3405 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3407 * PropertyGridView.cs: Hide the grid text box before adjusting it
3408 for the newly selected GridItem.
3411 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3413 * Form.cs: Give MDI children the opportunity to cancel the parent form
3414 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
3415 properly for both the parent and child.
3416 * Application.cs: Signature of internal method changed, pass the previous
3420 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3422 * PropertyGridView.cs: Set the property value only if it has changed.
3425 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3427 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
3428 If the mouse hasn't actually moved, ignore these messages so the currently
3429 highlighted menuitem isn't reset to the one under the mouse.
3432 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3434 * PropertyGridView.cs: When the property changes Invalidate the GridItem
3435 in order for the properties with UITypeEditor.GetPaintValueSupported == true
3436 to reflect the change visually.
3439 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3441 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
3442 to 2.0 button drawing.
3443 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
3444 the button text is tall enough for one line. LineLimit says it will
3445 always draw at least one line, but it is a lie.
3448 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
3450 * XplatUIStructs.cs, X11Keyboard.cs :
3451 added some more VK_* keys to be handled.
3453 2008-01-16 Andreia Gaita <avidigal@novell.com>
3455 * Control.cs: Check if there is a container before setting or getting
3456 the validation flag.
3458 2008-01-16 Andreia Gaita <avidigal@novell.com>
3460 * ContainerControl.cs: Add flag to track if a control cancels validation,
3461 so we don't fire click events.
3464 - (HandleClick) Check if validation was cancelled before firing the click
3465 events (doubleclicks are fired, but not clicks)
3466 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
3467 ContainerControl.set_ActiveControl, but in the case of non-selectable
3468 controls, like a Label, activecontrol is not set.
3470 * ButtonBase.cs: Only fire clicks if validation passes.
3474 2008-01-16 Geoff Norton <gnorton@novell.com>
3476 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
3479 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
3481 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
3482 SelectedPath, just display the default dialog instead of crashing.
3485 2008-01-16 Geoff Norton <gnorton@novell.com>
3487 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
3488 AddExpose instead of trusting apples compositing manager which doesn't
3489 work for our use case. Remove some dead code causing warnings and
3490 redecorate some other code to prevent warnings.
3492 2008-01-16 Geoff Norton <gnorton@novell.com>
3494 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
3495 carbon signals us to redraw. Fixes another portion of the flickering bug
3497 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3499 * Form.cs: Prevent the MdiParent property to be set when value is the same
3500 as value already set. Fixes bug #328019.
3502 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3504 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
3505 it prevents NRE when closing mdi child windows. Fixes bug #325211.
3507 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3509 * InternalWindowManager.cs: Invalidade close button after mouse up when
3510 mdi form is prevented to close.
3512 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3514 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
3515 thanks to Andy Hume. Fixes bug #325433.
3517 2008-01-16 Andreia Gaita <avidigal@novell.com>
3519 * LinkLabel.cs: Reset focused_index when resellecting the control.
3522 2008-01-15 Geoff Norton <gnorton@novell.com>
3524 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
3527 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3529 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
3532 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3534 * ContainerControl.cs: Setting AutoScaleMode to anything should set
3535 Form.AutoScale to false.
3536 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
3537 AutoScaleBaseSize should be changed on Font change unless it has been
3541 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3543 * MenuAPI.cs: On instance of MenuTracker check if source control is
3544 ToolStripOverflow and use properly method to find form.
3547 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3549 [Fixes bug #323241 Transparent toolbar support]
3551 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
3554 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
3555 defined in control style to mimic win32 behavior.
3557 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
3558 it will be transparent.
3560 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3562 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
3563 CreateParams for ToolBar controls.
3565 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3567 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
3568 FixedToolWindow, SizeableToolWindow, or None for border styles have
3569 different minimum sizes than regular forms. Implemented to fix
3570 regression in PDN with toolbox being too wide.
3572 2008-01-14 Andreia Gaita <avidigal@novell.com>
3574 * HtmlElementCollection.cs: Implemented
3576 * HtmlElement.cs: Implemented:
3584 * HtmlDocument.cs: Implemented GetElementsByTagName.
3586 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3588 * Screen.cs: Stub BitsPerPixel to always return 32.
3590 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3592 * Form.cs: Implement RestoreBounds.
3594 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3596 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
3597 Sebastien and his fabulous magical problem-finding machine:
3598 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
3599 respect the value set.
3601 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3603 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
3604 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
3606 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3608 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
3609 messages (to match .Net), we need to remove the capture ourselves.
3611 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
3613 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
3614 will process the message and close our window.
3617 2008-01-10 Geoff Norton <gnorton@novell.com>
3619 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
3620 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
3623 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3625 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
3628 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3630 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
3631 Linux doesn't care, having a minimum matches MS and keeps the window
3632 from becoming too small to use window decorations.
3635 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3637 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
3638 ShowFocusCues. Make focus rectangles fit the text instead of the whole
3639 control. [Fixes bug #325419]
3641 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3643 * ComboBox.cs: Guard against an NRE if the user open a new form from a
3644 SelectedIndexChanged event. This closes the combobox dropdown, and we
3645 were trying to dispose it. [Fixes bug #352830]
3647 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3649 * Control.cs, Form.cs: Implement the necessary semantics for
3650 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
3651 to determine if a focus rectangle should be drawn.
3652 * PropertyGrid.cs: Fix property visibility to match override.
3653 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
3655 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3657 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
3660 2008-01-09 Geoff Norton <gnorton@novell.com>
3662 * XplatUICarbon.cs: Scroll windows in the correct direction.
3664 2008-01-09 Geoff Norton <gnorton@novell.com>
3666 * XplatUICarbon.cs: Track all created utility windows so we can hide them
3667 when the app is deactivated or spaces is enabled.
3669 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3671 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
3672 extra separation pixel for the label rect origin if SmallImageList is
3673 null, and thus we don't need that separation between icon and label
3675 Patch by Ernesto Carrea.
3678 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
3680 * StatusStrip.cs: Invalidate after completing a layout. The base
3681 OnLayout does this, but we don't call the base.
3682 * ToolStripItem.cs: Revert the previous change to invalidate after
3684 [Fixes bug #351341 better.]
3686 2008-01-07 Geoff Norton <gnorton@novell.com>
3688 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
3689 not a notification to exit the application. Listen for WM_QUIT
3692 2008-01-07 Andreia Gaita <avidigal@novell.com>
3694 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
3696 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
3698 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
3699 so it can repaint at the correct location.
3702 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704 * ListControl.cs: SelectedValue should return a null value if
3705 SelectedIndex is -1. Also, when setting it, it should throw an
3706 ArgumentNullException if the value is null, as well as taking
3707 into account the String.Empty value, instead of ignoring it (we have
3708 tests for that now).
3709 Fixes part of #324286.
3711 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
3713 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
3714 SelectionStart is updated after pressing enter. Fixes bug #351918.
3716 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3718 * TextControl.cs: Revert a piece r92316 that prevented the fix
3719 from working when there were multiple tags in the text box.
3722 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3724 * TextControl.cs: Apply patch from Luke Page that prevents an
3725 NRE when determining the beginning of a paragraph.
3728 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3730 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
3731 caret gets moved with clicking away from a selected block of
3732 text. Fixes bug #351885.
3734 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3736 * TextControl.cs: Apply patch from Luke Page that takes line
3737 alignment into account for mouse selection, so that center and
3738 right aligned text can be selected.
3741 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3743 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
3744 issues after loading an RTF file by using the correct line feeds.
3747 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3749 * TextControl.cs: When deleting multiple line selections, we need
3750 to invalidate every line beginning at the first line of the selection.
3751 Patch from Luke Page fixes bug #351791.
3753 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3755 * ListControl.cs: When getting a CurrencyManager.PositionChanged
3756 event, don't set SelectedIndex if the number of items is 1. This is
3757 because, for the first item, PositionChanged is fired _before_
3758 ItemChanged (the place where we actually populate the items), and
3759 leave us in a temporary invalid state (since items collection is
3763 2008-01-04 Geoff Norton <gnorton@novell.com>
3765 * XplatUICarbon.cs: Create native toolwindows instead of
3766 the managed drawing ones.
3768 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3770 * LineTag.cs: If the line doesn't have any characters, return
3771 0 for GetCharIndex. Fixes an AOORE exception after certain
3772 caret movements. Fixes bug #351683. Patch by Luke Page.
3774 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3776 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
3777 is hit when there is selected text, only the selected text gets
3778 deleted, not the character in front of the selection as well.
3781 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3783 * ComboBox.cs: When the values are displayed, calculate the
3784 ComboListBox scrollbar's LargeChange based on the visible area's
3785 height and the actuall ItemHeight, instead of calculating it
3786 based on MaxDropItems value, since it's not used by our _current_
3790 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3792 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
3793 Patch from Luke Page that fixes issues with font colors and styles
3794 not showing up in a readonly RichTextBox. Fixes bug #324354.
3796 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3798 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
3799 from Luke Page. This one fixes bug #349926.
3801 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3803 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
3804 an item in the IBindingList source changes with
3805 ListChangedType.ItemAdded. Ignore for now firing the event for other
3806 changes, since we want to have tests for those cases as well.
3808 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3810 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
3813 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3815 * TextBoxTextRenderer.cs: Implement a cache for measuring each
3816 character. This is effective because the typical usage of a
3817 TextBox is with a limited amount of fonts and characters, and
3818 the current implementation of TextBox measures everything one
3819 character at a time. Another second or two speedup for bug #347238.
3821 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3823 * Control.cs: Rewrite the Font getter to only query the parent's
3824 Font property once instead of twice. Since this operation is
3825 recursive, the queries were growing exponentially as the control
3826 tree got deeper. Another second or two speedup for bug #347238.
3828 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3830 * Control.cs: Avoid setting a parent (and more importantly, updating
3831 the zorder of all its children) if the parent is already correct in
3832 WmShowWindow. Decreases the startup time of the test case on bug
3833 #347238 from 35 seconds to 11 seconds.
3835 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3837 * X11Dnd.cs: When the dnd operation has started and we are
3838 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
3839 This is done to match .Net, which doesn't send those messages after
3840 dnd operation was completed/cancelled.
3843 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3845 * ToolStrip.cs: Previous change should be != null, not == null.
3848 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3850 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3851 user may have moved the mouse off the current item during the event.
3853 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3855 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3856 calling GetItemAt for every MouseMove event by also taking into
3857 account whether any mouse button is pressed (probably dragging);
3858 if so, we can call GetItemAt, and if not, try to not call it
3859 (GetItemAt can be quite expensive when used with a large number of items).
3861 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3863 * ListView.cs: Implement -finally- support for dnd, by calling
3864 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3866 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3867 simple calculation of distances for all the items in the owner
3870 2007-12-21 Geoff Norton <gnorton@novell.com>
3872 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
3873 for windows that are originally created as invisible. Fixes missing
3874 main window in paint-mono.
3876 2007-12-21 Geoff Norton <gnorton@novell.com>
3878 * XplatUICarbon.cs: Register our D&D handler. Register our custom
3879 subclass handler for com.novell.mwfview subclassing HIView. Implement
3880 Pasteboard and Dnd methods.
3882 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3884 * ListBox.cs: When we got focus, give focus to first item if there
3885 wasn't any pervious focused item. Also update navigation to depend on
3886 SelectedIndex rather than FocusedItem, just as .Net does.
3889 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891 * ListBox.cs: Both FindString and FindStringExact methods must do an
3892 case insensitive search, should allow the last valid index to be
3893 passed in the overload taking an initial index, and should also
3894 continue searching from the top back to the specified index when it
3897 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3899 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3900 redraw issue, and allows RichTextBox to draw colored text even while
3901 disabled or readonly.
3903 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3905 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3906 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3907 and doesn't grey text in a disabled RichTextBox.
3909 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3911 * RichTextBox.cs: Apply patch from Luke Page that adds better support
3912 for many RTF commands: quad alignment, separate formatting for blocks
3913 inside groups, and ParDef support. Makes the test case from bug #324589
3916 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3918 * LineTag.cs: Fix an error in the new Draw method that caused
3919 a crash when rendering the document on bug #324589.
3921 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3923 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3924 TextControl.cs: Apply patch from Luke Page that adds support
3925 for URL links in RichTextBox.
3926 [Fixes enhancement #342516]
3928 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
3930 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3931 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3933 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3935 * ListBox.cs: When a key gets pressed, try to find a string
3936 if the key is a character or a digit.
3939 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3941 * TableLayoutPanel.cs: Remove some unused variables.
3943 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3945 * DateTimePicker.cs: Commit patch from Luke Page that ensures
3946 we don't end up at an invalid date when we click the up/down
3947 spinner to change the month or year. Fixes bug #348682.
3949 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3951 * Application.cs: Calling Exit in 2.0 should chain to the
3952 Exit (CancelEventArgs) version so it can be cancelled.
3953 * Form.cs: Create a flag to allow raising the Closing
3954 events to be skipped. We raise them once in Application.Exit
3955 and don't want to raise them again when the Form is actually
3956 closed. [Fixes bug #349073]
3958 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
3960 * ToolStripDropDown.cs: Guard against an NRE when there
3961 hasn't been a mainform set in the application context.
3964 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3966 * ListBox.cs: When SetBoundsCore gets called, besides
3967 calling UpdateScrollBars, update the value of
3968 last_visible_index, since we could need to show more items
3969 than before, and we need to let the paint routines know that.
3972 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3974 * ListView.cs: Add DesignerSerializationVisibility attribute to
3975 InsertionMark property.
3976 * ListViewItem.cs: Add same attribute to Position property.
3978 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3980 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
3983 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
3985 * ThemeWin32Classic.cs: Don't draw the background on a
3986 flat button if there is a background image.
3989 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3991 * ListBox.cs: If we remove the item currently selected,
3992 remove it not only from SelectedItems, but also
3993 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
3994 the items count decreased and focused_item has bigger value than that.
3996 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
3998 * Control.cs: Perform our layout after we resize ourselves
3999 if we had to adjust our AutoSize. Missed commit for bug
4002 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4004 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4005 we can provide an implementation of AutoSize.
4008 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010 * ListBox.cs: Add the internal overload Sort (bool paint),
4011 to indicate whether we actually need a paint or we will
4012 call Refresh ourselves. This way we don't request a paint
4013 _before_ having an updated and valid layout.
4016 2007-12-12 Andreia Gaita <avidigal@novell.com>
4018 * XPlatUIX11.cs: Send paint messages when updating a systray icon
4019 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
4020 properly invalidated.
4023 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4025 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
4026 don't simply assign it to our internal group field, but instead
4027 use our Group property, which should do all the neccessary work
4028 required to support groups. Fixes an issue reported to me (mail) by a
4029 guy using this new feature.
4031 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
4033 * Control.cs: Use Scale instead of ScaleControl to ensure the
4034 whole hierarchy gets scaled.
4037 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4039 * DateTimePicker.cs: Don't set the internal MonthCalendar's
4040 Parent property. Doing this causes the control to be hosted by
4041 the Form instead of being a popup window.
4044 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4046 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
4047 at an index higher than Count, just use Add instead of Insert.
4050 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4052 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
4053 DrawPictureBox, this is handled by Control.PaintBackground.
4056 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
4058 * MenuAPI.cs: When process menu keys return true by default only if menu is
4059 active. Fixes bug #342892.
4061 2007-12-09 Andreia Gaita <avidigal@novell.com>
4063 * Control.cs: check if windows are actually mapped before
4064 trying to zorder. Fixes #342509, #346955
4066 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069 * ListViewInsertionMark.cs:
4070 * ThemeWin32Classic.cs: Implement the drawing side of the
4071 new 2.0 ListView.InsertionMark property.
4073 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
4075 * CurrencyManager.cs: Silence some debug spew.
4077 2007-12-07 Geoff Norton <gnorton@novell.com>
4079 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
4080 masks for our children as well as siblings to avoid having to query
4081 Quartz for this information.
4082 * XplatUICarbon.cs: Implement a delegate based system to pass
4083 information to System.Drawing. Implement Async methods. Remove
4084 the hack for the resize thumb and imlpement a transparent Grow Box.
4085 Rework the messaging system to proplery create window's and messages,
4088 2007-12-06 Andreia Gaita <avidigal@novell.com>
4090 * X11Keyboard.cs: Use Xutf8LookupString to support international
4091 characters under alternate codepages. Patch from #340878
4093 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4095 * ListView.cs: When doing layout computations, set position in the
4096 ListView instances (we cache the position just as .Net does).
4097 * ListViewItem.cs: New internal setter method for Position. Also set
4098 position field as also available in 1.1, since we are going to use it
4099 now in the common case.
4101 2007-12-06 Andreia Gaita <avidigal@novell.com>
4103 * Control.cs: When removing controls, get the actual container
4104 to notify about active control changes. Fixes 341314.
4106 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4108 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
4110 2007-12-05 Andreia Gaita <avidigal@novell.com>
4112 * Control.cs: When updating the zorder, ignore windows that are not
4113 mapped. Fixes #342509
4115 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4117 * ListViewItem.cs: Actually implement serialization on this class.
4119 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
4121 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
4122 LinkCollection. Spaces to tabs, and removed extra tabs.
4124 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4126 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
4127 tests to fail (hopefully).
4129 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4131 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
4132 the image margin so custom renderers can correctly place it.
4134 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4136 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
4137 so custom renderers can correctly place it.
4139 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4141 * Application.cs: Let WM_CHAR messages flow through to controls
4142 hosted in Strips. [Fixes bug #343972]
4144 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
4146 * ToolStripManager.cs: Guard against an NRE I ran into.
4148 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
4150 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
4151 a Link is manually added to the Links collection, we need to set
4152 its owner, so it can invalidate properly.
4155 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4157 * ListView.cs: When changing ListViewItem.Position (which calls
4158 ListView.ChangeItemLocation), invalidate not only the area
4159 corresponding to the main item, but also to the area occupied
4160 by the items being moved.
4162 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4164 * ListView.cs: When changing the position of a given item,
4165 don't use item bounds, but item areas (which includes the item spacing
4166 between them). Also, use first/last position if the requested
4167 position is outside bounds (as .Net does). Invalidate the previous and
4168 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
4169 in a specific position, instead of directly accessing Items collection
4170 (this is done to get the right item - remember an Item can have a
4171 different position in the grid than in the Items collection).
4173 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4175 * MessageBox.cs: Calculate text area instead of just top left, this rect
4176 area will be used in DrawString. Fixes bug #343364.
4178 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4180 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
4181 screen width. Partially fixes bug #343364.
4183 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4185 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
4186 code inside recalculate, it makes code more simple.
4188 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
4190 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
4191 between update or add icon. Fixes bug #324344.
4193 2007-11-21 Andreia Gaita <avidigal@novell.com>
4195 * XPlatUIX11.cs: Do not treat tool windows as if they have no
4196 window manager, since that stretches the drawing area to include
4197 the window decorations, and they get hidden. Reverts r84444 and fixes
4198 #335849 and #342790 (mdi and pdn3 regression)
4200 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4202 * ListView.cs: When setting focused item, try to give focus to the
4203 previous one _only_ if the previous one remains valid.
4206 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
4208 * Application.cs: Revert r89650, as it broke a common case to fix
4209 an obscure case. Fixes bug #342606.
4211 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
4213 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
4215 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
4217 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
4218 alignment. [Fixes #324228]
4220 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
4222 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
4225 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
4227 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
4228 it prevent problems when empty captions. [Fixes #342141]
4230 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
4232 * Label.cs: Use Size instead of None. Fixes bug #342077.
4234 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4236 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
4238 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
4240 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
4241 but there isn't a MdiContainer.
4244 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
4246 * TextControl.cs: Don't recalculate document if the recalc_start and
4247 recalc_end hasn't changed.
4250 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
4252 * DataGridViewTextBoxCell.cs: Removed CWL.
4254 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4256 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
4258 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
4260 * TextControl.cs: Missed some code for bug 341534 to trigger a
4261 recalculation when the font changes.
4263 2007-11-16 Andreia Gaita <avidigal@novell.com>
4265 * Control.cs: When updating the zorder, check if the child to update is
4266 the same control that is set to always be on top (i.e., scrollbars), and
4267 just put it on top directly. Fixes BadMatch error on pdn3
4269 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4271 * ListView.cs: Throw the needed exceptions for FindNearestItem.
4273 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
4275 * Control.cs: Don't perform a new layout when a label changes its text,
4276 cause label handles its own autosizing.
4279 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4281 * ListView.cs: Implement 2.0 FindNearestItem methods.
4283 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4285 * ToolStripPanel.cs: Make Join at least add the control to the panel,
4286 even if the rest of what Join does isn't supported. Add some more
4287 support for vertical toolbars.
4288 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
4289 [Fixes the application breaking parts of bug #341998]
4291 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4293 * ToolStripItem.cs: When determining if we have a check/image margin,
4294 we need to look at ShowCheckMargin as well as ShowImageMargin.
4296 2007-11-15 Geoff Norton <gnorton@novell.com>
4298 * XplatUIOSX.cs: Rename to...
4299 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
4300 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
4302 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4304 * KeysConverter.cs: The default values should be an array of Keys, not
4305 strings. Also, the array has more values for 2.0.
4308 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4310 * Application.cs: Change ExecutablePath to use
4311 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
4314 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4316 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
4317 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
4318 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
4319 be ignored. Create a new GetLineEnding that can specify which types of
4320 line endings to look for. On Insert, only create new lines for \n and \r\n.
4323 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4325 * TextBoxBase.cs: As we loop through each line changing the font, tell
4326 the document that the line needs to be recalculated. Fixes bug #341534.
4328 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
4329 [Another round of refactoring]
4330 * Line.cs: Add DeleteCharacters.
4331 * LineTag.cs: Add Delete.
4332 * TextBoxBase.cs: Update to use new methods.
4333 * TextControl.cs: Refactor the Delete* methods.
4335 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
4337 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
4338 the patch. [Fixes #324856]
4340 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4343 * ListViewItem.cs: Add an initial implementation of
4344 2.0 ListViewItem.Position getter.
4346 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4348 * ListView.cs: Add a reordered_items_indices array, to allow us
4349 to have a different sorting than that of Items (the sorting in Items
4350 could not match the actual sorting in screen). This is needed to
4351 implement a pair of 2.0 features.
4352 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
4353 actual position in the ListView grid, since it could have a position
4354 different than its Index (position in ListViewItemCollection).
4356 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
4358 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
4359 not draw partial lines.
4360 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
4361 LineLimit flag from the base is preserved.
4362 Fixes the windows part of bug #338965.
4364 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
4366 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
4367 so that it can be canceled in KeyPress.
4370 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4372 * ListView.cs: In ItemControl, reset mouse-handling related
4373 fields even if we dont' have items (we still should reset them when
4374 we had items but then called Items.Clear). Partially based in a patch
4378 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
4380 * Application.cs: In ProductVersion first try AssemblyFileVersion
4381 before falling back to assembly version. Fixes bug #339787.
4383 2007-11-08 Andreia Gaita <avidigal@novell.com>
4385 * HtmlElement.cs: Implement InnerText setter.
4386 * WebBrowserBase.cs: Implement Navigated event support.
4387 Add flag to track when the browser "document" is ready to be retrieved.
4388 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
4389 Make sure browser document is ready before retrieving it.
4390 Clean up cached objects (document) when moving to a new page through
4391 any of the navigation methods.
4392 Use the new Mono.WebBrowser.INavigation interface to control navigation.
4393 Implement OnNavigated event.
4395 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
4397 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
4398 DrawLinkLabel, this is handled by OnPaintBackground.
4399 Fixes bug #339565, part II.
4401 2007-11-07 Andreia Gaita <avidigal@novell.com>
4403 * Control.cs: Revert r88915. Selecting text on a textbox depends on
4404 getting a Select call on click, so this call needs to be here for now.
4407 2007-11-07 Geoff Norton <gnorton@novell.com>
4409 * OSXStructs.cs: Add the kEventClassApplication constants.
4410 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
4411 application is deactivated otherwise Menu overlays linger on top of
4412 other application windows.
4414 2007-11-07 Geoff Norton <gnorton@novell.com>
4416 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
4417 dont support cursors yet anyways. This allows Reflector to run.
4419 2007-11-07 Geoff Norton <gnorton@novell.com>
4421 * XplatUIOSX.cs: Implement DragSize.
4423 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4425 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
4426 ItemControl, request the focus, as .Net does. This is needed after
4427 Control does not request focus anymore when it receives a
4430 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
4432 * Label.cs: Make DrawImage internal so it can be called from Theme code.
4433 Remove the DrawImage call from OnPaint.
4434 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
4435 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
4436 but before we draw the text for DrawLabel and DrawLinkLabel.
4439 2007-11-05 Andreia Gaita <avidigal@novell.com>
4441 * Control.cs: Remove select call on click. Fixes #325809
4443 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4445 * ListViewItem.cs: Add 2.0 Position property getter.
4447 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4449 * ListView.cs: Add 2.0 BackgroundImageTiled property.
4450 Also, to make it work properly, change item's BackColor and
4451 BackgroundImageLayout as needed.
4452 * ThemeWin32Classic.cs: Don't fill any background rectangle
4453 in ListView.ItemControl when drawing items; just let the Control
4454 base implementation fill it.
4456 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4458 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
4459 as well as adding a custom 'dummy' Converter, as .net does.
4461 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4463 * PropertyGridView.cs: When clicking drop-down button,
4464 select an index in the listbox only if our standard values collection
4465 has one or more items.
4467 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4469 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
4472 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4474 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
4475 the value is not changed. This ensure a pushed button remains in that
4476 state when clicked again. When switching the value of PropertySort
4477 between Categorized and CategorizedAlphabetical, do not update the
4478 grid items and do not fire a PropertyChangedEvent. When clicking the
4479 sorting buttons, do not modify the PropertySort value when switching
4480 between Categorized and CategorizedAlphabetical but only update the
4483 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4485 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
4487 * PropertyGrid.cs: Also put Categorized button in pushed state when
4488 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
4489 for help description label.
4491 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4493 * ListView.cs: When calculating the biggest item for a given column,
4494 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
4497 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
4499 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
4500 value for PropertySort on 1.0 profile. PropertySortChanged event
4501 should only be fired on 2.0 profile. Fixed NullReferenceException
4502 in UpdateSortLayout when PropertyGrid contains no items.
4504 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
4506 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
4509 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4511 * ListViewItem.cs: Implement 2.0 IndentCount property.
4513 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4515 * X11Dnd.cs: When sending status in a dnd operation, compare current
4516 effect with the 'allowed' field instead of 'drag_data.Allowed', since
4517 the later is only created when a Winforms application is both the
4518 source and the target, but not when we are the target only.
4519 Fixes part of #324251.
4521 2007-11-01 Geoff Norton <gnorton@novell.com>
4523 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
4525 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
4526 children out of the drawing view on mac.
4527 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
4528 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
4530 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4532 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
4533 on the non-hosted-control part of it shouldn't do anything.
4534 Fixes part of bug #327498.
4536 2007-11-01 Andreia Gaita <avidigal@novell.com>
4538 * WebBrowserBase.cs: revert previous change, resize can be called anytime
4540 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4542 * Application.cs: When a toolstrip has the keyboard input loop, let messages
4543 it does not use flow through to controls that are hosted in menus.
4544 Same with mouse clicks.
4545 * Form.cs: Don't close all menus on click if the click is on a
4546 control hosted in a menu.
4547 Fixes part of bug #327498, and part of bug #325969.
4549 2007-10-31 Andreia Gaita <avidigal@novell.com>
4551 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
4553 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
4555 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
4556 Addresses an issue raised in bug #336218.
4558 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
4560 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
4561 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
4563 2007-10-30 Andreia Gaita <avidigal@novell.com>
4565 * ContainerControl.cs: Check if the active control is a
4566 child of a removed control and update active_control accordingly.
4569 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4571 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
4572 or the MaxDate. Fixed bug #337693.
4574 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4576 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
4577 after calling SetWindowLong for a form, to force an immediate NC refresh.
4578 Fixes first part of bug #325150.
4580 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4582 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
4583 simple. Fixes the last part of bug #322668.
4585 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4587 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
4588 needs to be TopMost as well, or else the MessageBox is under the form.
4589 Patch by George fixes bug #325300.
4591 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593 * X11Dnd.cs: When starting a new drag operation, reset the static
4594 'dropped' field to false (previously the implementation didn't reset
4595 it and got confused after the first drag).
4598 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4600 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
4601 items instead of re-creating them all. For this purpose we now cache
4602 both CategoryGridEntry items and the GridEntries for the main object's
4604 * GridItem.cs: Make SetParent method abstract.
4605 * GridEntry.cs: Override the SetParent method (already there, but now
4609 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4611 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
4612 depending on its depth (as .Net does). Update the needed values in
4613 MouseDown handler. Also draw the plus/minus rect after the label,
4614 so we don't draw on top of it.
4616 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
4618 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
4619 processed by forms or controls when menu is active. [Fixes #333548]
4621 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4623 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
4624 parent doesn't have focus. This was causing ToolStripTextBoxes to take
4625 focus on mouse over.
4627 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4629 * TextControl.cs: Code cleaning, simplifying.
4631 2007-10-24 Geoff Norton <gnorton@novell.com>
4633 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
4634 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
4636 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4638 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
4639 the cap is maxvalue, not actually 0. [Fixes bug #336218]
4641 2007-10-24 Andreia Gaita <avidigal@novell.com>
4643 * SendKeys.cs: apply jpobst's patch to bug #332409
4645 2007-10-23 Andreia Gaita <avidigal@novell.com>
4647 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
4648 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
4651 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4653 * PropertyGridView.cs: If a property has an UIEditor available,
4654 make the drop-down/editor button available only if the property
4657 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4659 * PropertyGridView.cs: Don't make the grid item textbox
4660 editable when a drop-down control is available, but
4661 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
4662 true. The same bur the color of the grid item value's label.
4664 2007-10-22 Geoff Norton <gnorton@novell.com>
4666 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
4667 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
4668 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
4669 driver. Padd the bottom of all real windows so the resize thumb doesn't
4670 obscure scroll/status bars.
4672 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
4674 * WindowsFormsSection.cs: Implement.
4676 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4678 * MdiClient.cs: Maximize new active mdi child when a maximized child is
4679 closed see #325434 patch.
4681 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4683 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
4686 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4688 * PropertyGridView.cs: When showing the textbox for a grid item,
4689 have two local variables to store the read-only and non-editable
4690 status of a grid item (we were previously using just one variable
4691 to do this, when actually they are slightly different).
4692 Fixes part of #325023.
4694 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4696 * PropertyGridView.cs: When showing a drop-down list, try to get the
4697 values using TypeConverter.ConvertTo (to convert to a string). Fixes
4700 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4702 * PropertyGrid.cs: When updating a property and populating sub grid
4703 items, remove the previous ones, and invalidate the specific area.
4704 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
4705 area behind a grid item.
4706 * GridItemCollection.cs: Add an internal Clear method, to allow us to
4707 clean the items if needed (specially for controls implementing
4708 ICustomTypeDescriptor and returning a variable number of properties).
4711 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
4713 * TextControl.cs: Clean up and document the Insert function.
4715 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4717 * TextControl.cs: Make sure we know our start point for updating the view
4718 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
4721 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4723 * ListView: Couple of corcompare fixes.
4725 2007-10-17 Geoff Norton <gnorton@novell.com>
4727 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
4728 the title caption of real window.
4730 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4732 * ErrorProvider.cs: Add the error provider's internal window to a
4733 containercontrol when the parent changes. [Fixes bug #329714]
4735 2007-10-17 Geoff Norton <gnorton@novell.com>
4737 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
4738 When we make a new window; restore the old active window - fixes dialogs.
4740 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4742 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
4743 when modifying a property, and if found then invalidate as
4745 Fixes part of #324865.
4747 2007-10-17 Geoff Norton <gnorton@novell.com>
4749 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
4750 highly experimental. Fixed coordinate translation. Fixed window locations.
4751 Initial support for clipping. Implemented NC areas and menus. Support for
4752 launching from command line from Will Johansson (wjohansson@atacomm.com).
4753 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
4754 wjohansson@atacomm.com)
4755 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
4756 Hwnds now track the existence of all of their children for Mac clipping.
4757 * XplatUI.cs: Re-enabled the native driver on the Mac.
4759 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4761 * Line.cs: Move the InsertString function to here.
4762 * TextControl.cs: Cleanup some duplicate code, move some InsertString
4763 functionality to Line.
4765 2007-10-17 Geoff Norton <gnorton@novell.com>
4767 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
4769 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
4771 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
4772 always setting value to true.
4773 * Form.cs: When changing AcceptButton, notify new and original button.
4775 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
4777 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
4778 a custom control that implements IButtonControl instead of an actual
4779 button. [Fixes bug #334244]
4781 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4783 * Form.cs: Change SelectActiveControl to internal, we need to call it in
4786 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
4787 active control when activate a new mdi window.
4791 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4793 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
4797 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4799 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
4800 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
4801 so we always recalculate the whole document instead of just the new part.
4804 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4806 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
4807 when the mouse was to the left of the first character in the line.
4809 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4811 * TextBox.cs, TextBoxBase.cs: When setting the document's password
4812 character, use the property instead of the variable so that the
4813 UseSystemPasswordChar property is taken into account.
4816 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4818 * FolderBrowserDialog.cs: When a node is right clicked and the "New
4819 folder" contex menu appears, actually add the new folder to it, even
4820 if the node is not currently selected. Still use SelectedNode in case
4821 there wasn't found a node under the pointer.
4824 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4826 * ListViewItem.cs: When retrieving the focused state, the index check
4827 should be done only when ListView is in virtualmode, as it is an
4828 expensive check for normal mode.
4830 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4832 * ListViewItem.cs: Make the focus state information be stored
4833 in the ListView, not in the items. This is done to match the MS
4834 behaviour for items that are not yet part of a ListView control;
4835 besides that, since just one item can be focused at the same time,
4836 we save a little space in our items.
4837 Fixes part of #331643.
4839 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4841 * ComboBox.cs: When focus is lost, deselect the text. When setting
4842 text of control, select all text. Do not hide selection when control
4843 does not have focus. Fixes bug #333663.
4845 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4847 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4848 instead of ArgumentException when SelectionLength is set to negative
4849 value. Added same check to SelectionStart. Code formatting.
4851 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4853 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4854 or SelectionStart. Code formatting.
4856 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4858 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4859 indicating that there was not a previous drag-and-drop operation going
4861 Fixes part of #325071.
4863 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4865 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4866 AllowedEffect, don't let the drop operation happen.
4869 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4871 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4873 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4875 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4878 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4880 * Line.cs: Add a method that finds the tag that contains an x-coord.
4881 * LineTag.cs: Add a method that finds the character at an x-coord using
4882 a binary search, the old way was a linear search.
4883 * TextControl.cs: Change FindCursor to use the above new methods.
4885 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4887 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4888 value different than AllowedEffect). This should be possible to
4889 indicate that dragging is not possible in some control/area.
4891 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
4893 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
4894 descent internally when font changes instead of outside code being responsible
4896 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4897 instead of accessing internal variables.
4899 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
4901 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4902 remove special treatment for ArrangeIcons since it is already arranged.
4904 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4906 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4907 the Win32 backend uses Color.
4908 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4909 Refactor to store a Color instead of a Brush for Color.
4911 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4913 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4914 away. I didn't realize I needed this when I refactored these earlier.
4916 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4918 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4919 store a Color structure and use the ResPool for back color instead of
4920 holding onto brushes.
4922 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4924 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4927 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4929 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4930 to recalculate its size. Fixes a part of bug #331052.
4932 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4934 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4935 button. Fixes a part of bug #331052.
4937 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4939 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4941 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4945 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4947 * TextBoxTextRenderer.cs: Don't make this a static class, as static
4948 doesn't exist in 1.1. (Thanks jb!)
4950 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4952 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4953 class to allow us to use different backends on different platforms.
4954 Linux uses the current [Draw|Measure]String backend. Windows uses
4955 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4956 of GDI+. This leads to better looking text and more accurate measurements
4957 on Windows, fixing many of the reported issues.
4958 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4960 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4962 * FolderBrowserDialog.cs: When running on Windows,
4963 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4964 since we must match both "C:" and "C:\" forms. A little hackish, but
4968 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4970 * ListView.cs: When calling EndEdit (after editing an item),
4971 create a new instance of LabelEditEventArgs to keep clean the fields
4972 in case we get a new call to BeginEdit; also do Application.DoEvents
4973 to have focus in synch. This is a fix similar to TreeView's #325244.
4975 2007-10-07 Andreia Gaita <avidigal@novell.com>
4977 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4978 * WebBrowserBase.cs: Added dialog support, calling the
4979 WebBrowserDialogs classes for each specific dialog type.
4981 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4983 * ListView.cs: When the last item is focused and is removed,
4984 move the focus to the previous item (in Items order). This is what MS
4988 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4990 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
4991 instead of the opposite (RemoveAt call Remove). This is a better
4992 approach since we don't need to to a pair of traversals when using
4995 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4997 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
4998 check that the node actually has nodes, and if not, move to the
4999 parent node instead.
5002 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5004 * TreeView.cs: Move the previous change to the general case (to
5005 call Application.DoEvents in cases where the method was called by
5008 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5010 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5011 call Application.DoEvents. This is neccessary when we get a call to
5012 BeginEdit from an AfterLabelEdit handler, because the focus always
5013 goes to the TreeView, even if we try to give it to our
5014 LabelEditTextBox. The call do Application.DoEvents seems to
5015 synchronize the focus, basically.
5018 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5020 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
5021 should be false. This also removes some nasty recursive paths. Fixes
5024 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
5026 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
5027 state to normal. Also resize window when cascading. Fixes #325433.
5029 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5031 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
5032 DefaultForeColor, as drawing empty colored lines isn't very useful.
5033 [Fixes the not drawn lines part of bug #324358]
5035 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5037 * TextControl.cs: Move Line and LineTag classes into separate files to
5038 make things easier to find.
5039 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
5040 * RichTextBox.cs: Capitalize LineTag.Length property access.
5041 - This is purely an organizational/formatting change, no logic changed. -
5043 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5045 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
5048 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5050 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
5053 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5055 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
5056 prevent calling of OnBackColorChanged. Fixes #325321.
5058 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5060 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
5061 because control can be disabled because owner is disabled.
5063 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
5065 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
5066 string.Empty, test failed from previous change.
5068 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
5070 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
5071 is null, not String.Empty. See bug #323038.
5073 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
5075 * TextControl.cs: Change the margins to match MS a little better.
5076 Still not perfect for X11 due to some DrawString differences, but
5077 is still an improvement over the old stuff.
5078 Partially fixes #324467.
5080 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5082 * FolderBrowserDialog.cs: When using MyComputer as
5083 RootFolder, let absolute paths be considered as valid ones. Also, use
5084 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
5085 for Windows compatibility.
5086 Partially fixes #325247.
5088 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5090 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
5091 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
5092 method, since it causes the dialog to not select folders directly
5093 under the root path (when setting SelectedPath property).
5095 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5097 * TreeNode.cs: When calling Expand/Collapse and need to call
5098 ExpandBelow/CollapseBelow respectively, take into account
5099 partially visible nodes (previously Expanding/Collapsing
5100 a partially visible node in the bottom was not updating its +- sign).
5102 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5104 * TreeView.cs: When calling Expand on a TreeNode, and we need to
5105 expand nodes below (ExpandBelow), scroll the entire Viewport
5106 area if the node is above it and not visible (instead of scrolling
5107 the area from node's Bottom, which applies only when the node is
5111 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5113 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
5114 node in the bottom area (as .Net does). This is done to preserve the
5115 scroll position when ExpandAll is called before handle is created for
5116 the 1.1 profile (bottom area, as opposed to top area in 2.0).
5119 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5121 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
5122 bottom area if we are in fact not using the vertical scroll bar.
5125 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
5127 * Control.cs: Comment out a double buffering optimization that doesn't
5128 take into account invalidates created in OnPaint, causing the control
5129 to never be redrawn. It would take quite a bit of work to work around
5130 this, but I left it commented with an explanation for later possible
5134 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
5136 * Control.cs: Ask parent to perform a layout if control is AutoSize and
5138 * RadioButton.cs: Implement GetPreferredSizeCore.
5141 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
5143 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
5146 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
5148 * Application.cs: Move the sync context stuff to Run instead of RunLoop
5149 so that it doesn't get uninstalled on modal forms.
5150 * Control.cs: Install a sync context when a control is created.
5151 * WindowsFormsSyncronizationContext.cs: Create a private static control
5152 to invoke on. This is easier than trying to find a created control we
5156 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
5158 * Application.cs: Install a WindowsFormsSynchronizationContext in the
5159 run loop, and uninstall it when done.
5160 * WindowsFormsSynchronizationContext.cs: Implement.
5161 [Fixes the common case in bug #327608]
5163 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
5165 * DataGridViewCellCollection.cs: Added argument checks for indexers.
5166 Use case-insensitive lookup of column name in indexer. Code
5169 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5171 * TreeNode.cs: When collapsing or expanding a node, check whether its
5172 change will affect the visible area (we were previously doing a
5173 IsVisible check, but that check is not enough since children nodes
5174 could be still visible). Fixes part of #325266.
5176 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
5178 * TreeView.cs: Always select the first node when the TreeView gets
5179 focus if there is no currently selected node.
5182 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
5184 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
5185 node being selected is null.
5186 [Patch from Yves Bastide fixes bug #326858]
5188 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5190 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
5191 whether all the parent nodes are expanded.
5192 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
5193 call RecalculateVisibleOrder if all previous nodes are expanded.
5194 Before that we were doing a IsVisible check, but sometimes the node
5195 is not in the visible area, but _should_already be ready, because of
5196 all previous nodes are expanded. Fixes #325259.
5198 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5200 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
5201 portion of the item is clicked.
5203 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5205 * TextControl.cs: Do not tell the system to move the cursor if the
5206 textbox isn't focused. Fixes part of bug #322668.
5208 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5210 * ComboBox.cs: When there are no items, do not show the dropdown if
5211 the down arrow is clicked. Fixes part of bug #322668.
5213 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5215 * ToolStripComboBox.cs: Manually set the size of this control in the
5216 constructor, as it doesn't seem to be the same as DefaultSize.
5217 Fixes a failing monobuild test.
5219 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
5221 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
5222 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
5224 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
5226 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
5227 Desktop. This lets it work for people who have moved their desktops
5228 from the default location on windows. For people who have not, both
5229 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
5231 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5233 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
5234 but when the base constructor sets this, the control is null. Set it
5235 again in the constructor. Fixes a failing monobuild test.
5237 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5239 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
5241 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
5244 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5246 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
5247 will handle it themselves.
5248 * ToolStripItem.cs: When deciding what the text of a tooltip should
5249 be, use the Text property instead of the text field.
5250 * ToolStripTextBox.cs: Handle tooltips.
5251 [Fixes bugs #325417 and #325973]
5253 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5255 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
5256 left click. Fixes the easy part of bug #325969.
5258 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5260 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
5261 bug #325406, but set a minimum for StatusStrip to 22 to keep
5262 bug #325390 fixed. I think this minimum would have been figured
5263 up automatically if the grip was actually a ToolStripItem, but it
5266 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5268 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
5269 as this is apparently the actual value used by .Net. Also apply
5270 ItemPadding in Details view only, and decrease the general width padding,
5271 to have only the needed. This should fix #324340 in Windows too.
5273 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5275 * ListViewItem.cs: Don't Invalidate item if parent is inside
5276 a BeginUpdate/EndUpdate block. This prevents to have differences
5277 between the ListView and items state, as well as avoid some exceptions
5279 * ListView.cs: Make 'updating' field internal.
5281 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5283 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
5284 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
5285 size if appropriate.
5286 Fixes reopened bug #325414.
5288 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5290 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
5291 * ToolStripItem.cs: Invalidate before and after our new autosize when
5293 Fixes reopened bug #325390.
5295 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5297 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
5298 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
5301 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5303 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
5305 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5307 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
5308 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
5311 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
5313 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
5314 item to select when the ToolStrip is selected.
5315 * ToolStripControlHost: Realign the control when the bounds or visibility
5317 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
5318 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
5320 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
5321 base.OnPaint. Was causing text not to be drawn.
5323 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
5325 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
5327 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5329 * TreeView.cs: When creating the label edit text box,
5330 set is initially to Visible = false. This is done to
5331 prevent a confusion in the layout which makes it to lose
5332 focus when shown the first time. Fixes part of #82592.
5334 2007-09-13 Andreia Gaita <avidigal@novell.com>
5336 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
5338 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5340 * ToolStrip.cs: Take Margin into account when calculating preferred
5341 size. Also, allow preferred size to get smaller than the explicit
5343 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
5344 First step towards fixing bug #82747.
5346 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5348 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
5349 full row select background over the plus/minus glyph. Also, turn
5350 off the focus rectangle for full row select since MS doesn't seem
5351 to ever paint it. [Fixes bug #81839]
5353 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5355 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
5356 This was causing keyboard opened dropdowns to lose focus.
5359 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5361 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
5362 ClientRectangle instead. [Fixes bug #82838]
5364 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5366 * SplitContainer.cs: We can't reset Visible on every layout because
5367 someone may have set Visible = false explicitly on a SplitterPanel.
5368 Make sure when we switch orientation the SplitterDistance does not
5369 change. Fixes two failing tests.
5371 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5373 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
5374 TextRenderer, since the latter is only available in 2.0.
5376 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
5378 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
5379 * SplitContainer.cs: Implement FixedPanel layouting.
5381 2007-09-12 Andreia Gaita <avidigal@novell.com>
5383 * WebBrowserBase.cs: setup shutdown routine
5385 2007-09-12 Andreia Gaita <avidigal@novell.com>
5387 * Application.cs: Let keyboard events that are targetted
5388 to non-mwf windows hosted inside mwf (as in, webbrowser),
5389 propagate properly. Fixes keyboard handling on the webbrowser.
5391 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5393 * ListView.cs: When handling MouseUp event and we are
5394 highligting a node with the mouse right button, don't trigger
5395 Before/AfterSelecting event, since we are not actually selecting
5398 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5400 * TreeView.cs: When editing a node, modify the edit text box
5401 depending on the text length (as you are typing), like MS does.
5403 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5405 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
5406 Override GetPreferredSizeCore to perform calculations. Remove custom
5407 autosize logic. [Fixes bug #82739]
5409 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5411 * TextBoxBase.cs: Modified should default to false.
5413 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5415 * Control.cs: Update the anchoring distances even when layout is supspended.
5416 Patch provided by George fixes bug #82805.
5418 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5420 * Control.cs: Provide a setter for ExplicitHeight.
5421 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
5422 remove the hacks in here for requested_height.
5425 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5427 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
5428 Maximum to lower that its current Value caused an ArgumentException by setting
5429 the Value to the new Maximum.
5431 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5433 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
5434 handle moves to the closest tick when it is being dragged.
5437 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5439 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
5440 can't let them count as real items when calculating where to merge in the
5441 user's items. [Fixed bug #82786]
5443 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5445 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
5446 who want to add a menu item directly onto a toolstrip.
5447 [Fixes bug #82775, part II]
5449 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5451 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
5452 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
5453 don't set it to available.
5454 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
5455 [Fixes bug #82727, part II]
5457 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5459 * StatusStrip.cs: Change item placement to None if not visible.
5460 * ToolStripItem.cs: Invalidate when InternalVisible changes.
5461 These should have been committed to fix 82723, but I missed them.
5463 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5465 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
5466 Click, and that it is only called once.
5467 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
5468 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
5472 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5474 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
5476 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
5477 instead of 8, just like above. Partially fixes #82734.
5479 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5481 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
5484 * ListView.cs: Remove extra space between rows in Details view (match
5486 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
5489 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
5491 * Application.cs: Modified ProductVersion to return value of
5492 AssemblyInformationVersion if available, and fallback to assembly
5493 version. Fixes bug #82746. Code formatting.
5494 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
5497 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5499 * Control.cs: When updating ZOrder for a child control,
5500 take into account the implicit ones (we need it in our controls
5501 using them). Fixes #82642.
5503 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5505 * ToolStripItem.cs: Add support for animated images.
5508 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5510 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
5511 visible. [Fixes bug #82727]
5513 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5515 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
5516 so we repaint using the new size. [Fixes bug #82723]
5518 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5520 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
5521 option. [Fixes bug #81779]
5523 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5525 * TreeView.cs: Override HandleClick because the StandardClick style is
5526 set to false. According to MSDN (and testing), the click events should
5527 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
5529 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5531 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
5532 the border will disappear. Fixes reopened #82653.
5534 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5536 * Control.cs: If the control is autosize, and its preferred size changes
5537 when it lays out its children, tell its parent so it can be re-layed out.
5538 Fixing some of the fallout from r85433.
5540 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5542 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
5543 and CheckBox share some code.
5545 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5547 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
5548 the TrackBar, not every mouse move. [Fixed bug #82718]
5550 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5552 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
5553 under 2.0 rendering. [Fixes bug #82657]
5555 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5557 * TreeView.cs: If we found a TreeNode to display a context menu, but
5558 it doesn't have one to show, let the TreeView display its menu
5559 instead. [Fixes bug #82680]
5561 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5563 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
5564 OnPaintInternal instead. Give the internal TextBox a Border property
5565 so it can draw itself more correctly. [Fixes bug #82653]
5567 2007-09-06 Zoltan Varga <vargaz@gmail.com>
5569 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
5571 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5573 * ComboBox.cs: Adjust combobox button state to reflect current state when
5574 back to enabled = true. Fixes first issue of #82654.
5576 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5578 * Control.cs: Fix last patch regression, prevent forms to update zorder when
5579 setting visible property.
5581 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5583 * Control.cs: Update zorder after control creation in SetVisibleCore, it
5584 fix zorder for controls initially created as non visible. Fixes #82667.
5586 2007-09-04 Everaldo Canuto <everaldo@simios.org>
5588 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
5589 mimic win32 look. Fixes #82656.
5591 2007-09-01 Zoltan Varga <vargaz@gmail.com>
5593 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
5594 Stubs for new net 3.5 classes.
5596 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5598 * ListViewItem.cs: In ListViewItemCollection operations calculate
5599 Layout for owner as well as invalidate it. Fixes part of #82642.
5601 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
5603 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
5604 when returning Enabled. [Fixes bug #82651]
5606 2007-08-30 Everaldo Canuto <everaldo@simios.org>
5608 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
5610 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5612 * ListView.cs: Put item padding info in a single place
5613 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
5615 * ThemeWin32Classic.cs:
5616 * Theme.cs: Likewise.
5618 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5620 * ListView.cs: When a ListViewSubItem instance is invalidated,
5621 invoke Invalidate on parent ListViewItem, not parent ListView.
5624 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5626 * ListView.cs, ListViewItem.cs: corcompare stuffs.
5628 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5630 * BindingMemberInfo.cs: Implement == and != operators.
5632 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5634 * HtmlElementEventArgs.cs: Implement properties.
5636 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5638 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
5640 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5642 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
5643 Add (string,string,string) to implement the imagekey. It turns out, we
5644 use the requested imagekey whereas .Net does not. So I broke ours to match
5647 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5649 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
5651 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5653 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
5655 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
5657 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
5658 up-to-date. Fixes bug #82618.
5660 2007-08-29 Everaldo Canuto <everaldo@simios.org>
5662 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
5663 reflect document changes. Fixes #82367.
5665 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5667 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
5668 as well as add new ones. This should make work the BackgroundImage
5669 property for ListView again.
5671 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5673 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
5674 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
5675 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
5677 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5679 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
5682 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5684 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
5685 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
5687 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5689 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
5690 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
5692 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5694 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
5696 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5698 * GridEntry.cs: Implement GetService.
5700 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
5702 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
5703 for label editting, make sure we focus back on the TreeView.
5706 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5708 * ListView.cs: Add some 2.0 overrides.
5710 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5712 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
5713 because getter dont returns right value before handle creation. Thanks
5714 to George. Fixes #82569.
5716 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5718 * Theme.cs: Revert last patch, it causes error under win32.
5720 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5722 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
5723 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
5724 logical Desktop rather than the physical file system location. Fixes #82603.
5726 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
5728 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
5729 for the patch. Fixes #82568.
5731 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5733 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
5736 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5738 * ListViewInsertionMark.cs: New stubbed class.
5740 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5742 * FolderBrowserDialog.cs: When adding folder, immediately create the
5743 directory with temporary name and rename the directory when editing
5744 finishes. This matches MS. Ensure the node for the new folder is
5745 selected and LabelEdit is disabled, when editing is either finished
5748 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5750 * TreeView.cs: When editing label of node, ensure node is visible.
5752 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
5754 * PropertyGridView.cs: Set the value only if it has changed.
5756 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * ListView.cs: Some more code refactoring to add support sorting
5759 with groups (now for Details view). Remove unused code also.
5761 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5763 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
5764 Not a big fan of reacting immediately to a field in an EventArg, but that's
5765 the way it's done. (This is part of the previous commit that got left out.)
5767 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5769 * FolderBrowserDialog.cs: Removed need for separate description field.
5770 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
5771 has focus when dialog box is displayed again, regardless of what
5772 button was pressed the previous time. Set RootFolder and SelectedPath
5773 each time dialog box is displayed. This ensures the treeview is
5774 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
5775 when it does not have focus. Added support for more special folders.
5777 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5779 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
5780 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
5781 it resets the edit_args.
5782 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
5785 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
5787 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
5788 button to match MS. Provide more meaningful exception message for
5789 invalid RootFolder value. Use zero-length string when SelectedPath
5790 is set to null. Allow non-rooted paths in SelectedPath, but ignore
5791 them in FolderBrowserTreeView. Allow folders to be created in
5792 RootFolder. Fixes bug #82576.
5794 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5796 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
5797 since we need to take into account the group headers and the margin
5799 * ListViewGroup.cs: Add a rows field to store the number of rows per
5802 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5804 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
5805 Anyways, let's just follow the lead.
5807 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5809 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
5810 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
5811 controls in GetPreferredSizeCore.
5812 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
5815 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5817 * PrintDialog.cs: Need to instantiate the form variable here too.
5819 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5821 * ListView.cs: Do some reorganization to support sorting in groups,
5822 by doing the layout sequentially in ListView.Items. Also add support
5823 for the Default Group, which should be available for items with no
5825 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
5826 for storing layout info also.
5827 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
5828 collection, as well as providing internal members to do a traversal
5829 including the default group (needed when doing layout/drawing).
5830 * ThemeWin32Classic.cs: When drawing group headers use internal
5831 ListViewGroupCollection members to take into account the default
5834 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
5836 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
5838 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5840 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
5841 been created. If handle is created, we want arror keys. If we are editing
5842 a node, we want things like enter, esc, home, end, page up, page down.
5843 Allows Esc to work for FolderBrowserDialog.
5845 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5847 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5848 they close when ESC is pressed. Thanks Andy!
5850 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5852 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5853 This way we can tell if this is a CommonDialog provided with mono, or one
5854 that is being implemented outside by a developer. If it is an external one,
5855 the developer is responsible for showing their own form. We were showing
5856 our blank form after the developer showed his.
5857 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5858 PageSetupDialog.cs: Instantiate form variable in our constructor.
5861 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5863 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5864 and always return true. [Fixes bug #81616]
5866 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5868 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5869 TextBox. [Fixes bug #82549]
5871 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
5873 * FileDialog.cs: When Save/Open is clicked and no filename is selected
5874 or entered then do not close the dialog. Fixes bug #82539. Removed
5877 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
5879 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5880 code to this method. It is calling every time filter changes. This method
5881 will help to fix the bug #80887.
5883 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5885 * CheckBox.cs: Implement AutoSize calculation.
5887 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5889 * CheckBox.cs: Use new 2.0 rendering for 2.0.
5890 * Theme.cs: Method declarations for 2.0 rendering path.
5891 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5893 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5895 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5897 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5899 * ListViewGroupCollection.cs: Implement AddRange the right way, to
5900 only call Redraw on the parent one time.
5902 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5904 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5905 GetClipboardContent.
5906 * DataGridViewCell.cs: Implemented GetClipboardContent,
5907 GetEditedFormattedValue, GetFormattedValue.
5908 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5910 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5912 * TableLayoutStyleCollection.cs: corcompare fix.
5914 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5916 * DataObject.cs: Implemented retrieval of convertible / not convertible
5919 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5921 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5922 ourselves. This ensures the entire old bounds are repainted, in case our new
5923 size is smaller. [Fixes bug #82518]
5925 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
5927 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5928 flag to make fast handle of mouse events, without this the mouse move is
5929 handled in some manner, whether it is a mouse move or not. Fixes #81588.
5931 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5933 * ListView.cs: When doing layout calculations don't use a ref
5934 param to keep the current item; instead use its Index value (this
5935 is specially important when doing the layout with Groups
5936 and Items being sparse). Also don't take into account items added to
5937 the Group but not yet added to the main ListView.Items collection.
5939 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5941 * ListViewGroupCollection.cs: Forgot to mimic an issue
5942 in the indexer (don't assign the ListView owner for new values).
5944 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5946 * ListViewGroupCollection.cs: Make the string indexer use
5947 the int based indexer to re-use code, instead of duplicate the code.
5948 Also Redraw as needed and take into account null values.
5950 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5952 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5955 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5957 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5958 when other buttons are clicked or navigated to.
5960 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5962 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5963 it's XplatUIX11 that attaches them.
5965 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5967 * DataGridView.cs: If a column has been added, recreate the editing row.
5970 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5972 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5973 of the tag to draw. Makes disappearing text show up again.
5975 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5977 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5978 Contents. Fixes #82487.
5980 2007-08-19 Andreia Gaita <avidigal@novell.com>
5982 * Added HtmlElement.cs, HtmlElementCollection.cs,
5983 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
5985 2007-08-19 Andreia Gaita <avidigal@novell.com>
5987 * BindingSource.cs: Implement this, dispose and getenumerator.
5988 * DataGridViewRowCollection.cs: Move the InvalidOperationException
5989 out of AddInternal, throw it only on public Add calls. The
5990 UsingWebBrowser sample was blowing up with this when setting the
5991 DataSource after adding DataBindings, so it's likely that .net
5992 only throws this exception when Add is called directly.
5994 * ToolStripControlHost.cs: Return the hosted control's text
5995 property, and not the ToolStripItem one (it would always return
5998 * HtmlDocument.cs: Implement GetElementById and All
5999 * WebBrowser.cs: Remove exception on set_DocumentStream.
6001 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6003 * Form.cs: Fix the max and min value for opacity (0~1).
6005 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6008 * DataGridTableStyle.cs: Default header font is now null, on getter it
6009 returns datagrid font when is null. On setter permits null.
6012 - When ResetHeaderFont set header font to null.
6013 - On EndInit set grid_style.DataGrid.
6015 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6017 * TabControl.cs: Fix regression in default padding x.
6019 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6021 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
6023 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6025 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
6026 not 2. Fixes #82229.
6028 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6030 * TabControl.cs: Fix tab size when image height is less than text height.
6031 Partially fixes #81837.
6033 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6035 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
6036 "alt + tab". It works only for Win32, for X11 theres no way to remove window
6037 from taskbar and keep it on "alt_tab". Fixes #81722.
6039 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6041 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
6042 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
6043 Fixes #80877 and #79418.
6045 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6047 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
6048 between position and one of the screen borders. Fixes #82349.
6050 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6052 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
6053 the MessageBox in the taskbar. Fixes #82457.
6055 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6057 * MessageBox.cs: Fix form size when icon is set and text height is bigger
6058 than icon. Fixes #82468.
6060 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6062 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
6063 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
6064 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
6065 Refactored HandleNCCalcSize somewhat to avoid code duplication.
6066 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
6067 FormBorderStyle to decide if we're calculating a new size from the
6068 client size or not. CreateParams: Don't fake tool windows, only the X11
6069 backend manages toolwindows manually.
6071 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6073 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
6074 ObjectDisposedException.
6076 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6078 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
6079 in OnLoad should not have any effect. [Fixes bug #82470]
6081 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6083 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
6084 paint for controls that create their own ToolTipWindow instead of
6085 going through ToolTip.
6087 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6089 * ToolTip.cs: Make Hide internal instead of public to match MS API.
6091 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6093 * ListViewGroupCollection.cs: Use generic List instead of an
6094 ArrayList, since this collection is 2.0 only.
6096 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
6098 * ToolTip.cs (Hide): Made public to make the build work (should
6099 this not be public?).
6101 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6103 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
6105 * ToolTip.cs: Add an internal Visible property to facilitate transition.
6107 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6109 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
6110 PopupEventHandler.cs: Make these internal for 1.1.
6111 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
6112 use ToolTipWindow internals.
6113 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
6114 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
6116 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6118 * X11Dnd.cs: Add a null check.
6120 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6122 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
6123 nothing else succeeds. Fixes #82453.
6125 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6127 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
6128 rectangle if we're painting to another window than the one the paint
6129 message was generated on. Simplify the code somewhat, which makes
6130 PaintEventEnd also simpler.
6132 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6134 * Control.cs: When changing parent of a form, let the form decide whether
6135 XplatUI.SetParent should be called or not.
6136 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
6137 recreating the handle. If the new parent's handle isn't created, don't
6138 recreate our handle, just destroy it. CreateParams: Check if the
6139 parent's handle is created before fetching it.
6141 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6143 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
6144 Update calls to PaintEventStart/End to take a Message argument.
6145 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
6146 take a Message argument.
6147 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
6148 Message argument, and handle the case where we don't paint to the window
6149 for which the paint message was generated.
6151 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6153 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
6154 Marshal.GetLastWin32Error. Plug nasty memory leak in
6155 PaintEventStart/End, we were creating a DC we weren't releasing.
6157 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6159 * ListView.cs: Add Groups support in Details view. Also have a small
6160 method to do the layout of the group header. Don't use a separate
6161 method to do the groups calculation in Icons view, since our methods
6162 are now a little simpler.
6163 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
6165 * ThemeWin32Classic.cs: Likewise.
6167 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
6169 * Application.cs: Add FilterMessage method and rework our message loop
6172 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
6174 * Application.cs: Add some methods and stub a few methods that are
6175 pretty much never used.
6177 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
6179 * TreeNode.cs: Add some serialization methods.
6181 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6183 * ListView.cs: In ListViewItemCollection have a
6184 'is_main_collection' field to not modify ListViewItem.ListView
6185 when using it as ListViewGroup.Items (and not ListView.Items)
6186 and also don't modify selection state (.Net behaviour).
6187 Instead, set group for items contained in a ListViewGroup.Items collection.
6188 * ListViewItem.cs: Simplify some code in Group setter.
6189 * ListViewGroup.cs: use the new .ctor to pass the current instance
6190 to the ItemsCollection.
6191 * ListViewGroup.cs: Set the ListView property for ListViewGroup
6192 instances when adding/removing. Also make Remove use RemoveAt, which
6193 should perform better.
6195 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6197 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
6198 that crept into the 1.1 profile.
6200 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6202 * ToolBarButton.cs: Implement ImageKey.
6204 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6206 * ToolBar.cs: Implement ScaleControl/ScaleCore.
6208 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6210 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
6211 created, it might have gotten destroyed since we last checked. Fixes
6214 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
6216 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
6217 tooltip will hide when mouse is moved off the control.
6220 2007-08-11 Andreia Gaita <avidigal@novell.com>
6222 * WebBrowserBase.cs, WebBrowser.cs: add implementation
6223 using Mono.Mozilla for loading and navigating webcontrol
6225 The initial implementation was done on
6226 /trunk/mozembed/tests/browser , and copied here.
6228 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
6230 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
6231 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
6233 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6235 * DataGridView.cs: Add support for an editing row. Fixes #82226.
6236 RowTemplateFull: throw an exception if a column doesn't have a template.
6237 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
6238 add the row just before it.
6239 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
6241 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
6242 DataGridView field to be able to reach the grid's editing row.
6244 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6246 * ToolTip.cs: If the control's handle hasn't been created when it has a
6247 tooltip set on it, don't check to see if we need to show the tooltip. This
6248 check was causing the control's handle to be created.
6251 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6253 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
6255 Handle Not Created -1 0
6259 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6261 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
6264 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
6266 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
6267 * ToolTip.cs: Implement some properties and owner draw.
6269 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6271 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
6272 show them again, since setting visibility causes a paint, causing an
6273 endless loop (instead use a temporary and set it all when it's known if
6274 they should be shown or not). Fixes #79265.
6276 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6278 * DataGridView.cs: Only do a full column/row selection if a header was
6279 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
6280 isn't pressed, deselect everything before selecting something.
6282 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6284 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
6285 behaviour according to bug #81075 - they are returned in the order they
6286 are selected. Fix HitTest to check if the point is within any of the
6287 headers. Allow for row/column selection when in ColumnHeader or
6288 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
6289 the row and column to call when their selected state changes, and
6290 updated selected_[rows|columns] whenever SetSelected* is called.
6291 * DataGridViewBand.cs: Initialize isRow correctly. Call
6292 SetSelected[Row|Column]CoreInternal when the selected state changes, and
6293 add a SelectedInternal to avoid StackOverflows.
6294 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
6295 ReadOnly no matter what.
6296 * DataGridViewSelectedColumnCollection.cs,
6297 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
6298 the items in reverse order (just as MS does...)
6300 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
6302 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
6303 itself, not part of a mnemonic. [Fixes bug #82378]
6305 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6307 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
6308 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
6309 the DGV, the column, the row, or the cell itself is readonly.
6311 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
6313 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
6315 * FileDialog.cs: Same.
6316 * TextRendered.cs: Same.
6317 * FolderBrowserDialog.cs: Same.
6318 * TextBoxBase.cs: Same.
6319 * Application.cs: Same.
6321 * ThemeClearLooks.cs: Same.
6323 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
6325 * XplatUI.cs: Added RunningOnUnix property to be used by controls
6326 instead of duplicating these checks everywhere.
6327 * FileDialog.cs: Use case-insensitive comparison for populating the
6328 DirComboBox when not running on unix. Fixes bug #82385.
6329 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
6332 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6334 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
6335 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
6336 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
6337 cell and column selection with ctrl and shift pressed. Call the correct
6338 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
6339 the corresponding virtual method (PaintBackground to paint background,
6341 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
6342 either the column, row or the cell itself is selected.
6343 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
6345 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
6346 here. When the row is selected, don't select all cells. Each cell now
6347 queries the row to see if the row is selected.
6349 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6351 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
6354 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6356 * ListView.cs: In ListViewItemsCollection check that owner is
6357 not null before trying to access it (this happens quite often
6358 using Groups). Also don't duplicate calls by calling CollectionChanged
6361 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6363 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
6364 when we are dismissed to clear keyboard mnemonics.
6365 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
6366 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
6367 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
6368 was activated by keyboard or the OS tells us to always draw them.
6369 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
6370 [Fixes bugs #82376, #82377]
6372 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6374 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
6375 shot at having it because Alt was pressed.
6376 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
6377 the first real menu item.
6378 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
6379 a mnemonic if Text is null.
6382 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6384 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
6385 search do check whether the item is already contained in the
6386 collection or not; instead check if the owner of the item is the same
6387 as ours. Also, remove a redundant check in the same method.
6389 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6391 * Control.cs: Allow the clip region to be set back to null.
6392 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
6393 [Fixes button still showing up in bug #82370 when Show Through is turned off]
6395 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
6397 * GridEntry.cs: Add a null check.
6398 * PropertyGrid.cs: When checking for existing grid entries, ignore category
6399 entries. Fixes #82297.
6401 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6403 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
6406 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6408 * ListBox.cs: Implement ScaleControl.
6410 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6412 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
6414 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
6415 parent has a menu strip. Fixes #81689.
6417 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6419 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
6420 moments, so apply some fuzzy logic to determine if the mouse is still
6421 inside a control or not. Fixes #82288 (for the third time).
6423 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6425 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
6426 Don't create the child if it has been disposed already (may happen if
6427 the user closes the form the Load event).
6429 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6431 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
6434 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6436 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
6437 might call us after we've been destroyed, in which case our own private
6438 parent field is null. Fixes #82326.
6440 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6442 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
6443 check for setting the dropdown's owner.
6445 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6447 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
6448 before removing system menu items.
6450 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
6452 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
6454 * MdiControlStrip.cs: Added. These are the menu items used in mdi
6456 * ToolStrip.cs: Add a null check to mnemonics.
6457 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
6459 [Fixes most of bug #81689]
6461 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6463 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
6465 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6467 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
6469 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6471 * DataGridViewCell.cs: EditType: returns
6472 DataGridViewTextBoxEditingControl always.
6474 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
6476 * TextRenderer.cs: Remove the LineLimit string format flag from the
6477 DrawString fallback method so that things like buttons that aren't
6478 tall enough to draw a full line will still draw part of the text.
6479 [Fixes part of bug #82272]
6481 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6483 * DataGridView.cs: Implemented AutoResizeColumn(s).
6484 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
6485 according to the Alignment.
6486 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
6487 Implement alignment and padding when painting.
6488 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
6490 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
6492 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
6495 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6497 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
6500 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6502 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
6503 hide GetPreferredSize from public API.
6504 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
6505 * ToolStripItem.cs: Stub out drag and drop methods and events.
6506 * ToolStripManager.cs: Stub out Save/LoadSettings.
6507 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
6508 * ToolStripPanel.cs: Fix corcompare error.
6509 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
6510 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
6511 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
6513 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6515 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
6516 bounds height instead of PreferredHeight. Puts things back the way
6517 they were for height while still fixing the width. Fixes broken unit
6520 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6522 * Binding.cs: Implement 2.0 constructors and add a null check.
6524 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6526 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
6527 and fix row index (off by one).
6529 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6531 * PropertyGridView.cs: Remove debug output.
6533 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6535 * Control.cs: We need to reset the is_created flags when the handle is
6536 destroyed. Fixes #82187.
6537 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
6538 client coordinates if the window doesn't have a parent.
6539 Win32GetParent returns the parent or the owner, and for top-level
6540 windows with no parent (but with an owner) we were calculating the
6541 location from the location of the owner.
6542 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
6543 form has been disposed.
6544 * MdiClient.cs: Add a null-check.
6546 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6548 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
6549 actually do auto-sizing. Override the internal GetPreferredSizeCore
6550 so we can provide an implementation that returns the current width
6551 and preferred height. Allows anchor = right to work with TextBox 2.0.
6554 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6556 * ListView.cs: Add support for navigating items in Groups mode, by
6557 creating a big matrix containing all rows and cols of all groups. When
6558 are in other mode than Details, pressing Up should have a similar
6559 behaviour as that one of Down (moving to the next available column if
6560 current one doesn't have an item in the requested row). Also, don't
6561 proceed to use groups if ShowGroups is false.
6562 * ListViewGroup.cs: Add an internal int field to store the starting
6563 row of the group (used by the big matrix used for navigating the
6565 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
6568 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6570 * ToolStripDropDown.cs: When we do Show, start with the
6571 DefaultDropDownDirection, but if our popup menu is going to off-screen,
6572 modify the direction to keep it on screen. [Fixes bug #82210]
6574 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
6576 * FileDialog.cs: Accept any FilterIndex value, and store it
6577 unmodified. When FilterIndex is less than 1, or greater than number
6578 of filters, then default to first filter. Only add filter extension to
6579 file if user did not specifiy an extension. When type of dialog is
6580 OpenFileDialog and DefaultExt is set, then only use filter extension
6581 if: CheckFileExists is true and no file wih the default extension
6582 exists, or CheckFileExists is false, and user specified file does not
6583 exist. When CheckFileExists is true, then add first extension of
6584 selected filter that matches existing file. Perform checks for
6585 existing file, overwrite and create after extension has been added to
6586 file name. When CheckFileExists is true and type is SaveFileDialog,
6587 then only consider first filter extension if DefaultExt is set.
6588 When CheckFileExists is true, then ignore DefaultExt if file with that
6589 extension does not exist. Also perform check for existing file when
6590 type is SaveFileDialog. Changed some field to constants.
6592 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6594 * ListView.cs: Take into account the region used by header
6595 control when doing the vertical scroll (this way we invalidate
6596 the precise area, and don't get any dirty one).
6598 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
6600 * FileDialog.cs: Check for valid filterIndex on button open/save.
6603 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6605 * ListView.cs: Update some layout calculations in details view
6606 and clean the code in a pair of assignations.
6608 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6610 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
6611 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
6612 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
6613 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
6615 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6617 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
6618 performance of thread-safe Graphic methods. (Thanks rolf!)
6620 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6622 * ListView.cs: When doing the layout calculations, don't calculate
6623 scroll bars before handle is created. This is unnecessary and also
6624 calculating them before handle creation item causes a number of random
6625 bugs (which begin to appear after Chris' big patch for handle creation
6628 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6630 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
6631 for things that don't have a Graphics object. Currently, things just use
6632 the static Hwnd.bmp_g which is not thread safe.
6634 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6636 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
6637 dialog. Fixes #82187.
6639 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6641 * DataGridViewElement.cs: Initialize state.
6642 * DataGridView.cs: Forward a few Mouse events to cells. Add
6643 GetRowInternal and GetCellInternal that doesn't unshare rows.
6644 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
6645 don't use the index, but look it up. Add
6646 DataGridViewControlCollection.RemoveInternal to remove controls
6647 that Remove won't remove (scrollbars, edit control).
6648 * DataGridViewColumn.cs: Initialize State correctly.
6649 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
6650 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
6652 * DataGridViewRowCollection.cs: Implemented shared rows.
6653 * DataGridViewRow.cs: Throw exceptions as MS do.
6654 * DataGridViewCell.cs: A few properties are implemented by a
6655 Get<Property> method, so move implementation there and remove the
6656 NIEX in the method. Add a bunch of OnXInternal that DataGridView
6657 calls when necessary.
6658 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
6659 complicates matters.
6660 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
6663 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6665 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
6666 the children controls. Instead, we will just set up the proper docking for the
6667 children controls so we don't have to worry about it. [Fixes bug #82188]
6669 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6671 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
6672 canceling and correct Before/AfterLabelEdit properties as layed out in bug
6673 81847. [Fixes bug #81847]
6675 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6677 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
6678 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
6679 an explicit size based on the design-time size of the text. Since our fonts
6680 may not match this explicit size, we tend to cut off the ends of people's labels.
6682 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
6684 * Menu.cs: Add some missing methods to MenuItemCollection.
6686 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6688 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
6689 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
6690 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
6691 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
6692 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
6693 * DataGridViewElement.cs: State defaults to Visible.
6694 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
6695 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
6697 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6699 * Control.cs: Minor 1.1 corcompare fix.
6701 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6703 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
6704 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
6706 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6708 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
6709 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
6710 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
6711 DataGridViewSelectedColumnCollection.cs,
6712 DataGridViewSelectedRowCollection.cs: Corcompare work.
6714 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6716 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
6717 it is autoset by VS2005 designer and the effect is barely noticeable.
6719 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6721 * TreeView.cs: Implement HitTest.
6723 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6725 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
6726 manually adding and removing the control from the Controls
6728 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
6729 EditingControlInternal property that tracks the editing control.
6730 Always keeping the scrollbars in the Controls collection, as MS
6731 testing confirms is the right behaviour.
6733 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6735 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
6736 according to MSDN and new test.
6738 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6740 * TreeNode.cs: Implement ToolTipText.
6741 * TreeView.cs: Implement tooltips, NodeMouse* events.
6743 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6745 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
6747 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6749 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
6750 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
6752 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
6754 * Control.cs, Form.cs, ContainerControl.cs,
6755 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
6756 for misc properties.
6758 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6760 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
6761 * TreeView.cs: Implement StateImageList.
6763 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6765 * Form.cs: Don't check if the current form is the active form before
6766 activating it. Fixes #81904.
6768 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6770 * Form.cs: Don't check if the current form is the active form before
6771 activating it. Fixes #81904.
6773 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6775 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
6777 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6779 * Form.cs: Don't try to position the form after loading if the form was
6780 disposed. Fixes #81969.
6782 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6784 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
6785 properties. Had to change ToolBar into ToolStrip, which required a
6788 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6790 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
6791 resized, fixes part of #79829 (vertical lines in toolbar).
6792 PropertyGrid: Refactored Populate* to something that's easier to
6793 follow at least for me, as well as splitting it up into several new
6794 methods, required to update only subitems when something has
6795 changed by a popup editor or listbox. Don't use events to check
6796 when any values are changed, since the events are unreliable (we're
6797 changing the objects the events are registered with, and if the
6798 event handling requires the objects to be immutable (objects stored
6799 in hashtables for instance), the events will never be raised).
6800 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
6801 everytime we change a value, since events are unreliable.
6802 DropDownButtonClicked: For the same reason don't compare objects to
6803 check if it has changed or not, it would require all objects to
6804 derive Equals. Fix dialog location on windows, MS is doing weird
6805 things when creating parented forms.
6806 * GridEntry.cs: Add a SelectedObject setter.
6808 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6810 * TreeNode.cs: Add some corcompare attributes.
6811 * TreeNodeCollection.cs: Implement 2.0 stuffs.
6812 * TreeView.cs: Implement some 2.0 stuffs.
6814 2007-07-18 Andreia Gaita <avidigal@novell.com>
6816 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
6819 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6821 * ListBox.cs: Implement custom tab offsets.
6823 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6825 * ToolStripContentPanel.cs: Support System renderer.
6826 * ToolStripControlHost.cs: Set RightToLeft to default to No.
6828 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6830 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
6832 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6834 * CheckBox.cs: Chain TextAlign to base implementation instead of
6835 maintaining another one.
6837 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6839 * ButtonBase.cs: Fix an incorrect string constant.
6841 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6843 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
6844 of creating one for measuring strings.
6846 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6848 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
6849 Implement MaxItemSize.
6851 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6853 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6854 for DeviceContext. Instead, use the static one available in Hwnd.
6855 Informal tests show this saves about 500k on formtest.exe.
6857 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6859 * ContainerControl.cs: Implement 2.0 AutoScaling.
6861 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6863 * ComboBox.cs: Work around bug #82120 (bug in mcs).
6865 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6867 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6868 Darken the focus color.
6870 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6872 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6874 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6875 X, Y instead of a rect for drawing text.
6876 - For ControlPaint.DrawCheckBox, center the check a little better when the
6877 checkbox is odd width. When drawing a flat checkbox, use a white background
6878 when state != inactive.
6879 [Fixes bugs #82097, 82100]
6881 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
6883 * ListControl.cs: When changing CurrencyManager, disconnect event
6884 handlers from previous one. Fixes bug #81771. Code formatting.
6886 2007-07-15 Andreia Gaita <avidigal@novell.com>
6888 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6889 full preview invalidation from layout invalidation, and only invalidate
6890 the layout when setting zoom or other properties. Invalidation should
6891 always be done even when resetting properties with the same values as
6892 what is there. Fixes #81744 and #79830.
6894 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6896 * ListView.cs: Implement initial support for Groups. Split some of the
6897 LayoutIcons code to render a partial list of the items (needed by
6898 items contained in ListViewGroup instances). Let the
6899 ListViewItemsCollection.ListView property be modifiable (needed when
6901 * ListViewGroup.cs: Use a Bounds property rather than a Location
6902 one. Also invalidate the bounds when they get changed.
6903 * ThemeWin32Classic.cs: When drawing items, also draw the group header
6904 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6907 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6909 * ListView.cs: When space gets pressed and CheckBoxes is true,
6910 don't invoke the Begin and EndUpdate methods. We are generating
6911 a redraw of the entire control without need to do so.
6913 2007-07-13 William Holmes <billholmes54@gmail.com>
6915 * Control.cs: Changing logic in FindFlatForward and
6916 FindFlatBackward to handle multiple Controls with
6918 This fixes bug 81687.
6920 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
6922 * OSFeature.cs: Enable IsPresent.
6924 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6926 * Control.cs: Don't do anything in WmShowWindow if the control has been
6927 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6928 control is created, put on a form, the control is disposed (the
6929 form is never shown), and then we get a MapNotify, triggering a
6931 * Form.cs: Exclude the current form when sending Deactivate to all
6933 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6934 there was a race condition because assigning the handle raises
6935 events, we can get more messages, therefore trying to assign the
6936 handle again, which would fail if any of those event handlers
6937 closed/disposed the control.
6939 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6941 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6943 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6945 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6946 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6948 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6950 * DateTimePicker.cs: If there's no part format specifier, return an
6953 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6955 * FlatButtonAppearance.cs: Throw NotSupportedException for a
6956 Transparent BorderColor.
6958 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6960 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6961 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6962 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6963 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6964 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6965 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6966 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6968 * X11Structs.cs: Remove warnings, add ToString implementations.
6970 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6972 * XplatUIX11.cs: Translate min/max size according to the actual min/max
6973 size, and not the current size. Fixes #81798.
6975 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6977 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6978 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6979 to the control yet).
6981 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6983 * PropertyGridTextBox.cs: Add a method that sends any forwarded
6984 mousedowns to the contained textbox.
6985 * X11Structs.cs: More ToString implementation.
6986 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
6989 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6991 * PropertyGridView.cs: Add a null-check, fixes a few tests.
6993 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
6995 * TableLayoutPanelCellPosition.cs: TypeConverter.
6997 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7001 * PropertyGridTextBox.cs: Propagate any color changes to all contained
7003 * PropertyGridView.cs: A few color fixes.
7005 2007-07-10 Jackson Harper <jackson@ximian.com>
7007 * TextControl.cs: Remove some old unused text formatting stuff.
7009 2007-07-10 Jackson Harper <jackson@ximian.com>
7011 * TreeView.cs: Update full row select invalidation to match the
7012 newer DrawSelection... method.
7013 - Make sure to invalidate the entire width when selecting a new
7014 node, if we have full row selection enabled.
7016 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7018 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
7019 display of properties again.
7021 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7023 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
7024 to existing collections.
7026 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7028 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
7029 that changed between 1.1 and 2.0.
7031 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7033 * PowerStatus.cs: Added. This is just a data class, it is filled
7034 in by SystemInformation.
7036 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7038 * Message.cs: Add op_Equality and op_Inequality.
7040 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7042 * MenuStrip.cs: Finish corcompare work.
7044 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7046 * LinkArea.cs: Add op_Equality and op_Inequality.
7048 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7050 * Application.cs: Add MessageLoopCallback delegate.
7052 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7054 * ListBox.cs: First set of 2.0 stuffs.
7056 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7058 * Control.cs: Make an internal Height property we can override
7059 without messing up the public API.
7060 * ListBox.cs: Override HeightInternal to always return the size
7061 the user set. [Fixes bug #80466]
7063 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
7065 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
7066 paint cell borders if we haven't calculated where they go yet.
7067 [Fixes bugs #82040 and #82041]
7069 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7071 * ListView.cs: In Details view, set the location of item_control
7072 in the (0,0) position (and the header_control is thus on the
7073 item_control). This way the Bounds of the Items are relative to the
7074 ListView control (before this, they had a Bounds value without the
7075 header_control offset, which wasn't matching .Net). Fixes #82004.
7077 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7079 * ListControl.cs: When DataSource is set to null, pass an empty
7080 array of object to SetItemsCore. This is done to clean the items
7081 in the ListContol children. Fixes #81788.
7083 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7085 * ListControl.cs: Add 2.0 stuffs.
7087 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7089 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
7090 Refresh is overkill for just about every repaint request.
7092 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7094 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
7095 so remove my custom Get method and fix the property getter.
7097 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7099 * Label.cs: DefaultMargin for 2.0.
7101 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7103 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
7104 reported issue where other controls with mnemonics would steal strokes
7105 from a selected ComboBox.
7107 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7109 * ScrollOrientation.cs: Make internal for 1.1.
7110 * ScrollEventArgs.cs: Add 2.0 stuffs.
7112 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
7114 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7115 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
7116 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
7118 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7120 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
7122 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7124 * ListView.cs: Implement the so-incredibly broken 2.0
7125 VirtualItemsSelectionRangeChanged event.
7127 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7129 * ListView.cs: When enter is pressed and selection is non empty,
7130 an OnItemActivate event must be fired.
7132 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7134 * ListView.cs: Store the FocusedItem information as an
7135 int instead of a ListViewItem (needed by VirtualMode).
7136 Update the calls to SetFocusedItem to pass an index instead of
7138 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
7139 the Focused state from the owner ListView.
7141 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7143 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
7144 property. Also, invalidate previous focused item in the mentioned
7145 property (match .Net).
7147 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7149 * ListView.cs: Implement 2.0 FocusedItem property setter.
7151 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7153 * ListView.cs: Implement 2.0 TopItem property setter.
7155 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
7157 * StatusStrip.cs: The default renderer is System.
7158 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
7159 if the user specifies it.
7160 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
7161 if we are ManagerRenderMode.
7162 * ToolStripMenuItem.cs: Calculate our text color better.
7163 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
7164 from Professional to the base class based off working with the System renderer.
7165 * ToolStripSystemRenderer.cs: Added.
7167 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7169 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
7171 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
7173 * ToolTip.cs: Implement 2.0 Tag property.
7175 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7177 * ListView.cs: Implement 2.0 HitTest methods.
7179 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7181 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
7182 item is under the pointer or not (sugar). Also remove the TODO
7183 regarding to the cursor changes in OneClick activation.
7184 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
7185 the subitems use the parent's HotFont if UseItemStyleForSubItems is
7186 true; otherwise don't show the underline style.
7188 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7190 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
7191 the code to retrieve the item at position only one time. Also
7192 change cursor when Activation is ItemActivation.OneClick as well
7193 as invalidate the item if HotTracking is true (to show/hide the
7194 underline style). Add an internal HotItemIndex property to retrieve
7195 the current hot item's index.
7196 * ListViewItem.cs: Add an internal HotFont property to cache the
7197 font used when HotTracking is true and the pointer moves within the
7199 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
7200 HotFont depending on the hot state of the item.
7202 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7204 * ListView.cs: Implement 2.0 HotTracking property.
7206 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7208 * ToolStripControlHost.cs: If our hosted control never got created,
7209 don't try to dispose it. [Fixes bug #81909]
7211 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7213 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
7215 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7217 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
7219 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
7223 * DrawListViewColumnHeaderEventArgs.cs:
7224 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
7225 using the DrawText () methods.
7227 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
7229 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
7230 background which got erased in my changes yesterday.
7232 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7234 * ListViewItem.cs: Actually set bounds for subitems in Details view
7236 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
7237 can invoke from the owner draw routines if we need it. Also, add
7238 support for Owner draw in Details view.
7240 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7242 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
7243 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
7244 ShowImageMargin setting, properly align text in a ToolStripLabel
7245 hosted on a ToolStripDropDown.
7247 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7249 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
7250 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
7252 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7254 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
7256 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7258 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
7259 location to match ToolStripMenuItems.
7261 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7263 * DrawListViewColumnHeaderEventArgs.cs:
7264 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
7265 column headers in ListView.
7267 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
7269 * UserControl.cs: Implement AutoSize.
7271 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7273 * DrawListViewItemEventArgs.cs:
7275 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
7278 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
7280 * ToolStripDropDownItemAccessibleObject.cs: Added.
7281 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7282 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
7283 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
7284 ToolStripTextBox.cs: corcompare work.
7286 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
7288 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
7289 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
7290 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
7293 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
7295 * OSFeature.cs: Add IsPresent.
7296 * PrintPreviewControl.cs: Add RightToLeft.
7297 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
7298 * SplitterPanel.cs: Add AutoSizeMode.
7300 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7302 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
7303 * MdiClient.cs: Add 2.0 ScaleControl.
7304 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
7305 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
7307 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7309 * Form.cs: Implement some scaling methods, stub some RTL methods,
7312 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7314 * Control.cs: corcompare work.
7315 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
7317 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7319 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
7320 ControlPaint 2.0 stuffs.
7322 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7324 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
7326 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7328 * UpDownBase.cs: Add 2.0 stuffs.
7330 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7332 * NumericUpDown.cs: Add 2.0 stuffs.
7334 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7336 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
7338 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7340 * ErrorProvider.cs: Implement 2.0 stuffs.
7342 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7344 * DomainUpDown.cs: Implement 2.0 stuffs.
7346 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7348 * CheckedListBox.cs: Fix RefreshItems signature.
7350 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7352 * PictureBox.cs: Implement 2.0 stuffs.
7354 2007-06-12 Andreia Gaita <avidigal@novell.com>
7356 * TabControl.cs: Check if there are tabpages before checking
7357 the selected index - fix #81802 (font changes raise a ResizeTabs
7358 call on controls.add, which blew up nicely with no tabpages)
7360 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7363 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
7365 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7368 * ListViewItem.cs: In VirtualMode the selection information
7369 resides in the ListView, rather than in the Items. Also, throw
7370 InvalidOperationExceptions when VirtualMode is being used and
7371 CheckedItemCollection is accessed.
7373 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7375 * ComboBox.cs: Add ScaleControl.
7377 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7379 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
7381 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7383 * GroupBox.cs: Add 2.0 stuffs.
7385 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7387 * Panel.cs: Add autosize properties/event.
7389 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7392 - When we remove a control, remove it from the collection before performing the layout.
7393 - Setup an internal property for explicit_bounds.
7394 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
7395 - Perform a layout when we set a new AutoSizeMode.
7397 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7399 * ScrollableControl.cs: Add 2.0 stuffs.
7401 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7403 * ScrollBar.cs: Add 2.0 stuffs.
7405 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7407 * Splitter.cs: Add 2.0 stuffs.
7409 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7411 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
7412 to have BindingContext simply use base implementation.
7414 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7416 * ColumnHeader.cs: corcompare fix.
7418 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7420 * Button.cs: corcompare fixes.
7421 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
7423 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7425 * Button.cs: Override GetPreferredSizeCore.
7426 * ButtonBase.cs: PerformLayout after changing properties that can affect
7427 AutoSize. Simplify some mouse/keyboard code.
7428 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
7429 * MouseEventArgs.cs: Make Location internal for 1.1.
7430 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
7431 * Theme.cs: Add CalculateButtonAutoSize.
7432 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
7434 2007-06-05 Miguel de Icaza <miguel@novell.com>
7436 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
7438 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7440 * ListViewItem.cs: We can't cache Bounds in VirtualMode
7441 since we can get different item instances every time we retrieve it.
7443 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7445 * ListView.cs: Work around for #81602, since an unkown an pretty
7446 infrequent condition appears only in some systems (old linux boxes, it
7449 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7451 * Button.cs: Completely reformat and a little refactor to bring
7452 this closer to Mono circa 2007.
7454 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7456 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
7457 to be ButtonBase.Invalidate.
7459 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7461 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
7463 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7465 * ButtonBase.cs: Completely reformat and a little refactor to bring
7466 this closer to Mono circa 2007.
7468 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
7470 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
7471 values for autosize. Fixes #80137.
7473 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7475 * Control.cs: Don't perform layout when AutoSize changes.
7476 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
7477 directly when autosizing, use SetBounds with BoundsSpecified.None.
7478 Fixes unit tests my last commit broke.
7480 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7482 * Control.cs: Perform layout when AutoSize changes.
7483 * Form.cs: Implement AutoSizing.
7485 2007-06-01 Chris Toshok <toshok@ximian.com>
7487 * DataGrid.cs: remove the XXX'ed check at the top of
7488 ProcessGridKey. fixes #80464.
7490 2007-06-01 Chris Toshok <toshok@ximian.com>
7492 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
7493 adding idempotent (add/remove in Edit()), and also make sure we
7494 don't add it until after we set the text, so it's not tripped in
7495 Edit(). Fixes unit test regression.
7497 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7499 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
7500 change is user explicit, not when the layout engine moves stuff. Fixes
7501 anchoring to bottom and right. [Fixes bug #81790]
7503 2007-06-01 Andreia Gaita <avidigal@novell.com>
7505 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
7507 2007-06-01 Andreia Gaita <avidigal@novell.com>
7509 * ContainerControl.cs:
7510 Fire enter event for common ancestor if it is not a ContainerControl.
7511 Send focus to the active_control and not the 'value', the active
7512 control might have been changed in one of the events fired.
7513 Definitely fixes #80159.
7515 2007-06-01 Andreia Gaita <avidigal@novell.com>
7517 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
7519 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7521 * PropertyGrid.cs: Anchor the help description to the bottom of the
7522 help panel and refactor SelectGridItem into a
7523 SelectGridItemInternal that can be set to null (and update it to
7524 clear the help texts when it is set to null). Set root item to null
7525 when there's no SelectedObject. Fixes #80438.
7526 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
7527 when we're recalculating after a resize (only).
7529 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7531 * ListView.cs: Implement 2.0 RedrawItems method.
7533 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7535 * ListControl.cs: Disconnect PositionChanged and ItemChanged
7536 handlers from previous data manager when DataSource is set to
7539 2007-05-31 Jackson Harper <jackson@ximian.com>
7541 * TextBoxBase.cs: These seem to be the correct values.
7543 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
7545 * FileDialog.cs: When close dialog with ok set filterindex using combobox
7546 value. Fixes #81784.
7548 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
7550 * Control.cs: Implement 2.0 scaling methods.
7552 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7554 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
7555 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
7558 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7560 * ProgressBar.cs: Implemented missing 2.0 members.
7562 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7564 * Control.cs: Corcompare issues.
7565 * MessageBox.cs: Implemented missing 2.0 functions.
7567 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7569 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
7570 Implemented more 2.0 members.
7572 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7574 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
7575 null (strange, but it seems to happen when running unit tests).
7577 2007-05-30 Andreia Gaita <avidigal@novell.com>
7579 * ContainerControl.cs: Set active_control even earlier, before
7580 firing any events, and undo it if validation returns false.
7582 2007-05-30 Andreia Gaita <avidigal@novell.com>
7584 * ContainerControl.cs: Raise Validation and Enter/Leave events
7585 even if there is no Form and set active_control earlier, just
7586 before firing Enter events (toshok's patches). Fixes #80647.
7588 2007-05-30 Jackson Harper <jackson@ximian.com>
7590 * TextControl.cs: Redid the pageup/pagedown a little to simplify
7591 things and fix bug #81311.
7593 2007-05-30 Jackson Harper <jackson@ximian.com>
7595 * X11Dnd.cs: Now that we have our own event loop, we need to
7596 cancel when we get a mouseup but it won't be accepted.
7598 2007-05-30 Chris Toshok <toshok@ximian.com>
7600 * DataGrid.cs (set_CurrentCell): guard against negative
7603 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
7604 array index syntax instead of looping over the property names.
7606 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
7607 and set IsInEditOrNavigateMode to false there.
7609 2007-05-30 Jackson Harper <jackson@ximian.com>
7611 * TreeView.cs: Make sure we don't get a bad visible order when
7612 setting to the top node. Fixes some misc crashing in
7615 2007-05-30 Andreia Gaita <avidigal@novell.com>
7617 * UserControl.cs: Add 2.0 AutoSizeMode
7619 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7621 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
7623 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7625 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
7626 lines. Fixes #80285.
7628 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7630 * DataGridColumnStyle.cs: Add char trimming column header text format.
7632 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7634 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
7637 2007-05-29 Jackson Harper <jackson@ximian.com>
7639 * TreeNode.cs: Fix off by one on calculating whether or not a node
7642 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
7644 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
7645 * ScrollableControl.cs: Force an UpdateDistances when we move the
7649 2007-05-29 Andreia Gaita <avidigal@novell.com>
7651 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
7652 update the page setup screen.
7654 2007-05-29 Andreia Gaita <avidigal@novell.com>
7656 * PageSetupDialog.cs: Fix landscape mode.
7658 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7660 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
7661 IconSizeHorizontalSpacing.
7663 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7665 * ListView.cs: The declaration of prev_tooltip_item should be inside
7666 a NET_2_0 conditional (avoid a warning).
7668 2007-05-28 Andreia Gaita <avidigal@novell.com>
7670 * PageSetupDialog.cs: Implement PrintPreview control to display
7671 the preview thumbnail. Change unit conversion to use
7672 PrinterUnitConvert methods.
7674 Note: there is a huge bug in ms.net where the default margins are
7675 interpreted as centimeters (?), when in fact they are set in inches. When
7676 loading the page setup dialog initially (ms.net), the default margins
7677 are set to 1 inch, and the dialog shows them with value 10, when in fact
7678 it should be 25 (properly converted). Our dialog doesn't have this bug.
7680 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
7682 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
7684 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7687 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
7690 2007-05-28 Andreia Gaita <avidigal@novell.com>
7692 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
7693 an IntPtr on csc (it builds fine on mcs, could it be a compiler
7694 bug?), convert the ptr to Int32 first.
7696 2007-05-28 Jackson Harper <jackson@ximian.com>
7698 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
7699 recieved, we will exit the dnd tracking loop.
7701 2007-05-28 Jackson Harper <jackson@ximian.com>
7703 * X11Dnd.cs: Keep tracking until the xdnd finished event is
7704 recieved. TODO: I should probably stick a timer on the dropped
7705 event, and finish the drag if the XDND Finished event never shows
7706 (because some apps don't seem to send it).
7708 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
7710 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
7713 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7715 * MonthCalendar.cs: Only mark the keypresses we actually handle as
7718 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7720 * MonthCalendar.cs: Set the size after initializing all the relevant
7721 variables. Fixes #81742.
7723 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7725 * KeyEventArgs.cs: Fix typo.
7727 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
7729 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
7730 to match MS. Fixed MinDate to only accept value less than or equal
7731 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
7732 Removed TODO's that are now verified by unit tests.
7734 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
7736 * TreeNodeCollection.cs: Minor corrections to exceptions to match
7739 2007-05-25 Jackson Harper <jackson@ximian.com>
7741 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
7742 it's own message loop.
7743 * XplatUIX11.cs: Remove some of the dnd hooks
7745 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
7747 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
7748 instead of MinimizedWindowSize.
7750 2007-05-25 Jackson Harper <jackson@ximian.com>
7752 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
7754 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7756 * KeyEventArgs.cs: Added SuppressKeyPress.
7757 * Control.cs: Added support for SuppressKeyPress.
7759 2007-05-24 Andreia Gaita <avidigal@novell.com>
7761 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
7762 problems with PieChart. suppress_validation should not be a counter,
7763 if there are several BeginInit calls, the first EndInit will
7764 activate validation. Fix exceptions thrown by set_Value.
7765 * UpDownBase.cs: ValidateText only if it's the user editing it.
7767 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7769 * ListControl.cs: FilterItemOnProperty should return the filtered
7770 item proeprty even if DataSource is null. The same applies for
7771 GetItemText. Fixes #80427.
7773 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7775 * Control.cs: If a control doesn't have a parent when it's Dock is
7776 set, but it has children, it needs to do a layout. Fixes some nested
7777 controls issues. [Fixes bug #81199]
7779 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7781 * ComboBox.cs: If there are few items in the drop down list, make it
7782 the exact size the items need, no bigger. Fixes #81612.
7784 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7786 * Application.cs: When we have captured the keyboard for a menu,
7787 check for mouse down events in case we need to close the menu.
7788 * Control.cs, Form.cs: Remove mouse down checks for menus.
7790 2007-05-24 Jackson Harper <jackson@ximian.com>
7792 * TextControl.cs: Handle tabs in non multiline mode a little
7795 2007-05-24 Jackson Harper <jackson@ximian.com>
7797 * TextControl.cs: We need to manually break apart tabbed text and
7798 move the tabs, since the system.drawing tabbing mechanism relies
7800 * TextBoxBase.cs: Move the caret properly when the user enters a
7803 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7805 * ContainerControl.cs: Don't check CanSelect before calling
7807 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
7808 release a KeyboardActive on click if it's not ours.
7810 2007-05-23 Andreia Gaita <avidigal@novell.com>
7812 * ColumnHeader.cs: Add TypeConverter
7814 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7816 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
7818 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7820 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
7822 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7824 * LinkLabel.cs: Implement public Padding property.
7826 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7828 * LinkLabel.cs: Implement public FlatStyle.
7830 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
7832 * Control.cs: Apply patch from George to call parent.PerformLayout
7833 when Visible is changed. [Fixes bugs #81118, 81718]
7835 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7837 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
7839 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7841 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
7843 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7845 * ContextMenu.cs: Implement Collapse.
7847 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7849 * ToolBarButton.cs: Implement Name.
7851 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7853 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7854 use current_item, it prevents some NRE. Fixes #81675.
7856 2007-05-22 Andreia Gaita <avidigal@novell.com>
7858 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7859 without updating the text.
7861 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7863 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7864 without calling DeleteObject. [Should fix bug #81709]
7866 2007-05-22 Jackson Harper <jackson@ximian.com>
7868 * RichTextBox.cs: Set the line endings correctly, when flushing
7871 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
7873 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7876 2007-05-22 Jackson Harper <jackson@ximian.com>
7878 * TreeView.cs: Setting top with a null node should set to the very
7881 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7883 * Form.cs: ShowDialog: destroy the handle when message loop is
7884 finished, matches MS behaviour. Refactor parts of WmClose into
7885 RaiseCloseEvents, that only raises events if they haven't already
7886 been raised. Fixes #81688 and #81521.
7887 * Application.cs: Don't call close on the form when exiting a modal
7888 loop, it will raise all the (Form)Closed/Closing events again if
7889 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7890 which doesn'r raise any events it they have been raised before.
7892 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7894 * Control.cs: Add OnPrint.
7895 * ToolStrip.cs: Add GetChildAtPoint.
7896 * ToolStripContainer.cs: Add OnRightToLeftChanged.
7897 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7899 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7901 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
7903 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7905 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7906 isn't visible anymore. Fixes #81651.
7908 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7910 * Control.cs: WmShowWindow: Update children's z-order after setting
7911 their parent. SetParent may show the window, thereby corrupting
7912 z-order, since the window will be shown on top.
7913 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7914 multiple (and redundant) WM_SHOWWINDOW messages.
7915 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7916 event has already been raised.
7917 * Form.cs: Change is_changing_visible_state to a counter, since
7918 SetVisibleCore can be called recursively. CreateHandle: when
7919 creating mdi children, send (De)Activated events.
7920 * MdiClient.cs: Update use of is_changing_visible_state.
7921 * Application.cs: OnThreadException: Surround exception handling with
7922 try/finally to ensure we always reset the error-handling state
7925 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7927 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7930 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7932 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7933 SmallIcon views, now that we have a standarized horizontal spacing.
7935 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7936 4, just like the other views (Match .Net).
7938 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
7940 * Control.cs: Delay calculating anchor distances until we actually layout.
7941 Always query the WM for the actual size and location it put us at instead of
7942 only when we send negative values.
7943 [Fixes bugs #81694, 81695]
7945 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7947 * Application.cs: Avoid a possible stack overflow when trying to exit
7950 2007-05-19 Marek Safar <marek.safar@gmail.com>
7952 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7955 2007-05-19 Andreia Gaita <avidigal@novell.com>
7957 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7958 * NumericUpDownAcceleration.cs,
7959 NumericUpDownAccelerationCollection.cs: Added 2.0
7962 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
7964 * RichTextBox.cs: Recalculate the document after the ScrollBars
7965 property is changed. Fixes bug #81681.
7967 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7969 * DataObject.cs: Implement 2.0 methods.
7971 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7973 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7974 in the center of the checkbox, not in the left-top corner.
7977 2007-05-18 Jackson Harper <jackson@ximian.com>
7979 * RichTextBox.cs: Recalculate the document after the scrollbars
7980 property is changed.
7981 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
7984 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7986 * CreateParams.cs: Make HasWindowManager marginally faster.
7987 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
7988 into Hwnd so that other drivers can use it as well.
7989 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
7990 the default location from Hwnd. Fixes MDI client windows always
7991 showing up at (0,0) in Windows (Win32 won't set the default
7992 location since the window styles aren't correct).
7994 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
7996 * TreeView.cs: Modified DoubleBuffered to just use the base
7999 2007-05-18 Jackson Harper <jackson@ximian.com>
8001 * TreeView.cs: Set the top node to the last child node when
8003 - When we get focus, if there is no selected node, use the top
8006 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8008 * KeysConverter.cs: Add CanConvertTo.
8009 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8010 * LinkConverter.cs: Added.
8012 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8014 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8015 it prevents error when file dont have write access. Fixes #81669 and #81667.
8017 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8019 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
8020 button text. Fixes #79640.
8022 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8024 * Control.cs: According to MSDN controls created in the designer theres
8025 keyboard accelerators visible by default. So included check for design
8026 in ShowKeyboardCuesInternal.
8028 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8030 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
8033 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8035 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
8036 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
8038 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8040 * Control.cs: Finish implementation of UI State using WmChangeUIState
8041 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
8042 in some controls to check for show_keyboard_cues to draw accell keys "_".
8044 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8046 * ListBox.cs: When calculating the horizontal scrollbar
8047 in single column mode, don't use values less than 0 for
8048 Maximum. Fixes #81474.
8050 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8052 * ListBox.cs: Throw the some missing exceptions in
8053 ListBox.ObjectCollection methods.
8055 2007-05-17 Jackson Harper <jackson@ximian.com>
8057 * TextBoxBase.cs: Recalculate the document when the word wrap
8058 value has changed. This fixes 81488.
8060 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8062 * Clipboard.cs: Implement missing GetText overload.
8064 2007-05-17 Chris Toshok <toshok@ximian.com>
8066 * Control.cs (CheckDataBindings): remove the binding_context arg
8069 * CurrencyManager.cs (OnItemChanged): fix this now that
8070 BindingManagerBase is fixed. also remove the comment telling where
8071 the fix should go. We set transfering_data to true/false around
8072 the call to PushData to keep UpdateIsBinding from being called.
8073 (ListChangedHandler): remove the extra OnMetaDataChanged call for
8074 PropertyDescriptorAdded in the 1.1 case. The extra call is
8075 actually generated by System.Data generating 2 metadata changed
8076 events of its own per column add. The fix should go there. Add a
8077 comment to that affect in our test's Assert.Ignore.
8079 * BindingManagerBase.cs: Rework PullData and PushData slightly.
8080 we keep a boolean flag (transfering_data) that keeps us from
8081 calling UpdateIsBinding multiple times if we re-enter either of
8084 * ControlBindingsCollection.cs (AddCore): remove the
8085 binding_context arg to binding.Check.
8087 * Binding.cs (IsBinding): don't check if we're binding here, just
8088 return our cached value. we update it in UpdateIsBinding.
8089 (Check): don't take the binding_context arg, we'll just use our
8090 control's. Also, for some reason MS doesn't use the data member
8091 field when getting the bindingmanager for this binding. it just
8092 uses the datasource. Make this method callable multiple times,
8093 and only do the is_null_desc stuff if manager.Position != -1 (so
8094 we don't get an exception accessing manager.Current).
8095 (UpdateIsBinding): move the code from IsBinding here.
8096 (PositionChangedHandler): call Check here to we can initialize
8097 things that require a non- -1 position.
8099 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8101 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
8104 2007-05-17 Andreia Gaita <avidigal@novell.com>
8106 * TabControl.cs: Add 2.0 methods and events, including
8107 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
8108 * TabPage.cs: Add 2.0 methods
8110 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8112 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
8113 keyboard_cues is properly handled by message method.
8115 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8117 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
8119 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8121 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
8123 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
8126 - WmUpdateUIState added to handle state changes, it make call to
8127 OnChangeUICues event.
8128 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
8131 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
8133 * ImageKeyConverter.cs: Added.
8134 * TreeViewImageKeyConverter.cs: Added.
8136 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8138 * ToolTips.cs: Update Text if SetToolTip is called for a control
8139 already showing the tooltip, as well as restarting its timer; show
8140 tooltip if we are inside the control bounds by the time of calling
8141 SetToolTip. Inside ShowTooltip remove the check to not show the
8142 tooltip again for the active control (it is allowed by .Net to
8143 show the tooltip on the same control multiple times).
8145 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
8147 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8149 2007-05-16 Andreia Gaita <avidigal@novell.com>
8151 * ContainerControl.cs: only process tab key if there are no
8152 modifier keys present, otherwise the control does the
8153 tab processing, if it needs to. Fixes #81622
8154 * TabControl.cs: Fixes calculation for which tab to select on
8157 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
8159 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8161 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
8163 * Control.cs: Make IsInputCharInternal to allow controls to
8164 override it and still match MS API.
8165 * TextBoxBase.cs: Override IsInputCharInternal and always
8169 2007-05-15 Jackson Harper <jackson@ximian.com>
8171 * TextBox.cs: Disable some of the menu options when using a
8174 2007-05-15 Jackson Harper <jackson@ximian.com>
8178 * RichTextBox.cs: Some new 2.0 methods
8180 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
8182 * FileDialog.cs: On 1.0 profile, do not support multidotted
8185 2007-05-14 Jackson Harper <jackson@ximian.com>
8187 * TextBoxBase.cs: Implement some of the new 2.0 methods.
8188 * RichTextBox.cs: We need to override these methods on 2.0.
8189 * MaskedTextBox.cs: These are implemented now
8190 * TextControl.cs: This was off by one.
8192 2007-05-14 Jackson Harper <jackson@ximian.com>
8194 * TextControl.cs: Because the line endings are including in the
8195 text, we don't need to add them in anymore.
8197 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8199 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
8200 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
8202 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8204 * ToolBar.cs: Adjust size to default size when button theres no text and
8205 image, it fixes remaining issues from #81524.
8207 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8210 - When not flat call redraw to recalculate sizes on creare handle to match
8212 - Revert 77220 because it causes some regressions in toobar
8215 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8217 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
8218 now actually enters a usable state.
8220 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8222 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
8223 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
8226 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8228 * ToolBar.cs: Save default_size on create handle to use later for buttons
8229 without text, needed to mimic win32 behavior.
8231 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8233 * ToolBar.cs: Fix button layour to best fit width or height according to
8234 vertical or not. Fixes #81524.
8236 2007-05-10 Everaldo Canuto <everaldo@simios.org>
8238 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
8239 toolbar size info because different styles theres different sizes.
8242 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8244 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
8245 if we are using checkboxes, checked is true, and we have less
8246 than two images in StateImageList; for the 1.1 in the same scenario
8247 draw the first image if we have at least one image in StateImageList.
8248 Fixes part of #81191.
8250 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8252 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
8253 the owner's Items collection on merge.
8255 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8257 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
8258 * ToolStripItemCollection.cs: Lots of fixes to when events get called
8259 and parent/owner gets changed based on gert's unit tests.
8261 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8263 * MaskedTextBox.cs: Started implementing parts of it.
8265 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8267 * ListView.cs: When clicking the checkbox on the items
8268 take into account the double clicks even if we have only
8269 one image in StateImageList (only for 1.0/1.1). Also
8270 generate an extra change of checked state when we receive
8271 the second click on checkbox (match .Net behaviour).
8272 Fixes part of #81191.
8274 2007-05-10 Everaldo Canuto <everaldo@simios.org>
8276 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
8278 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8280 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
8281 even if OnLoad is overriden and base.OnLoad is not called.
8284 2007-05-10 Andreia Gaita <avidigal@novell.com>
8286 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
8287 shame. (I blame my ever-persisting and annoying cold)
8289 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8291 * ListView.cs: Don't eat navigation keys. Let them flow through to
8292 KeyDown/KeyPress routines. [Fixes bug #81569]
8294 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8296 * ListView.cs: When handling keys for selecting the item based off
8297 keyboard input, do not consider keys pressed with Alt or Control. Also,
8298 correctly handle keys when the Shift key is down. [Fixes bug #81578]
8300 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8302 * Control.cs: When using UseWaitCursor, we have to store the requested
8303 Cursor to use when UseWaitCursor is turned off.
8305 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8307 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
8309 * Application.cs: Use PreProcessControlMessage instead of
8311 * PreProcessControlMessage.cs: Make internal for 1.1.
8313 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8315 * Control.cs: Add InternalContains focus property, which hast the same
8316 functionality of ContainsFocus, but also including implicit controls.
8317 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
8318 since we need to know if the focus is contained in our implicit
8319 ItemControl when calculating Layout. Fixes part of #80888.
8321 2007-05-08 Everaldo Canuto <everaldo@simios.org>
8323 * ToolTip.cs: Remove center form string alignment as it must be align to
8326 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
8328 * ToolStripItemCollection.cs: Set the new item's parent and owner
8329 in Insert like we do in Add. [Fixes bug #81568]
8331 2007-05-08 Jackson Harper <jackson@ximian.com>
8333 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
8334 - Off by one error in SetTop
8335 - Disable DoubeBuffering
8337 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8339 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
8340 control as much as necessary in order to make it entirely visible,
8341 instead of centering the control in the container (matches MS
8342 behaviour). CalculateCanvasSize: we need to take the current scroll
8343 position into account when calculating the maximum canvas,
8344 otherwise the following scenario will fail: resize so that the
8345 scrollbars appear, use the scrollbars to scroll, resize again
8346 smaller, and now the canvas size is too small. Recalculate: when
8347 showing scrollbars make sure they start off at 0, and try to scroll
8348 the active control into view. Fixes #79540. HandleScrollBar: don't
8349 scroll anywhere if the scrollbar isn't visible.
8351 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8353 * ListView.cs: When focus changed, call Layout/Invalidate
8354 in the focused item to update the selected state (should show
8355 entire label when ListView is focused, and a part of it if is not).
8356 * ListViewItem.cs: When doing layout for LargeIcon, take into account
8357 for displaying the entire label not only the Focused state of the
8358 item, but also the Focused state of the ListView (match .Net
8361 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8363 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
8364 Implement UseWaitCursor.
8366 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8367 Applying contributed patch from Sergey Volk.
8369 * Clipboard.cs: Implement SetDataObject retry logic and new overload
8371 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
8373 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8375 * Control.cs: Implement DrawToBitmap.
8377 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8378 Applying contributed patch from Stefan Noack.
8380 * Control.cs: Add [Get|Set]AutoSizeMode.
8382 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8384 * MdiClient.cs: Unmerge menus when the last child is closed.
8386 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8388 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
8389 * ToolStripManager.cs: Call Merge on DropDowns.
8392 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8394 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
8396 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
8397 visibility. We can't create forms visible, since we have to set the
8398 owner before making the form visible (otherwise Win32 will do
8399 strange things with task bar icons). The problem is that we set the
8400 internal is_visible to true before creating the control, so
8401 is_changing_visible_state is the only way of determining if we're
8402 in the process of creating the form due to setting Visible=true -
8403 this works because SetVisibleCore explicitly makes the form
8404 visibile afterwards anyways. Fixes #80775.
8406 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8408 * ThemeWin32Classic.cs: When drawing ListViewItems,
8409 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
8410 or LargeIcon _and_ item is not focused (match .Net behaviour).
8412 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8414 * Control.cs, Form.cs: Fix some obsolete method warnings.
8416 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8418 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
8419 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
8421 2007-05-04 Andreia Gaita <avidigal@novell.com>
8423 * ContainerControl.cs: Fix active_control attribution when going
8424 up the parent chain so that the first parent container gets the control
8425 and the rest of the parent containers get the child containers (skips
8426 non-containers). Fixes #80729
8428 2007-05-04 Randolph Chung <tausq@debian.org>
8430 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
8433 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8435 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
8436 takes a size parameter, since the CreateParam's size isn't true for
8437 minimized forms. Fixes #81518,
8439 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8441 * Form.cs: Add OnDeactivateInternal.
8442 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
8444 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8446 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
8447 accessing the parent. Fixes #81508.
8449 2007-05-03 Chris Toshok <toshok@ximian.com>
8451 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
8452 2.0 block, pass listposition + 1 to ChangeRecordState when a row
8453 was added before the current listposition. Fixes the
8454 TestInsertRowBeforeCurrent unit test.
8456 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
8458 * Application.cs: Add RaiseIdle.
8459 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8460 XplatUIX11.cs: Implement RaiseIdle.
8462 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
8463 corcompare work: N - Z
8467 * ScrollableControl.cs
8471 * SystemInformation.cs
8473 * TableLayoutControlCollection.cs
8474 * TableLayoutPanel.cs
8479 * ToolStripComboBox.cs
8480 * ToolStripContainer.cs
8481 * ToolStripContentPanel.cs
8482 * ToolStripDropDown.cs
8483 * ToolStripDropDownItem.cs
8484 * ToolStripDropDownMenu.cs
8486 * ToolStripItemCollection.cs
8487 * ToolStripMenuItem.cs
8489 * ToolStripSplitButton.cs
8492 * TreeNodeCollection.cs
8493 * TreeNodeMouseHoverEventArgs.cs
8496 2007-05-01 Everaldo Canuto <everaldo@simios.org>
8498 * ContextMenu.cs: Add public method Show with alignment property to 2.0
8499 stuff. Thanks aatdark for the patch.
8501 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8503 * GridItem.cs: Implement 2.0 Tag property.
8505 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
8507 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
8508 count instead of Nodes.Length. [Fixes bug #81448]
8510 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8512 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
8515 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8516 corcompare work: A - M
8517 * BindingNavigator.cs
8522 * FlowLayoutPanel.cs
8528 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8530 * Application.cs: Give toolstrips a chance to process mnemonics.
8531 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
8532 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
8533 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
8535 2007-05-01 Jackson Harper <jackson@ximian.com>
8537 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
8539 - Don't set the BoundsSpecified
8541 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8543 * Application.cs: When using the toolstrip shortcut mechanism, allow the
8544 message to pass through to a regular control if it hosted by a toolstrip.
8545 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8546 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
8548 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8550 * TextRenderer.cs: Use the flags argument when using the MeasureString
8553 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8555 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
8556 the MDI menu item. [Fixes bug #81483]
8558 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
8560 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
8561 string. When setting Name to null, use zero-length string instead.
8563 2007-04-29 Andreia Gaita <avidigal@novell.com>
8565 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
8566 DeselectTab). Implement missing 2.0 TabPageCollection methods
8567 (Add, ContainsKey, RemoveByKey, IndexOfKey)
8569 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
8571 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
8573 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
8575 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
8576 Fixes bug #81479. Include details of exception when LoadFile fails.
8578 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
8580 * DrawListViewSubItemEventArgs.cs: Added missing setter
8582 2007-04-27 Andreia Gaita <avidigal@novell.com>
8584 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
8585 Hide methods (not complete). Implement missing 2.0 OnPopup event.
8587 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8589 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
8590 removed in ly last commit (it was breaking the Label edit feature).
8592 * ThemeWin32Classic.cs: When drawing a ListViewItem use
8593 StringAlignment.Near for LineAlignment (match .Net).
8595 2007-04-27 Andreia Gaita <avidigal@novell.com>
8597 * TabControl.cs: Change SetTab so it adds the tabpage to the list
8598 of controls if it isn't already there - was blowing up when doing
8599 tabcontrol.TabPages[i]=new TabPage().
8600 SetTab now does a replace by removing the page at the index.
8601 Add a new InsertTab method that inserts a page in a given index
8602 instead of replacing.
8603 Implements TabPageCollection.Insert(int, TabPage).
8605 2007-04-27 Chris Toshok <toshok@ximian.com>
8607 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
8608 internal handler that can be invoked from our subclasses.) Also,
8609 add a comment to PushData about how we need to fix it.
8611 * CurrencyManager.cs: tons of changes here. trying to get things
8612 matching the behavior of .net wrt event orders (ItemChanged,
8613 CurrentChanged, PositionChanged.) I've implemented a private .net
8614 symbol (ChangeRecordState) that appears in stack traces because
8615 it's actually easier to do this than to effective inline all its
8616 various behaviors at every call site.
8618 * RelatedPropertyManager.cs: guard against an exception here by
8619 not using parent.Current if the position is set to -1 (if the
8620 parent datasource is cleared, for instance).
8622 * Binding.cs: don't parse data in PushData (this might be wrong,
8623 but it jives with MS's behavior.) Also, don't call PushData when
8624 we get a CurrentChanged event.
8626 2007-04-27 Andreia Gaita <avidigal@novell.com>
8630 WebBrowserSiteBase.cs,
8631 HtmlDocument.cs: Added stubbed out classes, no real implementations
8634 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8636 * MainMenu.cs: In draw method without parameters call draw method with
8637 PaintEvent, another one (just rect) adjust rectangle and we dont need it
8638 as Rect property is already adjusted. Fixes #80694.
8640 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
8642 * Application.cs: Need to handle keyboard menu deselection here.
8643 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
8644 navigation, allowing keyboard to work on X11.
8645 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
8647 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8649 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
8650 menu bar. It fixes some drawing issues in menu bar.
8652 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8654 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
8655 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
8656 when <alt> key is pressed.
8658 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8660 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
8661 example just set visible to false and make this prevent from other problems.
8662 In SystrayAdd always remove pending expose. Fixes #81072.
8664 2007-04-26 Marek Safar <marek.safar@gmail.com>
8666 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
8669 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8671 * ListView.cs: Added three missing 2.0 events and corresponding
8672 EventHandlers. Added the OwnerDraw property.
8673 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
8675 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8677 * DrawListViewItemEventArgs.cs
8678 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
8680 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8682 * TextControl.cs: Fixed typo in constructor
8684 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
8686 * Application.cs: Create a shortcut path so that currently selected
8687 MenuStrips can intercept keyboard events without having focus.
8688 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
8689 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
8690 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
8691 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
8692 generate WM_SYSCOMMAND message in X11 for other platforms.
8693 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
8694 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
8695 * ToolStripSplitButton.cs: Add DefaultItem property.
8697 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8699 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
8700 fixes some menu draw problem on Windows with border diferent from default
8701 it also fixes #81403.
8703 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8705 * Form.cs: Refactor WndProc into separate methods, just like Control is
8708 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8710 * Control.cs: set_Text: move the call to the driver into a seperate
8711 virtual method so that Form can override it.
8712 * MaskedTextBox.cs: Corcompare fixes.
8713 * Form.cs: Override UpdateWindowText and only update the styles if the
8714 form has been shown (fixes #81405).
8716 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8718 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
8719 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
8720 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
8721 the form lost focus or another control was clicked.
8723 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
8725 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
8728 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8730 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
8731 DrawListViewItemEventHandler.cs,
8732 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
8734 * X11Structs.cs: More ToString implementation.
8736 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8738 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
8739 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
8741 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8743 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
8745 * FormCollection.cs: Don't add a form if it's already in the
8747 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
8748 according to behaviour and MSDN. The ownerWin32 is the active
8749 window at the moment when we call ShowDialog, not the context's
8750 main form (the context's main form may open another form that opens
8751 a form with ShowDialog, the win32 owner is the second form). Add
8752 and remove forms to the Application.OpenForms in other places to
8753 better match MS behaviour. Add an IsActive property that raises
8754 On(de)Activated only if the active state has changed (we were
8755 raising OnDeactivated before OnActivated while creating forms).
8756 * Application.cs: Refactor Enabling/Disabling of windows for modal
8757 dialog loops out to separate methods, and restore the thread
8758 context when we quit the method. Fixes #81407.
8760 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8762 * ListView.cs: In ItemControl.HandleClicks, also fire
8763 2.0 MouseClick or MouseDoubleClick events on the parent,
8764 not only the Click/DoubleClick events.
8766 2007-04-24 Andreia Gaita <avidigal@novell.com>
8768 * TableLayoutSettings.cs:
8769 - Added a GetControls method and a support structure to help the
8770 TypeConverter to enumerate the controls for serialization.
8771 - Added a new serialization constructor.
8772 - Added a isSerialized flag initialized to true on the
8773 serialization constructor so that the TableLayoutPanel.LayoutSettings
8774 setter does not throw the designed NotSupportedOperation exception
8775 when the object is built through deserialization.
8776 - Implemented GetObjectData
8778 * TableLayoutPanel.cs: Added check on LayoutSettings.
8780 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8782 * ListView.cs: Report Click and DoubleClick events to the parent
8783 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
8784 from breaking the click count state when using dialog forms (Control
8785 reports the clicks in a similar fashion). In the previous behaviour
8786 the last WM_LBUTTONUP message in a double click was sent to the
8787 ListView's form, instead of the ListView, which was breaking the click
8788 count for it. Fixes #80387.
8790 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8792 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
8794 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8796 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
8797 us from created dropdowns for menu items that do not have subitems.
8798 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
8799 Check HasDropDownItems before calling DropDown so a dropdown will not be
8800 created if it isn't needed.
8802 2007-04-24 Jackson Harper <jackson@ximian.com>
8804 * TreeView.cs: Set the first node to the selected node when we get
8805 focus if there is no selected node.
8807 2007-04-24 Andreia Gaita <avidigal@novell.com>
8809 * MimeIcon.cs: remove using blocks so that image streams are
8810 not disposed of. Fixes #80151
8812 2007-04-24 Jackson Harper <jackson@ximian.com>
8814 * TextBoxBase.cs: Fixup the height of textboxes when the control
8817 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8819 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
8820 for each ToolStripItem when the parent's RightToLeftChanged is called.
8822 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8824 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
8826 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
8827 property, so that the setter can be overriden too.
8828 * TextBox.cs: Change GetContextMenuInternal() to use
8829 ContextMenuInternal.
8831 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8833 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8836 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8838 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8841 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8843 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
8844 avoid duplicate work. Mostily skeleton code, it's not working at
8847 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
8849 * NotifyIcon.cs : stub for MouseClick event
8850 * Application.cs: stub for SetUnhandledExceptionMode
8852 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8854 * BindingNavigator.cs : Initial (partial) implementation
8856 2007-04-23 Jackson Harper <jackson@ximian.com>
8858 * TreeView.cs: Do not create the treeview's handle when setting
8859 the scroll position.
8860 - ExpandAll needs to compute the scrollbars so it knows which
8861 position to set the bar too.
8863 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8865 2007-04-23 Jackson Harper <jackson@ximian.com>
8867 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8870 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
8872 * ToolStripItem.cs: Make GetImageSize internal.
8873 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8874 need to draw an item. Fixes a reported issue where images on menus
8875 that were not 16x16 were drawing incorrectly.
8877 2007-04-21 Miguel de Icaza <miguel@novell.com>
8879 * Padding.cs: Use the converter, fixes the resgen2 issue with
8882 2007-04-21 Jackson Harper <jackson@ximian.com>
8884 * TreeView.cs: Dont try to unhighlight the selected node if there
8885 isn't a selected node.
8887 2007-04-21 Jackson Harper <jackson@ximian.com>
8893 * TreeView.cs: Use the InternalBorderStyle property to set the
8894 initial border style, this forces the client rectangle to be sized
8897 2007-04-20 Jackson Harper <jackson@ximian.com>
8899 * TreeView.cs: Simplify scrolling to the last node after expanding
8901 - Fix some off by ones with setting the bottom.
8903 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8905 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8906 that. We were incorrectly doing it the other way around. Also,
8907 update ClientSize if we change the BorderStyle before the control
8910 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8912 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8913 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8914 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8915 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8916 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8917 Caption to CaptionHeight.
8918 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8919 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8920 and FixedFrameBorderSize to return value from current XplatUI driver.
8921 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8922 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8923 and FixedFrameBorderSize using win32 API. Renamed Caption to
8925 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8926 * SystemInformation.cs: Fixed typo in BorderSize.
8928 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8930 * XplatUI.cs: Added MenuAccessKeysUnderlined.
8931 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8932 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8934 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8935 value from XplatUI driver.
8936 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8937 SystemParametersInfo.
8938 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8940 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8943 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8945 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8947 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8949 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8951 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8953 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8954 MenuStrips that contain ToolStripSeparators.
8956 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8958 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8959 DefineStdCursorBitmap.
8960 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8961 has been created off a standard cursor. This is used to get a
8962 bitmap of the standard cursor when Draw or DrawStretched is called
8963 in order to draw the cursor.
8964 * X11Structs.cs: Added XcursorImage and XcursorImages.
8965 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8966 DefineStdCursorBitmap.
8967 * Cursors.cs: Update all relevant creations of Cursor to use the new
8968 internal constructor.
8970 2007-04-19 Jackson Harper <jackson@ximian.com>
8972 * TextBox.cs: Move the has_been_focused into the base control, so
8973 some of the text adding methods can manipulate it (probably time
8974 for a better name for this flag too).
8975 - Call a new version of selectall that doesn't scroll
8976 * TextBoxBase.cs: When we append text, if the document is empty,
8977 don't scroll. If the document has text already, we scroll to the
8978 end of the appended text.
8979 - When the text is changed, we reset the has_been_focused, so the
8980 next time the control gets focused, all the text is selected.
8982 2007-04-19 Jackson Harper <jackson@ximian.com>
8984 * TextControl.cs: Move the margins to the document, add a method
8985 so the margin sizes can be updated.
8986 * TextBoxBase.cs: When the border style is changed, update the
8989 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
8991 * Control.cs: Respect DefaultPadding.
8992 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
8993 padding into account.
8994 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
8996 2007-04-19 Jackson Harper <jackson@ximian.com>
8998 * TextControl.cs: Oops, we need to use the ClientRect not the
9001 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9003 * ListView.cs: In ItemControl.ItemsMouseDown, take into
9004 account the double clicks when CheckBoxes are used and
9005 the pointer is inside the checkbox. Fixes part of #81191.
9007 2007-04-18 Jackson Harper <jackson@ximian.com>
9009 * TextControl.cs: Pressing the end key shouldn't move the caret
9010 past the line ending.
9011 * TextBoxBase.cs: We can still delete if we are in the line
9012 ending and the combine will just kill the existing line ending.
9014 2007-04-18 Jackson Harper <jackson@ximian.com>
9016 * TextControl.cs: We can't move lines, then invalidate their
9017 bounds, we need to get the old bounds and combine that with the
9019 * TextBoxBase.cs: Before combining two lines for a delete, we need
9020 to invalidate the area of the old line, since that will be moved
9021 in the combine operation.
9023 2007-04-18 Everaldo Canuto <everaldo@simios.org>
9025 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
9026 with transparent background. Fixes #80482.
9028 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
9030 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
9031 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
9034 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9036 * CreateParams.cs: Add a couple of helper methods and do a less string
9037 concatenation in ToString.
9038 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
9039 overload that takes a Control parameter, since this method may be
9040 called before a control is assigned to the hwnd (from
9041 CreateWindow), and update CreateWindow to use the new overload. In
9042 GetMenuOrigin subtract the title bar from the y position if the
9043 form has a window manager (since we're painting it and not X).
9044 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
9045 CreateParams to calculate the origin (since border sizes may vary).
9046 In ScreenToMenu only subtract the title height if we actually have
9048 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
9049 mdi children never have menus of themselves.
9050 * InternalWindowManager.cs: Implement menu handling like form does.
9051 Added GetMenuOrigin to calculate the menu origin, can't use the
9052 CreateParams from the form like normally since it's lying.
9053 * Hwnd.cs: Implement GetBorderSize better (in the sense more
9054 windows-like) and add Inflate and comparison operators to the
9055 Borders type. When calculating MenuOrigin and it's a form with a
9056 window manager, use the window manager to calculate it.
9058 2007-04-17 Chris Toshok <toshok@ximian.com>
9060 * Control.cs (CreateControl): turns out in 2.0 we don't need this
9061 OnBindingContextChanged thing here. It's only generated from
9062 ContainerControl.OnCreateControl. Fixes a newly written unit test
9063 - BindingTest.BindingContextChangedTest4.
9065 2007-04-17 Jackson Harper <jackson@ximian.com>
9067 * ScrollBar.cs: When setting values, make sure the current
9068 position stays within the new values range.
9070 2007-04-17 Chris Toshok <toshok@ximian.com>
9072 * Control.cs (CreateControl): talk about a bizarre corner case.
9073 Don't emit OnBindingContextChanged here if we're a parentless
9074 control (i.e. if we're a form.). Fixes
9075 BindingTest.BindingContextChangedTest2.
9077 2007-04-17 Everaldo Canuto <everaldo@simios.org>
9079 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
9080 from win32. Fixes #81255.
9082 2007-04-17 Everaldo Canuto <everaldo@simios.org>
9084 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
9085 already present in CalculateButtonTextAndImageLayout.
9087 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9089 * XplatUIX11.cs: When setting min/max size for a window we need to
9090 translate the coordinates to x coordinates. Create an overload of
9091 SetWindowMinMax that takes a CreateParams handling this, and change
9092 SetWMStyles to call this function (can't use Control.FromHandle in
9093 the SetWindowMinMax to get the control/CreateParams from the handle
9094 because the handle might not have been assigned to the control
9097 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9099 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
9100 if StateImageList is non-null and it has less than two items (match MS
9101 behaviour). Also, in HandleNavKeys handle the Space key, calling
9102 the new ToggleItemsCheckState method, which tries to change the
9103 checked state of the selected items. Fixes part of #81191.
9105 2007-04-16 Jackson Harper <jackson@ximian.com>
9107 * RichTextBox.cs: namespace cleanup.
9109 2007-04-16 Everaldo Canuto <everaldo@simios.org>
9111 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
9113 2007-04-16 Everaldo Canuto <everaldo@simios.org>
9116 * Control.cs: Call invalidate in set_Region.
9118 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
9121 2007-04-16 Jackson Harper <jackson@ximian.com>
9123 * TextBoxBase.cs: When enter is pressed, we need to update all
9124 lines below the current.
9126 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
9128 * MdiClient.cs: Implement implicit menu merging for MDI
9129 children. When a child form is active, if it has a menustrip
9130 and the parent form has a MainMenuStrip, automatically merge
9133 2007-04-15 Andreia Gaita <avidigal@novell.com>
9135 * TabControl.cs: Refactored sizing methods to not repeat
9136 code all over the place. Tab bounds are now calculated
9137 as if alignment is top and single line, and only when
9138 setting the bounds are the positions adjusted according
9139 to alignment. Replaced hardcoded positions, spacings and
9140 paddings by getting the values the ThemeEngine.
9143 * Theme.cs: Change TabControl properties and methods so
9144 that all start with TabControl*. Added more properties
9145 to help remove hardcoded values on tabcontrol.
9146 Add CPDrawBorder3D declaration so the Theming classes
9149 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
9151 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
9152 on the Theming namespace, and call the appropriate methods here.
9153 Change CPDrawBorder3D to public.
9155 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9157 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
9158 the control after firing the OnMouseUp event, instead of sending
9159 the message before the mentioned event. This is so we can match the
9160 MS behaviour. Fixes part of #80385.
9162 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
9164 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
9165 RightToLeft property.
9167 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
9169 * ToolStrip.cs: Add properties and internal methods to support merging.
9170 * ToolStripItem.cs: Add MergeAction and MergeIndex.
9171 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
9172 not trigger reparenting or layouts.
9173 * ToolStripManager.cs: Add Merge and RevertMerge methods.
9174 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
9175 is hosting the overflow menu.
9177 2007-04-13 Jackson Harper <jackson@ximian.com>
9179 * TextControl.cs: Set the line ending correctly for the first
9182 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
9184 * Theme.cs: Update GetMethod to get the new definition for
9185 KnownColors.Update (and fix theme color updates).
9187 2007-04-12 Everaldo Canuto <everaldo@simios.org>
9189 * MessageBox.cs: Fix some test and button position.
9191 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9193 * Form.cs: Consider the implicit controls in
9194 GetRealChildAtPoint. We need it since this method
9195 is called on Form when handling the some messages in
9196 WndProc, and need to consider those implicit ones too.
9199 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
9201 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
9202 if there are no ShortcutKeys set.
9203 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
9204 set, use it when painting.
9206 2007-04-12 Jackson Harper <jackson@ximian.com>
9208 * TextControl.cs: Fix some off-by-one issues in line duplication
9209 and insertion in the undo manager. Also, overwrite the first tag
9210 of a line on insert, if it is just a zero lengthed tag. This
9211 prevents us from getting an extra stranded tag at the beginning of
9214 2007-04-11 Everaldo Canuto <everaldo@simios.org>
9216 * Label.cs: Remove check for handle created in CalcAutoSize, we need
9217 to calculated proper size including when handle was not created yet.
9219 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9221 * MdiWindowManager.cs: When moving a form, allow the form to be moved
9222 when the mouse is outside of it's parent's client rectangle. Fixes
9223 #79982 (take 3, part 2).
9225 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9227 * X11Structs.cs: Add a few ToString() overrides.
9228 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
9229 the window location in a window-manager independent way. Reworked
9230 FrameExtents, it now actually works. Reworked AddConfigureNotify
9231 and ReparentNotify handling to use GetTopLevelWindowLocation
9232 instead of the earlier, more hacky solution. Reworked SetWMStyles,
9233 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
9234 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
9235 for all other windows (fixes #81281 part 1), a toolwindow is hidden
9236 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
9237 and generally refactored to do as few calculations as possible
9240 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
9242 * Theme.cs: Change "reflective-contract" between MWF and SD to
9243 minimize # of calls, avoid Color serialization and avoid updating
9244 every "known colors" each time a single one is updated.
9246 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
9248 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
9249 when not readonly and the text is explicitly set. Code style updates.
9250 * DataGridTableStyle.cs: Removed extra line.
9251 * DataGrid.cs: Code style updates. Removed extra whitespace.
9252 * DataGridColumnStyle.cs: Code style updates. Removed extra
9255 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9257 * XplatUIX11.cs: Added comment that "fixes" #80021.
9259 2007-04-09 Jackson Harper <jackson@ximian.com>
9261 * TextControl.cs: We don't need this -1 on the line count anymore.
9263 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
9265 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
9266 entered value to underlying type, and convert it back to a string to
9267 apply formatting. Modified GetFormattedValue to use TypeConverter
9270 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
9272 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
9273 Use SubItems property when we want to ensure there's at least one
9274 subitem. Modified SubItems property to ensure there's always at least
9275 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
9276 the NRE's reported by MS.
9278 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
9280 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
9281 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
9282 Spaces to tabs. Removed extra tabs.
9284 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
9286 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9287 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
9289 2007-04-06 Jackson Harper <jackson@ximian.com>
9291 * TextBoxBase.cs: When a delete removes a line, recalculate all
9292 lines below that line (they need to get offsets setup correctly)
9295 2007-04-05 Jackson Harper <jackson@ximian.com>
9297 * TextControl.cs: We need to invalidate across the width of the
9298 document when we are invalidating multiple lines.
9299 * TextBoxBase.cs: Don't delete into the line ending.
9301 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9303 * ListView.cs: Restore the check for the MouseHover event
9304 in ListView. It looks like the ListView fires more than one MouseHover
9305 event when HoverSelection is true _only_ in weird-corner scenarios, but
9306 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
9309 2007-04-05 Mike Kestner <mkestner@novell.com>
9311 * ListView.cs : raise MouseDown before updating selection.
9312 [Fixes #80373 tab 1&3]
9314 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
9316 * ToolStripRenderer.cs: Add static method to mirror image.
9317 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
9318 and RightToLeftAutoMirrorImage.
9319 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
9321 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
9323 * ToolStripSplitStackLayout.cs: Support Alignment property.
9324 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
9326 2007-04-05 Jackson Harper <jackson@ximian.com>
9328 * TextControl.cs: Move around the line endings when crossing line
9330 - When combining lines, strip the ending text off the first line.
9332 2007-04-05 Jackson Harper <jackson@ximian.com>
9335 * TextBoxBase.cs: Try to never move the cursor into the line
9338 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9340 * ToolStripItem.cs: Make sure we aren't firing mouse events when
9341 the item is disabled. Also add a few missing methods.
9343 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9345 * ListView.cs: We don't need the MouseEnter/MouseLeave check
9346 to fire just one MouseHover event when HoverSelection is true, since
9347 .Net does fire more than one MouseHover event in that scenario. Also,
9348 fix the selection in HoverSelection, by invoking UpdateMultiSelect
9349 if MultiSelect is true, instead of only setting ListViewItem.Selected.
9350 Finally, we need to reset the Hover logic in MouseMove, even when we
9351 don't have a selected item.
9353 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9355 * ToolStrip.cs: Add several missing methods, properties, and events.
9357 2007-04-04 Chris Toshok <toshok@ximian.com>
9359 * DataGridTextBoxColumn.cs: set the bounds of the text box to
9360 (0,0,0,0) in Commit, as MS does.
9362 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
9363 make sure we set CurrentRow on a row header click *before* calling
9364 Select. This moves the current cell (and the textbox) to the new
9365 row. The call to Select then hides the textbox, giving us the
9366 correct behavior. Fixes #80362.
9368 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
9369 (ListChangedHandler): reorder the position/current changed events,
9370 and call UpdateIsBinding in the ItemAdded case.
9372 * GridColumnStylesCollection.cs: add some columns events, one of
9373 which raises the CollectionChanged event.
9375 2007-04-04 Jackson Harper <jackson@ximian.com>
9377 * TextControl.cs: When we delete multiple selection lines
9378 invalidate the selection area, don't need to do that for single
9379 lines because the final update view will handle it.
9381 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9383 * Control.cs: When we CreateControl, we need to also create all of the
9384 control's children. The child's OnLoad must also fire before the parent's
9385 OnLoad. Fixes the toolbox size in PDN.
9387 2007-04-04 Jackson Harper <jackson@ximian.com>
9389 * TextBoxBase.cs: When the user presses enter, insert a line
9390 ending into the text. (Maybe this would be a good spot for
9391 Environment.NewLine).
9392 * TextControl.cs: Remove undo manager hack, line endings get
9393 inserted properly now.
9395 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9398 - Remove unneeded parameters in UpdateCursor.
9399 - Fix UpdateCursor to check if menu is active.
9400 - Call UpdateCursor when menu deactivate my click.
9401 [Fixes remaining issues from #80410]
9403 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9405 * Control.cs: GetRealChildAtPoint method added, it make an
9406 recursive child control search for the point.
9408 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
9411 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
9413 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9415 * Form.cs: Fix mouse position when send back mouse event after closes
9418 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9420 * Form.cs: Simplify the BUTTONDOWN for active tracker.
9422 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9424 * Control.cs: Fix an issue where if a user resized a control inside
9425 a sizing method like OnResize, we would overwrite their explicit
9426 value. Also, only call DefaultSize once in the constructor instead
9427 of 4 times. Also, do not call SetBoundsCore from SetBounds if
9428 nothing actually changed.
9430 2007-04-03 Jackson Harper <jackson@ximian.com>
9432 * TextControl.cs: Don't attempt to copy text for lines with no
9433 text in them (technically this shouldn't happen, but we aren't
9434 always inserting line endings when we should be).
9436 2007-04-03 Jackson Harper <jackson@ximian.com>
9438 * TextBoxBase.cs: Calculate the scrollbars before calculating the
9439 document, because this sets some of the document size properties
9442 2007-04-03 Jackson Harper <jackson@ximian.com>
9444 * TextBoxBase.cs: We need to calculate maximums even if this is
9445 not a multiline control, because the maxs are used for scrolling.
9446 - Display the caret after doing a page up/down, we need to
9447 manually display it because a proper CaretMoved event isn't
9448 triggered (this is because of the way the math is done to
9449 determine how far to scroll).
9451 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9453 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
9454 (ToolBar was relying on SetBoundsCore to default the values sent
9455 base off of BoundsSpecified.)
9457 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9459 * DateTimePicker.cs: Change Text so that when a null value or empty
9460 string is assigned to the test we always raise ValueChanged and
9461 TextChanged (earlier implementation would only raise ValueChanged
9462 if the current date value was different from DateTime.Now).
9464 2007-04-03 Andreia Gaita <avidigal@novell.com>
9466 * ButtonBase: Call update after invalidation, fixes #80194
9468 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9470 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
9473 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9475 * XplatUIX11.cs: SetWMStyles: If the control is a form with
9476 FormBorderStyle = None, don't give the window any decorations.
9479 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9481 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9482 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
9483 to check for is a mix of several styles (such as WS_CAPTION for
9485 * Control.cs: Don't paint an area bigger than the client area when
9486 painting the background colour. Add an internal GetCreateParams.
9487 Update calls to XplatUI.CalculateWindowRect due to API change.
9488 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
9489 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
9490 the size if it hasn't been handled by any windows. When creating
9491 and moving windows, X wants the location of the entire window, but
9492 the size of the client window, so add
9493 TranslateClientRectangleToXClientRectangle,
9494 TranslateWindowSizeToXWindowSIze and
9495 TranslatedXWindowSizeToWindowSize to cope with this, and call them
9496 before every window creation and move. Update CalculateWIndowRect
9497 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
9498 In AddConfigureNotify don't do anything if the hwnd is a zombie
9499 (fixes the BadWindow we were getting while running the tests),
9500 always calculate the offsets when it's a parentless window, not
9501 only when reparented, and translate the window size, since we're
9502 getting the client size of the whole window, excluding entire
9504 * Theme.cs: Added BorderSizableSize.
9505 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9506 anymore. Update calls to XplatUI.CalculateWindowRect due to API
9508 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
9509 change. Fake the window styles here instead of in XplatUIWin32 so
9510 that all back-ends get the same window styles (and it's Form that's
9511 deciding when to use wm, not the Win32 backend anyways)
9512 * Hwnd.cs: Completely reworked GetWindowRectangle and
9513 GetClientRectangle - they are now passed a CreateParams and they
9514 only use Style and ExStyle to determine the rectangles (they should
9515 now work just like Win32AdjustWindowRectEx - though quite a few
9516 special cases are probably missing). They should also be 100%
9517 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
9518 == rect), and all numbers (borders, menu sizes) are taken from the
9519 current theme. Added a GetBorders helper function that will return
9520 the borders for any given CreateParams (including captions and
9521 menus), and GetBorderSize that returns the given border size only.
9522 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9523 Hwnd.GetClientRectangle.
9525 2007-04-02 Chris Toshok <toshok@ximian.com>
9527 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
9528 logic between the values we present to the user and the values
9529 which are stored in the column's property. Also, don't call
9530 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
9532 2007-04-02 Jackson Harper <jackson@ximian.com>
9534 * TextBoxBase.cs: Scroll faster!
9536 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9538 * StatusStrip.cs: Layout fixes for PDN.
9539 * ToolStrip.cs: Set item's available to true, and placement to main when
9541 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
9542 changing in setter before doing any work, add InternalVisible.
9543 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
9544 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9547 2007-04-02 Jackson Harper <jackson@ximian.com>
9549 * TextBox.cs: LBUTTON does not make the textbox select all of it's
9552 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9554 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
9555 Makes ToolStripComboBoxes show up again.
9557 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9559 * ListView.cs: Add a hover_pending field in ListView
9560 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
9561 cycle (we are resetting the MouseHover logic in XplatUI
9562 to handle HoverSelection). Fixes #80429.
9564 2007-04-02 Jackson Harper <jackson@ximian.com>
9566 * TextControl.cs: Make sure the attributes get set on the last
9568 - Still have to do the end tag if we have stepped all the ways to
9571 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
9573 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
9574 on an internal libgdiplus call when the information is already
9575 available via the public API.
9577 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9579 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
9580 control is removed from a control collecftion.
9581 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
9582 Fixes FormPropertyTest (failed on rare occasions).
9583 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
9584 of Win32SetParent (when changing from no parent to a parent it
9585 might add the new parent's location in screen coordinates to this
9587 * Form.cs: Rework ChangingParent once again, now the handle is
9588 recreated whenever a FormWindowManager is added or removed (that is
9589 whenever a normal form is parented or abandoned). Also change
9590 CreateParams so that all non-toplevel windows always get the
9591 specified sice (StartupPosition is never considered for
9592 non-TopLevel forms).
9593 * ContainerControl.cs: Add ChildControlRemoved, the container control
9594 needs to be notified when a control is removed from it's
9595 collection, in the case the removed control is the active control.
9597 2007-04-02 Jackson Harper <jackson@ximian.com>
9599 * RichTextBox.cs: Use the new methods for setting the font and
9600 color, these methods set the specified attribute without
9601 overriding the other attributes.
9603 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9605 * ToolStripPanel.cs: Fixes for better layouts in PDN.
9607 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
9609 * TextBox.cs: Added internal ChangeBackColor method to special-case
9610 Color.Empty. Added check for invalid ScrollBars value.
9611 * TextBoxBase.cs: Added internal ChangeBackColor method.
9612 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
9613 internal ChangeBackColor method to special-case Color.Empty. Added
9614 check for invalid ScrollBars value.
9616 2007-03-30 Everaldo Canuto <everaldo@simios.org>
9618 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
9620 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9622 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
9623 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
9624 [Based on submitted patch from Olivier Duff.]
9626 2007-03-30 Jackson Harper <jackson@ximian.com>
9628 * TextBox.cs: Only select all on initial focus if the user has not
9629 specified a selection area.
9631 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9633 * UserControl.cs: Override CreateParams.
9635 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9639 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9640 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
9641 check for is a mix of several styles (such as WS_CAPTION for instance).
9642 * Control.cs: Don't paint an area bigger than the client area when painting
9643 the background colour. Add an internal GetCreateParams. Update calls to
9644 XplatUI.CalculateWindowRect due to API change.
9645 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
9646 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
9647 hasn't been handled by any windows. When creating and moving windows, X
9648 wants the location of the entire window, but the size of the client
9649 window, so add TranslateClientRectangleToXClientRectangle,
9650 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
9651 to cope with this, and call them before every window creation and move.
9652 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
9653 removing DeriveStyles). In AddConfigureNotify don't do anything if the
9654 hwnd is a zombie (fixes the BadWindow we were getting while running the
9655 tests), always calculate the offsets when it's a parentless window, not
9656 only when reparented, and translate the window size, since we're getting
9657 the client size of the whole window, excluding entire window.
9658 * Theme.cs: Added BorderSizableSize.
9659 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9660 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
9661 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
9662 Fake the window styles here instead of in XplatUIWin32 so that all
9663 back-ends get the same window styles (and it's Form that's deciding when
9664 to use wm, not the Win32 backend anyways)
9665 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
9666 they are now passed a CreateParams and they only use Style and ExStyle
9667 to determine the rectangles (they should now work just like
9668 Win32AdjustWindowRectEx - though quite a few special cases are probably
9669 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
9670 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
9671 sizes) are taken from the current theme. Added a GetBorders helper
9672 function that will return the borders for any given CreateParams
9673 (including captions and menus), and GetBorderSize that returns the given
9675 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9676 Hwnd.GetClientRectangle.
9678 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9680 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
9681 layout of the mdi children is handled by CreateParams. Fixes
9684 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9686 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
9689 * Form.cs: When active tracker mouse down is not processed, send event
9690 back to control inside mouse position. [Fixes #81227]
9692 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9694 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
9695 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
9696 stealing focus from the active form on Windows. (Control will be made
9697 visible in ShowWindow.)
9699 2007-03-29 Mike Kestner <mkestner@novell.com>
9701 * ImageList.cs : add internal Changed event.
9702 * ListView.cs : hook up to StateImageList.Changed to perform
9703 invalidations when the the state icon list changes. [Fixes #81191]
9705 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9707 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
9708 to prevent tooltips from stealing focus from the active form on Windows.
9710 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9712 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
9714 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
9716 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9718 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
9721 2007-03-29 Jackson Harper <jackson@ximian.com>
9723 * TextControl.cs: When deleting text from non multiline textboxes,
9724 we need to update the entire document, because line offsets will
9727 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9729 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
9730 added to theme, now we can create themes that uses diferent notify engines
9731 like notification-daemon from galago project or growl for Mac OS.
9733 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9735 * NotifyIcon.cs: Prevent Balloon to show in task bar.
9737 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9739 * XplatUIX11.cs: Prevent system to open more than one balloon.
9741 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
9742 some compiler warning messages.
9744 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9748 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
9750 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
9751 implemented, this methods is used by NotifyIcon.BalloonWindow class.
9753 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
9756 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9758 * ListViewItem.cs: Forgot to make Invalidate internal.
9760 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9762 * ListView.cs: Add a InvalidateSelection method to
9763 invalidate methods which are currently selected, and call
9764 it when setting FullRowSelect and HideSelection, instead of
9767 2007-03-28 Chris Toshok <toshok@ximian.com>
9769 * XplatUIX11.cs (UnmapWindow): reindent this block.
9771 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
9772 the selection_start if we're moving the selection (that is, not
9773 extending it). Fixes bug #80461.
9775 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9777 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
9778 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
9779 create private ControlCollection.
9781 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9783 * Control.cs: We need to call OnVisibleChanged for our implicit
9784 children as well as our normal children. Fixes scrollbars in
9785 comboboxes not showing up.
9787 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9789 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
9790 the check for IsHandleCreated first. The check in CreateHandle is not
9791 good enough because CreateHandle can be overriden, and the override
9792 should not be called if the handle is already created.
9794 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9796 * ToolStrip.cs: Remove MonoTODO for tooltips.
9797 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
9798 * ToolStripContainer.cs: Add custom ControlCollection class.
9799 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
9800 * ToolStripDropDown.cs: Add some missing properties/methods.
9801 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
9802 * ToolStripItem.cs: Remove MonoTODO for tooltips.
9803 * ToolStripManager.cs: Add IsShortcutDefined.
9804 * ToolStripOverflow.cs: Override LayoutEngine.
9805 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
9806 * ToolStripSeparator.cs: Add ImageKey.
9808 2007-03-28 Jackson Harper <jackson@ximian.com>
9810 * TextControl.cs: If a char delete removes a line ending, we need
9811 to update the ending style.
9812 - Make sure the line ending calcs get called.
9814 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9816 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
9817 it was making the new code not work. Fixed a typo in the new code
9818 as well. Fixes #79826.
9820 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9823 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
9824 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
9825 - SystrayBalloon method implemented.
9826 [Add support for notifyicon balloon on win32, #79149]
9828 2007-03-27 Mike Kestner <mkestner@novell.com>
9830 * ThemeWin32Classic.cs : update StateImageList selection to mirror
9831 the ms behavior when only one image is added to the list.
9834 2007-03-27 Jackson Harper <jackson@ximian.com>
9836 * TextControl.cs: Improvements to non multiline line ending
9839 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9841 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
9843 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9846 - Balloon message handling added.
9847 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
9849 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9850 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
9851 to SystrayBalloon to me like other Systray method, also a
9852 handle parameter added.
9854 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9856 * ListView.cs: Show scrollbars even when items.Count == 0
9857 but the columns Width is bigger than the ListView.Width.
9858 Also, when columns.Count == 0 set layout_wd and layout_ht
9859 to the ClientRectangle values, so we don't show any scrollbar
9862 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9864 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9866 2007-03-27 Jackson Harper <jackson@ximian.com>
9868 * RichTextBox.cs: The RTF library decodes the text properly for us
9871 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9873 * ListView.cs: Display HeaderControl even when columns.Count == 0.
9874 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9875 ListView header (HeaderControl), instead of Control.BackColor.
9877 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9879 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9880 Fixes tab control issues where controls would not show up because they
9881 never received their OnVisibleChanged call.
9883 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9885 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9888 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9890 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9891 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9892 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9893 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
9894 the handle. Fix WindowState by using the internal variable until we are
9895 sure that we've been shown.
9896 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9900 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
9902 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9903 (at least borders). Fixes #79386 on Linux (with a small difference
9904 in behaviour: when trying to resize a caption-less window metacity
9905 shows the sysmenu. Resizing is still possible though).
9906 * XplatUIWin32.cs: When setting window styles send request an extra
9907 WM_NCCALCSIZE when it's a form without title (due to no text and no
9908 caption), since Win32 seems to calculate it wrong the first time we
9909 get the message, though the second time things work as they should.
9910 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9911 newly reparented window might show up unparented. Update
9912 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9913 there's no title text. Fixes #79386.
9915 2007-03-27 Mike Kestner <mkestner@novell.com>
9917 * ListBox.cs : don't perform invalidations if the handle hasn't been
9918 created. [Fixes #80753]
9920 2007-03-27 Mike Kestner <mkestner@novell.com>
9922 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9925 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9927 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
9928 needed to implement Balloon.
9930 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9932 * ListViewItem.cs: In the constructors that take
9933 an array of strings, don't use ListViewSubItemCollection.AddRange
9934 method to add items, since we need to have a different behaviour (in
9935 the constructors we add an item for each null string, opposed to
9936 the behaviour of AddRange, which adds nothing).
9938 2007-03-26 Andreia Gaita <avidigal@novell.com>
9940 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9942 2007-03-26 Jackson Harper <jackson@ximian.com>
9944 * TextControl.cs: Draw and measure line endings when in non
9946 - When searching the text, count the end of the last line as a
9949 2007-03-26 Jackson Harper <jackson@ximian.com>
9951 * RichTextBox.cs: The selection_start and selection_end don't
9952 really track the correct tags for the selection. So we'll manually
9953 compute the correct tag here.
9955 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9957 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9958 and Continuous styles. Fixes #79469.
9960 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9962 * ToolStrip.cs: Implement Tooltips.
9963 * ToolStripItem.cs: Create internal method for determining tooltip.
9965 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9967 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9969 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9971 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9972 it prevents a problem thak keeps icon visible after application
9975 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9977 * NotifyIcon.cs: Balloon properties and methods created.
9979 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9980 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9982 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
9984 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
9986 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9988 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
9989 parameter indicates which aspects were explicit/user-set.
9990 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
9992 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9994 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
9995 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
9996 SmallChange, and Value (2.0).
9997 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
9999 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10001 * ListView.cs: Always set item_control.Width in LayoutDetails
10002 if View is Details. Setting it later in CalculateScrollBars
10003 in a not-so-corner scenario (the sum of columns width is
10004 not bigger than the ListView width when handle is created, and then
10005 that sum gets bigger by increasing the width of the columns)
10006 causes a very weird recursion path (which shouldn't be happening,
10007 since header_control sets it in CalculateScrollBars too). This bug
10008 appeared after Chris' fixes for handle created issues, so probably
10009 it's related to some handle-creation time.
10011 2007-03-23 Chris Toshok <toshok@ximian.com>
10013 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10014 case where there's an add row, just so we don't end up in a case
10015 where it's not displayed (this happens when the row is partially
10016 obscured). Fixes bug #79574.
10018 2007-03-23 Jackson Harper <jackson@ximian.com>
10022 * RichTextBox.cs: Preserve line endings in the lines text buffer,
10023 also added an enum that represents the line ending type.
10025 2007-03-23 Andreia Gaita <avidigal@novell.com>
10027 * NumericUpDown.cs: Fix logic so Text and Value properties are not
10028 messed with in every method call, but only from DownButton,
10029 UpButton, UpdateEditText() and ValidateText. Fixes #80346
10031 2007-03-23 Chris Toshok <toshok@ximian.com>
10033 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
10034 format objects if the format spec is "". Fixes bug #80889.
10036 2007-03-22 Miguel de Icaza <miguel@novell.com>
10038 * ToolStripPanel.cs (Join): added stubs to build PDN3
10040 * Control.cs (AutoScrollOffset): Add.
10042 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
10043 property, its only implemented for Win32, on X11 it defaults to
10044 some hardcoded value.
10046 * ToolStripItem.cs (AllowDrop): Add property
10048 2007-03-22 Mike Kestner <mkestner@novell.com>
10050 * ListView.cs : in FullRowSelect Details mode, only enable box
10051 selection if the user clicks over the "item" column outside of the
10052 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
10054 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10056 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
10057 handle is not created yet.
10058 * Form.cs: Select: Don't call CreateHandle if the handle is already
10059 created, avoids a stack overflow on Windows when we are recreating
10061 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
10062 they are made visible, and override AfterTopMostControl to keep
10063 them on top when other controls are brought to front.
10064 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
10065 or force_*scroll_visible is true (old implementation always shows
10066 scrollbars when needed, no matter what auto_scroll was set to).
10067 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
10068 IsHandleCreated check.
10070 2007-03-22 Andreia Gaita <avidigal@novell.com>
10072 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
10073 row or col separator.
10074 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
10076 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10078 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
10080 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10082 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
10083 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
10084 every time. Fixes #80410.
10086 2007-03-22 Chris Toshok <toshok@ximian.com>
10088 * BindingSource.cs (AddNew): partially implement.
10090 remove a couple of NotImplementedException's
10091 to get bug #81148 closed.
10093 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10098 - UpdateCursor method added to update the screen cursor.
10099 - GetAvailableCursor method added to return cursor for enabled tree,
10100 it searches for cursor on control and it's parent's for enabled control.
10101 - Call UpdateCursor method on setter of Cursor property.
10102 - On setter of Enabled call UpdateCursor when it is false, we need to
10103 change cursor to normal (or to this parent cursor) because cursor
10104 setting theres no effect to disabled controls.
10105 - Some minor source changes to follow the coding style guidelines.
10107 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
10110 2007-03-22 Chris Toshok <toshok@ximian.com>
10112 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
10115 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10117 * XplatUIX11.cs: Implement default locations for forms.
10118 * Form.cs: Completely rework startup location for forms. Fixes #79964.
10119 * Hwnd.cs: Add previous_child_startup_location (to track the current
10120 startup location for any child forms of the current form) and
10121 previous_main_startup_location (to track the startup location for
10122 the current toplevel form).
10124 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10126 * Control.cs: Don't trigger a layout if an implicit control is added
10127 that isn't visible. Also, don't notify the owner when an implicit control
10128 is added. (Owners shouldn't even know about their implicit controls.)
10130 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10132 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
10133 to save some re-layouts.
10135 2007-03-21 Everaldo Canuto <everaldo@simios.org>
10137 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
10140 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10142 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
10143 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
10145 2007-03-21 Mike Kestner <mkestner@novell.com>
10147 * ListView.cs : disable selection update for non-left button clicks
10148 with mods and over selected items. [Fixes #80524]
10150 2007-03-20 Jackson Harper <jackson@ximian.com>
10153 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
10156 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10158 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
10159 very probably a more complicated calculation there. Update the
10160 textbox' ForeColor and BackColor when the ComboBox' colors are
10161 changed. Change the border change in LayoutComboBox to only affect
10162 the textbox, not all the calculations there. Seems to fix most of
10165 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10167 * ComboBox.cs: Handle Home and End keys as well as all combinations of
10168 modifiers + navigation keys as input keys, enables advanced text
10169 selection in the combobox (like Shift+Left Arrow for instance).
10170 ComboTextBox now overrides Focused and returns whatever
10171 ComboBox.Focused returns, since it really should be focused
10172 whenever the ComboBox is. Fixes #80795. Also make the border around
10173 the text box one pixel bigger, as mentioned in #79436.
10175 2007-03-20 Jackson Harper <jackson@ximian.com>
10177 * TreeView.cs: Don't offset the images, this was causing some
10178 artifacts when expanding/collapsing with images that were the
10179 exact height of the treenode.
10181 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10183 * TrackBar.cs: Query the theme for the correct value when the mouse
10184 moves and the thumb is pressed.
10185 * Theme.cs: Added TrackBarValueFromMousePosition
10186 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
10187 implementation was updating the trackbar value when drawing, now
10188 the drawing methods only draw. Fixes #80900. Refactored the
10189 calculations out to TrackBarValueFromMousePosition and
10190 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
10191 according to the mouse position whenever it wants to. Changed the
10192 light coloured pen when drawing the thumb from ControlLight to
10193 ControlLightLight, because the ControlLight is the same colour as
10194 the background so the 3D effect is lost.
10196 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10198 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
10199 defined. Fixes #80784.
10201 2007-03-20 Marek Habersack <mhabersack@novell.com>
10203 * ContextMenuStrip.cs: align with the change introduced in
10206 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10208 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
10209 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
10212 2007-03-19 Chris Toshok <toshok@ximian.com>
10214 * Control.cs (WmPaint): don't make use of the Handle property
10215 after an event is emitted, as the user could have closed the
10216 form/destroyed the control. Store the Handle in a local variable
10217 and make use of that. Fixes bug #80768.
10219 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10221 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
10222 behavior in X11 environments.
10224 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10226 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
10227 because on setter of topmost we dont call SetTopmost when handle is not
10230 2007-03-20 Jackson Harper <jackson@ximian.com>
10232 * TextControl.cs: Need to use SelectionLength () not
10233 selection_length, since that var is reset to -1.
10234 - Draw the caret when we don't have focus.
10235 * TextBox.cs: The selectall actually doesn't occur until the first
10237 * TextBoxBase.cs: Need to update the caret position after a
10240 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10242 * ListView.cs: Enable scrolling when using Tile view.
10244 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10248 * XplatUIDriver.cs: Abstract SetOwner method created.
10250 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
10251 must be implemented and was masked as todo.
10253 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
10256 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
10257 cheking for null owner to remove transient. The SetTopmost will be change
10260 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
10261 SetTopmost. Now owned forms will work properly in win32 and X11.
10263 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10265 * MdiWindowManager.cs: Update function name.
10266 * Form.cs: After closing a form MdiParent is always null.
10267 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
10268 better what it should do: necessary book-keeping when the form is
10269 closed, it should not close the form itself.
10271 2007-03-19 Andreia Gaita <avidigal@novell.com>
10273 * ListViewItem.cs: Fix back and fore color. The subitems only
10274 use their own colors if they are set, otherwise use the listview's
10275 colors. Don't set default colors on constructor for subitem.
10278 2007-03-19 Mike Kestner <mkestner@novell.com>
10280 * ListView.cs : make box selection for Details views with
10281 FullRowSelect conform to MS behavior when clicking in the "item"
10282 column and clicking outside the defined columns.
10283 [Fixes case 5-6 of #80374]
10285 2007-03-19 Chris Toshok <toshok@ximian.com>
10287 * ScrollableControl.cs: create the controls from within the ctor,
10288 but don't actually add them until our handle is created. this
10289 fixes a NRE possibility jpobst found (if you override OnLayout in
10290 a subclass, it's called before your ctor). Also, add a
10291 IsHandleCreated guard to UpdateSizeGripVisibility as well.
10293 2007-03-19 Jackson Harper <jackson@ximian.com>
10295 * TextBox.cs: Reduce the amount of invalidation we do.
10296 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
10297 some of them are true by default on MS.
10298 - Add some functions to reduce the amount of invalidates we do.
10299 * TextControl.cs: Less invalidation.
10301 2007-03-19 Chris Toshok <toshok@ximian.com>
10303 [ Fixes #81773, and *seems* to fix #81553 as well ]
10305 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
10306 AccumulateDestroyedHandles. We need to do it *after* we send
10307 WM_DESTROY, as the user's code can access Control.Handle in
10308 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
10309 move the WM_DESTROY/zombie handling to before the call to
10310 XDestroyWindow. For some reason without this ordering
10311 FormTest.RecreateHandle hangs. This ordering is semantically
10312 equivalent, however, as XDestroyWindow is async anyway.
10314 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
10316 * RichTextBox.cs: Reset backcolor_set after setting default.
10318 2007-03-19 Chris Toshok <toshok@ximian.com>
10320 * ScrollableControl.cs: the scroll position should not effect the
10321 canvas size. commit patch from georgegiolfan@yahoo.com, which
10322 fixes some really bizarre behavior on resizing. Fixes bug #80778.
10324 2007-03-19 Chris Toshok <toshok@ximian.com>
10326 * ScrollableControl.cs: clean this up a bit. create the
10327 scrollbars in the ctor and just show/hide them as needed. Also,
10328 make hscroll_visible/vscroll_visible internal to Recalculate, and
10329 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
10330 everywhere else. This seems to fix the scrollbars appearing
10331 beneath the content for me (i have *no* idea why that is,
10334 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
10336 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
10337 some redundacy for stuff in Anchor and Dock that base will take care of.
10340 2007-03-19 Mike Kestner <mkestner@novell.com>
10342 * ListView.cs : make box selection for Details views without
10343 FullRowSelect dependent on the text bounds, not item bounds.
10344 * ListViewItem.cs : add an internal property to obtain the TextBounds
10345 in Details view. [Fixes case 1-4 of #80374]
10347 2007-03-19 Andreia Gaita <avidigal@novell.com>
10349 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
10350 we're < 2.0. #78448 && #80316
10352 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
10354 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
10355 have the same style available as the previously selected one. Also,
10356 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
10358 2007-03-19 Jackson Harper <jackson@ximian.com>
10360 * TextControl.cs: Add an alignment property that all new lines
10362 - Make sure to use the align shift when calculating the line's X
10364 * TextBox.cs: Set the alignment on the document as well as on all
10365 the document lines.
10367 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10369 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
10370 throw if setting the parent of an mdichild that already has an
10371 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
10372 AssemblyProductAttribute in the assembly, use the type's namespace (as
10373 MS seems to do). CreateControl: don't create the handle if the control
10374 is not visible (according to MS behaviour and spec). SetTopLevel: Only
10375 create handle if the control is not a form. Change FocusInternal to
10376 virtual so that it can be overriden by Form.
10377 * TextBox.cs: Update call to FocusInternal.
10378 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
10379 form is not a toplevel form when it's a mdi child, so update is_toplevel
10380 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
10381 hasn't been created. Show (IWin32Window): Don't allow this overload for
10382 toplevel windows. CenterToParent/CenterToScreen/Select: create the
10383 handle as MS does. SetVisibleCore: if called on a MdiChild and the
10384 parent isn't visible yet, save the visibility and restore it when the
10385 parent is made visible.
10386 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
10387 methods, since the visibility of the scrollbars can be changed from
10388 several places, not only from AutoScroll.
10391 2007-03-19 Jackson Harper <jackson@ximian.com>
10393 * RichTextBox.cs: Enable shortcuts by default.
10394 * TextBoxBase.cs: Add conditional shortcuts.
10396 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10398 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
10400 2007-03-19 Chris Toshok <toshok@ximian.com>
10402 [ Fixes bug #80604]
10404 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
10405 swallow the message we're waiting on, instead of delivering it, as
10406 this is only used for the WM_SHOWWINDOW raised from
10407 MapWindow/UnmapWindow, and the message needs to be generated
10408 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
10409 before doing the Map/Unmap. Also make sure that the Hwnd is still
10410 alive after the message has been handled.
10412 *before* the window is shown.
10414 * Control.cs (CreateControl): guard a few more things inside the
10415 if (!is_created) block, as we might end up being called again -
10417 (WmShowWindow): call CreateControl if we're showing the control.
10419 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10421 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
10422 controls without a handle if they have any parent with a handle. In
10423 Dispose add a check whether the handle is created or not before
10424 calling BeginInvoke, this removes the need of the extra disposing
10425 parameter (which was bogus anyway since it didn't prevent the
10426 invoke from happening, it only skipped the check for an existing
10427 handle, meaning that the invoke would call on an inexistent
10430 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10432 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
10433 appears in taskbar.
10435 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10438 - Fixed a problem that dont show help button for messages with 3 buttons.
10439 - Refactory button size and position calculations, now dont use fixed
10440 values, also fixed button sizes (#80043) and form's border space.
10441 - AddButton method created, now all other AddButton methods call this one.
10442 - Some other source code cosmetic changes.
10444 2007-03-18 Jackson Harper <jackson@ximian.com>
10446 * RichTextBox.cs: Don't do this all fonts must match check if
10447 there is only one char selected.
10449 2007-03-18 Jackson Harper <jackson@ximian.com>
10451 * TreeView.cs: ScrollWindow works properly now, so we don't need
10452 to screw around with the scroll area. This fixes some artifacts
10453 when expanding and collapsing.
10455 2007-03-18 Jackson Harper <jackson@ximian.com>
10457 * TextBoxBase.cs: Allow updating the selection position when the
10458 cursor is outside the textarea, but we have a capture.
10459 * TextControl.cs: A special case for when the cursor is outside
10460 the bounds of the TB.
10462 2007-03-18 Jackson Harper <jackson@ximian.com>
10464 * TextBoxBase.cs: Remove image pasting code for now. There is no
10465 way to get an image on the clipboard right now anyways.
10467 * RichTextBox.cs: Use the new RTF Picture class for pictures.
10469 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10472 - Set window properties in constructor intead of on CreateParams.
10473 - Remove topmost from Window ExStyle.
10474 - Set ShowInTaskbar to false.
10475 - Set form border to FixedDialog.
10476 - Some cosmetic changes and remove unneeded comments.
10477 - It fixes itens 2,3 and 4 of bug #80043.
10479 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
10481 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
10482 none was explicitly set. Fixes part of bug #79949.
10484 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10486 * ToolStripComboBox.cs: Add AutoComplete*.
10488 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10490 * ToolStripComboBox.cs: Add FlatStyle.
10492 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10494 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
10495 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
10497 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10499 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
10500 CheckBox.cs, RadioButton.cs, BindingSource.cs,
10501 DataGridColumnStyle.cs: Remove warnings.
10503 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10505 * Menu.cs: MergeMenu: Check menu argument for null before looping over
10507 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
10508 visibility of mdi child forms. FormSizeChangedHandler: update the
10509 maximized size if size has changed while maximized.
10510 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
10511 creating the handle.
10512 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
10513 avoid creating the handle if not created.
10514 * XplatUI.cs: Update debug output.
10515 * XplatUIStructs.cs: Added ToString's for a couple of structs.
10517 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10519 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
10521 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
10522 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
10523 Implement keyboard shortcuts.
10525 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10527 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
10528 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
10529 ColorDialog and all derived classes.
10531 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10533 [ Fixes bug #79828 ]
10536 - Rename ToolBarButtonInfor to ToolBarItem.
10537 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
10538 - Maintain an array of ToolBarItem, used instead of ToolBarButton
10539 collection to be able add same button more than one time on a toolbar.
10540 - Refactory all properties and methods to use ToolBarItem.
10542 * ToolBarButton.cs:
10543 - Remove all propeties and methods that is now in ToolBarItem.
10544 - Rectangle propery now gets the rectangle from first ToolBarItem to
10545 mimic win32 behavior.
10546 - Size calculation and layout methods also removed.
10548 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
10549 ToolBarItem instead of ToolBarButton to right drawing buttons when
10550 same button/separator was added more than one time to ToolBar.
10552 * ThemeNice.cs: Same as above.
10554 2007-03-15 Andreia Gaita <avidigal@novell.com>
10556 * XplatUIX11.cs: Fire extra MouseMove events right after
10557 MouseDown and MouseUp, emulating win32's <censored> behaviour
10558 for apps that rely on it.
10560 2007-03-15 Jackson Harper <jackson@ximian.com>
10563 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
10564 it is drawn on the controls client window and there is no NC
10566 - Set the background color to gray on 2.0 when we are readonly.
10568 2007-03-15 Chris Toshok <toshok@ximian.com>
10570 [ Fixes bug #81144 ]
10572 * XplatUIX11.cs: implement VirtualScreen independently of
10573 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
10576 2007-03-15 Chris Toshok <toshok@ximian.com>
10578 * Hwnd.cs: add an internal field for the cached_window_state.
10580 * XplatUIX11.cs: cache the window state, invalidating the cache
10581 (and thus re-querying the X server) only when we see an update to
10582 the _NET_WM_STATE property.
10584 2007-03-15 Chris Toshok <toshok@ximian.com>
10586 * BindingSource.cs: get a lot of the unit tests working.
10588 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10590 * Control.cs: Modify UpdateStyles to store distances when bounds >=
10591 0 instead of just bounds > 0. [Fixes bug #80912]
10593 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10595 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
10598 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
10600 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
10601 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
10602 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
10603 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
10605 2007-03-15 Chris Toshok <toshok@ximian.com>
10609 * Control.cs: add Ivan's fix for 81101, with a slight modification
10610 - you can set control.Target to null.
10612 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
10614 * ToolStripItem.cs: If our OwnerItem is null, we can't use
10615 HideDropDown, use Hide instead to prevent an NRE.
10618 2007-03-14 Jackson Harper <jackson@ximian.com>
10620 * TextBoxBase.cs: Mess with the creation stuff a little. We need
10621 to calculate the document before the handle is created, in some
10622 cases. (Actually just one case).
10624 2007-03-14 Jackson Harper <jackson@ximian.com>
10626 * TextBoxBase.cs: Need to display the caret after letting the base
10627 wndproc handle the focus methods, because the caret display
10628 methods check the focus state.
10629 - Try to display the caret after updating it's position with SelectWord.
10630 - Don't need to do an immediate update on this recalc, since there
10631 will be an invalidate anyways.
10633 2007-03-14 Jackson Harper <jackson@ximian.com>
10635 * TreeView.cs: Some workarounds so that we can match event order a
10638 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
10640 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
10641 #80803. Avoid NullReferenceException when Control does not have
10642 parent. Fixed different blinkstyle issues. Only subscribe to Tick
10643 event a single time. Only draw error icon when control is created and
10644 visible. Fixes failing unit tests.
10646 2007-03-14 Andreia Gaita <avidigal@novell.com>
10648 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
10649 Selecting events. Fire Leave and Enter events when changing tabs.
10651 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
10653 * TreeView.cs: Add TreeViewNodeSorter.
10654 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
10656 2007-03-14 Chris Toshok <toshok@ximian.com>
10658 * Form.cs: go ahead and remove the RecreateHandles that jpobst
10659 removed earlier and I had him add back it. It turns out metacity
10660 *does* in fact handle the MOTIF_WM_HINTS property changing, it
10661 just doesn't redraw the window titlebar until you resize the
10662 window. This also means we aren't recreating the entire window
10663 hierarchy on X when you change this property. And it looks better
10666 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10669 * ListView.cs: Collecting selection information
10670 is now done in SelectedIndexCollection rather than in
10671 SelectedListViewItemCollection. This is done so we can
10672 have the selection information code in one single place
10673 (virtual mode selection information entirely depends on
10674 SelectedIndexCollection).
10676 2007-03-13 Miguel de Icaza <miguel@novell.com>
10678 * ErrorProvider.cs: Add stubs for ISupportInitialize
10680 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10682 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
10683 in the right order with the right values, from the Checked property,
10684 just as MS does (instead of triggering them from ListView).
10686 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
10688 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10690 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
10691 the correct handler in OnItemCheck method (ItemCheckEventHandler
10692 instead of EventHandler). This used to throw an InvalidCastException.
10694 2007-03-13 Jackson Harper <jackson@ximian.com>
10696 * TextBoxBase.cs: Calculate the document before the handle is
10697 created, so there isn't an extra invalidate called.
10699 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
10701 * Form.cs: Don't set owner in ShowDialog until we are sure
10702 that we aren't going to throw an exception. [Fixes bug #80773]
10704 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
10706 * TreeView.cs: Make it compile.
10708 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10710 * Control.cs: Another place we don't call SizeFromClientSize.
10711 * Form.cs: Another place we don't call SizeFromClientSize.
10714 2007-03-12 Jackson Harper <jackson@ximian.com>
10716 * TreeView.cs: Basically emulating some strangness here with
10717 exanding nodes and setting node positions when windows aren't
10719 - Also attempting to walk the node tree less than previously, and
10720 just use visible order calculations for determining offsets.
10721 - oops made scrolling backwards.
10722 * TreeNode.cs: We need to start nodes with a zero visible order,
10723 because the order calcs are based on the first nodes order.
10725 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10727 * Form.cs: Don't exit the program if RecreateHandle is called on
10730 2007-03-12 Chris Toshok <toshok@ximian.com>
10732 * XEventQueue.cs: remove the use of PostQuitState.
10734 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
10735 WM_QUIT message in GetMessage, return false (and if we're in the
10736 nested WaitForHwndMessage, repost the WM_QUIT message).
10738 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10740 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
10741 or the MaximizeBox properties. [Part of bug #80640]
10743 2007-03-12 Everaldo Canuto <everaldo@simios.org>
10745 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
10748 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10750 * ToolStripItem.cs: Fix some tests I broke by checking Visible
10751 instead of visible.
10753 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
10755 * FileDialog.cs: Use text of File name combobox to determine what
10756 files the user selected. Added tokenizer to parse the file names.
10759 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10761 * Control.cs: We can't call SizeFromClientSize in the constructor,
10762 but we still need to do the same work, so make an internal version.
10765 2007-03-12 Jackson Harper <jackson@ximian.com>
10769 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
10772 2007-03-12 Jackson Harper <jackson@ximian.com>
10774 * TextBoxBase.cs: Now that the handles are being created a little
10775 later, we need to make sure that the document is recalculated when
10776 the handle is created.
10778 2007-03-11 Everaldo Canuto <everaldo@simios.org>
10780 * Theme.cs: GetLinkFont abstract method added.
10783 - Remove CalcTrimRectangle, no longer needed.
10784 - Factor also remove, position issues must be fixed in libgdiplus.
10785 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
10786 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
10787 care about font used to draw links.
10788 - Set TabStop to true when control is "Selectable", control is selectable
10789 when have one or more links. Fixes #80501 (test case is also added).
10790 - Set the LinkArea values after links change, LinkArea values must be
10791 based in first link position and size, a test case was created.
10792 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
10793 the attribute must be true LinkArea.Length > 0. The same was applied to
10796 * ThemeWin32Classic.cs:
10797 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
10799 - Use CPDrawStringDisabled to draw disabled text instead of hard code
10801 - Draw focus rectangle for every parts focused, including parts that
10802 is on another line, its because regions returns various rectangles
10803 and not only one. Needed to mimic W32 look.
10804 - Uses Graphics.Clip to delimite region painted, it mean that now
10805 complete text is passed to DrawString, with this we solve layout
10806 issues without create another text renderer.
10807 - Uses Region.Intersect to fix some flickers problems, now only needed
10808 parts will redrawed.
10809 - This changes fixes #79614 and some other unreported issues, on Linux
10810 some layout problems still remain, the problem is under
10811 MeasureCharacterRanges but it is an libgdiplus bug.
10813 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
10815 * TextBox.cs: Set for foreground color.
10816 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
10817 this is already done in Control.
10819 2007-03-10 Jackson Harper <jackson@ximian.com>
10821 * TextBox.cs: Set the background color, but reset the
10822 backcolor_set flag which is just for the user setting the
10825 2007-03-09 Chris Toshok <toshok@ximian.com>
10827 * Control.cs: really remove the call to XplatUI.SetVisible from
10828 CreateHandle(), like I said I did when I merged the branch.
10830 * BindingSource.cs: implement some more of this stuff.
10832 2007-03-09 Jackson Harper <jackson@ximian.com>
10834 * TextBox.cs: Don't explicitly set our background colors.
10836 * TextBoxBase.cs: Draw readonly text.
10837 - Need to invalidate when backcolor or readonly are changed.
10839 2007-03-09 Jackson Harper <jackson@ximian.com>
10841 * TextBoxBase.cs: Don't set the forecolor until the handle is
10843 - Do not raise OnPaint, and removed some old debug code.
10845 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
10847 * ScrollableControl.cs: Fix mouse wheel scrolling.
10849 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10851 * Control.cs: Wire up MouseDoubleClick event.
10853 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10855 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10857 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10858 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10859 item is added. This logic was moved to ToolStrip.OnItemAdded.
10862 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10866 2007-03-08 Jackson Harper <jackson@ximian.com>
10868 * TreeView.cs: Show the correct image for selected node (this used
10869 to work, not sure how the code got deleted). Also implemented 2.0 feature
10872 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10875 * ListViewItem.cs: Cache index in items when retrieving them
10878 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10880 * ToolStripItem.cs: Don't return the explicit_size if we are using
10881 AutoSize. Fixes invalidation issue when user has explicitly set a
10882 size and has AutoSize = true.
10884 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10886 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10888 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10890 * DataGridView.cs: Remove event handler from DataView when a
10891 DataTable is used as DataSource.
10893 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10895 * Control.cs: Create internal setter for client_size to allow it to be
10896 set without triggering resizing code.
10897 * Form.cs: Calculate client_size in constructor, only change client_size
10898 in FormBorderStyle property if Handle has been created.
10899 [Fixes #80574, #80791]
10901 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
10903 * SystemInformation.cs: Add TerminalServerSession.
10905 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10907 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10910 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10912 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10913 Handle before we were supposed to. Now checks ActivateOnShow property
10915 * Control.cs: Add internal ActivateOnShow property.
10916 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10917 for ActivateOnShow.
10918 * Hwnd.cs Remove no longer needed no_activate field.
10920 2007-03-07 Jackson Harper <jackson@ximian.com>
10922 * TreeView.cs: Implement owner draw tree nodes. And a couple more
10924 * DrawTreeNodeEventHandler.cs: Add
10925 * DrawTreeNodeEventArgs.cs: Correct default value.
10927 2007-03-07 Chris Toshok <toshok@ximian.com>
10929 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10930 to be called before NativeWindow.WndProc. Put the HwndCreating
10931 magic there to hook up our Hwnd's to handles.
10933 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
10935 * DataGridView.cs: Comment out debug code.
10937 2007-03-07 Chris Toshok <toshok@ximian.com>
10939 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10940 to make the rest of the world happy]
10942 * Control.cs (CreateHandle): there's no need to call
10943 XplatUI.SetVisible here, it's effectively done by
10944 XplatUI.CreateWindow on X now, and always was on windows.
10946 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10947 shortcircuit out of the loop if we have a message loop running on
10950 [Changelog from merge]
10952 2007-03-05 Chris Toshok <toshok@ximian.com>
10954 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10955 causes handle creation.
10957 2007-02-28 Chris Toshok <toshok@ximian.com>
10959 * ApplicationContext.cs: Add a flag to make sure we only raise the
10960 ThreadExit event once (ExitThreadCore can be indirectly called
10961 from a few places.) I don't like the additional flag, but it
10962 makes the event ordering/count correct.
10964 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10965 without locking the collection. An enumerator doesn't give us any
10966 protection from modification anyway. Lock the thread hash and
10967 replace the complicated enumerator loop with a foreach.
10968 (Application.CloseForms): make internal so it can be called from
10969 ApplicationContext. This should probably be moved to MWFThread.
10970 (Application.ExitThread): don't call MWFThread.Current.Exit()
10971 here. just call XplatUI.PostQuitMessage. We'll exit the thread
10972 when the runloop exits (in response to WM_QUIT.)
10973 (Application.RunLoop): add a comment (and check) for
10974 context.MainForm being null after setting context.MainForm.Visible
10975 = true. This is because you're perfectly free to dispose of a
10976 form in VisibilityChanged. Chalk this up to another case where we
10977 need to synchronously generate WM_ACTIVATE from Control.Show.
10978 Also, add handling for WM_QUIT here so we'll exit the loop.
10980 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
10981 fact that we don't wait if we're only unmapping the whole_window
10982 makes me a bit nervous, but it doesn't seem to cause any problems
10985 also, add a comment about the stupid, broken and wrong resetting
10986 of PostQuitState to false in GetMessage().
10988 In PostQuitMessage, we need to add a WM_QUIT message to the
10989 thread's queue. We use the FosterParent to get the right
10992 Lastly, in SetVisible, we need to unmap both windows, since the
10993 waiting only happens when we're unmapping the client window. So
10994 now, the *only* time we unmap just the whole_window is in the hack
10995 for resizing a control to 0,0.
10997 2007-02-21 Chris Toshok <toshok@ximian.com>
10999 * Application.cs (CloseForms): rewrite this so that we don't
11000 modify the list while we're traversing it.
11002 2007-02-20 Chris Toshok <toshok@ximian.com>
11004 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11005 of OnHandleCreated.
11006 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11007 handle is created. otherwise we'll create it here.
11008 (VerticalScrollEvent): same here.
11010 * Application.cs (CloseForms): call Form.Dispose, don't post
11013 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11014 here. Application should Dispose() of the Form's.
11016 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11017 WM_DESTROY as well.
11018 (MapWindow,UnmapWindow): only actually do the waiting for
11019 SHOWWINDOW if the control we're dealing with is a Form.
11020 (CreateWindow): if the control isn't a form, SendMessage
11021 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
11023 * Control.cs (SetVisibleCore): always use is_visible here, not
11024 value. If we use value, we can end up re-setting something
11025 visible if, for instance, you do Control.Hide() in a delegate
11026 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
11028 2007-02-20 Chris Toshok <toshok@ximian.com>
11030 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
11031 the message we need. PeekMessage returning false should not be a
11032 condition under which we exit the loop.
11034 2007-02-15 Chris Toshok <toshok@ximian.com>
11036 * Control.cs (Refresh): only refresh if we've got a handle and are
11038 (CreateAccessibilityInstance): CreateControl() here.
11039 (UpdateChildrenZOrder): complicate the code loop even more by
11040 taking into account controls that haven't had their handle
11041 created, and those that aren't visible. But on the flip side,
11042 simplify the code by splitting it into two loops. one which
11043 builds up the list of child controls we're interested in, and the
11044 other that sets the z order of those children.
11046 2007-02-14 Chris Toshok <toshok@ximian.com>
11048 * Control.cs: Control.AccessibilityObject causes the control to be
11049 created, not just the handle.
11051 2007-02-14 Chris Toshok <toshok@ximian.com>
11053 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
11054 problem on X where a window might have its handle created (and be
11055 visible) while the window is unmapped. calling XConfigureWindow
11056 on an unmapped window is bad, and generates X errors.
11058 2007-02-13 Chris Toshok <toshok@ximian.com>
11060 * Control.cs (CreateHandle): don't loop over our children setting
11061 their parent here. do it when in WndProc when we're shown.
11062 (UpdateChildrenZOrder): make this internal so we can call it from
11064 (WndProc): for WM_SHOWWINDOW, reparent the child control after
11065 creating its handle. Also, remove the calls to PerformLayout from
11066 here. they're done in ScrollableControl.OnVisibleChanged. Also,
11067 OnVisibleChanged only seems to be called directly here for the
11068 toplevel control. It's propagated down the window hierarchy by
11069 calls to child.OnParentVisibleChanged.
11070 (OnVisibleChanged): don't do layout here - it's done (oddly
11071 enough, according to a glance at stack traces on ms.net..) in
11074 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
11075 z order of our children before calling PerformLayout.
11077 2007-02-12 Chris Toshok <toshok@ximian.com>
11079 [big change, fixes #80020]
11081 * AccessibleObject.cs: we need to make owner internal again to fix
11082 some of ControlAccessibleObject.
11084 * Control.cs: lots of changes here. add support for WM_CREATE,
11085 for which we generate OnHandleCreated. Remove the OnHandleCreated
11086 call from CreateHandle. Also add support for WM_SHOWWINDOW where
11087 we create child controls. leave the MonoTODO's for the
11088 accessibility calls, but fix the exceptions so the tests pass.
11090 Add the InvalidOperationExceptions to Invoke methods, and remove a
11091 couple of InvokeInternal methods we aren't using.
11093 Also, add a couple of CreateHandle calls in places where we know
11094 the handles are being created but our code doesn't reference
11097 Make SetVisibleCore call OnVisibleChange if the handle isn't
11098 created. If the handle is created, we rely on XplatUI.SetVisible
11099 generating the event synchronously.
11101 Lastly, make sure we don't use this.Handle inside CreateHandle,
11102 because we can call back into client (and that code can dispose of
11105 * XplatUIStructs.cs: misc/cleanup.
11107 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
11108 although we don't populate the wParam properly.
11109 (CreateWindow): generate WM_CREATE.
11110 (MapWindow,UnmapWindow): make these calls synchronous, at great
11111 performance expense (particularly in the unmap case), to match
11114 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
11116 (set_MdiParent): don't recreate the handle unless it's been
11119 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
11122 * NativeWindow.cs: this is probably the weirdest part of the
11123 patch. We need a way to link up the window being created to the
11124 WM_CREATE message. Since we can only be creating one window at a
11125 time on a given thread, we keep track of a per-thread reference so
11126 we can dispatch it properly. We also need to keep track of the
11127 Hwnd currently being created so that the win32 backend doesn't
11130 * XplatUIWin32.cs: a similar change to the one we made in
11133 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11135 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
11136 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
11137 to draw the menu shortcut string.
11139 2007-03-07 Jackson Harper <jackson@ximian.com>
11141 * TreeNode.cs: Add the 2.0 collapse method.
11143 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11145 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
11147 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11149 * DataGridView.cs: Change DataSource will clear column and row
11150 lists. Call Invalidate() to reflect DataSource change.
11152 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11154 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
11155 and a new row is added to it.
11157 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11159 * DataGridView.cs: Add columns when DataSource is en empty list but
11160 is a System.Data.DataView (from a System.Data.DataTable).
11162 2007-03-06 Andreia Gaita <avidigal@novell.com>
11164 * Label.cs: Implement AutoEllipsis (2.0)
11166 2007-03-06 Jackson Harper <jackson@ximian.com>
11168 * TreeView.cs: Implement 2.0 TopNode setter property.
11169 - Use a local var instead of the skipped_nodes field for computing
11170 how many nodes to skip. Otherwise we won't scroll because the
11171 valuechanged handler checks if skipped_nodes is equal to the new
11173 - Implement 2.0 Sort method.
11174 - Add useless 2.0 DoubleBuffer property
11175 - Implement 2.0 LineColors property. Lets you change the color of
11176 the lines in the tree. Terribly useful for creating non cohesive
11178 - Implement 2.0 image key feature.
11180 2007-03-06 Jackson Harper <jackson@ximian.com>
11182 * TreeView.cs: We can't get the bounds of the nodes before raising
11183 the AfterSelect event, because that event could change the node's
11184 bounds (scrolling, font change, etc).
11186 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11188 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
11189 * Form.cs: Don't recreate handle when creating FormWindowManager, just
11190 update window styles. In CreateParams us VisibleInternal instead of
11191 VIsible to get the actual visible flag set for this form.
11192 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
11193 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
11194 handle the case when the form is already maximized, in which case
11195 it should be restored. Fixes #81043.
11197 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11199 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
11201 2007-03-05 Jackson Harper <jackson@ximian.com>
11203 * TreeViewHitTestInfo.cs: implement.
11205 2007-03-05 Jackson Harper <jackson@ximian.com>
11207 * InternalWindowManager.cs: class status fix.
11209 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11211 * InternalWindowManager.cs: All windows that have a parent
11212 are confined to their parent when they're being moved.
11215 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
11217 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
11218 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
11220 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11222 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
11223 buttons invisible before deciding which ones should be visible
11224 (fixes minimize/maximize buttons showing up in toolwindows). Remove
11225 an unused variable.
11226 * InternalWindowManager.cs: Remove warning.
11228 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11230 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
11231 to throw an InvalidOperationException is virtual mode is being used.
11233 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
11235 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
11236 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
11237 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
11238 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11239 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
11240 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
11242 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11244 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
11245 driver.KeyboardDelay from XplatUI.KeyboardDelay
11246 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
11247 (patch by Sergey Volk)
11249 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11251 * ToolWindowManager.cs: Added, contains logic for
11253 * CreateParams.cs: Add a few helper methods and an
11254 internal variable to know which control the CreateParams belongs
11256 * Control.cs: Call Form.ChangingParent when the
11257 parent is about to be changed.
11258 * XplatUIX11.cs: DeriveStyles (): Set
11259 caption_height for all windows that have captions and are children.
11260 Update to use ToolWindowManager instead of InternalWindowManager
11262 * XplatUIWin32.cs: Set fake window styles for all
11263 windows that have window managers.
11264 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
11265 now duplicated for mdi windows when they are
11266 maximized, first for the buttons the window itself has, then for
11267 the buttons that appear in the menu bar. Makes things a little
11268 easier). Updated UpdateWindowDecorations, SetWindowState and the
11269 mouse eventhandlers accordingly.
11270 * Form.cs: Add ChangingParent (), contains the
11271 logic of what should happen when the parent changes. In MdiParent
11272 don't set things that ChangingParent () is doing. When handling
11273 WM_CLOSE, we can close the form if there are any other modal forms
11274 and the current form is a descendent of the modal form.
11275 * InternalWindowManager.cs: A lot of refactoring,
11276 the title buttons are now extracted to a separate container class
11277 that takes care of all button code (clicks, tooltips, etc). Moved
11278 Iconic|Maximized|Normal Bounds properties to this class from
11279 MdiWindowManager, so that the window state logic can succeed for
11280 other than mdi wm's. Implemented general window state change logic.
11281 Moved CreateButtons to ThemeWin32Classic, since the theme might
11282 override which buttons are available when as well as the exact
11284 * FormWindowManager.cs: Added, contains logic for
11286 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
11287 which buttons go where (and if they are at all visible).
11288 Removed special handling of maximized windows, since they aren't special.
11289 In DrawManagedWindowDecorations don't try to draw the text if it is
11291 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
11292 use whatever the wm gives us.
11294 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
11296 * ButtonBase.cs: Add 2.0 properties.
11297 * Button.cs: Override Draw for 2.0.
11298 * Control.cs: Add Entered and Selected properties.
11299 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
11300 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
11301 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
11303 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
11305 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
11307 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
11309 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
11311 * XplatUIWin32.cs: Register a new class with Windows each time we get
11312 a new ClassStyle. [Fixes bugs #79432, #80817]
11313 * Controls.cs: Set the correct ClassStyle in CreateParams.
11314 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
11316 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
11318 * ListView.cs: Add fireEvent argument to ReorderColumn since the
11319 ColumnReordered event must not be signaled when modifying DisplayIndex
11320 of a ColumnHeader. Added internal ReorderColumns method which takes
11321 care of drawing, and updating the internal DisplayIndex of the
11322 ColumnHeader. Added AddColumn method which is invoked from
11323 ColumnHeaderCollection when adding or inserting columns, and which
11324 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
11325 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
11326 Recalculated dispay indices after removing a ColumnHeader.
11327 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
11328 match MS. Allows last display index to be returned after ListView
11329 is disposed. Update actual location of ColumnHeader when DisplayIndex
11332 2007-03-01 Everaldo Canuto <everaldo@simios.org>
11334 * LinkLabel.cs: Improve CalcTrimRectangle.
11336 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
11338 2007-02-28 Everaldo Canuto <everaldo@simios.org>
11340 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
11341 get rectangle as a result value.
11343 2007-02-28 Everaldo Canuto <everaldo@simios.org>
11345 * LinkLabel.cs: Theres some diferences between rectangle return from
11346 MeasureCharacterRanges and the area used for DrawString to fix this
11347 CalcMeasurementFactor method was created, it calcules the diferences
11348 to be use later to adjust rectangle in draw operations. Fixes #80473.
11350 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
11351 to adjust draw rectangle.
11353 2007-02-27 Everaldo Canuto <everaldo@simios.org>
11355 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
11356 text and some other changes to reduce and optimize source code.
11358 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
11360 * RadioButton.cs: Implement 2.0 event.
11361 * RelatedImageListAttribute.cs: Implement new class.
11363 2007-02-27 Everaldo Canuto <everaldo@simios.org>
11365 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
11367 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
11369 * CheckBox.cs: Implement 2.0 functionality.
11371 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11373 * ListView.cs: Refactor Add and AddRange methods of
11374 ListViewItemCollection, to not update the ListView
11375 everytime an item is added in AddRange. Also move the update
11376 code to a new CollectionChanged method, and call it
11377 from other methods that need it as well (this should also fix some
11378 bugs when Sorting is used).
11380 2007-02-27 Jackson Harper <jackson@ximian.com>
11382 * TextControl.cs: Try to never let the caret stay in a non-text
11384 * TextBoxBase.cs: Update the caret.
11386 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
11388 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
11389 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
11390 delete POINT structure, duplicate of one in XplatUIStructs.
11391 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
11393 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
11395 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
11396 edit box since otherwise the Label would immediately be set (even if
11397 the user did not modify the label). In OnKeyDown set Handled to true
11398 if Return or Escape was pressed. In ColumnHeaderCollection unlink
11399 columns that are to be removed. In ListViewItemCollection unlink items
11400 that are to be removed.
11402 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
11404 * TextRenderer.cs: If we set a GDI clip region, we need to clear
11405 it when we are done. [Fixes bug #80949]
11407 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11409 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
11411 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11413 * ListView.cs: I forgot to commit the changes for ListView
11414 in my previous patch.
11416 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11418 * Clipboard.cs: Partially implement an overload of SetDataObject.
11419 * Form.cs: Implement ShowWithoutActivation.
11420 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
11422 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11424 This is a first set of changes to make the Virtual mode works,
11425 by avoiding the retrieval of ListViewItem instances until
11428 * ListView.cs: Store item position in the ListView instead of the
11429 ListViewItem, this way we don't request the Bounds property of
11430 ListViewItem inside the ListView calculations, as well as cache the item
11431 size in item_size field. Store indexes instead of ListViewItem
11432 instances in the matrix used by icon view. Add a ItemMatrixLocation
11433 struct to hold the row and col info of the matrix info.
11435 * ListViewItem.cs: Don't store the location anymore, and only cache
11436 the rectangles for GetBounds. Use the ListView.GetItemLocation
11437 method to retrieve the actual location.
11439 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11441 * TextRenderer.cs: Add clipping support, thanks to George.
11444 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11446 * ListViewItem.cs: Cancel label edit when item is removed from
11448 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
11449 event before the edit textbox is displayed. Added CancelEdit method
11450 which is used end to editing while ignoring the value set by the
11451 user. In EndEdit, set focus to ListView to avoid losing focus to
11452 other controls. In ListViewItemCollection.Clear, cancel editing of
11453 any of the items. In Remove, cancel editing of item being removed.
11454 Avoid udplicate code by modifing RemoveAt to invoke Remove.
11456 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11458 * FileDialog.cs: Update FSEntry when move is successful. Fixes
11461 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11463 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
11464 compatible with non X11 systems. Fixes #80901.
11466 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11468 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
11469 whether the item should be unselected and reselect. We do no want this
11470 when we're starting to edit the label. Do not fire the
11471 SelectedIndexChanged event from ListView when its already been fired
11472 by modifying ListViewItem.Selected. Fixes bug #80943.
11474 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11476 * TextRenderer.cs: Previos commit logic was backwards.
11478 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11480 * TextRenderer.cs: Don't add padding on MeasureText if we were
11481 sent the NoPadding flag.
11483 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11485 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
11486 after DrawButton. To prevent image overlaps button borders SetClip and
11487 ResetClip added before and after draw image. Fixes #79129.
11489 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11491 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
11492 window size, it fix problem when you run under win32 that theres
11493 Size diferent than ClientSize. Also fix controls size and positions
11494 to mimic Win32. Fixes #80837.
11496 2007-02-22 Everaldo Canuto <everaldo@simios.org>
11498 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
11499 menu area to fix some problems for non X11 systems. Fixes #80613.
11501 2007-02-22 Jackson Harper <jackson@ximian.com>
11503 * TreeNode.cs: When a node is expanded, set its is_expanded flag
11504 even if it doesn't have any children.
11506 2007-02-22 Jackson Harper <jackson@ximian.com>
11508 * TreeView.cs: Calculate the top node 'on the fly', this
11509 eliminates issues where you need to click on the tree before
11510 scrolling it to get the top node computed correctly.
11511 * TreeNodeCollection.cs: We don't need to mess with the top node
11514 2007-02-22 Jackson Harper <jackson@ximian.com>
11516 * DataGridViewRow.cs: Fix typo so height can actually be set.
11517 Patch by Peter Grimm.
11519 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11521 * FileDialog.cs: Fixed support for renaming files and directories.
11522 * ListView.cs: Do not lose focus when edit is canceled. Process
11523 Escape as regular key (to prevent closing of dialogs).
11525 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11527 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
11528 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
11530 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11532 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
11533 did not modify label.
11534 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
11535 modified the text. Reset Label when user presses Escape in edit mode.
11536 Move focus to ListView after having cancelled or finished editing the
11539 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
11541 * ComboBox.cs: Removed unnecessary initializations. Marked items field
11542 private. Clear textbox when Text is set to null and SelectedIndex is
11544 * FileDialog.cs: Removed unnecessary initializations. Removed
11545 workarounds for ComboBox bugs that are now fixed. Modified
11546 DefaultExt, InitialDirectory and Title property to change null to
11547 zero-length string in getters. Avoid directly accessing fields.
11549 2007-02-20 Jackson Harper <jackson@ximian.com>
11551 * TextControl.cs: Remove RecalAlignments call, that was some
11552 debugging leftovers.
11553 - Don't use the line indent when we shouldn't.
11554 * RichTextBox.cs: Add support for paragraph left indents.
11556 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11558 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
11559 Seems like the class status pages doesn't catch params differences.
11561 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11563 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
11565 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11567 * ComboBox.cs: Setting Text should have no effect if item text of
11568 selected item exactly matches value. First lookup text using
11569 case-sensitive comparison, and fallback to case-insensitive comparison.
11570 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
11571 allow startIndex to be last index. Changed ArgumentOutOfRangeException
11572 paramname to match MS. Restart from first item if string is not found
11573 after startIndex. Fixed paramname of ArgumentNullException that is
11574 thrown for null value in ObjectCollection.Contains.
11576 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11578 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
11580 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11582 * ListControl.cs: In SelectedValue use value.Equals to compare for
11583 equality instead of ==, otherwise it will fail for strings.
11586 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11588 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
11589 since the caret won't show up unless ShowSelection is true.
11592 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11594 * Application.cs: When disabling all forms but the main form, do not
11595 disable any descendants of the main form (such as mdi children or
11596 other parented forms). Fixes #80822 on Windows.
11597 * Form.cs: If we have a parent, set the WS_CHILD style.
11598 * Control.cs: Update the window styles if the control whose parent has
11599 changed is a form (the WS_CHILD style has to be switched).
11601 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11603 * XplatUIStructs.cs: MsgUIState structure added.
11605 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11607 * FileDialog.cs: Removed need for separate fileName field. On 2.0
11608 profile, do not check filename(s) for illegal character if filename(s)
11609 were set non-interactively but always check on 1.0 profile. Fixed NRE
11610 in DefaultExt and only strip off first leading dot. Improve exception
11611 message when invalid Filter is set. Do not ignore InitialDirectory if
11612 it does no exist. Store specified Title, and if empty use default
11613 title (depending on type of dialog). Added an internal DialogTitle
11614 property for retrieving dialog title. Fixed logic of displayed dir to
11615 more closely match MS. Avoid setting ComboBox.Text to a zero-length
11616 string as its buggy.
11617 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
11618 FileName is a zero-length string (it can never be null). Override
11619 DialogTitle property to set default title of dialog box.
11620 * SaveFileDialog.cs: Override DialogTitle property to set default
11621 title of dialog box.
11623 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11625 * FileDialog.cs: Modify default text of filename and filetype labels
11626 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
11627 after we've updated the SelectedIndex. Fixes part of bug #80887.
11628 * SaveFileDialog.cs: Set text of filetype label.
11630 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11632 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
11633 label field. Needed by latest Jackson's fixes for ListView.
11635 2007-02-16 Andreia Gaita <avidigal@novell.com>
11637 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
11638 print preview images.
11640 2007-02-16 Jackson Harper <jackson@ximian.com>
11642 * ListView.cs: Make AfterLabelEdit work correctly.
11643 * FileDialog.cs: After changing the name of the folder, we have to
11644 make sure that it is created, or that we pop up an error because
11647 2007-02-16 Jackson Harper <jackson@ximian.com>
11649 * X11Dnd.cs: Implement aliases on mime handlers, so things like
11650 System.String are mapped to text.
11651 - Handle dataobjects, getting all the possible formats out of them
11652 - We dont need the drag event args before we give feedback. This
11653 allows feedback cursors to be immediate before selections have
11656 2007-02-16 Jackson Harper <jackson@ximian.com>
11658 * TextBoxBase.cs: Modified the method for inserting images to
11659 taking a line and position instead of tag and position.
11660 * RichTextBox.cs: Handle PngBlip data by inserting the png image
11662 * TextControl.cs: Allow images to be inserted as the first tag of
11664 - Fix some off by one issues when we assume the first tag is a
11665 text tag, not an image tag.
11667 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11669 * ListView.cs: Set focus to ListView when ItemControl gets a
11670 WM_RBUTTONDOWN message, to mimic .Net behaviour.
11671 Fixes part of #80467.
11673 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11675 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
11676 validate Text input (if null or empty string reset Value to default
11677 value). Fixes #80830.
11679 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11681 * ListView.cs: Set owner as null for columns and items when
11682 Dispose is invoked. Fixes #80607.
11684 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
11686 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
11687 showing DropDowns, don't show a Grip when doing Flow layout.
11688 [This fixes the toolbox in PDN 2.72.]
11689 * ToolStripItem.cs: Add Anchor property and some internal properties to
11690 reduces needed changes to FlowLayout.
11691 * ToolStripOverflow.cs: Remove unused variable.
11692 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
11693 use it in the layout calculations.
11695 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11697 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
11698 reported in #79640.
11700 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
11703 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11705 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
11706 MeasureString format, it can make button very large in some cases, it is
11707 strange but is what win32 do.
11709 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11711 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
11714 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
11715 rendering, the value is based on MenuAccessKeysUnderlined.
11717 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11719 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
11722 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
11724 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
11725 and use MenuAccessKeysUnderlined instead.
11727 2007-02-13 Andreia Gaita <avidigal@novell.com>
11729 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
11730 A selected control would not get a Focus call if:
11731 - the default active control of the container is the same as
11732 the one that was selected
11733 - we are switching from one container to another
11734 Under these conditions, the container being selected already has
11735 an active_control, which is the same as the one being activated,
11736 so set_ActiveControl would always return and not send the Focus
11737 call. Fix to check if the currently active control of the container
11738 is actually focused.
11740 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
11742 * StatusStrip.cs: Implement the spring layout.
11743 * ToolStripControlHost.cs: Make sure the hosted control's visibility
11744 always matches the host.
11745 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
11746 and TextAfterImage.
11748 2007-02-13 Andreia Gaita <avidigal@novell.com>
11750 * Control.cs: Code reorganization only.
11751 - Reorganize the WndProc cases so that each case has it's own handling method,
11752 to help with the no-line-numbering stack traces.
11753 - Formatting changes (it's vstudio's fault, really :p)
11755 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11757 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
11758 Thread.CurrentUICulture to match DateTimePicker's (and MS)
11761 2007-02-12 Jackson Harper <jackson@ximian.com>
11764 * TextBox.cs: By default we have a non multiline document
11765 - use the multiline property instead of the internal variable
11766 * TextBoxBase.cs: Treat multiline and non multiline the same in
11768 - Use the documents multiline flag instead of tracking it ourself
11769 * TextControl.cs: Attempt at getting multiline to match MS
11770 behavior. Lines now track an offset, which is either their X or Y
11771 offset depending on whether or not we are in multiline mode.
11772 - Update all the methods to understand that lines have an X value.
11773 - Fix crash in Undo::Duplicate when empty lines are deleted.
11775 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11777 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
11778 code moved to properties PreferredHeight and PreferredWidth. It solve the
11779 all problems when preferred sizes must be recalculated. Fixes #80801.
11781 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11783 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
11784 font height when compatible_text_rendering is false. Partially fix #80801.
11786 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11788 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
11790 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11792 * Form.cs: Improved exception messages in ShowDialog.
11794 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11796 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
11797 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
11798 if not set. Fixes bug #80764. Avoid accessing current_settings field
11801 2007-02-08 Everaldo Canuto <everaldo@simios.org>
11803 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
11806 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
11807 public in 2.0 and for easy maintenance and dont break compatibility it is
11810 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11812 * ToolStripItem.cs: Implement using images from ImageList.
11814 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11816 * DateTimePicker.cs: Change default date-formatting culture from
11817 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
11818 seems to be the way MS does it.
11820 2007-02-08 Andreia Gaita <avidigal@novell.com>
11822 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
11823 (the 6 was cut off on the right side)
11825 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11827 * Form.cs: Tell MenuStrips to close when the form is clicked.
11828 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
11829 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
11830 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
11831 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
11832 support for Overflow, where items that do not fit are automatically
11833 reparented to a drop down menu.
11834 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
11835 Also: fixes bug #80747.
11837 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11839 * ComboBox.cs: Remove warning (unused code).
11840 * ScrollableControl.cs: Remove warning for 1.1 profile.
11842 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11844 * Form.cs: Remove a warning.
11846 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11848 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11849 'g' specifier, not documented anywhere, but seems to always show up
11850 as a single space (might have something to do with the DateTime 'g'
11851 specifier, which is the era format, but since DateTimePicker can't
11852 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11853 won't crash if the format has an unmatched quote. Now shows
11854 single-character formats correctly. Fixes #80744.
11856 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11858 * StatusStrip.cs: Stretch property needs to call base.Stretch,
11859 not this.Stretch to fix stack overflow. [Fixes bug #80760]
11861 2007-02-07 Chris Toshok <toshok@ximian.com>
11863 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11864 background color. it overwrites the background image we've
11865 already painted. Fixes #80599.
11867 2007-02-07 Chris Toshok <toshok@ximian.com>
11869 * DataGrid.cs: return immediately from Edit() when there are no
11870 columns. Fixes #80662.
11872 2007-02-07 Chris Toshok <toshok@ximian.com>
11874 * MessageBox.cs: fix #80625. don't always show the Help button in
11875 2.0. use the displayHelpButton parameter to determine if we
11876 should show it. Also, make the internal show_help field private.
11878 2007-02-07 Chris Toshok <toshok@ximian.com>
11880 * Control.cs (SetVisibleCore): check in the proposed patch for
11881 80604, and set is_visible before calling CreateControl.
11883 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
11885 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
11886 MonoInternalNote. This is added automagically by VS2005, so let's not crash
11889 2007-02-06 Everaldo Canuto <everaldo@simios.org>
11891 * MenuAPI.cs: hotkey_active internal field added, it is required because
11892 we need to know when hotkeys must be draw, before this change a keystate
11893 Navigating was used but we can have menu in navigating state without
11894 hotkeys. Fixes #80694.
11896 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11898 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11900 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11901 corresponding events and methods to be internal for 1.1 profile and
11902 public for 2.0 profile (required by SizeGrip).
11903 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11904 implicit control list). Don't set the size nor the location of the
11905 SizeGrip anymore as it's not needed.
11906 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11907 draw directly on the captured control (fixes #80656). Removed
11908 ShowGrip (it wasn't used anywhere), redraw (always true), added
11909 GetDefaultSize and GetDefaultRectangle to calculate defaults.
11910 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11911 be called from SizeGrip.
11913 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11915 * Timer.cs: Throw ArgumentException if Interval <= 0.
11917 2007-02-05 Jackson Harper <jackson@ximian.com>
11919 * TreeView.cs: We need to check scrollbar visibility when window
11920 visibility is updated, because non visible trees don't ever add
11922 * Cursor.cs: We want the override cursor to be reset to NULL when
11923 we set current cursor to the default cursor.
11925 2007-02-05 Jackson Harper <jackson@ximian.com>
11927 * TextControl.cs: Don't have crlfs when we are non multiline.
11928 - Consolidate the line position.
11930 2007-02-05 Jackson Harper <jackson@ximian.com>
11932 * X11Keyboard.cs: BACK+CTRL gets a special char code.
11934 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11936 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11937 handling LeaveNotify->NotifyUngrab in order to send
11938 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11939 after calling XUngrabPointer, so we call WindowUngrabbed directly
11940 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11941 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11942 MouseCaptureChanged correctly. Also create handles if changing
11943 Capture (matches MS behaviour).
11945 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11947 * SizeGrip.cs: Make the last change 2.0 only.
11949 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11951 * SizeGrip.cs: If resizing and the capture is lost, revert any size
11952 changes to initial size (fixes #80597).
11954 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11956 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11958 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11960 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11961 background) and only allow dragging if enabled. This way the
11962 sizegrip can be used to fill the open square that otherwise would
11963 have been shown in the bottom right corner of ScrollableControl
11964 when ScrollableControl is not suppose to support sizing.
11965 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11966 sizegrip is shown and enabled, and hook up with necessary events.
11968 2007-02-01 Chris Toshok <toshok@ximian.com>
11970 * DataGridTextBoxColumn.cs: clean up the
11971 GetFormattedString/GetColumnValueAtRow combination of functions.
11972 Also fix UpdateUI, and the initial state of
11973 IsInEditOrNavigateMode.
11975 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11976 aren't supposed to scroll the textbox here, we're supposed to
11977 scroll the datagrid.
11979 2007-02-01 Chris Toshok <toshok@ximian.com>
11981 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11982 setting the position.
11984 2007-02-01 Chris Toshok <toshok@ximian.com>
11986 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
11987 here, since the most recent focus fixes keep us from generating
11988 the Leave event when our textbox gets focus.
11989 (Edit): we should be passing null for the column style's
11990 instantText parameter.
11992 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
11994 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
11995 raised. Fixes menu text/icons not showing up in PDN.
11997 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11999 * Control.cs: Remove code in constructor that makes every
12000 control with WS_CHILD set have initial location -1, -1.
12002 2007-01-31 Jackson Harper <jackson@ximian.com>
12004 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12006 * XplatUIX11.cs: Give teh keyboard to teh dnd.
12008 2007-01-31 Jackson Harper <jackson@ximian.com>
12010 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12011 - Remove some debug code.
12013 2007-01-31 Jackson Harper <jackson@ximian.com>
12015 * XplatUIX11.cs: If you set the override cursor during a grab, it
12016 should actually override the grab cursor. This comes into play
12017 when you are setting custom cursors in a DND feedback method.
12019 2007-01-31 Jackson Harper <jackson@ximian.com>
12021 * X11Dnd.cs: Add support for handling the QueryContinue and
12022 GiveFeedback events.
12023 - Cancel drag and drop actions when the escape key is clicked.
12024 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
12025 can handle the ESCAPE key.
12026 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
12027 done when dnd events are continued after the button is released.
12028 - Add a new helper method so that dnd can translate key events.
12030 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
12032 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
12033 make it more obvious what is happening.
12035 2007-01-30 Jackson Harper <jackson@ximian.com>
12037 * XplatUIX11.cs: Don't break when handling button release in drag
12038 and drop operations. We need that BUTTONUP message to get through
12039 so capture is released.
12040 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
12041 this is handled automatically when the mouse is down.
12043 2007-01-30 Jackson Harper <jackson@ximian.com>
12045 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
12046 is closed, so we need to make sure that we aren't changing the
12047 dialog result when the OK (Open or Save) button has been clicked
12048 and we are closing the window ourselves. Note we don't need to
12049 worry about the cache being written in this case, because it was
12050 already done in the previous FilOk call.
12052 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12054 * DateTimePicker.cs: Remove a warning.
12055 * ComboBox.cs: Remove a couple of warnings.
12057 2007-01-29 Chris Toshok <toshok@ximian.com>
12059 * XplatUIX11.cs: don't crash, and remove the icon if the user has
12060 set one, if SetIcon is passed a null icon.
12062 2007-01-29 Andreia Gaita <avidigal@novell.com>
12064 * TextBox.cs: Redraw when the password characters changes
12065 * TextControl.cs: Check if textbox has a password char and draw
12066 a line of password chars instead of the text in the line. LineTag gets
12067 an extra Draw() method which allows document.Draw to override the text
12068 that will be drawn. Removes 1024 char limitation on length of passworded
12071 2007-01-29 Jackson Harper <jackson@ximian.com>
12073 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
12074 single chars is not.
12076 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
12078 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
12079 one pixel. Fix a StackOverflowException caused by an overload wrongly
12082 2007-01-26 Everaldo Canuto <everaldo@simios.org>
12084 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
12085 also remove ProcessArrowKey and put the code inside ProcessKeys.
12087 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
12089 * PaddingConverter.cs: Added.
12091 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12093 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
12094 ShowPanels is false (fixes #80600). Only draw up to 127 characters
12095 of text (fixes #80601). For panels clip the text to draw to the
12096 panel (fixes #80603).
12098 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12100 * ComboBox.cs: Fixed implementation of ResetText.
12102 2007-01-25 Jackson Harper <jackson@ximian.com>
12104 * TextControl.cs: For the last char of a line we need to use the
12105 line size, not that chars width, since it won't actually be
12106 computed since the right side of a char is based on the start of
12107 the left side of the next char, and the next char does not exist.
12109 2007-01-25 Chris Toshok <toshok@ximian.com>
12111 * Splitter.cs: fix the new unit tests, and reindent some switch
12114 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12116 * ComboBox.cs: Implemented 2.0 methods and events.
12117 * TextBoxBase.cs: Added OnTextUpdate, so that
12118 ComboBox.ComboTextBox can inform ComboBox of it.
12120 2007-01-25 Jackson Harper <jackson@ximian.com>
12122 * TextControl.cs: Respect ShowSelection when deciding whether or
12123 not to display the caret, this allows comboboxes to have carets
12124 when the combotextbox does not have focus.
12126 2007-01-25 Jackson Harper <jackson@ximian.com>
12128 * TextControl.cs: Add a Suspend/Resume for updating, basically the
12129 same as the Suspend/Resume for recalc, except this will do actual
12131 - New Undo manager, works much like the MS version.
12133 * TextBoxBase.cs: The Cut operation is undoable.
12135 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12137 * TextBoxBase.cs: Don't antialias text. Makes it look way better
12138 on Windows (no difference on Linux).
12140 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12142 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
12143 we don't want to activate any windows. Fixes #79433.
12145 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
12147 - ButtonBase.cs: Fix capitalization of parameter: disposing.
12150 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
12153 - Move to using System.ComponentModel.EventHandlerList
12154 - Replace Refresh with Invalidate
12155 - Clear the mime filecache on closing
12156 - Some other memory reducing work. After beeing closed FD now uses
12157 only about 300 KB for the fdo mime stuff plus the memory of the
12159 * Mime.cs: Changed coding style and removed unnecessary commented
12160 code. Some more memory memory reducing work.
12162 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12164 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
12165 a few other missing 2.0 properties.
12166 * Theme.cs: Added DrawFlatStyleComboBox.
12167 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
12169 2007-01-24 Chris Toshok <toshok@ximian.com>
12171 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
12172 wake_waiting flag, not just when there's data to be read. if we
12173 don't, then future wakeup's won't reach us and we'll be doomed to
12174 wait for the entire 1 second timeout forever (unless there are X
12177 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
12179 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
12180 until you pass Items.Count, not Items.Count - 1 like 1.1.
12182 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
12184 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
12186 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
12188 * ToolStripContainer.cs: The recent Dock fix exposed that I was
12189 adding the panels in the wrong order.
12191 2007-01-24 Jackson Harper <jackson@ximian.com>
12193 * TextBoxBase.cs: When we move the caret we also need to move the
12194 selection, this fixes some random crashing after doing select
12195 text, unselect, delete a char, paste.
12197 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12199 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
12201 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12203 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
12204 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
12205 * ToolBar.cs: Force redraw in BackgroundImageChanged.
12207 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12210 - Implement support for vertical toolbars. Fixes #80539;
12211 - Call LayoutToolBar when resize, it fix some other problems in layout.
12212 - Rename requested_height to requested_size, as we can have width on it
12213 when toolbar is vertical.
12214 - Create a private property "Vertical" that uses Dock to verify when
12215 toolbar is vertical or not.
12216 - Set ControlStyles when change Dock property.
12217 - Refactory in LayoutToolBar to have better variables names and to support
12219 - Fixes default value for ButtonSize when button count is equal zero, size
12220 must be (39, 36) test case writed.
12222 2007-01-23 Chris Toshok <toshok@ximian.com>
12224 * Control.cs: fix the checks so that they work correctly for mdi
12227 2007-01-23 Chris Toshok <toshok@ximian.com>
12229 * Control.cs: ControlCollection seems to have super-secret
12230 abstraction breaking knowledge of Mdi containers. allow MdiClient
12231 to add toplevel controls.
12233 2007-01-23 Chris Toshok <toshok@ximian.com>
12235 * Control.cs: throw an ArgumentException if a toplevel control is
12236 added to our control collection from ControlCollection.Add, as
12237 well as from ControlCollection.IList.Add. This fixes the
12238 ControlSetTopLevelTest.TestTopLevelAdd unit test.
12240 Also, in ControlCollection.IList.Add, don't through an
12241 ArgumentNullException, throw an ArgumentException, when value ==
12242 null. This matches MS.
12244 2007-01-23 Chris Toshok <toshok@ximian.com>
12246 * BindingSource.cs: initial, incomplete, implementation of
12249 2007-01-23 Jackson Harper <jackson@ximian.com>
12252 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
12253 that I can fix a broken unit test (TextBoxTest::ClearUndo)
12255 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12257 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
12259 2007-01-23 Andreia Gaita <avidigal@novell.com>
12261 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
12262 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
12263 IndexOfKey() for 2.0
12265 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12267 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
12268 to prevent it from changing z-order.
12269 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
12270 leave UI updates in MdiWindowManager.
12271 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
12272 1 sized (NC handling goes weird on Linux otherwise).
12273 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
12274 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
12275 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
12276 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
12277 and SetWindowState(s) to allow for changing the size of an activated child
12278 before activating it (reduces a lot of flicker).
12280 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
12282 * Form.cs: Changing FormBorderStyle has different semantics based
12283 on whether the Form is visible or not. If not visible, don't change
12284 the Size. But InvalidateNC needs to be called to force the window
12285 to pick up the changes and redraw itself. [Fixes bug #80574]
12287 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
12290 * ContainerControl.cs: ProcessCmdKey.
12291 * ErrorProvider.cs: new constructor.
12292 * Form.cs: fix AutoValidateEvent compiler warning.
12293 * Label.cs: fix OnAutoSizeChanged compiler warning.
12294 * MenuStrip.cs: fix CanOverflow compiler warning.
12295 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
12296 * TextBox.cs: Dispose.
12297 * ToolStrip.cs: CanOverflow, re-enable double buffering.
12298 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
12299 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
12300 * ToolStripItem.cs: Overflow, RightToLeft properties.
12302 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12304 * Form.cs: Move the layout of the main form to MdiWindowManager.
12305 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
12306 do a layout of the main window to update MdiClient's client area to
12307 the right area. Fixes #80533. Remove the calculation of nc size,
12308 it was just wrong and the correct one is the same as for
12309 InternalWindowManager.
12311 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
12313 * Control.cs: Setting Anchor or Dock needs to reset the other
12314 to its default. [Fixes bug #80556]
12316 2007-01-20 Chris Toshok <toshok@ximian.com>
12318 * CheckedListBox.cs: class status changes.
12320 * ScrollableControl.cs: same.
12322 * RichTextBox.cs: same.
12324 * ContainerControl.cs: same.
12326 * ListView.cs: same.
12328 * NotifyIcon.cs: same.
12330 * MenuStrip.cs: same.
12332 * RadioButton.cs: same.
12334 * CheckBox.cs: same.
12336 * PrintPreviewDialog.cs: same.
12340 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
12342 * TreeNode.cs: Apply Alan's patch for Name property.
12344 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12346 * Form.cs: Implemented SizeGripStyle.
12347 * SizeGrip.cs: Check for minimum and maximum size for the
12348 control being resized and only resize if size has actually
12351 2007-01-19 Chris Toshok <toshok@ximian.com>
12353 * DataGridColumnStyle.cs: stop setting _readonly in the
12354 PropertyDescriptor setter. fixes a unit test failure.
12356 also, rename ParentReadOnly to TableStyleReadOnly, and have it
12357 just consult our table style (if we have one). We don't need to
12358 consult the datagrid readonly attribute because that's passed in
12359 as the _ro arg to Edit. this simplifies things a little.
12361 * DataGrid.cs: use CurrentColumn instead of
12362 current_cell.ColumnNumber just to simplify some of the code.
12364 switch the order of some things in the CurrentCell setter to keep
12365 the previous cell from getting a textbox again -
12366 EnsureCellVisibility causes scrolling to happen, which calls Edit.
12367 So we need to set the new cell before calling it.
12369 call Edit in OnEnter, as does Microsoft.
12371 also, make sure the current table style isn't the one we create
12372 initially when checking to see if it's different than the one
12373 we're setting it to in BindColumns (this fixes #80421).
12375 * GridTableStylesCollection.cs: table styles can have "" for a
12376 mapping name. part of the fix for #80421.
12378 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
12379 Edit significantly.
12381 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12383 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
12384 and less GDI object leaky-er.
12386 2007-01-18 Andreia Gaita <avidigal@novell.com>
12388 * LinkLabel.cs: Add opaque control style
12390 2007-01-18 Jackson Harper <jackson@ximian.com>
12392 * TextControl.cs: Calculate width properly.
12393 - Don't store the tag's X offset, this can be figured out very
12395 - When getting the caret tag make sure to get the last empty tag.
12397 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12399 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
12402 * Control.cs: Color.Empty shouldn't count for previous transparent
12405 2007-01-18 Jackson Harper <jackson@ximian.com>
12409 * TextControl.cs: Starting to merge in some pieces of my older
12410 undo work. Basically just some slight cleanup of the undo API.
12412 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12414 * TrackBar.cs: Fix signature of RightToLeftLayout.
12415 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
12416 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
12417 * Application.cs: Implemented UseWaitCursor.
12419 2007-01-18 Jackson Harper <jackson@ximian.com>
12421 * TextControl.cs: We can't skip tags if any part of the tag is
12424 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12426 * ContainerControl.cs: Override OnLayout.
12428 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12430 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
12432 * ContextMenuStrip.cs: Make sure context menu is shown on top of
12435 2007-01-18 Chris Toshok <toshok@ximian.com>
12437 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
12438 (leftover from the container_selected days, I'd wager). fixes bug
12441 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12443 * Control.cs: Apply patch from George to fix the new testcase on
12444 bug #80451. We can't just check for Color.Transparent, we need
12445 to check if the back color's alpha channel is < 255.
12447 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12449 * Form.cs: Move setting show_icon = true to before the constructor
12450 so that the base constructor has that information when it calculates
12451 the form's size. Was causing forms to be (6, 6) bigger than they
12452 were supposed to be. Thanks for catching this Rolf!
12454 2007-01-18 Jackson Harper <jackson@ximian.com>
12456 * TextControl.cs: When replacing a selection we need to invalidate
12457 from the initial selection start, because selection start is moved
12458 to the end of the replacement.
12460 2007-01-18 Andreia Gaita <avidigal@novell.com>
12462 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
12464 2007-01-18 Chris Toshok <toshok@ximian.com>
12466 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
12469 2007-01-17 Everaldo Canuto <everaldo@simios.org>
12471 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
12472 layout methods and properties from ToolBarButton must be available
12473 into ToolBarButtonInfo.
12475 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12477 * Control.cs: If the control has a transparent background, we
12478 need to refresh it when it moves and when it's parent's background
12479 image changes. [Fixes bug #80451]
12481 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12483 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
12485 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12487 * XplatUIWin32.cs: Implement proper double buffering for Windows.
12488 [Fixes bug #80447, and probably speeds up things as well]
12490 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12492 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
12493 * XplatUIWin32.cs: We need to recalculate NC size after changing
12494 window style to toolwindow (otherwise the client rectangle will be
12495 3 pixels to small for some reason).
12496 * MdiWindowManager.cs: Revert NC size calculations to match how
12497 they are calculated only based on window styles (to match
12498 Win32AdjustWindowRectEx, since otherwise when setting size or
12499 location, Control will call Win32AdjustWindowRectEx to update client
12500 size, which would provoke a paint, then we'd get a NCCALCSIZE and
12501 calculate a different value of client size causing another paint
12503 * InternalWindowManager.cs: When moving or resizing a window only
12504 update size or location if they actually changed.
12505 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
12506 (seems to match Windows behaviour better). Cleaned up
12507 ManagedWindowDecorations to draw what's needed and nothing else
12508 (was drawing borders and lines where they shouldn't be)
12509 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
12510 (style = 0xFFFF) and takes into account caption height when
12511 calculating window rectangle.
12513 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12515 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
12516 can be added to toolbar multiple times, we need to maintain a list of
12517 button information for each positions.
12519 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12521 * ToolBar.cs: Some small stetic changes.
12523 2007-01-16 Jackson Harper <jackson@ximian.com>
12525 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
12526 that allow us to have nested recalc = false blocks.
12527 - Add paste support for images in the RichTextBox
12528 * RichTextBox.cs: flush the text after the color is changed, so
12529 the change takes effect.
12530 - Use SuspendRecalc
12531 - Some extra debugging info
12532 * TextControl.cs: Tags no longer track their length, it is just
12533 computed from the next tags length, this makes things a little
12534 simpler and reduces places that we have to track length changes.
12535 - Refactored the linetag class a little so we could make it
12536 a base class for different kinds of tags
12537 - Created a image tag, a tag that can have a single image inserted
12539 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
12540 that we can call suspend multiple times.
12541 - Add some debugging methods
12543 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12545 * MdiClient.cs: Add ActivatePreviousChild for
12546 mdi child window navigation.
12547 * Form.cs: Use MdiClient.ActivateNextChild/
12548 ActivatePreviousChild instead of Form.SelectNextControl
12549 to select the next/previous child since
12550 SelectNextControl doesn't do it in the same order
12551 as mdi children should do it.
12553 2007-01-16 Chris Toshok <toshok@ximian.com>
12555 * Control.cs: remove container_selected field.
12557 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12559 * MdiClient.cs: Update main form's ActiveChild when
12560 updating keyboard focus for the mdi child.
12562 2007-01-16 Jonathan Pobst <jpobst@novell.com>
12564 * Control.cs: PreferredSize fix.
12566 * Form.cs: Add several 2.0 events, properties, and methods.
12568 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
12570 * Form.cs: Provide meaningful message when MdiParent is assigned a
12571 Form that is not an MdiContainer.
12573 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12575 * MdiClient.cs: Update main form's ActiveChild when
12576 activating a mdi child.
12578 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12580 * MdiWindowManager.cs: Fix NRE when merging menus and main form
12581 doesn't have a menu.
12583 * Form.cs: Request NCRecalc after creating a mdi child window.
12584 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
12585 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
12587 * MdiClient.cs: Add new method SendFocusToActiveChild that either
12588 sends keyboard focus to the active child, or to the MdiClient
12589 if there are no child forms.
12591 2007-01-15 Chris Toshok <toshok@ximian.com>
12593 * ListView.cs: drop the *Internal overrides, just do our work in
12594 ItemControl's WndProc instead.
12596 * UpDownBase.cs: a few large changes. Fix up the Selectable state
12597 of the various controls, and forward the events properly (in the
12598 same manner as MS) from the textbox to the UpDown. Also the
12599 ActiveControl of the UpDownBase gets set properly now. Finally,
12600 we don't call UpdateEditText from the ctor. Fixes bug #79957.
12602 * NumericUpDown.cs: set Text in the ctor.
12604 * DomainUpDown.cs: call UpdateEditText in the ctor.
12606 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
12607 so even a Selectable = false textbox can be focused if you click
12610 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
12611 just add their handling in their respective WndProc's. Also add
12612 an explicit FocusInternal method that doesn't consult CanFocus
12613 before calling Select(this).
12615 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
12616 do our work in WndProc instead.
12618 * TabControl.cs: same.
12620 * ComboBox.cs: same.
12622 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12624 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
12627 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12630 * ThemeWin32Classic.cs: Don't draw the item text outside
12631 item bounds in Details view, as well as use trimming.
12634 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12636 * Form.cs: Implement Form.ShowIcon.
12638 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
12639 null, which when combined with the DlgModalFrame window style removes
12640 the icon from the title bar.
12642 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12644 * Control.cs: Call OnMouseClick after OnClick. (2.0)
12646 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12648 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
12649 menu when mdi child windows theres a menu, uses insert to get icon
12650 at first position. Partially fix #80006.
12652 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12654 * Clipboard.cs: Implement 2.0 methods.
12656 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12658 * Menu.cs: Implement Insert method of MenuItemCollection class
12661 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12663 * ListView.cs: Implement 2.0 FindItemWithText method.
12665 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12667 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
12668 to calculate menu bar size. Fixes #80290.
12670 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12672 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
12674 2007-01-11 Chris Toshok <toshok@ximian.com>
12676 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
12679 2007-01-11 Chris Toshok <toshok@ximian.com>
12681 * LinkLabel.cs: make sure to call base.Select in our Select method
12682 if it turns out we're going to be selected (i.e. if we have a link
12683 that is going to receive focus). That way our container's
12684 ActiveControl is updated properly.
12686 2007-01-11 Chris Toshok <toshok@ximian.com>
12688 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
12689 they have 1 or more links. this fixes the crash gert reported.
12691 2007-01-11 Andreia Gaita <avidigal@novell.com>
12693 * ContainerControl.cs: Remove ContainerSelected flag, not needed
12696 * Control.cs (Controls.Add): Check if control to be added to the collection
12697 is a top level control, and throw an ArgumentException if it is.
12698 Remove ContainerSelectedFlag, not needed anymore.
12700 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
12701 top most control doesn't activate the form. This fixes a problem in the
12702 MessageBox, where the default button wouldn't get focus because the form
12703 was activated before being Loaded - when the Owner is set, SetTopMost is
12704 called, and it would activate it.
12706 2007-01-11 Jonathan Pobst <jpobst@novell.com>
12708 * Button.cs: When clicked and setting the parent form's DialogResult,
12709 use FindForm instead of Parent, since parent could be a container
12710 control and not the Form. Fixes bug #80495.
12712 2007-01-10 Chris Toshok <toshok@ximian.com>
12714 * Form.cs: move the call to SendControlFocus into the same
12717 2007-01-10 Chris Toshok <toshok@ximian.com>
12719 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
12720 It breaks in the face of the new ActiveControl stuff, and should
12723 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
12724 activecontrol's focus if it's not already set, after we set
12725 ActiveControl, but before we call OnActivated. Re-fixes #79667
12726 after the previous focus/active control fixes regressed it.
12728 * Control.cs: reindent some code.
12730 2007-01-10 Chris Toshok <toshok@ximian.com>
12732 * Splitter.cs: clearing some outstanding changes from my tree.
12733 Replace all accesses (not writes) to the internal dock_style field
12734 with the Dock property.
12736 2007-01-10 Chris Toshok <toshok@ximian.com>
12738 * Control.cs: make FireEnter, FireLeave, FireValidating, and
12739 FireValidated virtual.
12741 * Form.cs: override and don't chain up calls to FireEnter and
12744 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12746 * ListView.cs: Add more text padding space when using
12747 auto resize for columns (the previous value didn't work fine).
12749 * ThemeWin32Classic.cs: Update text position inside columns,
12750 to match the appeareance of .Net.
12752 * ColumnHeader.cs: When using auto resize, only the Width should
12753 depend on the sub items, not the Height. Also, set width after
12754 auto resizing (the value of Width should never remain as -1 or -2).
12756 2007-01-10 Chris Toshok <toshok@ximian.com>
12758 * Application.cs: fix compilation errors when debug is enabled.
12760 2007-01-10 Chris Toshok <toshok@ximian.com>
12762 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
12763 add some nice ascii art pictures and explanation of the process).
12764 (GetMostDeeplyNestedActiveControl): new utility function we need
12765 because our ActiveControl can refer to a child container with its
12768 * Form.cs (OnActivated): remove the call to SelectActiveControl
12769 from here, since you can override this method and not chain up,
12770 and winforms still sets the active control.
12771 (OnCreateControl): also remove the unnecessary SelectActiveControl
12773 (WndProc): it's actually called from the WM_ACTIVATE block, just
12774 before calling OnActivated.
12776 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
12777 inside the else. the ActiveControl setter will end up setting
12778 focus on @control. This keeps us from setting it again (and
12779 generating an extra LostFocus/GotFocus pair).
12780 (Select (bool, bool)): reindent.
12782 2007-01-10 Jonathan Pobst <jpobst@novell.com>
12784 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
12785 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
12786 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
12787 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12788 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
12789 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
12790 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
12791 ToolStripTextBox.cs: Another wave of corcompare work.
12793 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12795 * ColumnHeader.cs: Implement 2.0 AutoResize method using
12796 the Width property.
12798 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
12799 methods by callling Column.AutoResize method on columns.
12801 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12803 * Control.cs: Provide proper implementations of PreferredSize
12804 and GetPreferredSize (2.0).
12806 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12808 * Form.cs: Remove one character (!) to make my previous OnClosing
12809 stuff work for modal windows like MessageBox.
12811 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12814 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
12815 ListView.Columns to get the last displayed column. Fixes #80452.
12817 2007-01-09 Everaldo Canuto <everaldo@simios.org>
12819 * Label.cs, LinkLabel.cs: Source code identation fixes.
12821 2007-01-08 Everaldo Canuto <everaldo@simios.org>
12823 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
12824 we dont need to invalidate only borders because when we invalidate four
12825 border lines the invalidate's generates a complete redraw of button,
12826 because it now invalidate a complete rect some other redraws operations
12827 are fixed. Fixes #80196.
12829 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
12830 Remove ToolBarInvalidateEntireButton as it is not used.
12832 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12834 * Form.cs: Make sure that both OnClosing and OnFormClosing are
12835 called for 2.0 profile.
12836 * CloseReason.cs: Make class internal for 1.1.
12838 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12840 * ToolStripManager.cs: Implement FindToolStrip functionality.
12841 * ToolStrip.cs: Register and unregister with ToolStripManager.
12843 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12845 * Control.cs: This was messy. 2.0 moves much of ControlCollection
12846 to ArrangedElementCollection. Implemented this with as few #if's as
12847 possible (which is still too many).
12849 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12851 * Control.cs: Implement SizeFromClientSize() [2.0].
12853 2007-01-07 Everaldo Canuto <everaldo@simios.org>
12855 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12856 use Theme.BorderSize to calculate area instead of static value 1,
12857 by the way use new BorderStaticSize instead Border3DSize when
12858 border_static is true. Fixes #79537.
12860 * XplatUIOSX.cs: Fix call to GetClientRectangle.
12862 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12865 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12867 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12869 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12871 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12872 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12875 - border_static field added, it will used to define when a control
12876 theres 3D border but it must be static (thin).
12877 - In GetWindowRectangle use Theme.BorderSize to calculate area
12878 instead of static value 1, by the way use new BorderStaticSize instead
12879 Border3DSize when border_static is true.
12881 * XplatUIX11.cs, XplatUIOSX.cs:
12882 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12884 * Theme.cs: BorderStaticSize field added.
12886 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12888 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12890 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12892 * Control.cs: Under InternalBorderStyle call RecreateHangle to
12893 mimic same behavior than win32 that set border only in CreateParams,
12894 it fix problems under CreateParams overrides. Fix #79442 and partial
12897 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12898 of thi control you must call recreate handle.
12900 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12901 need to do anything as RecreateHangle will take care about borders.
12903 2007-01-05 Mike Kestner <mkestner@novell.com>
12905 * ListView.cs: hack to eliminate Lost/Got focus notifications on
12906 cycles between the ItemControl and parent. Fixes #80388.
12908 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
12910 * Control.cs: Lazy init layout engine. Do not directly use
12911 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12913 2007-01-05 Chris Toshok <toshok@ximian.com>
12915 * DataGrid.cs: don't forceably rebind columns in SetDataSource
12916 unless our list manager has changed (i.e. unless we have reason to
12917 believe our columns have changed). Fixes #80422.
12919 also, disable the call do BindColumns in
12920 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
12921 1.1 the event isn't raised in response to a column addition on a
12924 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12926 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12927 that inheritors can not call it if they choose. Fixes bug #80456.
12929 2007-01-05 Andreia Gaita <avidigal@novell.com>
12931 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
12932 doesn't blow up with a null exception on marshalling.
12934 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12936 * Control.cs: Implement several 2.0 protected properties and methods.
12937 Ensure that all necessary events are being called when properties
12940 2007-01-05 Mike Kestner <mkestner@novell.com>
12942 * ListView.cs: implement PgUp/PgDn for Details view. Also
12943 fixes First/LastVisibleIndex to use the item_control.ClientRect
12944 instead of the parent control. Fixes #80378.
12946 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
12948 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12949 determine whether to use yard-pound or not (bug #78399).
12951 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12953 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12954 problems. So it is time to bring back the old popupbutton colors.
12956 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12959 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12960 property by using the internal information of the
12961 columns order in ListView.
12963 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
12965 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12966 Add 2.0 Tag properties.
12968 * LinkArea.cs: Add 2.0 ToString method.
12970 2007-01-03 Chris Toshok <toshok@ximian.com>
12972 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12973 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
12974 when we're editing, which fixes #80047.
12976 2007-01-03 Chris Toshok <toshok@ximian.com>
12978 * Form.cs: apply patch contributed by Dominik Seichter. fixes
12981 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
12983 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
12984 property and implementation.
12986 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
12987 for MdiWindowListItem property.
12989 * ToolStripDropDown.cs: Don't consider hidden menu items while
12990 laying out the menu.
12992 2007-01-03 Andreia Gaita <avidigal@novell.com>
12994 * SendKeys.cs: window handle is not needed in win32, so just
12995 get the active window for X after parsing keys and don't use
12996 it when building the message; it is passed by parameter to the
12997 Xplat method and used there to build the message instead. Also,
12998 wait for events to be processed on SendWait, as opposed to Send,
12999 which doesn't wait :) Playing with threads and Send() completely
13000 hangs on ms.net, only SendWait() works.
13003 X11Display.cs: Check for valid window handle.
13005 2007-01-03 Jackson Harper <jackson@ximian.com>
13007 * TextControl.cs: Need to prevent wrap calculations when replacing
13008 text (this was there before i removed it accidently).
13009 - Don't update the cursor during the positioning, just set it to
13010 selection_start at the end of the operaion.
13012 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13015 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13017 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13019 * MonthCalendar.cs: Added Click and DoubleClick events again,
13020 but this time they only hide Control's Click and DoubleClick.
13022 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
13024 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
13025 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
13027 2007-01-02 Jackson Harper <jackson@ximian.com>
13029 * TextBoxBase.cs: We move the caret with the split now, so we
13030 don't need to explicitly move the caret after splitting. This
13031 fixes the caret bumping down an extra line on Enter.
13033 2007-01-02 Miguel de Icaza <miguel@novell.com>
13035 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
13038 * ScrollableControl.cs: Add Scroll event.
13040 2007-01-02 Mike Kestner <mkestner@novell.com>
13042 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
13043 to fix all hdr height padding codepaths. Fixes #80207.
13045 2007-01-02 Chris Toshok <toshok@ximian.com>
13047 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
13048 setting it to the Control defaults anyway, and it being after the
13049 Dock set was screwing up layout.
13050 (set_Dock): don't short circuit out of setting base.Dock. Also,
13051 no need to call UpdateStatusBar here, as it'll be re-layed out if
13054 2007-01-02 Mike Kestner <mkestner@novell.com>
13056 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
13057 to header height for width == -1. Fixes the rest of #80207.
13059 2007-01-02 Mike Kestner <mkestner@novell.com>
13061 * ListView.cs: rework the mouse event forwarding everaldo added
13062 to translate the coordinates to the parent control not
13063 raise the parent events until after we've done our work. Hover
13064 needs more work, in the case where HoverSelection is on, because
13065 the item control receives more than one MouseHover per Enter
13066 event, so we need to ensure only the "first" hover gets forwarded.
13067 Opening a minor bug for that.
13069 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
13071 * CheckedListBox.cs: Fixed SelectionMode to match MS.
13072 * ListControl.cs: Implemented AllowSelection property. Removed extra
13074 * ListBox.cs: Implemented AllowSelection property.
13076 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13078 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
13079 SelectedItem, it prevent for errors when you must disable item
13080 before perform click. Fixes #80409.
13082 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13084 * MenuAPI.cs: Prevent second level and beyond submenus to close
13085 until first level when move out side of popup.
13087 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13090 - Down submenu positin in three pixels.
13091 - Closes sub menu when mouse leaves from menu. Fixes #80402.
13093 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13095 * ThemeWin32Classic.cs:
13096 - Fix popup menu size adding one pixel on the top.
13097 - Down menu item border from two to one to mimic Win32.
13098 - Some source identation fixes.
13100 2007-01-01 Everaldo Canuto <everaldo@simios.org>
13102 * ThemeWin32Classic.cs: Use float numbers to calculate size and
13103 position of menu arrows, it fix wrong arrow size.
13105 2007-01-01 Everaldo Canuto <everaldo@simios.org>
13107 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
13108 instead of line, it simplify draw operation and fix it using 3D
13109 borders to mimic Win32.
13111 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
13113 * StatusStrip.cs: Add implementation of the sizing grip.
13115 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
13116 StatusStrip rendering.
13118 2006-12-31 Chris Toshok <toshok@ximian.com>
13120 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
13121 override the layout style (anchor/dock) of the control. assign to
13122 Dock instead. Fixes bug #80416.
13124 * ToolStrip.cs: same.
13126 2006-12-31 Andreia Gaita <avidigal@novell.com>
13128 * ContainerControl.cs: Use ContainerSelected flag to check if
13129 a Container is directly selected, or if Select is called on a
13130 non-container. If a container is directly selected, focus events
13131 should not be raised.
13132 Apply #80411 patch to throw exception on set_ActiveControl if
13133 control is the same as the current one.
13135 * Control.cs: Use ContainerSelected flag (see above).
13136 Add invalidation check to raise event but not invalidate if
13138 Apply #80411 patch.
13141 2006-12-31 Everaldo Canuto <everaldo@simios.org>
13143 * MenuAPI.cs: After click, dont close popup menu when menu is
13144 ContextMenu. Fixes #80399.
13146 2006-12-30 Chris Toshok <toshok@ximian.com>
13148 * ContainerControl.cs: make sure we throw the exception if the
13149 container control doesn't contain the control we're setting
13152 2006-12-30 Chris Toshok <toshok@ximian.com>
13154 * Control.cs (SetTopLevel): fix the exception raised by
13155 SetTopLevel for child controls.
13156 (set_Anchor): call UpdateDistances when setting the anchor type.
13157 This fixes bug #80336.
13159 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13161 * Theme.cs: For now, revert back to 8pt font.
13163 2006-12-29 Everaldo Canuto <everaldo@simios.org>
13165 * MenuAPI.cs: Set popup as active when open a ContextMenu.
13168 2006-12-29 Chris Toshok <toshok@ximian.com>
13170 * Control.cs: reorder the code in OnResize to give the same event
13173 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
13175 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
13176 TileHorizontally and TileVertically.
13178 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
13180 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
13181 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
13182 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
13183 Corrected copyright and email adress.
13185 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13187 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
13188 of Exception in FullPath property if no TreeView is associated with
13191 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13193 * Theme.cs: Marked default_font as private, and initialize it in ctor
13194 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
13196 * ThemeGtk.cs: Removed default_font intialization.
13197 * ThemeWin32Classic.cs: Removed default_font initialization.
13199 2006-12-28 Chris Toshok <toshok@ximian.com>
13201 * Control.cs: fix a couple of place where we were creating handles
13202 more aggressively than we should be. Fixes ControlRefresh unit
13205 2006-12-28 Chris Toshok <toshok@ximian.com>
13207 * Control.cs: contrary to what the comment said, Control.Dock does
13208 not supercede Control.Anchor - the last one you assign to decides
13209 the layout behavior. so we need to keep track of which was the
13210 last set. Also, fix some of the affected property arguments in
13211 PerformLayout calls, and remove an redundant parent.PerformLayout
13214 Add a VisibleInternal property, which returns is_visible. We
13215 can/should get rid of all the usage of this field elsewhere.
13217 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13219 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
13220 control style, not DoubleBuffer. Added UseDoubleBuffering property
13221 that indicates whether doublebuffering is enabled and supported.
13222 (comment from and code based on Gert Driesen's patch in #80324).
13225 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13227 * Control.cs: Fixed a NRE.
13229 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13231 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
13234 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13236 * Control.cs: Rewrote double buffering, now a seperate
13237 class handles all the buffering, no Graphics is disposed of
13238 until the painting is finished (earlier implementation
13239 would crash if the control was resized in the OnPaint,
13240 since it would cause the double buffer to be recreated
13241 and the old one disposed), a separate Graphics is
13242 created for every paint (MS behaviour and anyways the state
13243 of the Graphics would have to be saved and restored otherwise)
13245 * XplatUIDriver.cs:
13247 * XplatUI.cs: Added and implemented GetOffscreenGraphics
13248 so that we can get the graphics for the back buffer without
13249 having to create a new one and remove the offscreen_dc parameter
13250 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
13252 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13254 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
13255 Also make virtual all the key-related methods.
13257 * ListViewItem.cs: Make virtual the key related methods for
13258 ListViewSubItemCollection.
13260 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13264 * ThemeWin32Classic.cs:
13265 * Theme.cs: Initial support for Tile view in ListView,
13266 as well as the implementation of the required bits for it (Item
13269 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13271 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
13272 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
13273 Provide useful exception messages.
13275 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13277 * TrackBar.cs: Remove a warning.
13278 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
13279 when used by DateTimePicker, fixes #80287. This also requires that
13280 MonthCalendar implements it's own drawing for the yearly updown control,
13281 otherwise the Capture tracking would be too complicated. Removed the Click
13282 and DoubleClick events (according to comments they were hiding the base class
13283 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
13284 raise these events, not that they cannot be raised. It is possible to raise
13285 them by calling OnClick and OnDoubleClick). Added two internal fields in
13286 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
13287 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
13288 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
13289 event, no longer needed.
13291 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13293 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
13294 true if new value differs from current value.
13296 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13298 * Control.cs: ControlCollection.Count must be public. Fixed build of
13301 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13303 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
13305 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13307 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
13309 2006-12-26 Everaldo Canuto <everaldo@simios.org>
13311 * Control.cs: Invalidates control including when Width and Height is
13312 equal zero or is not visible, only Paint event must be care about
13313 this. Fixes #79913.
13315 2006-12-26 Chris Toshok <toshok@ximian.com>
13317 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
13318 more corcompare work.
13320 * DataGridView.cs: fix compiler warning.
13322 * ColumnHeader.cs: some corcompare work, and also take the
13323 opportunity to make the internal fields private.
13325 * ListView.cs: fix the fallout from the above field change.
13327 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
13329 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
13330 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
13331 ToolStripTextBox.cs: Fixes to events and corcompare.
13333 2006-12-26 Everaldo Canuto <everaldo@simios.org>
13335 * ListView.cs: Call owner.OnMousexx event to propagate events from
13336 item to ListView. Fixes #80367.
13338 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13340 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
13341 if value is less than one. ItemHeight should not be set to a value
13342 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
13343 Removed extra tabs.
13345 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
13347 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
13348 * ToolStripStatusLabel.cs: Add Spring for Moma.
13350 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13352 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
13353 Fixed code formatting. Removed debug code.
13354 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
13356 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13358 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
13359 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
13360 ArgumentOutOfRangeException if ColumnCount is negative. In
13361 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
13362 less than 4 or higher than 32768.
13363 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
13364 Fixed FormatProvider to return CurrentCulture unless explicitly set.
13365 Fixed IsFormatProviderDefault to return true if FormatProvider has
13366 not been explicitly set.
13368 2006-12-25 Chris Toshok <toshok@ximian.com>
13370 * Application.cs: add a couple of 2.0 events.
13372 2006-12-25 Chris Toshok <toshok@ximian.com>
13374 * Control.cs: fix compiler warning.
13376 * AxHost.cs: corcompare fixes.
13378 * ApplicationContext.cs: corcompare fixes.
13380 2006-12-25 Chris Toshok <toshok@ximian.com>
13382 * Control.cs: only update dist_right/dist_bottom if the
13383 width/height is > 0. this fixes anchored controls being resized
13384 smaller until they disappear and then resized larger again.
13386 2006-12-25 Chris Toshok <toshok@ximian.com>
13388 * Control.cs: a couple of changes. Remove dist_left and dist_top,
13389 since they're nothing more than X/Left and Y/Top, respectively.
13391 Also, move back to a per-control Bitmap/Graphics for
13392 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
13393 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
13396 2006-12-25 Miguel de Icaza <miguel@novell.com>
13398 * MessageBox.cs: Implemented overload that takes a new "bool
13399 displayHelpButton" by adding a new internal field "show_help".
13400 When clicked this will raise the HelpRequested on the owner or the
13403 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
13404 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
13406 * ListView.cs: Add support ColumnWidthChanged and
13407 ColumnWidthChanging.
13409 Add support for ColumnReordered event.
13410 (ReorderColumn): Add NET_2_0 specific support for cancelling the
13413 Very nice codebase!
13415 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
13417 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
13419 2006-12-24 Chris Toshok <toshok@ximian.com>
13421 * GridTablesFactory.cs: 2.0 corcompare work.
13423 * ToolStripContainer.cs: add "override" to
13424 ContextMenuStripChanged, and remove the local event object.
13426 * ToolStripDropDown.cs: same with a couple properties.
13428 * ToolStripPanel.cs: same with AutoSizeChanged event.
13430 * TextBoxBase.cs: add "override" to AutoSizeChanged.
13432 * Form.cs: add the remaining 2.0 events, and do some corcompare
13435 * DateTimePicker.cs: add "new" to padding.
13437 * ButtonBase.cs: use Control's use_compatible_text_rendering.
13439 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
13441 * DataGridView.cs: PaddingChanged is overridden.
13443 2006-12-24 Chris Toshok <toshok@ximian.com>
13445 * Control.cs: corecompare work here too.
13447 * DataGridViewElement.cs, DataGridView.cs,
13448 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
13449 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
13450 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
13451 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
13454 2006-12-24 Miguel de Icaza <miguel@novell.com>
13456 * Control.cs: Switched the error message on the console for a
13457 todo. A review of the code will have to cope with this anyways
13458 (since its a large feature, it is in our radar) and it was
13459 producing too much output when running PDN.
13461 * ToolStripComboBox.cs: Set the text when the SelectedIndex
13462 changes. Applications depend on this (PDN 2.72)
13464 2006-12-23 Chris Toshok <toshok@ximian.com>
13466 * TableLayoutSettings.cs: finish up the corcompare work for this
13469 2006-12-23 Chris Toshok <toshok@ximian.com>
13471 * Control.cs: make SetImplicitBounds internal, do some futzing
13472 with LayoutEngine so that it's available in 1.1, and remove the
13473 entire duplicated code mess from PerformLayout. Use
13474 System.Windows.Forms.Layout.DefaultLayout instead.
13476 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
13478 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13480 * Form.cs: Add MainMenuStrip property.
13482 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13484 * Control.cs: Add ContextMenuStrip property and implementation.
13485 Fix ContextMenu implementation to show menu centered on control when
13486 activated using the keyboard instead of showing at screen (0,0).
13488 * ToolStripDropDown.cs: Fix needed overload of Show ().
13490 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13492 * Menu.cs: Name property added for 2.0 profile.
13494 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13496 * Menu.cs: Update information about FindMenuItem, method to be
13499 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13501 * MenuAPI.cs: When deselect items deselect also selected subitems.
13503 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13505 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
13506 FindSubItemByCoord to found itens that is not active, also an
13507 cheking added to FindSubItemByCoord to search for items only
13508 in visible popup windows. Fixes #80274.
13510 2006-12-22 Everaldo Canuto <everaldo@simios.org>
13512 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
13513 internal property, it be care about change ExStyle.
13515 2006-12-22 Andreia Gaita <avidigal@novell.com>
13517 * ContainerControl.cs: set activeControl for parent forms up the
13518 tree when the new activecontrol is a container.
13519 When validating the active control, if it is a container, also
13520 raise up the validation for it's active control. Fixes #80280
13522 * Control.cs: Add internal property flag and check to prevent
13523 Focus events from getting raised when Select() is called for
13524 a ContainerControl. There are still too many focus events being
13525 raised at the moment though.
13526 Cleaned up the code a bit.
13528 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13530 * Control.cs: Added all missing 2.0 events.and
13531 fixed a couple of corcompare issues.
13532 * TrackBar.cs: Implemented missing 2.0 bits.
13533 * MonthCalendar.cs,
13534 * DateTimePicker.cs,
13535 * MdiClient.cs: Fixed some corcompare issues.
13537 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13539 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
13540 SplitterPanel.cs: corecompare work.
13542 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13544 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
13545 Clean up warnings for BackgroundImageChanged and PaddingChanged
13546 events now that they are implemented in Control.cs.
13548 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13550 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
13552 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
13553 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
13554 of TableLayoutPanel and supporting cast.
13556 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13559 - GrabWindow now confines the mouse pointer to the confine window.
13560 - Added Win32ClipCursor and Win32GetClipCursor.
13563 - Added CaptureWithConfine to be able to capture and confine
13566 * InternalWindowManager.cs:
13567 - Call CaptureWithConfine instead of Capture if we're an
13568 MdiChild (fixes #79982).
13570 2006-12-21 Chris Toshok <toshok@ximian.com>
13572 * DataGrid.cs: guard against the initial state of selection, where
13573 selection_start == -1. make sure we only select from index >= 0.
13576 2006-12-21 Chris Toshok <toshok@ximian.com>
13578 * Control.cs: we don't need to be so draconian with
13579 UpdateDistances, and we thusly don't need to call it before
13580 calling PerformLayout in ResumeLayout. Fixes bug #80289.
13582 2006-12-21 Daniel Nauck <dna@mono-project.de>
13585 TextBox.cs: Implemented AutoComplete properties.
13587 2006-12-20 Chris Toshok <toshok@ximian.com>
13589 * DataGridView*.cs: some corecompare work.
13591 2006-12-20 Jackson Harper <jackson@ximian.com>
13593 * XplatUIX11.cs: We need to hide the caret when deleting it,
13594 otherwise you get carets left lying around everywhere.
13595 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
13596 prevents getting some weird half drawn caret tracers when
13598 * TextControl.cs: Attempt to reduce the number of times we need to
13599 recreate the caret.
13601 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
13603 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
13605 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13607 * DateTimePicker.cs:
13608 - Implemented missing 2.0 bits.
13609 - Changed some default values to match MS.
13611 2006-12-20 Jackson Harper <jackson@ximian.com>
13613 * TextBoxBase.cs: When changing the font across the document we
13614 can't recalculate after changing each line, since that will cahnge
13616 - PreferredHeight is a little different than i thought.
13617 - When backspacing, move the caret before we do the actual char
13618 delete, because when that delete crosses a wrap boundary the
13619 positional information will change.
13621 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13623 * Control.cs: Added some missing 2.0 bits:
13624 BackgroundImageLayout, BackgroundImageLayoutChanged,
13625 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
13626 add IBindableComponent and IDropTarget implementation.
13628 * MonthCalendar.cs:
13629 - Added all missing 2.0 features:
13630 BackgroundImageLayout, RightToLeftLayout,
13631 OnHandleDestroyed, RightToLeftLayoutChanged,
13632 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
13634 - Rewrote all the BoldDate code, it was completely broken.
13635 - Fixed all the tests (the tests can now be re-enabled, the
13636 problems were not with the tests, but with the control, it was
13639 * DateTimePicker.cs: Changed the location where the
13640 MonthCalendar is shown.
13642 2006-12-19 Chris Toshok <toshok@ximian.com>
13644 * DataGridView.cs: add IDropTarget implementation.
13646 * ToolStripPanel.cs: add IDropTarget implementation.
13648 2006-12-19 Jackson Harper <jackson@ximian.com>
13650 * TextControl.cs: soft now means something different than what it
13651 used to mean, we want to move the caret regardless of whether or
13652 not this break was soft (would we really have wanted the caret
13653 to not move with the break in the old context?)
13654 * TreeView.cs: Make sure we factor in the vert scrollbar when
13655 calculating the horizontal scrollbar's maximum.
13657 2006-12-19 Andreia Gaita <avidigal@novell.org>
13659 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
13660 check for keywords in alternate casing, close bug #80049.
13662 2006-12-19 Chris Toshok <toshok@ximian.com>
13664 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
13665 methods (which all do nothing).
13667 * IDropTarget.cs: add the 4 missing methods.
13669 2006-12-19 Chris Toshok <toshok@ximian.com>
13671 * TableLayoutRowStyleCollection.cs: corcompare work.
13673 * TableLayoutSettings.cs: same.
13675 * TableLayoutStyle.cs: same.
13677 * TableLayoutColumnStyleCollection.cs: same.
13679 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
13681 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
13682 TableLayoutPanel I've had in my local tree for way too long.
13684 2006-12-19 Miguel de Icaza <miguel@novell.com>
13686 * TableLayoutSettings.cs: Finish the public API (still needs all
13687 the logic to update on changes).
13689 * TableLayoutPanelCellPosition.cs: new file.
13691 * TableLayoutRowStyleCollection.cs,
13692 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
13693 TableLayoutSettings.cs: Track the final 2.0 table api.
13695 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13697 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
13698 and Image List 2.0 members for ColummnHeader.
13699 * ListView.cs: Add key-related 2.0 methods for
13700 ColumnHeaderCollection.
13702 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13704 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
13705 ArgumentNullException if items argument is null. Ignore null item in
13706 arrays. Removed extra tabs.
13708 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13710 * MonthCalendar.cs: Fixed InvalidCastException.
13712 2006-12-19 Jackson Harper <jackson@ximian.com>
13714 * TextControl.cs: Don't increment the position here.
13715 - When calculating char positions only add in the line break size
13716 for hard line breaks.
13718 2006-12-19 Andreia Gaita <avidigal@novell.org>
13720 * SendKeys.cs: Changed some things to match ms.net behaviour
13721 when parsing shifted capital letters.
13723 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
13724 Add window handle as parameter to SendInput. X11 needs the
13725 window handle, and the handle being passed to it in the keys
13726 queue is the active control handle (which windows needs), not
13729 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
13730 to support SendKeys on X.
13732 * X11Keyboard: Implement helper method to lookup a linux keycode
13733 given the virtual keycode. Added table of keycode-2-virtualkey
13734 values to support this.
13736 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13738 * ListView.cs: Add support for SelectedIndexCollection
13739 and SelectedItemCollection 2.0 methods. Implement support
13741 * ListViewItem.cs: Add support for ListViewSubItemCollection
13742 2.0 methods. Also, fix an incorrect behavior of AddRange method
13743 (it shouldn't call Clear).
13744 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
13746 2006-12-19 Jackson Harper <jackson@ximian.com>
13749 * TextBoxBase.cs: New args for FormatText
13750 * TextControl.cs: Rewrote the main drawing method, this version
13751 feels a little easier to understand and debug to me. Hopefully it
13752 does to others also
13753 - Fix FormatText to OR in the new formating values. Added
13754 FormatSpecified param, basically this works in the same way as
13755 BoundsSpecified in Control.
13756 - Set the caret properties when the caret is positioned.
13757 - When wrapping text make sure that we calculate the width of the
13759 - when calculating alignments we might have wrapped down to the
13760 next line, so don't search for an individual tag, search for the
13762 - We need to invalidate the selection area when we replace the
13765 2006-12-19 Daniel Nauck <dna@mono-project.de>
13767 * Application.cs: add Restart () 2.0 support
13769 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13771 * MenuItem.cs: Invalidate menu item rectangle after change Enable
13772 property. Fixes #80268.
13774 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13776 * MenuAPI.cs: Dont trigger select event when closes top menu
13777 item. Fixes #80270.
13779 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13781 * MenuAPI.cs: When you click on menuitem only trigger onselect
13782 event for top menu itens. Fixes #80271.
13784 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13786 * MdiWindowManager.cs: Make IconicBounds depend on
13787 the bottom of MdiClient, not the top (fixes #80267)
13789 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13791 * MdiClient.cs: Added missing 2.0 attribute
13793 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13795 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
13796 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
13798 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13800 * MenuAPI.cs: Fix click when menuitem is not popup,
13801 this regression was caused by last commit (#80272).
13803 2006-12-17 Everaldo Canuto <everaldo@simios.org>
13805 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
13806 fire click event or close menu. Fixes #80272.
13808 2006-12-17 Daniel Nauck <dna@mono-project.de>
13810 * ListViewHitTestInfo.cs: add
13812 2006-12-17 Daniel Nauck <dna@mono-project.de>
13814 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
13815 * FlatButtonAppearance.cs: add
13816 * DockingAttribute.cs: add
13818 2006-12-17 Chris Toshok <toshok@ximian.com>
13820 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
13821 and rebind our columns when it does - this way, if you make
13822 changes to the DataTable (or set the Table attribute on a DataView
13823 after setting it as the DataGrid's DataSource, the changes are
13824 made visible.) Fixes bug #80107.
13826 2006-12-17 Daniel Nauck <dna@mono-project.de>
13828 * ListViewGroup.cs: add internal Location property for layouting.
13829 * Theme.cs: add abstract ListViewGroupHeight function.
13830 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
13832 2006-12-16 Andreia Gaita <avidigal@novell.com>
13834 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
13835 Added reset of selected index to 0 when adding first tab page.
13838 * NumericUpDown.cs: Fix NET_2_0 check
13840 2006-12-16 Daniel Nauck <dna@mono-project.de>
13842 * ListViewGroup.cs: fixed DefaultValueAttribute value
13844 2006-12-16 Daniel Nauck <dna@mono-project.de>
13846 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13848 2006-12-15 Miguel de Icaza <miguel@novell.com>
13850 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13851 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13852 ScrollableControl.cs: Add a handful of methods that are
13855 2006-12-15 Chris Toshok <toshok@ximian.com>
13857 * XplatUIWin32.cs: initial implementation of the Reversible
13858 drawing functions. there are some problems. DrawReversibleFrame
13859 doesn't seem to work at all for Dashed FrameStyle, and in the
13860 Thick case there are drawing errors at the corners (we probably
13861 need to bind Rectangle instead of doing moveto/lineto's.)
13863 2006-12-16 Andreia Gaita <avidigal@novell.com>
13865 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
13866 to send blocks of key messages. Send accumulates keys to send with Flush,
13867 while SendWait sends all keys immediately.
13869 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13870 XplatUIX11.cs, XplatUIX11-new.cs:
13871 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13872 to Win32 SendInput.
13873 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13875 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
13876 testing for ms.net on this class is very tricky, as the tests run too fast
13877 to allow the hook to release, essentially freezing the keyboard and the
13878 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
13881 2006-12-16 Daniel Nauck <dna@mono-project.de>
13883 * Padding.cs: fixed serialization compability to MS ("_var" field names),
13884 added missing attributes.
13886 2006-12-15 Daniel Nauck <dna@mono-project.de>
13888 * ListViewGroup.cs: Added missing attributes.
13889 * ListViewGroupCollection.cs: Added missing attributes.
13891 2006-12-15 Daniel Nauck <dna@mono-project.de>
13893 * ListViewItem.cs: fixed ListViewSubItem text property.
13895 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13897 * Control.cs: Added missing 2.0 attributes
13899 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13901 * MdiClient.cs: Added missing 2.0 attribute.
13902 * MonthCalendar.cs: Added some missing 2.0 attributes
13905 2006-12-15 Daniel Nauck <dna@mono-project.de>
13907 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13909 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
13911 * MainMenu.cs: Add the new 2.0 constructor to help out people
13912 using the MainMenu in VS2005.
13914 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13916 * MdiChildContext.cs: Removed it, no longer used.
13917 * MdiClient.cs: Added missing 2.0 attributes.
13919 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13921 * InternalWindowManager.cs: Fix a NullRef with previous
13922 changes for toolwindows.
13924 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13927 - Added AfterTopMostControl to allow for certain controls
13928 to always stay on top when normal controls are brought to
13932 - (DrawInversibleRectangle): Get window rectangle from Win32
13933 in stead of from control, since Win32 doesn't calculate
13934 screen coords correctly from control's Location if it
13935 have docked siblings.
13937 * MdiWindowManager.cs:
13938 - Correct the control menu popup location when clicked on
13939 the maximized form icon. (fixes #80223.1)
13940 - Don't show moving rectangle if mouse hasn't moved from
13941 the original clicked point.
13942 - Removed FormGotFocus handler (not used).
13943 - Calculate the control buttons location from the main
13944 window's size and not client size (fixes #79770).
13945 - Form is now closed when the form icon is double-clicked
13947 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13949 * InternalWindowManager.cs:
13950 - Moved some MDI-only methods to MdiWindowManager.
13951 - Removed unused properties and methods.
13952 - Unified method naming for methods handling wm messages.
13953 - Moved all message handling to seperate methods for
13956 * ThemeWin32Classic.cs:
13957 - DrawManagedWindowDecorations now draws the title bar
13958 with a gradient brush.
13959 - Add a CPDrawButtonInternal that allows us to specify
13960 light, normal and dark colors for the buttons (control
13961 buttons for MDI children were drawn with the same light
13962 color as the background, therefore loosing the 3D effect).
13965 - Add a CapturedControl property that is used to
13966 determine the control to resize (defaults to parent).
13967 Needed for MdiClient, since its SizeGrip's parent is
13968 MdiClient, but the control to resize is the main form.
13971 - Set SizeGrip's CapturedControl to the main form in order
13972 to resize the main form and not the MdiClient.
13973 - Override AfterTopMostControl to leave the scrollbars
13976 2006-12-15 Daniel Nauck <dna@mono-project.de>
13978 * ListView.cs: fixed ListViewItemCollection AddRange and
13979 implemented ListViewItemCollection AddRange 2.0 support.
13981 2006-12-15 Daniel Nauck <dna@mono-project.de>
13983 * ListViewGroup.cs: Add.
13984 * ListViewGroupCollection.cs: Add
13985 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
13986 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
13987 stub for ImageKey 2.0 support.
13989 2006-12-14 Mike Kestner <mkestner@novell.com>
13991 * ListView.cs: add text padding to the autocalculation for columns
13992 of width -2. Fixes #80207.
13994 2006-12-14 Mike Kestner <mkestner@novell.com>
13996 * ListView.cs: add some index guarding for partial row navigation
13997 logic. Fixes #80250.
13999 2006-12-14 Mike Kestner <mkestner@novell.com>
14001 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14002 are added or inserted to the collection. Fixes #81099.
14004 2006-12-13 Everaldo Canuto <everaldo@simios.org>
14006 * MenuAPI.cs: Closes menu when right click out side of popup
14007 it fix problem in ContextMenu and MainMenu. Fixes #80252.
14009 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14011 * ListViewItem.cs: Fix dumb error.
14013 * ListView.cs: Add Find and ContainsKey methods in
14014 ListViewItemCollection, and also return true for IsReadOnly
14015 and IsFixedSize (changes for 2.0).
14017 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
14019 * Control.cs: Allow Region to be set to null.
14021 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14023 * MdiWindowManager.cs: Remove unused (commented out) code.
14024 * Form.cs: When the MdiChild is maximized, the form needs
14025 WM_NCMOUSELEAVE, so request it.
14026 * InternalWindowManager.cs:
14027 - Added tooltips to control buttons.
14028 - Removed duplicated control button handling code.
14029 - Removed unused (commented out) code.
14031 2006-12-12 Everaldo Canuto <everaldo@simios.org>
14033 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
14034 was used because we must set cursor without trigger ChangeCursor event
14035 and without change Cursor control property. Fixes #79963.
14037 2006-12-12 Andreia Gaita <avidigal@novell.com>
14039 * Control.cs: Check if Region setter value is null, and ignore
14041 2006-12-12 Jackson Harper <jackson@ximian.com>
14043 * TextControl.cs: We were almost always drawing one more line then
14044 needed, since the GetLineByPixel will return the last line found
14045 at that pixel. In most cases though, we were invalidating up to
14046 the junction between two lines.
14047 - Improve debug code.
14049 2006-12-12 Chris Toshok <toshok@ximian.com>
14051 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
14052 and FillReversibleRectangle.
14054 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
14055 and FillReversibleRectangle.
14057 * XplatUIWin32.cs: add stubs which do nothing for
14058 DrawReversibleFrame, DrawReversibleLine, and
14059 FillReversibleRectangle.
14061 * XplatUIOSX.cs: add stubs which raise NIE for
14062 DrawReversibleFrame, DrawReversibleLine, and
14063 FillReversibleRectangle.
14065 * XplatUIX11.cs: add working implementation for
14066 DrawReversibleFrame, DrawReversibleLine, and
14067 FillReversibleRectangle.
14069 * ControlPaint.cs: implement DrawReversibleFrame,
14070 DrawReversibleLine, and FillReversibleRectangle, by calling into
14071 the appropriate XplatUI method.
14073 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14075 * Form.cs: Make MdiClient have the focus even if it's
14076 not selectable, since it should receive WM_KEY* and WM_MOUSE
14077 messages. Fixes #79907.
14079 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14081 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
14082 queried after the window is created.
14084 * XplatUIX11.cs: Added SendParentNotify to implement
14085 WM_PARENTNOTIFY logic. Fixes #79965.
14087 * Control.cs: Added MakeParam.
14089 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14091 * MdiClient.cs: Resume Layout before setting window
14092 states (fixes #80201).
14094 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14096 * MenuAPI.cs: Deselect a menu item after performing
14097 the click (fixes #80197).
14099 2006-12-11 Jackson Harper <jackson@ximian.com>
14101 * TextBoxBase.cs: We need to cap this value, since Maximum -
14102 ViewPortHeight can be less than zero.
14103 - Only do selection with the left mouse button.
14104 * TextBox.cs: Don't tell the world that we have a context menu.
14105 * Control.cs: New method so that we can control whether or not the
14106 context menu is visible outside MWF.
14108 2006-12-11 Everaldo Canuto <everaldo@simios.org>
14110 * ToolBarButton.cs: Fix text positon.
14112 2006-12-11 Miguel de Icaza <miguel@novell.com>
14114 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
14116 * Control.cs (DoubleBuffered): Add implementation.
14118 * Application.cs (OpenForms): Add.
14120 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
14122 * Form.cs: Use opacity instead of Opactiy to determine if we need
14123 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
14125 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
14127 * Control.cs: Fix NRE if Control.Site was set to null.
14129 2006-12-11 Chris Toshok <toshok@ximian.com>
14131 * Control.cs: ControlCollection.Remove should return if the arg is
14132 null, and ControlCollection.SetChildIndex should raise a ANE.
14134 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
14136 * Control.cs: Verify value set for Dock property. Code formatting
14139 2006-12-11 Jackson Harper <jackson@ximian.com>
14141 * TextControl.cs: Draw the caret and the selection when a flag is
14143 * TextBoxBase.cs: We want to draw the caret and the selection for
14144 TextBox but not for TextBoxBase.
14145 - If the window is resized and scrolling is no longer needed (the
14146 whole doc is visible) set the scroll position to zero.
14147 - The default SelectWord (the one TextBox uses) should move the
14148 caret to the end of the word.
14149 - SelectAll moves the caret to the end of the selection.
14150 * TextBox.cs: We don't selectall on focus, we just do it when the
14151 control is created.
14153 2006-12-11 Mike Kestner <mkestner@novell.com>
14155 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
14157 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14159 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
14161 * ListViewItem.cs: Add Name 2.0 property.
14163 2006-12-11 Andreia Gaita <avidigal@novell.com>
14165 * TabControl.cs: Set visibility on selected or default tab
14166 when tabcontrol handle is created, so that it's contents
14167 actually show up (duh). Fixes #80193
14168 Don't redraw the control if there is no handle created, as
14169 the selected index might be completely invalid. Added some tests
14172 2006-12-11 Everaldo Canuto <everaldo@simios.org>
14174 * ToolBar.cs: Uses maximun width and height of all buttons as
14175 button rectangle when ButtonSize specified, it looks strange but
14176 is what happens in Win32. Fixes #80189.
14178 2006-12-11 Jackson Harper <jackson@ximian.com>
14180 * TextControl.cs: Need to track undo levels ourself, since
14181 compound actions will mess them up.
14183 2006-12-10 Andreia Gaita <avidigal@novell.com>
14185 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
14186 SelectedIndex value is changed (even if it's not valid).
14187 Reset SelectedIndex to 0 when the handle is created and if
14188 the current index is invalid.
14189 Fixes SelectdeIndex unit tests and #80128
14191 2006-12-08 Chris Toshok <toshok@ximian.com>
14193 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
14194 calls EndEdit, it needs to be called before we set current_cell to
14195 its new value. Otherwise, we end up committing the value in the
14196 textbox to the new cell as well. Fixes bug #80160.
14198 2006-12-08 Chris Toshok <toshok@ximian.com>
14200 * Form.cs (set_CancelButton): if the button's DialogResult is
14201 None, set it to Cancel. Fixes bug 80180.
14203 2006-12-08 Jackson Harper <jackson@ximian.com>
14205 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
14206 to watch ourselves when setting the canvas size and setting the
14209 2006-12-08 Chris Toshok <toshok@ximian.com>
14211 * DataGrid.cs: comment out the two MakeTransparent calls for the
14212 time being so people using trunk (and not 1.2.2) on windows can
14213 actually use the datagrid. This deals with bug #80151.
14215 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
14217 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
14218 Graphics.DrawImage (image, int, int, int, int) overload instead
14219 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
14220 the dpi difference and was blurring images it drew.
14223 2006-12-08 Chris Toshok <toshok@ximian.com>
14225 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
14226 rowcnt is 0 (such as with an empty datasource), and make sure we
14227 initialize not_usedarea.Y to cells.Y, so we don't draw over the
14228 other areas (caption, parent row, etc, etc). Fixes bug #80095.
14230 2006-12-08 Chris Toshok <toshok@ximian.com>
14232 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
14235 2006-12-08 Chris Toshok <toshok@ximian.com>
14237 [ Fixes bug #80167 ]
14239 * ThemeWin32Classic.cs: don't draw the image if the button's flat
14240 style is FlatStyle.System.
14242 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
14243 ButtonBase.flat_style private, and switch uses of it to the public
14246 2006-12-08 Chris Toshok <toshok@ximian.com>
14248 [ Fixes bug #80121 ]
14250 * ThemeWin32Classic.cs: center the caption text in the datagrid
14253 * DataGrid.cs: lessen the amount we add to the caption height from
14254 6 to 2. 6 was making it huge.
14256 2006-12-08 Andreia Gaita <avidigal@novell.com>
14258 * UpDownBase: Handle MouseWheel call directly instead of capturing
14259 the inner textbox's OnMouseWheel. Fixes #80166
14261 2006-12-08 Jackson Harper <jackson@ximian.com>
14263 * TextControl.cs: We need to invalidate the textbox when we empty
14264 it (how had this not been discovered before?)
14266 2006-12-08 Jackson Harper <jackson@ximian.com>
14268 * TextBoxBase.cs: Reworked the mouse down code so I could get it
14269 to behave like MS, we now ignore the eventargs.Click and just
14270 track state ourself, which we were already doing anyways.
14271 - Constrain the double click handler to the double click size.
14273 2006-12-08 Chris Toshok <toshok@ximian.com>
14275 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
14276 direction if that scrollbar isn't shown. fixes bug #80158.
14278 2006-12-08 Andreia Gaita <avidigal@novell.com>
14280 * NumericUpDown.cs: Update value on getter. Fixes #79950
14282 2006-12-08 Chris Toshok <toshok@ximian.com>
14284 * MenuItem.cs: add back in the event cloning code. I didn't know
14285 how to do it in the face of the EventHandlerList work i'd done
14286 last week. Fixes bug #80183.
14288 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
14290 * Control.cs: Add an invalidate to the BackgroundImage setter.
14293 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
14295 * ToolStrip*: Add some small properties reported by MoMA, fix event
14296 firing and default properties based off of unit tests, and add some
14297 attributes based off of the class status page.
14299 2006-12-07 Jackson Harper <jackson@ximian.com>
14301 * TextBoxBase.cs: Take HideSelection into account when determining
14302 whether or not to show the selection.
14303 * RichTextBox.cs: After inserting the RTF into the document move
14304 the cursor to the beginning of the document.
14306 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
14308 * Control.cs: Remove static ArrayList "controls" which maintained
14309 a reference to every control created.
14310 * Application.cs: Create a static FormCollection to maintain a reference
14311 to every form created. Use it in places that formerly enumerated through
14312 the controls one looking for forms.
14313 * Form.cs: Add and remove self from above FormCollection.
14315 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
14317 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
14318 not libgdk (though it makes me wonder why I didn't have any
14321 2006-12-07 Chris Toshok <toshok@ximian.com>
14323 [ you had to know this was coming after that last commit...]
14325 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
14326 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
14327 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
14330 2006-12-07 Chris Toshok <toshok@ximian.com>
14332 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
14333 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
14334 all the behavior we need for double buffering.
14336 * XplatUIDriver.cs: implement the 3 double buffer methods using a
14337 client side Bitmap, just like the old Control-based double buffer
14338 code did. The methods are virtual, so each XplatUI driver
14339 subclass can replace the implementation to use a faster, platform
14342 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
14343 double buffer code, and clean things up a bit in the process.
14345 2006-12-06 Chris Toshok <toshok@ximian.com>
14347 * Control.cs: reindent WndProc.
14349 2006-12-06 Chris Toshok <toshok@ximian.com>
14351 [ I wanna be like BenM when I grow up ]
14353 * Hwnd.cs: create a single static Graphics object on the static
14354 Bitmap we create. use this for our text measurements.
14356 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
14357 This was causing us to allocate a backbuffer for every control,
14358 even when it wasn't flagged as double buffered. Instead use the
14359 single graphics instance. This might have implications for
14360 multithreaded applications. If we run into problems we can switch
14361 to creating 1 Graphics per control, on the static Hwnd bitmap.
14363 this change nets us a 7M savings in private dirty mappings when
14364 running FormsTest.exe.
14366 2006-12-06 Chris Toshok <toshok@ximian.com>
14368 * ListView.cs: the BackgroundImage override is just to set
14369 attributes. chain up to base.BackgroundImage.
14371 * RichTextBox.cs: same.
14373 * ToolBar.cs: same, but we need to also redraw the toolbar when it
14374 changes, so instead a handler for BackgroundImageChanged.
14376 * Control.cs: make background_image private.
14378 2006-12-06 Chris Toshok <toshok@ximian.com>
14380 * ScrollBar.cs: change the assignment of cursor to Cursor. not
14381 sure we even need this assignment, but roll with it for now.
14383 * Control.cs: make the cursor field private.
14385 2006-12-06 Chris Toshok <toshok@ximian.com>
14387 * Form.cs: we don't need to explicitly set ImeMode to
14388 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
14389 behavior in the face of ImeMode.Inherit.
14391 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
14392 change the ctor's assignment to use ImeMode instead of ime_mode.
14394 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
14395 ImeModeInherit. Only check for the parent's imemode (and return
14396 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
14397 This fixes the button unit test, which sets both ImeMode and
14398 DefaultImeMode to ImeMode.Disable.
14400 also make the ime_mode field private.
14402 2006-12-06 Chris Toshok <toshok@ximian.com>
14404 * Control.cs: make control_style private.
14406 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
14407 setting the styles to true, then setting them to false instead of
14408 reverting to their previous values.
14410 also, call SetStyle on the scrollbars instead of using
14411 control_style directly.
14413 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
14415 * FormCollection.cs: Implement. [2.0]
14417 2006-12-06 Chris Toshok <toshok@ximian.com>
14419 * Control.cs: make tab_stop private.
14421 * Label.cs: set TabStop, not tab_stop. reformat some event
14422 add/remove methods to make them more compact.
14424 2006-12-06 Chris Toshok <toshok@ximian.com>
14426 * RadioButton.cs: fix TabStop handling.
14428 2006-12-06 Chris Toshok <toshok@ximian.com>
14430 * TextBox.cs: remove the explicit assignments to has_focus.
14433 * ButtonBase.cs: remove the assignment to has_focus. Control will
14436 2006-12-06 Chris Toshok <toshok@ximian.com>
14438 * ButtonBase.cs: remove all uses of is_enabled from this code.
14439 it's always true when any of the code containing the checks is
14442 2006-12-06 Chris Toshok <toshok@ximian.com>
14444 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
14445 with different semantics (some are present in both 1.1 and 2.0
14446 profiles) so that we match MS's behavior in our unit tests.
14448 2006-12-06 Jackson Harper <jackson@ximian.com>
14450 * TextControl.cs: Make this operation undoable.
14451 * TextBoxBase.cs: Factor the border width into the preferred
14453 - implement Modified as per the spec.
14455 2006-12-06 Chris Toshok <toshok@ximian.com>
14457 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
14459 2006-12-06 Chris Toshok <toshok@ximian.com>
14461 * Control.cs: make right_to_left and context_menu fields private.
14463 2006-12-06 Chris Toshok <toshok@ximian.com>
14465 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
14466 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
14467 Control.child_controls private. switch all uses over to
14470 2006-12-06 Chris Toshok <toshok@ximian.com>
14472 * System.Windows.Forms/GroupBox.cs,
14473 System.Windows.Forms/AccessibleObject.cs,
14474 System.Windows.Forms/ErrorProvider.cs,
14475 System.Windows.Forms/Control.cs,
14476 System.Windows.Forms/UpDownBase.cs,
14477 System.Windows.Forms/ScrollBar.cs,
14478 System.Windows.Forms/DateTimePicker.cs,
14479 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
14480 System.Windows.Forms/ToolTip.cs,
14481 System.Windows.Forms/RadioButton.cs,
14482 System.Windows.Forms/LinkLabel.cs,
14483 System.Windows.Forms/Splitter.cs,
14484 System.Windows.Forms/TextBoxBase.cs,
14485 System.Windows.Forms/ToolStripTextBox.cs,
14486 System.Windows.Forms/ContainerControl.cs,
14487 System.Windows.Forms/ThemeWin32Classic.cs,
14488 System.Windows.Forms/SizeGrip.cs,
14489 System.Windows.Forms/ToolStripDropDown.cs,
14490 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
14491 private. switch all uses over to Control.Parent.
14493 2006-12-06 Chris Toshok <toshok@ximian.com>
14495 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
14496 Control does this before calling emitting these events.
14498 * TabControl.cs: same.
14500 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
14501 Control.client_rect.
14503 * ButtonBase.cs: use the ClientSize property instead of the
14506 * ScrollableControl.cs: same.
14508 * Control.cs: another pass at making properties private. also,
14509 move the initialization of tab_stop to the ctor.
14511 2006-12-05 Andreia Gaita <avidigal@novell.com>
14513 * TabControl.cs: Let the selected index be set freely if the
14514 control handle is not yet created.
14516 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14518 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
14519 internal until I can rewrite DefaultLayout.
14520 * ToolStrip.cs: Fix build error and some general cleaning.
14521 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
14522 Fix build errors caused by making some of Control's fields private.
14524 2006-12-05 Jackson Harper <jackson@ximian.com>
14526 * TextControl.cs: Redo Insert a little so that it use IndexOf
14527 instead of Split, this prevents it from messing up on things like
14528 \n\n\n. Also more effecient since the split array doesn't need to
14530 * TextBoxBase.cs: AppendText doesnt handle multiline and non
14531 multiline text differently, this is the first of many fixes that
14532 will make multiline/non-multiline the same thing as far as the
14533 TextBoxBase is concerned.
14534 - Don't split the text and insert lines, this can lose some line
14535 endings (like is the last line a soft or hard break). Instead use
14537 - Fix an off by one when combining all the lines in the Text
14539 - Remove separate multiline handling from the Text getter/setter.
14541 2006-12-05 Chris Toshok <toshok@ximian.com>
14543 * ButtonBase.cs: a few changes:
14545 - don't reinitialize internal Control fields in the ctor when they
14546 have the same values as Control sets them.
14548 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
14549 this before calling those methods.
14551 - we don't need to call Refresh for anything. use Invalidate
14554 - OnEnabledChanged doesn't need to redraw at all - Control.cs
14555 calls Refresh in its OnEnabledChanged.
14557 - several of the events we were registered for in the ctor to
14558 redraw ourselves already include calls to Invalidate in the
14559 property setters that raise the events. remove the extra
14562 - reformat a switch statement that was 83274658 columns wide.
14564 2006-12-05 Mike Kestner <mkestner@novell.com>
14566 * ComboBox.cs: fix a unit test regression from a TextBox
14567 SelectionLength return of -1 when there's no selection.
14569 2006-12-05 Chris Toshok <toshok@ximian.com>
14571 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
14572 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
14573 cleaning up some of the internal Control fields being used by
14576 2006-12-05 Mike Kestner <mkestner@novell.com>
14578 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
14579 listbox after AddImplicit calls since it defaults to hidden. Add a
14580 hack to preserve requested heights across DropDownStyle changes.
14582 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14584 * PropertyGrid.cs: Hide FindFirstItem method from public API.
14586 2006-12-05 Chris Toshok <toshok@ximian.com>
14588 * DataGridView.cs: fix compiler warnings.
14590 * PrintControllerWithStatusDialog.cs: same.
14592 * ToolBar.cs: same.
14594 * FolderBrowserDialog.cs: same.
14596 * Splitter.cs: same.
14598 * DataGridViewComboBoxCell.cs: same.
14600 * XplatUIWin32.cs: same.
14602 * PictureBox.cs: same.
14604 * Win32DnD.cs: same.
14606 * PageSetupDialog.cs: same.
14608 * FileDialog.cs: same.
14610 * PrintDialog.cs: same.
14612 * DataGridTextBoxColumn.cs: same.
14614 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
14616 2006-12-05 Chris Toshok <toshok@ximian.com>
14618 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
14619 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
14620 System.ComponentModel.EventHandlerList work.
14622 2006-12-05 Jonathan Chambers <joncham@gmail.com>
14624 * DrawTreeNodeEventArgs.cs: Added.
14626 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14628 * InternalWindowManager.cs: Remove an unused field.
14630 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14632 * InternalWindowManager.cs:
14633 - Save the point where the title bar is clicked.
14635 * MdiWindowManager.cs:
14636 - Only allow moving of the window as long as the
14637 clicked point on the title bar does not get out of
14638 MdiClient's rectangle. Fixes #79982.
14641 - Added Horizontal/VerticalScrollbarVisible.
14642 - Simplified the scrollbar sizing algorithm.
14643 - Cache the difference in scrolled value in
14644 H/VBarValueChanged and move the calculation out
14647 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14649 * Control.cs: Make the Console.WriteLine in WndProc
14652 2006-12-05 Chris Toshok <toshok@ximian.com>
14654 * ToolStripManager.cs, ToolStripButton.cs,
14655 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
14656 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
14657 ToolStripSplitButton.cs, ToolStripSeparator.cs,
14658 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
14659 ToolStripProgressBar.cs, ToolStripContainer.cs,
14660 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
14661 to using System.ComponentModel.EventHandlerList.
14663 2006-12-04 Chris Toshok <toshok@ximian.com>
14665 * LinkLabel.cs: fix up compiler warnings.
14667 * TableLayoutSettings.cs: same.
14669 * TreeView.cs: same.
14671 * ToolBar.cs: same.
14673 * TabControl.cs: same.
14675 * RichTextBox.cs: same.
14677 * ListViewItem.cs: same.
14679 * PropertyGrid.cs: same.
14681 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
14685 * TextRenderer.cs: fix up compiler warnings.
14689 * Form.cs: corcompare fixes.
14691 * PictureBox.cs: fix up compiler warnings.
14693 * ImageListStreamer.cs: same.
14695 * TrackBar.cs: corcompare fix.
14697 * Control.cs: fix up compiler warnings.
14699 * SplitterPanel.cs: same.
14701 * NumericTextBox.cs: same.
14703 * ImageList.cs: same.
14705 * StatusStrip.cs: same.
14707 * ProgressBar.cs: corcompare fix.
14709 * ToolStripButton.cs: fix up compiler warnings.
14711 * ToolStripStatusLabel.cs: same.
14713 * ToolStripSplitButton.cs: same.
14715 * ToolStripSeparator.cs: same.
14717 * ToolStripProgressBar.cs: same.
14719 * ToolStripDropDownMenu.cs: same
14721 * ToolStripDropDown.cs: same.
14723 * ToolStripDropDownButton.cs: same.
14725 * ToolStrip.cs: same.
14727 * ToolStripControlHost.cs: same.
14729 * ToolStripContentPanel.cs: same.
14731 * ToolStripDropDown.cs: same.
14733 * ToolStripContainer.cs: same.
14735 * ToolStripPanel.cs: same, and add "new" where we need it to work
14736 with the new ArrangedElementCollection.
14738 * ToolStripItemCollection.cs: add "new" where we need it to work
14739 with the new ArrangedElementCollection.
14741 2006-12-04 Andreia Gaita <avidigal@novell.com>
14743 * TabControl.cs: Fix default tab selection to after TabControl
14744 gets focus and not before. Fixes #80128
14746 2006-12-04 Chris Toshok <toshok@ximian.com>
14748 * DataGridTableStyle.cs: remove the gross calling of
14749 datagrid.Refresh from here. It's a broken idea and it doesn't
14752 * DataGrid.cs: instead, just register/unregister from the
14753 DataGridTableStyle events in CurrentTableStyle. we play it
14754 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
14755 even though some would most likely not require it. Fixes bug
14756 #80115 (and one portion of #80117 as a side effect).
14758 2006-12-04 Chris Toshok <toshok@ximian.com>
14760 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
14761 so the textbox (if any) goes away. Fixes bug #80117.
14763 2006-12-04 Chris Toshok <toshok@ximian.com>
14765 * DataGridColumnStyle.cs: set the column's readonly property
14766 initially based on the property descriptor's IsReadOnly. Fixes
14769 2006-12-04 Chris Toshok <toshok@ximian.com>
14771 * ComboBox.cs: wrap the dropdown style changing work in
14772 SuspendLayout/ResumeLayout. Fixes bug #79968.
14774 2006-12-04 Jackson Harper <jackson@ximian.com>
14776 * TextBoxBase.cs: Fix off by one, since these are one-based.
14777 * TextBox.cs: Select all the text when we get focus. The TextBox
14778 does this but the RTB does not.
14780 2006-12-04 Chris Toshok <toshok@ximian.com>
14782 * DataGridTextBoxColumn.cs: remove some spew.
14784 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
14785 but some part of me is saying "it shouldn't be here.." At any
14786 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
14789 2006-12-04 Chris Toshok <toshok@ximian.com>
14791 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
14792 to reassign the propertydescriptor.
14794 2006-12-04 Jackson Harper <jackson@ximian.com>
14797 * TextControl.cs: Remove some unused variables. Maybe this will
14798 patch things up between mike and I.
14799 - don't split lines less then one char wide, if the viewport is
14800 that small text won't be visible anyways.
14802 2006-12-04 Jackson Harper <jackson@ximian.com>
14804 * TextBoxBase.cs: Default selection length is -1, need to do some
14805 more testing on windows to see when this is used for the property.
14806 - Redid the Lines [] property to that we properly remove soft line
14808 - added support for preserving carriage returns
14809 - CanUndo is not a variable like 'is undo enabled' it just returns
14810 true if there is undo operations available.
14811 - AppendText doesn't need to grab the last tag itself anymore,
14812 this happens automatically when we move the cursor.
14813 * TextControl.cs: Add CompoundActions to the undo class. This
14814 allows combining the other operations into one big option. ie a
14815 paste will combine { delete old, insert new, move cursor }
14816 - Add InsertString undo operation
14817 - New method for deleting multiline text
14818 - Add carriage returns to lines. So we can preserve carriage
14819 returns when text is 'roundtripped'
14821 2006-12-04 Chris Toshok <toshok@ximian.com>
14823 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
14824 minimum 0. Fixes the scrollbar exception in bug #80136.
14826 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14829 * MdiWindowManager: Removed unused fields and methods.
14831 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14833 * StatusBar.cs: Update all panels when a AutoSize=Contents
14834 panel needs updating.
14836 * StatusBarPanel.cs: Remove twidth and only use initialize.
14839 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14841 * Form.cs: When a form's MdiParent is set add it directly
14842 on top of the z-order in stead of relying on MdiClient's
14843 ActivateChild to do it. Fixes #80135.
14846 - Remove original_order, mdi_child_list is already doing
14848 - Create mdi_child_list on construction in
14849 stead of first use (avoids a few null checks).
14851 * MenuItem.cs: Use an already existing list of mdi children
14852 to get the correct order of children and remove the other
14855 2006-12-04 Chris Toshok <toshok@ximian.com>
14857 * PropertyGridView.cs: cached_splitter_location is only used in
14858 !DOUBLEBUFFER code.
14860 * PropertyGrid.cs: implement the ComComponentNameChanged event
14861 using Events, hoping that would fix the warning. Looks like a
14862 compiler bug instead (#80144).
14864 * PropertyManager.cs: remove unused method.
14866 2006-11-04 Everaldo Canuto <everaldo@simios.org>
14868 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
14869 include parentesis to fix expression evaluation. Fixes #79634.
14871 2006-11-02 Everaldo Canuto <everaldo@simios.org>
14874 - Changes to fix behavior in Menu control, some reported in #80097
14875 and other detected during behavior refactory like a select event
14877 - Remove unneded "if's" conditions.
14878 - Created an internal to flag when popup is active in control, we need
14879 it because in .NET you can have menu active but without popup active
14880 when you active menu using popup without visible items.
14881 - Mimic win32 behavior for Select and Popup events.
14882 - Dont open popup menu when you dont have visible subitems.
14883 - Do nothing when click on disabled menu item.
14884 - Some small changes to follow the coding style guidelines.
14885 - Unselect menu only when another control gives focus. Fixes #80097.
14886 - Remove unused code.
14888 * MenuItem.cs: internal VisibleItems method to check if menu
14889 theres visible subitems, it will be usefull to fix some
14890 behavior in Menu control.
14892 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14894 * Timer.cs: Tag property for 2.0 profile.
14896 2006-12-01 Chris Toshok <toshok@ximian.com>
14898 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14900 * Win32DnD.cs: comment out some unused fields.
14902 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14903 some unused properties/methods.
14905 * XplatUIX11.cs: fix MousePosition so we override the base class's
14906 property instead of conflicting with it.
14908 * PictureBox.cs: comment out some unused fields
14910 * OSXStructs.cs: make some struct fields public.
14912 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14913 MousePosition so we override the base class's property instead of
14914 conflicting with it.
14916 * X11Dnd.cs: comment out some unused fields
14918 * X11DesktopColors.cs: fix some struct field visibility to quiet
14921 * X11Dnd.cs: remove some debug code.
14923 * ThemeClearlooks.cs: comment out unused field.
14925 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14927 * ThemeGtk.cs: comment out some unused pinvokes.
14929 * Timer.cs: remove some unused fields.
14931 * ThemeClearlooks.cs: comment out unused field.
14933 * UpDownBase.cs: comment out unused field.
14935 * DataObject.cs: comment out unused field.
14937 * DataGridBoolColumn.cs: reomve unused field.
14939 * DataGrid.cs: remove unused field.
14941 * Cursor.cs: remove old ToBitmap code.
14943 * ControlPaint.cs: remove unused method.
14945 * ScrollBar.cs: remove unused fields.
14947 * ComboBox.cs: remove unused field, and chain up to
14948 AccessibleObject ctor.
14950 * ListBox.cs: remove unused field.
14952 * ButtonBase.cs: wrap a couple fields in NET_2_0.
14954 * GridEntry.cs: remove unused fields.
14956 * Binding.cs: remove unused fields.
14958 * AxHost.cs: remove unused method.
14960 * ContainerControl.cs: remove unused field.
14962 * ScrollableControl.cs: remove unused fields.
14964 2006-12-01 Chris Toshok <toshok@ximian.com>
14966 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14967 the Where/WhereString stuff. it's easy enough to CWL
14968 Environment.StackTrace.
14970 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14971 unused private fields.
14973 2006-12-01 Jackson Harper <jackson@ximian.com>
14975 * TextControl.cs: Do not update the view while inserting multiline
14976 text. If we update the view we might wrap lines, before entering
14977 the new lines, which causes the new line insertion calculations to
14978 be totally fubared.
14979 - Remove an old TODO
14980 - Make debug output a little nicer
14982 2006-12-01 Chris Toshok <toshok@ximian.com>
14984 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
14986 2006-12-01 Chris Toshok <toshok@ximian.com>
14988 [ fix the majority of the CS0108 warnings we've been suppressing ]
14990 * TreeView.cs: mark BackgroundImageChanged as 'new'.
14992 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
14993 to "LayoutToolBar" to quiet mcs.
14995 * TabControl.cs: mark our ControlCollection class as 'new'.
14997 * TextBoxBase.cs: mark some events as 'new'.
14999 * Splitter.cs: TabStop is 'new'.
15001 * ControlBindingsCollection.cs: mark a few methods as new since
15002 they change the visibility from protected to public.
15004 * RadioButton.cs: DoubleClick -> base class, and remove unused
15007 * MonthCalendar.cs: ImeMode property -> base class, and mark many
15010 * NumericUpDown.cs: TextChanged -> base class.
15012 * CheckedListBox.cs: mark our ObjectCollection class as new to
15015 * FolderBrowserDialog.cs: make HelpRequest event new and have it
15016 muck with the base class.
15018 * StatusBar.cs: fix some mcs warnings about Update being the same
15019 name as a base class method.
15021 * RichTextBox.cs: mark some events as new, and make them do things
15022 to the base class impl.
15024 * UserControl.cs: mark TextChanged as new, and have it manipulate
15027 * UpDownBase.cs: mark some things new.
15029 * CheckBox.cs: mark DoubleClick "new", and add some text about
15030 what we need to look at.
15032 * Panel.cs: make the events "new", and manipulate the base
15033 version. these are just here for attributes.
15035 * AccessibleObject.cs: make owner private.
15037 * Control.cs: deal with AccessibleObject.owner being private.
15038 cache our own copy if we need it.
15040 * Button.cs: add "new" to the DoubleClickEvent.
15042 * ListBox.cs: no need to track our own has_focus here. let
15043 Control.has_focus do it for us. Also some other work to clear up
15044 warnings about not overriding base class methods of the same name.
15046 * ComboBox.cs: clear up some warnings about not override base
15047 class methods of the same name.
15049 2006-12-01 Chris Toshok <toshok@ximian.com>
15051 * Form.cs: flag a few things as "new" to quiet some of the mcs
15056 * PrintPreviewDialog.cs: same.
15058 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
15059 now DGV isn't so horrible on the class status page. also, move
15060 all events to using System.ComponentModel.EventHandlerList. my
15063 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15065 * MdiWindowManager.cs:
15066 - Set form to active mdi child if shown,
15067 and update the active mdi child to the next
15068 remaining child in the z-order if the form is hidden.
15071 - Track if the form has been visible and if its
15072 visibility is beeing changed, so that the MdiClient
15073 can properly decide the ActiveMdiChild. The MdiClient
15074 cannot track this since the form can change visibility
15075 before MdiClient is created.
15078 - Don't activate anything of the parent form is changing
15080 - Rework ActiveMdiChild to only return visible mdi
15081 children and take into account several other corner
15084 2006-12-01 Chris Toshok <toshok@ximian.com>
15086 * IBindableComponent.cs: new 2.0 interface.
15088 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
15090 * DataGrid.cs: Font for caption area is bold by default.
15092 2006-12-01 Everaldo Canuto <everaldo@simios.org>
15094 * Menu.cs: Tag property for 2.0.
15096 2006-11-01 Everaldo Canuto <everaldo@simios.org>
15098 * ThemeWin32Classic.cs: Adjust menu separator drawing.
15100 2006-12-01 Chris Toshok <toshok@ximian.com>
15102 * TreeView.cs: doh, the Begin* events should be
15103 TreeViewCancelEventHandler.
15105 2006-12-01 Chris Toshok <toshok@ximian.com>
15107 * Form.cs: Form.ControlCollection already stores off the
15108 form_owner field. don't access the base class's internal "owner"
15111 * Control.cs: make all the fields in Control.ControlCollection
15112 private. there's no need for any internal fields here.
15114 2006-12-01 Chris Toshok <toshok@ximian.com>
15116 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
15117 OnHandleCreated. Fixes bug #80109.
15119 2006-12-01 Chris Toshok <toshok@ximian.com>
15121 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
15122 SplitContainer.cs, Control.cs, StatusStrip.cs,
15123 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
15124 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
15125 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
15126 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
15127 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
15128 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
15129 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
15130 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
15131 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
15132 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
15134 do most of the work to convert our code over to use
15135 System.ComponentModel.Component.Events for
15136 adding/removing/dispatching events.
15139 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
15141 * DataGridView.cs: Fix an ArgumentNullException reported
15142 twice today in IRC.
15144 2006-11-30 Mike Kestner <mkestner@novell.com>
15146 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
15147 grabbed listbox. Fixes #80036 and #80101.
15149 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15151 * Message.cs: Changed ToString() to match MS.
15153 2006-11-30 Jackson Harper <jackson@ximian.com>
15155 * TextBoxBase.cs: You can still change the selected text on a read
15157 * TextControl.cs: Lower magic number for wrap calculations. This
15158 lets text get closer to the right (far) edge.
15160 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
15162 * Control.cs: Tweak 2.0 layout properties.
15163 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
15164 * TextRenderer.cs: Add a new overload.
15165 * ToolStrip*: Huge amount of changes and new features.
15167 2006-11-30 Mike Kestner <mkestner@novell.com>
15169 * ComboBox.cs: fixes for LargeChange and Maximum to get the
15170 scroll range correct. Fixes #79994.
15172 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15174 * MdiWindowManager.cs: Update main form's text when
15175 a form is closed. (fixes #80038)
15177 2006-11-30 Everaldo Canuto <everaldo@simios.org>
15180 - Fix an regression in ButtonSize.
15181 - Get ImeMode default value change to "Disable".
15182 - Get ShowTooltips default value change to true, default value is
15183 "false" but after make a test in .NET we get "true" result as default.
15185 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
15187 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
15189 2006-11-29 Chris Toshok <toshok@ximian.com>
15191 * XplatUIWin32.cs (GetWindowTransparency): check return value of
15192 GetLayeredWindowAttributes. if it's 0, return 1.0, as
15193 SetWindowTransparency hasn't been called.
15195 2006-11-29 Chris Toshok <toshok@ximian.com>
15197 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
15199 (set_AllowTransparency): reorder things a little so that the
15200 WS_EX_LAYERED style is removed properly.
15202 2006-11-29 Chris Toshok <toshok@ximian.com>
15204 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
15206 * Form.cs: only call the XplatUI transparency method (get/set) if
15207 SupportsTransparency says it's supported. Otherwise fallback to
15208 doing nothing (in the set case) or returning the instance field we
15209 cache (in the get case).
15211 * XplatUIStructs.cs: add TransparencySupport flag enum.
15213 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
15214 change to SupportsTransparency.
15216 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
15217 TransparencySupport.None from SupportsTransparency.
15219 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
15220 TransparencySupport.Set from SupportsTransparency.
15222 * XplatUIWin32.cs: implement GetWindowTransparency calling
15223 GetLayeredWindowAttributes, and implement SupportsTransparency by
15224 checking whether or not both
15225 GetWindowTransparency/SetWindowTransparency are available
15226 entrypoints. We need to do this since SetWindowTransparency is
15227 available as of win2k, but GetWindowTransparency requires winxp.
15230 * XplatUI.cs: Add GetWindowTransparency, and change
15231 SupportsTransparency to allow for either/both Get/Set.
15233 2006-11-29 Chris Toshok <toshok@ximian.com>
15235 * DataGrid.cs: keep from going into an infinite loop redrawing a
15236 datagrid that has no datasource. Fixes bug #80033.
15238 2006-11-29 Chris Toshok <toshok@ximian.com>
15240 * MenuItem.cs: fix the NRE when we assign text (and therefore call
15241 Invalidate) before the mainmenu has been assigned to a control.
15243 2006-11-29 Chris Toshok <toshok@ximian.com>
15245 * DataGrid.cs: detect when we should be double the double click
15246 row/column autosize stuff, although that codepath has yet to be
15247 written. part of the work for bug #79891.
15249 2006-11-29 Chris Toshok <toshok@ximian.com>
15251 * Binding.cs (SetControl): fix unit test.
15253 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15255 * PageSetupDialog.cs: Validate the margins and set them in
15257 * NumericTextBox.cs: New class to mimic the behavior of the
15258 textboxes used in the printing dialogs.
15260 2006-11-29 Andreia Gaita <avidigal@novell.com>
15262 * Form.cs: Revert previous change (remove call UpdateBounds
15263 from form constructor), because it messes with the handle creation
15264 order, and that one needs lots and lots of love.
15265 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
15266 for valid printer and throw InvalidPrinterException if document
15267 is set but printer not valid), adding a MonoTODO. Once
15268 handle creation is done properly, we can put this back in.
15270 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15272 * MenuItem.cs: Create a invalidate method for menu item, to be
15273 calling from set text, it make text changes to imadiate update
15274 on screen. Fixes #80013.
15276 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15278 * ToolBar.cs: Fixes and simplify toolbar button layout, it
15279 fixes bug #80070 and some other problem on toolbar buttons
15282 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15284 * ThemeWin32Classic.cs: Paint toolbar toggle button background
15285 with dotted brush. Fixes #79564
15287 2006-11-28 Andreia Gaita <avidigal@novell.com>
15289 * Form.cs: Removed call to UpdateBounds on Form
15290 constructor, it was causing a call to CreateHandle
15291 before it was supposed to.
15292 * PrintControllerWithStatusDialog: Applied patch
15293 by Chris Toshok to hide controller when there are
15294 no printers available.
15295 PrintDialog.cs: initialize printer settings to
15296 null - correct DefaultValues test #5
15297 * PrintPreviewControl.cs: Move PrintController
15298 initialization to GeneratePreview
15299 * PrintPreviewDialog.cs:
15300 - Remove Preview generation from Document_set(). It is
15302 - Throw InvalidPrinterException on CreateHandle if
15303 a Document is set but there are no printers or
15304 printer is not valid.
15305 * ThemeWin32Classic: don't paint PrintPreviewControl
15306 if there is nothing to paint
15308 2006-11-28 Miguel de Icaza <miguel@novell.com>
15310 * Form.cs: Add another popular method.
15312 * TabPage.cs: ditto.
15314 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15316 * MenuItem.cs: Fixed a warning.
15317 * InternalWindowManager: Fixed a warning.
15319 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15322 - When cloning a menu also clone MdiList and clone the
15323 window menu items properly (as the forms and menuitems
15324 are kept in an internal hashtable, these need updating
15326 - Rewrote the window menu code, menu items are added in the
15327 order the forms were added to their parent, and they are
15328 updated every time the window menu is shown (before the
15329 list was only generated once, in the current order of the
15330 forms, and would never be updated). A checkmark is shown
15331 next to the item corresponding to the active mdi child.
15333 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15335 * XplatUIStructs.cs:
15336 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
15339 - Added TME_NONCLIENT to TMEFlags.
15340 - Handles WM_NCMOUSEMOVE in GetMessage to
15341 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
15343 * MdiWindowManager:
15344 - Now merges mdi child menu to parent menu when maximized.
15345 - Recalculate NC areas of both mdi child and mdi parent.
15347 on window state and size changes.Fixes #79844 (3).
15348 - Handle WM_NCCALCSIZE to properly calculate borders.
15351 - Add/remove to the mdi containers list of mdi children
15352 in the order they are added.
15353 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
15354 to the maximized mdi child.
15356 * InternalWindowManager.cs:
15357 - Only execute a click on the control buttons on the mouse up,
15358 not on the mouse down. Show the state of the button
15359 (was only showing Normal state, never Pressed state). The
15360 pressed button now follows the mouse (if you click the Close
15361 button and move the mouse over the Maximize button, the
15362 Maximize button will be shown as pressed). Since Win32 does
15363 not generate WM_NCLBUTTONUP if you release the button outside
15364 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
15367 * ThemeWin32Classic.cs:
15368 - Draw a missing border around mdi child forms. Fixes #79844 (2).
15371 - Added a list of forms which contains the order the forms are
15372 added to the mdi parent.
15373 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
15374 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
15375 - If the active form changes set the scrollbars to the top
15376 of the Z order, otherwise the form could hide them.
15377 - Scrollbars are now sized according to ClientSize, not
15378 to Size, and they take into account the other scrollbar
15379 to determine maximum.
15381 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15384 * XplatUIDriver.cs:
15388 - Added RequestAdditionalWM_NCMessages for windows to
15389 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
15390 Currently only implemented in XplatUIWin32.
15392 2006-11-27 Chris Toshok <toshok@ximian.com>
15394 * Hwnd.cs: only add the hwnd to the windows hash in
15395 set_WholeWindow and set_ClientWindow if whole_window/client_window
15396 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
15398 2006-11-27 Mike Kestner <mkestner@novell.com>
15400 * ComboBox.cs: remove redundant OnDropDown call. It is called
15401 from the ComboListBox.ShowWindow code. Fixes #79969.
15403 2006-11-27 Chris Toshok <toshok@ximian.com>
15405 * Hwnd.cs: remove the setters for ExposePending and
15406 NCExposePending - noone uses them.
15408 2006-11-27 Jackson Harper <jackson@ximian.com>
15410 * TextControl.cs: new param for ReplaceSelection which determines
15411 whether we select the new selection, or set the cursor to the end
15412 of the new selection.
15413 * TextBoxBase.cs: Use new param for ReplaceSelection. When
15414 pasting, select the new text.
15415 * RichTextBox.cs: Use new param for ReplaceSelection.
15417 2006-11-27 Jackson Harper <jackson@ximian.com>
15419 * TextBoxBase.cs: Set the selection to the caret after the caret
15420 is moved, otherwise they get out of sync.
15422 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15424 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
15427 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15429 * ThemeWin32Classic.cs:
15430 - Fix toolbar drop down arrow position.
15431 - Fix drop down appearance when ToolBar.Appearance is normal,
15434 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
15436 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
15437 * Control.cs: Same.
15438 * UpDownBase.cs: Same.
15439 * ButtonBase.cs: Same.
15440 * ScrollBar.cs: Same.
15441 * TrackBar.cs: Same.
15442 * PictureBox.cs: Same.
15443 * UserControl.cs: Same.
15445 * ListControl.cs: Same.
15446 * TextBoxBase.cs: Same.
15447 * ListView.cs: Same.
15448 * RichTextBox.cs: Same.
15449 * TreeView.cs: Same.
15451 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
15454 - Text label for where
15455 - Text label comment was not shown
15457 2006-11-23 Everaldo Canuto <everaldo@simios.org>
15459 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
15461 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15463 * InternalWindowManager.cs:
15464 - Handle WM_PARENTNOTIFY to activate the form
15465 if any child control is clicked.
15466 - The form is only sizable if not minimized.
15468 * MdiWindowManager.cs:
15469 - Save the IconicBounds if the form is moved.
15470 - Rework SetWindowState, now the window bounds
15471 are stored only if the old window state is Normal.
15474 - In SetWindowStates store the old window state if
15475 the window is maximized and restore window state if
15476 the window looses focus.
15477 - Don't handle any scrollbar value changes if
15478 initializing the scroll bars. Fixes #79771.
15479 - Reworked ArrangeIconicWindows. Current algorithm
15480 tests bounds agains all other minimized windows, if
15481 any intersections create new bounds (going left to
15482 right, bottom to top) and then test again. When
15483 successful the bounds are saved and never computed
15484 again. Fixes #79774.
15486 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15488 * InternalWindowManager.cs: Added HandleTitleBarUp.
15490 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15492 * NumericUpDown.cs: In .NET 1.1, user entered text is still
15493 hexadecimal in ParseUserEdit.
15496 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15498 * MdiWindowManager.cs:
15499 - Handle a click on the form's icon to show the
15500 system menu (when maximized). Fixes #79775.
15501 - Change the existing click handler for the form's
15502 icon when not maximized to show on MouseUp.
15505 * Form.cs: In OnResize only layout the mdi child's
15506 parent if it actually has a parent. Might not if
15507 the window is closing.
15510 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15512 * MdiClient.cs: Ignore active MDI client for text of parent, if
15513 child has no text set.
15515 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15517 * ToolBar.cs: Fixed ToString to match MS.
15519 2006-11-22 Andreia Gaita <avidigal@novell.com>
15522 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
15523 update inner values on set. Fixes #79966.
15524 - Override OnLostFocus to update value on NET 2. Fixes #79950.
15525 - Fix hexadecimal parsing.
15527 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
15528 parent. Fixes #79957
15530 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15532 * Control.cs: After calling SetWindowsPos in SetBoundsCore
15533 the actual size has to be queried, since if height /
15534 width is negative Win32 changes it to 0.
15535 Fixes #79999 on Windows.
15537 * XplatUIX11.cs: Set height / width to 0 if negative
15538 in SetWindowPos. Fixes #79999 on Linux.
15540 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15542 * ThemeWin32Classic.cs: Fix text redenring when button is
15545 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15547 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
15548 and later navigate by mouse. Fixes #79528.
15550 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15552 * ToolBar.cs: Set default value for TabStop to false in
15553 constructor, it fixes remaining behavior of bug #79863.
15555 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15557 * MdiWindowManager.cs:
15558 * InternalWindowManager.cs:
15559 - Moved a few methods specific to Mdi from
15560 InternalWindowManager to MdiWindowManager.
15563 2006-11-21 Chris Toshok <toshok@ximian.com>
15565 * XplatUIOSX.cs: stub out InvalidateNC.
15567 * XplatUIWin32.cs: implement InvalidateNC using the call I found
15568 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
15570 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
15572 * XplatUIDriver.cs: add InvalidateNC abstract method.
15574 * XplatUI.cs: add InvalidateNC.
15576 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15578 * ToolBar.cs: Invalidate complete button area when pressed status
15580 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
15581 * ThemeWin32Classic.cs: Increase vertical and horizontal position
15582 by 1 when button is pressed.
15584 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15586 * ToolButton.cs: Invalidate middle of DropDown button when
15587 ToolBar theres DropDownArrows.
15588 * ThemeWin32Classic.cs: Change position of DropDown arrow and
15589 fix DropDown drawing operations.
15591 2006-11-20 Chris Toshok <toshok@ximian.com>
15593 * NativeWindow.cs: fix the formatting of functions ('{' on the
15594 following line), and enable the thread exception dialog.
15596 * Application.cs: remove the duplicate exception catching from
15599 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15601 * Toolbar.cs: Triggers button click event when click on icon
15602 of dropdown ToolBarButton. Fixes #79912.
15604 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15607 * ThemeWin32Classic.cs:
15608 - Added a property WindowBorderFont to enable themeing
15609 of mdi child windows' Text.
15611 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15613 * InternalWindowManager.cs:
15616 * MdiWindowManager.cs:
15617 - If mdi child is maximized, set mdi parent's
15618 text to "Parent - [Child]". Fixes #79770.
15619 - If there is any maximized mdi child windows, only the active
15620 window (and any new windows) is maximized, the rest are normal.
15621 - On a WindowState change only save mdi child's window bounds
15622 if the old window state was normal. Fixes #79774.
15623 - The scroll bars are now calculated on hopefully all
15624 necessary events. Fixed #79771 / #79844->6 / #79906.
15625 - MdiClient.SizeScrollBars() now takes into account docked
15626 controls in the parent when calculating available space.
15627 - InternalWindowManager now always repaints the entire title
15628 area. Fixes #79844->1/4/5.
15629 - Added RequestNCRecalc on mdi child windowstate changes.
15632 2006-11-20 Mike Kestner <mkestner@novell.com>
15634 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
15635 in the MouseUp handler of the listbox and move the return handling
15636 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
15638 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15640 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
15642 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15644 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
15645 working in 1.2.x anymore. So, updated.
15647 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
15649 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
15650 NumberGroupSeparator of current culture instead of assuming en-US.
15653 2006-11-17 Mike Kestner <mkestner@novell.com>
15655 * Control.cs: Add the concept of implicit bounds setting so that
15656 dock/undock round trips preserve explicitly set size/locations.
15659 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15661 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
15662 can't handle those filters. (Fixes bug #79961)
15664 2006-11-17 Chris Toshok <toshok@ximian.com>
15666 [ fixes the exit/crashes associated with #79835. it's clearly
15667 suboptimal though, we need to figure out a better way to solve
15670 * PrintPreviewControl.cs: deal with the new invalid printer
15673 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
15674 and return false (so CommonDialog.ShowDialog doesn't actually show
15677 * PrintDialog.cs: enable/disable the Ok button depending on
15678 whether or not the printer is valid.
15680 * CommonDialog.cs (ShowDialog): only actually show the form if
15681 RunDialog returns true.
15683 2006-11-17 Jackson Harper <jackson@ximian.com>
15685 * TextControl.cs: When soft splitting a line, mark it as a soft
15686 split line. Also carry over the current line break to the next
15689 2006-11-17 Chris Toshok <toshok@ximian.com>
15691 * XplatUIX11.cs: when scrolling a window with an invalid area, we
15692 only want to shift the part of the invalid area that overlaps the
15693 area we're scrolling. we also don't want to clear the invalid
15694 area unless the invalid area was entirely contained within the
15697 2006-11-16 Chris Toshok <toshok@ximian.com>
15699 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
15700 also make sure to free the memory returned by XGetWindowProperty
15703 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
15705 2006-11-16 Chris Toshok <toshok@ximian.com>
15707 * XplatUI.cs: add a new super secret way to get at the totally
15708 unsupported X11 backend.
15710 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
15712 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
15714 2006-11-16 Jackson Harper <jackson@ximian.com>
15716 * TreeView.cs: Allow more explicit setting of top node position
15717 for scrollbars. Slower algo, but more accurate.
15718 - CollapseAll should maintain the current top node.
15719 * TextBoxBase.cs: When positioning the caret, use the line, pos
15720 method, since the x, y method does not grab the correct tag, and
15721 the caret height never gets set correctly. (Maybe I should just do
15722 away with the caret having its own height, and always use the
15723 carets current tag for height).
15725 2006-11-16 Jonathan Pobst <monkey@jpobst.com
15727 [Fixes 79778, 79923]
15729 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
15730 Parent to the FosterParent instead.
15732 2006-11-16 Jackson Harper <jackson@ximian.com>
15734 * TreeView.cs: Need to recalc the topnode when we expand or
15735 collapse. The scrolling methods can't handle this on their own,
15736 since they use differences between the last scroll position, and
15737 those difference get completely messed up since we are expanding
15738 nodes. This problem should probably be fixed in the scrolling
15739 methods, so they can figure out exactly where they are, but this
15740 will slow things down a little.
15741 * ThemeWin32Classic.cs: Special case for groupboxes with empty
15742 strings, makes nunit-gui look a lot nicer.
15744 2006-11-16 Chris Toshok <toshok@ximian.com>
15746 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
15747 the broken multithreaded event handling we have in here. File
15748 this entry under "Why we should move to the new X11 backend".
15750 Any thread can make it into UpdateMessageQueue, which gets events
15751 from the X socket - some of which could belong to hwnds being
15752 managed by a different thread. We can also have multiple threads
15753 in UpdateMessageQueue at the same time, with each one reading from
15754 the X socket. This leads to many problems, with the following
15757 We can't use hwnd.Queue.Enqueue anywhere in here and must use
15760 The MotionNotify compression we do can't work across threads
15761 (without locking the entire queue, perhaps) since we call
15762 hwnd.Queue.Peek, so we just punt and don't compress motion events
15763 unless the owning thread is the one which got the X event.
15765 ConfigureNotify is another fun one, since it modifies the hwnd's
15766 bounds and then enqueues the event. We add a lock to Hwnd which
15767 is held when setting configure_pending to true (and enqueuing the
15770 There is a race wrt the wake socket. we need to make sure that
15771 only 1 thread is waiting on that socket, or else a thread could
15772 sleep waiting for data that never comes. It's difficult (but not
15773 impossible) to make happen, because it seems to require something
15774 like the following:
15776 1. Thread 1 polls on wake_receive
15778 2. poll returns saying there's data to be read on
15781 3. Thread 2 polls on wake_receive and immediately returns
15782 saying there's data to be read.
15784 4. Thread 2 reads the wakeup byte from wake_receive
15786 5. Thread 1 attempts to read the wakeup byte from
15789 6. Thread 2 exits (due to a form closing, perhaps).
15791 7. Thread 1 blocks forever.
15795 Fixing the Expose handling isn't done yet, and the races inherent
15796 in that piece of code are responsible for the drawing mistakes you
15797 see when generating expose events in a MT app (like NPlot). This
15798 one is the likely to be the hardest to bandaid, and it doesn't
15799 appear to cause anything but drawing problems. The other issues
15800 caused apps to exit or hang.
15802 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
15803 called from a different thread than the one that should be calling
15806 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
15808 2006-11-15 Chris Toshok <toshok@ximian.com>
15810 * Application.cs: null out the context's MainForm when we exit
15811 RunLoop. Fixes a newly checked in unit test as well as the last
15812 ODE from bug #79933.
15814 2006-11-15 Chris Toshok <toshok@ximian.com>
15816 * Form.cs (set_Owner): allow a null value so we can clear the
15818 (Dispose): set all our owned_form's Owner properties to null, and
15819 clear the owned_forms collection.
15820 (WM_CLOSE): clean up this a little bit.. still not right though.
15822 * ApplicationContext.cs: OnMainFormClosed should only call
15823 ExitThreadCore if the main form isn't recreating. Fixes unit
15826 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15830 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
15832 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15836 * Hwnd.cs: Add a flag to show a window, but not activate it, to
15837 keep popup window types from stealing focus from the main form
15840 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
15842 * MenuAPI.cs: Set above flag to true.
15844 2006-11-15 Chris Toshok <toshok@ximian.com>
15846 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15847 the button being released is not in wParam.
15849 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15851 * Form.cs: Add the released button to MouseEventArgs.Button
15852 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
15855 2006-11-15 Chris Toshok <toshok@ximian.com>
15857 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15858 GetText(). untested because it's unused in our implementation.
15859 Control.Text always caches the text, even if
15860 ControlStyles.CacheText is not set.
15864 2006-11-15 Chris Toshok <toshok@ximian.com>
15868 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15869 message. no hiding, no disposing.
15871 in the WM_CLOSE handler, hide the form if it's modal.
15873 2006-11-15 Chris Toshok <toshok@ximian.com>
15875 * XplatUIX11.cs: use AddExpose instead of sending a message.
15876 fixes textbox border drawing.
15878 2006-11-15 Chris Toshok <toshok@ximian.com>
15880 * PropertyGridView.cs: keep from crashing on mouse move/down when
15881 the property grid is empty.
15883 2006-11-14 Jackson Harper <jackson@ximian.com>
15885 * TextControl.cs: Make PageUp and PageDown more like the MS
15887 * TextBoxBase.cs: When we set the text property position the
15888 cursor at the beginning of the document.
15890 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15892 * Form.cs: if a mdi child's WindowState has changed
15893 before it's creation, it would display wrong control
15896 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
15898 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15901 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15903 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
15904 the window gets to paint its borders even if the window is
15907 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
15908 otherwise the old control buttons would still be painted
15909 if the window gets bigger.
15911 * PaintEventArgs.cs: add an internal method so that the clip
15912 rectangle can be changed.
15914 2006-11-13 Chris Toshok <toshok@ximian.com>
15916 [ fixes bug #79745 ]
15918 * NotifyIcon.cs: lots of cleanup.
15920 * X11Structs.cs: add an enum for XEMBED messages.
15922 * XplatUIX11.cs: reindent one of the giant switch statements, it
15923 was taking up an additional tab stop, and this file is already way
15924 too wide for my laptop's screen.
15926 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
15927 we get it, resize the hwnd to the WMNormalHints max_width/height.
15929 2006-11-13 Jackson Harper <jackson@ximian.com>
15931 * TextBoxBase.cs: Compute the value changes for the mouse wheel
15934 2006-11-13 Chris Toshok <toshok@ximian.com>
15936 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15937 #79898. force a reference to the Region to stick around so the
15938 unmanaged object isn't collected (rendering our handle in the MSG
15941 2006-11-13 Chris Toshok <toshok@ximian.com>
15943 * XplatUIX11.cs: fix #79917 for window managers which support
15945 using XStoreName on the raw utf8, and we need to convert to
15946 COMPOUND_TEXT if it's non-latin1.
15948 2006-11-13 Chris Toshok <toshok@ximian.com>
15950 * Form.cs (set_DialogResult): we need to set closing to false if
15951 we're setting our result to None. fixes bug #79908.
15953 2006-11-13 Jackson Harper <jackson@ximian.com>
15955 * TextControl.cs: When formatting text, compute the adjusted tag
15956 lengths correctly, using FindTag for the end tag instead of trying
15957 to figure it out outselves.
15958 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15959 the item, ItemHeight doesn't work, because trees with large
15960 imagelists use those for their height
15961 * TreeView.cs: ActualItemHeight factors in the image height
15962 - compute left edge of checkboxes correctly
15963 - when expanding/collapsing move the bottom down one pixel, so we
15964 aren't moving part of the node
15966 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15968 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15969 stack in PaintEventStart so that it won't get disposed by the gc
15970 before reaching PaintEventEnd.
15972 2006-11-13 Jackson Harper <jackson@ximian.com>
15974 * TextBoxBase.cs: Don't select the word if we are on a line with
15976 - We don't need to position the caret on mouse up, since the mouse
15977 move handler should be doing this
15978 - When double clicking a blank line, the caret is advanced to the
15981 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
15983 * TreeNodeCollection.cs: Avoid duplicating indexer code.
15985 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
15987 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
15988 Fixes part of bug #79910.
15990 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
15992 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
15993 (bug #79903). Some minor string updates to match ms.
15995 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15997 * FileDialog.cs: Don't add an extension if the filename
15998 already ends with that extension.
16000 2006-11-10 Jackson Harper <jackson@ximian.com>
16002 * TreeView.cs: Use the currently highlighted node for the
16003 BeforeSelect event.
16004 * TextBoxBase.cs: There is no need to expand selection on
16006 - CanUndo means 'is there any undo operations', not 'is undo
16007 allowed on this textcontrol. Fixed ClearUndo unit test.
16009 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
16011 * Button.cs: only perform click when button is Selectable (so as
16012 not to activate default buttons when they're disabled)
16014 * Control.cs: Rewrite of the SelectNextControl and related
16015 methods. HandleClick now selects next control if the current one
16018 * Form.cs: OnActivated selects next active control only if Load
16019 has already occurred. If Load hasn't run, there's no point in
16020 selecting here, Load might change the state of controls.
16022 * FocusTest.cs: Tests marked as working again for these fixes
16024 2006-11-10 Chris Toshok <toshok@ximian.com>
16026 * XplatUIX11.cs: a couple of fixes.
16028 - use XInternAtoms with almost all the atoms we need to register,
16029 instead of many, many calls to XInternAtom. should help a bit on
16030 startup time, at the expense of making the code look a little
16033 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
16034 isn't reparented (which seems to be a clue that we're running fon
16035 compiz) and they have an Owner form. This fixes the tool windows
16036 in paint.net when running under compiz.
16038 - when setting the opacity of a window, support both the case
16039 where the window has been reparented and also when it hasn't been.
16040 Since compiz/beryl doesn't seem to reparent windows, and these are
16041 the only window managers which support translucency, I'm not sure
16042 why we need the hwnd.reparented case at all.. but leave it in.
16043 now we get translucent windows in paint.net under compiz/beryl.
16045 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16047 * FileDialog.cs: Always return the value for FilterIndex that
16048 was set. Internally convert it to values that make sense.
16050 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16052 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
16054 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16056 * Toolbar.cs: Change default value of DropDownArrows to true, the
16057 signature still using false to make it compatible with MS but the
16058 initial value is true. Fixes #79855.
16060 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16062 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
16063 only available on Linux.
16065 2006-11-09 Everaldo Canuto <everaldo@simios.org>
16067 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
16068 reduce number of calls to redraw method during toolbar creation.
16070 2006-11-09 Mike Kestner <mkestner@novell.com>
16072 * ListView.cs : raise SelectedIndexChanged when an item is selected
16073 programmatically via the Item.Selected property. Gert's nice
16074 ListViewSelectedIndexChanged test fixture now runs clean.
16076 2006-11-09 Mike Kestner <mkestner@novell.com>
16078 * ListView.cs : raise SelectedIndexChanged when a selected item is
16079 removed from the item collection using Remove or RemoveAt.
16081 2006-11-09 Mike Kestner <mkestner@novell.com>
16083 * ListView.cs : raise SelectedIndexChanged once per selected item
16084 for compat with MS. Fixes #79849+.
16086 2006-11-09 Chris Toshok <toshok@ximian.com>
16088 * TabControl.cs: initialize row_count to 0, and set it to 1 when
16089 we need to (if we have any tab pages). Fixes unit test.
16091 2006-11-09 Chris Toshok <toshok@ximian.com>
16093 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
16094 width is 0, not 3. Fixes a unit test.
16096 2006-11-09 Mike Kestner <mkestner@novell.com>
16098 * ListView.cs : use Implicit scrollbars so that focus isn't
16099 stolen from the listview when they are clicked. Fixes #79850.
16101 2006-11-09 Chris Toshok <toshok@ximian.com>
16103 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
16104 have a root item. Fixes #79879.
16106 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
16110 - An ArgumentException is now thrown if a wrong filter
16111 is applied (matches ms). The previous filter doesn't change
16112 anymore if an exception is thrown.
16113 - Changing the FileName property also affects FileNames
16114 * ColorDialog.cs: The length of the CustomColors array is always
16115 16. It doesn't matter if we use a smaller array or null to update
16116 or change the custom colors property.
16117 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
16118 for RootFolder if we get a undefined value.
16120 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
16122 * StatusBarPanel.cs:
16123 - Width is set to MinWidth if Width is smaller than
16124 MinWidth. Fixes #79842.
16125 - MinWidth now always overrides Width (MSDN says MinWidth
16126 is set to Width when AutoSize = None, but they do not
16128 - Style has now the the correct default value.
16130 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
16133 - The control is completely invalidated on
16134 Got/LostFocus to draw the focus rectangle correctly.
16135 - When AutoSize then height is always 45 (width for
16136 vertical controls).
16138 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
16139 on the mouse when moved and it doesn't move when grabbed
16140 until the mouse moves as well. Also fixed some wrong
16141 calculations when clicking on the thumb (control thought
16142 click was outside of thumb and didn't grab it).
16143 Fixes some of the issues in #79718.
16145 2006-11-08 Everaldo Canuto <everaldo@simios.org>
16147 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
16149 2006-11-08 Chris Toshok <toshok@ximian.com>
16151 * PropertyGridView.cs: only call ToggleValue if the item is not
16154 2006-11-08 Jackson Harper <jackson@ximian.com>
16156 * TextBoxBase.cs: The RichTextBox and textbox have very different
16157 word selection methods. Implement the textbox's simple word
16158 selection here, and let the RichTextBox override and provide it's
16160 - Don't do extra selection on mouseup
16161 * RichTextBox.cs: Use the documents word selection algorithm, I
16162 think ideally, this function will be pulled into the
16163 RichTextBox.cs code someday.
16165 2006-11-08 Chris Toshok <toshok@ximian.com>
16167 * RootGridEntry.cs: new class to represent GridItemType.Root.
16169 * CategoryGridEntry.cs: reformat, and add boilerplate.
16171 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
16172 returns the UI parent anyway, and we need special handling to
16173 implement the GetTarget method in the face of it. Also, implement
16176 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
16177 a root grid item, and use that instead of PropertyGrid.grid_items.
16178 Also, make use of TypeConverters (and add limitted support for
16179 ICustomTypeDescriptors) when initially populating the grid.
16180 Arrays now show up more or less properly.
16182 2006-11-08 Chris Toshok <toshok@ximian.com>
16184 * Application.cs: set the modal dialog to non modal after we close
16185 it. Fixes bug #79866.
16187 2006-11-08 Jackson Harper <jackson@ximian.com>
16189 * TextControl.cs: When combining lines carry over the line end
16190 style from the end line.
16191 - Invalidate the selected area when setting it, if it is visible.
16192 * TextBoxBase.cs: Only rich text box can do full line selects.
16193 - Make sure to set the cursor position when there is a click,
16194 otherwise two clicks in separate areas could cause a large chunk
16197 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16199 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
16202 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16204 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
16205 time. Remove tooltips when ToolButton click events. Fixes #79856.
16207 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16209 * MenuAPI.cs: Ignore right click for menu actions and fixes
16210 menu border when clicked. Fixes #79846.
16212 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16214 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
16215 MouseState after create wParam for message, this fixes mouse button
16216 equal none in mouse up events.
16218 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
16220 * Control.cs : Focus() now calls Select to set the Container's
16221 Active Control and to give it focus. To avoid infinite recursion
16222 (because ActiveControl also calls Focus at one point), a check
16223 is made in Focus with the help of a new internal variable
16226 2006-11-07 Mike Kestner <mkestner@novell.com>
16228 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
16229 if there's a selection. Fixes #79849.
16231 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
16233 * PropertyGrid.cs: Avoid fixed height of help description label.
16234 Fixes part of bug #79829.
16236 2006-11-07 Chris Toshok <toshok@ximian.com>
16238 * XplatUIX11.cs: fix #79790 again, by using the
16239 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
16241 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16243 * ToolBar.cs: Fix left click checking.
16245 2006-11-07 Chris Toshok <toshok@ximian.com>
16247 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
16249 2006-11-07 Chris Toshok <toshok@ximian.com>
16251 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
16252 PropertyManager unit tests.
16254 * PropertyManager.cs: make property_name internal.
16256 2006-11-07 Chris Toshok <toshok@ximian.com>
16258 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
16259 pass a unit test. Also, don't set image_index to anything in
16260 response to setting the ImageList property.
16262 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16264 * ToolBar.cs: Ignore click events when mouse button is not a
16265 left button, only accepts other button for dropdown menus.
16268 2006-11-07 Chris Toshok <toshok@ximian.com>
16270 * DataGrid.cs: make the back and parent row buttons a little less
16273 2006-11-07 Jackson Harper <jackson@ximian.com>
16275 * TextBoxBase.cs: When converting to Text don't put line breaks in
16276 for soft line breaks.
16277 * TextControl.cs: There is an initial "fake" line in the document,
16278 this is now a soft break line, so that an extra line feed doesn't
16279 get added to the end of documents.
16281 2006-11-07 Chris Toshok <toshok@ximian.com>
16285 * CurrencyManager.cs: if the list is readonly, don't bother
16286 checking if IBindingList.AllowNew is true.
16288 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
16289 for non-DataRowView datasources.. or rather, make it not crash.
16290 (DataGridPaintRelationRow): make sure we limit the row painting to
16291 the area not covered by the row header, and make our cell width at
16292 least large enough to cover the relation area. This allows grids
16293 that have relations but no rows to render correctly.
16294 (DataGridPaintRowContents): same type of changes here.
16295 (SetDataSource): move back to always calling
16296 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
16297 navigating back through relations.
16298 (HitTest): handle the case where we have no cells but have
16299 relations. Right now we generate a hit in cell 0 of whatever the
16300 row is, not sure if this is strictly correct, but it works for our
16303 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
16304 bother doing anything.
16306 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
16308 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
16309 early version of StatusStrip. Not responsible for eaten
16310 application or firstborn children.
16312 2006-11-06 Chris Toshok <toshok@ximian.com>
16314 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
16315 call GetTabRect with a -1 index. Fixes #79847.
16317 2006-11-06 Jackson Harper <jackson@ximian.com>
16319 * TreeNodeCollection.cs: Update scrollbars after clearing.
16321 2006-11-06 Chris Toshok <toshok@ximian.com>
16323 * NumericUpDown.cs: fix the ToString method for some unit test
16326 2006-11-06 Chris Toshok <toshok@ximian.com>
16329 - set the initial SelectedGridItem if we can.
16331 - Exclude non-mergable properties only if we're merging > 1
16332 object. Merging 1 object isn't really merging, obviously.
16334 - Handle PropertySort.NoSort just like Alphabetical, which is
16335 wrong of course, but at least gets things on the screen.
16337 * PropertyGridView.cs:
16338 - Add method "FindFirstItem" which finds the first property grid
16339 item, so we can select it by default.
16341 - make use of GridEntry.CanResetValue.
16343 - Don't call RedrawBelowItemOnExpansion here anymore, the
16344 individual GridEntry's will do that.
16346 - Remove the ITypeDescriptorContextImpl internal class.
16349 - this class needs to implement ITypeDescriptorContext, as it's
16350 what MS's PropertyDescriptorGridEntry does, which means we can
16351 remove the ITypeDescriptorContextImpl internal class from
16352 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
16354 - keep a reference to our PropertyGridView, and move the call to
16355 RedrawBelowItemOnExpansion here from PGV. This means
16356 programmaticly setting Expanded actually does something visible.
16358 - add a CanResetValue() function which takes into account our
16359 possibly multiple "selected_objects" in the merged case. Shifting
16360 PropertyGridView to use this method fixes another unreported
16361 crasher found running the test for #79829.
16363 - when Top or Bounds is updated, make sure the PropertyGridTextBox
16364 is updated to reflect this.
16366 * CategoryGridEntry.cs: the ctor takes the PGV now.
16368 2006-11-06 Jackson Harper <jackson@ximian.com>
16370 * TextControl.cs: These are 1 based.
16371 * TextBoxBase.cs: When setting the selected text, don't change the
16372 selected text tags, this is done by ReplaceText, just position the
16373 cursor at the end of the new text.
16375 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
16377 * ListView.cs: Allow label edit only when, when LabelEdit is
16380 2006-11-06 Jackson Harper <jackson@ximian.com>
16382 * TextControl.cs: If a suitable wrapping position isn't found,
16383 just wrap right in the middle of a word.
16385 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
16387 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
16390 2006-11-06 Jackson Harper <jackson@ximian.com>
16392 * TreeView.cs: Can't use the VisibleCount property when setting
16393 scrollbar heights, because this doesn't take into account whether
16394 or not the horz scrollbar just came visible.
16396 2006-11-05 Everaldo Canuto <everaldo@simios.org>
16398 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
16399 activated. Fixes #79369, #79832.
16401 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
16403 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
16404 had to remove support for links that point to a directory. FileInfo
16405 returns no usefull information (means, the directory they point to)
16406 for such links. Replaced some empty string ("") with String.Empty.
16408 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16410 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
16411 NullReferenceException when attempting to remove node that is not in
16412 collection. Throw NullReferenceException when null is passed to
16413 Remove. Allow first element of the collection to be removed. Fixes
16414 bug #79831. In GetEnumerator ().Current return null if positioned
16415 before the first element of the collection. In GetEnumerator ().Reset,
16416 position before first element of the collection.
16418 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16420 * PropertyGrid.cs: To match MS, remove default title and description
16421 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
16424 2006-11-04 Chris Toshok <toshok@ximian.com>
16426 * Theme.cs: add a Clamp method, just for kicks.
16428 * ThemeWin32Classic.cs: clamp all color components to [0..255].
16430 2006-11-04 Chris Toshok <toshok@ximian.com>
16432 * Form.cs: if the form isn't visible, Close() does nothing.
16434 2006-11-03 Chris Toshok <toshok@ximian.com>
16436 * Form.cs (Close): if the form is modal, don't Dispose of it, only
16438 (WndProc): don't Dispose after handling the WM_CLOSE message.
16440 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
16441 them as such, instead of using casts from Control to Form. Also,
16442 don't Dispose of the modal dialog when we fall out of the loop -
16443 Close() it instead.
16447 2006-11-03 Chris Toshok <toshok@ximian.com>
16449 * Control.cs (Dispose): only go through the dispose thing if we're
16450 @disposing, and we haven't already been disposed. Fixes bug
16453 * Form.cs: no reason to call "base.Dispose()" here instead of
16456 2006-11-03 Mike Kestner <mkestner@novell.com>
16458 * ComboBox.cs : use ToString instead of casts in AddItem for
16459 sorting functionality. Fixes #79812.
16461 2006-11-03 Chris Toshok <toshok@ximian.com>
16463 * Application.cs: pave the way for actually using the thread
16464 exception dialog. it's ifdefed out at the moment.
16466 2006-11-03 Chris Toshok <toshok@ximian.com>
16468 * ThreadExceptionDialog.cs: until we get a better layout, actually
16469 hide the details textbox and label when we shouldn't see them.
16471 2006-11-03 Jackson Harper <jackson@ximian.com>
16473 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
16474 multiline textboxes anymore. This method also determines the
16475 width/height of a textboxes canvas area.
16476 - Sorta a revert of the last patch. For multiline just position
16477 the controls, then bail. This way the scrollbar width won't be
16480 2006-11-03 Everaldo Canuto <everaldo@simios.org>
16482 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
16483 it dont need. Fixes #79537.
16485 2006-11-02 Jackson Harper <jackson@ximian.com>
16487 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
16488 send the status after firing the DndOver event.
16490 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16492 * TrackBar.cs: Now orientation only switches height / width if
16493 the control's handle is created (Win32 does it like this). Also
16494 fixed a typo in ToString() for a test to pass, changed the
16495 exception thrown in set_LargeChange and set_SmallChange to
16496 match Win32 behaviour, and added TrackBar tests to the unit
16499 2006-11-02 Chris Toshok <toshok@ximian.com>
16501 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
16502 not _NET_WM_STATE_NO_TASKBAR.
16504 2006-11-02 Jackson Harper <jackson@ximian.com>
16506 * TextControl.cs: Increment count by one, since in the update view
16509 2006-11-02 Jackson Harper <jackson@ximian.com>
16511 * TextBoxBase.cs: Use client rectangle not bounds for checking if
16512 the mouse is in the client rectangle (duh).
16514 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16516 * TrackBar.cs: Fixed trackbar jumping around when clicking
16517 on it - the trackbar was not detecting correctly at which
16518 side of the thumb the click was done. (fixes #79718)
16520 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16522 * ListBox.cs: scroll visible area when change SelectedIndex to
16523 a non visible area. Fixes #79481.
16525 2006-11-01 Jackson Harper <jackson@ximian.com>
16527 * TextControl.cs: When replacing the selection move the selection
16528 start/end/anchor to the end of the new text.
16530 2006-11-01 Jackson Harper <jackson@ximian.com>
16532 * XplatUIWin32.cs: When setting the parent change the controls
16533 visibility to it's visibility flag, not to it's old parents
16534 visibility (.Visible walks the parent chain).
16536 2006-11-01 Chris Toshok <toshok@ximian.com>
16538 * XplatUIX11.cs: revert the #79790 fix, as the simple.
16539 XSetTransientForHint fix breaks paint .net's tool windows. more
16540 work needed for that one.
16542 2006-11-01 Chris Toshok <toshok@ximian.com>
16544 * ScrollBar.cs: throw ArgumentException instead of Exception in
16545 LargeChange/SmallChange setters. fixes unit tests.
16547 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16549 * ContainerControl.cs: reverted rev.67183 (which was itself
16550 a reversion of rev.66853... eh).
16552 * Control.cs: Fixes Reflector hang by changing Focus() call
16553 to what it was before rev.66643 (calling Select() here sets
16554 ActiveControl, which in some situations calls back Focus and
16555 eventually does a stack overflow). Temp fix.
16556 Changes to GetNextControl() to not look for children to select when
16557 parent cannot be selectable (so it looks for siblings instead)
16559 2006-10-31 Mike Kestner <mkestner@novell.com>
16561 * CheckedListBox.cs : off by one error in returned index from
16562 ObjectCollection.Add. Fixes #79758.
16564 2006-10-31 Chris Toshok <toshok@ximian.com>
16566 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
16567 calls for the textbox/spinner, to keep from recursing to the point
16568 where we crash. Fixes #79760.
16570 2006-10-31 Chris Toshok <toshok@ximian.com>
16572 * ListControl.cs (set_SelectedValue): don't throw exceptions on
16573 null/"" value, just return. matches ms's behavior and fixes some
16576 2006-10-31 Chris Toshok <toshok@ximian.com>
16578 * Control.cs (set_Capture): make a logic a little easier to
16581 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
16582 if it's being destroyed. A necessary fix surely, but a bandaid
16583 also, to fix the stuck capture problem in bug #78413.
16585 2006-10-31 Chris Toshok <toshok@ximian.com>
16587 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
16588 convention of clearing hwnd.ClientRect when we set the
16589 width/height (so it'll be recalculated by Hwnd).
16591 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16593 * ContainerControl.cs: reversed Contains check from
16594 ActiveControl due to hanging problems. This fix
16595 partly regresses #79667 (button does not have
16596 initial focus), so this might be a symptom for
16597 a larger parenting problem (set_ActiveControl
16598 is being called but the child control does
16599 not have the parent set yet?)
16601 2006-10-31 Mike Kestner <mkestner@novell.com>
16603 * MenuAPI.cs : fix keynav when menu is click activated.
16605 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
16607 * ToolStrip*: Version 0.2.
16609 * MenuStrip.cs: Version 0.1.
16611 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
16613 2006-10-30 Chris Toshok <toshok@ximian.com>
16615 [ fixes the oversized notify icon issue in bug #79745 ]
16617 * NotifyIcon.cs: scale the icon down to the size we're given by
16618 the XplatUI layer (this would be faster if we did it once instead
16619 of whenever we paint..) Also, remove the WM_NCPAINT handling,
16620 since it's never invoked.
16622 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
16623 pixels high by default, so let's hardcode our systray icon to that
16624 size. The SYSTEM_TRAY protocol should really have a way for
16625 client apps to query for the correct icon size.. but oh well. A
16626 couple of patches to deal with the screwy client_window ==
16627 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
16628 instance, and also make sure we don't XSelectInput twice).
16630 2006-10-30 Chris Toshok <toshok@ximian.com>
16632 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
16633 recreating forms. Control recreation is the bane of my existence.
16634 Fix it in a way that keeps everyone happy.
16636 2006-10-30 Chris Toshok <toshok@ximian.com>
16638 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
16639 just non-CHILD ones. otherwise sometimes scrollbars end up with
16640 client_windows not being resized to the proper size (ReportBuilder
16641 shows this extremely well).
16643 2006-10-30 Chris Toshok <toshok@ximian.com>
16645 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
16646 for non-WS_EX_APPWINDOW windows. This is what keeps them from
16647 showing up in the gnome taskbar. Fixes bug #79790.
16649 2006-10-30 Chris Toshok <toshok@ximian.com>
16651 * ApplicationContext.cs: guard against a NRE.
16653 * Application.cs: null out the old MainForm for the context, so we
16654 don't try to use it again once it's disposed. Fixes bug #79783.
16656 2006-10-30 Chris Toshok <toshok@ximian.com>
16658 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
16659 BindingContext, set the data source directly, otherwise do the
16660 lazy approach - the actual ListManager will be created when we get
16661 a BindingContext. Fixes bug #79700.
16663 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16665 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16666 XplatUIX11.cs: Remove old 2 parameter SetVisible.
16668 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
16670 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16672 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
16673 of SetVisible that allows a window to be shown, but not activated.
16674 This is needed on Windows for MenuStrip, and can probably be used
16675 with MainMenu and ComboBox to fix the focus stealing issues on
16678 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
16680 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
16682 * PictureBox.cs: Fix the output of the ToString method.
16684 2006-10-29 Chris Toshok <toshok@ximian.com>
16686 * Control.cs (get_TopLevelControl): fix bug #79781.
16688 2006-10-29 Chris Toshok <toshok@ximian.com>
16690 * ListControl.cs (set_DataSource): throw Exception here, not
16691 ArgumentException, to match MS behavior.
16693 2006-10-29 Chris Toshok <toshok@ximian.com>
16695 * Form.cs: remove the try-catch's around calls to GetWindowState.
16696 We can just check the return value.
16698 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
16701 * XplatUI.cs: Add note about additional return value for
16704 2006-10-29 Chris Toshok <toshok@ximian.com>
16706 * Control.cs (CreateHandle): when we create our handle, we also
16707 create the handles of our child controls. Fixes one of the
16708 Control unit tests (CH11).
16710 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16712 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
16714 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16716 * ThemeClearlooks.cs: A little speedup.
16718 2006-10-27 Chris Toshok <toshok@ximian.com>
16720 * Control.cs: implement Control.FromChildHandle in a way that
16721 matches the docs (and fixes the failed test.)
16723 2006-10-27 Chris Toshok <toshok@ximian.com>
16725 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
16728 * DataGrid.cs: implement ResetForeColor such that the tests
16731 2006-10-27 Chris Toshok <toshok@ximian.com>
16733 * ToolBarButton.cs: setting text/tooltiptext to null results in it
16734 being set to "". Fixes bug #79759.
16736 2006-10-27 Jackson Harper <jackson@ximian.com>
16738 * TextControl.cs: We need to clear the entire selection area when
16739 setting the start, otherwise multiline selections are still
16742 2006-10-26 Chris Toshok <toshok@ximian.com>
16744 * PropertyGridView.cs:
16746 - ifdef all the code specific to the double
16747 buffer case, and provide some alternatives in the non-doublebuffer
16748 code, which makes heavy use of XplatUI.ScrollWindow to move things
16749 around without having to invalidate (and cause flicker). There
16750 are still some drawing problems in the non-doublebuffered case, so
16751 DOUBLEBUFFER is defined by default.
16753 - Fix the way dropdowns are handled. now we explicitly watch for
16754 the events which might cause the dropdown to close, and break out
16755 of the nested event loop there. This gets rid of all Capture
16756 code, at the expense of the Msg special casing. Seems to work,
16757 though, and fixes bug #79743.
16759 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16760 * Control.cs: SetIsRecreating now recreates implicitly added
16761 child controls as well. Finally fixes #79629. The flag passed to
16762 SetIsRecreating has also been removed since it wasn't used.
16764 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16766 * PageSetupDialog.cs: Clean some code, fix some bits,
16767 add some checks, and add a printer sub-dialog.
16769 2006-10-26 Chris Toshok <toshok@ximian.com>
16771 * PropertyGrid.cs: make set_SelectedObject call
16772 set_SelectedObjects, and move the duplicate logic to the
16773 SelectedObjects setter. Also, raise SelectedObjectsChanged.
16775 * PropertyGridView.cs: hide the textbox when we get a
16776 SelectedObjectsChanged event.
16780 2006-10-26 Chris Toshok <toshok@ximian.com>
16782 * PropertyGridView.cs: deal with the type converter not supporting
16783 GetStandardValues() or GetStandardValues() returning null, which
16784 is does in the default case. Fixes #79742.
16786 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16788 * CheckedListBox.cs: nunit no longer crashes when selecting
16789 Project/Edit menu option
16791 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16793 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
16794 is no menu selected. fixes #79739
16796 2006-10-25 Chris Toshok <toshok@ximian.com>
16798 * PropertyGridView.cs: factor out the splitter invalidation code
16799 into the SplitterPercent setter, and for kicks implement the
16800 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
16801 amount in either direction.
16803 2006-10-25 Chris Toshok <toshok@ximian.com>
16805 * PropertyGridView.cs: do some cleanup of the brush used to draw
16806 text - read only fields should be grayed out. not sure how to do
16807 this with the textbox, though. but the textbox's should also be
16808 readonly now at least. Also, hide/show the textbox when resizing
16811 * CursorConverter.cs: use System.Reflection when getting the
16812 properties of Cursors, as TypeDescriptor.GetProperties isn't
16813 returning static properties.
16815 2006-10-25 Chris Toshok <toshok@ximian.com>
16817 * PropertyGridView.cs: factor out the up/down handling, and reuse
16818 it for page up/down. also add End/Home support.
16820 2006-10-25 Chris Toshok <toshok@ximian.com>
16822 * PropertyGridView.cs:
16824 - ensure the selected grid item is visible in the scrolled area,
16827 - fix Keys.Down handling when you're on the last item in the
16830 2006-10-25 Mike Kestner <mkestner@novell.com>
16832 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
16833 clicks too. Fixes #79725.
16835 2006-10-24 Chris Toshok <toshok@ximian.com>
16837 * PropertyGrid.cs: use property.Converter instead of
16838 TypeDescriptor.GetConverter(property.PropertyType), so we catch
16839 TypeConverters declared on the property as well as on the
16840 PropertyType. Fixes bug #79678.
16842 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
16844 * MimeIcon.cs, Mime.cs:
16845 Fallback to the default platform handler if no shared mime info
16846 stuff exists (fixes #79693).
16848 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16849 * ContainerControl.cs: Incorrect contains check in ActiveControl
16850 from previous fix (duh).
16852 2006-10-20 Chris Toshok <toshok@ximian.com>
16854 * PropertyGridView.cs: the dropdown should be MIN(number of items
16855 in list, 15). Fixes #79551.
16857 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16858 Fixes #79384, #79394, #79652, #79667
16861 - Modal windows are now destroyed in the proper order for windows
16863 * ContainerControl.cs:
16865 - ActiveControl setter has more conditions on when to return:
16866 - if we're reselecting the active control, but it actually
16867 didn't have focus (window hidden or some such), it runs
16868 - if the active control being selected doesn't actually
16869 exist in the container, it returns
16873 - The ShowDialog now gets the current form as the owner when
16874 invoking without parameters, and correctly activates the owner
16879 - MessageBox now catches the Escape key to exit
16881 2006-10-20 Chris Toshok <toshok@ximian.com>
16883 * PropertyGridView.cs: fix a number of issues (bug #78565, and
16884 most of bug #79676):
16886 - you can navigate around the property grid with the arrow keys.
16888 - the dropdown is sized properly when the pg has a vertical
16891 - fix the indentation for subentries, and properly select the
16894 - fix the gray bar's drawing (only draw it to the last element,
16895 not for the height of the control. Also make sure we draw that
16896 last horizontal grid line.
16898 - use the same mechanism the datagrid uses wrt the editing textbox
16899 when scrolling/resizing/etc. Namely, we hide it first, do the
16900 operation, then show it again (if it's still visible).
16902 - aggressively remove a lot of unnecessary refreshes (and also
16903 calls to Invalidate(). call more limited variants, and only redraw
16908 - when we're populating the merged collection, fill in the UI
16909 parent with either the passed in item, or the category item we
16912 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16914 * GridItem.cs: drop some fully qualified names.
16916 * GridEntry.cs: add a "UIParent", which is basically the parent
16919 * GridItemCollection.cs: add an IndexOf method.
16921 2006-10-20 Mike Kestner <mkestner@novell.com>
16923 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
16924 a working win32 NC invalidation mechanism, we can't invalidate
16925 menus. [Fixes #79705]
16927 2006-10-20 Mike Kestner <mkestner@novell.com>
16929 * ListBox.cs : don't update the VScrollbar if the list is empty,
16930 just hide it. [Fixes #79692]
16932 2006-10-20 Jackson Harper <jackson@ximian.com>
16934 * RichTextBox.cs: Handle some special chars better, and don't skip
16935 the entire group when we encounter a special char that we don't
16938 2006-10-18 Chris Toshok <toshok@ximian.com>
16940 * PropertyGridView.cs: address a number of issues from bug #79676,
16941 mostly of the cosmetic variety.
16943 - The highlight rectangle for indented items not extends all the
16946 - Indented items aren't indented so much.
16948 - the dropdown is properly sized width-wise if the pg has a
16949 vertical scrollbar.
16951 2006-10-18 Chris Toshok <toshok@ximian.com>
16953 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16954 systray stuff is rather convoluted to begin with.
16956 systray icons are a single window for some reason (that I haven't
16957 figured out yet), and for them, client_window == whole_window.
16958 Given the way the tests are structured elsewhere to determine
16959 which paints are pending (client vs. nc), that situation will
16960 always yield PAINT, not NCPAINT. So, if we have a pending
16961 nc_expose and no pending expose, remove the hwnd from the paint
16962 queue, and also set nc_expose_pending to false, to keep us from
16963 blocking further expose's adding the hwnd to the paint queue.
16965 phew. like i said, a rather convoluted change. Fixes the
16966 notifyicon repaint issues in bug #79645.
16968 2006-10-18 Chris Toshok <toshok@ximian.com>
16970 * Form.cs: when getting the backcolor of the form, don't get
16971 base.BackColor, as this allows parents to influence the background
16972 color. This breaks mdi forms. Instead, if the background_color
16973 is empty, return the default.
16975 2006-10-18 Chris Toshok <toshok@ximian.com>
16977 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16978 to being private instead of internal static.
16980 * Control.cs: remove all the stupid ParentWaitingOnRecreation
16981 crap, it wasn't working for more deeply nested controls anyway,
16982 and we already have the is_recreating flag - use that instead.
16983 Before calling DestroyHandle in RecreateHandle, recurse through
16984 the control tree setting it to true. this returns the recreate
16985 code to much of its original simplicity, while now guaranteeing we
16986 actually recreate everything we're supposed to. This change gets
16987 fyireporting actually showing mdi children.
16989 2006-10-17 Chris Toshok <toshok@ximian.com>
16991 * Form.cs: remove some debug spew, and collapse some duplicate
16992 code at the end of SetClientSizeCore.
16995 - add some more debug spew here too wrt Destroy handling.
16996 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
16997 in Control's handling of WM_DESTROY.
16998 - Remove the handling of zombie window DestroyNotifies from the
16999 event loop - we don't need it. Now the only DestroyNotifies we
17000 actually handle are ones generated by X.
17001 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17002 match gtk's (functioning) handling of this. This keep metacity
17003 from leaving droppings in the form of wm borders with no window
17004 contents all over the place.
17007 - add a bunch of debug spew wrt control recreation.
17008 - fix a bug where we weren't tracking Visible properly on
17010 - fixed the WM_PAINT double buffer handling to support re-entrant
17011 calls (yes, i know it's gross, but it's happening to us).
17013 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17014 * ThemeWin32Classic.cs: changed drawing of selected days
17015 to make them look better.
17017 2006-10-16 Chris Toshok <toshok@ximian.com>
17019 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
17020 drawing_stack. Nuke the ClientDC/NonClientDC properties.
17022 * XplatUIX11.cs: move away from using hwnd.client_dc and
17023 hwnd.non_client_dc and on to a stack of dc's (and in window's
17024 case, PAINTSTRUCT's), so we can deal with nested Paint calls
17025 without puking or not disposing of Graphics objects.
17027 * XplatUIOSX.cs: same.
17029 * XplatUIWin32.cs: same.
17031 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17033 * FileDialog.cs: Don't call on_directory_changed inside
17034 OnSelectedIndexChanged (it changes the SelectedIndex too).
17035 Instead move it to OnSelectionChangeCommitted.
17037 2006-10-13 Chris Toshok <toshok@ximian.com>
17039 * XplatUIX11.cs: more Destroy work. the current code does the
17040 following things, in order:
17042 1. Enumerates all handles of all controls at or below the one
17043 being destroyed, in pre-order. As it is doing this, it marks the
17044 handles as zombie and clears all references to them.
17046 2. calls XDestroyWindow on the window passed in.
17048 3. SendMessage's WM_DESTROY to all he handles in the accumulated
17051 2006-10-13 Chris Toshok <toshok@ximian.com>
17053 * XplatUIX11.cs: set hwnd.zombie to true before calling
17054 SendMessage (WM_DESTROY). this keeps us from marking the new
17055 window a zombie, and also keeps us from calling sendmessage at
17058 2006-10-13 Jackson Harper <jackson@ximian.com>
17060 * TextControl.cs: Do not show the caret and selection at the same
17061 time. Reduces ugliness by 35%.
17063 2006-10-13 Chris Toshok <toshok@ximian.com>
17065 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
17066 zombie after we do the recursive call, so we actually do call
17067 SendMessage on the children controls.
17068 (GetMessage): if we find a pending paint event for a zombie hwnd,
17069 remove the hwnd from the paint queue, or else it will always be
17070 there (and we'll effectively loop infinitely)
17072 2006-10-13 Mike Kestner <mkestner@novell.com>
17074 * MenuItem.cs : add Selected format under keynav too.
17077 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
17079 * PropertyGrid.cs: Fixed some NRE's and small difference between our
17080 implementation and that of MS.
17082 2006-10-13 Chris Toshok <toshok@ximian.com>
17084 * Control.cs (OnInvalidated) only futz with the invalid_region if
17085 the control is double buffered. this fixes the apparent hang in
17086 the ListView unit tests. Someone needs to make the
17087 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
17089 2006-10-13 Chris Toshok <toshok@ximian.com>
17091 * PropertyGridView.cs:
17093 - do a little refactoring so that only one place calls
17094 dropdown_form.Hide, and that is CloseDropDown. make everywhere
17095 else call that. Also make it Refresh, since there are redraw bugs
17096 otherwise (we should take a look at that...)
17098 - do a little more refactoring work to share the body of code
17099 involved with the drop down. it was duplicated in the code
17100 dealing with the listbox handling and in the code dealing with the
17103 - add a Capture to the dropdown form's control once it's
17104 displayed, and add a MouseDown handler that checks to make sure
17105 the position is inside the control. If it's not, close the
17106 dropdown. This fixes #78190.
17108 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
17109 if the value is different than the initial value.
17111 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
17113 * Control.cs: see #78650
17114 - Fixed GetNextControl for several cases:
17115 - Changed FindFlatForward to return
17116 correct sibling control when more than one
17117 control has same TabIndex as the currently
17119 - Changed FindFlatBackward to loop children
17120 from last to first and apply same logic as in
17122 - Changed FindControlForward to search for
17123 children when control is not a container
17124 but has children, or search for siblings if
17125 control is a container...
17126 - Changed FindControlBackward to continue
17127 searching for child controls when hitting
17130 - Fixed Focus method to update ActiveControl
17131 (FocusTest.FocusSetsActive failure)
17134 - Focus rectangle now refreshes when gaining
17136 - Removed grab for Tab key on IsInputKey that
17137 was keeping tab navigation from working (#78650)
17139 2006-10-13 Chris Toshok <toshok@ximian.com>
17141 * PropertyGridView.cs:
17142 - Rewrite SetPropertyValue to loop over SelectedGridItem's
17145 - Deal with GridItem.Value == null a few places.
17148 - replace the PopulateGridItemCollection with a pair of methods
17149 which compute the intersection of all the properties in the
17150 SelectedObjects array. Fixes #79615.
17152 - Throw ArgumentException from set_SelectedObjects if there's a
17155 - Add GetTarget method which can be used to traverse up the
17156 GridItem.Parent chain. It depends on the assumption that
17157 selected_objects for different GridEntries are always in the same
17158 order (a safe assumption). Use this method and loop over all the
17159 selected objects in the entry when calling RemoveValueChanged and
17162 * GridEntry.cs: Make this handle multiple selected objects.
17163 .Value returns null if not all the selected objects share the same
17166 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
17167 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
17168 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
17169 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
17170 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
17171 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
17172 add additional functionality.
17174 2006-10-12 Mike Kestner <mkestner@novell.com>
17176 * ErrorProvider.cs : new ToolTipWindow ctor sig.
17177 * HelpProvider.cs : new ToolTipWindow ctor sig.
17178 * ToolTip.cs : remove ToolTip param from Window sig since it is
17180 * ToolBar.cs : add tooltip support. Fixes #79565.
17182 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17184 * ComboBox.cs: move the events in set_SelectedIndex to
17185 after the call to HighlightIndex in order to avoid
17186 possible recursion and subsequent problems with the call
17187 to HighlightIndex and include a range check in
17188 set_HighlightIndex. Fixes #79588
17190 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17192 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
17193 to ui thread's settings instead of sunday.
17194 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
17196 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17198 * DateTimePicker.cs
17200 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
17201 and implement missing functionality (selecting different parts
17202 of the date and edit them individually with the keyboard).
17204 2006-10-11 Chris Toshok <toshok@ximian.com>
17206 * Control.cs (OnInvalidated): fix NRE relating to last change.
17208 2006-10-11 Chris Toshok <toshok@ximian.com>
17210 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
17211 atoms in _NET_WM_STATE here if the window is maximized. We need
17212 to do this because we're *replacing* the existing _NET_WM_STATE
17213 property, so those atoms will be lost otherwise, and any further
17214 call to GetWindowState will return Normal for a window which is
17215 actually maximized. Fixes #79338.
17217 2006-10-11 Jackson Harper <jackson@ximian.com>
17219 * TextControl.cs: Special case for setting selection end to
17220 selection start, we basically kill the anchor.
17221 - some todo comments.
17223 2006-10-11 Chris Toshok <toshok@ximian.com>
17225 * Control.cs: switch to using an "invalid_region" to track which
17226 parts of the image buffer need updating. This is more code than
17227 the simple fix from r66532. That version just attempted to always
17228 fill the entire buffer on redraw, which turns out to be
17229 inefficient when invalidating small rectangles. This version
17230 simply adds the invalid rectangle to the invalid region. When we
17231 get any WM_PAINT message we see if it can be filled using the
17232 image buffer, and if it can't (if the paint event's clip rectangle
17233 is visible in the invalid region) we first fill the image buffer.
17234 So, the image buffer is still a cache, we just fill it lazily.
17236 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
17237 need it any longer.
17239 2006-10-11 Chris Toshok <toshok@ximian.com>
17241 * XplatUIX11.cs (SetWindowPos): we need to update both position as
17242 well as size after calling XMoveResizeWindow. This keeps us from
17243 ignoring future SetWindowPos calls. Fixes the disappearing
17244 DateTimePicker in the ToolBarDockExample from bug #72499.
17246 2006-10-11 Chris Toshok <toshok@ximian.com>
17248 * TextBoxBase.cs: reorder things a bit when it comes to
17249 resizing-causing-recalculation. we were recalculating the
17250 document when our position was changed, which shouldn't happen.
17251 We only care about size changes. Clear up some more redundant
17252 recalculation calls while I'm at it. This makes the toolbar dock
17253 example snappy when you're just dragging toolbars around (since it
17254 causes a relayout whenever you move one.)
17256 2006-10-11 Chris Toshok <toshok@ximian.com>
17258 * ToolBarButton.cs (get_Rectangle): this only returns
17259 Rectangle.Empty if Visible == false, or Parent == null.
17260 Parent.Visible doesn't matter.
17262 2006-10-10 Chris Toshok <toshok@ximian.com>
17264 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
17265 by .net 1.1, so switch to an internal method instead.
17267 2006-10-10 Chris Toshok <toshok@ximian.com>
17269 * Control.cs (WM_PAINT): when a control is double buffered we draw
17270 initially to the ImageBuffer and then copy from there. But when a
17271 parent control which has child controls is double buffered, the
17272 initial drawing doesn't encompass the entire ClientRectangle of
17273 the parent control, so we end up with uninitialized bits (this is
17274 easily seen by dragging the top toolbar in
17275 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
17276 manually set the ClipRectangle of the paint_event (only the one we
17277 use to populate the ImageBuffer) to ClientRectangle. Fixes more
17278 of the nastiness in bug #72499.
17280 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
17281 which we use in Control.cs's WM_PAINT handling.
17283 2006-10-10 Jackson Harper <jackson@ximian.com>
17285 * TextBoxBase.cs: Finish off the autoscrolling stuff.
17287 2006-10-10 Chris Toshok <toshok@ximian.com>
17289 * Cursor.cs: Apply a slightly different patch to the one suggested
17292 2006-10-10 Jackson Harper <jackson@ximian.com>
17294 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
17295 not the parent form.
17296 * TextControl.cs: use difference in old line count vs new count to
17297 calculate how many lines were added, this takes into account soft
17298 line breaks properly.
17300 2006-10-10 Chris Toshok <toshok@ximian.com>
17302 * LinkLabel.cs: don't call MeasureCharacterRanges against a
17303 rectangle located at 0,0 and the size of the text. Use
17304 ClientRectangle instead. This fixes rendering of non-left aligned
17307 2006-10-10 Jackson Harper <jackson@ximian.com>
17309 * TextBoxBase.cs: When we set the selection start position the
17311 * TextControl.cs: Need to update the caret when we decrement it to
17313 - Make sure that the selection_visible flag gets reset to false if
17314 the selection isn't visible. Before this you could get it set to
17315 visible by changing the selection start, then changing the end to
17318 2006-10-09 Jackson Harper <jackson@ximian.com>
17320 * TreeView.cs: Don't update scrollbars when we aren't visible.
17321 * TreeNodeCollection.cs: Only need to update scrollbars if being
17322 added to an expanded visible node or the root node.
17324 2006-10-09 Chris Toshok <toshok@ximian.com>
17326 * XplatUIX11.cs (SendMessage): fix NRE.
17328 2006-10-09 Jackson Harper <jackson@ximian.com>
17330 * TextBoxBase.cs: Implement horizontal autoscrolling.
17331 * TextControl.cs: Add a movement types that allows moving forward
17332 and backwards without wrapping.
17334 2006-10-09 Mike Kestner <mkestner@novell.com>
17336 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
17337 with focus "expansion" of labels. Fixes #79532 and then some.
17338 * ThemeWin32Classic.cs : add LineLimit to ListView label format
17341 2006-10-09 Jackson Harper <jackson@ximian.com>
17343 * TextBoxBase.cs: Set the default max values to MaxValue since
17344 we use the scrollbar for autoscrolling and the default value is
17345 100. If we don't do this the caret won't keep up with typing
17346 after about 18 characters.
17347 * TextControl.cs: Make sure the selection is offset by the
17348 viewport x. This fixes selection when using auto scrolling.
17350 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
17352 * Form.cs: The active control should be selected after the
17353 OnLoad so that any child control initialization that affects
17354 the selection is done. Fixes #79406
17356 2006-10-06 Chris Toshok <toshok@ximian.com>
17358 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
17359 to have no evil effects.
17361 - Stop selecting StructureNotifyMask on non-toplevel windows.
17363 The only way children should be resized is by using the SWF api,
17364 and we already send WM_WINDOWPOSCHANGED messages in those cases.
17365 Toplevel windows can be interacted with via the window manager,
17366 and so we keep the input mask there.
17368 The other event StructureNotifyMask gives us (that we care
17369 about) is DestroyNotify. The code is already structured such
17370 that it assumes we won't be getting a DestroyNotify event for
17371 the window we pass to XDestroyWindow (which is what
17372 StructureNotifyMask is supposed to guarantee.) So, that code
17373 shouldn't be affected by this either.
17375 - Stop selecting VisibilityChangeMask altogether.
17377 We weren't doing anything with the resulting events anyway.
17379 This vastly reduces the number of X requests and events we see
17380 when resizing/laying out a large ui.
17382 2006-10-06 Chris Toshok <toshok@ximian.com>
17384 * ScrollableControl.cs (DisplayRectangle): we need to take into
17385 account the DockPadding regardless of whether or not auto_scroll
17386 == true. rework this slightly to this effect, and fix bug #79606,
17387 and part of #72499 (you can now see the drag handles and drag
17390 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
17392 * ListViewItem.cs: Collections of selected and checked items are now
17393 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
17394 we mark the collection "dirty".
17395 * ListView.cs: Marked collections readonly. Modified UpdateSelection
17396 to only clear SelectedItems when a new item is selected and MultiSelect
17397 is enabled. CheckedItems and SelectedItems now subscribe to Changed
17398 event of ListViewItemCollection, and mark its list dirty whenever
17399 that event is fire. This allows us to return selected/checked items
17400 in the same order as they are in the Items collection. This matches
17403 2006-10-06 Chris Toshok <toshok@ximian.com>
17405 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
17406 right mouse clicks. Fixes bug #79593.
17408 2006-10-06 Chris Toshok <toshok@ximian.com>
17410 * Splitter.cs: doh, fix splitters that don't want to cancel the
17411 movement when you drag them. Also, impose the limits on the
17412 values we send to the SplitterMovingEvent. Fixes #79598.
17414 2006-10-06 Jackson Harper <jackson@ximian.com>
17416 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
17417 since we use this for auto scrolling also.
17419 2006-10-05 Chris Toshok <toshok@ximian.com>
17421 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
17422 beginning to think that most datagrid column types don't need this
17423 method. Fixes bug #79392.
17425 2006-10-05 Chris Toshok <toshok@ximian.com>
17427 * DataGrid.cs: move back to a more lazy scheme for creating the
17428 CurrencyManager, so we aren't updating it every time you set
17429 either DataSource or DataMember. Also, don't call
17430 RecreateDataGridRows if the currency manager hasn't changed.
17432 2006-10-05 Chris Toshok <toshok@ximian.com>
17434 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
17435 emitted, SelectedIndex should already be updated. Fixes bug
17438 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
17440 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
17441 ToolStripTextBox.cs: Initial commit.
17442 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
17444 2006-10-05 Jackson Harper <jackson@ximian.com>
17446 * TabControl.cs: We need to invalidate the tab control area when
17447 new ones are added (duh).
17449 2006-10-03 Chris Toshok <toshok@ximian.com>
17451 * Form.cs (ProcessDialogKey): if the focused control is in this
17452 form and is a button, call its PerformClick method here. Fixes
17455 2006-10-04 Jackson Harper <jackson@ximian.com>
17457 * TabPage.cs: Ignore setting of Visible, and add an internal
17458 method for setting the controls visibility. TabPage's Visible
17459 property is a little strange on MS, this seems to make us
17460 compatible, and fixes cases where people set all the tab pages to
17462 * TabControl.cs: Use the new internal setting on tab pages
17465 2006-10-03 Mike Kestner <mkestner@novell.com>
17467 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
17469 2006-10-03 Mike Kestner <mkestner@novell.com>
17471 * ListView.cs : use is_visible instead of Visible to check if
17472 scrollbars should be placed/sized. Also some max_wrap_width
17473 love for LargeIcon view. [Fixes #79533]
17475 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
17478 Make set_TextAlign() do actually update the align. Fixed #78403.
17480 2006-10-03 Chris Toshok <toshok@ximian.com>
17482 * DataGrid.cs: fix a crash when switching datasources if the
17483 vertical scrollbar is at someplace other than Value = 0. Also,
17484 reduce the number of recalculation passes we do in SetDataSource
17487 2006-10-03 Jackson Harper <jackson@ximian.com>
17489 * TextBoxBase.cs: Move the if value the same bail check up, we
17490 don't want to empty the document if it is already empty, this
17491 seems to severly mess up the caret. TODO: I should probably fix
17492 the empty statement to update teh caret somehow.
17494 2006-10-03 Chris Toshok <toshok@ximian.com>
17496 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
17497 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
17498 reflection, an internal row type, properties on said type, etc.)
17499 will work with our datagrid. Fixes #79531.
17501 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17503 * FileDialog.cs: Don't crash if a path is not accessible
17504 (System.UnauthorizedAccessException). Fixes #79569.
17505 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
17506 a ':' too. Return unknown icon for those paths/files.
17508 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
17510 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
17511 GetContainerControl returns null.
17513 2006-10-02 Chris Toshok <toshok@ximian.com>
17515 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
17516 call to XGetWindowAttributes instead of "handle". fixes an X
17517 error using notifyicon after the NotifyIconWindow to Form base
17520 2006-10-02 Chris Toshok <toshok@ximian.com>
17522 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
17523 server grab and looping we need to do to get down to the most
17524 deeply nested child window.
17525 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
17526 QueryPointer again after the WarpPointer so we can generate a
17527 proper (fake) MotionNotify event to be enqueued in the destination
17529 (GetCursorPos): call QueryPointer.
17533 2006-10-02 Jackson Harper <jackson@ximian.com>
17535 * NotifyIcon.cs: Derive the notify icon from a form, so things
17536 like FindForm work on it.
17537 - Swallow the WM_CONTEXTMENU message, since that is generated on
17538 mouse down, and context menu is a mouse up kinda guy. I believe
17539 the correct fix here is probably to make the notify icon entirely
17540 NC area, but this seems to work fine for anyone not manipulating
17543 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
17545 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
17546 ToolStripItemCollection.cs, ToolStripLabel.cs,
17547 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
17548 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
17549 Initial implementation.
17550 * TextRenderer.cs: Provide padding to MeasureText.
17552 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
17554 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
17555 of ButtonBaseAccessibleObject. Fix bug #79552.
17557 2006-10-02 Jackson Harper <jackson@ximian.com>
17559 * MdiWindowManager.cs: When maximizing use the containers client
17560 rect, not it's bounds, so nc area is accounted correctly.
17561 - Use the parent form's size for the menu position, since the
17562 client isn't always the full form size.
17564 2006-10-01 Chris Toshok <toshok@ximian.com>
17566 * ScrollableControl.cs: make sure neither right_edge or
17567 bottom_edge are < 0, since they're used as LargeChange for the
17568 horiz/vert scrollbars respectively. Fixes #79539.
17570 2006-10-01 Chris Toshok <toshok@ximian.com>
17572 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
17573 the xplatuix11 code can cause us to destroy/recreate our handle.
17577 - this code can be invoked many times for the same Hwnd. Make
17578 sure we only destroy the client window once (the first time this
17579 method is called). This fixes bug #79544.
17580 - Remove the call to the improperly bound XSync. why we had two
17581 bindings to this, I will never know, but this call resulted in
17582 events being discarded from the queue(!).
17583 - correct a misunderstanding of _XEMBED_INFO - the second atom is
17584 not our current state but the state we wish to be in. So, 0 if
17585 we don't want to be mapped. Change it to 1.
17586 (SystrayRemove): The XEMBED spec makes mention of the fact that
17587 gtk doesn't support the reparent of client windows away from the
17588 embedder. Looking at gtksocket-x11.c seems to agree with this.
17589 The only avenue we have for removing systray icons is to destroy
17590 them. We don't want the handle to go away for good, though, so
17591 call InternalRecreateHandle on the NotifyIconWindow. Fixes
17594 2006-10-01 Chris Toshok <toshok@ximian.com>
17596 * Form.cs (WndProc): inline the native_enabled variable usage into
17597 the cases in which it's used. Fixes #79536.
17599 2006-09-29 Mike Kestner <mkestner@novell.com>
17601 * ListView.cs : toggle the selection state for ctrl clicks in
17602 multiselect mode. [Fixes #79417]
17604 2006-09-29 Mike Kestner <mkestner@novell.com>
17606 * ListView.cs : kill CanMultiSelect and refactor the selection
17607 code to support multiselection in the absence of mod keys. Steal
17608 arrow/home/end keys by overriding InternalPreProcessMessage to
17609 restore regressed keynav behavior.
17612 2006-09-29 Jackson Harper <jackson@ximian.com>
17614 * MdiClient.cs: Repaint the titlebars when the active window is
17617 2006-09-29 Chris Toshok <toshok@ximian.com>
17619 * Application.cs: when entering a runloop with a modal, make sure
17620 the hwnd is enabled. Fixes #79480.
17622 2006-09-29 Chris Toshok <toshok@ximian.com>
17624 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
17625 when ListManager.CanAddRows == false, bump us back one.
17627 * DataGridColumnStyle.cs (ParentReadOnly): remove the
17628 listmanager.CanAddRows check. This makes ArrayLists uneditable
17629 using a datagrid, which is not right.
17630 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
17631 is an IEditable, but call property_descriptor.SetValue regardless.
17634 2006-09-29 Chris Toshok <toshok@ximian.com>
17636 * DataGridBoolColumn.cs: we need to test equality in the face of
17637 possible null values (as is the case with the default NullValue).
17638 This patch keeps us from crashing in that case.
17640 2006-09-29 Jackson Harper <jackson@ximian.com>
17642 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
17643 here, since it will get called for every node collection in the
17644 tree. This is now done in the treeview once the sorting is
17646 * TreeView.cs: Recalculate the visible order, and update the
17647 scrollbars after sorting, set the top nope to the root so that the
17648 recalc actually works.
17650 2006-09-29 Chris Toshok <toshok@ximian.com>
17652 * LinkLabel.cs: more handling of the default link collection in
17653 the face of LinkArea manipulation. The default link collection
17654 contains 1 element (start=0,length=-1). If the user sets LinkArea
17655 to anything and the links collection is the default, clear it.
17656 Then only add the link if its nonempty. Fixes #79518.
17658 2006-09-29 Chris Toshok <toshok@ximian.com>
17660 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
17661 piece correctly when we hit a '\n'. Fixes #79517.
17663 2006-09-29 Chris Toshok <toshok@ximian.com>
17665 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
17666 change the binding of gdk_init_check to take two IntPtr's, and
17667 pass IntPtr.Zero for both of them. Fixes #79520.
17669 2006-09-29 Mike Kestner <mkestner@novell.com>
17671 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
17674 2006-09-28 Jackson Harper <jackson@ximian.com>
17676 * XplatUIX11.cs: When translating NC messages make sure we go from
17677 whole window to screen, not client window to screen.
17678 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
17679 method doesn't exist
17680 - Skip over controls that aren't forms when arranging.
17682 2006-09-28 Jackson Harper <jackson@ximian.com>
17684 * XplatUIWin32.cs: Clip the rect to the parent window.
17685 * XplatUIStructs.cs: Add clipping modes struct.
17686 * InternalWindowManager.cs: New private method that factors title
17687 bar heights in when calculating the pos of an NC mouse message.
17688 - Use SendMessage to force a paint when the form's size is changed
17689 instead of painting the decorations immediately.
17690 - Don't let the NC button click messages get to DefWndProc,
17691 because they will attempt to handle windowing themself, and this
17692 messes up z-order (it will put them in front of the scrollbars).
17693 * XplatUIX11.cs: Make sure that we don't reset window managers if
17694 we already have one (ie the window is an MDI window).
17696 2006-09-28 Chris Toshok <toshok@ximian.com>
17698 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
17699 menu code really needs going over.
17701 2006-09-27 Chris Toshok <toshok@ximian.com>
17703 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
17704 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
17705 window is maximizable. So, we need to make sure that even if we
17706 clear the border/wm frame of those functions, they're still
17707 available (basically, we remove the decoration without removing
17708 the function). Half the fix for #79338.
17710 2006-09-27 Chris Toshok <toshok@ximian.com>
17712 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
17715 2006-09-27 Chris Toshok <toshok@ximian.com>
17717 * Splitter.cs: reorder things a bit so that we don't actually
17718 draw/move the splitter until after calling OnSplitterMoving. This
17719 lets users cancel/disallow the movement by explicitly setting
17720 event.SplitX/SplitY. Fixes #79372.
17722 2006-09-27 Jackson Harper <jackson@ximian.com>
17724 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
17725 because it is most likely on a window being destroyed, and that
17726 will give us an X11 error.
17728 2006-09-27 Chris Toshok <toshok@ximian.com>
17730 * PropertyGridView.cs: half of the fix for #78190. Clicking on
17731 the dropdown button now toggles between showing and hiding the
17732 dropdown. Also, get rid of dropdown_form_showing and just use
17733 dropdown_form.Visible. We still don't do a grab, but I'll leave
17734 that part to someone who has handled Capture-fu before.
17736 2006-09-27 Chris Toshok <toshok@ximian.com>
17738 * DataGrid.cs: return false if alt isn't pressed when '0' is
17739 pressed. this keeps the '0' key from being swallowed, and fixes
17742 2006-09-27 Chris Toshok <toshok@ximian.com>
17744 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
17745 Calling Refresh (in response to a scrollbar event) screws up the
17746 scrollbar painting. Fixes bug #78923.
17748 2006-09-27 Chris Toshok <toshok@ximian.com>
17750 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
17751 then insert into hashtable" blocks threadsafe.
17753 2006-09-27 Chris Toshok <toshok@ximian.com>
17755 * MessageBox.cs (CreateParams): the styles should be |'ed with our
17756 baseclass's, since otherwise the
17757 ControlBox/MinimizeBox/MaximizeBox assignments above have no
17758 effect. This gets the close button back in messageboxes.
17760 2006-09-27 Chris Toshok <toshok@ximian.com>
17762 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
17763 flag, not just != 0. this makes flags that are actually multiple
17764 bits (like WS_CAPTION) work. fixes bug #79508.
17766 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
17768 * PageSetupDialog.cs: add support for getting and settings the
17769 paper size, source and orientation.
17771 2006-09-26 Chris Toshok <toshok@ximian.com>
17773 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
17774 and caption == "", we need to remove the resize handles as well as
17777 * Control.cs (set_Text): turns out that setting Text on a form
17778 should change the WM styles on the window, since if ControlBox ==
17779 false, the only way to get a window border is to have a non-""
17780 Text property. check winforms/forms/text.cs for an example. so,
17781 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
17782 update both window styles and title. This fixes a lot of dialogs
17783 (including the preferences dialog in MonoCalendar.)
17785 2006-09-26 Chris Toshok <toshok@ximian.com>
17787 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
17788 control isn't a Form), call Win32ShowWindow to hide the window,
17789 but don't update the control Visible property. When we reparent
17790 back to a parent control, call SetVisible in order for the
17791 window's visibility to be reinstated.
17793 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
17796 * Control.cs (ControlCollection.Remove): remove that value.Hide()
17797 call for good, since it breaks MonoCalendar (and other things I'm
17798 sure.) Also, set all_controls to null *after* the owner calls,
17799 which end up regenerating it.
17800 (ChangeParent): allow new_parent to be == null, passing
17801 IntPtr.Zero down to XplatUI.
17803 this fixes #79294 the right way.
17805 2006-09-26 Mike Kestner <mkestner@novell.com>
17807 * GridEntry.cs : internal SetParent method.
17808 * PropertyGrid.cs : attach to property changed on the proper
17809 target if we have a hierarchical grid with subobjects. Setup
17810 GridItem.Parent for hierarchical items.
17811 * PropertyGridView.cs : Set value on the correct target for
17812 hierarchical grids. [Fixes #78903]
17814 2006-09-26 Chris Toshok <toshok@ximian.com>
17816 * Control.cs (ChildNeedsRecreating): this should return true if
17817 either we're being recreated and the child is in our list, or our
17818 parent is waiting for our recreation.
17820 2006-09-26 Chris Toshok <toshok@ximian.com>
17822 * Control.cs (ControlCollection.Remove): reinstate the
17823 value.Hide() call as suggested in bug #79294.
17825 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
17827 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
17828 coordinates (versus a relative move).
17830 2006-09-26 Chris Toshok <toshok@ximian.com>
17832 * Control.cs: rework child recreation a little bit. It turns out
17833 that we race between the DestroyNotify the WM_DESTROY message. If
17834 the parent gets its DestroyNotify before the child gets the
17835 WM_DESTROY message, the child ends up not recreating (since the
17836 parent finishes its recreation on DestroyNotify, and the child
17837 checks ParentIsRecreating.)
17839 So, instead we store off a list of all the child controls which
17840 need to be recreated when the parent control starts to recreate
17841 itself. Then, when child controls get their WM_DESTROY message we
17842 check to see if they're in the parent's pending recreation list,
17843 and if so, we recreate. This removes all dependency on ordering
17844 from the code and fixes the initial MonoCalendar upgrade dialog.
17846 2006-09-26 Jackson Harper <jackson@ximian.com>
17848 * TextControl.cs: Use the Line to get the length of the line,
17849 since soft line breaks can change the end line.
17851 2006-09-26 Chris Toshok <toshok@ximian.com>
17853 * Control.cs (ControlCollection.AddImplicit): don't add the
17854 control again if it's already in one of our lists. This keeps us
17855 from adding controls over and over again for comboboxes when their
17856 handle gets recreated (as the combobox adds implicit controls in
17857 OnHandleCreated). Fixes the X11 errors in bug #79480.
17859 2006-09-26 Jackson Harper <jackson@ximian.com>
17861 * TextControl.cs: When deleting characters make sure that any
17862 orphaned zero lengthed tags get deleted.
17863 - Fix ToString for zero lengthed tags.
17865 2006-09-25 Jackson Harper <jackson@ximian.com>
17867 * TextControl.cs: When getting a tag at the location there can be
17868 multiple tags at the same spot, these are 0-lengthed tags that
17869 appear when extra formatting has been stuck in a location. We
17870 need to pull out the last of these 0 lengthed tags.
17872 2006-09-25 Jackson Harper <jackson@ximian.com>
17874 * TextControl.cs: Fix print out in debug method.
17875 * TextBoxBase.cs: When text is set bail if we are setting to the
17878 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
17880 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17881 It is now possible to change the selected index in a FontXXXListBox
17882 with the up and down arrow keys from the FontXXXTextBoxes.
17883 Also, send the FontXXXTextBox mouse wheel event to the corresponding
17884 FontXXXListBoxes to match ms.
17886 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
17888 * SystemInformation.cs: Return a clone of the theme's MenuFont because
17889 anyone can dispose it, anytime. All other properties returns enums,
17890 structs or basic types so they don't need such tricks.
17892 2006-09-22 Jackson Harper <jackson@ximian.com>
17899 * XplatUIDriver.cs: Update interface to add a primary selection
17900 flag, so the driver can use the primary selection buffer if
17902 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17904 * RichTextBox.cs: We need to supply the data object to paste now
17905 (so we can choose to supply CLIPBOARD or PRIMARY).
17906 * TextBoxBase.cs: Supply data object to paste (see above).
17907 - Middle click uses the primary selection data object.
17909 2006-09-21 Chris Toshok <toshok@ximian.com>
17911 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17912 of SetWMStyles. It's still a rat's nest and is largely
17913 order-dependent which I dislike immensely. This also fixes the X
17914 button disappearing from toplevel forms.
17916 2006-09-21 Mike Kestner <mkestner@novell.com>
17918 * ListBox.cs: move Jordi's click/dblclick raising code to the
17921 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
17923 * ListBox.cs: Fixes 79450
17925 2006-09-21 Mike Kestner <mkestner@novell.com>
17927 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17928 to deal with people updating the TreeNodeCollection after the tree
17929 is disposed. "Fixes" 79330.
17931 2006-09-20 Jackson Harper <jackson@ximian.com>
17933 * TextControl.cs: Push the cursor record onto the undo stack
17934 before the delete action. This fixes 78651.
17936 2006-09-20 Jonathan Chambers <joncham@gmail.com>
17938 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17939 CreateParams. Fixes 79329.
17941 2006-09-19 Chris Toshok <toshok@ximian.com>
17943 * XplatUIX11.cs: a couple of blanket code massage passes to clean
17944 things up a bit. First, get rid of the NetAtoms array (and the NA
17945 enum), and just embed the atoms as static fields. Also, add a
17946 couple of functions (StyleSet and ExStyleSet) to clean up all the
17947 bitmask testing of styles.
17949 * X11Structs.cs: remove the NA enum, not needed anymore.
17951 2006-09-19 Chris Toshok <toshok@ximian.com>
17953 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17954 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
17955 added cleanup to get MessageBox titles appearing again, which were
17956 broken by my earlier fix for caption-less/ControlBox-less windows.
17958 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
17960 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17961 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17962 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17963 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17964 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17965 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17966 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17967 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17968 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17969 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17970 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17972 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17973 ToolStripButton.cs: Stubs needed for above.
17974 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17976 2006-09-15 Chris Toshok <toshok@ximian.com>
17979 - make the MessageQueues hashtable Synchronized.
17981 - SendMessage: if the Hwnd is owned by a different thread, use the
17982 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
17983 thread. Fixes bug #79201.
17985 2006-09-15 Chris Toshok <toshok@ximian.com>
17987 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
17988 ControlBox == false, we disallow maximize/minimize/close. If the
17989 form Caption is "" we also disallow move (and get rid of the Title
17990 decoration). Unfortunately, regardless of how things are set,
17991 we're stuck with the Title and WM menu.
17993 2006-09-15 Chris Toshok <toshok@ximian.com>
17995 * Application.cs: add locking around the static message_filters
17996 ArrayList, part of #79196.
17998 2006-09-15 Chris Toshok <toshok@ximian.com>
18000 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18001 Form.ControlBox == false, the window has no titlebar nor resize
18002 handles. fixes bug #79368.
18004 2006-09-15 Chris Toshok <toshok@ximian.com>
18006 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18007 >= 0. Fixes bug #79370.
18009 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
18010 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18012 Add properties: LayoutEngine, Margin, DefaultMargin.
18013 Add method: GetPreferredSize.
18014 Move layout logic from PerformLayout to layout engines.
18016 2006-09-13 Chris Toshok <toshok@ximian.com>
18018 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
18019 fix for #79326 broke #78718, so this change addresses that.
18021 - in SendWMDestroyMessages remove the call to
18022 CleanupCachedWindows, since we might be recreating the control and
18023 need to maintain the references to right Hwnd handles. Also, set
18024 the zombie flag to true for each of the children in the hierarchy
18025 instead of calling hwnd.Dispose. This will cause GetMessage to
18026 ignore all events for the window except for DestroyNotify.
18028 - In GetMessage, ignore messages except for DestroyNotify for
18031 * Control.cs: revert the is_recreating fix from the last
18032 ChangeLog. It's definitely "right", but it breaks switching from
18033 an MDI form to a non-MDI form. Will need to revisit that.
18035 * Hwnd.cs: add a zombie flag, which means "the
18036 client_window/whole_window handles are invalid, but we're waiting
18037 for the DestroyNotify event to come in for them". Set the flag to
18038 false explicitly if setting WholeWindow/ClientWindow, and also
18041 2006-09-13 Chris Toshok <toshok@ximian.com>
18043 * XplatUIX11.cs: rework window destruction slightly.
18045 - when destroying the windows associated with a control, we don't
18046 need 2 separate XDestroyWindow calls. Just the one for the
18047 whole_window (or for client_window if whole_window is somehow
18048 IntPtr.Zero -- can this happen?) is enough.
18050 - reworked SendWMDestroyMessages slightly, so we always dispose
18051 the child control hwnd's after sending the messages.
18053 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
18054 the two places it was used (one was even using hwnd.Handle and the
18055 other hwnd.client_window. ugh), adding another call in
18056 SendWMDestroyMessages. We need this new call because now the
18057 DestroyNotify events in the queue will be ignored for the child
18058 controls (as their hwnd's were disposed, and the window id's
18059 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
18061 - this fixes bug #79326.
18063 2006-09-13 Chris Toshok <toshok@ximian.com>
18065 * Control.cs: don't always set is_recreating to false at the end
18066 of RecreateHandle, since sometimes we're not done (and won't be
18067 until WndProc handles the WM_DESTROY message). Also, set
18068 is_recreating to false in the WM_DESTROY handling code. Part of
18069 the fix for bug #79326.
18071 2006-09-13 Miguel de Icaza <miguel@novell.com>
18073 * X11DesktopColors.cs: Start the droppage of debugging messages.
18075 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
18077 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
18079 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
18081 2006-09-12 Chris Toshok <toshok@ximian.com>
18083 * DataGrid.cs (get_ListManager): if the list_manager is null, try
18084 to create it using SetDataSource. Fixes bug #79151.
18086 2006-09-11 Chris Toshok <toshok@ximian.com>
18088 * XEventQueue.cs: add a DispatchIdle property.
18090 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
18091 either the queue is null, or the queue has DispatchIdle set to
18093 (DoEvents): set queue.DispatchIdle to false around the
18094 peek/translate/dispatch message loop in this method. This keeps
18095 Application.Doevents from emitting idle events. Part of the fix
18098 2006-09-11 Chris Toshok <toshok@ximian.com>
18100 * DataGrid.cs (set_DataSource): make this work for both the
18101 winforms/datagrid test and ReportBuilder. It seems as though when
18102 we've created a ListManager (or maybe it's if we have a
18103 BindingContext?), when we set the DataSource it clears the
18104 DataMember to "". otherwise we reuse the datamember. Fixes bug
18107 2006-09-11 Chris Toshok <toshok@ximian.com>
18109 * XplatUIX11.cs: deal with queue being null, which happens in all
18110 the Clipboard functions. Fixes one of the two problems mentioned
18113 2006-09-11 Chris Toshok <toshok@ximian.com>
18115 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
18116 button on various spots (including outside the menu) works closer
18117 to MS, and doesn't crash. Fixes #79343.
18119 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
18121 * ListView.cs: Do not initialize item_sorter in init. To match MS,
18122 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
18123 and the internal comparer is set. When a new ListViewItemSorter is set,
18124 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
18125 was specified. No further processing is necessary if SortOrder is set
18126 to it's current value. If Sorting is modified to None, and View is
18127 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
18128 (either custom or our internal ItemComparer) to null, on 1.0 profile
18129 only set item_sorter to null if its our internal IComparer. If Sorting
18130 is modified to Ascending or Descending, then use our internal IComparer
18131 if none is set, and if the current IComparer is our internal one then:
18132 on 2.0 profile always replace it with one for new Sorting, and on 1.0
18133 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
18134 Enum.IsDefined to verify whether a valid View value is specified in
18135 its setter. Automatically sort listview items when listview is
18136 created. In Sort, do nothing if ListView is not yet created, or if
18137 no item_sorter is set (no Sorting was set, Sorting was explicitly set
18138 to None or ListViewItemSorter was set to null). Added Sort overload
18139 taking a bool to indicate whether the ListView should be redrawn when
18140 items are sorted (we use this in ListViewItemCollection to avoid double
18141 redraws). Modified our internal IComparer to take the sort order into
18142 account. In Add and AddRange methods of ListViewItemCollection, also
18143 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
18144 view), but use overload with noredraw option to avoid double redraw.
18145 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
18146 true when View is Tile, and do the same when attempting to set View to
18147 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
18148 for selected/checked indices, as it involves overhead when sorting is
18149 done while these collections are not used all that often. Instead
18150 we'll build the indices on demand. Modified IList implementation of
18151 CheckedIndexCollection to use public methods if object is int.
18152 Modified CheckedListViewItemCollection to hide checked items if
18153 ListView.CheckBoxes is false. Removed LAMESPEC remark in
18154 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
18155 IList implementation in SelectedIndexCollection to use public methods
18156 if object is int. Modified SelectedListViewItemCollection to hide
18157 selected items if listview is not yet created.
18158 * ListViewItem.cs: CheckedIndices list no longer needs to be
18159 maintained separately (see ListView changes). Also clone font, fixes
18162 2006-09-11 Mike Kestner <mkestner@novell.com>
18164 * ComboBox.cs: if we are updating the contents of the currently
18165 selected index, refresh the control or the textbox selection.
18168 2006-09-11 Mike Kestner <mkestner@novell.com>
18170 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
18171 the 'specified' logic has been moved there. This seems like a bug
18172 in Control.cs, since our current SetBoundsCore completely ignores
18173 the specified parameter. Peter's commit seems to indicate that is
18174 the way the MS control implementation works. [Fixes #79325]
18176 2006-09-10 Jonathan Chambers <joncham@gmail.com>
18178 * XplatUI.cs: Set default_class_name to be composed
18179 of current domain id. This allows MWF to be loaded in multiple
18182 2006-09-09 Miguel de Icaza <miguel@novell.com>
18184 * X11Keyboard.cs: If we are unable to obtain the input method, do
18185 not call CreateXic to create the input context. Should fix
18188 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
18190 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
18191 Simplified gnome support by adding more pinvokes to get the
18192 icon for a file or mime type.
18194 2006-09-08 Jackson Harper <jackson@ximian.com>
18196 * MenuAPI.cs: Deslect popup context menu items before closing the
18197 window, so that you don't see the previously selected item
18198 selected when you reopen the menu.
18199 * TextControl.cs: Update the cursor position even if we don't have
18200 focus. This fixes typing in things like the ComboBox. I'm not
18201 totally sure we should always set the visibility if we don't have
18202 focus, but couldn't find any corner cases where the cursor showed
18203 up when it shouldn't.
18205 2006-09-08 Chris Toshok <toshok@ximian.com>
18207 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
18208 our arrays are length 256. & 0xff before indexing. Fixes the
18209 crash in bug #78077.
18211 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18213 * ThemeWin32Classic.cs:
18214 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
18215 is true. Handle that check box too.
18217 2006-09-07 Chris Toshok <toshok@ximian.com>
18219 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
18222 2006-09-07 Chris Toshok <toshok@ximian.com>
18224 * Control.cs: in set_BackColor only do the work if
18225 background_color != value.
18227 * XplatUIX11.cs: move the clearing of invalid areas (both client
18228 and nc) to the same block of code where we set (nc_)expose_pending
18229 to false. That is, move it from PaintEventEnd to PaintEventStart,
18230 so things that cause invalidates from within OnPaint will trigger
18231 another call to OnPaint. Fixes bug #79262.
18233 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
18235 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
18236 * FileDialog.cs: Fix typo
18238 2006-09-07 Jackson Harper <jackson@ximian.com>
18240 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
18241 for tab pages if they have any.
18243 2006-09-06 Mike Kestner <mkestner@novell.com>
18245 * Splitter.cs: use the "current" rect when finishing drag handle
18246 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
18248 2006-09-06 Mike Kestner <mkestner@novell.com>
18250 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
18251 support offset splitters. [Fixes #79298]
18253 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
18255 * Mime.cs: Fixed a bug that could override the global mime type
18258 2006-09-05 Jackson Harper <jackson@ximian.com>
18260 * TabControl.cs: Better calculation method for setting the slider
18261 pos. Prevents crashes on really wide tabs.
18262 - Draw Image on tab pages if an image list is used.
18264 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18266 * MonthCalendar.cs: When Font changes, the Size should be
18267 updated to fit the new font's space requirements.
18269 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
18271 * ListBox.cs: If the items are cleared with Items.Clear set
18274 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18276 * MonthCalendar.cs: Handle arrow keys as input keys. Also
18277 fire DateChanged event instead of DateSelected event when
18278 the date was changed by keyboard interaction.
18280 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18282 * DateTimePicker.cs: Handle DateChanged for the associated
18283 month_calendar control, and set month_calendar.Font from
18284 OnFontChanged method, as well as resize the height of the
18285 control when needed. Make PreferredHeight proportional.
18287 2006-09-01 Chris Toshok <toshok@ximian.com>
18289 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
18292 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
18294 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
18296 * FileDialog.cs: Set ClientSize instead of window size, to allow space
18297 for decorations (Fixes #79219)
18299 2006-09-01 Mike Kestner <mkestner@novell.com>
18301 * ComboBox.cs: first stab at sorting plus some selection handling
18302 fixes to bring us more in line with MS behavior. Also switches back
18303 to index based selection. Alternative patches for index-based
18304 selection were provided by Jackson Harper, Carlos Alberto Cortez,
18305 and latency@gmx.de on bug 78848. I assume they were similar to this
18306 code I've had simmering in my tree forever.
18309 2006-09-01 Chris Toshok <toshok@ximian.com>
18311 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
18312 when setting list position guard against ending up with a -1 index
18313 (the other part of the fix for #78812). Should probably make sure
18314 we don't need the analogous fix in the ItemDeleted case.
18317 - in SetDataSource, work around the fact that the way
18318 OnBindingContextChanged is invoked will cause us to re-enter this
18319 method. I'll remove the hack once I investigate
18320 OnBindingContextChanged.
18322 - fix the logic in set_DataSource and set_DataMember (basically
18323 what to do if the other of the two is null.)
18325 - in OnListManagerItemChanged, we need to take into account the
18326 edit row when deciding whether or not to call RecreateDataGridRows
18327 (part of the fix for #78812).
18329 2006-09-01 Jackson Harper <jackson@ximian.com>
18331 * Splitter.cs: Don't do anything if there is no control to affect
18332 (prevents us from crashing in weird tet cases).
18333 * TreeView.cs: Bounding box for the mouse movement reverting
18334 focus/selection back to previously selected node. This matches
18335 MS, and makes the tree a lot more useable.
18336 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
18337 use clipping so they are not drawn. This fixes when the control
18338 is set to have a transparent background, or if it was over an
18341 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
18343 * MimeIcon.cs: Improved handling for reading default icons when
18344 using gnome (2.16 made it necessary). Check and read svg icons
18345 first, then 48x48 and then 32x32 icons.
18347 2006-08-31 Chris Toshok <toshok@ximian.com>
18349 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
18352 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
18353 ProcessKeyPreview. Fixes part of #77806.
18355 * DataGrid.cs: big patch.
18357 - revert the queueing up of DataSource/DataMember if inside
18358 BeginInit/EndInit calls. That's not the way the datagrid achieves
18359 its delayed databinding. Instead, call SetDataSource in
18360 OnBindingContextChanged. This mimic's MS's behavior, and fixes
18363 - Also, it wasn't mentioned in #78811, but the test case exhibits
18364 behavior that was lacking in our datagrid implementation - Columns
18365 that have mapping names that don't exist in the datasource's
18366 properties aren't shown. Yuck. To fix this I added the bound
18367 field to the column style, and basically any calculation to figure
18368 out anything about columns uses a loop to find the bound columns.
18369 still need to investigate if I can cache an array of the bound
18370 columns or if the indices must be the same.
18372 - When setting CurrentCell, we no longer abort if the cell being
18373 edited was in the add row. This fixes the other part of #77806.
18375 - The new code also fixes #78807.
18377 * ThemeWin32Classic.cs: perpetrate the same disgusting
18378 column.bound field hack, and only render bound fields.
18380 2006-08-31 Chris Toshok <toshok@ximian.com>
18382 * DataGridColumnStyle.cs: add bound field. this field is true if
18383 the datasource has a property corresponding to the mapping name.
18385 * DataGridTableStyle.cs: set the bound field on the column styles
18386 depending on whether or not we have a column for that property.
18388 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
18390 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
18391 splitter control (fixes #79228)
18393 2006-08-31 Chris Toshok <toshok@ximian.com>
18395 * DataGridColumnStyle.cs: we need to delay the assignment of
18396 property descriptor until the last possible moment due to the lazy
18397 databinding stuff in the datagrid. Also, fix the exceptions
18398 thrown by CheckValidDataSource to match MS.
18400 2006-08-31 Jackson Harper <jackson@ximian.com>
18402 * Form.cs: When activated select the active control, if there is
18403 no active control, we select the first control.
18404 * XplatUIX11.cs: If there is no focus control when we get a
18405 FocusIn event, find the toplevel form and activate it. This
18406 occurs when you popup a window, it becomes the focus window, then
18407 you close that window, giving focus back to the main window.
18409 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18411 * MonthCalendar.cs:
18412 * ThemeWin32Classic.cs: Cache Font in bold style, as well
18413 as StringFormat with Center alignments in MonthCalendar,
18414 instead of creating new ones when drawing the control.
18415 Also, draw the month name in bold style.
18417 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
18420 - PerformLayout(): It would seem MS performs the fill even if the
18421 control is not visible (part of #79218 fix)
18422 - ResetBackColor(): Use the setter to reset the color, to allow
18423 overriders to catch the change.
18425 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
18426 - CreateHandle(): dito (part of $79218 fix)
18427 - Don't set an icon if we have a dialog
18428 * ScrollableControl.cs:
18429 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
18430 - ScrollIntoView(): No need to scroll if control is already visible
18431 (resolves fixme and fixes #79218)
18433 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18435 * MonthCalendar.cs: Change proportions in SingleMonthSize
18436 to match the aspect of the original control.
18438 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
18440 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
18441 get updated when they get maximized.
18443 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
18445 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
18447 2006-08-29 Chris Toshok <toshok@ximian.com>
18449 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
18451 2006-08-29 Jackson Harper <jackson@ximian.com>
18453 * TreeView.cs: Need to track selected node and highlighted node,
18454 they aren't always the same thing, when the mouse is down on a
18455 node it is hilighted, but not selected yet.
18456 - Do the HideSelection stuff right
18457 - Need to focus on rbutton mouse down. And redraw selection when
18458 right click is mouse upped.
18460 2006-08-29 Mike Kestner <mkestner@novell.com>
18462 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
18463 when SubItems.Count < Columns.Count. [Fixes #79167]
18465 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18467 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
18469 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18471 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
18472 from X. Only send based on ConfigureNotify if we don't have the
18473 correct location in hwnd (if the window manager moved us)
18475 2006-08-28 Mike Kestner <mkestner@novell.com>
18477 * ListView.cs: remove a TODO.
18478 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
18479 [Fixes ListView part of #79166]
18481 2006-08-28 Mike Kestner <mkestner@novell.com>
18483 * ListView.cs: move wheel handler to parent since it is focused
18484 instead of the item_control now. [Fixes #79177]
18486 2006-08-28 Mike Kestner <mkestner@novell.com>
18488 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
18489 when the control is focused. [Fixes #79171]
18491 2006-08-28 Mike Kestner <mkestner@novell.com>
18493 * ListView.cs: size the item and header controls for empty and
18494 unscrollable views.
18495 * ThemeWin32Classic.cs: draw disabled backgrounds.
18498 2006-08-28 Chris Toshok <toshok@ximian.com>
18500 * Form.cs: remove unused "active_form" static field.
18502 * Hwnd.cs: lock around accesses to static windows collection.
18504 * Application.cs: lock threads in Exit ().
18506 2006-08-28 Chris Toshok <toshok@ximian.com>
18508 * NativeWindow.cs: lock around accesses to window_collection.
18510 2006-08-28 Chris Toshok <toshok@ximian.com>
18512 * Control.cs: err, fix this the right way, by locking on controls
18513 when using it. not by making it synchronized.
18515 2006-08-28 Chris Toshok <toshok@ximian.com>
18517 * Control.cs: make the static "controls" field synchronized, as it
18518 gets updated from multiple threads.
18520 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18522 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
18523 Prevent other threads from exiting when calling thread sets quit state.
18524 * XEventQueue.cs: Added PostQuitState property
18526 2006-08-27 Chris Toshok <toshok@ximian.com>
18528 * AsyncMethodData.cs: add a slot for the window handle.
18530 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
18531 window (the destination control's window, not the foster window).
18533 * Control.cs (BeginInvokeInternal): store the window's handle in
18534 the AsyncMethodData.
18537 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18540 - PostQuitMessage: Removed resetting S.D display handle, we might have
18541 another loop started after calling PostQuitMessage (Fixes #79119)
18542 - Created destructor to reset S.D handle
18544 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18546 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
18548 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18550 * TextControl.cs (Insert): Update the caret position even if we don't
18551 have a handle yet, just don't call the driver in that case.
18552 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
18553 to the end of the new selection text (Fixes #79184)
18555 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18557 * Form.cs (Activate): Only activate if the handle is created)
18559 - Mark window as invisible when it's disposed
18560 - Check if window handle is created when setting window visible,
18561 instead of relying just on the is_created variable
18562 - Check if object is disposed when creating the control (Fixes #79155)
18564 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18566 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
18567 when allowing layout again. Otherwise we re-generate the anchoring
18568 distance to the border again and actually alter what the user wanted
18569 This is ugly, it'd be better if we used DisplayRectangle instead of
18570 ClientRectangle for Control.UpdateDistances, but that causes us to
18571 have other problems (initial anchoring positons would be wrong)
18574 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18577 - The size and location setters shouldn't go directly to
18578 SetBoundsCore, but to SetBounds, which triggers layout on the
18579 parent, then calls SetBoundsCore. (Related to fix for #78835)
18580 - SetBounds: Moved actual location update code into this function
18581 from SetBoundsCore, to match MS. Added call to PerformLayout if
18582 we have a parent (to trigger resizing of anchored parents if the
18583 child size has changed (see testcase for #78835)
18584 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
18586 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
18588 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18590 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
18591 System.Drawing when a toplevel window gets closed; there might
18592 be other toplevel windows belonging to the same app (Fixes #78052)
18594 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
18596 * FileDialog.cs: After reading FileDialog settings from mwf_config
18597 use Desktop prefix only if a real folder doesn't exist anymore.
18598 * FontDialog.cs: Added char sets.
18599 It is now possible to select the font, size or style with the
18602 2006-08-25 Kornél Pál <kornelpal@gmail.com>
18604 * PrintPreviewDialog.cs: Use assembly name constants.
18606 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18608 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
18609 scrollbar from whacking it's buttons)
18611 2006-08-24 Chris Toshok <toshok@ximian.com>
18613 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
18614 in this patch (aggregating setting Left/Top/Width/Height to
18615 setting Bounds on the scrollbars), but the crux of the fix is in
18616 Recalculate, where we scroll by the remaining scroll_position if
18617 we're hiding a scrollbar. The 2*$5 reward in the comment is
18620 2006-08-24 Jackson Harper <jackson@ximian.com>
18623 * MdiWindowManager.cs: If the form is made a non-mdi window we
18624 need to remove the form closed event so that closing forms works
18627 2006-08-24 Jackson Harper <jackson@ximian.com>
18629 * Control.cs: Make IsRecreating internal so that the driver can
18631 - Temporarily remove the Hide when controls are removed, its
18632 making a whole bunch of things not work because visibility isn't
18633 getting reset elsewhere correctly
18634 * Form.cs: Need to do a full handle recreation when the mdi parent
18636 * XplatUIX11.cs: If we are recreating handles don't dispose the
18637 HWNDs. What was happening is the handles were being recreated in
18638 SendWMDestroyMessages, but then flow continued on in that method
18639 and destroyed the new handles.
18641 2006-08-23 Jackson Harper <jackson@ximian.com>
18643 * Form.cs: MdiClient is always at the back of the bus
18644 * Control.cs: When the order of items in the collection is changed
18645 we need to reset the all_controls array
18646 - do the same sorta setup thats done when adding a control when a
18647 control is set on the collection.
18649 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18651 * TextBoxBase.cs (get_Text): Return an empty array if our document
18652 is empty (fixes #79052)
18654 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18656 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
18657 on WM_SYSCHAR messages (fixes #79053)
18659 2006-08-23 Chris Toshok <toshok@ximian.com>
18661 * DataGrid.cs: fix flickering when scrolling vertically.
18663 2006-08-23 Chris Toshok <toshok@ximian.com>
18665 * DataGrid.cs (EndEdit): only invalidate the row header when we
18668 2006-08-23 Chris Toshok <toshok@ximian.com>
18670 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
18671 methods. fixes the flicker when scrolling around.
18673 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18675 * FileDialog.cs: Making sure the control is created before we get a
18676 chance to use it with BeginInvoke (Fixes #79096)
18678 2006-08-23 Chris Toshok <toshok@ximian.com>
18680 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
18681 width to use when painting the rows.
18683 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18686 - Throw ArgumentException if a negative value is passed to SelectionLength
18687 - Update the selection end if start is moved. end needs to be always
18688 after start. (Fixes #79095)
18689 - Track selection length; MS keeps the selection length even if start
18690 is changed; reset on all other operations affection selection
18692 2006-08-22 Jackson Harper <jackson@ximian.com>
18694 * TreeView.cs: Make sure both scrollbars get displayed and sized
18695 correctly when the other bar is visible.
18696 - Use the original clip rectangle for checking if the area between
18697 the two scrollbars is visible, not the viewport adjusted clipping
18700 2006-08-22 Jackson Harper <jackson@ximian.com>
18702 * Binding.cs: We don't use IsBinding because it requires the
18703 control to be created, which really shouldn't be necessary just to
18704 set a property on the control.
18706 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18708 * ComboBox.cs: Some CB.ObjectCollection methods must throw
18709 ArgumentNullReferenceException when the argument is null.
18711 2006-08-21 Jackson Harper <jackson@ximian.com>
18713 * Timer.cs: Track the thread that the timer is started in (NOT
18714 CREATED), this way messages for it will only be triggered on its
18716 * XEventQueue.cs: Track the timers here, this makes timers per
18718 * XplatUIX11.cs: The timers are moved to the XEventQueue.
18720 2006-08-19 Chris Toshok <toshok@ximian.com>
18722 * XplatUIX11.cs: after further communication with pdb, we get the
18723 best of both worlds. SetZOrder working for un-Mapped windows, and
18724 no X errors for un-mapped windows.
18726 2006-08-19 Chris Toshok <toshok@ximian.com>
18728 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
18729 as it was causing pdn toolbars to not have the correct stacking.
18731 2006-08-18 Mike Kestner <mkestner@novell.com>
18733 * ListView.cs : guard against negative ClientArea.Width in scrollbar
18734 calculation. Not sure why control should ever be setting a negative
18735 width though. Fixes #78931.
18737 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18739 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
18740 null items in ObjectCollection class.
18741 * ListBox.cs.: Likewise.
18743 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
18745 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
18746 as the base method in ThemeWin32Classic should work fine.
18749 2006-08-18 Jackson Harper <jackson@ximian.com>
18751 * Binding.cs: When validating if the value entered doesn't convert
18752 properly reset to the old value.
18753 * RadioButton.cs: Don't fire click when we get focus.
18755 2006-08-18 Jackson Harper <jackson@ximian.com>
18757 * FileDialog.cs: Paint the selection on the directory combobox the
18760 2006-08-17 Jackson Harper <jackson@ximian.com>
18762 * ErrorProvider.cs: Don't allow the error control to be selected.
18763 * Control.cs: Don't send the SetFocus messages, the control
18764 activation will do this, and if we do it blindly here validation
18767 2006-08-17 Jackson Harper <jackson@ximian.com>
18770 * ContainerControl.cs: Make validation events fire in the correct
18771 order. TODO: For some reason the first validation event is not
18774 2006-08-17 Mike Kestner <mkestner@novell.com>
18776 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
18778 2006-08-17 Mike Kestner <mkestner@novell.com>
18780 * ComboBox.cs : implement scroll wheel support for popped-down
18781 state. Fixes #78945.
18783 2006-08-17 Jackson Harper <jackson@ximian.com>
18785 * TreeView.cs: Specify treeview actions (old patch that didn't get
18786 committed for some reason).
18787 - Don't let the mouse wheel scroll us too far. Just want to make
18788 the bottom node visible, not scroll it all the ways to the top.
18790 2006-08-17 Jackson Harper <jackson@ximian.com>
18792 * XplatUIX11.cs: Mouse wheel events go to the focused window.
18794 2006-08-17 Mike Kestner <mkestner@novell.com>
18796 * ComboBox.cs : don't do mouseover selection in simple mode.
18798 2006-08-16 Jackson Harper <jackson@ximian.com>
18800 * Form.cs: Fire the closing events for all the mdi child windows
18801 when a window is closed. If the cancel args are set to true, the
18802 main window still gets the event fired, but it doesn't not close.
18803 * MdiWindowManager.cs: Do this closing cleanup in a Closed
18804 handler, instead of when the button is clicked, so cancelling the
18805 close works correctly.
18806 * ComboBox.cs: Send the mouse down to the scrollbar.
18808 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18810 * ListBox.cs: When passing 'null' to SelectedItem,
18811 set SelectedIndex to -1, to unselect items. This is the
18812 observed behaviour in .Net.
18814 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
18816 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
18817 MS flags saying there won't be any. (fixes #78800)
18818 * Control.cs (HandleClick): Made virtual
18820 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
18822 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
18823 cultures. Fixed bug #78399.
18825 2006-08-16 Jackson Harper <jackson@ximian.com>
18827 * Form.cs: Use the MdiClients MdiChildren property to access
18828 MdiChildren instead of creating the array from the child controls.
18829 * MdiClient.cs: Maintain a separate array of the mdi children, so
18830 that insertion order is maintained when the Z-order is changed.
18832 2006-08-16 Mike Kestner <mkestner@novell.com>
18834 * ListView.cs : add an ItemComparer and default to it for sorting.
18835 Fixes #79076, but sorting needs a complete overhaul to be compat with
18838 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18840 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
18842 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18844 * Hwnd.cs (Mapped): Properly traverse the tree
18846 2006-08-15 Chris Toshok <toshok@ximian.com>
18848 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
18849 pass manager.Current.GetType() to ParseData. It has to be the
18850 property type. So, hold off doing the ParseData until we're in
18851 SetPropertyValue where we know the type. This fixes the crash in
18852 #78821 but the textbox is still empty.
18854 2006-08-15 Chris Toshok <toshok@ximian.com>
18857 - when we're scrolling, only call Edit() again if the
18858 current cell is still unobscured. Fixes bug #78927.
18859 - when handling mousedown on a cell, ensure the cell is visible
18860 before calling Edit.
18861 - remove the properties from DataGridRow, and remove the
18862 DataGridParentRow class altogether.
18865 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18867 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18868 fire OnTextChanged by ourselves. There's no point calling base,
18869 we don't set the base value anywhere else. Fixes #78773.
18871 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18873 * ListBox.cs: Call CollectionChanged when modifying
18874 an item from Items indexer, to update the actual items
18877 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18879 * PrintDialog.cs: Small fixes for focus and a pair of checks,
18880 to match .Net behaviour.
18882 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18884 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18886 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18888 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18890 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18892 * MessageBox.cs: Prevent potential NRE exception.
18893 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18895 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18897 * MessageBox.cs: Calculate the owner of a messagebox, also make
18898 it topmost. Fixes #78753
18900 2006-08-14 Chris Toshok <toshok@ximian.com>
18902 * XplatUIX11.cs: A couple of fixes so that metacity will let us
18903 programmatically move windows. first, set the PPosition hint as
18904 well as the USPosition hint. Second include some code from pdb
18905 that sets the window type to NORMAL when we set the transient for
18906 hint. This is because, in the absence of a window type, metacity
18907 thinks any window with TransientFor set is a dialog, and refuses
18908 to let us move it programmatically. fascists.
18910 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18912 * XplatUIX11.cs: When setting normal hints, take into consideration
18913 an different hints previously set so we don't delete them (fixes #78866)
18915 2006-08-12 Chris Toshok <toshok@ximian.com>
18917 * ToolBarButton.cs: make Layout return a boolean, if something to
18918 do with the button's layout changed.
18921 - add another parameter to Redraw, @force, which all existing
18923 - make the Layout function return a boolean which is true if the
18924 layout has actually changed. Redraw now uses this (and @force)
18925 to determine when to invalidate. At present the only place
18926 where @force can be false is the call from OnResize, when
18927 background_image == null. So, resizing a toolbar when the
18928 layout doesn't change results in no drawing.
18930 2006-08-12 Chris Toshok <toshok@ximian.com>
18932 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
18933 the VScrollBar and HScrollbar reversed. oops.
18935 * DataGrid.cs: fix the logic that assigns sizes to the implicit
18936 scrollbars. we were assigning them twice (once in
18937 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18938 therefore causing two scrollbar resizes (and redraws?) to happen
18941 2006-08-12 Chris Toshok <toshok@ximian.com>
18943 * ToolBarButton.cs: redraw the entire button if the theme tells us
18946 * Theme.cs: add ToolBarInvalidateEntireButton.
18948 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18949 buttons, just the border.
18951 * ThemeNice.cs: redraw the entire toolbar button since we need to
18952 draw the highlight image.
18954 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18955 we need to redraw the entire button (not just the border).
18957 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18959 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18960 for vertical bars. Fixes the mismatches shown by #78513
18962 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
18964 * FileDialog.cs: If a saved/remembered path doesn't exist
18965 anymore, fall back to "Desktop".
18967 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18969 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18970 parent. It's apparently legal to not have one
18972 - SetZOrder: Don't try to set Z-Order on an unmapped window
18973 - CreateWindow: 0,0 are legal coordinates for a window. don't move
18974 it unless the coordinates are negative
18976 2006-08-10 Mike Kestner <mkestner@novell.com>
18978 * ListControl.cs: allow null for DataSource. Clear DisplayMember
18979 when setting to null per msdn docs. Fixes #78854.
18981 2006-08-10 Chris Toshok <toshok@ximian.com>
18983 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
18984 flickering by setting a clip rectangle on the Graphics when we
18985 need to redraw just a particular menuitem. Also, rename "OnClick"
18986 to "OnMouseDown" to reflect what it actually is.
18988 * Form.cs: track the OnMouseDown change.
18990 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
18992 * CommonDialog.cs: Properly inherit the CreateParams from the form
18993 and only change what we need. Fixes #78865
18995 2006-08-10 Chris Toshok <toshok@ximian.com>
18997 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
18998 flickering in flat mode (and most of the flickering in general) by
18999 only invalidating the button border (and not the entire rectangle)
19000 when the state changes. A couple of cases still flicker:
19001 ToggleButtons, and the dropdown arrow case when the user mouse
19004 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
19006 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19007 for german keyboards. Numlock state shouldn't affect the behaviour
19008 of the Del key. Fixes bug #78291.
19010 2006-08-10 Chris Toshok <toshok@ximian.com>
19012 * ListControl.cs: remove the items.Clear line from BindDataItems,
19013 as this is the first thing done by both subclasses in their
19014 SetItemsCore overrides. Also, add a ItemChanged handler, and when
19015 passed -1, refresh the list. This gets databinding working when
19016 the datasource is set on the list before the datasource is
19017 populated (as in wf-apps/ReportBuilder.)
19019 * ComboBox.cs: remove the argument to BindDataItems. This call
19020 should really go away, and be initiated by the ListControl code.
19022 * ListBox.cs: same.
19024 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19026 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
19027 if no data is in the document when the control is displayed
19029 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19031 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
19034 - PositionCaret: Allow positioning of caret but don't call methods
19035 requiring a handle if the window isn't created yet
19036 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
19037 - owner_HandleCreated: Don't position the caret, just update it's
19038 location. User might have already set a different position
19040 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19042 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
19043 windows. Screws up the returned coordinates for child windows.
19044 Fixes #78825. I'm hoping this doesn't break something, since the
19045 code was explicitly put in 8 months ago, but no bug was attached.
19046 Menus still seem to work properly.
19048 2006-08-08 Chris Toshok <toshok@ximian.com>
19050 * DataGrid.cs: make BeginInit/EndInit actually do what they're
19051 supposed to do - delay data binding until the EndInit call. Also,
19052 make the table style collection's CollectionChangeAction.Refresh
19055 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
19056 (with action = Refresh) when a consituent table's MappingName is
19059 2006-08-08 Chris Toshok <toshok@ximian.com>
19061 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
19062 Invalidate, since changing the text can change the size of the all
19065 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
19067 * Form.cs (AddOwnedForm): Still need to add the form to our listif
19068 we don't have it yet
19070 2006-08-08 Chris Toshok <toshok@ximian.com>
19072 * PrintControllerWithStatusDialog.cs: don't .Close() the status
19073 dialog, as this causes X errors later on, since we actually
19074 destroy the window. Instead, .Hide() it.
19076 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
19078 * ComboBox.cs: Added focus reflection for popup window
19080 - Removed transient setting for non-app windows for now, not sure it
19082 - Fixed logic checking if we have captions when deciding
19083 override_redirect, WS_CAPTION is two bits and a 0 check was not
19085 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
19088 - AddOwnedForm: Don't just add the form to the list, call the property
19089 to ensure the driver is informed about the ownership as well
19090 - CreateHandle: Set the TopMost status in the driver if we have an owner
19091 * XplatUI.cs: Fixed debug statement
19093 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
19094 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19095 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
19096 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
19097 TrackBarRenderer.cs: Make constructor private.
19098 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
19099 * ProfessionalColorTable.cs: Make properties virtual.
19101 2006-08-06 Duncan Mak <duncan@novell.com>
19103 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
19106 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19107 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19108 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
19109 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
19110 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
19111 Initial import of new 2.0 classes.
19113 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19114 * Application.cs: Add 2.0 VisualStyles properties.
19116 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19117 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19118 XplatUIX11.cs: Create property to allow access to existing private
19119 variable "themes_enabled"
19121 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19123 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
19124 file size, as otherwise our class libraries fail using windows. Fixes
19127 2006-08-04 Jackson Harper <jackson@ximian.com>
19130 * XplatUIX11.cs: Move the toolwindow window manager creation into
19131 the X11 driver, this way on win32 we can let windows create/handle
19134 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19136 * PrintDialog.cs: Remove some redundant checks, add some others,
19137 clean some code, and move the focus to the text boxes when the
19138 values are incorrect.
19140 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
19142 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
19144 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
19146 * NumericUpDown.cs: Setting the Minimum and Maximum is now
19147 handled correctly. Fixes bug #79001.
19149 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19151 * PrintDialog.cs: The "Copies" numeric up down must have
19152 set the Minimum property to 1; only if the value is bigger
19153 than 1, activate "Collate" check box. This is the behaviour of .Net.
19154 Also modify the Document elements only if it is not null.
19156 2006-08-03 Jackson Harper <jackson@ximian.com>
19158 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
19159 length. (We have a larger array then actual node count).
19161 2006-08-03 Jackson Harper <jackson@ximian.com>
19163 * ComboBox.cs: Don't show selection by default.
19164 - The SelectAll isn't needed here, since the focus code should do
19166 - DDL style lists to manual selection drawing, so when they
19167 get/lose focus they have to invalidate.
19169 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
19171 * TextBoxBase.cs: Don't always show all selections by default.
19173 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
19174 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
19175 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
19176 Fixed various typos.
19178 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
19180 * Control.cs: Removing the controls in a ControlCollection with
19181 Clear now hides the controls as expected. Fixes bug #78804.
19183 2006-08-03 Jackson Harper <jackson@ximian.com>
19185 * Control.cs: Revert previous focus patch, it breaks reflector.
19187 2006-08-03 Jackson Harper <jackson@ximian.com>
19189 * ComboBox.cs: Cleanup selection and focus with the combobox.
19190 This also eliminates some duplicated keyboard code, since now
19191 everything is handled by the main class.
19192 - Make list selection work on mouse up instead of down, to match
19195 2006-08-02 Jackson Harper <jackson@ximian.com>
19197 * Control.cs: Setting focus needs to go through the whole
19198 selection mechanism.
19200 2006-08-02 Chris Toshok <toshok@ximian.com>
19202 * PrintPreviewDialog.cs: change MinimumSize to use
19203 base.MinimumSize so it works.
19205 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
19208 - UpdateCaret: Added sanity check in case caret isn't defined yet
19209 - Line.Delete: Now updating selection and caret markers if we're
19210 transfering a node (Properly fixes #78323)
19211 - SetSelectionEnd: Added sanity check
19212 * TextBoxBase.cs: Removed broken attempt to fix #78323
19214 2006-08-01 Chris Toshok <toshok@ximian.com>
19216 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
19217 Close() call is handled in Form, not here.
19219 2006-08-01 Chris Toshok <toshok@ximian.com>
19221 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
19224 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
19225 for sizes < 100% zoom. The code now aggressively attempts to keep
19226 from calling document.Print (), and tries not to use the scaling
19227 g.DrawImage whenever possible (it still does if you scale to >
19228 100%, since usually that involves huge images).
19230 * PrintPreviewControl.cs: hook up the close button.
19232 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
19233 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
19234 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
19235 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
19236 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
19237 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
19238 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
19239 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
19240 Removed [Serializable] for 2.0 Event Handlers.
19242 2006-07-31 Jackson Harper <jackson@ximian.com>
19244 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
19245 * TextControl.cs: Uncomment out the body of this method.
19247 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
19249 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
19252 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19254 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
19255 that embed TextBox and need selections visible even if textbox is not
19256 focused to enforce that behaviour.
19257 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
19260 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19263 - Added new SetSelectionStart/SetSelectionEnd overloads
19264 - Fixed viewport width assignment to be accurate
19265 - Adjusted alignment line shift calculations to allow cursor on right
19266 aligned lines to be always visible at the right border (like MS)
19268 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
19269 - TextBoxBase_SizeChanged: recalculating canvas on size changes
19270 - CalculateScrollBars: Use ViewPort size instead of window size, to
19271 properly consider space occupied by the border and scrollbars
19273 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
19274 calculations; no longer leaves artifacts
19275 - CaretMoved: Adjusted window scrolling to match MS and fixed several
19276 calculation bugs (Still missing right/center align calculations)
19278 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19280 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
19281 use of both scroll rect and clip rect, as they do the same.
19283 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19285 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
19286 in the event handler (fixes #78912)
19288 2006-07-31 Chris Toshok <toshok@ximian.com>
19290 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
19291 grid.ListManager.Count, since grid.ListManager might be null.
19292 This of course begs the question "why are we drawing rows for a
19293 grid with no list manager (and therefor no rows)?" Fixes the
19294 crash in bug #78929.
19296 2006-07-31 Chris Toshok <toshok@ximian.com>
19298 * RelatedPropertyManager.cs: Don't always chain up to the parent
19299 ctor. instead, call SetDataSource if the parent's position is !=
19300 -1. Fixes the crash in #78822.
19302 2006-07-31 Chris Toshok <toshok@ximian.com>
19304 * DataGrid.cs (get_ListManager): use field instead of property
19305 accessors for datasource and datamember.
19306 (RowsCount): make internal again.
19307 (OnMouseDown): end edits before resizing columns/rows.
19308 (OnMouseUp): restart edits after resizing columns/rows.
19310 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
19312 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
19313 This fixes the situation where the last set cursor is displayed
19314 whenever the mouse is over scrollbars.
19316 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19318 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
19319 Document properties, as well as initial values.
19321 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
19323 * XplatUIWin32.cs (SetBorderStyle): Setting both border
19324 and ClientEdge results in a 3-pixel border, which is
19327 2006-07-28 Jackson Harper <jackson@ximian.com>
19329 * TreeNodeCollection.cs: Fix the clear method.
19330 - Fix the Shrink also
19332 2006-07-27 Jackson Harper <jackson@ximian.com>
19334 * TreeView.cs: Make sure the visible order is computed when we
19335 attempt to size the scrollbars (for trees that mess with the
19336 scrolling when they shouldn't.
19337 - Make sure to give the scrollbars valid values.
19339 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
19341 * XplatUIX11.cs: Move motion compression code to where it
19342 has less performance impact
19344 2006-07-26 Jackson Harper <jackson@ximian.com>
19346 * UpDownBase.cs: When the control is selected make the child
19347 controls non selectable, so that a click on them won't do a
19348 focus/unfocus cycle.
19349 - Don't give focus to the text box when the spinner is selected.
19350 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
19352 2006-07-26 Chris Toshok <toshok@ximian.com>
19354 * ThemeWin32Classic.cs: add print preview rendering. I'm not
19355 satisfied with this solution. If the bitmaps are small, we should
19356 just cache them in the PrintPreviewDialog and draw them here.
19357 Also, the layout is broken for the 2-up and 3-up cases.
19359 * Theme.cs: add PrintPReviewControlPaint.
19361 * PrintPreviewDialog.cs: first pass implementation.
19363 * PrintPreviewControl.cs: first pass implementation. No
19366 * PrintDialog.cs: only validate fields if that particular portion
19367 of the UI is enabled. Also, set the document's controller to a
19368 PrintControllerWithStatusDialog wrapping the document's print
19371 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
19372 bring up a SaveFileDialog (i hope we don't want to match the
19373 behavior of the crappy windows file entry) and set the
19374 PrinterSettings.PrintFileName accordingly.
19376 2006-07-26 Jackson Harper <jackson@ximian.com>
19378 * ContainerControl.cs: Add a field that disables auto selecting
19379 the next control in a container when the container is activated.
19380 * UpDownBase.cs: Don't select the text box when the up down is
19383 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
19385 * XEventQueue.cs: Added methods for peeking (used for compression
19386 of successive events)
19387 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
19388 mouse move events (fixes #78732)
19390 2006-07-25 Jackson Harper <jackson@ximian.com>
19392 * UpDownBase.cs: Use an internal class for the textbox so that we
19393 can control focus. the updown control should always have focus,
19394 if either the text area or the buttons are clicked.
19395 - Send the key messages to the textbox, since it never actually
19397 - Activate and decativate the textbox caret.
19399 2006-07-24 Jackson Harper <jackson@ximian.com>
19401 * Control.cs: Use the directed select when selecting a control,
19402 this way the container controls override will get called and the
19403 whole ActiveControl chain will get triggered. TODO: probably need
19404 to make sure this gets done everywhere instead of the old
19406 * ContainerControl.cs: Implement the directed Select method to
19407 find and activate the correct child control.
19409 2006-07-22 Mike Kestner <mkestner@novell.com>
19411 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
19412 menu handling code so that clicks without a grab work too.
19415 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
19417 * FileDialog.cs: Enable the BackButton when dirstack has one element.
19418 Added some small optimizations.
19420 2006-07-21 Matt Hargett <matt@use.net>
19422 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
19424 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
19426 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
19427 tests pass and match MS in some strange border cases.
19429 2006-07-21 Chris Toshok <toshok@ximian.com>
19431 * ThemeWin32Classic.cs: handle drawing of the relation links and
19432 parent row buttons.
19434 * Theme.cs: change args to DataGridPaintParentRow.
19436 * DataGrid.cs: Don't use controls for the relation links and
19437 parent buttons, so we have to handle all their interactions in
19438 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
19439 when we're navigating through child tables, so we can reinstate
19440 selection, expanded state, current cell, etc.
19442 2006-07-20 Chris Toshok <toshok@ximian.com>
19444 * ToolBar.cs: When we redraw a button, for whatever reason,
19445 there's no reason to redraw the entire toolbar. Also, don't call
19446 Control.Refresh from within Redraw, as it's much heavier than
19447 Invalidate (which is really what we want).
19449 2006-07-20 Chris Toshok <toshok@ximian.com>
19451 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
19452 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
19453 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
19454 traces from within a debug IBindingList datasource
19455 (in mono/winforms/datagrid) for *days*, I've finally gotten things
19456 to work in a similar fashion.
19458 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19460 * ListBox.cs: Don't call Sort () when setting
19461 the Sorted property to false (avoid an unnecessary sort).
19463 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19465 * ListControl.cs: DataSource should throw an ArgumentException
19466 instead of a normal exception when the argument is not of the
19469 2006-07-20 Mike Kestner <mkestner@novell.com>
19471 * Control.cs: add InternalPreProcessMessage to allow us to steal
19472 key events before MWF gets its paws on them. Adapted from a
19474 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
19475 up/down/left/right navigation. Override the new internal control
19476 method to steal the events since they never make it to WndProc.
19477 * ToolBarButton.cs: don't worry about pushed when setting hilight
19478 since the drawing code prefers pushed to hilight. Invalidate on
19479 Hilight changes. Fixes #78547 and #78525.
19481 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19483 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
19484 the canvas size. Fixes #78868
19486 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19488 * Splitter.cs: Track requested split position until first layout
19489 is performed. Fixes #78871
19491 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19493 * Application.cs: Removed code that forces 1.x for the version
19494 number if the version started with 0. Not sure why that code was
19495 there and I couldn't find any bugs that indicated we needed it.
19498 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
19500 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
19501 ResetDefaults(), just write some output to the console until it's
19502 implemented. Fixes bug #78907 for now. Eliminated two warnings.
19504 2006-07-19 Jonathan Chambers <joncham@gmail.com>
19506 * PropertyGridView.cs: set StartPosition of drop down forms
19507 so they appear in correct initial spot. Fixes #78190.
19509 2006-07-19 Mike Kestner <mkestner@novell.com>
19511 * ThemeWin32Classic.cs: use parent background color when drawing
19512 flat toolbars. Restructure the conditionals to make sure non-flat
19513 non-Divider toolbars are filled too. Fixes #78837.
19515 2006-07-19 Mike Kestner <mkestner@novell.com>
19517 * ListBox.cs: Sort on collection changes even if the handle
19518 isn't created yet. Fixes #78813.
19520 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19522 * ListControl.cs: DisplayMember should never be null,
19523 and now we assign String.Empty when null is passed to it (this
19526 2006-07-17 Mike Kestner <mkestner@novell.com>
19528 * ListViewItem.cs: restructure Font and subitem Font handling
19529 to hold a specific font and refer back to owner on null.
19532 2006-07-17 Mike Kestner <mkestner@novell.com>
19534 * ToolBar.cs: bandaid for side-effect of previous patch which was
19535 discarding explicit heights for non-AutoSize toolbars. Need to
19536 extend my format tester to deal with AutoSize=false. Fixes #78864.
19538 2006-07-15 Jackson Harper <jackson@ximian.com>
19540 * LabelEditTextBox.cs:
19541 * TreeView.cs: Use a new LabelEdit class for node editing, this
19542 class automatically 'closes' itself when it gets the enter key or
19544 - Use the client rectangle when setting the trees scrollbars, so
19545 border style is taken into account.
19547 2006-07-14 Jackson Harper <jackson@ximian.com>
19550 * TreeView.cs: Make the editing work similar to MSs, firing the
19551 events correctly and ending edits correctly.
19553 2006-07-14 Mike Kestner <mkestner@novell.com>
19555 * ToolBarButton.cs:
19556 * ToolBar.cs: layout restructuring and redraw enhancements to support
19557 formatting changes gracefully, like setting TextAlign, ImageList,
19558 ButtonSize, and Appearance. Handles explicit button sizing quirks
19559 of the MS controls. Things like flat toolbars ignoring button size
19560 but becoming constant sized at the largest button's size. Normal
19561 toolbars with an image set cannot be shrunk smaller than the image,
19562 but text can be clipped/ignored.
19563 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
19564 is zero. Seems like DrawString should be smart enough to not put
19565 anything on screen though. Also trim labels and ellipsize at the char
19566 boundary, not word.
19567 Fixes #78711 and #78483.
19569 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19571 * FolderBrowserDialog.cs: Disable "New Folder" button and
19572 "New Folder" contextmenu menuitem if a folder like "My Computer"
19575 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19577 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
19578 * FolderBrowserDialog.cs:
19579 - Use MWFConfig to store and read size and position settings
19580 - Added code to create a new folder (button or context menu).
19581 Use TreeView labeledit to change the name of the new folder.
19583 2006-07-14 Jackson Harper <jackson@ximian.com>
19585 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
19586 when the tree is scrolled we end editing.
19588 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19590 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
19593 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19595 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
19596 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
19597 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
19598 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
19599 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
19600 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
19601 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
19602 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
19603 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
19604 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
19605 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
19606 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
19607 ListViewItemSelectionChangedEventHandler.cs,
19608 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
19609 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
19610 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
19611 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
19612 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
19613 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
19614 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
19615 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
19616 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
19617 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
19618 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
19619 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
19620 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
19621 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
19622 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
19623 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
19624 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
19625 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
19626 WebBrowserNavigatingEventHandler.cs,
19627 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
19629 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19631 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
19632 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
19633 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
19634 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
19635 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
19636 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
19637 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
19638 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
19639 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
19640 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
19641 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
19642 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
19643 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
19644 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
19645 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
19646 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
19647 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
19648 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
19649 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
19650 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
19651 ListViewItemStates.cs, MaskFormat.cs: Added
19653 2006-07-13 Jonathan Chambers <joncham@gmail.com>
19655 * PropertyGridView.cs: Fix keyboard navigation of drop down.
19656 Patch from eno for bug 78558.
19658 2006-07-13 Jackson Harper <jackson@ximian.com>
19660 * TreeView.cs: When an edit is finished make sure that the
19661 selected node is visible.
19662 - When setting the top/bottom use the scrollbars is_visible, so
19663 everything will be set correctly even if the tree isn't visible
19666 2006-07-13 Jackson Harper <jackson@ximian.com>
19668 * ComboBox.cs: Revert the item->index part of my previous patch.
19669 * TreeView.cs: Use LostFocus instead of Leave for detecting when
19670 the edit box has lost focus (duh).
19671 - Just make the edit box not visible when we get return, that will
19672 take the focus, which will call EndEdit
19673 * TreeNode.cs When we start editing, notify the treeview.
19675 2006-07-12 Jackson Harper <jackson@ximian.com>
19677 * ComboBox.cs: Clear out old items before setting the item list.
19678 This prevents databound controls from having their items added
19680 - Switch the combobox to use indices whereever possible instead of
19681 using Item's. This allows usto navigate through lists that have
19682 more then one item with the same string value (ie a, b, b, a).
19683 - Scroll the listboxes scrollbar when a non visible item is
19685 - Allow keypress to cycle through all the possible values. For
19686 example if you have b1, b2, b3 and hold down the B key all the
19687 values will be cycled through.
19689 2006-07-12 Jackson Harper <jackson@ximian.com>
19692 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
19693 this using the internal methods.
19694 * Control.cs: Add OnGotFocusInternal. A new method that allows
19695 controls to "override" OnGotFocus and change focus behavior if
19697 - Same thing for LostFocus
19698 * ComboBox.cs: Pass off focus to the text control properly.
19700 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
19702 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
19703 * FolderBrowserDialog.cs: Almost a complete rewrite.
19704 - Better support for Environment.Specialfolders
19705 - Added support for MWFVFS
19706 - Made setting SelectedPath work
19708 2006-07-12 Jackson Harper <jackson@ximian.com>
19710 * Control.cs: Optimze getting all the controls.
19712 2006-07-11 Jackson Harper <jackson@ximian.com>
19714 * ContainerControl.cs: Override SETFOCUS in the container control,
19715 so that it is not selected on mouse click.
19717 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19719 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
19720 Hopefully we will have a better way once all of focus is complete.
19722 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19724 * ThemeWin32Classic.cs: Commented out some debug code and fixed
19725 a compile error with csc.
19727 2006-07-11 Jackson Harper <jackson@ximian.com>
19729 * Control.cs: When hiding a control only select the next control
19730 if the current control was focused.
19731 - Don't handle enter/leave when setting/killing focus, this is
19732 done by the container control.
19733 - Remove is_selected, it's not needed anymore.
19734 - Add utility methods for selecting a child control, and for
19735 firing the Enter/Leave events.
19736 * ContainerControl.cs: When a control is activated fire the
19737 enter/leave events.
19738 - Don't wrap when processing the tab key, so that focus can be
19739 moved outside of the container.
19740 - Use the correct active control
19742 2006-07-11 Jackson Harper <jackson@ximian.com>
19744 * ComboBox.cs: Remove some debug code that was blinding me.
19745 * UpDownBase.cs: These controls actually aren't implicit, they are
19746 visible to the user.
19748 2006-07-10 Chris Toshok <toshok@ximian.com>
19750 * DataGrid.cs: move back to the is_adding boolean field. god i
19751 hate this is_editing/is_adding/is_changing stuff.
19753 2006-07-10 Chris Toshok <toshok@ximian.com>
19755 * DataGridTableStyle.cs: just check if the property type is bool.
19756 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
19757 Don't use CanRenderType.
19759 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
19760 if our text == NullText. Remove CanRenderType.
19762 * DataGridBoolColumn.cs: nuke CanRenderType.
19764 * DataGrid.cs: reenable some code to end the current edit inside
19765 of set_CurrentCell. This fixes the other 1.1.16 regression.
19766 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
19767 Also, remove the visible_row_count arg from CalcRowHeaders, since
19768 we don't need to worry about the actual height of the area.
19770 2006-07-10 Chris Toshok <toshok@ximian.com>
19772 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
19775 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
19776 the real sense of the IsInEditOrNavigateMode property (true =
19777 navigate, false = edit). Also, update OnKeyPress to reflect this.
19779 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
19780 column style exists, we still need to set its property descriptor
19781 to match up with our list manager.
19783 2006-07-10 Chris Toshok <toshok@ximian.com>
19785 * ThemeWin32Classic.cs: implement the new row/header painting
19786 approach. The parent row painting will likely go away and
19787 replaced with label controls, but the rest seems to work ok (and
19790 * Theme.cs: change the way we draw datagrid rows. we don't draw
19791 the row headers as a block now. Instead we draw them in the
19792 normal draw-row loop. Add some calls for drawing parent rows and
19795 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
19796 a default table style. Set the defaults from ThemeEngine.Current,
19797 not SystemColors. Fix lots of misc issues with property setters.
19799 * DataGrid.cs: move loads of style information out of this class
19800 as it's being duplicated with DataGridTableStyle. keep track of a
19801 special DataGridTableStyle for the properties we used to mirror
19802 here. Switch all the style properties to access this table style
19803 instead of instance fields of this class. Also add a internal
19804 class to represent parent rows (more needs to be stored here, like
19805 the selection state from the parent table, as well as the
19806 expansion state.) Also, for datasources with relations, do the
19807 right thing for collapse/expand, and add support for the
19808 navigation/parent row buttons.
19810 Lastly, fix the crash in the 1.1.16 build.
19812 * GridTableStylesCollection.cs: make the explicit interface
19813 implementations call the class's methods as opposed to duplicating
19816 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
19817 0 so the text doesn't jump around when we move the cursor.
19819 2006-07-10 Jackson Harper <jackson@ximian.com>
19822 * ListBox.cs: Match MS's ToString (this makes debugging focus
19823 stuff infinitely easier).
19825 2006-07-10 Jackson Harper <jackson@ximian.com>
19827 * Control.cs (SelectNextControl): When checking the control's
19828 parent use this instead of ctrl.parent so that null can be passed
19829 to SelectNextControl. (I have unit tests for this).
19830 - Remove unused var.
19832 2006-07-10 Chris Toshok <toshok@ximian.com>
19834 * CurrencyManager.cs: correct one regression, the removal of the
19835 finalType field. Also, add a MonoTODO on CanAddRows, implement
19836 Refresh() correctly, and fix some event emission in
19837 ListChangedHandler.
19839 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19841 * FileDialog.cs: Don't use brackets for new folders if they exist
19842 under *nix. Instead use -(number of existing folders +1).
19844 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19847 - Fixed really nasty bug #78771
19848 - Don't block the whole GUI when reading directories with a lot of
19849 entries. Use an other thread instead and call BeginInvoke to
19850 update the ListView in MWFFileView
19852 2006-07-07 Chris Toshok <toshok@ximian.com>
19854 * Control.cs (Dispose): release any Capture when disposing.
19856 2006-07-07 Chris Toshok <toshok@ximian.com>
19858 * LinkLabel.cs (Select): if we chain up to the parent, set
19859 focused_index to -1 so we'll search for the first available link
19860 the next time the user tabs into us. Also, if the direction is
19861 backward and focused_index == -1, start the search from the last
19864 2006-07-07 Chris Toshok <toshok@ximian.com>
19866 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19867 is beyond the end of the text, don't do anything.
19868 (CreateLinkPieces): set our ControlStyles.Selectable based on
19869 whether or not we have any links.
19870 (Link.Invalidate): use a loop instead of foreach.
19871 (Link.set_Start): null out owner.sorted_links so it'll be
19872 recreated by CreateLinkPieces.
19874 2006-07-06 Chris Toshok <toshok@ximian.com>
19876 * LinkLabel.cs: revert the SetStyle change.
19878 2006-07-06 Chris Toshok <toshok@ximian.com>
19880 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19881 (OnEnableChanged): s/Refresh/Invalidate
19882 (OnGotFocus): if we have a focused index already, refocus it (so
19883 if we mouse out/in to the window it'll focus the right link).
19884 (OnKeyDown): move the tab handling out of here.
19885 (OnLostFocus): don't set focused_index to -1, so we can refocus it
19886 when we lose focus.
19887 (OnMouseDown): don't Capture here - Control handles it. Also,
19888 focus the active link.
19889 (OnMouseUp): don't deal with Capture.
19890 (OnPaintBackgroundInternal): remove.
19891 (OnTextAlignChanged): CreateLinkPieces before calling the
19892 superclass's method.
19893 (OnTextChanged): call CreateLinkPieces before calling superclass's
19895 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19897 (Select): implement this, moving the selection between different
19898 links, and call parent.SelectNextControl if we don't have another
19899 link to focus in the given direction.
19900 (CreateLinkPieces): call Invalidate instead of Refresh.
19902 2006-07-06 Chris Toshok <toshok@ximian.com>
19904 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19905 new LinkLabel internals.
19907 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
19908 over pieces looking for active/focused/etc links. also, deal with
19909 runs of text (and links) with embedded \n's in them, and use
19910 MeasureCharacterRanges instead of MeasureString to figure out the
19911 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
19914 2006-07-04 Jackson Harper <jackson@ximian.com>
19916 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19917 XKB or key auto repeat, do it manually. Without key auto repeat,
19918 when a key is held down we get key press, key release, key press,
19919 key release, ... with auto repeat we get key press, key press, key
19920 press ..., and then a release when the key is actually released.
19922 2006-07-03 Jackson Harper <jackson@ximian.com>
19925 * ThemeWin32Classic.cs: Tabs do not obey normal background color
19926 rules, they are always control color regardless of the background
19929 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
19931 * FileDialog.cs: Added internal class MWFConfig.
19932 Removed Registry support and replaced it with support for the new
19933 MWFConfig class. See MWFConfig comments for more information.
19935 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
19937 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19938 rectangle. Added some patches from eno from bug #78490 and fixed
19939 the arrow position for small up and down CPDrawScrollButtons.
19941 2006-06-30 Jackson Harper <jackson@ximian.com>
19943 * InternalWindowManager.cs: Remove some debug code.
19944 * Form.cs: When an MdiParent is set to null, the window is
19945 "detatched" and becomes a normal window.
19946 * MdiClient.cs: Don't bring the new child form to the front until
19947 it is activated (setting it as active does this), this makes the
19948 previously active forms titlebar get redrawn as inactive.
19950 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
19952 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19953 with later controls
19955 2006-06-29 Mike Kestner <mkestner@novell.com>
19957 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19958 arrow in keynav state. Fixes #78682.
19960 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19962 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
19963 order (fixes #78393)
19965 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
19967 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
19968 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19969 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19970 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19971 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19972 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
19973 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19974 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19975 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19976 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19977 enumerations (FlagsAttribute, SerializableAttribute, added/removed
19980 2006-06-28 Mike Kestner <mkestner@novell.com>
19982 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
19984 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19987 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
19988 item lines from other area (It also makes BackColor consistent and
19989 compatible with .NET). Fixed bug #78564.
19991 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
19993 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
19994 Patch from Eno for #78555.
19996 2006-06-27 Chris Toshok <toshok@ximian.com>
19998 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20000 * DataGridColumnStyle.cs: same.
20002 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20004 * DataGridDrawingLogic.cs: nuke.
20006 2006-06-27 Chris Toshok <toshok@ximian.com>
20008 * DataGridTableStyle.cs: clean up the constructors, and build the
20009 list of child relations for this table. I have no idea if this is
20010 where we should be doing it (it probably isn't), but since we're
20011 already iterating over the properties..
20013 * DataGrid.cs: add row resizing. for now we add a DataGridRow
20014 struct and array for keeping track of row information, similar to
20015 what's shown in a hack on
20016 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20018 * Theme.cs: be consistent about the naming of DataGrid methods,
20019 prefering ColumnWidths and RowHeights over columnsWidths and
20022 * ThemeWin32Classic.cs: same, and also add support for variable
20023 sized rows (and the +/- expansion icons for related rows).
20025 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20027 * TextBoxBase.cs: Applied Eno's patch from #78660
20029 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20031 * Form.cs (ScaleCore): We don't want to scale our form if it's
20032 state is minimized or maximized, but we still need to scale our
20033 child windows. Also, added try/finally block to ensure layout
20034 gets reset (Fixes #78697)
20036 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20038 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
20040 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20042 * Form.cs: Fixed c+p error and added check to resize form if minimum
20043 size is bigger than current size (Fixes #78709)
20045 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
20047 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
20049 2006-06-26 Mike Kestner <mkestner@novell.com>
20051 * ComboBox.cs: only do Keypress handling in the combo when there
20052 are items in the collection. Fixes #78710.
20054 2006-06-26 Chris Toshok <toshok@ximian.com>
20056 * Binding.cs: make this work bi-directionally. also, clear up
20057 other mixups between Push/Pull Data (e.g. we're supposed to pull
20058 data when validating).
20060 * BindingManagerBase.cs: trim some fully qualified collection
20063 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
20065 2006-06-23 Chris Toshok <toshok@ximian.com>
20067 * PropertyManager.cs: It appears (according to the unit tests)
20068 that PropertyManager doesn't use
20069 PropertyDescriptor.AddValueChanged to track propery value changes
20070 in its datasource, but uses the same scheme as Binding, where it
20071 looks for a <Property>Changed event and binds to it.
20073 Also, according to the docs, IsSuspended always returns false for
20074 a property manager with a non-null datasource.
20076 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
20078 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
20079 need to update the actual DialogResult. (Fixes #78613)
20081 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
20083 * Form.cs (ShowDialog): Release any captures before running the
20084 new message pump (fixes #78680)
20086 2006-06-22 Mike Kestner <mkestner@novell.com>
20088 * ListView.cs: Layout column widths properly in details mode even
20089 if HeaderStyle.None is set. Fixes #78691.
20091 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
20093 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
20095 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
20097 * Control.cs (ContainsFocus): Using new driver method to get focused
20098 window, instead of trying to use internal tracking var, which can
20099 recursion issues (Fixes #78685)
20100 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
20101 XplatUIWin32.cs: Added GetFocus method to return focused window
20103 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20105 * ColorDialog.cs: when the mouse button is pressed inside the color
20106 matrix, don't let the cursor move out of it until the button is
20107 released, which is the behavior on windows. Changed 'colours' by
20108 'colors' to use the same word consistently.
20110 2006-06-21 Chris Toshok <toshok@ximian.com>
20112 * DataGrid.cs: add in some basic navigation stuff (navigating to a
20113 child relation and back, using a stack). Also, remove
20114 GetDataSource and the code that calls it - it's not needed. Also,
20115 track CurrencyManager.ListName's removal.
20117 2006-06-21 Chris Toshok <toshok@ximian.com>
20119 * CurrencyManager.cs: push some of the original type checking from
20120 BindingContext.CreateBindingManager to here, and remove some of
20121 the finalType stuff. Need more tests to make sure I've got the
20122 ListName part right, and we might need more in SetDataSource.
20124 * PropertyManager.cs: add a ctor that takes just the datasource,
20125 and no property name. Make SetDataSource work with a null
20126 property_name, and make Current return the data_source if the
20127 property descriptor is null. this makes 'string foo = "hi";
20128 BindingContext[foo].Current' return "hi" as it should.
20130 * RelatedCurrencyManager.cs: make this code more generic - there's
20131 no reason the parent manager has to be CurrencyManager, and
20132 there's no reason to pass the DataRelation. It suffices to use a
20133 BindingManagerBase and PropetyDescriptor.
20135 * RelatedPropertyManager.cs: make a similar change here.
20137 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
20138 flower I knew it could be.
20140 2006-06-20 Chris Toshok <toshok@ximian.com>
20142 * PropertyManager.cs: the PropertyChangedHandler is invoked when
20143 data in the source has changed and we need to update the control,
20144 so s/PullData/PushData.
20146 * CurrencyManager.cs: Refresh is meant to update the control from
20147 data in the datasource. So, s/PullData/PushData.
20149 * BindingContext.cs: add more ugliness (we weren't handling the
20150 case where data_source = DataTable and data_member = column_name).
20152 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
20153 from the perspective of the datasource. PullData pulls from the
20154 control, PushData pushes to the control.
20156 2006-06-20 Chris Toshok <toshok@ximian.com>
20158 * BindingContext.cs: rewrite the CreateBindingManager code to
20159 handle navigation paths more or less properly. This could
20160 definitely stand some more work, in particular to push the
20161 recursion up to the toplevel. But that relies on fixes in other
20162 places (System.Data comes to mind).
20164 Also, move to a flat hashtable (and encode the twolevel nature of
20165 the dictionary into the hash key). This lets us implement the
20166 IEnumerable.GetEnumerator method.
20168 * RelatedCurrencyManager.cs: new class. Update our view based on
20169 our relation and our parent CurrencyManager's position.
20171 * CurrencyManager.cs: split out some logic from the ctor into
20172 SetView, so it can be called from the new RelatedCurrencyManager
20175 * RelatedPropertyManager.cs: new class. Update our datasource
20176 based on the position of our parent CurrencyManager.
20178 * PropertyManager.cs: split out some logic from the ctor into
20179 SetDataSource, so it can be called from the new RelatedDataSource
20180 subclass. Also, make the Current getter return the value
20181 of the PropertyDescriptor, not the data_source.
20183 * Binding.cs: no need to duplicate the string splitting code here.
20185 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
20188 - set_Enabled: OnEnabledChanged is not called if the inherited state
20189 of the control is not altered, even though we might be changing the
20190 internal state of the control (#78458)
20191 - set_Enabled: (Re)Moved the enabling/disabling of the window to
20192 OnEnabledChanged, to allow easy altering of any child window state
20193 - OnEnabledChanged: Added code to enable/disable driver window state
20194 - OnParentEnabledChanged: Instead of firing the event, call
20195 OnEnabledChanged, which will fire the event and also a) set driver
20196 window state and pass the enabled state to any grandchildren (#78458)
20198 2006-06-19 Jackson Harper <jackson@ximian.com>
20200 * InternalWindowManager.cs: We don't set the cursor explicitly
20201 thats done via the response to NCHITTESTs.
20202 - Don't need to adjust for titlebar heights anymore, the
20203 coordinates are coming in the correct coordinates now (see peters
20207 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
20209 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
20210 being translated relative to whole window, instead of client window.
20211 That caused broken offsets on mouseclick (and caused gas for our
20212 InternalWindowManager)
20214 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
20217 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
20218 - Undo(): Added replay of cursor move on DeleteChars action; added
20219 calling Undo() again if a recorded cursor move is invalid (to
20220 ensure that some action is performed on Undo)
20221 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
20223 2006-06-16 Jackson Harper <jackson@ximian.com>
20225 * MdiClient.cs: Instead of just sizing maximized windows when
20226 there is a resize we also have to adjust the Y of minimized
20227 windows, so they stay pinned to the bottom of the mdi container.
20228 - Eliminate separate tracking of the active control, we can just
20229 get this from the controls collection.
20230 - Paint the decorations for the newly activated titlebar so we get
20232 * InternalWindowManager.cs:
20233 * ThemeWin32Classic.cs: Minimized windows get all three buttons
20234 even if they are a tool window.
20236 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
20238 * TextControl.cs (Undo): Handle non-existent cursor locations in the
20239 undo buffer, these can happen when text was deleted and the cursor
20240 was recorded first. Since we will also have a recorded cursor
20241 after the delete this is not an issue. (Fixes #78651)
20243 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
20245 * AccessibleObject.cs: Remove dependence on Control.is_selected;
20246 instead properly track control states internally (allows us to
20247 remove is_selected from Control)
20249 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20251 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
20252 whose width is not a multiple of 8.
20254 2006-06-13 Jackson Harper <jackson@ximian.com>
20256 * MdiClient.cs: Only maximize the next child if the current one
20259 2006-06-13 Chris Toshok <toshok@ximian.com>
20261 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
20262 modified. Also, guard against grid or grid_drawing being null in
20265 * DataGrid.cs: Reformat tons of getters/setters. In the
20266 DataMember setter, just call SetNewDataSource instead of
20267 duplicating some of its functionality. In SetNewDataSource, don't
20268 check ListManager for null, since the property getter creates the
20271 * DataGridTableStyle.cs: don't set TableStyle or call
20272 SetDataGridInternal on the column here, it's done in
20273 GridColumnStylesCollection.Add.
20275 * GridColumnStylesCollection.cs: fix all the explicit interface
20276 implementations to just call our methods. Nuke AddInternal() and
20277 move the body of it to Add(). Also, add a call to
20278 column.SetDataGridInternal to Add().
20280 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
20281 base()+duplicate code. Also, use the Format property instead of
20282 format to generate an Invalidate ala MS. Lastly, create the
20283 textbox here, unconditionally.
20284 (set_Format): call Invalidate.
20285 (get_TextBox): no need to call EnsureTextBox.
20286 (Commit): remove the message box.
20287 (Edit) remove the call to EnsureTextBox.
20288 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
20289 (EnterNullValue): no need to check textbox for null.
20290 (HideEditBox): no need to check textbox for null.
20291 (SetDataGridInColumn): add the textbox to the grid's controls.
20292 (EnsureTextBox): nuke.
20294 2006-06-13 Jackson Harper <jackson@ximian.com>
20296 * MdiWindowManager.cs: Hook up to the maximized menus paint event
20297 and redraw the buttons when needed. Unhook when the window is
20299 * MainMenu.cs: Add an internal Paint event, the mdi window manager
20300 needs this so that it can redraw its buttons when the menu is
20302 * InternalWindowManager.cs:
20303 * Form.cs: The method order has changed for DrawMaximizedButtons,
20304 so that it can be a PaintEventHandler.
20306 2006-06-13 Jackson Harper <jackson@ximian.com>
20308 * MdiClient.cs: When we close a maximized mdi window, the next mdi
20309 window is activated and maximized, even if it wasn't before.
20310 - When a new window is activated repaint the decorations of the
20311 old one, so that it no longer has the Active "look" (the blue
20313 * InternalWindowManager.cs: Open up CreateButtons to base classes
20314 so they can recreate the buttons on state changes.
20315 - If a window is maximized give it all three buttons
20316 * MdiWindowManager.cs: Create the titlebar buttons when the state
20317 is changed, this is needed because a toolwindow will not have all
20318 three buttons until it is maximized.
20320 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
20322 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
20325 2006-06-12 Jackson Harper <jackson@ximian.com>
20327 * KeysConverter.cs: Make sure we handle the Ctrl special case
20328 if its the only key.
20330 2006-06-12 Jackson Harper <jackson@ximian.com>
20332 * Theme.cs: Add a method to get the size of a managed window
20334 * InternalWindowManager.cs: Remove the ButtonSize property, this
20335 should be retrieved from the theme.
20336 * MdiWindowManager.cs: Get the button size from the theme
20337 * ThemeWin32Classic.cs: Make the method to get the managed window
20338 titlebar button size public.
20339 - Handle the different button sizes of maximized toolwindows
20340 (should match any maximized window).
20341 - Get the titlebar height from the theme, not the WM (which gets
20342 it from the theme).
20344 2006-06-12 Jackson Harper <jackson@ximian.com>
20346 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
20347 event down to the mdi window manager.
20348 - Expose some extra stuff to base classes
20349 - Make sure to end the Capture on an NC Mouse up, so that we can
20350 get double clicks properly, and the sizing doens't stick.
20351 - When doing PointToClient contain it in the workable desktop
20352 area, this prevents windows from changing size when the cursor is
20353 pulled outside of the working area while sizing.
20354 * MdiWindowManager.cs: When we get a double click maximize the
20356 - Reset the cursor after handling mode changes.
20358 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
20360 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
20361 current desktop, instead of just assuming a 0, 0 origin. This
20362 is needed for our internal window manager, to know the top
20363 margin of the desktop
20365 2006-06-12 Chris Toshok <toshok@ximian.com>
20367 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
20368 we need this to get rid of the selected background in the bool
20370 (CancelEditing): move the ConcedeFocus call to above the Abort
20371 call. Also, set is_changing to false and invalidate the row
20372 header if we were changing before.
20373 (ProcessKeyPreviewInternal): remove, since noone outside this
20374 class calls it anymore. Roll the code into ProcessKeyPreview.
20375 (EndEdit): remove the internal version.
20376 (InvalidateCurrentRowHeader): make private.
20378 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
20379 Keys.Escape handling (and with it the last call to
20380 DataGrid.EndEdit from outside the class.)
20383 2006-06-12 Chris Toshok <toshok@ximian.com>
20385 * DataGridTextBox.cs (.ctor): isedit defaults to false.
20386 (OnKeyPress): set isedit to true.
20387 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
20388 already handled by the grid.
20390 * DataGrid.cs (set_CurrentCell): more work here. it's still not
20392 (set_DataSource): SetDataSource always returns true, so stop
20393 putting it in an if statement.
20394 (EndEdit): get rid of some {}'s
20395 (ProcessGridKey): return true in case Keys.Escape.
20396 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
20397 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
20398 PositionChanged, stopped connecting to CurrentChanged.
20399 (GetDataSource): simplify this a bunch.
20400 (SetDataSource): change return type from bool to void.
20401 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
20402 to this, and make sure we don't set ListManager.Position inside
20404 (OnListManagerItemChanged): if we're passed an actual index,
20407 * CurrencyManager.cs (set_Position): don't call PullData here.
20409 2006-06-09 Jackson Harper <jackson@ximian.com>
20411 * TreeNode.cs: Recalculate the visible order before doing the
20412 Expand/Collapse Below calls, because those calls generate an
20414 - Reduce calls to the TreeView property, which is mildly expensive
20415 by using a local var.
20416 * Form.cs: Layout the MDI child windows when creating the parent
20418 - Don't use the internal constructor anymore
20419 * MdiClient.cs: use the parent form width/height (if available)
20420 when laying out the child windows, we do this because the
20421 mdiclient isn't docked yet when the initial layout is done.
20422 - Don't need an internal constructor anymore.
20424 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20426 * FileDialog.cs: handle access errors when trying to create a folder
20427 or changing to a directory. No need to initialize out parameters.
20429 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20431 * FileDialog.cs: Append a number when creating a new folder if the
20432 folder already exists (use parenthesis instead of square brackets)
20434 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20437 - Disabled registry support for windows and added better registry
20438 error checking for other systems (need to investigate why it
20439 works perfectly on my system)
20440 - If a folder already exist show an error MessageBox instead of
20441 trying to create an indexed name.
20442 - Fixed a non intentional typo.
20444 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20446 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
20448 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20450 * FileDialog.cs: When creating a new folder don't crash if the
20451 folder already exists.
20453 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20455 * FileDialog.cs: Allmost a complete rewrite.
20456 - added a "virtual" file system that handles the differences
20457 between unix and windows file systems (especially the directory
20458 structure). Moved most of the directory and file handling code
20460 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
20461 UnixFileSystem and FSEntry.
20462 - Recently used folder/directory, size, location and used file names
20463 (file name ComboBox) are now stored in the registry and get read
20464 before the dialog shows up (fixes part 6 of bug #78446).
20465 - Creation of new folders/directories is now possible (context menu
20466 or ToolBar). Added TextEntryDialog for this that fills in the gap
20467 until ListView.LabelEdit works.
20468 - Fixed cursor handling (bug #78527) and focus handling for
20470 - Various "Search in" ComboBox enhancements. The content of the
20471 dropdown listbox now almost matches ms.
20472 - Changed the behaviour when the user switches to SpecialFolder
20473 Recent to show the ListView in View.Details.
20474 - Beside using the ToolBar to change the View property of the
20475 file ListView it is now possible to use the context menu too.
20477 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20479 * ComboBox.cs: Don't create a new ObjectCollection when an item
20480 gets inserted. Just insert the item in the existing object_items
20483 2006-06-08 Jackson Harper <jackson@ximian.com>
20485 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
20486 that the treeview and root node checks are done also, this fixes a
20487 regression i caused in the unit tests.
20489 2006-06-07 Wade Berrier <wberrier@novell.com>
20491 * RichTextBox.cs: More ISO8859-1 -> unicode
20493 2006-06-07 Mike Kestner <mkestner@novell.com>
20495 * ComboBox.cs : use items to hold highlight/selection so that
20496 collection insertions don't require synchronization.
20498 2006-06-07 Jackson Harper <jackson@ximian.com>
20500 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
20501 routine. We now always keep the sized edge at the cursor instead
20502 of computing movement and adjusting rects. There is one buglet
20503 with this method though when the cursor is moved over area that
20504 the window can not expand too (such as the toolbars on the desktop).
20506 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20508 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
20509 here. Fixes crash on startup in AlbumSurfer.
20511 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
20513 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
20516 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20518 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
20519 statement to avoid calling XNextEvent which will block if another thread
20520 took the event that we were expecting. Fixes bug #78605.
20522 2006-06-07 Mike Kestner <mkestner@novell.com>
20524 * ListView.cs : isolated checkbox clicking from the selection logic.
20525 Toggle check state on item doubleclicks. Really fixes #78454 part2.
20527 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20529 * Form.cs: Check that the value passed to Form.DialogResult
20530 is a valid enum value.
20532 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20534 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
20535 Computer'. Clicking it in the network view goes to 'My Computer'.
20536 Added CIFS filesystem type. Display the mount point of filesystems.
20537 Avoid duplicate mount points (happens for me with CIFS);
20539 2006-06-06 Jackson Harper <jackson@ximian.com>
20541 * InternalWindowManager.cs: Draw the maximized windows buttons
20544 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20546 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
20547 all other dialogs. Fixes bug #78585.
20549 2006-06-06 Mike Kestner <mkestner@novell.com>
20551 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
20552 Only invalidate checkbox on checkstate changes to avoid flicker.
20553 * ListBox.cs : avoid unselect/select when clicking selected item.
20554 avoid reselection flicker for already multiselected items.
20557 2006-06-06 Jackson Harper <jackson@ximian.com>
20559 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
20560 the parent form so that the menu is removed if needed.
20562 2006-06-06 Mike Kestner <mkestner@novell.com>
20564 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
20565 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
20567 2006-06-06 Mike Kestner <mkestner@novell.com>
20569 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
20572 2006-06-06 Jackson Harper <jackson@ximian.com>
20574 * Control.cs: Use the property (instead of the field) to get the
20575 default cursor so it is instantiated correctly.
20576 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
20577 resizes so we need to manually repaint the window decorations here.
20578 - Set the titlebar button locations as soon as they are created,
20579 otherwise they are not set correctly on win32.
20581 2006-06-06 Chris Toshok <toshok@ximian.com>
20583 * CurrencyManager.cs (set_Position): call PullData before
20585 (AddNew): after calling IBindingList.AddNew, update our
20586 listposition, and call OnCurrentChanged/OnPositionChanged (without
20588 (OnCurrentChanged): remove the call to PullData from here.
20589 (OnItemChanged): remove the call to PushData from here.
20590 (OnPositionChanged): change the test from == null to != null to
20591 match the other methods.
20592 (ListChangedHandler): the grossest part of the patch. Implement
20593 this such that it passes the unit tests in CurrencyManagerTest and
20594 the output more or less matches that of MS's implementation.
20596 2006-06-06 Mike Kestner <mkestner@novell.com>
20598 * ListView.cs : only update check state on single click.
20599 * ThemeWin32Classic.cs : fix focus drawing for details view without
20600 fullrowselect. Fixes #78454.
20601 * XplatUIX11.cs : fix for double click emission.
20603 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
20605 * PropertyGridView.cs : Applied Atsushi's patch to fix
20606 font dialog bug (#78197).
20608 2006-06-05 Jackson Harper <jackson@ximian.com>
20610 * TreeNode.cs: Compute the next node for expanding/collapsing
20611 correctly. We now factor in nodes without a NextNode
20612 correctly. (Fixes somes cases in nunit-gui).
20613 * InternalWindowManager.cs: Set the bounds when updating the
20614 virtual position of a tool window.
20616 2006-06-05 Chris Toshok <toshok@ximian.com>
20618 * DataGrid.cs: rename cached_currencymgr to list_manager.
20619 (set_CurrentCell): move SetCurrentCell code here, and clean it up
20621 (CurrentRow, CurrentColumn): single accessors so we can make the
20622 cursor movement code a lot easier to understand.
20623 (CurrentRowIndex): implement this in terms of CurrentRow.
20624 (BeginEdit): clean this up a bit.
20625 (CancelEditing): sort out the is_editing/is_changing/is_adding
20627 (EndEdit): minor changes.
20628 (OnKeyDown): add a comment about a (most likely) unnecessary
20630 (OnMouseDown): cancel editing when we click on a row header. And
20631 use the CurrentRow setter, not CurrentCell.
20632 (ProcessDialogKey): directly call ProcessGridKey.
20633 (UpdateSelectionAfterCursorMove): factor out this common block of
20634 code (it's used everywhere that we move the cursor by updating row
20636 (ProcessGridKey): pretty substantial overhaul. Use the
20637 CurrentRow/CurrentColumn properties to make the code a lot more
20638 readable. Only use the CurrentCell property when we have to
20639 modify both row and column at once. Tab behavior is still broken,
20640 and Delete is untested.
20641 (Select): if we have no selected rows, set selection_start to
20643 (EditCurrentCell): rename EditCell this. It was only ever invoked
20644 with CurrentCell as the arg, so drop the arg and rename it.
20646 * DataGridColumnStyle.cs: clean up the constructors a little, and
20647 drop CommonConstructor().
20649 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
20650 actually get notified when the user hits it.
20651 (ProcessKeyMessage): *substantially* simplify this method.
20652 There's no reason (that I can see) for the textbox to be making
20653 calls into the datagrid at all. Remove all of them but the ones
20654 for Enter handling. those will take some more work.
20656 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
20657 calling HideEditBox.
20658 (HideEditBox): if we have an active textbox, render it invisible
20659 without causing a re-layout of the datagrid.
20661 2006-06-05 Mike Kestner <mkestner@novell.com>
20663 * ListView.cs : fix NRE crasher when focuseditem is cleared by
20664 collection changes by resetting it to Items[0]. Fixes #78587.
20666 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20668 * MessageBox.cs: if the height of the text is larger than the icon_size,
20669 use that. Fixes bug #78575.
20671 2006-06-05 Jackson Harper <jackson@ximian.com>
20673 * TreeView.cs: Fix line drawing when scrolling. To do this each
20674 node is basically responsible for drawing its entire horizontal
20675 area. When drawing a node it draws its parent node lines if
20677 - Adjust the clip area to the viewport rectangle
20678 - Fix Left/Right key handling to match MS. (It expand/collapses
20679 and moves to parents/first child but does not move selection to
20681 - Fix SetTop to work with new bound calculation code
20682 - When scrollbars are no longer needed we need to reset scrolling
20683 vars and recalculate the visible order so the redraw is correct
20684 * TreeNode.cs: We can't expand/collapse nodes with no children.
20686 2006-06-03 John Luke <john.luke@gmail.com>
20688 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
20689 so the colors work without dev packages
20691 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
20694 - Select: Implemented to just use activate. Seems to match MS
20695 behaviour closest. Documented to only do actual control walking
20696 based on it's parameters if in a container control so I moved
20698 - Removed selection check logic from our internal Select() method
20699 * ContainerControl.cs:
20700 - Select: Moved selection logic from Control here, since MS documents
20701 that containers obey the bool arguments. No longer calling base
20703 2006-06-02 Jackson Harper <jackson@ximian.com>
20705 * TreeView.cs: If the selected node isn't changed when we get
20706 focus update the previously selected node so that we see the
20709 2006-06-02 Mike Kestner <mkestner@novell.com>
20711 * ComboBox.cs: restructure grab and general mouse event handling.
20712 Make the composite control raise mouse events like it was a single
20713 control for leaves/enters/motion/up/down events. fix dropdown list
20714 coordinate mangling and refactor it into the scrollbar subclass to
20715 reduce code duplication. Fixes #78282 #78361 and #78457.
20717 2006-06-02 Mike Kestner <mkestner@novell.com>
20719 * ScrollBar.cs: remove Capture setting/clearing, as it happens
20720 automatically in the Control.WndProc.
20722 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20724 * FileDialog.cs: fix crash when running SharpChess, which sets the
20725 FilterIndex to 2 with only one Filter.
20727 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20729 * ToolBar.cs: add SizeSpecified property.
20730 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
20731 try to figure out our real size, otherwise fallback to what the
20734 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20736 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
20737 * Control.cs (WndProc): MS always calls the DefWndProc to pass
20740 2006-06-01 Mike Kestner <mkestner@novell.com>
20742 * ListView.cs: revamp the focus management in ListView. It still
20743 causes churn of LostFocus/GotFocus emissions on clicks, but it's
20744 better than not handling focus at all. Will revisit when pdb feels
20745 the general focus handling is solid. Fixes #78526.
20747 2006-06-01 Jackson Harper <jackson@ximian.com>
20749 * TreeView.cs: Set the default border style in the constructor.
20750 - Move painting to use OnPaintInternal instead of capturing
20751 WM_PAINT, this is the correct way of doing things
20752 - UpdateBelow shouldn't invalidate the scrollbar area
20753 - Cap the top on update below in case the node was above the top
20754 of the viewport rectangle.
20755 - ExpandBelow and Collapse below need to obey Begin/End Update.
20756 * TreeNode.cs: Make is_expanded internal so the treenode
20757 collection can change it without firing the whole event chain.
20758 * TreeNodeCollection.cs: When clearing all the child nodes make
20759 sure to recalc the visible order.
20760 - Improve algo for remove the top node
20762 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20764 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
20765 SendMessage directly calling window procedures, which in turn might
20768 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20770 * Control.cs: Don't handle WM_SETFOCUS if the same window already
20771 has focus (works around X11 sending a FocusIn after our SetFocus)
20772 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
20774 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
20776 * Mime.cs: Fix for the NET_2_0 build.
20777 NameValueCollection needs StringComparer now.
20779 2006-05-31 Chris Toshok <toshok@ximian.com>
20781 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
20782 return (via an out parameter) the starting X of the column.
20783 (UpdateVisibleColumn): track change to FromPixelToColumn.
20784 (HitTest): add a ColumnResize case here.
20785 (DrawResizeLine): new function, probably poorly named.
20787 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
20788 only need to keep one reference.
20789 (set_ListManager): same.
20790 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
20791 Also, add support for HitTestType.ColumnResize.
20792 (OnMouseMove): add column resize behavior here, and change the
20793 cursor to the correct one as we move around the datagrid.
20794 (OnMouseUp): terminate the column resize if we're resizing.
20795 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
20796 for the current cell.
20797 (ConnectListManagerEvents): use cached_currencymgr.
20798 (DisconnectListManagerEvents): fill this in, using
20799 cached_currencymgr.
20800 (SetCurrentCell): remove cached_currencymgr_events handling.
20801 (SetDataMember): only call DisconnectListManagerEvents if
20802 cached_currencymgr is != null.
20803 (SetDataSource): same.
20804 (OnListManagerCurrentChanged): cached_currencymgr_events ->
20805 cached_currencymgr.
20807 2006-05-31 Jackson Harper <jackson@ximian.com>
20809 * BindingManagerBase.cs: Remove somedebug code that creeped into
20811 * TreeNode.cs: We get the indent level dynamically right now, so
20812 don't track it as a member.
20813 * TreeNodeCollection.cs: Make sure all nodes added to the list
20814 have parents, treeviews/topnodes setup properly.
20815 - Don't attempt to track indent level.
20817 2006-05-30 Jackson Harper <jackson@ximian.com>
20819 * BindingContext.cs: Create the currency manager tables here.
20820 This allows us to more easily create null tables (when bad data
20821 members are used), and more easily create related currency
20823 * CurrencyManager.cs: All the table creation stuff is done by the
20824 binding context now.
20825 - Current should throw an exception if listposition is -1.
20826 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
20829 2006-05-30 Mike Kestner <mkestner@novell.com>
20831 * ListView.cs: allow reexpansion of zero-width column headers.
20834 2006-05-28 Chris Toshok <toshok@ximian.com>
20836 * CurrencyManager.cs (get_Current): after the late binding
20837 listposition = -1 fix, we need to guard against it here and return
20838 null, otherwise we raise an exception (which is swallowed
20839 elsewhere, and breaks datagrid databinding.)
20841 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20843 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
20844 than WM_SYSKEY, don't throw if get something unexpected (#78507)
20846 2006-05-26 Jackson Harper <jackson@ximian.com>
20849 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20850 values, it's faster and it's all we care about (we don't care if
20851 the names aren't equal).
20852 * KeyboardLayouts.cs: Eliminate some dead code.
20854 * X11Keyboard.cs: Lazy init keyboard detection.
20855 - Cleanup access modifiers a little.
20857 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20859 * XplatUIX11.cs: Once again, attempting to get layout just right.
20861 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20863 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20864 the sizes of each link section, that will result in sizes that
20865 match DrawString's layout (Fixes #78391)
20867 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
20869 * FileDialog.cs: If AddExtension property is true autocomplete the
20870 extensions in SaveFileDialog correctly. Fixes bug #78453.
20871 Set MyNetwork and MyComputer to "C:\" for windows. This should
20872 fix part 8 of bug #78446 for now.
20874 2006-05-26 Chris Toshok <toshok@ximian.com>
20876 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
20877 invalidate the current row header if we need to, but presumably
20878 we'll invalidate the row corrsponding to the bounds or
20880 (GridHScrolled): switch back to this method, as it's part of the
20881 public api. *sigh*.
20882 (GridVScrolled): same.
20883 (OnMouseWheel): hack up something that more or less works. Call
20884 GridHScrolled/GridVScrolled directly, instead of duplicating much
20885 of their code here.
20886 (EnsureCellVisibility): reinstate a bunch of this code, since we
20887 can't just set the scrollbar Value and expect to do all the work
20888 in the ValueChanged handler. Also, Call Update() after scrolling
20889 in one direction so the other XplatX11.ScrollWindow call has the
20890 proper stuff in the proper places.
20891 (EditCell): set is_editing to true before calling .Edit.
20893 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20894 don't bother comparing first.
20895 (OnKeyPress): call grid.ColumnStartedEditing before calling
20896 base.OnKeyPress. this will set is_changing and invalidate the row
20897 header if necessary.
20898 (ProcessKeyMessage): for WM_CHAR messages, call
20899 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
20902 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20903 it's done in the DataGrid.
20904 (NextState): call grid.ColumnStartedEditing, which takes care of
20905 invalidating the row header (and setting is_changing).
20907 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20908 here. it's done in the DataGrid.
20910 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20912 * Control.cs: allow changing the cursor when the mouse position is
20913 out of bounds but Capture is set.
20914 * LinkLabel.cs: handle the case when the mouse button is pressed on the
20915 linklabel but released somewhere else.
20917 2006-05-25 Jackson Harper <jackson@ximian.com>
20919 * TreeView.cs: When we get focus if there is no selected node make
20921 - Remove some uneeded setup code from Draw.
20922 * TreeNodeCollection.cs: If the tree doesn't have a top node when
20923 a new node is inserted make the new node the top.
20925 * Timer.cs: Use Utc time so that no local time zone stuff needs to
20926 be used (should be faster).
20928 2006-05-25 Chris Toshok <toshok@ximian.com>
20930 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20931 problem with the last commit.
20933 2006-05-25 Chris Toshok <toshok@ximian.com>
20935 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20936 need the invalidate call here, while scrolling right-to-left via
20937 the left arrow key (i.e. moving the editing cell while scrolling).
20939 * DataGrid.cs (.ctor): remove the initialization of
20940 ctrl_pressed/shift_pressed. We no longer track them using key
20941 up/down handlers, but by using Control.ModifierKeys. Also, switch
20942 to using ValueChanged handlers on the scrollbars instead of
20943 Scrolled event handlers. This simplifies a bunch of the scrolling
20945 (GridHValueChanged): rename from GridHScrolled, and change it to
20946 work with the new event args.
20947 (GridVValueChanged): same.
20948 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20949 (OnMouseWheel): actually scroll the datagrid. Don't change the
20951 (ProcessGridKey): correct all the keyboard navigation stuff I
20952 could find. Ctrl up/down/left/right/home/end work now.
20953 (EnsureCellVisibility): correct method name spelling. Also,
20954 simplify this a touch by not explicitly calling the
20955 ScrollToRow/ScrollToColumnInPixels methods. We just set the
20957 (OnKeyUpDG): no need for this method now.
20959 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20961 * LinkLabel.cs: display the OverrideCursor when hovering the label.
20964 2006-05-25 Chris Toshok <toshok@ximian.com>
20966 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20969 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20971 * Application.cs: Moved setting of is_modal and closing to before
20972 we create the control, to allow the event handlers called as a
20973 result of creation affect closing. Also removed Gonzalo's previous
20974 change to setting DialogResult, the behaviour has been moved to
20977 - ShowDialog(): Removed explicit creation of the form, let RunLoop
20979 - ShowDialog(): If no dialog result is set, we need to return Cancel
20980 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20981 the close is cancelled
20983 2006-05-25 Jackson Harper <jackson@ximian.com>
20985 * StatusBar.cs: We only need to update the sizes of the other
20986 panels when we have auto size contents. Also we are only updating
20987 the contents of the panel, not the borders, so compensate for the
20988 border width (TODO: get this width from the theme somehow).
20989 * TreeView.cs: Scrollable is true by default
20990 - Use invalidate instead of refresh where needed
20991 - Factor the scrollable value into scrollbar updating
20992 - Update the scrollbars if the Scrollable property is altered
20993 - Update the selected node if its ImageIndex is changed
20994 - Handle null nodes in UpdateNode (mainly so we don't have to
20995 check if selected is null when updating it
20996 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
20997 are factored into the visible count
20998 - Use VisibleCount for clarity in the code
20999 - When the font is changed we need to recurse through all the
21000 nodes and invalidate their sizes
21002 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21004 * Application.cs: set the DialogResult to fixed when the main form is
21005 hidden or destroyed while being modal.
21007 2006-05-25 Miguel de Icaza <miguel@novell.com>
21009 * Theme.cs: Use Tangoified messagebox icons.
21011 (GetSizedResourceImage): Also cope with width = 0 and do not
21012 trigger a warning in that case (0 means "give me your icon from
21013 the resouce, no special size needed).
21015 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21017 * Application.cs: Leave runloop if the the main modal form is
21018 hidden (fixes #78484)
21020 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
21022 * BindingContext.cs : reject null datasource in Contains() and
21024 * CurrencyManager.cs : check data_member validity when data_source
21025 is dataset. When it is late binding, the initial position is -1.
21027 2006-05-24 Jackson Harper <jackson@ximian.com>
21029 * TreeNodeCollection.cs: Dont't recalculate the visible order on
21030 inserted nodes that aren't visible. This changes the
21031 max_visible_order which confuses scrollbar settings.
21032 - Use the enumerator to get the prev node instead of duplicating
21034 * TreeView.cs: Use new method for setting scrollbar values
21035 - Don't set the bounds every time the scrollbar is updated
21036 - When updating below the root node use an invalidate instead of a
21037 refresh to prevent the child controls (scrollbars) from being
21038 refreshed. (UpdateBelow still needs to be reworked anyways).
21039 - Reenable SetBottom now that visible orders are set correctly,
21040 added some debug code incase we ever get bad values there again.
21041 - Set the scrollbar max to 2 less then the max value, this
21042 compensates for the max value being one above the node count, and
21043 for scrollbars adding one extra "notch".
21044 - When drawing image nodes if there is an imagelist we draw the
21045 first image in the list if the supplied image index is out of the
21046 image list's bounds.
21048 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21050 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
21051 we receive a size change from the WM (Fixes #78503)
21053 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21055 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
21056 rectangle (Fixes #78501)
21058 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21061 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
21063 - Fixed MouseMove to no longer switch pressed state unless the left
21064 mouse button is pressed. Atsushi provided the original patch (#78485)
21066 2006-05-24 Jackson Harper <jackson@ximian.com>
21068 * ScrollBar.cs: New internal methods that allow us to change a
21069 couple values on the scrollbar (the most common case is maximum
21070 and large change) without getting multiple invalidates.
21072 2006-05-24 Chris Toshok <toshok@ximian.com>
21074 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
21075 (Edit): save off the original state in oldState, and set
21076 grid.is_editing to true.
21077 (OnKeyDown): abort editing if escape is pressed. also, call
21078 NextState if space is pressed.
21079 (OnMouseDown): call NextState.
21080 (NextState): factor out shared code from OnKeyDown and OnMouseDown
21081 here. Also, only invalidate the row header once (on the initial
21082 is_changing switch) to save on redraws.
21084 2006-05-24 Chris Toshok <toshok@ximian.com>
21086 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
21087 if the value in the cell is different than it was before. This
21088 keeps us from triggering a layout when we move around a datarid
21089 with a highlighted cell.
21090 (Edit): suspend layout when creating/positining the text box, and
21091 resume passing false so we don't ever actually re-layout.
21092 (ReleaseHostedControl): same.
21093 (EnsureTextBox): reformat slightly, and set WordWrap to false.
21095 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
21096 control-key sequences should go to the datagrid - remove that
21097 lock. Also, modify the conditions under which we move between
21098 cells when moving the cursor within a cell, and remove the "this"
21099 and "base" from field accesses. We weren't even consistent, given
21100 they all were in the base class.
21102 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
21104 * Binding.cs : (.ctor)
21105 An obvious NRE fix for BindingTest.CtorNullTest().
21107 2006-05-23 Chris Toshok <toshok@ximian.com>
21109 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
21110 them between lines. This fixes some quirks editing cells in the
21113 2006-05-23 Jackson Harper <jackson@ximian.com>
21115 * TreeView.cs: Use begin/end update when doing expand/collapse all
21116 so that we don't get flicker on the scrollbar.
21118 2006-05-23 Jackson Harper <jackson@ximian.com>
21120 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
21121 treenode calculations to be independant of the painting code. To
21122 do this nodes track a visible order which is calculated by the
21124 - Call new methods for expanding/collapsing nodes. These methods
21125 use scrollwindow so we don't have to update everything below the
21127 * TreeView.cs: Refactored drawing and scrolling code. We don't
21128 need to update nodes when drawing anymore or calculate scrollbar
21130 - Added new methods for expanding/collapsing nodes. These methods
21131 use ScrollWindow so as to not have to redraw all the nodes below.
21132 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
21133 we add/remove nodes or sort.
21134 - Handle removing the selected and the top node properly.
21136 2006-05-23 Chris Toshok <toshok@ximian.com>
21138 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
21139 maybe this should actually happen in the datagrid code?
21140 (EndEdit): no need to invalidate anything, given that
21141 ReleaseHostedControl causes the datagrid to relayout, which
21142 invalidates everything anyway.
21144 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
21145 in SetCurrentCell).
21146 (set_SelectionBackColor): call InvalidateSelection instead of
21148 (set_SelectionForeColor): same.
21149 (BeginEdit): Flesh this out a bit.
21150 (CancelEditing): only do any of this if we're editing/adding.
21152 (OnMouseDown): there's no need to cancel editing here, it's done
21154 (SetCurrentCell): only invalidate the current row header if it's a
21155 different row than the new one.
21156 (ShiftSelection): fix this to work like MS does.
21157 (ResetSelection): factor out the invalidation of selected_rows to
21158 InvalidateSelection.
21159 (SetDataSource): cancel any editing that's going on.
21161 * DataGridColumnStyle.cs
21162 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
21163 call the non-interface version.
21165 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
21166 header rectangle with the clip rectangle so we don't redraw the
21167 entire header for just a small area. Gets rid of the last flicker
21168 when horizontally scrolling.
21169 (DataGridPaintRow): same.
21171 2006-05-23 Mike Kestner <mkestner@novell.com>
21173 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
21174 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
21175 poorly placed checkbox on the MS control. Fixes Alex's unfiled
21176 Critical bug report.
21178 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
21180 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
21181 and this fixes #78493
21183 2006-05-23 Miguel de Icaza <miguel@novell.com>
21185 * Theme.cs (GetSizedResourceImage): Scale images if the proper
21188 * FileDialog.cs: Do not change the background for the side bar as
21189 it wont work nicely with the theme, and also reduces the artifacts
21190 in rendering the icons (which I want to fix too).
21192 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
21193 resources, not resgen resources.
21195 (PlatformDefaultHandler): Pull images using the new API.
21197 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
21199 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
21200 a reference to the hwnd and will not remove it unless there are
21201 no pending exposures (fixes #78341)
21202 * XplatUI.cs: Improved debug
21204 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
21206 * MenuAPI.cs : don't handle OnClick event when it was not the left
21207 button. Fixed bug #78487.
21209 2006-05-23 Mike Kestner <mkestner@novell.com>
21211 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
21212 prefer submenus to the top menu for item lookup, to avoid popping down
21215 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
21217 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
21218 Graphics.FillRectangle as the visual results are really bad (even
21219 on win). We now draw perfect arrows (and perfect shadows when the
21220 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
21221 Pen.DashPattern to draw the dots of each line.
21223 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
21225 * FileDialog.cs: Update the filename combobox when navigating through
21226 the ListView with the cursor keys. Fixes part 7 of bug #78446.
21228 2006-05-22 Mike Kestner <mkestner@novell.com>
21230 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
21233 2006-05-22 Mike Kestner <mkestner@novell.com>
21235 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
21236 requests. Fix a misspelled parameter and a copy paste exception error
21239 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
21241 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
21242 to get the same width/height (5/13) on X11 as the default font has on
21243 win32. This means that our DefaultFont emSize is smaller than the
21244 the MS SWF equivalent (even thought the width/height stays the same)
21246 2006-05-20 Jackson Harper <jackson@ximian.com>
21249 * MdiWindowManager.cs:
21250 * InternalWindowManager.cs: Make sure to use the border width from
21253 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
21255 * PrintDialog.cs: Implements printer details
21257 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
21259 * FileDialog.cs: Added focus handling for PopupButtonPanel.
21260 Fixes part 1 and 2 of bug #78446
21262 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
21264 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
21265 instead of sticking to the first ever calculated value
21267 2006-05-19 Mike Kestner <mkestner@novell.com>
21269 * ComboBox.cs: fix mouse motion selection to use MousePosition and
21270 PointToClient, since Capture is set. Fixes #78344.
21272 2006-05-19 Mike Kestner <mkestner@novell.com>
21274 * ListView.cs: match MS behavior in Details view where items are not
21275 drawn if Columns.Count == 0.
21276 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
21277 Use a separate pen to draw the check, since changing the width affects
21278 the box as well. Fixes #78454.
21280 2006-05-18 Miguel de Icaza <miguel@novell.com>
21282 * ListView.cs: ArgumentOutOfRangeException, single versions of the
21283 exception should throw the name of the invalid argument.
21285 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
21286 there are no files listed.
21288 2006-05-18 Jackson Harper <jackson@ximian.com>
21290 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
21293 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21295 * Control.cs: Brought back our old UpdateZOrder method as a private
21296 function and switched our calls from UpdateZOrder to the new one.
21297 This fixes the Paint.Net canvas disappearing bug.
21299 2006-05-18 Jackson Harper <jackson@ximian.com>
21302 * ThemeWin32Classic.cs:
21303 * InternalWindowManager.cs: Move the drawing into the theme,
21304 expose everything the theme should need from the window manager.
21306 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21308 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
21309 from the call to NativeWindow to avoid walking up the parent chain
21310 further than needed (speeds up setting cursors and avoids setting
21311 the wrong cursor if a parent has another cursor defined)
21312 * Cursor.cs: When loading an icon as cursor, MS uses the center of
21313 the icon as hotspot, not what's contained as hotspot in the icon
21314 file. This fixes the perceived drawing offset seen with Paint.Net
21316 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21319 - Store the calculated rectangle in Hwnd object and use it when
21320 setting the client size
21321 - Force Toolwindows to always be type Dock, to ensure they're on top
21323 2006-05-18 Mike Kestner <mkestner@novell.com>
21325 * ComboBox.cs: first pass at ComboBox rework. Layout is more
21326 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
21327 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
21328 Substantial refactoring to remove confusing nested classes. Coding
21329 standard and Get+Set->property refactorings. Shift to index based
21330 highlighting in ComboListBox instead of constantly using IndexOf and
21331 Items[]. Add invalidations on resize for DropDownList to fix ugliness
21332 in FileDialog growth. Draw borders manually since Simple mode needs
21333 to look like two independent controls. Make listbox border
21334 conditional to DropDownStyle. Improved OwnerDraw support.
21336 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
21338 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
21339 Don't set the disposed graphics to null, so we can throw the "right"
21340 exception if the graphics is reused later (added a flag to avoid
21341 double disposing). Some behaviours are different under 2.0 and are
21342 filled under bug #78448.
21344 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21346 * Control.cs: When double-buffering is enabled, we need to reset
21347 our graphics context between paint calls. Otherwise, any
21348 transformations and other alterations on the context will
21349 become cumulative (#77734)
21351 2006-05-18 Mike Kestner <mkestner@novell.com>
21353 * ListView.cs: do focused item selection like MS on clicks.
21354 Rework focus handling for ItemControl so LostFocus invalidates as
21356 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
21357 the ListView ItemControl has focus.
21359 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
21361 * XplatUIX11.cs: If client_window ends up being width or height zero
21362 due to border settings, move it off window inside whole_window (#78433)
21364 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
21366 * Mime.cs: Shrink the mime file cache correctly.
21368 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
21370 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
21372 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21374 * XplatUIX11.cs (AddExpose): More sanity checks
21376 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21379 - AddExpose: Don't add expose ranges outside the size of our
21381 - Cast opacity values to Int32 to avoid crashes with certain
21383 - Added disabled code paths that protect against illegal cross-
21384 thread painting (Developers.exe)
21386 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21388 * ProgressBar.cs: Invalidate the control when it's resized
21389 since block size is based on control size. (#78388)
21391 2006-05-16 Miguel de Icaza <miguel@novell.com>
21393 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
21394 of setting the incoming argument to the "reset" value, we set the
21395 this.datamember to string.empty (before we were invalidating the
21400 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21402 * Form.cs: Only apply transparency settings after the form
21403 is created. (Fixes #77800)
21405 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21407 * ApplicationContext.cs: Grab the HandleDestroyed event so
21408 we know when to fire OnMainFormClosed
21410 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21412 * Application.cs: Introduced sub-class to allow tracking of
21413 threads and centralized triggering of the event mess for
21414 ThreadExit, AppExit, etc.. (#76156)
21416 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
21419 - Do not return a null icon index value for a mime subclass.
21420 Instead try the main mime type class too.
21421 - Seems that some newer distributions don't have a link to some
21422 gnome default icons anymore. So check the default gnome dir too.
21425 2006-05-16 Jackson Harper <jackson@ximian.com>
21427 * MdiClient.cs: Don't paint the parent background image if we have
21428 our own background image.
21430 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21433 - PerformLayout: Do not shrink space filled by DockStyle.Fill
21434 controls, all filled controls are supposed to overlap (#78080)
21435 - UpdateZOrder is supposed to update the control's z-order in the
21436 parent's z-order chain. Fixed to behave like that
21437 - BringToFront: Removed obsolete code
21438 - SendToBack: Simplyfied
21439 - SetChildIndex: Trigger layout calculations when Z-order changes
21440 since layout is done by z-order
21442 2006-05-16 Chris Toshok <toshok@ximian.com>
21444 [ fixes bug #78410 ]
21445 * DataGrid.cs (set_AlternatingBackColor): use
21446 grid_drawing.InvalidateCells instead of Refresh().
21447 (set_BackColor): call grid_drawing.InvalidateCells.
21448 (set_BackgroundColor): use Invalidate instead of Refresh.
21450 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
21451 invalidate the cell area.
21453 2006-05-15 Chris Toshok <toshok@ximian.com>
21455 [ fixes bug #78011 ]
21456 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
21457 on to DataGridPaintRow.
21458 (DataGridPaintRow): take a clip argument, and only draw the cells
21459 which intersect it. same with the not_usedarea.
21461 * Theme.cs (DataGridPaintRow) add @clip parameter.
21463 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
21464 XplatUI.ScrollWindow.
21465 (ScrollToRow): same.
21467 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
21468 with last column which was causing a gray swath to appear with the
21469 XplatUI.ScrollWindow code.
21471 2006-05-15 Chris Toshok <toshok@ximian.com>
21473 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
21474 use XplatUI.ScrollWindow.
21475 (VerticalScrollEvent): use XplatUI.ScrollWindow.
21477 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21479 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
21481 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21483 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
21484 file since there are no equivalent X11 cursors
21486 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21488 * MonthCalendar.cs : DateTimePicker should reflect selected date
21489 on mouse*up*, not mouse*down*. Fixed originally reported part of
21492 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21494 * TabControl.cs : When argument index is equal or more than tab
21495 count, just ignore. Fixed bug #78395.
21497 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21499 * Control.cs: Dispose all child controls when control is diposed (#78394)
21501 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21503 * ColorDialog.cs: Finally it is possible to select the color with
21506 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21508 * PrintDialog.cs: Fix typo
21510 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21512 * PrintDialog.cs: PrintDialog is not resizable
21513 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
21514 color. Made some ToolBar drawing methods protected virtual.
21516 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
21518 * PrintDialog.cs: Implementation of the PrintDialog
21520 2006-05-12 Chris Toshok <toshok@ximian.com>
21522 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
21523 thumb, instead use MoveThumb. This has the side effect of making
21524 most of the other thumb moving machinery use MoveThumb as well.
21525 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
21526 need to actually invalidate the rectangle where the new thumb will
21528 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
21529 We force an Update() after, so it's not as fast as it could be,
21530 but at least there's zero flicker and no droppings.
21531 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
21532 (UpdateThumbPos): add another argument (dirty), which says whether
21533 or not to calculate/add dirty regions which we later invalidate.
21534 For cases where we know we're going to use MoveThumb, we pass
21535 false for this. Otherwise, pass true.
21537 2006-05-12 Jackson Harper <jackson@ximian.com>
21539 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
21542 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
21544 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
21545 and GetClipRegion methods and UserClipWontExposeParent property.
21546 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
21547 overriding UserClipWontExposeParent property, setting to false, since
21548 Win32 handles the required expose messages to draw our clipped parent
21550 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
21551 PaintEventStart to set the user clip region if set.
21553 - Now internally tracking the Region for the control since we need to
21554 store it if the handle is not yet created and only set it when it
21555 becomes created. Before setting the region forced handle creation
21556 - Added code to draw the parents underneath a user-clipped region
21557 * Hwnd.cs: Added UserClip property
21559 2006-05-12 Chris Toshok <toshok@ximian.com>
21561 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
21562 (set_Maximum): same.
21563 (set_Minimum): same.
21564 (set_SmallChange): same.
21565 (OnMouseUpSB): remove the call to refresh when releasing the
21566 thumb. We shouldn't need it.
21568 2006-05-12 Miguel de Icaza <miguel@novell.com>
21570 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
21571 AutoSize set to None, we do not need to relayout everything, we
21572 just need to invalidate the current region.
21574 (Draw): Do not draw the entire ClientArea, just redraw the
21575 clip area being passed.
21577 * MdiClient.cs: Make MdiClient constructor with the Form argument
21580 2006-05-12 Jackson Harper <jackson@ximian.com>
21582 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
21583 parents background image, but strangely not their own.
21584 - (DrawStatusBarPanel): Take into account horizontal alignment
21585 when drawing the strings and icons.
21587 2006-05-12 Mike Kestner <mkestner@novell.com>
21589 * ListBox.cs: avoid invalidations for focus when the collection is
21592 2006-05-12 Chris Toshok <toshok@ximian.com>
21594 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
21595 invalidate the entire thumb area. Call InvalidateDirty which
21596 limits the redraw to the thumb itself and surrounding pixels.
21598 * XplatUIX11.cs (ScrollWindow): optimize copying.
21600 2006-05-12 Chris Toshok <toshok@ximian.com>
21602 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
21603 Figure out the positioning/layout in a single pass instead of
21604 multiple recursive invocations. Speeds up the initial display of
21605 the data grid. Also, make many things private that were
21606 originally public but unused outside this class.
21608 2006-05-11 Jackson Harper <jackson@ximian.com>
21610 * MdiClient.cs: Improved layout code.
21612 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
21614 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
21615 not SelectedObject.
21617 2006-05-11 Chris Toshok <toshok@ximian.com>
21619 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
21620 union of that will always be {0,0,width,height}.
21622 2006-05-11 Jackson Harper <jackson@ximian.com>
21624 * Form.cs: Match MS's DefaultSize for forms (they must have
21625 changed the size in sp2).
21627 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21629 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
21631 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21633 * TextControl.cs : Fixed bug #78109. This incorrect position
21634 comparison caused crash on automatic line split.
21635 * TextBoxBase.cs : reduce duplicate code.
21637 2006-05-10 Jackson Harper <jackson@ximian.com>
21639 * MdiClient.cs: Active form is only sent to the back when using
21640 the Next form functionality, when a form is clicked the current
21641 active shouldn't be sent to the back.
21642 - Layout the mdi windows when the container is first made visible.
21643 * Form.cs: Give the MdiClient a ref to the containing form when we
21646 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21648 * LinkLabel.cs : link_font could be uninitialized, so populate one
21649 before actual use. Fixed bug #78340.
21651 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21653 * XplatUIX11.cs : clipboard format native value is IntPtr.
21656 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21659 - Instead of showing context menus directly we send WM_CONTEXTMENU,
21660 which is passed up the parent chain by DefWndProc
21661 - We now handle WM_CONTEXTMENU to display any menu, or pass it
21662 to DefWndProc (#77956)
21663 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
21665 2006-05-10 Jackson Harper <jackson@ximian.com>
21667 * MdiClient.cs: We need to remove the controls from the mdi
21668 collection, when we close the window.
21669 * MdiWindowManager.cs: Special handling of closing mdi windows.
21670 * InternalWindowManager.cs: Make the close method virtual so the
21671 mdi window manager can handle it specially.
21673 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
21676 - Recalculate grid when the data source has changed
21677 - Matches styles provided by user from all data sources types
21678 * DataGridTableStyle.cs: For columns that provided by the user set the
21679 with the preferred value is there was unassigned.
21680 * CurrencyManager.cs: throw OnItemChanged event
21682 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21684 * PictureBox.cs: Don't animate until handle is created. Start animation
21685 when handle is created.
21687 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21689 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
21691 * XEventQueue.cs: We don't need to provide the extra info
21693 2006-05-10 Jackson Harper <jackson@ximian.com>
21695 * MdiClient.cs: If the mdi clients parent form has a background
21696 image set, we draw that background image for the mdi area's
21699 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21701 * TextBoxBase.cs: Set IBeam cursor (#78347)
21703 2006-05-10 Mike Kestner <mkestner@novell.com>
21705 * ToolBar.cs: fix some text padding issues with ButtonSize
21706 calculation. Update the default size to match MS documentation.
21707 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
21708 button size. Fixes #78296.
21710 2006-05-10 Mike Kestner <mkestner@novell.com>
21712 * ListBox.cs: use is_visible for scrollbar positioning in case the
21713 control isn't on screen yet. Fix off by one with Right vs Width
21714 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
21716 2006-05-10 Jackson Harper <jackson@ximian.com>
21718 * X11Dnd.cs: Drop to a control with another control on top of it.
21719 * ToolBar.cs: Work on a copy of the buttons list, so that it can
21720 be modified in click handlers. TODO: Look for similar problems in
21723 2006-05-09 Jackson Harper <jackson@ximian.com>
21725 * Form.cs: Window managers need the old window state when setting
21727 * InternalWindowManager.cs: Allow the base mdi window manager to
21728 handle more of the MDI only stuff (like maximize buttons).
21729 * MdiWindowManager.cs: Fix some snafus in changing the window
21730 state. Add all the menu functionality, for both popup and
21732 * MdiClient.cs: When a new form is selected the currently
21733 activated form is sent to the back, this matches MS.
21734 - Implement a new method to activate the next mdi child window.
21736 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21739 - Added new InternalCapture method to allow controls to prevent
21740 the capture behaviour on the click handlers
21741 - Switched to use InternalCapture
21743 - Using InternalCapture to prevent mouse captures from being released
21744 on mouse button release (Fixes #78100)
21745 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
21746 returns Form borders if a caption is present. (Fixes #78310)
21748 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21750 * TreeNode.cs: Changed serialization .ctor to not require every field
21751 to be present. (#78265)
21752 * OwnerDrawPropertyBag.cs: Added serialization .ctor
21754 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
21756 * MimeIcon.cs: for is faster than foreach for strings.
21758 2006-05-05 Mike Kestner <mkestner@novell.com>
21760 * CheckedListBox.cs: update check handling code to not use selected.
21761 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
21762 behavior for visual feedback, motion response, shift/ctrl handling,
21763 and properly deal with all 4 selection modes. Updates to bounds
21764 handling logic. Add scroll wheel support. [Fixes #77842]
21766 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21769 - Moved adding of Implicit controls into .ctor. That way, subsequent
21770 creation of the controls will not cause them to think they are
21771 toplevel windows (fixes #78200 header problem)
21772 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
21773 - Switched visibility setting of header control to use internal field
21774 to avoid triggering handle creation
21775 - Now checking if handle is created before causing a refresh when items
21776 are added (This makes us now match handle creation time with MS)
21777 * Splitter.cs: Removed loading of private splitter cursor, switched to
21778 Cursors version now that that is loading the right ones
21779 * Cursors.cs: Load proper splitter cursors from resources
21780 * Cursor.cs: Added second method of loading resource cursors for the
21781 VS.Net users amongst us
21783 2006-05-05 Mike Kestner <mkestner@novell.com>
21785 * ListView.cs: give header_control a minimum size based on the
21788 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21790 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
21791 window seems to do that with metacity, so set that type. (#78120)
21793 2006-05-05 Mike Kestner <mkestner@novell.com>
21795 * ListViewItem.cs: fix Details mode checkbox layout bug.
21796 * ThemeWin32Classic.cs: draw a ListView column header for unused space
21797 at the end of the header, if it exists. [Fixes for #78200]
21799 2006-05-04 Jackson Harper <jackson@ximian.com>
21801 * MdiClient.cs: Add a helper property to get the container form.
21802 * MdiWindowManager.cs: We have to make sure to use the menu origin
21803 when drawing the icons and buttons, this fixes maximized window
21804 icons/buttons on win32.
21805 * InternalWindowManager.cs: Reset the restore captions when a
21806 window goes from Maximized to Minimized and vice versa. Move the
21807 DrawMaximizedButtons into the MdiWindowManager source, tool
21808 windows can't be maximized. NOTE: This could use a little
21809 refactoring if time ever permits.
21811 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21813 * TextBox.cs: Add MWFCategoryAttributes
21814 * TextBoxBase.cs: Add MWFCategoryAttributes
21815 * Form.cs: Add MWFCategoryAttributes
21817 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21819 * Control.cs: Add MWFCategoryAttributes
21820 * ScrollableControl.cs: Add MWFCategoryAttributes
21822 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
21824 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
21825 Divider is true. Fix a little glitch in PropertyToolBar
21828 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
21831 - Dispose: Call base.Dispose, this causes the disposed event
21832 to be fired (and probably other, more important stuff)
21833 - SetVisibleCore: Set is_visible to true after creating the
21834 window so that the window still gets created invisible (if
21835 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
21836 to generate a WM_ACTIVE message
21837 * Form.cs: Call Dispose when we want to destroy the window, instead of
21838 just destroying the handle (Dispose will do that for us)
21840 - RootWindow also needs a queue, so we can properly process the
21841 property change events from RootWindow (like Activate)
21842 - Generatic synthetic WM_ACTIVE message when the active window is
21845 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21847 * LinkLabel.cs: Trigger a recalc of our label dimensions when
21850 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21852 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21853 for determining width and height (image might not be assigned if
21854 we're drawing an imagelist)
21856 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21858 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21859 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21861 * Theme.cs: No longer returns hardcoded menu height, instead calls
21863 * Form.cs (OnLoad): Scaling happens before triggering Load events
21866 2006-05-01 Mike Kestner <mkestner@novell.com>
21868 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
21870 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21872 * TextBoxBase.cs: Removed Fixme
21873 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21875 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21878 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21879 the rectangle relative to the parent, considering borders. We
21880 don't really want that.
21881 - ScrollWindow: Fixed warning to be more understandable
21882 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21883 scrollbars and scroll only the visible area
21884 * RichTextBox.cs: Removed debug output
21886 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21888 * NumericUpDown.cs (Text): Just use base
21889 * UpDownBase.cs: Ensure txtView is created before using it
21891 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21893 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21894 casting to IntPtr to avoid 64bit overflow errors
21896 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21899 - AllowDrop: Don't force handle creation.
21900 - CreateHandle: Added call to tell driver if we're allowed to drop
21902 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21904 * FileDialog.cs: Remember the last directory not only for the
21905 current instance but also for new FileDialog instances.
21907 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21909 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21910 broke sending async messages
21912 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21915 - ScrollWindow: Fixed method. We finally generate expose events again
21916 for scrolled areas. This was causing 'garbage' when scrolling
21917 textbox and other controls that used ScrollWindow
21918 - Switched from using the regular queue for paint events to the MS
21919 model of 'generating' paint events when the queue is empty.
21920 We use the new XQueueEvent.Paint subclass to store which windows
21922 - AddExpose now takes the x/y/width/height of the exposed area
21923 and inserts the window into the paint queue if not already there
21924 - InvalidateWholeWindow: Switched to use new AddExpose method
21925 - UpdateMessageQueue: Added which queue to monitor for paint events
21926 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21927 the unlikely case nothing above handles it. We reset the expose
21928 pending states to get them off the queue.
21929 - GetMessage: Now pulls a paint event if no other events are in the
21931 - Invalidate: Switched to new AddExpose method
21932 - PeekMessage: Updated to understand pending paint events
21933 - UpdateWindow: Fixed logic bug. We were only updating if the window
21934 didn't need updating. Also switched to sending WM_PAINT directly,
21936 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21937 and random access Remove(). The random access is needed to handle
21938 UpdateWindow() where a WM_PAINT is sent directly without accessing
21940 * ScrollBar.cs: Added Update() calls to cause immediate updates to
21941 allow for better feedback when scrolling. Scrollbars are small and
21942 the immediate update should make it 'feel' more responsive without
21943 slowing things down. ScrollBar still needs it's invaliate logic
21944 updated to not always invalidate the whole bar on certain changes.
21946 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21949 (BackColor): if the control does not support a transparent background,
21950 return the default backcolor when the parent backcolor is transparent.
21952 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
21954 * Application.cs: Updated to new StartLoop/GetMessage API
21955 * RichTextBox.cs: Provide some output on RTF parsing errors
21956 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21957 new queue_id argument to GetMessage and PeekMessage to allow faster
21958 handling of per-thread queues in drivers.
21959 * Hwnd.cs: Added Queue tracking and property
21960 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21961 * XEventQueue.cs: Added thread trackingA
21962 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21964 - Implemented new per-thread queue
21965 - GetMessage: Fixed return/break behaviour on several cases. We were
21966 returning stale messages in some cases, instead of just processing
21969 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21971 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21973 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
21975 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21976 fixed off-by-one comparisons between Width/Height and Right/Bottom.
21978 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21980 * PropertyGridView.cs: Fix drop down width.
21982 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21984 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
21985 a mess in DrawToolBar, so I removed one of them.
21987 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21989 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
21990 needed (clip). Otherwise we get artifacts.
21992 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21994 * FixedSizeTextBox.cs: Added constructor to allow specifying which
21996 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
21997 and switched FixedSizeTextBox to only be fixed vertical (#78116)
21998 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
21999 if it matches the scale base font (avoids unneeded scaling)
22001 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22003 * X11DesktopColors.cs: One gtk_init_check should be enough
22005 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22007 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22010 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22013 - Generate OnTextChanged for Backspace even if we're only deleting
22014 the current selection
22015 - When setting the Text property, only select all text if the
22016 control does not have focus when it is being set. Otherwise
22017 just place the cursor at the beginning of the control
22019 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22021 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
22022 Added a little helper to draw PropertyGrid ToolBar with a different
22023 border and a different BackColor.
22024 * PropertyGrid.cs: Some background parts didn't get painted with the
22025 correct background color. Added a class that helps us to draw the
22026 correct border for PropertyGridView and a class that helps us to
22027 draw ToolBars with a different backcolor
22028 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
22030 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
22032 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
22033 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
22035 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22037 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
22038 into the palette entries. Also, since we're working on a copy
22039 we needed to copy the palette back onto the bitmap.
22040 * Cursor.cs: Same fix as XplatUIWin32.cs.
22042 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22044 * ImageListStreamer.cs: Need to read the var (or we're off)
22046 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22048 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
22049 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
22050 TextBoxBase.cs: Unused var fixes
22051 * AxHost.cs: Small 2.0 fix
22052 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
22053 as it seems that is what at least Metacity expects. This will make
22054 icons show up on 64bit platforms. We still have some 64bit size
22055 issues, though, since the startup app window size still won't match.
22057 2006-04-25 Mike Kestner <mkestner@novell.com>
22059 * *.cs: cleanup newly reported exception var unused warnings.
22061 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22063 * ThemeWin32Classic.cs: Button image alignment now matches exactly
22066 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22068 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
22069 image. The image position is always the same, no matter if the
22070 button is pressed or not.
22072 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22074 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
22075 selection and set the correct filename for SaveFileDialog.
22076 Patch by Emery Conrad.
22078 2006-04-24 Mike Kestner <mkestner@novell.com>
22080 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
22081 check for item.X outside the ClientRect instead of item.Y. Fixes
22084 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22086 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
22087 trust that value blindly and do some sanity check. Fixes bug #77814.
22089 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22091 * ImageListStreamer.cs: save the mask as a 1bpp image.
22093 2006-04-21 Mike Kestner <mkestner@novell.com>
22095 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
22096 pass Checked and Indeterminate to the Theme Engine. Improve
22097 encapsulation with ListBox.
22098 * ListBox.cs: Keep a StringFormat instead of calculating it every item
22099 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
22100 nested types. Move all CheckState functionality to CheckedListBox.
22101 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
22102 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
22103 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
22104 single base list. Fix scrollbar sizing and placement to mirror MS.
22105 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
22107 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
22108 for CheckedListBox by using new DrawItemState info. Center the
22109 checkboxes on the items. Use new StringFormat property.
22111 2006-04-18 Jackson Harper <jackson@ximian.com>
22113 * Form.cs: MdiChildren don't do default locations the same way as
22114 regular forms. This prevents a crash when trying to position the
22117 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
22119 * PropertyGridTextBox.cs: Formatting, copyright
22120 * PropertiesTab.cs: Formatting
22121 * PropertyGrid.cs: Formatting
22122 * PropertyGridView.cs: Formatting, fix drop down, enabled double
22123 click toggling of values
22125 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
22127 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
22128 * Control.cs (.ctor): verify_thread_handle is static, don't reset
22129 every time a control is created
22130 * Application.cs: Removed obsolete EnableRTLMirroring method
22132 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
22134 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
22135 SelectedIndex to -1. Fixes bug #78121.
22137 2006-04-17 Jackson Harper <jackson@ximian.com>
22139 * Binding.cs: Handle null values for Current and BindingContext.
22140 This occurs when binding is a little delayed.
22141 * CurrencyManager.cs: return null for Current when there are no
22143 - Hookup to the listchanged event on the DataView and update
22144 bindings when the list is changed. This fixes late binding of
22147 2006-04-17 Jackson Harper <jackson@ximian.com>
22150 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
22153 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
22155 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
22157 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
22158 with the correct ButtonState
22160 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
22162 * XplatUIX11.cs: Improved distinguishing between window types to
22163 tell the WM a type closer to what the app wants (Fixes #78107)
22165 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
22167 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
22170 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
22172 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
22173 drawing code to reflect the size grip changes
22175 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22177 * ImageListStreamer.cs: fix handling of the mask that follows the main
22178 bitmap when deserializing and serialize it properly. The generated mask
22179 should better be a 1bpp image, but I'll do that later.
22181 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
22183 * FileDialog.cs: Show something in the DirComboBox on *nix if the
22184 path doesn't fit into some of our Current.Places
22186 2006-04-13 Jackson Harper <jackson@ximian.com>
22188 * ComboBox.cs: Use borders instead of drawing our own decorations,
22189 try to obey correct rules for heights.
22192 * ThemeClearLooks.cs:
22193 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
22194 this is now handled by borders.
22195 - Remove unused DrawListBoxDecorationSize method.
22197 2006-04-13 Mike Kestner <mkestner@novell.com>
22199 * MenuAPI.cs: null guarding for the disbled click check fixes crash
22202 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
22204 * ThemeWin32Classic.cs:
22205 - Fixed CPDrawStringDisabled
22206 - Corrected drawing of disabled menu items
22207 - Fixed drawing of disabled radio buttons (bug #78095)
22208 - Draw check in a disabled CheckBox with color ControlDark
22210 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22212 * Form.cs: Use the provided width when calculating the menu size;
22213 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
22214 and ClientSize.Width won't be updated yet
22215 * Application.cs: Use Visible instead of Show() to make form visible,
22216 this way we create the handle later and menusize is considered
22218 2006-04-12 Mike Kestner <mkestner@novell.com>
22220 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
22223 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22225 * TextBox.cs: Implemented context menu
22227 2006-04-12 Mike Kestner <mkestner@novell.com>
22229 * ListView.cs: implement box selection. fixes #77838.
22230 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
22232 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22234 * XplatUIX11.cs: Added setting of window type when transient window
22235 is created (metacity would move it otherwise)
22236 * X11Structs.cs: Added WINDOW_TYPE atoms
22237 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
22238 background (the control is Opaque but still wants transparent
22241 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22243 * Control.cs: Added OnPaintBackgroundInternal to allow controls
22244 that set Opaque but don't mean it (like all ButtonBase-derived
22245 controls) to still draw their background
22246 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
22249 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22251 * Control.cs (PaintControlBackground): Set the graphics object
22252 on our PaintEvent to null to prevent it from being disposed
22253 when the PaintEvent gets disposed
22255 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
22257 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
22258 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
22260 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22263 - Added transparency check to BackColor property. Transparent
22264 backgrounds are only allowed if the control styles permit it
22265 - Added recursive painting of parent control background and
22266 foreground if a control with a transparent backcolor is drawn
22267 (Thanks to Tim Ringenback for providing his 'hack' as a base
22268 for this patch) Fixes #77985 and #78026.
22269 - Added Opaque style check before calling OnPaintBackground, no
22270 need to draw the background if the control is opaque
22271 - Removed ControlAccessibleObject owner variable (inherited from
22272 base, no need to define again)
22273 - Added some documentation links explaining the drawing events
22276 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22278 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
22279 that the affected control is the located at the left border of our
22280 parent (Fixes #77936)
22282 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22284 * TextBoxBase.cs: When rendering disabled or readonly controls,
22285 draw the background with 'Control' instead of 'Window' color as
22286 long as the user hasn't specifically set a color
22288 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22290 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
22291 since that won't be updated if the user types text (only if it's
22292 programatically set)
22294 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22296 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
22297 layout changes do to app-triggered resizes will have the proper
22298 display rectangle for layout
22300 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
22302 * ThemeWin32Classic.cs:
22303 - Make use of the SystemBrushes and SystemPens wherever possible
22304 - Corrected some highlight colors
22305 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
22307 * Theme.cs: Added Empty field to CPColor struct
22309 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22311 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
22312 is displayed when calculating the display rectangle. Thanks to Mike
22313 for teaching me the err of my ways.
22315 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
22317 * ScrollableControl.cs:
22318 - Rewrote DisplayRectangle code, now returning the proper x/y coords
22319 (instead of 0,0) and we now return the real width/height instead of
22320 just the clientrectangle, adjusted for padding. The rectangle is
22321 now cached and created by the new CalculateDisplayRectangle method.
22322 - Created new CalculateDisplayRectange method, which basically does
22323 what get_DisplayRectangle() did originally, but now using the
22324 right edge instead of DisplayRectangle to determine the size of
22326 - get_Canvas(): Fixed it to properly calculate canvas for
22327 right/bottom controls which seem to be placed to the right/bottom
22328 of any controls that have a fixed location
22329 - Removed TODO that's taken care of
22330 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
22331 and SetDisplayRectLocation according to new MSDN2 docs
22332 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
22333 event when that is called, this is added for compatibility
22334 - ScrollControlIntoView(): Implemented.
22335 - Switched scrollbars to be implicit, they shouldn't be selectable
22336 * ContainerControl: Now that ScrollControlIntoView is implemented, we
22337 call it when the active control is set/changed
22338 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
22339 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
22340 implicit_control variable (used for native Win32 message generation)
22341 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
22342 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
22343 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
22344 * XplatUIStructs.cs: Added ScrollBarCommands enum
22346 2006-04-10 Jackson Harper <jackson@ximian.com>
22349 * CheckedListBox.cs:
22356 * PrintPreviewControl.cs:
22362 * UpDownBase.cs: Fixup base event overrides.
22364 2006-04-06 Mike Kestner <mkestner@novell.com>
22366 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
22367 all user-initiated value changes to min <= value <= max-thumbsz+1.
22368 (set_Value): check for vert/horiz when calculating new thumb position.
22369 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
22371 (OnMouseMoveSB): refactor the thumb dragging code and refine
22372 invalidation logic to reduce flicker.
22373 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
22374 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
22375 (UpdateThumbPosition): small code readability cleanup
22377 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
22379 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
22382 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
22384 * ThemeNice.cs: Use a better graphics effect when a button is pressed
22386 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
22388 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
22389 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
22390 This dramatically reduces the number of Pen.Dispose calls.
22391 Where possible call ResPool methods only once instead of calling it
22392 over and over again (for example for the same color).
22394 2006-04-06 Mike Kestner <mkestner@novell.com>
22396 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
22397 Also remove an unused private field on the collection. Fixes #77972.
22399 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22401 * ThemeNice.cs: Added ToolBar drawing code
22403 2006-04-06 Mike Kestner <mkestner@novell.com>
22405 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
22406 I'm assuming that means we need to look up the toplevel for the
22407 provided control. Fixes the crash trace in #77911 but exposes another
22408 crash in some strange reflection usage in NDocGui.
22410 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22412 * ThemeNice.cs: Gave it a little silver touch and added Images
22414 * FontDialog.cs: FontDialog is not resizable
22415 * FileDialg.cs: Added SizeGripStyle.Show
22417 2006-04-05 Jackson Harper <jackson@ximian.com>
22419 * KeyboardLayouts.cs: Remove warning.
22421 2006-04-05 Jackson Harper <jackson@ximian.com>
22423 * Control.cs: Enable OnPaintInternal so we can use it for drawing
22424 all of our controls instead of Paint +=.
22439 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
22440 use OnPaintInternal. Remove Width/Height and Visible checks in
22441 paint handler, this is done at a higher level now.
22442 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
22443 * PaintEventArgs.cs: Add a handled flag so controls that don't
22444 want anymore painting after OnPaintInternal can make sure OnPaint
22447 2006-04-05 Mike Kestner <mkestner@novell.com>
22449 * Form.cs: fix the menu WndProc hacks to respect the native enabled
22450 state of the form, so that we don't process events when Modal dialogs
22451 are up. Fixes #77922.
22453 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
22455 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
22458 2006-04-05 Mike Kestner <mkestner@novell.com>
22460 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
22462 2006-04-05 Mike Kestner <mkestner@novell.com>
22464 * ListView.cs (HeaderMouseMove): null guarding for the over column
22465 when setting up the drag_to_index. Fixes #78015.
22467 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22469 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
22470 in the taskbar. Transient windows seem to accomplish that.
22472 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22475 - Re-enabled CreateParams.X/Y code for FormStartPosition
22476 - Added code for manual placement when creating the Control
22477 - Incomplete patch to treat MDI forms differently when
22478 setting the ClientSizeCore. (Still need to figure out handling
22481 - When we're explicitly setting the X/Y position of a non-Child
22482 window, let the WM know. Metacity really wants this.
22484 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22486 * ThemeNice.cs: Added CPDrawButton
22488 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22490 * ThemeNice.cs: Changed the color for focused buttons and activated
22491 the arrows for small scroll buttons.
22493 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22495 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
22496 anymore. Changed some method modifiers to protected (virtual)
22497 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
22499 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
22500 Updated drawing of menus, buttons and progressbars; added
22503 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22505 * ImageListStreamer.cs: implemented serialization/deserialization
22508 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
22510 * ThemeWin32Classic.cs:
22511 - Removed all the DrawFrameControl stuff; CPDrawButton,
22512 CPDrawCheckBox and CPDrawRadioButton are now handled directly
22514 - Updated and corrected the drawing code of CPDrawButton,
22515 CPDrawCheckBox and CPDrawRadioButton to better match ms
22516 - Updated theme checkbox and radiobutton code to use the CP*
22519 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22521 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
22524 2006-03-31 Jackson Harper <jackson@ximian.com>
22526 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
22528 * UpDownBase.cs: Don't CreateGraphics manually, use a
22529 Refresh. Ideally we would invalidate the correct areas here.
22531 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22534 - We now track the mapping state of windows. If a window (or
22535 one of it's parents) is not mapped we no longer permit
22536 WM_PAINT messages to be generated since we'd otherwise get
22537 lots of BadMatch X errors. Jackson did all the work figuring
22539 - Destroying the caret if the window it's contained in is
22540 destroyed. Can't use regular DestroyCaret method since it
22541 might fall into a drawing function (trying to remove the
22542 caret) and with that generate new BadMatch errors. Again,
22543 Jackson tracked this down.
22544 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
22545 make sure we send the messages to all windows. (The old code
22546 would send the WM_DESTROY to the window, and then all child
22547 windows would be 'gone' because the WM_DESTROY handle lookup
22548 would no longer find the destroyed window)
22549 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
22550 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
22552 2006-03-31 Jackson Harper <jackson@ximian.com>
22554 * ScrollableControl.cs: Dont recalc if we are not visible.
22556 2006-03-31 Mike Kestner <mkestner@novell.com>
22558 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
22559 the visibility branch.
22561 2006-03-31 Jackson Harper <jackson@ximian.com>
22563 * ScrollBar.cs: Cap values when incrementing/decrementing.
22565 2006-03-31 Mike Kestner <mkestner@novell.com>
22567 * MenuAPI.cs: setup menu.tracker for popup/context menus.
22568 * ToolTip.cs: guard against timer expirations with no active control.
22569 Not sure why it happened.
22571 2006-03-31 Mike Kestner <mkestner@novell.com>
22573 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
22575 * ToolTip.cs: Position the tooltip based on where the cursor is at
22576 popup time, not at MouseEnter time. Add a Down state so that we don't
22577 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
22578 positioning offset. Lookup DisplaySize at positioning time, since it
22579 can theoretically change during invocation.
22580 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
22581 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
22583 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22585 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
22586 Fixes behaviour when the Text property of the box is String.Empty
22588 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22590 * XplatUIX11.cs: Only send mouseleave for our client windows, not
22591 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
22594 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22596 * FileDialog.cs: Visual enhancement for the popup buttons in
22599 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22601 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
22604 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
22606 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
22607 highlighted menu items to match ms
22609 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
22611 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
22613 2006-03-30 Mike Kestner <mkestner@novell.com>
22615 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
22616 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
22617 go active to account for HotLight to Selected transition.
22618 * MenuItem.cs: add internal Selected prop. Fill out the Status
22619 property by calculating it from item info. Add HotLight,
22620 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
22622 2006-03-30 Mike Kestner <mkestner@novell.com>
22624 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
22626 2006-03-29 Jackson Harper <jackson@ximian.com>
22628 * Form.cs: Implement TODO.
22630 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22632 * PrintPreviewDialog.cs: Implemented missing methods and events; still
22633 missing proper dialog setup in the constructor
22635 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22637 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
22639 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
22640 - Fixed ResetBindings and removed TODO
22641 - Added check for cross-thread calls to get_Handle()
22642 - Added Marshaller attribute for set_Font to satisfy class status
22643 * FontDialog.cs: Removed TODOs that seemed implemented
22644 * UpDownBase.cs: Removed unneeded TODO and Fixme
22645 * MessageBox.cs: Implemented support for Default button and removed TODO
22646 * FileDialog.cs: Removed obsolete TODO
22647 * DomainUpDown.cs: Removed obsolete TODO
22648 * ButtonBase.cs: Removed obsolete TODO
22649 * XplatUIWin32.cs: Removed obsolete TODO
22651 - Removed obsolete TODO
22652 - Calling CheckAcceptButton when the acceptbutton is changed to allow
22653 internal status updates
22654 - Making sure the active control is selected when the control is created
22655 * CurrencyManager.cs: Removed obsolete TODO
22657 2006-03-29 Mike Kestner <mkestner@novell.com>
22659 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
22660 of PrintPreviewDialog and RichTextBox.
22662 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22664 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
22665 DarkDark, Light and LightLight colors for a specific color
22666 * ThemeWin32Classic.cs:
22667 - Use Button drawing code to draw RadioButtons and CheckBoxes with
22668 Appearance = Button
22669 - Make use of the new ResPool helper CPColor
22670 - Draw ProgressBar and StatusBar with correct 3D borders
22672 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22674 * ColorDialog.cs: Return selected color. Fixes bug #77940.
22676 2006-03-28 Mike Kestner <mkestner@novell.com>
22678 * ListView.cs: fix Icon layout to plan for scrollbar widths when
22679 calculating col/row counts.
22681 2006-03-28 Mike Kestner <mkestner@novell.com>
22687 switch to explicit interface method implementation for some methods
22688 corcompare identifies as inconsistent with MS.
22690 2006-03-28 Mike Kestner <mkestner@novell.com>
22694 add a few missing methods from the class status output.
22696 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
22698 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
22701 2006-03-28 Mike Kestner <mkestner@novell.com>
22703 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
22705 2006-03-27 Mike Kestner <mkestner@novell.com>
22707 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
22708 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
22710 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
22712 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
22714 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22716 * ThemeWin32Classic.cs:
22717 - GroupBox: Inserted a little gap between the text and the lines
22719 - Made the code in CPDrawBorder3D more readable
22720 - Corrected the drawing location of the up and down arrows in
22723 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22725 * ControlPaint.cs: Corrected line widths in DrawBorder for
22726 ButtonBorderStyle Inset and Outset
22728 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22730 * ThemeWin32Classic.cs:
22731 - Rewrote the totally broken CPDrawBorder3D method. That was
22732 one of the main problems for the terrific ThemeWin32Classic
22734 - Updated and corrected Button drawing
22735 - Correct the dimensions of the SizeGrip to match ms ones
22736 - Removed a small drawing glitch in DrawComboBoxEditDecorations
22737 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
22738 Border3DStyle.Sunken to match ms.
22740 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22742 * ThemeWin32Classic.cs: First small part of the "de-uglify
22743 ThemeWin32Classic" effort, SizeGrip
22745 2006-03-24 Jackson Harper <jackson@ximian.com>
22747 * XplatUIX11.cs: Give a max idle time of one second, this matches
22748 MS and forces an Idle event every second when there are no other
22749 events in the queue.
22751 2006-03-24 Mike Kestner <mkestner@novell.com>
22753 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
22754 * ListView.Item.cs: fix layout issues with null image lists and images
22755 smaller than checkbox size.
22756 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
22757 mode like MS does. It's weird, but consistent. ;-)
22760 2006-03-24 Mike Kestner <mkestner@novell.com>
22762 * ListView.cs: Scroll wheel support for the item control. Fixes
22765 2006-03-23 Jackson Harper <jackson@ximian.com>
22767 * ScrollableControl.cs: Special case negative sized areas, not
22769 * MonthCalendar.cs: Save the rect of the clicked date so we can
22770 use it for invalidation.
22771 - Try to cut down on the number of invalidates
22772 - Invalidate the rect the mouse is over and was over when moving
22773 the mouse, so we get the focus box following the cursor.
22775 2006-03-23 Mike Kestner <mkestner@novell.com>
22777 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
22778 focus rectangle drawing. Fixes #77835.
22780 2006-03-23 Mike Kestner <mkestner@novell.com>
22782 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
22783 the if and else if and reverting back to the original == check on the
22786 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22788 * FontDialog.cs: Update the example panel if the selected index of
22789 the fontListBox changes.
22791 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22793 * FileDialog.cs: Make FileDialog remember which directory it was in
22794 last in the same execution.
22796 2006-03-22 Mike Kestner <mkestner@novell.com>
22798 * FileDialog.cs: make the DropDownMenu on the toolbar display
22799 RadioChecks since they are mutually exclusive and that's what MS does.
22801 2006-03-22 Mike Kestner <mkestner@novell.com>
22803 * Theme.cs: add Color param to CPDrawMenuGlyph.
22804 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
22805 checks and radio marks and arrows are visible on highlighted items.
22806 * ControlPaint.cs: update to use new Theme signature.
22808 2006-03-22 Mike Kestner <mkestner@novell.com>
22810 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
22811 is active. Fixes #77870.
22813 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22815 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
22816 to be focused/selected after startup
22818 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22821 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
22822 CustomColors and ShowHelp properties
22823 - Some internal rewrites to get better results when using the
22826 2006-03-22 Mike Kestner <mkestner@novell.com>
22828 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
22829 HoverSelection. Fixes #77836.
22831 2006-03-22 Mike Kestner <mkestner@novell.com>
22833 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
22834 ToggleButtons. (De)Sensitize the Back button around a stack count of
22835 1, not 0. Update ButtonSize based on a pixel count of the win32
22836 control. Adjust the toolbar size/location for new button size.
22838 2006-03-22 Jackson Harper <jackson@ximian.com>
22840 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
22842 * ScrollBar.cs: When doing increments and decrements we need to
22843 set the Value property so that ValueChanged gets raised. A
22844 possible optimization here would be to make an internal SetValue
22845 that doesn't invalidate immediately.
22846 * ToolTip.cs: Tooltips get added to their container (when
22847 supplied) so they get disposed when the container is disposed.
22848 - Don't create tooltips for String.Empty. This prevents all these
22849 little 2-3 pixel windows from showing up when running nunit-gui
22850 and driving me mad.
22851 * Form.cs: Don't set topmost when setting the owner if the handles
22852 haven't been created yet. The topmost set will happen when the
22853 handles are created.
22855 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
22858 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22859 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
22860 visible (to allow them to recalculate their sizes)
22862 2006-03-21 Mike Kestner <mkestner@novell.com>
22864 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22865 methods. Removed a ton of redundant code. Still not really happy with
22866 the border rendering, but I think that's mainly because of the
22867 ControlDarkDark being black instead of a dark grey. Depending on how
22868 close we want to be, we might want to revisit those color choices.
22869 Among the new features added during the refactor were DropDownArrow
22870 pressed rendering, Disabled image rendering. Proper flat appearance
22871 boundary rendering. Removed the Divider and Wrapping dividers since I
22872 can't figure out any combination of themes and conditions to make the
22873 MS control draw a horizontal line on a toolbar despite what the
22874 Divider property docs indicate.
22875 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22876 conditions and incorrect layout. Updated to coding standard.
22877 * ToolBarButton.cs: refactored layout and positioning code from
22878 ToolBar to here. Invalidate wherever possible instead of forcing
22879 redraws of the whole toolbar.
22880 (Known remaining issues: explicit ButtonSize smaller than provided
22883 2006-03-21 Mike Kestner <mkestner@novell.com>
22885 * ContextMenu.cs (Show): use the position parameter instead of just
22886 showing at the MousePosition.
22888 2006-03-21 Jackson Harper <jackson@ximian.com>
22890 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22891 control handle this.
22892 * TreeNodeCollection.cs: If we are clearing the root node we need
22893 to reset top_node so calcs can still happen.
22894 * ThemeWin32Classic.cs: This is a Flags so we need to check
22897 2006-03-21 Jackson Harper <jackson@ximian.com>
22899 * DataGrid.cs: Create columns when the binding context has been
22901 * X11Structs.cs: Keysyms are uints.
22902 - Add size to fix build.
22904 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
22906 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22908 - Added ResetMouseHover method to allow controls to retrigger
22909 hovering if they need it more than once
22910 - Implemented MouseHoverTime and MouseHoverSize properties
22911 * Timer.cs: Start() must reset the interval
22912 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22915 2006-03-21 Jackson Harper <jackson@ximian.com>
22917 * X11Keyboard.cs: improved layout detection. Move the nonchar
22918 tables into this file.
22919 * KeyboardLayouts.cs: Move the tables into resource files.
22921 2006-03-21 Mike Kestner <mkestner@novell.com>
22923 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22925 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
22927 * Mime.cs: Various speed optimizations. Looking up mime types
22928 is now 2 times faster than before
22930 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22932 * CreateParams.cs: Added internal menu field
22934 - Switched call order for UpdateBounds; now we always call
22935 the one that also takes ClientSize, and we're calculating the
22936 client size via driver method in the others. The previous
22937 method of tracking client size by difference wasn't working
22938 for forms where even the starting client size wouldn't match
22939 the overall form size (due to borders) (Part of fix for #77729)
22940 - CreateParams(): Do not use parent.Handle unless the handle is
22941 already created. Causes havoc with Nexxia and throws off our
22942 creation of controls
22944 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22945 - Switched handling of ConfigureNotify over to new PerformNCCalc
22946 method (consolidates code)
22947 - Changed RequestNCRecalc to use new PerformNCCalc method
22948 - Added calls to RequestNCRecalc when menus and borders are changed
22949 to allow app to set NC size. (Part of fix for #77729) This matches
22950 when MS send a WM_NCRECALC on Win32 windows.
22951 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22952 (Part of fix for #77729). This matches what MS does, they also
22953 send that message when the form is made visible.
22954 - XException.GetMessage: Improved usability of X errors by including
22955 a translation of the window into Hwnd and Control class
22956 - Improved debug info for window creation, reparenting and destruction
22957 - Created helper method WindowIsMapped() [Currently not used]
22958 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22960 - CreateParams: Now setting our menu on the new internal menu field
22961 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22962 avoid calculating the same property twice
22964 - Improved usability of ToString() for debugging purposes
22965 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22966 determine the height of the menu, instead of just the font. This
22967 required to also create a graphics context and to keep a bmp
22968 around (for performance reasons)
22970 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22972 * MenuAPI.cs: Added OnMouseUp method
22974 - Now remembering the requested client size, avoids size errors
22975 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22976 instead of base if the menu is active. This is required due to
22977 control now capturing and releasing on down/up and it would
22978 prematurely release our menu capture
22980 2006-03-17 Jackson Harper <jackson@ximian.com>
22982 * KeyboardLayouts.cs: Add the czech layouts.
22984 2006-03-16 Jackson Harper <jackson@ximian.com>
22986 * Control.cs: Use the viewport space when sizing not the controls
22987 client size, so things like ScrollableControl that effect the
22988 viewport size (when scrollbars are added) are computed correctly.
22989 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
22991 - Handle creating BindingManagers for null data sources.
22992 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
22993 source, otherwise when rows are added they are added to the 'fake'
22994 datasource and we will crash when trying to set the position in
22996 - Use Implicit scrollbars on the datagrid so they arent
22999 2006-03-16 Jackson Harper <jackson@ximian.com>
23002 * InternalWindowManager.cs:
23003 * MdiWindowManager.cs:
23004 * X11Keyboard.cs: I really want Mike to love me again (fix
23005 compiler warnings).
23007 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23010 - OnMouseDown: Switch to editing mode when clicking on the cell
23011 even if we're clicking on the cell that's currently
23013 - ProcessGridKey: Left/Right now wrap like MS.Net does
23014 - ProcessGridKey: Tab now knows to add a new row when tab is
23015 pressed in the cell of the last column of the
23017 - ProcessGridKey: Enter now adds another row if pressed in the last
23018 row and selectes the new row, same column cell
23019 - ProcessGridKey: Home/End navigate columns, not rows, like
23020 originally implemented
23021 - Broke ProcessKeyPreview code out into an extra Internal method
23022 so it can be called from the edit code
23023 * DataGridTextBox.cs (ProcessKeyMessage):
23024 - Switched to accept Tab keypresses
23025 - Added F2 handling to allow jumping to the end of the edited cell
23026 - Added logic to allow moving caret left/right inside edited cell
23027 and making the edited cell jump when the caret hits cell borders
23028 - Tab and Enter are now passed to the datagrid after being handled
23030 - Removed capture code now that Control handles it
23031 - set_SelectionStart now ensures caret is visible
23033 2006-03-16 Jackson Harper <jackson@ximian.com>
23035 * TrackBar.cs: Debackwards the increment/decrement for handling
23036 mouse clicks on the bar with vertical trackbars.
23037 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
23038 bottom to match MS.
23040 2006-03-16 Mike Kestner <mkestner@novell.com>
23042 * ListView.cs: make shift/ctrl keyboard and mouse selection
23043 consistent with the MS control. Fix a bug in
23044 SelectedListViewItemCollection.Clear that was pissing me off for the
23045 better part of a day because the collection was being altered
23046 underneath us as we walked the list.
23048 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23050 * Control.cs: Not sure how we could miss this so long, but it seems
23051 that MS.Net has Capture set all the way from before calling
23052 OnMouseDown through sending the mouse events until after
23053 OnMouseUp. This will fix DataGrid's selection being set to end
23054 at the location of the MouseUp.
23056 2006-03-15 Jackson Harper <jackson@ximian.com>
23058 * BindingContext.cs: Check the binding after its added so that it
23059 can initialize the binding managers and hookup to events.
23060 * Binding.cs: Data members seem to sometimes include rows/cols in
23061 the format Row.Column we now take this into account.
23062 - Hookup to the position changed event so we can update the
23063 control when the position has changed in the data set.
23064 * CurrencyManager.cs: Take into account the row/col naming
23065 convention when creating dataset tables.
23066 * BindingContext.cs: Using a newer better way of storing
23067 datasource/datamember pairs. Hopefully this better matches MS for
23068 looking up binding managers.
23071 2006-03-15 Jackson Harper <jackson@ximian.com>
23073 * BindingContext.cs: The currency manager needs the data member
23074 name, if the member is a data set we use the name to find the
23076 * CurrencyManager.cs: When creating the list prefer an IList over
23078 - Attempt to create a DataTable from a DataSet (TODO: might need
23079 some better error checking here, although MS doesn't seem to have much)
23080 - If we have a DataTable create a view and use it as our list.
23082 2006-03-15 Mike Kestner <mkestner@novell.com>
23084 * ListView.cs: keep a matrix of the icon mode layout to facilitate
23085 keyboard navigation. Support Up/Down/Left/Right selection correctly
23086 for all 4 View modes.
23087 * ListViewItem.cs: add internal row/col fields for icon layouts.
23089 2006-03-15 Jackson Harper <jackson@ximian.com>
23091 * TabControl.cs: Redraw the tabs when we resize so their newly
23092 calculated sizes are drawn on screen.
23093 * X11Keyboard.cs: Begginnings of XIM support. We also now support
23094 composite characters.
23095 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
23096 - filter events so that composite characters can be created
23098 * X11Structs.cs: Add XIMProperties enum.
23100 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23102 * Control.cs (BringToFront, SendToBack): Don't use window or handle
23103 unless it's created
23105 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23107 * Control.cs (PerformLayout): We don't need to consider visiblity
23108 for anchoring, only for docking. This fixes 'whacky' alignment
23109 in listbox and other controls that use implicit scrollbars after
23110 the previous PerformLayout patch
23111 * ListBox.cs: Switched to use implicit scrollbars
23113 2006-03-14 Mike Kestner <mkestner@novell.com>
23117 - chain up the "new event" overrides to base and use
23118 OnEvent to raise them. Part of fix for bug #76509.
23120 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
23122 * FileDialog.cs: Do not select an item in the parent directory
23125 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23127 * Control.cs (PerformLayout): It would seem that we considered
23128 invisible windows for our layout. Not quite the right thing
23129 to do. Now we don't any longer, thereby fixing bug #76889.
23131 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23133 * Control.cs (CanFocus): I goofed. A control can have focus
23134 even though it's not selectable. Made it match MS docs.
23136 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23138 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
23139 center by default (fixes #76895)
23140 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
23141 all uses of Border3DSides.All with the explicit ORd together
23142 Left|Right|Top|Bottom because I assume that nobody was aware
23143 that All also implies a center fill. Most places I checked had
23144 a fill right above.
23145 * ProgressBarStyle.cs: Added
23147 2006-03-13 Mike Kestner <mkestner@novell.com>
23149 * ListView.cs: fix breakage in drag shadow header positioning
23150 from Peter's csc compilation fix.
23152 2006-03-13 Mike Kestner <mkestner@novell.com>
23154 * ListView.cs: fix NRE produced by backspacing twice in a focused
23157 2006-03-13 Mike Kestner <mkestner@novell.com>
23159 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
23161 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23163 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
23165 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
23166 the allowed size before making programmatic size changes
23168 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23170 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
23171 set, metacity is broken and will still use the emty sizes in
23172 the struct. (Fix for #77089)
23174 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23176 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
23177 WindowExStyles and marked both enums as Flags
23178 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
23179 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
23180 to match WindowStyles split
23182 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
23183 - Updated to match WindowStyles split
23185 - Fixed FosterParent creation, was using ExStyle on the Style field
23186 (This should help with Popup focus issues)
23187 - Updated to match WindowStyles split
23189 2006-03-13 Jackson Harper <jackson@ximian.com>
23191 * MdiWindowManager.cs: Use the system menu height. Fixes some
23192 strange sizing issues.
23194 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23196 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
23198 - Scroll to caret after inserting text (#77672)
23199 - Make scroll range one pixel higher, fixes off-by-one error (and
23200 makes underlines visible on the last line)
23202 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23204 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
23205 the keyboard state from being stuck with keys in 'pressed' state when
23206 focus is switched away via keyboard
23207 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
23208 reset the keyboard if no X11 KeyUp events are expected to come
23209 * X11Structs.cs: Switched type of Visible to bool to match driver
23211 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23214 - Switched caret to be just 1 pixel wide, matches MS and looks less
23216 - Moved caret display 1 pixel down from the top of the control
23218 - InsertCharAtCharet: Update the selection start if moving the caret
23219 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
23220 - No longer always creating the caret when the caret methods are
23221 called. Only the actual ShowCaret/HideCaret will do that now
23222 - Only setting caret visible if the owner control has focus
23223 - UpdateView: Added invalidation-shortcut logic for center and right
23224 aligned text. Previously we'd update all according to the left
23225 logic which caused drawing errors. Also fixed height of invalidated
23226 areas, now properly invalidating the whole area (was off-by-one)
23227 - owner_HandleCreated: Always generate the document when the
23228 handle is created; this ensures that
23230 - Fixed situation where caret would disappear under the right
23231 window border, also improved scrolling behaviour on left-
23233 - Fixed right-aligned textboxes to have a border to the
23234 right instead of the caret being under the right border
23236 - Switched from 'nested' to simple visible/not visible tracking
23237 for caret (part of fix for #77671)
23238 - No longer passing through translated FocusIn/FocusOut messages
23239 since we were notifying too often and the wrong windows. Instead
23240 we just notify our focussed window of receiving or loosing focus
23241 * XplatUIWin32.cs: Switched from 'nested' show/hide
23242 counting for caret to simple visible yes/no behaviour (part of
23245 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
23247 * Mime.cs: Remove debug code...
23249 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
23251 * MimeGenerated.cs: Removed
23252 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
23253 and subclasses) from /usr/(local/)share/mime and
23254 $HOME/.local/share/mime.
23256 2006-03-10 Jackson Harper <jackson@ximian.com>
23258 * MdiWindowManager.cs: Recalc the NC area when a window is
23259 maximized/restored so that the menu area is drawn on forms that
23262 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23264 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23265 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
23266 us to force a WM_NCCALCRESIZE message being sent. This is needed
23267 for MDI maximizing.
23269 2006-03-10 Jackson Harper <jackson@ximian.com>
23271 * Form.cs: We need to use the ActiveMenu when calculating menu
23273 - Fix nullref when the window manager hasn't been created yet.
23274 * Control.cs: Fix nullref when we try to bring a control to the
23275 front that has no parent.
23276 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
23278 - Add a dummy item to the maximized menu so it always has the
23279 correct height. Otherwise when there are no menus we don't get our
23283 2006-03-10 Jackson Harper <jackson@ximian.com>
23285 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
23287 * Form.cs: Make the window_state internal so the window managers
23289 - When an MDI child is maximized let its window manager create the
23290 main menu (so it can add its icon).
23291 - Notify the window managers of state changes
23292 - Let the window manager paint its buttons and handle button
23293 clicks on the menu when it is maximized.
23294 * InternalWindowManager.cs: Move the prev_bounds into the mdi
23295 window manager, since tool windows don't use it, only mdi windows.
23296 - Tell the main form that we don't want it to handle NCPAINT
23297 itself to avoid extra painting.
23298 - Handle clicks on a maximized windows menu.
23299 - Handle window state changes
23300 - Handle minimize/maximize clicks correctly by setting the window state.
23301 * MdiWindowManager.cs: Add an icon menu that (the menu you get
23302 when clicking on the forms icon).
23303 - New method to create a forms maximized menu. This is its normal
23305 - Handle window state changes.
23306 - Handle sizing of maximized windows. Maximized windows are just
23307 drawn bigger then the parent visible area. All controls are still
23308 there, they are just outside the visible area (this matches windows).
23309 * MdiClient.cs: No scrollbars when a child window is maximized.
23310 - Let the children windows figure out how big they should be when
23311 sizing maximized windows.
23312 - Implement a version of ArrangeIconicWindows somewhat similar to
23313 Windows version. There are some little differences, but I don't
23314 think any app will rely on the layout of minimized mdi windows.
23316 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23318 * Padding.cs: Several fixes to allow compiling with csc 2.0
23320 2006-03-09 Jackson Harper <jackson@ximian.com>
23323 * MenuItem.cs: Cheap hack so we can add items to the list without
23324 the events being raised. This allows adding mdi items during
23325 drawing. TODO: Should probably find a better time to add the items.
23327 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23329 * ThemeWin32Classic.cs:
23330 - CheckBox_DrawText: Added logic to not wrap if not enough space
23331 is available (Fix for bug #77727)
23332 - RadioButton_DrawText: Added logic not to wrap if not enough
23333 space is available (Fix for bug #77727). Also removed some
23334 duplicate code, DrawString always drawing the regular text
23335 before hitting the if statement.
23337 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23339 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
23341 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23343 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
23344 * ContainerControl.cs: Partial implementation of some 2.0 scaling
23345 methods. Moved the new 2.0 properties into alphabetical order with
23346 other properties and added MonoTODO tags
23348 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23350 * AutoScaleMode.cs: Added. Fix build.
23352 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23354 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23355 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
23356 and was requiring premature handle creation for calls from above
23357 * Form.cs, Control.cs: Removed handle arguments from calls to
23358 CalculateClientRect()
23360 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23362 * ListView.cs (HeaderMouseMove): Fix csc compilation.
23363 drag_column.column_rect is MarshalByRef and can't be used that way
23365 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23367 * AxHost.cs: Added deserialization constructor for
23368 AxHost+State (fixes 77743)
23370 2006-03-09 Mike Kestner <mkestner@novell.com>
23373 - Added column drag reordering for details view.
23374 - fixed behavior when mouse is dragged off column and
23375 AllowColumnReorder is false.
23376 * ColumnHeader.cs: clone the format too in Clone.
23377 * Theme.cs: add DrawListViewHeaderDragDetails method.
23378 * ThemeWin32Classic.cs:
23379 - impl new method for drawing drag column shadows and targets.
23380 - support column offset for details mode in DrawListViewItem.
23382 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23384 * TextControl.cs: Reset the char_count when the document is cleared
23385 (Fixes bug reported on mono-winforms mailing list)
23387 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23389 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
23390 of calling base we simply process the key ourselves, since both
23391 DefWindowProc and the handled method would set m.Result.
23394 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23396 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
23397 method also moves the window; instead implemented a copy of
23398 Control.ScaleCore (Part of fix for #77456)
23400 - Created new CreateGraphicsInternal method to allow providing
23401 a graphics context when no handle is created without triggering
23402 handle creation. (Part of fix for #77456)
23403 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23405 - Switched Constructor to require TextBoxBase instead of Control (to
23406 allow uncast access to CreateGraphicsInternal)
23407 - Safeguarded use of owner.Handle property. No longer accessing it
23408 unless the handle is already created.
23409 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23410 - Now triggering a recalc when owning control becomes visible
23411 * TextBox.cs, RichTextBox.cs: Switched to use new internal
23412 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
23413 premature handle creation (Part of fix for #77456)
23415 - We now only destroy our double-buffering buffers when the
23416 control is resized or disposed, but not when visibility
23417 changes. (The code even re-created them twice every time)
23418 - Now requiring a redraw of the buffer on visibility changes
23419 (fixes bug 77654 part 2)
23420 - Not passing OnParentVisibleChanged up unless the control
23422 - CanFocus: Fixed to match MS documentation
23423 - Focus: Fixed to return actual focus state and to check if
23424 setting focus is legal before setting it
23426 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
23428 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
23429 when to draw focus rectangle by looking at parent focus and
23430 selected state instead. This fixes TabPages on Linux sometimes
23431 having none or multiple focus rectangles.
23432 * XplatUIX11.cs (SetFocus):
23433 - Don't set the focus if the same window already has focus
23434 - Use SendMessage instead of PostMessage (like it's Win32
23435 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
23436 to match MS behaviour
23437 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
23438 are not selectable.
23440 2006-03-07 Jackson Harper <jackson@ximian.com>
23442 * PictureBox.cs: Revert line I accidently committed last week.
23444 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
23447 - Added new IsRecreating and ParentIsRecreating properties to
23448 allow testing if RecreateHandle has been called on ourselves
23449 or one of our parents
23450 - WndProc(WM_DESTROY): If our control handle is being recreated
23451 we immediately need to create the handle when receiving the
23452 destroy, that way our child windows find a valid parent handle
23453 when they themselves are being recreated upon WM_DESTROY receipt
23454 (fix for bug #77654 part 1)
23456 - DestroyWindow: WM_DESTROY must be sent to our own window before
23457 notifying any child windows. MS documents that child windows
23458 are still valid when WM_DESTROY is received. (Control now relies on
23460 - Added some fine-grain debug options
23462 2006-03-06 Jackson Harper <jackson@ximian.com>
23464 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
23465 box and base calculations off this.
23466 * MdiChildContext.cs:
23467 * MdiWindowManager.cs: Don't need to ensure scrollbars here
23470 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
23472 * Splitter.cs: In situations where the affected control is added
23473 to the parent's control list after the splitter, we would not
23474 populate affected. Now we try populating it on mousedown, if
23475 it's not already set, and force it to be re-set whenever our
23478 2006-03-03 Matt Hargett <matt@use.net>
23480 * Control.cs: implement Control.Padding
23481 * Padding.cs: -Padding.All returns -1 when constructing with the
23482 implicit default ctor
23483 -Padding.ToString() matches MS.NET
23484 * ContainerControl.cs: implement
23485 ContainerControl.AutoScaleDimensions
23486 * ListControl.cs: implement ListControl.FormattingEnabled
23487 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
23489 * TabPage.cs: Implement UseVisualStyleBackColor.
23490 * PictureBox.cs: Implement PictureBox.InitialImage.
23492 2006-03-03 Mike Kestner <mkestner@novell.com>
23494 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
23495 event declarations to proxy to base event.
23496 * ListViewItem.cs: update to use ItemControl.
23497 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
23498 * ThemeWin32Classic.cs: update to new ListView theme API and fix
23499 column header label rendering for 0 width columns.
23501 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
23503 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
23504 that causes the control to be created. Fixes #77476.
23506 2006-03-02 Jackson Harper <jackson@ximian.com>
23508 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
23511 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
23513 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
23514 passed in for the EventArgs (fixes #77690)
23516 2006-03-01 Jackson Harper <jackson@ximian.com>
23518 * ScrollBar.cs: Refresh afterbeing resized.
23520 2006-02-28 Mike Kestner <mkestner@novell.com>
23522 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
23523 Clean up a tracker compile warning.
23524 * MenuItem.cs: add internal PerformPopup method.
23527 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23529 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
23530 implicit expose) when the text is set to null
23532 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23534 * RichTextBox.cs (FlushText): When newline is true, we always
23535 need to split the line, even if no text is on it and we may
23536 never eat newlines. (Fixes #77669)
23538 2006-02-28 Mike Kestner <mkestner@novell.com>
23540 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
23541 and set Selected instead.
23542 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
23545 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23547 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
23549 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
23552 - Got rid of the panel. All controls are now directly added to
23554 - It is now possible to set a font with the Font property
23555 - MinSize and MaxSize property do now what they should
23556 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
23557 - Searching and selecting a font with the font textbox works now,
23558 the same applies to the style and size textbox
23559 - Draw the correct 3D border in the example panel
23560 - Fixed a little mem leak (unused fonts didn't get disposed)
23561 - Many other internal updates/rewrites...
23564 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23567 - InsertRTFFromStream: Added 'number of characters inserted' argument
23568 - set_SelectedRTF: Now using the number of characters to calculate
23569 the new location for the selection and cursor (x/y cannot be used
23570 due to potentially already wrapped text)
23572 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23574 * TextControl.cs: Added property and implemented means to allow
23575 disabling recalculation of a document (can be used to speed up
23576 multiple inserts and is needed to make RTF inserts predictable, see
23578 * RichTextBox.cs: Using the new NoRecalc property of Document to
23579 keep x/y insert locations predictable. Also makes it faster inserting
23580 large chunks of RTF
23582 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23584 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
23585 it's easier for a child control to handle the other messages without
23586 having to duplicate the special functionality
23588 - WndProc: Removed calling base handler for WM_KEYDOWN and added
23589 code to handle processing the key ourselves, in order to get
23590 access to the result of KeyEventArgs.Handled. We now only call
23591 ProcessKey if they key hasn't been handled already. Fixes #77526.
23592 - set_Text: If null or empty string is given, just clear the
23593 document. Fixes part of #77526
23595 2006-02-27 Jackson Harper <jackson@ximian.com>
23597 * SizeGrip.cs: Paint the background color before painting the grip
23598 so things look right.
23599 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
23601 2006-02-27 Mike Kestner <mkestner@novell.com>
23604 - Restructure layout and invalidation model to remove a ton of
23605 flicker from the control and speed up performance in general.
23606 - Add manual column resize, flickers like crazy, but I already have
23607 some ideas on how I'll fix that. (#76822)
23608 - Merge the three Icon-based views into a single layout method.
23609 - Move item selection interaction logic from the item since
23610 interaction with the collections is more appropriate to the view.
23611 - Deselection on non-item clicks.
23613 - Encapsulate most of the layout. Add some internal props to trigger
23614 layout. Move to a model where Items invalidate themselves instead
23615 of just invalidating the whole control every time something changes.
23616 - Invalidate on Text/Caption changes.
23617 - switch to an offset based layout model to avoid having to absolute
23618 position every element on item moves.
23619 - correct checkbox layout to conform to MS layout.
23620 * ThemeWin32Classic.cs:
23621 - refactor some column header drawing code.
23622 - fix string justification for column headers (#76821)
23623 - make SmallIcon labels top justified for compat with MS impl.
23624 * ThemeClearlooks.cs:
23625 - adjust to new ListViewItem internal checkbox bounds api.
23627 2006-02-27 Jackson Harper <jackson@ximian.com>
23629 * Control.cs: Change where implicit controls fall in the zorder.
23630 They are now on top of all children.
23631 - Synced AddImplicit code with Add
23632 - Removed unused enumerator.
23633 * SizeGrip.cs: Remove the TODO as its been TODONE.
23635 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23637 * TextControl.cs(Insert): Combine the last lines unless the insertion
23638 string ends with \n\n, otherwise we leave one line too many (Fixes
23639 something I noticed with the testapp for #77526; the bug itself was
23640 already fixed in the previous checkin)
23642 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23645 - SelectionColor and SelectionFont methods no longer set absolute
23646 styles. Instead, the keep font or color respectively (This
23647 resolves a long-standing FIXME in the code)
23648 - When flushing RTF text, the insert code now considers text trailing
23649 behind the insertion point (Fixes the bug where when replacing
23650 the selected text via SelectedRTF the remainder of the line behind
23651 the selection would stay on the first insertion line)
23653 - AppendText now updates the selection points after inserting text
23654 - AppendText now ensures that the last tag (sometimes 0-length) of
23655 the document is used for the style information (Fixes part of
23658 - Created new FontDefiniton class to allow describing partial style
23660 - StreamLine() now takes a lines argument, to allow it to decide
23661 whether an encountered zero-length tag is the last in the document
23662 (which must be kept to not loose the font/color contained in it,
23664 - Created Combine() and Split() methods for Marker structs, to
23665 support marker updates due to reformatted documents (soft line
23667 - Implemented Document.CaretTag setter
23668 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
23669 of the last line (Not the cause, but also exposed by bug #77220)
23670 - Added LineTag argument to InsertString method, to allow callers
23671 to force a certain tag to be used (required to force use of the
23672 trailing zero-length tag of a document)
23673 - Now updating markers in Combine(), to avoid stale tag markers
23674 - Added some method descriptions to aid maintenance
23675 - Implemented new FormatText concept, allowing additive/subtractive
23676 formatting by only specifying the components that are to be
23677 changed. This was needed for resolving the RTB.SelectedColor/
23678 RTB.SelectedFont fixmes
23679 - Added Break() support method to allow breaking up linetags (used
23680 for partial formatting)
23681 - Added GenerateTextFormat() method. It is used for partial
23682 formatting and allows to generate a full font/color from given
23683 attributes and an existing tag.
23685 2006-02-26 Jackson Harper <jackson@ximian.com>
23687 * XplatUIX11.cs: Use the correct caption height.
23688 - Translate hittest coordinates to screen coords to match MS.
23689 * XplatUIWin32.cs: When we create MDI windows we need to reset
23690 some of the style flags, so we get a nice blank window, and can
23691 draw all the decorations ourselves.
23692 - Set a clipping rectangle on the non client paint event, the
23693 window manager drawing code needs one.
23694 * Form.cs: The window manager needs to know when the window state
23696 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
23697 don't need to factor in border and title sizes in these
23698 methods. TODO: Remove the args and fix the call points.
23699 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
23701 - Let the driver set the cursors.
23702 - Improve active window handling
23703 - Correct sizes for title bars and buttons.
23704 - Match MS drawing better
23705 * MdiWindowManager.cs: We don't need to handle border style
23706 updates specially anymore.
23707 - Check for scrollbars when windows are done moving
23708 - Handle Active properly.
23709 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
23710 correctly. I am spewing the exception though, so we don't hide the
23713 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
23715 * DataGridViewRowPostPaintEventArgs.cs,
23716 DataGridViewCellPaintingEventArgs.cs,
23717 DataGridViewRowCollection.cs,
23718 DataGridViewRowPrePaintEventArgs.cs,
23719 DataGridViewCell.cs: Clear a few warnings and implement a few
23720 exceptions that should be thrown.
23722 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23724 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
23725 'inheriting' our parent's (non-default) cursor. (Part of
23726 the fix for #77479)
23728 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23730 * XplatUIX11.cs: Fixed cast to make csc happy
23732 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23734 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
23735 it's for the client area (part of fix for #77479 and needed
23736 for MDI window cursor handling)
23738 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
23739 the appropriate default cursors and also passing the message
23740 up the parent chain
23741 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
23742 for non-client areas
23744 2006-02-15 Jackson Harper <jackson@ximian.com>
23746 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
23747 is a real MDI window
23749 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
23751 * X11DesktopColors.cs: Instead of checking the desktop session
23752 string for "KDE" check if it starts with "KDE"
23754 2006-02-10 Jackson Harper <jackson@ximian.com>
23756 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
23759 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23761 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
23764 - Got rid of the panel. All controls are now directly added to
23766 - Changed to mono coding style
23768 2006-02-10 Jackson Harper <jackson@ximian.com>
23770 * InternalWindowManager.cs: We don't need the set visibility to
23771 false hack anymore now that peter has written beautiful shutdown
23774 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
23776 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
23777 where already explicitly destroyed
23779 2006-02-10 Jackson Harper <jackson@ximian.com>
23781 * MdiClient.cs: Handle the case where windows are too high or to
23782 the left and we need scrollbars.
23784 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23786 * MimeIcon.cs: Added some icons
23789 - Got rid of the panel. All controls are now directly added to
23791 - Changed to mono coding style
23792 - On Linux "My Computer" and "My Network" will now show some
23793 more usefull information. A new class, MasterMount, gathers
23794 this information from /proc/mount. Updated MWFFileView to make
23795 use of this information
23796 - Fixed a bug that caused FileDialog to crash when
23797 ".recently_used" file had a zero size
23798 - FilterIndex does now what it should
23800 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
23803 2006-02-09 Jackson Harper <jackson@ximian.com>
23805 * ComboBox.cs: Don't touch if null.
23807 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
23809 * Cursor.cs: 64bit safeness fix
23810 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
23812 2006-02-09 Jackson Harper <jackson@ximian.com>
23814 * Form.cs: If a form is made into an MDI form update the styles so
23815 all the props can get set correctly.
23816 - Kill the mdi_container when we dont need it anymore.
23817 * InternalWindowManager.cs: Add missing NOT
23819 2006-02-08 Jackson Harper <jackson@ximian.com>
23821 * InternalWindowManager.cs: Respek clipping when drawing MDi
23824 2006-02-08 Jackson Harper <jackson@ximian.com>
23826 * Hwnd.cs: Add bits to track non client expose events.
23827 * XplatUIX11.cs: Track non client expose events on the hwnd. This
23828 gives us a proper invalid rect and will allow for some nice
23829 optimizations with NC client drawing
23830 - MDI windows are children windows, so move their style handling
23831 into the child window block.
23832 * InternalWindowManager.cs: Remove a state reset that was
23833 getting invoked at the wrong time. Fixes managed windows getting
23834 into a 'stuck' captured state.
23836 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23838 * TextControl.cs (Document.ctor): Now initializing
23839 selection_anchor. Fixes #77493
23841 2006-02-07 Jackson Harper <jackson@ximian.com>
23843 * TrackBar.cs: The increment/decrements were backwards.
23845 2006-02-07 Mike Kestner <mkestner@novell.com>
23847 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23848 to the instance itself.
23850 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23852 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23853 on ulongs and pointers, the size differs between 32bit and 64bit
23856 2006-02-07 Mike Kestner <mkestner@novell.com>
23858 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23859 for 64 bit platforms to work around a metacity bug.
23861 2006-02-07 Jackson Harper <jackson@ximian.com>
23863 * TrackBar.cs: Process the input keys we need, and hookup to
23864 KeyDown instead of using WndProc, so we get key messages.
23866 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23868 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23870 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23871 we need to translate the XdndVersion atoms array before sending it
23873 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23876 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23877 number of bits for the property, not the number of bytes. The
23878 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23879 but would not crash since it specified 8 bits instead of 4 bits)
23880 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23881 defined as XID -> long in the C headers)
23882 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
23883 references since those are now IntPtr to begin with
23884 - Switched all Atom.XXX 'int' casts to IntPtr casts
23885 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23886 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23887 - Added XChangeActivePointerGrab DllImport (for X11DnD)
23889 - Changed 'int' type for Atoms in XEvent structures to IntPtr
23890 - Changed atom in HoverStruct to be IntPtr
23892 - Removed local DllImports, switched code to use those from XplatUIX11
23893 - Removed/fixed casts related to the switch of Atom to be a IntPtr
23895 2006-02-06 Mike Kestner <mkestner@novell.com>
23897 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
23898 method signatures in the import region. There may still be some
23899 lingering struct marshaling issues, as I didn't drill down into those.
23902 2006-02-06 Jackson Harper <jackson@ximian.com>
23904 * ComboBox.cs: Dont manually set the top_item, this is computed
23905 when the scrollbar position is set.
23907 2006-02-06 Mike Kestner <mkestner@novell.com>
23909 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23910 startup crashes on amd64. There's other fixes needed. All pinvoke
23911 usage of Atom needs to be mapped to IntPtr for example. And there are
23912 likely other int/long issues to be addressed.
23914 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
23916 * FileDialog.cs: One more...
23918 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23920 * FileDialog.cs: Next try
23922 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23924 * FileDialog.cs: First part of fix for #77464
23926 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23928 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23929 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23930 AcceptButton border drawing.
23932 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23934 * Form.cs: Moved positioning of form after auto scaling is applied,
23935 otherwise it would possibly use wrong form size.
23937 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23939 * Control.cs (RecreateHandle): No need to re-create any child
23940 controls, the child windows will get destroyed automatically by
23941 the windowing system or driver, and re-created when the handle
23942 is being accessed the first time. Fixes #77456
23943 * Form.cs: No longer setting the form to closing if the handle is
23944 being recreated. This seems like the right thing to do, don't
23945 have a bug or testcase for this, though.
23947 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23949 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23950 controls to avoid unwanted side effects
23952 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23955 - ScaleCore needs to scale the bounds, not the ClientSize of the
23956 control. Fixes #77416.
23957 - DefaultSize is 0,0 for control
23959 - DefaultSize is 100, 20
23960 - SetBoundsCore: Now enforcing the height, no matter if the provided
23961 height is more or less than the preferred one, as long as AutoSize
23963 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23965 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23968 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23969 call unless both performLayout is true *and* we have a pending
23971 - ResumeLayout: MS does not completely nest Suspend and Resume,
23972 they bottom out at 0, fixed our code to match that.
23973 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23974 SetBoundsCore, we were updating even when we shouldn't. This fixes
23975 swf-anchors mis-anchoring when resizing the app fast and lots.
23976 - UpdateDistances: Now only setting the left and top distance if
23977 we have a parent and are not suspended, this is based on
23978 a suggestion by Don Edvaldson in bug #77355.
23979 - OnVisibleChanged: Fixed logic when to create the control. We may
23980 not create the control if we have no parent or if it's not visible;
23981 switched to using Visible property instead of is_visible field
23982 since the property also considers parent states. This fixes a bug
23983 when starting Paint.Net
23985 2006-02-02 Jackson Harper <jackson@ximian.com>
23987 * Form.cs: If the forms handle hasn't been created yet don't call
23988 into xplatui to make it top most, just set the topmost flag on the
23989 form in CreateParams
23990 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
23992 2006-02-01 Jackson Harper <jackson@ximian.com>
23994 * ScrollableControl.cs: Refactored the Recalculate method a
23995 little, this wasn't handling all the variants of bottom and right
23996 bars needed to be added and added/removed based on their
23997 counterparts being added/removed (which changes the drawable
23998 size). Also we special case client widths and heights of 0 and
23999 don't add the scrollbar for those.
24001 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
24004 - Added method to get AbsoluteGeometry(); currently unused, but might
24005 be used in the future, if we try again to figure out toplevel
24006 coordinates with some more crappy window managers
24007 - Added FrameExtents() method to retrieve the WM set decoration size
24008 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
24009 to deal with at least KDE, FVWM and metacity (Fixes #77092)
24011 - Added whacky_wm tracking var for metacity
24012 - Added logic to have default menu height if the actual menu height
24013 has not yet been calculated (part of fix for #77426)
24014 * Form.cs: Keep track whether client size has been set and re-set
24015 it if a menu is added/removed afterwards (Fixes #77426)
24017 2006-01-31 Jackson Harper <jackson@ximian.com>
24019 * Control.cs: When a new Site is set on the component attempt to
24020 pull the AmbientProperties from it.
24022 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
24024 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
24025 in the background of the owning form. Fixes #77332
24027 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24029 * MimeIcon.cs: Fix for #77409
24031 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24033 * XplatUIX11GTK.cs: Initial import
24035 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
24037 * FixedSizeTextBox: fixes class signature
24039 2006-01-30 Jackson Harper <jackson@ximian.com>
24041 * FixedSizeTextBox.cs: New internal class that represents a
24042 textBox that will not be scaled.
24045 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
24048 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24050 * XplatUIX11.cs: Retrieve default screen number instead of
24051 assuming 0. Attempted fix for #77318
24053 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24056 - GetWindowPos: When a window is parented by FosterParent, use
24057 the desktop instead of FosterParent as the base to get coordinates
24058 - CreateWindow: Don't make FosterParent the parent window for Popups
24059 if we don't want a taskbar entry, Popups automatically don't get one
24060 * Hwnd.cs: Need to call remove to actually remove the key from the
24063 2006-01-30 Mike Kestner <mkestner@novell.com>
24065 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
24067 2006-01-30 Jackson Harper <jackson@ximian.com>
24070 * TreeNode.cs: Raise events no matter how the treenode is
24071 checked. Patch by Don Edvalson.
24073 2006-01-30 Jackson Harper <jackson@ximian.com>
24075 * TreeNode.cs: Signature fix.
24077 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
24079 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
24081 2006-01-20 Mike Kestner <mkestner@novell.com>
24083 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
24084 event forwarding when menus are active.
24085 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
24086 Most of the patch is pdb's with a little rework.
24088 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24090 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
24091 Removed GetMenuDC and ReleaseMenuDC methods; replaced
24092 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
24093 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
24094 * InternalWindowManager.cs: Added use of PaintEventStart/End to
24095 handling of WM_NCPAINT message, now passing the PaintEventArgs to
24096 the PaintWindowDecorations method
24097 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
24098 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
24099 * MenuAPI.cs: Made tracker window invisible
24101 - Removed GetMenuDC and ReleaseMenuDC methods
24102 - Implemented the client=false path for PaintEventStart and
24105 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24107 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
24108 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
24111 - MaximizeBox, MinimizeBox: Recreate the handle when setting
24113 - CreateParams: Reworked the styles to match MS look'n'feel,
24114 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
24115 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
24117 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24119 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
24120 window is not mapped, since otherwise every form that's being
24121 created is considered minimized, which is wrong.
24122 * Form.cs: Catching the exception and returning our internal value
24125 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24127 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
24128 SetWindowMinMax() to have means to tell the driver about the minimum,
24129 maximum and maximized state window sizes. (Part of the fix for #76485)
24131 - Implemented tracking of minimum and maximum window size, now calling
24132 new SetWindowMinMax() driver method to tell the driver (Part of the
24134 - Finished handling of WM_GETMINMAXINFO method, now setting all values
24135 (Completes fix for #76485)
24136 - Calling new SetWindowMinMax driver method when the handle for a
24137 form is created, to make sure the driver knows about it even if
24138 the values have been set before the window was created
24139 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
24140 to avoid messing up our anchoring calculations (partial fix
24142 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
24144 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
24145 - Improved GetWindowState() to detect 'Minimized' state on Metacity
24146 (and presumably other freedesktop.org compliant WMs). Left the
24147 assumption unmapped=minimized, needed for SetVisible to work.
24148 - Now setting the window state when creating windows
24149 - Fixed SetVisible to consider/set the window state when mapping
24150 a Form. We cannot set the state before it's mapped, and we cannot
24151 use Form.WindowState once it's mapped (since it would ask the
24152 driver and get 'normal'. Therefore, we grab the state before
24153 mapping, map, and then set state.
24154 - Implmemented SetWindowMinMax method; Metacity does not seem to
24155 honor the ZoomHints, though.
24157 - Removed MINMAXINFO (moved to XplatUIStructs)
24158 - Added SetWindowMinMax stub (on Win32 the only way to set that
24159 information is in response to the WM_GETMINMAXINFO message, which
24160 is handled in Form.cs)
24161 - Added logic to SetVisible to set the proper window state when a
24162 form is made visible (fixes #75720)
24164 2006-01-26 Jackson Harper <jackson@ximian.com>
24166 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
24167 same way we handle them with Invoke.
24169 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
24172 - Added tracking of window state so CreateParams can return
24173 the appropriate style
24174 - Moved setting of WS_CAPTION style in CreateParams to allow
24175 styles without caption
24176 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
24177 control if the TextBox property is accessed. Fixes #77345
24179 - get_Created: now uses is_disposed and is_created to determine
24180 return value (suggested by Jackson)
24181 - CreateHandle: No longer exits if the handle is being recreated
24182 - RecreateHandle: If the handle is not yet created call the
24183 appropriate method to create either control or handle. If the
24184 control is already created CreateHandle will simply exit instead
24185 of just creating the handle
24186 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
24187 now SendMessage WM_DESTROY directly to the control when DestroyWindow
24190 - When DestroyWindow is called, instead of waiting for the
24191 DestroyNotification from X11, we directly post it to the WndProc
24192 and immediately dispose the hwnd object.
24193 Same applies to DestroyChildWindows, and this obsoletes the
24194 expose_pending tracking. Contrary to Win32 behaviour we destroy our
24195 child windows before our own, to avoid X11 errors.
24196 - Removed the direct sending of WM_PAINT on UpdateWindow
24198 - Reworked DoEvents and GetMessage to allow access to internal queue
24199 even when trying non-blocking access to the queue. Fixes #77335.
24200 Based on a patch suggestion by Don Edvalson. The new private
24201 GetMessage can now also be used as a backend for a PeekMessage
24203 * XplatUI.cs: Improved debug output for CreateWindow
24205 2006-01-25 Jackson Harper <jackson@ximian.com>
24207 * Help.cs: Allow param to be null. Patch by Don Edvalson.
24209 2006-01-24 Jackson Harper <jackson@ximian.com>
24211 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
24212 when we have a MaxDropItems lower then the selected index.
24214 2006-01-24 Jackson Harper <jackson@ximian.com>
24216 * Control.cs: Don't allow selection of non visible controls, allow
24217 selection of controls without parents.
24219 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
24221 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
24222 * DataGridDrawingLogic.cs: Add editing row only when is necessary
24224 2006-01-23 Jackson Harper <jackson@ximian.com>
24226 * UpDownBase.cs: Make the textbox handle all the selection and
24227 tabbing. This fixes tabing to updown controls.
24229 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
24231 * TextBoxBase.cs: fixes exception thown the object was null
24233 2006-01-23 Jackson Harper <jackson@ximian.com>
24235 * ButtonBase.cs: Just use the base CreateParams. They set
24236 visibility and enabled correctly.
24239 * MonthCalendar.cs: Lets let the base set as much of the
24240 createparams as possible so we don't have duplicate code all over
24243 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
24245 * ThemeGtk.cs: Added TrackBar and some experimental code to
24246 get double buffering back
24248 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
24250 * DataGrid.cs: Allows row number set internally higher than the last
24251 when creating a new row. Restores the editing functionality.
24253 2006-01-20 Mike Kestner <mkestner@novell.com>
24255 * MimeIcon.cs: delay Image creation until the icons are accessed
24256 instead of creating 190 scaled images on GnomeHandler startup.
24258 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
24260 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
24261 first call base before processing the event. Fixes #77279
24263 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
24265 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
24266 that the stride for the GDI bitmap would match the stride of
24269 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
24271 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
24273 2006-01-19 Jackson Harper <jackson@ximian.com>
24275 * ComboBox.cs: Hookup the text controls keydown event so we get
24276 those when the text control has the focus.
24278 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24280 * Label.cs: Now using the base events instead of defining new ones;
24281 this allows us to just call the base properties without having to
24282 duplicate all base property logic
24284 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24286 * Label.cs: A label by default is not a tabstop (Fixes one of our
24287 failing nunit tests)
24289 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24291 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
24292 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
24294 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24296 * Cursor.cs: Reimplemented creating cursor bitmaps without using
24297 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
24300 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
24301 constructor creates images that can't be saved. Part of the fix
24303 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
24304 - SetWindowState: Switched ShowWindow flags (part of an upcoming
24305 bug fix for handling window state in forms properly)
24307 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24309 * ThemeGtk.cs: Simplify ScrollBar drawing
24311 2006-01-18 Jackson Harper <jackson@ximian.com>
24313 * Splitter.cs: Set the default dock style for the splitter control
24314 in the constructor.
24316 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24318 * ThemeGtk.cs: Corrected StateType and ShadowType for
24321 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24323 * Control.cs: Make use of Theme.DoubleBufferingSupported
24325 - Added drawing for flat style buttons
24326 - Added ScrollBar drawing
24328 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24330 * ThemeClearlooks.cs: Removed some unneeded code.
24331 * ThemeGtk.cs: First part of ThemeGtk enhancements.
24333 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
24335 * LinkLabel.cs: We need to update the hover drawing when
24336 leaving the control as well.
24338 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
24340 * DataGrid.cs: Clicking on non empty areas in the columns
24341 area was giving an exception
24343 2006-01-17 Jackson Harper <jackson@ximian.com>
24345 * ThemeWin32Classic.cs:
24346 * ListView.cs: Do not draw/clip the headers when the header style
24349 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
24351 * DataGrid.cs: Fixes 77260
24353 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
24355 * DataGrid.cs: Clicking on a column on a empty grid was giving
24358 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
24360 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
24361 or any keypress will crash the grid.
24363 2006-01-17 Mike Kestner <mkestner@novell.com>
24365 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
24366 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
24367 invisible/previously-visible items.
24370 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
24372 * ThemeClearlooks.cs:
24373 - Added CL_Draw_Button method; now other theme controls that are
24374 not derived from button or do not have a button can draw buttons
24376 - Updated ComboBox drawing
24377 - Beautified RadioButton drawing
24378 - Corrected drawing of bottom and left tabs
24379 - Beautified DateTimePicker and MonthCalendar
24380 - Added CPDrawButton and CPDrawRadioButton
24382 2006-01-16 Jackson Harper <jackson@ximian.com>
24384 * ComboBox.cs: Set the initial value of the scrollbar to the
24385 current index. Reduce the numbers of refreshs and IndexOfs called.
24387 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
24389 * FileDialog.cs: When the file listview is focused hitting the
24390 backspace key moves the fileview to the parent directory
24392 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24395 - Added RecreateHandle call when changing taskbar visibility to
24396 trigger reparenting in Win32 driver (Fixes #75719)
24397 - If a window has minimize or maximize buttons, it cannot have
24400 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
24401 the toplevel form with FosterParent (A toolwindow not on the
24402 taskbar) (Fixes #75719)
24403 - Made FosterParent a toolwindow
24405 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24407 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
24409 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24411 * ToolTip.cs: If SetToolTip is called from a control and the mouse
24412 is currently over that control, make sure that tooltip_window.Text
24415 2006-01-13 Mike Kestner <mkestner@novell.com>
24417 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
24419 2006-01-13 Jackson Harper <jackson@ximian.com>
24421 * TreeView.cs: On MS GetNodeAt never actually factors in the X
24422 value passed. Also redraw the selected node when we recieve
24423 focus, so tabbing between trees works correctly.
24425 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24427 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
24428 ~/.gconf/%gconf-tree.xml, so use
24429 .gconf/desktop/gnome/interface/%gconf.xml
24431 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24433 * TextControl.cs: Draw text in gray if control is disabled
24435 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24437 * TreeView.cs: Draw the focus rectangle outside the highlight, to
24438 make sure it's always visible. Fixes #76680.
24440 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24442 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
24444 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
24446 * PageSetupDialog.cs: Added.
24447 * PrintDialog.cs: Attributes.
24448 * PrintPreviewControl.cs: Updates.
24449 * PrintPreviewDialog.cs: Updates.
24451 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24453 * Control.cs: Undid my selection check fix, since it's not needed
24455 - Now considering the presence of hscroll/vscroll when sizing
24456 vscroll/hscroll respectively. Fixed bug #77077
24457 - Added Left/Up/Down/Right to IsInputKey list to prevent
24458 ContainerControl from stealing them. This fixes what I broke
24459 with my last checkin.
24461 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24463 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
24464 I finally understand how the property can be set without a setter :-)
24466 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24469 - Switched RunLoop to use static Message.Create to create a
24471 - Added PreProcessMessage call in runloop for keyboard events; this
24472 is part of the fix for #77219, I overlooked this originally in the
24473 MSDN doc for PreProcessMessage
24475 - Removed call to PreProcessMessage from handling of keyboard
24476 messages; it's supposed to be done in the message pump
24477 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
24478 per MSDN documentation.
24479 - IsInputChar: All chars are input chars by default; removed the
24480 parent calling chain, MS does not document that
24481 - PreProcessMessage: If IsInputChar is true, we want to return false
24482 to allow dispatching of the message
24483 - When selecting the next control, now also check that we're not
24484 selecting ourselves again and therefore return a false positive.
24486 - Tried to match return values for IsInputKey and ProcessDialogKey
24487 to what MS returns; moved processing of our special keys outside
24488 ProcessDialogKey since MS does not seem to return true on those.
24489 - Moved code that previously was in ProcessDialogKey into new private
24490 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
24491 - Reworked handling of WM_CHAR to not have to duplicate code from
24492 Control.cs anymore, instead we simply call down to base.
24494 2006-01-12 Jackson Harper <jackson@ximian.com>
24496 * ComboBox.cs: We always need to refresh the text area when
24497 EndUpdate is called. Fixes the combobox in the file dialog.
24498 * Control.cs: Don't create the creator_thread until the controls
24499 handle is created. Also in InvokeRequired we check if the
24500 creator_thread is null. This gives the effect of InvokeRequired
24501 returning true if the controls handle is not created yet, and
24504 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24507 - Added StartLoop() driver method. This is used to allow drivers to
24508 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
24509 loop for a particular thread
24510 - Added EndLoop() driver method. This is called once the message
24511 pump for the thread is shut down
24512 - Added SupportsTransparency method to allow the driver to indicate
24513 opacity support for windows
24515 - Removed TODO attribute, completed AllowTransparency property
24516 - Added documented logic to Opacity
24517 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
24518 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
24519 versions of CompatibleTextRendering
24520 * X11Structs.cs: Added opacity atom to our atom enumeration
24521 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
24522 of a form might be set before it's reparented by the WM, and we need
24523 the opacity value without calling up to Form)
24524 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
24525 SupportsTransparency() driver methods
24526 * Application.cs: Now calling StartLoop and EndLoop driver methods
24528 - Added opacity atom registration
24529 - Added StartLoop()/EndLoop() methods. They're empty right now but
24530 will need to get implemented when we switch to a per-thread queue
24531 - Implemented SupportsTransparency() method
24532 - Implemented SetWindowTransparency() method
24533 - Added support for setting the opacity value when a window is
24534 reparented (since the opacity needs to be set on the WM frame)
24535 * XplatUIOSX.cs, XplatUIWin32.cs:
24536 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
24538 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24540 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
24542 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24544 * FileDialog.cs: Added ToolTip for MWFFileView
24545 * MimeIcon.cs: Rewrote GnomeHandler.
24546 - Get currently used gnome icon theme from
24547 ($HOME)/.gconf/%gconf-tree.xml
24548 - Make use of inherited icon themes
24549 - Support SVG icon themes like Tango via librsvg
24551 2006-01-12 Miguel de Icaza <miguel@novell.com>
24553 Revert's Jackson's revert which broke 2.0 builds. Fix both
24556 * Application.cs: Move the use_compatible_text_rendering outside
24557 the NET_2_0 define. If we ever need to use the
24558 use_compatible_text_rendering on the individual controls they will
24559 access the variable from the common shared code paths.
24561 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24564 - Added more granular debug options
24565 - Added method to print both window text and id
24566 - Switched debug output to use new Window() debug method
24567 - Added IsEnabled() driver method
24568 - Added EnableWindow() driver method
24570 - Removed end_modal; no longer needed, new loop handles termination
24571 via 'closing' variable
24572 - If form is modal, setting DialogResult will now initiate loop
24573 termination via 'closing' variable
24574 - Added support for is_enabled/WS_DISABLED to CreateParams
24575 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
24577 - Removed code that's now in RunLoop from ShowDialog()
24578 - Added various documented sanity checks to ShowDialog()
24579 - Added handling of WM_DESTROY message; we set 'closing' on getting
24580 the message to indicate the message pump to terminate
24581 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
24582 send by the Application.ExitThread method. (We send the message
24583 to destroy the window after all other events have been
24584 processed through the queue, instead of destroying the handle
24586 - Moved code from Close() method to WM_CLOSE handler; added logic
24587 to only send close-related events if the form is not displayed
24589 * Splitter.cs (..ctor): Fixed typo in resource name
24591 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
24593 - set_Cursor: Now only setting calling into XplatUI if the handle for
24594 the control is already created; this avoids implict handle creation
24595 or crashes if it's not created
24596 - set_Enabled: Now setting the enabled state via the new driver method
24597 instead of just tracking it
24598 - CreateParams: Added logic to set WS_DISABLED based on enabled state
24599 - CreateControl: Reordered event firing and method calls to more
24600 closely fire events in the order MS does. Now setting the
24601 enabled state in the driver when creating the control.
24602 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
24604 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
24605 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
24606 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
24608 - Added tracking of window enabled state (get_Enabled/set_Enabled)
24609 - Added EnabledHwnd property to easily allow a driver to find the
24610 handle of the first enabled window in the parent chain (this is
24611 used by drivers to pass up input events of disabled windows)
24612 * XplatUIDriver.cs: Added IsEnabled() method
24614 - Removed crude and obsolete exiting tracking variable
24615 - Removed internal ModalRun(); replaced by RunLoop()
24616 - Implemented private CloseForms() method to allow closing all
24617 windows owned by a particular (or all) threads
24618 - Exit() now properly closes all windows without forcing the message
24620 - Removed obsolete InternalExit() method
24621 - Changed Run() methods to use new RunLoop() message pump
24622 - Implemented new RunLoop() method for both modal and non-modal forms
24624 - get_CreateParams: Added setting of WS_DISABLED
24625 - Simplified ShowDialog(); now all the work is done in RunLoop(),
24626 invoked via Form.ShowDialog()
24627 * NativeWindow.cs: We don't remove the window from the collection when
24628 the handle is destroyed; there might still be messages for it in the
24629 queue (mainly the resulting WM_DESTROY); instead it will be removed
24630 when Control calls InvalidateHandle in the WM_DESTROY handler
24632 - CreateWindow: Added logic to handle the WS_DISABLED window style
24633 - EnableWindow: Implemented based on Hwnd.Enabled
24634 - GetMessage: Reset PostQuitState so the method can be called again
24635 - Implemented support for disabled windows (passing messages to the
24636 first enabled parent) in handling all input messages
24637 - Added optimizations for handling Expose events
24638 - Implemeted new driver method IsEnabled()
24639 - Now always resetting paint pending tracking vars when we start paint
24640 - Re-implemented UpdateWindow via just sending a WM_PAINT message
24641 * XplatUIOSX.cs: Added IsEnabled method stub
24642 * XplatUIWin32.cs: Implemented new IsEnabled() method
24644 2006-01-11 Jackson Harper <jackson@ximian.com>
24646 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24647 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
24648 variables a little.
24649 * ColorDialog.cs: Clear out the old form before adding the new
24652 2006-01-11 Jackson Harper <jackson@ximian.com>
24654 * X11Dnd.cs: Make sure to add all the text formats when adding
24655 strings to the data object.
24656 * TreeNodeCollection.cs: When adding to a sorted tree we need to
24657 do some redrawing too. Also change the UpdateNode to an
24658 UpdateBelow so the newly added node gets painted.
24660 2006-01-11 Miguel de Icaza <miguel@novell.com>
24662 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24663 LinkLabel.cs, PropertyGrid.cs: Implement the
24664 UseCompatibleTextRendering property for 2.x
24666 * Application.cs (SetCompatibleTextRenderingDefault): Add.
24668 2006-01-11 Jackson Harper <jackson@ximian.com>
24670 * TreeView.cs: Use the property for setting the selected node so
24671 the correct events get raised.
24672 * TreeNode.cs: Update the tree when the fore/back colours of a
24675 2006-01-10 Jackson Harper <jackson@ximian.com>
24677 * TreeView.cs: Allow setting SelectedNode to null.
24679 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24681 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
24683 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24685 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
24687 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24689 * PrintDialog.cs: Added attributes and set default property values.
24691 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24693 * PrintControllerWithStatusDialog.cs:
24694 Added PrintControllerWithStatusDialog.
24696 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24698 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24699 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
24701 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24703 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
24705 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24707 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
24708 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
24710 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24712 * MimeIcon.cs: Added internal class SVGUtil.
24714 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24716 * FileDialog.cs: Don't crash if there are two files with the
24717 same name but different locations.
24719 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
24721 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
24722 dates across multiple month grids. Used to not highlight entire
24723 month, but does now.
24725 2006-01-06 Jackson Harper <jackson@ximian.com>
24727 * MonthCalendar.cs: Removed DoEvents call to prevent a running
24728 message loop. Change timer intervals to numbers that seem more
24731 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
24733 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
24734 object for location info since screen object is now implemented.
24736 2006-01-05 Jackson Harper <jackson@ximian.com>
24738 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
24739 * AsyncMethodResult.cs: We no longer use a WeakReference for the
24740 AsyncMethodResult, this is because we ALWAYS want the
24741 ManualResetEvent to get set.
24742 * Control.cs: When disposing use an async invoke to call shutdown
24743 code, so that thigns don't block on the finalizer thread. Also
24744 check if we even have a message loop before trying to send
24745 messages, if we don't then don't bother sending messages.
24746 - No more weak references for async methods
24747 * XplatUIDriver.cs: No more weak references for async methods.
24749 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24751 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
24752 returns two FontFamily with the same name
24754 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24756 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
24757 drawing disabled text. Instead using the ColorGrayText color
24759 2006-01-04 Jackson Harper <jackson@ximian.com>
24761 * TreeNode.cs: redraw the node when its image index is changed.
24763 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24765 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
24766 time I checked there are no others like it.
24768 2006-01-04 Jackson Harper <jackson@ximian.com>
24770 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
24771 this gives the behavoir I was looking for.
24772 * Control.cs: Special case Invoking EventHandlers, this matches MS
24773 and fixes part of bug #76326.
24775 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24777 * ThemeClearlooks.cs, FileDialog.cs:
24778 - Reflect the latest Theme class changes
24779 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
24782 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24784 * Theme.cs: Cache UI resource images and resize them if needed
24786 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24788 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
24789 is called. This fixes the crash in Nexxia when setting the font
24790 attributes in the chat. [However, RTF needs a look-over to make sure
24791 that all SelectionXXX methods handle the special case that selection
24792 is empty and therefore the change must be applied to all text starting
24793 at the cursor/selection start]
24795 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24797 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24798 XplatUIOSX.cs: Added SendMessage and PostMessage methods
24799 * X11Keyboard.cs: Switched to new way of calling PostMessage
24801 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24803 * Theme.cs: Added theme interface for images to allow the theme to
24804 control what images are used for things like FileDialog, MessageBox
24806 * MessageBox.cs: Now uses the new Theme icon/image interfaces
24808 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
24811 - Removed some dead code
24812 - Opening a recently used file does work now
24813 - Small UI enhancements
24816 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24818 * FileDialog.cs: Forgot too add __MonoCS__
24820 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24822 * FileDialog.cs: We are able to read recently used files now let's
24823 go on and write them.
24825 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
24827 * FileDialog.cs: Breathe some life into "last open"/"recently used"
24829 * MimeIcon.cs: Do a check for the top level media type also
24831 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24833 * ThemeClearlooks.cs:
24834 - Added CPDrawStringDisabled
24835 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
24836 some chars if the text doesn't fit into text_rect
24837 - DrawListViewItem: If View = View.LargeIcon center the image;
24838 rewrote the drawing of ListViewItem.Text if View =
24841 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24843 * MimeIcon.cs: Use default KDE icon theme if there is no
24844 "48x48" directory for the current icon theme, fixes #77114
24845 * Mime.cs: Disable not working and actually not used code.
24846 * ThemeWin32Classic.cs:
24847 - Replace "new SolidBrush" in GetControlBackBrush and
24848 GetControlForeBrush with ResPool.GetSolidBrush
24849 - Changed DrawListViewItem from private to protected virtual
24851 - Added form.MaximizeBox = true
24852 - Don't throw an exception if there is a broken symbolic link
24854 2005-12-23 Jackson Harper <jackson@ximian.com>
24856 * TabControl.cs: Give the panels focus, keyboard navigation is
24857 fixed so this works correctly now.
24858 - We need these key events also.
24859 * ToolBar.cs: Remove some of the poor mans double buffering.
24861 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
24863 * ComboBox.cs: The internal TextBox now returns the focus.
24865 2005-12-23 Jackson Harper <jackson@ximian.com>
24867 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
24869 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24871 * Control.cs: Removed debug code
24872 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24875 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24877 * Control.cs: When creating the control, update the Z-order after
24878 all it's children are created, too. (Fixes nexxia not showing
24881 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24883 * Control.cs: Do not update the anchoring distances if layout is
24884 suspended, instead do it once layout is resumed
24886 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24889 - After many hours of debugging, for both Jackson and
24890 myself, it turns out that it helps to set the parent of a control
24891 if you want to actually see it onscreen. In the spirit of that
24892 discovery, we're now setting the parent of the control and
24893 it's children when the control's handle is created. This fix
24894 will make Lutz Roeder's Reflector run happily.
24895 - now just creating the handle instead of the whole control when
24896 getting a graphics context for the control.
24898 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24900 * ScrollableControl.cs: When calculating the canvas, don't consider
24901 the scrollbar widths. Instead, predict if horizontal scrollbar
24902 will affect canvas when deciding on vertical display and vice versa.
24904 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24906 * RichTextBox.cs: Set default RTF font for documents that don't
24907 have a font table (Fixes #77076)
24909 2005-12-22 Jackson Harper <jackson@ximian.com>
24911 * TextBoxBase.cs: It's difficult to do, but you can have an empty
24912 clipboard. This prevents a NullRef in that case.
24913 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24914 clipboard. PRIMARY is for the currently selected text only. (We
24915 should implement PRIMARY at some point.
24917 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24919 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24920 a Unicode function with a structure that was defined in Ansi way.
24923 2005-12-21 Jackson Harper <jackson@ximian.com>
24925 * StatusBar.cs: Statusbar handles its fore/back colours on it's
24926 on. Because thats how it rolls. (and this avoids it using ambient
24928 * ThemeWin32Classic.cs: Use the proper back color for filling.
24929 * Menu.cs: Use the system menu bar color for drawing menu
24930 bars. Using the window back color will bring ambient colours into
24933 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
24935 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24936 Bitmaps were created and not disposed.
24938 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24940 * Control.cs (CreateControl): Don't do anything if the control is
24941 already created, otherwise we'd fire the OnCreated event more than
24944 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24946 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24947 will always match. Instead return -1. Fixes #76464.
24949 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24951 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24952 neither the beginning nor the end of the line (Fixes bug #76479)
24954 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24957 - ControlNativeWindow.ControlFromHandle(): Now handling situation
24958 where handle is invalid
24959 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24960 instead of slower linear search
24961 * NativeWindow.cs: Don't remove the window from the hashtable until
24962 after the driver has destroyed it (since the driver might use
24963 Control.FromHandle to lookup the control object
24964 * Hwnd.cs: Added DestroyPending property to track if a window is
24965 already destroyed as far as the driver is concerned and only hasn't
24966 yet notified the control
24968 - Activate(): Check if the window is still valid before using the
24970 - Implemented DestroyChildWindow() method to mark child windows as
24971 destroyed when a window is destroyed. This prevents situations
24972 where we might call an X method based on queued events for a
24973 window that already has been destroyed but we haven't yet pulled
24974 the destroy method from the queue.
24975 - Added a call to the new DestroyChildWindow() method to the drivers
24976 DestroyWindow code. Also now marking the destroyed window itself
24979 2005-12-20 Jackson Harper <jackson@ximian.com>
24982 * StatusBarPanel.cs: Don't calculate panel sizes on draw
24983 anymore. Just do them when needed, also track the rects of panels
24984 so that we can optimize refreshing more in the future.
24986 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
24988 * ColorDialog.cs: Fixed focus drawing in small color controls
24990 2005-12-19 Jackson Harper <jackson@ximian.com>
24992 * InternalWindowManager.cs:
24993 * MdiWindowManager.cs: Cleanup some coordinate system changes so
24994 moving windows works properly.
24996 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
24999 - Removed call to InitLayout() from SetBoundsCore(); doc says
25000 it's only called when a control is added to a container
25001 - Split InitLayout logic, moved to separate UpdateDistances() method
25002 since we need to perform those calculations more often than just
25003 when adding the control to a container. (Needed to fix #77022)
25004 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25005 - Reduced the OnBindingContextChanged events count, don't send them
25006 unless the control is created, we still aren't totally matching
25007 MS, but I can't quite figure out some of their rules
25009 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25011 * ThemeClearlooks.cs: Corrected distance between ProgressBar
25014 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25016 * ThemeClearlooks.cs:
25017 - Updated ProgressBar drawing
25018 - Corrected drawing of ScrollBars and scroll buttons
25019 - Some temporary fixes for minor pixel artefacts
25021 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
25024 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
25025 cause events to be sent in the same order as MS does.
25026 - Added ChangeParent() method to trigger various OnXXXChanged events
25027 that need to be fired when a parent changes (This is a reworking
25028 of the patch from r54254, with the X11 errors fixed)
25029 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
25030 since on MS we get OnLayoutChanged events when calling Clear()
25031 - Changed Enabled property to consider parent state as well, if a
25032 parent is not enabled, the control will not be either
25033 - Changed Parent property to simply call Controls.Add() since that
25034 now does all the work required, this way we avoid code duplication
25035 - Threw in a few OnBindingsContextChanged calls to try and match
25036 when MS sends them. We seem to send a few too many, though.
25037 - Added call to CreateControl when adding the control to a parent.
25038 We were never calling CreateControl. Still needs some work, in
25039 some places we treat HandleCreated and ControlCreated as equal,
25041 - Removed obsolete commented out code from UpdateZOrder()
25043 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25045 * ThemeClearlooks.cs: Updated TrackBar drawing.
25047 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25049 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
25051 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25053 * FileDialog.cs: Add the Help button and the open readonly
25054 checkbox only if needed
25056 2005-12-16 Jackson Harper <jackson@ximian.com>
25058 * Control.cs: Make sure we have an active menu before trying to
25059 process commands on it. Prevents menu-less forms from crashing
25060 when Alt is pressed.
25061 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
25063 * RichTextBox.cs: Expand statement to help out gmcs and fix the
25066 2005-12-16 Jackson Harper <jackson@ximian.com>
25068 * InternalWindowManager.cs: Don't translate tool windows screen
25069 coordinates. This fixes windows 'bouncing' around when being moved.
25071 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
25074 - MaxLength now treats 2^31-1 equal to unlimited length (this is
25075 not quite MS compatible, MS uses that number only for single line
25076 and 2^32-1 for multi-line, but I figure it won't hurt keeping
25078 - Now enforcing the MaxLength limit when entering characters
25079 - Added argument to internal Paste() method to track if it's called
25080 from programatically or via keyboard, since keyboard driven pastes
25081 need to enforce max-length
25082 - Added logic to Paste to only paste as many chars as MaxLength
25084 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
25086 - Added Length property to return number of characters in document
25087 - Added private CharCount property which only tracks actual chars
25088 in the document (no linefeeds) and fires event when CharCount
25090 - Added tracking of character count to all methods that alter it
25091 - Added LengthChanged event to allow applications to subscribe
25092 to any changes to the document
25094 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
25097 - Removed local password_char field (moved to TextBoxBase)
25098 - Now setting the document's password var when password is
25101 - Added password_char field (needed here so MultiLine can
25103 - Added logic to MultiLine property setter to set the document's
25104 variable when password display is allowed
25105 - Removed debug code and made some debug code conditional
25107 - Added RecalculatePasswordLine() method to handle special password
25109 - Added PasswordChar property, also added related tracking vars
25110 - Draw() method now uses local text var for grabbing text to draw,
25111 this var is set to line.text unless we're doing password display,
25112 then it is set to the pre-generated all-password-chars line
25113 - Added calling RecalculatePasswordLine() method for password lines
25115 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
25118 - Added Reparented property to allow tracking of Window Manager
25119 reparenting actions (which affect X/Y calculations of toplevel
25121 - Made ToString() print window handles in hex
25123 - AddConfigureNotify(): Now uses reparented state off Hwnd to
25124 determine if X/Y needs offsetting
25125 - AddConfigureNotify(): Fixed offset calculations
25126 - Now adds ReparentNotify messages into the queue
25127 - Now processes ReparentNotify messages and causes a
25128 WM_WINDOWPOSCHANGED message to be sent upstream if a window
25129 is reparented (as most likely it's X/Y coordinates are changed
25132 2005-12-14 Jackson Harper <jackson@ximian.com>
25134 * XplatUIX11.cs: Tool windows still need to respek focus.
25136 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
25138 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
25139 have a working release
25141 2005-12-13 Jackson Harper <jackson@ximian.com>
25143 * Form.cs: Update styles after setting the border style regardless
25144 of whether or not the window is using a window manager.
25146 2005-12-13 Jackson Harper <jackson@ximian.com>
25148 * Form.cs: We now hook into an internal window manager instead of just an
25149 MDI subsystem, this is so we can have properly behaving tool windows.
25150 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
25151 * InternalWindowManager.cs: New internal class that acts as a
25152 window manager for tool windows and as a base for mdi windows.
25153 * MdiWindowManager.cs: New class that acts as a window manager for
25156 2005-12-12 Jackson Harper <jackson@ximian.com>
25158 * Control.cs: Updates so we match behavoir for for implicit
25159 controls. Fixes explosions in MDI.
25161 2005-12-12 Jackson Harper <jackson@ximian.com>
25163 * Control.cs: Implement Invalidate (Region).
25165 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
25168 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
25169 the same events as MS does. MS fires events for each property
25170 except, for unknown reasons, Cursor, when the control is reparented.
25171 I can't seem to totally match add/remove since MS also fires some
25172 VisibleChanged events, which makes no sense. Consolidated the
25173 parenting code into a separate method so it can be called from
25174 both Add and Remove. set_Parent no longer needs any special logic
25175 as it calls the parent's add method which implicitly fires
25177 - Removed some obsolete code and debug output
25178 - Enabled state is inherited from parents, if this is enabled
25180 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
25182 * Form.cs: Removed commented out code
25184 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
25187 - Added internal version of Invoke, with additional argument
25188 indicating if we're calling it from a Dispose() handler. That
25189 way we can avoid BeginInvoke throwing an exception if we're
25190 calling for an already destroyed window.
25191 - Added a dispose argument to BeginInvokeInternal, and made the
25192 check if a valid window handle chain exists conditional on
25193 it not being a dispose call
25194 - Removed code in DestroyHandle to destroy our children. Since we
25195 now handle the WM_DESTROY message we will catch all our children
25197 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
25199 - Added a field to track the application context of the form.
25200 - No need to set closing variable as response to WM_CLOSE, instead
25201 we destroy the window. We also call PostQuitMessage if the form
25202 has an application context (which makes it the main app form,
25203 which, when closed terminates the app)
25205 - Dropped Exit() method, it's naming was confusing
25206 - Added PostQuitMessage() which causes GetMessage to return false
25207 once the message queue is empty
25208 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
25210 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
25211 no longer a valid XplatUI method, but left it in since it's used
25212 internally. Added empty PostQuitMessage() method.
25213 * MenuAPI.cs: Replaced call to Exit() with call to
25214 PostQuitMessage, even though this is probably no longer needed.
25215 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
25216 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
25218 - Replaced call to XplatUI.Exit() with PostQuitMessage()
25219 - Removed old debug code that would call XplatUI for exception
25220 display, enabled standard exception handling (Still not enabled
25221 though, until NativeWindow's ExternalExceptionHandler define
25224 - Added internal method to allow control to update NativeWindow
25225 after a window has been destroyed
25226 - Added handling of already destroyed windows when calling i
25228 - Added removal of handle from list on ReleaseHandle
25230 - Dropped GetMessageResult var and related code
25231 - Added PostQuitState to field to track if PostQuitMessage has been
25233 - Dropped Exit() method
25234 - Added PostQuitMessage() method
25235 - GetMessage now will return false if PostQuitState is set and no
25236 more messages are in the queue.
25237 - Expose handler will no longer generate WM_PAINT messages if we are
25238 in PostQuitState since it's very likely any windows have already
25239 been destroyed, and since Hwnd won't get updated until we have
25240 processed the DestroyNotify we'd be causing X errors.
25242 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25244 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
25245 Thanks to Mike for pointing out the err of my ways.
25247 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25249 * Control.cs(PreProcessMessage): Moved menu handling back, but
25250 after all other key handling, to match MS (who handles Menu in
25252 * Menu.cs (WndProc): Removed my brainfart
25254 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25256 * Control.cs(PreProcessMessage): Removed special menu handling
25257 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
25259 2005-12-07 Mike Kestner <mkestner@novell.com>
25261 * Control.cs : special case SYSKEYUP so that we can adjust keynav
25262 state according in tracker.
25263 * Menu.cs : promote tracker field to base class and provide a tracker
25264 lookup capability. Add/Remove shortcuts dynamically if the top menu
25265 has a tracker. Unparent items that are removed from the collection.
25266 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
25267 * Theme*.cs: add always_show_hotkeys field to support configurability
25268 of mnemonic display. win32 doesn't show mnemonics until Alt is
25271 2005-12-07 Jackson Harper <jackson@ximian.com>
25273 * MdiChildContext.cs: Use Control.ResetCursor.
25274 * Control.cs: ResetCursor needs to set the property so that the
25275 correct XplatUI call gets made.
25277 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25279 * Control.cs: More fixes to make our key events match MS. We
25280 were not setting the modifier state on KeyData, and we were
25281 not generating any events when Alt was pressed with a key
25282 since handling of WM_SYSxxx was missing for the OnKey methods.
25284 2005-12-07 Jackson Harper <jackson@ximian.com>
25286 * MdiChildContext.cs: reenable the sizing code.
25287 - When the mouse leaves a window reset its cursor.
25289 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
25291 * ThemeClearlooks.cs: Reflect latest Hwnd changes
25293 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25295 * Hwnd.cs: Now using the theme 3d bordersize to calculate
25296 widths of Fixed3D borders
25298 2005-12-07 Jackson Harper <jackson@ximian.com>
25300 * MdiClient.cs: Fix warnings. Earn Mike's love.
25302 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
25304 * ThemeClearlooks.cs:
25305 - Adjusted mouse over button color
25306 - Added first parts of CheckBox drawing
25307 - Added correct color for selected text background
25308 - Fixed ComboBox drawing
25309 - Added CPDrawBorder3D and CPDrawBorder
25311 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25313 * XplatUIX11.cs: Added call to XBell for AudibleAlert
25315 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25317 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25318 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
25319 alert users via sound. We could add an enum arg with different
25320 types of alerts in the future
25322 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25324 * Control.cs: Fix behaviour problems pointed out by Mike
25326 2005-12-05 Mike Kestner <mkestner@novell.com>
25328 * StatusBarPanel.cs: add Invalidate method and hook it into all the
25329 prop setters. Calls parent.Refresh for now, but could be maybe be
25330 optimized with an internal method on StatusBar at some point.
25333 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
25335 * RichTextBox.cs: Implemented get_SelectionColor
25337 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
25339 * ThemeClearlooks.cs:
25340 - Removed dead code
25341 - Draw black button border only if button is Form.AcceptButton
25342 - Draw correct button color for pressed RadioButton if the mouse
25343 has entered the button
25344 - Updated ProgressBar drawing!
25345 - Updated CPDrawSizeGrip drawing
25346 - Updated StatusBarPanel drawing
25348 2005-12-05 Mike Kestner <mkestner@novell.com>
25350 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
25351 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
25353 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
25355 * ThemeClearlooks.cs: Initial check-in, activate with
25356 export MONO_THEME=clearlooks
25357 * ThemeEngine.cs: Added ThemeClearlooks
25359 2005-12-03 Mike Kestner <mkestner@novell.com>
25361 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
25364 2005-12-02 Jackson Harper <jackson@ximian.com>
25366 * Form.cs: If the child form has no menu the default main menu is
25367 used as the active menu.
25369 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25371 * ListBox.cs: Check if any items exist before trying to resolve
25372 coordinates into items
25374 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25376 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
25377 as the second color for the background hatch
25379 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25381 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
25382 * RichTextBox.cs: FormatText position arguments are 1-based, now making
25383 sure that what we pass to FormatText is always 1-based. Fixes #76885
25385 2005-11-29 Miguel de Icaza <miguel@novell.com>
25387 * NumericUpDown.cs (EndInit): When we are done initializing,
25388 reflect any updates on the UI.
25390 2005-12-02 Jackson Harper <jackson@ximian.com>
25392 * ImplicitHScrollBar.cs:
25393 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
25394 their container controls.
25395 * TreeView.cs: Use the new implicit scrollbars.
25397 2005-12-02 Jackson Harper <jackson@ximian.com>
25399 * TreeView.cs: Make top_node internal so the TreeNodeCollections
25401 * TreeNodeCollection.cs: If we remove the topnode we need to
25402 update topnode to the next node in line.
25403 - When clearing nodes go through the same process as removing
25404 them, so they get depareneted and checked if they are top node.
25406 2005-12-01 Jackson Harper <jackson@ximian.com>
25408 * TreeView.cs: When imagelists are used the image area is
25409 selectable as well as the text.
25410 - If there are no selected nodes select the first one.
25411 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
25412 so don't do it more then we need to.
25414 2005-12-01 Jackson Harper <jackson@ximian.com>
25416 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
25417 that arrows can be scaled.
25419 2005-12-01 Jackson Harper <jackson@ximian.com>
25421 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
25422 fail. Patch by Dieter Bremes
25424 2005-11-30 Jackson Harper <jackson@ximian.com>
25426 * Form.cs: Property is 2.0 only
25427 * PrintDialog.cs: Signature fix.
25429 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25432 - No longer artificially moves text 2 pixels down (now that we have
25433 borders this is no longer needed)
25434 - Added calcs for left, hanging and right indent
25436 2005-11-23 Mike Kestner <mkestner@novell.com>
25438 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
25440 2005-11-30 Jackson Harper <jackson@ximian.com>
25442 * MdiChildContext.cs: Set the cloned menus forms, as these don't
25443 get cloned as part of CloneMenu ().
25444 * Menu.cs: Make sure the parent of the items get set correctly
25445 when they are added. And the owners are notified of the changes.
25446 * Form.cs: Create an ActiveMenu property, so that when MDI is used
25447 we can change the menu being displayed/handled by the form without
25448 changing the menu assosciated with the form.
25449 - Don't let Mdi children draw/handle menus.
25451 2005-11-30 Jackson Harper <jackson@ximian.com>
25453 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
25454 a MenuChanged event. Just to make the API a little more
25457 * MenuItem.cs: Use the new OnMenuChanged
25458 * MdiChildContext.cs: Handle menu merging.
25459 * Form.cs: Implement MergedMenu.
25461 2005-11-30 Jackson Harper <jackson@ximian.com>
25463 * Menu.cs: We were misusing Add. Add goes behind the specified
25464 index according to the docs, and does not replace the specified
25465 index. So I added an Insert method.
25467 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25469 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
25470 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
25472 * RichTextBox.cs: Added calls to base for DnD events
25474 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
25477 - Fixed drag-selection related crash; style fixes
25478 - Implemented undo class
25479 o Implemented method to capture document state for specified
25480 range in document tree
25481 o Implemented method to restore captured document state
25482 o Implemented cursor tracking
25483 o Implemented basic undo stack
25484 - Added undo cursor tracking to methods altering cursor location
25485 - Added undo tracking to selection deletion (still missing
25486 other text-altering hookups)
25488 - Added SelectionLength property
25489 - Implemented CanPaste()
25490 - Implemented Paste()
25491 - Added missing protected methods
25492 - Fixed RTF->Document conversion; now uses font index 0 and color
25493 index 0 as the default font for the parsed text
25494 - Fixed RTF<->Document font size translation
25495 - Fixed RTF generation, now properly handles cross-tag boundaries
25496 for single line selection
25497 - No longer always appends blank line to generated RTF
25499 - Added missing attributes
25500 - Hooked up undo-related methods
25502 - Implemented Copy()
25503 - Implemented Paste()
25504 - Implemented Cut()
25505 - Fixed caret mis-behaviour on backspace across line-boundaries
25507 2005-11-29 Jackson Harper <jackson@ximian.com>
25509 * MdiClient.cs: Add a method for activating mdi children. Very
25510 basic right now. I imagine someday it might need more girth.
25511 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
25512 children windows names are added to the menu item.
25513 * ThemeWin32Classic.cs: Draw the arrow if the item is an
25514 mdilist. This happens regardless of whether or not there are any
25515 mdi windows to see in the list, and according to my tests happens
25516 before the items are even added. Also happens if there isn't even
25517 an mdi client to get windows from.
25519 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
25521 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
25522 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
25524 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
25526 * DataGridTableStyle.cs:
25527 - Create always the styles for the missing columns even if they are
25528 provided by the user (not default table style)
25531 - Fixes SetDataBinding (always re-attach source)
25532 - Fixes SetNewDataSource (only clear styles if they are not for
25534 - Expands OnTableStylesCollectionChanged to handle style refresh
25535 and remove properly
25537 2005-11-29 Jackson Harper <jackson@ximian.com>
25539 * FileDialog.cs: Implement missing bits, remove some dead
25541 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
25542 creation of the panel so that the options set on the dialog are
25543 seen when the panel is created.
25544 * TreeView.cs: raise a click when items are clicked.
25546 2005-11-29 Jackson Harper <jackson@ximian.com>
25548 * MdiClient.cs: Pass some signature methods through to base.
25550 2005-11-28 Jackson Harper <jackson@ximian.com>
25552 * ListView.cs: Raise the click event when items are clicked.
25554 2005-11-28 Jackson Harper <jackson@ximian.com>
25556 * MdiClient.cs: Make this algorithm even more beautiful. And fix
25559 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
25561 * ThemeNice.cs: - Removed 1 pixel bitmaps
25562 - Use SmoothingMode.AntiAlias where it makes sense
25563 (ScrollButton arrow for example)
25564 - Enhanced Button focus drawing
25565 - Fixed ComboBox drawing (no artefacts anymore, focus
25566 rectangle is back again, reduced size of ComboButton, etc.)
25567 - Fixed RadioButton focus drawing for Appearence.Button
25568 - Slight ScrollButton redesign
25569 - Some LinearGradientBrush size fixes
25570 - GroupBoxes have now rounded edges
25571 - Fixed StatusBar drawing
25573 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
25575 * ThemeNice.cs: - Remove dead code
25576 - use correct background colors for menus, etc.
25577 - Fake pixel drawing with 1 pixel bitmaps
25579 2005-11-24 Jackson Harper <jackson@ximian.com>
25581 * MdiClient.cs: Size the scrollbars when resizing the window.
25582 - Resize the maximized windows when the client is resized
25583 * Form.cs: Make the child context available
25585 2005-11-23 Jackson Harper <jackson@ximian.com>
25587 * MdiChildContext.cs: Don't size windows if they are maximized.
25589 2005-11-23 Mike Kestner <mkestner@novell.com>
25591 * ContextMenu.cs: use MenuTracker.
25592 * Control.cs: remove menu handle usage.
25593 * Form.cs: remove menu handle usage.
25594 * Hwnd.cs: remove menu handle usage.
25595 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
25596 motion and clicks to the new Tracker handlers.
25597 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
25599 * MenuAPI.cs: refactored to combine popup and menubar event handling.
25600 Killed the MENU and MENUITEM data types and associated collections
25601 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
25602 MenuTracker class that exposes the leftovers from the old MenuAPI
25603 static methods. Restructured Capture handling so that only one grab is
25604 done for the entire menu hierarchy instead of handing off grabs to
25605 submenus. Tracker now has an invisible control to Capture when active.
25606 * MenuItem.cs: add sizing accessors, kill Create
25608 * Theme.cs: remove menu handle and MENU(ITEM) usage.
25609 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
25610 MENU(ITEM). remove menu handle usage, use Menu directly.
25611 * XplatUIDriver.cs: remove menu handle usage.
25612 * XplatUIOSX.cs: remove menu handle usage.
25613 * XplatUIWin32.cs: remove menu handle usage.
25614 * XplatUIX11.cs: remove menu handle usage.
25616 2005-11-22 Jackson Harper <jackson@ximian.com>
25618 * Hwnd.cs: Don't compute the menu size for
25619 DefaultClientRectangle.
25620 - Reenable menu sizes being computed for GetClienRectangle.
25621 * Form.cs: Remove comment of trechery
25623 2005-11-22 Jackson Harper <jackson@ximian.com>
25625 * Hwnd.cs: The adjustments for the menu bar are made when it is
25626 attached to the form.
25628 2005-11-19 Jackson Harper <jackson@ximian.com>
25630 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
25631 (just like on windows).
25633 2005-11-19 Jackson Harper <jackson@ximian.com>
25635 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
25636 use real buttons anymore because they are in non client area. The
25637 one TODO here is that I need to somehow invalidate a section of
25638 the non client area.
25640 2005-11-18 Jackson Harper <jackson@ximian.com>
25642 * Control.cs: Put the enum check back in now that MDI doesnt have
25643 to use this to set border styles.
25644 * Form.cs: Only set mdi child windows borders if the handle has
25646 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
25647 this directly on to the driver.
25648 - Get the move start position before adjusting for the titlebar
25649 height, this fixes the windows "skipping" when they are first
25652 2005-11-18 Jackson Harper <jackson@ximian.com>
25654 * XplatUIX11.cs: Just compute the mdi borders separately as they
25655 don't totally match up with normal form borders.
25657 2005-11-18 Jackson Harper <jackson@ximian.com>
25659 * Control.cs: Set WS_ styles for borders, so that the driver does
25660 not have to retrieve the control instance to figure out what kind
25661 of borders it should have.
25662 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
25663 driver can know its an mdi child easily.
25664 * XplatUIX11.cs: Get the border styles and whether the window is
25665 MDI from the Styles and ExStyles params instead of having to get a
25666 control. This prevents a chicken and egg problem.
25668 2005-11-18 Jackson Harper <jackson@ximian.com>
25670 * MdiClient.cs: Fix typo so scrollbars show up correctly.
25672 2005-11-18 Jackson Harper <jackson@ximian.com>
25674 * MdiClient.cs: Calculate when to add and remove scrollbars
25676 * MdiChildContext.cs: Adjust the y position to take the titlebar
25678 - No height for FormBorderStyle.None
25680 2005-11-18 Jackson Harper <jackson@ximian.com>
25682 * Control.cs: Allow non enum values to be used for
25683 InternalBorderStyle. MDI does this to set a special border style.
25684 - New utility methods for converting points to/from client coords
25685 - Add the newly created control to the Controls collection before
25686 updating its style. This way UpdateStyle can walk the control
25687 heirarchy to find the control if needed.
25688 so I don't need to create a new Point object all the time.
25689 * Form.cs: Let MDI windows handle their border styles.
25690 - Set styles on MDI windows so the correct title style is derived.
25691 * MdiChildContext.cs: Move all the painting and window handling
25692 into the non client area.
25693 - Use correct sizing and put correct buttons on frames based on
25694 the FormBorderStyle.
25695 - Notify the mdi client about scrolling
25696 - Need to handle the buttons ourselves now, because they are all
25697 in non client areas and we can't add controls there.
25698 * MdiClient.cs: Halfway to scrolling, this implementation is
25699 somewhat broken though, we need to check to make sure other
25700 windows aren't causing scrolling before removing the bars. Also
25701 the bars need to be drawn on top, maybe I can switch implicit
25702 controls to be on top.
25703 * Hwnd.cs: caption_height and tool_caption_height are now
25704 properties of an hwnd, this way they can be set by the driver
25705 based on the type of window they are. In X11 the window manager
25706 handles the decorations so caption_height is zero unless its an
25708 - Add 3 pixel borders for MDI windows (0xFFFF).
25709 - Get rid of some code duplication, have DefaultClientRectanle
25710 just call GetClientRectangle.
25711 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
25713 - Set border styles differently for mdi windows.
25714 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
25717 2005-11-15 Mike Kestner <mkestner@novell.com>
25719 * Menu.cs: when adding an item to the collection, if item is already
25720 parented, remove it from the parent.
25722 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
25724 * X11DesktopColors.cs: Added KDE support
25726 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
25729 - Clipboard methods now can translate Rtf format
25730 - No longer removes clipboard contents whenever a new format is added
25731 to allow placing multiple formats on the clipboard
25732 * Clipboard.cs: Clipboard now supports getting a IDataObject and
25733 will place all formats contained in it onto the clipboard. Also
25734 now cleans the clipboard before placing a new object onto it
25736 - Implemented set_Rtf
25737 - Implemented set_SelectedRtf
25738 - Created InsertRTFFromStream() method to allow single code base
25739 for all properties and methods that insert RTF into document
25740 - Removed debug output
25742 - Fixed Delete(int) to fix up line numbers
25743 - Fixed ReplaceSelection to combine start and end line
25744 - Fixed serious DeleteChars bug that would leave the document tree
25746 - Improved DumpTree with several logic checks to detect broken
25748 - Removed debug lines
25749 - Fixed Caret.WordForward/WordBack moving code, now always also
25750 updates caret.tag (fixes crash when word-selecting across tag
25751 boundaries via keyboard)
25752 - Added Insert() method for inserting multiline text into documents
25753 - Fixed DeleteChars() calculation errors that would cause a broken
25754 tag chain with multiple tag lines
25755 - DeleteChars() no longer crashes on multi-tag lines if not all tags
25756 - Split() no longer moves caret if split is at caret location
25757 - ReplaceSelection() now updates the cursor and re-displays it
25758 - ReplaceSelection() now uses new Insert() method to avoid code
25760 - FormatText() can now handle formatting partial lines
25762 - Append now uses new TextControl.Insert() method (this avoids
25764 - Implemented Ctrl-X (Cut) (
25765 - Implemented Ctrl-C (Copy)
25766 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
25767 regeneration when pasting text; roundtripping Copy&Paste within
25768 edit control still fails due to some calculation bugs in GenerateRTF)
25769 - The Delete key will now remove the current selection if it is visible
25770 * TextBox.cs: Removed debug lines
25771 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
25772 driver to be initialized and can't therefore be done via a static ctor)
25774 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
25776 * TextControl.cs: Added backend code for finding char arrays and strings
25778 - Added mouse wheel scroll support
25779 - Added support for VScroll and HScroll events
25781 - Implemented all seven Find() variants
25782 - Implemented GetCharFromPosition()
25783 - Implemented GetCharIndexFromPosition()
25784 - Implemented GetLineFromIndex()
25785 - Implemented GetPositionFromCharIndex();
25786 - Implemented SaveFile for PlainText and UnicodeText
25787 - Fixed set_Font, now setting a new font applies that font to
25789 - Implemented generic Document to RTF converter
25790 - Implemented SaveFile for RichText format (still missing unicode
25791 conversion for non-ansi chars)
25792 - Implemented get_Rtf
25793 - Implemented get_SelectedRtf
25795 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
25797 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
25798 to allow any captures to be released before triggering OnClick. This
25799 way a click handler may capture the mouse without interference.
25800 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
25801 This way we send them even though X may not allow a grab (if the window
25802 isn't visible, for example)
25804 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
25806 * DataGridViewRowEventArgs.cs: DataGridView implementation
25807 * DataGridViewElement.cs: DataGridView implementation
25808 * DataGridViewComboBoxCell.cs: DataGridView implementation
25809 * DataGridViewDataErrorContexts.cs: DataGridView implementation
25810 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
25811 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
25812 * ImageLayout.cs: DataGridView implementation
25813 * DataGridViewComboBoxColumn.cs: DataGridView implementation
25814 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
25815 * DataGridViewSelectionMode.cs: DataGridView implementation
25816 * IDataGridViewEditingControl.cs: DataGridView implementation
25817 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
25818 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
25819 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
25820 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
25821 * DataGridViewColumnSortMode.cs: DataGridView implementation
25822 * DataGridView.cs: DataGridView implementation
25823 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
25824 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
25825 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
25826 * Padding.cs: DataGridView implementation
25827 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
25828 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
25829 * DataGridViewRowEventHandler.cs: DataGridView implementation
25830 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
25831 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
25832 * DataGridViewButtonCell.cs: DataGridView implementation
25833 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
25834 * DataGridViewEditMode.cs: DataGridView implementation
25835 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
25836 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
25837 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
25838 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
25839 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
25840 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
25841 * DataGridViewCellEventHandler.cs: DataGridView implementation
25842 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
25843 * DataGridViewCellStyleConverter.cs: DataGridView implementation
25844 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
25845 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
25846 * DataGridViewColumnEventArgs.cs: DataGridView implementation
25847 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25848 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25849 * QuestionEventArgs.cs: DataGridView implementation
25850 * IDataGridViewEditingCell.cs: DataGridView implementation
25851 * DataGridViewTriState.cs: DataGridView implementation
25852 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25853 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25854 * DataGridViewColumnCollection.cs: DataGridView implementation
25855 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25856 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25857 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25858 * DataGridViewColumn.cs: DataGridView implementation
25859 * DataGridViewCellBorderStyle.cs: DataGridView implementation
25860 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25861 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25862 * DataGridViewRow.cs: DataGridView implementation
25863 * DataGridViewImageCellLayout.cs: DataGridView implementation
25864 * DataGridViewImageCell.cs: DataGridView implementation
25865 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25866 * DataGridViewCheckBoxCell.cs: DataGridView implementation
25867 * DataGridViewHeaderCell.cs: DataGridView implementation
25868 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25869 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25870 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25871 * DataGridViewTextBoxColumn.cs: DataGridView implementation
25872 * QuestionEventHandler.cs: DataGridView implementation
25873 * DataGridViewCellStyleScopes.cs: DataGridView implementation
25874 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25875 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25876 * DataGridViewCell.cs: DataGridView implementation
25877 * DataGridViewCellEventArgs.cs: DataGridView implementation
25878 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25879 * DataGridViewCellStyle.cs: DataGridView implementation
25880 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25881 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25882 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25883 * TextFormatFlags.cs: DataGridView implementation
25884 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25885 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25886 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25887 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25888 * DataGridViewButtonColumn.cs: DataGridView implementation
25889 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25890 * HandledMouseEventArgs.cs: DataGridView implementation
25891 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25892 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25893 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25894 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25895 * DataGridViewRowCollection.cs: DataGridView implementation
25896 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25897 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25898 * DataGridViewHitTestType.cs: DataGridView implementation
25899 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25900 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25901 * DataGridViewColumnEventHandler.cs: DataGridView implementation
25902 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25903 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25904 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25905 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25906 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25907 * DataGridViewContentAlignment.cs: DataGridView implementation
25908 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25909 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25910 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25911 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25912 * DataGridViewPaintParts.cs: DataGridView implementation
25913 * DataGridViewCellCollection.cs: DataGridView implementation
25914 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25915 * DataGridViewImageColumn.cs: DataGridView implementation
25916 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25917 * DataGridViewElementStates.cs: DataGridView implementation
25918 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25919 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25920 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25921 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25922 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25923 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25924 * DataGridViewRowHeaderCell.cs: DataGridView implementation
25925 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25926 * DataGridViewTextBoxCell.cs: DataGridView implementation
25927 * DataGridViewBand.cs: DataGridView implementation
25928 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25929 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25930 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25931 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25932 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25933 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25934 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25935 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25936 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25937 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25938 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25940 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
25942 * ThemeWin32Classic.cs:
25943 - Draw the outside focus rectangle around buttons
25944 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25945 doesn't use end caps for every dash of a line anymore. This
25946 workaround ignores the forecolor.
25948 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
25950 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25953 2005-11-07 Jackson Harper <jackson@ximian.com>
25955 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25957 2005-11-07 Jackson Harper <jackson@ximian.com>
25959 * ScrollableControl.cs: Calculate the maximum and change vars
25960 (more) correctly so that scrollbars appear as a sensible size.
25962 2005-11-04 Jackson Harper <jackson@ximian.com>
25964 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25966 * TreeView.cs: When the tree is sorted null out the top_node so
25967 that it is recalculated.
25968 - Use dotted lines instead of dashed lines to match MS better.
25970 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
25973 - Implements key search for items. Useful when browsing files with FileDialog
25974 - When changing view mode or when clear the items reset scrollbar positions
25976 2005-11-04 Jackson Harper <jackson@ximian.com>
25978 * CurrencyManager.cs: Implement the MetaDataChanged event, the
25979 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25980 as to what the method may do as there is no real way of creating a
25981 derived CurrencyManager and calling the method.
25983 2005-11-03 Jackson Harper <jackson@ximian.com>
25985 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
25986 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
25987 method which seems to just be used internally to refresh the tabs.
25989 2005-11-03 Jackson Harper <jackson@ximian.com>
25991 * TabControl.cs: Implement the remove method. Fix some broken
25994 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25996 * DateTimePicker.cs:
25997 - Added missing DateTimePickerAccessibleObject class
25998 - Added missing events
25999 - Added OnFontChanged method
26000 * Form.cs: Added missing attributes
26001 * TreeView.cs: Added missing attributes
26003 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26005 * GridItemCollection.cs: Fix signatures
26007 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26009 * XplatUI.cs: Updated build rev/date
26010 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
26011 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26012 * Application.cs: Trigger context-specific ExitThread events
26014 2005-11-03 Jackson Harper <jackson@ximian.com>
26018 * GridTableStylesCollection.cs:
26023 * MonthCalendar.cs: Signature fixes
26025 2005-11-03 Jackson Harper <jackson@ximian.com>
26027 * TreeNodeCollection.cs: Remove should not be virtual.
26028 * TreeView.cs: Implement the last of the missing methods.
26030 2005-11-03 Jackson Harper <jackson@ximian.com>
26032 * TreeNodeConverter.cs: Implement to get off my class-status back.
26034 2005-11-03 Jackson Harper <jackson@ximian.com>
26036 * TreeView.cs: Hookup the bits for drag and drop.
26037 * TreeNode.cs: Don't cache the tree_view or index anymore, now
26038 that nodes can be moved from tree to tree easily this just causes
26039 all sorts of problems.
26040 * TreeNodeCollection: Don't need to give treenodes an index and
26041 treeview anymore when they are added, these are computed on the
26042 fly. Also make sure to remove a node before its added.
26044 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26047 - Added CaretSelection enum
26048 - Added comparison methods to Marker struct, makes selection code
26050 - Added SelectionStart and SelectionEnd as 'moveable' location for
26051 the CaretDirection enum and handler
26052 - Added selection_prev variable to track optimized invalidation for
26053 word and line selection
26054 - Added SelectionVisible property (returns true if there is a valid
26056 - Switched CaretHasFocus to only display the caret if there is no
26058 - Avoiding StringBuilder.ToString to retrieve a single char, instead
26059 using the direct character index; should be much faster
26060 - Added various conditional debug statements
26061 - Fixed invalidation calculation for selection ranges
26062 - Added ExpandSelection() method to support word and line selection
26063 - Switched SetSelectionToCaret to use new Marker compare overloads
26064 - Added central IsWordSeparator() method to determine word
26065 separators/whitespace and FindWordSeparator() to streamline common
26066 usage of IsWordSeparator()
26068 - Removed unneeded grabbed variable, it was just mirroring
26070 - No longer firing OnTextChanged event when Text setter is called,
26071 since the base will fire the event for us
26072 - Added handling of Ctrl-Up/Down selection
26073 - Added handling of Shift-Cursorkey selection
26074 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
26076 - Added handling of Shift and Ctrl-Shift-Home/End selection
26077 - Removed some debug output
26078 - Added handling for single/double/tripple-click to place caret/
26079 select word/select line respectively (Fixes bug #76031)
26080 - Added support for drag expansion of word/line selection
26081 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
26084 2005-11-02 Jackson Harper <jackson@ximian.com>
26086 * X11Dnd.cs: If the drag is going to and from a MWF window just
26087 copy the data instead of sending it out through the X Selection
26090 2005-11-02 Jackson Harper <jackson@ximian.com>
26093 * XplatUIX11.cs: When in a drag we don't want motion notify
26094 messages to get passed on to the other controls. This prevents
26095 mouse move messages from showing up in the drag source.
26097 2005-11-02 Jackson Harper <jackson@ximian.com>
26099 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
26100 the correct button is release to end a drag.
26101 * XplatUIX11.cs: Make the button state internal so the drag system
26102 can access it. Dragging needs to know about all button releases,
26103 not just left button.
26105 2005-11-02 Miguel de Icaza <miguel@novell.com>
26107 * Form.cs (Icon): If the icon is null, reset the icon to the
26110 * Cursor.cs: When writing the AND-mask bitmap do not include the
26111 number of colors, but hardcode those to two (black and white),
26112 fixes the loading of color cursors (Paint Dot Net).
26114 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
26115 turn off autoscaling.
26117 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
26119 2005-11-02 Jackson Harper <jackson@ximian.com>
26121 * X11Dnd.cs: Make sure to send a status message if the pointer
26122 enters a control that can not accept a drop, otherwise the cursor
26123 isn't updated correctly. Also tried to compress the lines of code
26126 2005-11-02 Jackson Harper <jackson@ximian.com>
26128 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
26129 set actions correctly. This isn't perfect as XDND and win32 have
26130 some differences on how you allow actions. I'll clear this up by
26131 adding a path for drag from MWF to MWF windows.
26132 * XplatUIX11.cs: Hook into the dnd system.
26134 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
26136 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
26137 previously shown but they are no longer need it. Very obvious when
26138 browsing files with FileDialog.
26140 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
26142 * Control.cs: We always need to call OnPaintBackground. We pretty much
26143 ignore AllPaintingInWmPaint and always do the painting there, whether
26144 it's set or not, since we always ignore the WM_ERASEBKGND message
26145 (which we don't generate on X11). This fixes #76616.
26146 * Panel.cs: Removed unneeded background painting. This happens properly
26147 in Control.cs already
26149 2005-10-31 Mike Kestner <mkestner@novell.com>
26151 * Menu.cs: Add items to collection before setting their index.
26152 * MenuItem.cs : add range checking with ArgumentException like MS.
26155 2005-10-31 Jackson Harper <jackson@ximian.com>
26157 * ListBox.cs: Invalidate if the area is visible at all not just
26158 contained in the visible rect. Fixes unselection of semi visible
26161 2005-10-31 Jackson Harper <jackson@ximian.com>
26163 * Control.cs: Consistently name the dnd methods. Make them
26164 internal so we can override them to match some MS behavoir
26166 * Win32DnD.cs: Use the new consistent names.
26168 2005-10-31 Jackson Harper <jackson@ximian.com>
26170 * TreeView.cs: Don't draw the selected node when we lose focus.
26172 2005-10-31 Jackson Harper <jackson@ximian.com>
26174 * X11Dnd.cs: We still need to reset the state even though a full
26175 reset isn't being done, otherwise status's still get sent all over
26178 2005-10-31 Jackson Harper <jackson@ximian.com>
26180 * Control.cs: Make the dnd_aware flag internal so the dnd
26181 subsystem can check it. Catch exceptions thrown in dnd handlers to
26183 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
26184 * X11Dnd.cs: Handle null data in the converters. Set the XDND
26185 version when sending a XdndEnter. Use the control/hwnd dnd_aware
26186 flags to reduce the number of dnd enters/status's sent.
26188 2005-10-31 Jackson Harper <jackson@ximian.com>
26190 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
26192 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
26194 * PictureBox.cs: Fixes 76512
26196 2005-10-28 Jackson Harper <jackson@ximian.com>
26198 * X11Dnd.cs: Early implementation to support winforms being a drag
26199 source for data on X11. Also restructured the converters so they
26200 can go both ways now.
26201 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
26203 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
26205 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
26208 2005-10-27 Jackson Harper <jackson@ximian.com>
26210 * TreeNode.cs: Implement serialization so my DnD examples will work.
26212 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
26214 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
26215 TreeView.cs: Don't dispose objects that are not owned.
26217 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
26219 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
26220 should retrieve the current cursor and report that, but XplatUI
26221 doesn't (yet) have an interface for that (and I'm not sure I even
26223 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
26224 until any message loop processing is done (and the WM_SETCURSOR
26225 replaces the cursor to the proper one)
26227 - Fixed override behaviour, we can't set the cursor globally on X11,
26228 just for our windows.
26229 - Invalidating the System.Drawing X11 display handle when we are
26231 * Control.cs: Fix to make csc happy
26233 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
26236 - get_Text: Add last line (without trailing newline) to returned
26237 value (Fixes 76212)
26238 - get_TextLength: Count last line in returned length
26239 - ToString: Call Text property instead of duplicating code
26241 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
26243 * ImageList.cs: Dispose ImageAttributes objects.
26245 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
26247 * ImageList.cs: Use attribute constructors with less arguments where
26250 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
26252 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
26253 Use typeof instead of strings when assembly is referenced. Added
26254 some more comments.
26256 2005-10-21 Jackson Harper <jackson@ximian.com>
26258 * ListView.cs: Raise a double click event. Also tried to somewhat
26259 fix when the selectedindexchanged event is raised. Its still
26262 2005-10-21 Jackson Harper <jackson@ximian.com>
26264 * TreeView.cs: New method to invalidate the plus minus area of a
26265 node without invalidating the whole node (maybe this can be used
26266 in some more places).
26267 * TreeNodeCollection.cs: When adding to an empty node we need to
26268 invalidate its plus minus area so the little block shows up.
26270 2005-10-21 Jackson Harper <jackson@ximian.com>
26272 * TreeView.cs: Make sure that when we invalidate a node the bounds
26273 are big enough to cover the selected box and the focus
26274 rectangle. Use a different colour for the lines connecting nodes
26275 so they show up with all themes.
26277 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26279 * NativeWindow.cs: Don't call anything that could call into the driver,
26280 we might be on a different thread.
26282 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26284 * Control.cs(Dispose): Since Dispose might run on a different thread,
26285 make sure that we call methods that could call into the driver via
26286 invoke, to avoid thread issues
26288 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26290 * XplatUI.cs: Removed finalizer
26291 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
26292 not allowing to be called on the finalizer thread.
26294 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
26297 - Reverted r51889 and r51891.
26298 - Added ImageListItem class that stores unmodified image items and image
26299 properties required to create list images until handle is created.
26300 - Added AddItem and moved image creation logic to AddItemInternal.
26301 - Added CreateHandle method that creates images based on unmodified items.
26302 - Added DestroyHandle that changes state to store unmodified items.
26303 - Add and AddStrip methods no more create handle.
26304 - ReduceColorDepth has no return value.
26305 - Dispose destroys handle.
26306 - Modified other methods to reflect the above changes.
26307 - Implemented key support.
26308 - Added profile 2.0 members and attributes.
26309 - Added private Reset and ShouldSerialize methods that provide the same
26310 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
26311 them as they are private.
26312 - Added some more comments about implementation details.
26314 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26316 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
26318 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26320 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
26322 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26324 * DataGridDrawingLogic.cs: Fixes column hit calcultation
26325 * DataGridColumnStyle.cs: Remove debug message
26327 2005-10-20 Jackson Harper <jackson@ximian.com>
26329 * TreeView.cs: We can always get input keys regardless of whether
26330 or not editing is enabled. They are used for navigation.
26332 2005-10-20 Jackson Harper <jackson@ximian.com>
26334 * TreeNode.cs: Use the viewport rect for determining if a node
26335 needs to be moved for visibility. Don't use Begin/End edit. This
26336 calls a full refresh when its done.
26337 * TreeView.cs: New SetBottom works correctly. Make the viewport
26338 rect property internal so the treenodes can see it. When clicking
26339 on a node we need to ensure that its visible because it might just
26340 be partly visible when clicked.
26342 2005-10-20 Jackson Harper <jackson@ximian.com>
26344 * TreeNodeCollection.cs: Remove debug code.
26346 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
26348 * Datagrid.cs: Implements column sorting in Datagrid
26349 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
26351 2005-10-20 Jackson Harper <jackson@ximian.com>
26353 * TreeNodeCollection.cs: Remove items properly. Update the correct
26354 area after removing them.
26356 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
26358 * Datagrid.cs: Should not call base.OnPaintBackground
26360 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26362 * XplatUIX11.cs (GetMessage):
26363 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
26364 window instead of client window
26365 - Now properly calculates NC_xBUTTONUP message coordinates
26366 - ScreenToMenu now properly calculates it's coordinates of whole
26367 window, since menus are in the whole window, not in the client
26369 - Added WholeToScreen coordinate translation method
26371 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26373 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
26374 want to return a message, loop back to the beginning of the function
26375 and grab the next real message to process instead.
26377 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26379 * Splitter.cs: Properly set limits if no filler control is used
26381 2005-10-19 Jackson Harper <jackson@ximian.com>
26383 * ColorDialog.cs: Don't show the help button if it is not enabled
26384 instead of disabling it (this is what MS does). Don't create the
26385 panel until the dialog is run, otherwise the vars (such as
26386 ShowHelp) are not set yet.
26388 2005-10-19 Jackson Harper <jackson@ximian.com>
26390 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
26391 are reduced when adding nodes.
26393 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
26396 2005-10-19 Jackson Harper <jackson@ximian.com>
26398 * FolderBrowserDialog.cs: End editing our treeview so the window
26399 actually gets refreshed.
26401 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26403 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
26404 Obsoleted handling of WM_ERASEBKGND, now always draws our background
26407 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26409 * MenuAPI.cs: Returns after Hidding window
26410 * XplatUIX11.cs: Added TODO found while debugging menu issues
26412 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26414 * XplatUIX11.cs: Do not re-map the whole window when it's size
26415 becomes non-zero unless it's supposed to be actually visible
26417 2005-10-18 Jackson Harper <jackson@ximian.com>
26419 * TreeView.cs: We don't need to keep a count anymore.
26420 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
26421 use the Grow method.
26423 2005-10-18 Jackson Harper <jackson@ximian.com>
26425 * TreeNodeCollection.cs: Insert is not supported on arrays, so
26426 implement it manually here.
26428 2005-10-18 Jackson Harper <jackson@ximian.com>
26430 * ImageList.cs: Dont kill the list when the colour depth is
26431 changed, just change the colour depth of all the images.
26432 - Same goes for setting the image size. Just resize them all
26433 instead of killing the list softly.
26435 2005-10-18 Jackson Harper <jackson@ximian.com>
26437 * Control.cs: Don't invalidate empty rectangles.
26439 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26442 - Adds checked item to the Checked/Item lists (where empty before)
26443 - Do not add items to the Selected lists if they are already present
26445 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
26446 - When deleting items make sure that we delete them for the Selected
26447 and Checked list also.
26449 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26451 * Label.cs: Dispose objects no longer used
26452 * ThemeWin32Classic.cs: Dispose objects no longer used
26454 2005-10-18 Jackson Harper <jackson@ximian.com>
26456 * TabControl.cs: Don't refresh the whole control when the tabs are
26457 scrolled, we just need to refresh the tab area.
26459 2005-10-17 Jackson Harper <jackson@ximian.com>
26461 * XplatUIX11.cs: Compress code a little bit. Only calculate the
26462 after handle when we need it.
26464 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26466 * Control.cs: When the parent size changes, recalculate anchor
26467 positions. Partial fix for #76462
26469 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26471 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
26472 drawn. Fixes #76462
26474 2005-10-17 Jackson Harper <jackson@ximian.com>
26476 * MonthCalendar.cs: Don't create the numeric up down until our
26477 handle is created. Otherwise our handle is created in the
26478 constructor and we don't know if we are a WS_CHILD or WS_POPUP
26481 2005-10-17 Jackson Harper <jackson@ximian.com>
26483 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
26486 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26487 * TreeNode.cs : small logical fix (was using local var instead of field)
26489 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26491 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
26493 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26495 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
26497 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
26500 - Re-implemented anchoring code. My first version was really broken.
26501 This fixes bug #76033. Unlike the previous implementation we will
26502 no longer have round errors since all numbers are calculated from
26503 scratch every time. Removed various anchor-related obsolete vars.
26504 - InitLayout no longer causes layout event firing and layout to be
26507 2005-10-16 Jackson Harper <jackson@ximian.com>
26509 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
26512 2005-10-16 Jackson Harper <jackson@ximian.com>
26514 * TabControl.cs: Remove debug code.
26516 2005-10-16 Jackson Harper <jackson@ximian.com>
26518 * XEventQueue.cs: Increase the default queue size (very simple
26519 apps needed to grow the queue).
26520 * Hwnd.cs: No finalizer so we don't need to suppress
26521 finalization. Compute the invalid area manually so a new rectangle
26522 does not newto be created.
26523 * ScrollableControl.cs: Don't set any params (otherwise visibility
26524 isn't set correctly).
26525 * MdiChildContext.cs: New constructor takes the mdi parent so it
26526 doesn't have to be computed and avoids a crash on windows. Draw
26527 the window icon properly, and allow the text to be seen.
26528 * Form.cs: Use new MdiChildContext constructor. Make sure the
26529 child context isn't null in wndproc.
26530 * TabControl.cs: Don't set focus, this is muddling keyboard
26531 behavoir. Expand the tab rows when a window size increase will
26532 allow extra tabs to be seen. Don't allow tabs smaller than the
26533 width of a window to be scrolled out of view.
26535 * TreeView.cs: Use measure string to calculate a nodes width, the
26536 width is cached and only updated when the text or the font is
26537 changed. Don't check for expand/collapse clicks on the first level
26538 nodes if root lines are disabled.
26540 2005-10-16 Ritvik Mayank <mritvik@novell.com>
26542 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
26544 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26546 * DataGridBoolColumn.cs: fixes warning
26548 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26550 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
26551 to match more to match more precisely the MS Net behavior
26553 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26555 * Hwnd.cs: Added field to track if window is mapped
26557 - Unmap windows if they become 0-size, re-map when
26558 they are >0 again; fixes #76035
26559 - Re-set our error handler after initializing X11Desktop
26560 to override any error handlers Gtk or whatever was called
26563 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26565 * CheckedListBox.cs: Removed unused vars
26566 * ListView.cs: Fixed signatures
26567 * RichTextBox.cs: Removed unused vars
26568 * TextBoxBase.cs: Removed unused vars
26569 * XplatUIWin32.cs: Removed unused vars
26570 * XplatUIX11.cs: Removed unused vars
26571 * XplatUI.cs: Updated version and date to latest published
26573 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26575 * Cursor.cs: Added private .ctor to work around a bug in
26576 resourceset (Thanks to Geoff Norton for the help on this)
26577 * SplitterEventArgs.cs: Made fields accessible so we don't
26578 waste boatloads of objects and can reuse the same one
26580 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
26581 any captions and borders when generating screen coordinates
26582 * Splitter.cs: Reimplemented control, now fully complete, uses
26583 rubberband drawing, supports and obeys all properties, has
26586 2005-10-13 Miguel de Icaza <miguel@novell.com>
26588 * Form.cs (Form): Setup default values for autoscale and
26589 autoscale_base_size; Make these instance variables, not static
26592 (OnLoad): on the first load, adjust the size of the form.
26594 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26596 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
26597 width argument to DrawReversibleRectangle()
26598 * XplatUIWin32.cs, XplatUIX11.cs:
26599 - Implemented width for DrawReversibleRectangle()
26600 - Added logic to DrawReversibleRectangle that recognizes a zero
26601 width or height and only draws a line in that situation
26603 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26605 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
26606 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
26607 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
26608 method (it uses our FosterParent window to get a graphics context)
26610 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26612 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
26613 and SetWindowBackground methods
26615 - Setting proper ControlStyles
26616 - We no longer call XplatUI.SetWindowBackground and XplatUI.
26617 EraseWindowBackground, instead we draw the window background
26618 ourselves in PaintControlBackground. This behaviour is
26619 required to match MS, where, when OnPaintBackground is not
26620 called, the background is not drawn.
26621 - Removed unneeded Refresh() in set_Text
26622 * Hwnd.cs: Dropped the ErasePending support. No longer needed
26624 - Created DeriveStyles method to translate from CreateParams to
26625 FormBorderStyle and TitleStyle, also handles BorderStyle (which
26626 matches FormBorderStyle enum values)
26627 - Consolidated SetHwndStyles and CalculateWindowRect border/title
26628 style calculations into single DeriveStyles method
26629 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
26630 from redrawing the whole window on any resize or expose.
26631 - Fixed CreateWindow usage of SetWindowValuemask. Before not
26632 all styles were applied to our whole/client window appropriately
26633 - Removed EraseWindowBackground() and SetWindowBackground() methods
26634 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
26635 no longer clear/redraw the background through X
26636 - Removed handling of erase_pending bit, we have no use for it (or
26639 - Removed generation and handling of WM_ERASEBKGND message
26640 - Removed EraseWindowBackground() and SetWindowBackground() methods
26641 - Removed handling of hwnd.ErasePending flag
26643 - Removed EraseWindowBackground() and SetWindowBackground() methods
26644 - We no longer call EraseWindowBackground on PaintEventStart, we
26645 ignore the fErase flag, erasing is handled in Control in the
26647 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
26648 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
26649 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
26650 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
26651 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
26652 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
26653 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
26655 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
26657 * PropertyGrids.cs: Get sub properties
26658 * PropertyGridView.cs: Fix drawing code
26660 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26662 * ListBox.cs: Fixes 76383
26664 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26666 * DataGridTextBoxColumn.cs: Sets location and size before attachment
26667 * ThemeWin32Classic.cs: Fixes border drawing and calculations
26668 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
26671 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26673 * ComboBox.cs: Fixes border drawing
26675 2005-10-10 Miguel de Icaza <miguel@novell.com>
26677 * MimeIcon.cs: Ignore errors if the file can not be read.
26679 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26681 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
26682 - Fixed border calculations
26683 - Fixed horizontal scrolling in single column listboxes
26684 - Fixed drawing issues
26686 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
26688 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
26689 FormBorderStyle enum
26690 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
26691 code to determine FormBorderStyles from CreateParams
26693 - Fixed bug where we'd set the wrong window styles if we were
26694 not creating an MDI window
26695 - Added call to XplatUI.SetBorderStyle when form borders are set
26696 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
26698 - Removed obsolete edge style
26699 - Switched from BorderStyle to FormBorderStyle
26701 2005-10-10 Jackson Harper <jackson@ximian.com>
26703 * Form.cs: Use the property to get the window handle instead of
26704 accessing it directly. Prevents a null reference exception.
26706 2005-10-10 Jackson Harper <jackson@ximian.com>
26708 * TreeView.cs: Don't adjust the rect given to DrawString now that
26709 our libgdiplus draws correctly.
26711 2005-10-08 Jackson Harper <jackson@ximian.com>
26713 * TreeView.cs: Don't try to find the clicked on node if there are
26714 no nodes in the tree.
26716 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26722 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26724 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
26725 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
26727 Use ResPool for brushes and dispose System.Drawing objects that
26728 are not used anymore.
26730 2005-10-07 Jackson Harper <jackson@ximian.com>
26732 * MdiChildContext.cs: Use the new borders instead of drawing them
26735 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26737 * Calling UpdateBounds after changing the window's BorderStyle
26738 since the style can change the ClientSize
26740 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26742 * Control.cs: Made PaintControlBackground virtual
26743 * Panel.cs: Overriding PaintControlBackground instead of using paint
26744 event; paint event method was interfering with 'real' users of the
26747 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26749 * ThemeWin32Classic.cs: remove border drawing since it is handled
26750 by the base control class now and was causing double border drawing.
26752 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26754 * Panel.cs: Redraw our background on paint. Not a pretty solution,
26755 but it does seem to match MS behaviour. This fixes bug #75324
26757 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26759 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
26760 somewhat hackish looking
26762 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26765 - We now accept Enter even if AcceptEnter is false, if the containing
26766 form does not have an AcceptButton configured (fixes bug #76355)
26767 - Calculations are now fixed to no longer use Width/Height, but
26768 ClientSize.Width/Height, since we now support borders (this was
26769 a result of fixing borders and therefore bug #76166)
26770 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
26771 true (fixes bug #76354)
26773 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26776 - Defaulting BorderStyle and setting it in XplatUI when our window
26778 - Added enum check to InternalBorderStyle setter
26780 - Added drawing of window borders
26781 - Now properly calculates WM decorations offset for toplevel
26782 windows (fixes bug #74763)
26784 - Implemented BorderStyles for windows (we're letting win32 draw
26786 - Fixed the signature for SetWindowLong
26787 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
26788 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
26790 * UpDownBase.cs: Remove drawing of borders, this is handled by
26791 the driver, outside the client area
26792 * ListView.cs: Removed bogus border calculations. The control should
26793 be oblivious to borders, since those are not part of the client
26795 * X11DesktopColors.cs: Commented out (currently) unneeded variables
26796 * ThemeWin32Classic.cs: Removed border calculations from ListView
26799 2005-10-06 Jackson Harper <jackson@ximian.com>
26801 * MdiChildContext.cs: Clear out the old virtual position remove
26802 all the unneeded calls to CreateGraphics.
26804 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26806 * TextControl.cs: Use proper color for highlighted text; fixes #76350
26808 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26811 - Added loading and setting of our new default icon
26812 - Only set icon if window is already created
26814 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26817 - Do not explicitly set the foreground and background colors, to
26818 allow inheriting from parents (fixes #76302)
26819 - Use Control's InternalBorderStyle property to deal with borders
26821 2005-10-06 Jackson Harper <jackson@ximian.com>
26823 * MdiChildContext.cs: Use the new xplatui function to draw a
26826 2005-10-06 Jackson Harper <jackson@ximian.com>
26828 * Form.cs: Add the parent before creating the child context cause
26829 we need the parent when setting up the child.
26831 2005-10-06 Jackson Harper <jackson@ximian.com>
26833 * FolderBrowserDialog.cs: redo the tree population code so a
26834 second thread isn't used. Should be a lot faster and more stable
26837 2005-10-05 Jackson Harper <jackson@ximian.com>
26839 * TreeView.cs: There are no expand/collapse boxes if the node has
26842 2005-10-05 Jackson Harper <jackson@ximian.com>
26844 * X11DesktopColors.cs: Get menu colours for the gtk theme.
26846 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
26848 * FileDialog.cs: Fix InitialDirectory
26850 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26853 - Fixes changing between styles
26854 - Fixes simple mode
26855 - Fixes last item crashing when navigating with keyboard
26857 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26859 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26861 2005-10-05 Jackson Harper <jackson@ximian.com>
26863 * TreeView.cs: If updating the root node do a full refresh.
26864 * TreeNode.cs: The root node should be expanded by default. Also
26865 added a utility prop to tell if we are the root node.
26866 * TreeNodeCollection.cs: Only refresh if the node we are being
26867 added to is expanded. Also added a comment on a potential
26870 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
26872 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
26873 in dispose method. Fixes #76330
26875 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
26877 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26879 - Implements vertical and horizontal scrolling using XplatUI
26880 - Fixes keyboard navagation
26881 - Fixes EnsureVisible
26883 - Handles and draws focus properly
26886 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
26888 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26889 Create handle. NET_2_0: Destroy handle when value is null.
26891 2005-10-03 Jackson Harper <jackson@ximian.com>
26893 * ScrollBar.cs: My last scrollbar patch was broken. This is a
26894 revert and a new patch to prevent the thumb from refreshing so
26897 2005-10-02 Jackson Harper <jackson@ximian.com>
26899 * ScrollBar.cs: Don't update position if it hasn't actually
26900 changed. This occurs when you hold down the increment/decrement
26901 buttons and the thumb gets to the max/min.
26903 2005-10-01 Jackson Harper <jackson@ximian.com>
26906 * MdiChildContext.cs:
26907 * MdiClient.cs: Implement ActiveMdiChild in Form.
26909 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
26911 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26913 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
26915 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26918 2005-09-30 Jackson Harper <jackson@ximian.com>
26920 * ListBox.cs: Don't do a full refresh unless some data has
26923 2005-09-30 Jackson Harper <jackson@ximian.com>
26925 * TreeView.cs: Make sure that the checkboxes size is factored in
26926 even when not visible.
26928 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26930 * FileDialog.cs: Fix Jordi's build break
26932 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26935 - Use standard the Windows colours for the combobox as espected
26936 - Dispose objects that use resouces when no longer need them
26938 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26940 * X11DesktopColors.cs: Initial incomplete implementation
26941 * XplatUIX11.cs: Added call to initialize X11DesktopColors
26943 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26946 - Switched Theme color names to match the names defined in
26947 System.Drawing.KnownColors. Life's hard enough, no need to make
26949 - Added setters to all theme color properties so themes can set
26950 their color schemes. The setters also propagate the color changes
26951 to System.Drawing.KnownColors via reflection
26952 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26953 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26954 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26955 use the new, more logical theme color names
26956 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26958 * ThemeWin32Classic.cs:
26959 - Removed code to set the old classic Windows colors. Instead it
26960 now relies on the colors returned by System.Drawing.KnownColors
26961 which will be either modern static colors (Unix) or colors
26962 read from the user's configuration (Win32)
26963 - Updated to use the new, more logical theme color names
26964 - Switched DataGrid drawing code to use only Theme colors instead of
26965 a mix of System.Drawing.KnownColors and Theme colors
26966 - DrawFrameControl(): Removed code that fills the button area, the
26967 fill would overwrite any previous fill done by a control. This
26969 - Added DrawReversibleRectangle() stub
26970 * ScrollableControl.cs: Set visible state to false when scrollbars
26971 are removed (pdn fix)
26972 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
26973 DrawReversibleRectangle() method to allow drawing primitive
26975 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26977 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26979 * ImageList.cs: Add(Icon): Create handle.
26981 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26984 * ThemeWin32Classic.cs:
26985 - Fixes detail mode
26987 - Issues with drawing
26989 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26991 * ImageList.cs: Moved RecreateHandle back to ImageList as event
26992 source has to be the ImageList.
26994 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26996 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
26998 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27000 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27002 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27004 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27006 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
27007 * GridItem.cs: Fixed TODOs
27008 * GridItemCollection.cs: Added ICollection interface
27010 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27012 * ImageList.cs: Resize icons when needed.
27014 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
27017 - Fixes GetBounds and returns on screen rects
27019 - Fixes vertical and horzintal scrolling of items
27020 * ThemeWin32Classic.cs:
27023 2005-09-29 Raja R Harinath <harinath@gmail.com>
27025 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
27027 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
27029 * ImageList.cs: Added comments about handle creation. Moved Handle,
27030 HandleCreated and OnRecreateHandle implementations to ImageCollection.
27031 Handle is created in Add methods.
27033 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27035 * DataGridDrawingLogic.cs:
27036 - Takes rows into account on Colum calculations
27037 - Returns the column when clickig
27039 - Fixes default HitTestInfo values
27040 - Fixes HitTestInfo.ToString
27041 - Fixes ResetBackColor
27043 2005-09-28 Jackson Harper <jackson@ximian.com>
27045 * MdiChildContext.cs: Obey rules for fixed sized windows (no
27046 sizing or cursor changes). Also added some temp code to draw the
27047 titlebars text (Makes dev a little easier).
27049 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27051 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
27053 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27055 * ListBox.cs: Fixes bug 76253
27057 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27059 * ImageList.cs: Added comments about the current implementation. Added
27060 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
27061 Format32bppArgb to preserve transparency and can use Graphics.FromImage
27062 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
27063 with Bitmap.LockBits for better performance. Revised the whole file to
27064 match MS.NET behaviour and provide better performance. Non-public
27065 interface members are calling public members even when they throw
27066 NotSupportedException for better maintainability. Moved ColorDepth,
27067 ImageSize, ImageStream and TransparentColor implementations to
27068 ImageCollection for better performance as these properties are not used
27070 * ImageListStreamer.cs: Added a new internal constructor that takes an
27071 ImageList.ImageCollection and serializes Images based on
27072 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
27073 match ImageList property name.
27075 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
27077 * ListBox.cs: Fixes IndexFromPoint for last item
27079 2005-09-27 Jackson Harper <jackson@ximian.com>
27081 * Form.cs: Set the position of new mdi children correctly.
27083 2005-09-27 Jackson Harper <jackson@ximian.com>
27085 * MdiClient.cs: New mdi children need to be added to the back of
27086 the controls collection so the zorder is set correctly. Also add a
27087 count of all the child windows that have been created.
27089 2005-09-27 Jackson Harper <jackson@ximian.com>
27091 * Form.cs (CreateParams): Setup MDI forms correctly.
27093 2005-09-27 Jackson Harper <jackson@ximian.com>
27095 * MdiChildContext.cs:
27096 * MonthCalendar.cs:
27102 * ScrollableControl.cs:
27103 * ComboBox.cs: Add implicit controls using the new implict control
27104 functionality in ControlCollection. Also try to block multiple
27105 control add in a suspend/resume layout to save some cycles.
27107 2005-09-27 Jackson Harper <jackson@ximian.com>
27109 * Control.cs: Add functionality to the controls collection to add
27110 'implicit controls' these are controls that are created by the
27111 containing control but should not be exposed to the user. Such as
27112 scrollbars in the treeview.
27113 * Form.cs: The list var of the ControlsCollection is no longer
27114 available because of the potential of implicit controls getting
27115 ignored by someone accessing the list directly.
27117 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
27119 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
27120 loose it's parent. (Fixed bug introduced in r49103 when we added
27121 setting the child parent to null on Remove)
27123 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
27125 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
27126 * Splitter.cs: Added missing attributes for BorderStyle property.
27127 * TextBoxBase.cs: Marked Calculate* methods internal.
27128 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
27131 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
27133 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
27135 2005-09-25 Jackson Harper <jackson@ximian.com>
27137 * TreeView.cs: Update the node bounds correctly regardless of
27138 whether the node is visible.
27140 2005-09-25 Jackson Harper <jackson@ximian.com>
27142 * ImageList.cs: Don't dispose the image after it is added to the
27143 image list. Only reformat images that need to be resized.
27145 2005-09-25 Jackson Harper <jackson@ximian.com>
27147 * ImageList.cs: Don't set the format when changing the image.
27149 2005-09-25 Jackson Harper <jackson@ximian.com>
27151 * TreeView.cs: We can't just assume the node has a font. Use the
27152 treeviews font if no node font is available.
27154 2005-09-25 Jackson Harper <jackson@ximian.com>
27156 * TreeView.cs: Allow the scrollbars to be reset with negative
27158 - Don't add scrollbars to negative sized windows.
27160 2005-09-23 Jackson Harper <jackson@ximian.com>
27162 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
27163 old Mono.Posix. Also remove some stray code that shouldn't have
27166 2005-09-23 Jackson Harper <jackson@ximian.com>
27168 * TreeView.cs: Attempt at proper sizing of the horizontal
27169 scrollbar. Also don't resize the scrollbars unless they are
27172 2005-09-23 Jackson Harper <jackson@ximian.com>
27174 * TreeView.cs: We don't need to expand the invalid area when the
27175 selection changes, as this is all drawn in the node's bounding
27176 box. The area needs to be expanded (previous typo was contracting
27177 it) when the focus rect moves.
27179 2005-09-23 Jackson Harper <jackson@ximian.com>
27181 * TreeView.cs: Display the selection box under the correct
27182 circumstances. We were rendering white text with no selection box
27185 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
27187 * TextControl.cs(Split): Now updates selection start/end if it points
27188 into a line that's being split. Fixes a FIXME and bug #75258
27190 2005-09-23 Jackson Harper <jackson@ximian.com>
27193 * ListControl.cs: Don't use the path when retrieving binding
27194 managers from the binding context. My bat sense tells me that the
27195 path is only used on insertion.
27197 2005-09-22 Jackson Harper <jackson@ximian.com>
27199 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
27201 2005-09-22 Jackson Harper <jackson@ximian.com>
27203 * Splitter.cs: There are special cursors used for splitting.
27204 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
27206 2005-09-22 Jackson Harper <jackson@ximian.com>
27208 * Splitter.cs: Change the cursor appropriately when the splitter
27209 is moused over, so the user actually knows there is a splitter
27212 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27214 * Label.cs : Fix ToString method to give same output as MS.NET
27216 2005-09-22 Jackson Harper <jackson@ximian.com>
27218 * TreeView.cs: Create the scrollbars when the handle is created
27219 and add them right away, just make them invisble. Also account for
27220 the window being shrunk vertically to the point that the vert
27221 scrollbar needs to be added.
27222 - Remove some 0.5 adjustments to get around anti aliasing issues.
27224 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
27226 * MainMenu.cs: Fixes default value
27227 * MenuItem.cs: Fixes default value
27229 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
27231 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
27233 2005-09-21 Jackson Harper <jackson@ximian.com>
27235 * Control.cs: Don't try to set the border style on the window if
27236 it hasn't been created. When the window is created the border
27237 style will be used.
27239 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27241 * Control.cs (Update): Don't call XplatUI if we don't have a
27244 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27246 * ContainerControl.cs: Instead of throwing an exception, print
27247 a one-time warning about Validate not being implemented
27248 * XplatUIWin32.cs: Removed debug output
27250 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27252 * Control.cs: Only set XplatUI background if we expect the windowing
27253 system to handle the background. This stops controls that draw their
27254 own background from flickering
27256 * XplatUIX11.cs: Support custom visuals and colormaps for window
27257 creation. This allows, amongst other things, using MWF X11 windows
27260 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27262 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
27263 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
27264 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
27265 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
27266 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
27267 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
27268 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
27269 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
27270 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
27271 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
27272 GridColumnStylesCollection.cs,
27273 IDataGridColumnStyleEditingNotificationService.cs,
27274 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
27275 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
27276 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
27277 TreeNodeCollection.cs, AmbientProperties.cs,
27278 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27279 DataObject.cs, ErrorProvider.cs, Splitter.cs,
27280 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
27281 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
27282 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
27283 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
27284 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
27285 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
27286 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
27287 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
27288 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
27289 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
27290 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
27291 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
27292 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
27293 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
27294 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
27295 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
27296 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
27297 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
27298 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
27299 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
27300 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
27301 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
27302 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
27303 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
27304 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
27305 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
27306 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
27307 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
27308 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
27309 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
27310 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
27311 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
27312 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
27313 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
27314 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
27316 2005-09-21 Jackson Harper <jackson@ximian.com>
27318 * TreeNode.cs: Call Before/After Expand not Collapse when
27321 2005-09-20 Jackson Harper <jackson@ximian.com>
27323 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
27325 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
27329 - Fixes proper storing of subitems
27330 - Fixes not updated items
27332 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
27334 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
27335 things if our window handle isn't created yet. Also disabled
27336 debug for TextBoxBase
27338 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
27340 * MenuAPI.cs: Remove filtering of events to allow menu usage
27342 2005-09-20 Miguel de Icaza <miguel@novell.com>
27344 * Cursor.cs: Allow null to be passed to Cursor.Current.
27346 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
27348 * ThemeWin32Classic.cs:
27349 - Change some private methods/fields to protected virtual so that
27350 they can be accessed and overriden in derived classes
27351 - First refactoring of some methods. Derived themes now don't
27352 need to duplicate the complete code from ThemeWin32Classic
27354 - Added nice StatusBar
27355 - Derive from ThemeWin32Classic and not Theme
27356 - Removed duplicate ThemeWin32Classic code
27358 2005-09-20 Miguel de Icaza <miguel@novell.com>
27360 * Control.cs (ControlCollection.Add): If the value null is passed
27361 the control is ignored.
27363 Optimize this loop.
27365 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
27367 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
27368 PostQuitMessage state.
27369 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
27371 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
27373 * Application.cs: Our constructor will never get called, move
27374 initialization to fields; fixes bug #75933
27376 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27379 - Allow files to be selected properly using file name
27381 - Add ability to change diretory (absolute / relative)
27382 using file name combo box.
27384 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
27387 - Fixes Multicolumn listboxes item wrong calculations
27388 - Allows to click when only one item is in the listbox
27389 - Fixes crash when no items using keyboard navigation
27391 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
27393 * ComboBox.cs: Reverted almost everything from the latest patch which
27396 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
27399 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
27401 - When DropDownStyle is Simple, it does not show scrollbar
27402 to the last item of the list.
27403 - When DropDownStyle is Simple, it crashed when the list was
27404 scrolled down with the down cursor key.
27405 - Fixed a bug that when DropDownStyle is DropDownList, the
27406 selected item was not shown.
27407 - The position of the selected item was not preserved when
27408 the next dropdown happened.
27409 * ThemeWin32Classic.cs:
27410 - Items were wrapped at the right end.
27411 * CheckedListBox.cs:
27414 - Items should be fully shown.
27415 - When resizing and vertical scrollbar disappeared, the item
27416 of index 0 should be on the top of the list.
27417 - GetItemRectangle should consider the size of ver. scrollbar
27419 - SizingGrip area should not be allocated when it is not
27421 - Now it reflects MinWidth of the containing panel and
27422 fixed a crash that happens when its width becomes so small.
27424 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27426 * CheckedListBox.cs: Fixes bug 76028
27427 * ListBox.cs: Fixes bug 76028
27429 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27431 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
27432 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
27434 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
27436 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
27438 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27440 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
27442 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27444 * IRootGridEntry.cs: Added
27445 * PropertyGridCommands.cs: Added
27446 * PropertiesTab.cs: Added missing methods and property
27447 * PropertyGridView.cs: Made class internal
27448 * PropertyGridTextBox.cs: Made class internal
27450 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27452 * MimeIcon.cs: Try to check some other environment variables
27453 if "DESKTOP_SESSION" returns "default"
27455 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27457 * ThemeNice.cs: Corrected background colors (e.g. menus)
27458 * ColorDialog.cs: Use correct background colors for controls
27460 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27462 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
27464 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
27466 * RichTextBox.cs: Added initial implementation
27467 * lang.cs: Removed. Was accidentally checked in long time ago
27468 * TODO: Removed. Contents were obsolete
27470 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27472 * PropertiesTab.cs : Added
27474 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27476 * PropertyGrid.cs : Update
27477 * PropertyGridView.cs : Update
27478 * System.Windows.Forms.resx : Added images and strings
27480 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27482 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
27484 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27486 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
27487 a busy loop right after the Ungrab the X11 display is otherwise
27490 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
27492 * ThemeWin32Classic.cs: Optimise the use of clipping
27494 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
27496 * DataGrid.cs: fixes recursion bug
27498 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
27501 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
27504 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
27506 * ThemeNice.cs: Draw nice ProgressBars
27508 2005-09-01 Miguel de Icaza <miguel@novell.com>
27510 * VScrollBar.cs: Another buglet found by Aaron's tool.
27512 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
27515 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
27518 - Added nicer menu drawing
27522 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27524 * CreateParams.cs (ToString): Made output match MS
27525 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
27526 handle is already created (to avoid forcing window creation)
27527 * XplatUIX11.cs: Set window text to caption after creating window,
27528 in case Text was set before window was created
27529 * Form.cs: Use this.Text instead of a static string as caption
27531 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27533 * NotifyIcon.cs: Don't set the window to visible; this screws
27534 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
27535 OnPaint without a bitmap)
27536 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
27537 happen very often anyway; we could add the check to the WM_PAINT
27538 event generation code
27540 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27542 * NotifyIcon.cs: Fill the icon area with a background color, to
27543 avoid 'residue' when transparent icons are drawn
27545 - Handle whole_window == client_window when destroying windows
27546 - SystrayAdd(): Set client_window to whole_window value to
27547 get mouse and other events passed to NotifyIcon
27549 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27551 * Form.cs: Set proper default for Opacity property
27553 - ShowSystray(): Don't bother creating telling the OS
27554 about the systray item if no icon is provided
27555 - Now handles WM_NCPAINT message to deal with whole/client window
27557 - Create window as visible to not get caught by Expose optimization
27558 * Hwnd.cs: Removed debug message
27559 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
27560 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
27561 PaintEventStart/End to use new client argument
27563 - Commented out debug messages
27564 - Switched PaintEventStart/End to use new client argument
27565 * XplatUI.cs: Added client window bool to PaintEventStart()/
27566 PaintEventEnd() calls, to support drawing in non-client areas
27567 * XplatUIDriver.cs:
27568 - Added client window bool to PaintEventStart()/PaintEventEnd()
27569 calls, to support drawing in non-client areas
27570 - Added conditional compile to allow using MWF BeginInvoke
27573 - Added some conditional debug output
27574 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
27575 whole/client window split
27576 - Implemented handling of client argument to PaintEventStart()/End()
27578 - Throw exception if BeginInvoke() is called and the window handle
27579 or one of the window's parent handles is not created
27580 - Added conditional compile to allow using MWF BeginInvoke on
27582 - get_Parent(): Only sets parent if handle is created. This avoids
27583 forcing window handle creation when parent is set.
27584 - Now fires Layout and Parent changed events in proper order
27585 - Switched to use Handle instead of window.Handle for Z-Order setting,
27586 the get_Parent() patch above causes us to possibly get null for 'window'
27587 - Implemented handling of client argument to PaintEventStart()/End()
27588 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
27590 - Now sends a Refresh() to all child windows when Refresh() is called
27592 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
27594 * Form.cs: Added (non-functional) Opacity property
27595 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
27597 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
27598 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
27599 use export MONO_THEME=nice to activate it.
27600 Currently supported controls:
27604 - TabControl (TabAlignment.Top only, other will follow)
27605 * ThemeEngine.cs: Add theme nice
27606 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
27609 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27611 * Splitter.cs: Resize docked control and its neighbor.
27613 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27614 -- Making Windows with Menus layout correctly --
27615 * Form.cs : The first leg of the fix
27616 Menu setter - adjust Client Size as needed to make space for the menu
27617 SetClientSizeCore - doesn't call base version to be able to pass the
27618 menu handle to XplatUI.CalculateWindowRect
27619 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
27620 * XplatUIX11.cs: The critical second leg of the fix
27621 GetWindowPos needs to use a recalculated client_rect
27622 so that resizing the window doesn't break layout of child controls.
27623 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
27624 Lots of \t\n killed
27626 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
27628 * Label.cs: Now properly recalculates width and height on Font and Text
27629 changes if AutoSize is set
27631 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27632 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
27634 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
27636 * ImageList.cs: Makes ToString method compatible with MS
27638 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
27640 * MenuAPI.cs: fixes bug 75716
27642 2005-08-11 Umadevi S <sumadevi@novell.com>
27643 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
27645 2005-08-11 Umadevi S <sumadevi@novell.com>
27646 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
27648 2005-08-10 Umadevi S <sumadevi@novell.com>
27649 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
27651 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
27653 * Menu.cs: fixes bug 75700
27654 * MenuAPI.cs: fixes navigation issues
27656 2005-08-09 Umadevi S <sumadevi@novell.com>
27657 * CheckedListBox.cs - simple fix for GetItemChecked.
27659 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
27661 * ComboBox.cs: Serveral fixes
27662 * ListBox.cs: Serveral fixes
27664 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27666 * ComboBox.cs: Fixes FindString methods and GetItemHeight
27667 * ListBox.cs: Fixes FindString methods
27669 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27671 * DataGrid.cs: fixes bugs exposed by new tests
27673 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
27675 * Mime.cs: Compile Mono assembly references only if compiling
27676 with Mono (Allows to build with VS.Net again)
27678 2005-07-28 Marek Safar <marek.safar@seznam.cz>
27680 * Control.cs (PaintControlBackground): Draw background image
27682 (CheckForIllegalCrossThreadCalls): Stubbed.
27684 * Form.cs (OnCreateControl): Center when should be centered.
27686 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
27688 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
27690 * Binding.cs: Binding to properties should be case unsensitive
27692 2005-07-18 vlindos@nucleusys.com
27694 * DataGrid.cs: fixes setmember order
27696 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
27698 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
27699 * FileDialog.cs: FileDialog is now resizable and uses the new
27702 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
27704 * DataGridTextBoxColumn.cs: default value
27705 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
27706 * GridTableStylesCollection.cs: fixes checking MappingName
27707 * DataGridDrawingLogic.cs: fixes drawing logic issues
27708 * DataSourceHelper.cs: rewritten to make compatible with more data sources
27709 * DataGrid.cs: fixes
27711 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
27713 * MimeGenerated.cs: Use case sensitive comparer for
27714 NameValueCollections
27716 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
27718 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
27719 * ThemeWin32Classic.cs: bug fixes, code refactoring
27720 * DataGridDrawingLogic.cs: bug fixes, code refactoring
27721 * DataGrid.cs: bug fixes, code refactoring
27722 * DataGridTextBox.cs: bug fixes, code refactoring
27723 * DataGridColumnStyle.cs: bug fixes, code refactoring
27724 * Theme.cs: bug fixes, code refactoring
27726 2005-07-01 Peter Bartok <pbartok@novell.com>
27728 * TextControl.cs: Quick fix for the reported crash on ColorDialog
27729 and other text box usage
27731 2005-07-01 Jackson Harper <jackson@ximian.com>
27733 * TabControl.cs: Make sure the bottom of the tab covers the pages
27736 2005-06-30 Peter Bartok <pbartok@novell.com>
27738 * Form.cs (ShowDialog): Assign owner of the dialog
27739 * TextBoxBase.cs: Always refresh caret size when deleting, caret
27740 might have been moved to a tag with different height
27742 2005-06-30 Jackson Harper <jackson@ximian.com>
27744 * Form.cs: Don't create an infinite loop when setting focus
27745 * MenuItem.cs: Don't dirty the parents if we don't have any
27747 2005-06-29 Ben Maurer <bmaurer@ximian.com>
27749 * LibSupport.cs: Rename
27751 2005-06-29 Peter Bartok <pbartok@novell.com>
27753 * TextBoxBase.cs: Re-align caret after deleting a character
27755 - DeleteChars(): Ensure that tag covers the provided position
27756 - StreamLine(): Drop reference for dropped tag
27758 2005-06-29 Peter Bartok <pbartok@novell.com>
27761 - Selections now work properly, anchoring at the initial location
27762 and properly extending in either direction (SetSelectionToCaret(),
27763 SetSelectionStart() and SetSelectionEnd())
27764 - No longer redraws the whole control on selection change, now
27765 calculates delta between previous and new selection and only
27766 invalidates/redraws that area
27767 - Fixed FindPos() math off-by-one errors
27768 - Changed DeleteChars() to verify the provided tag covers the
27769 provided position, selections may have a tag that doesn't cover
27770 the position if the selection is at a tag border
27771 - Fixed off-by-one errors in DeleteChars()
27772 - Added missing streamlining check in DeleteChars() to remove
27774 - Implemented Invalidate() method, now properly calculates exposures
27775 between two given lines/positions
27776 - Implemented SetSelection()
27777 - Obsoleted and removed FixupSelection()
27778 - Improved RecalculateDocument() logic, removing code duplication
27780 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27782 * LibSupport.cs: changes to match different input/output arguments.
27784 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27786 * LibSupport.cs: added libsupport.so init routine.
27788 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
27790 * ControlBindingsCollection.cs
27791 - Throws an exception on null datasource when adding
27792 - Checks for duplicated bindings when adding
27794 2005-06-28 Jackson Harper <jackson@ximian.com>
27796 * TreeView.cs (OnKeyDown): Support left and right properly
27797 (navigates as well as expanding and collapsing.
27798 - Add support for Multiply, this expands all the selected nodes
27800 - Fix some tabbing.
27802 2005-06-28 Jackson Harper <jackson@ximian.com>
27804 * TreeView.cs: Implement keyboard navigation, currently supports,
27805 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
27806 support for toggling checkboxes with the space bar.
27808 2005-06-28 Jackson Harper <jackson@ximian.com>
27810 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
27813 2005-06-28 Jackson Harper <jackson@ximian.com>
27815 * TreeView.cs: Add missing event.
27817 2005-06-27 Peter Bartok <pbartok@novell.com>
27820 - Made line ending size configurable (now allows for counting
27821 lineendings as \n or \r\n)
27822 - Added margin to viewport to keep caret visible on right side
27823 - Fixed translation routines for line/pos to documentpos to consider
27824 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
27825 - Fixed some line-endings to be unix style
27826 - Fixed Document.FormatText to perform it's calculations 1-based
27827 - Added descriptions for a few methods that might otherwise get
27829 - Added NOTE section with some basic conventions to remember at
27830 the top of the file
27831 - Major fixup for RichTextBox selection drawing:
27832 * Fixed crashes when multiple tags on a single line were selected
27833 * fixed selection box drawing not overlaying text
27834 * fixed bogus offset calculation for tags not starting at index 1
27835 * Switched behaviour from using multiple Substrings of a
27836 StringBuilder.ToString() to using multiple
27837 StringBuilder.ToString(start, length) statements, hoping this is
27838 faster (kept original version commented out in the code, in case
27839 original version was faster)
27840 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
27842 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
27845 2005-06-27 Jackson Harper <jackson@ximian.com>
27847 * TabControl.cs: Move to the left and right with the arrow
27848 keys. These keys don't cycle beyond first and last like
27849 tab. Refresh all the tabs when scrolling them to the left or
27852 2005-06-27 Jackson Harper <jackson@ximian.com>
27855 - ToString: Added method
27856 - CreateParams: Remove TODO and comment
27857 - OnKeyDown: Cycle through bounds properly.
27858 - SelectedIndex: Scroll to the right or left if we need to
27859 display the newly selected tab.
27861 2005-06-23 Jackson Harper <jackson@ximian.com>
27863 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27866 2005-06-23 Jackson Harper <jackson@ximian.com>
27868 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27869 CTRL-SHIFT-TAB, and HOME, END are there any others?
27871 2005-06-23 Jackson Harper <jackson@ximian.com>
27873 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27875 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27877 * DataGridTextBoxColumn.cs: fixes and enhancements
27878 * ThemeWin32Classic.cs: fixes and enhancements
27879 * DataGridBoolColumn.cs: fixes and enhancements
27880 * DataGridDrawingLogic.cs: fixes and enhancements
27881 * CurrencyManager.cs: fixes and enhancements
27882 * DataGrid.cs: fixes and enhancements
27883 * DataGridColumnStyle.cs: fixes and enhancements
27885 2005-06-22 Jackson Harper <jackson@ximian.com>
27887 * TabControl.cs: Add some missing methods that just call into the
27888 base. Make the TabPageCollection's IList interface behave in the
27889 same manner as the MS implementation.
27891 2005-06-22 Peter Bartok <pbartok@novell.com>
27893 * TextControl.cs: Added sanity check
27895 - Fixed wrapping behaviour, don't set wrap on single line controls
27896 (this fixes the breakage of colordialog introduced in an earlier
27898 - Added rudimentary support for autoscrolling right-aligned controls
27899 (still needs fixing, also, center alignment scroll is missing)
27901 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27903 * ScrollBar.cs: Fixes thumbpos on Maximum values
27905 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
27907 * PropertyGridView.cs: Pass context information to UITypeEditors
27909 2005-06-21 Peter Bartok <pbartok@novell.com>
27912 - Now calling PositionCaret with absolute space coordinates
27913 - Enabled vertical scrolling
27914 - Better tracking of scrollbar changes, tied into WidthChange
27916 - Improved cursor tracking
27917 - Removed debug output
27919 - PositionCaret coordinates are now works in absolute space, not
27921 - Improved tracking of document size
27922 - Added events for width and height changes
27924 2005-06-21 Peter Bartok <pbartok@novell.com>
27926 * Form.cs: Set focus to active control when form is activated
27928 - Added word-wrap functionality to RecalculateLine()
27929 - Added some short function descriptions for VS.Net to aid in
27930 writing dependent controls
27931 - Added Caret property, returning the current coords of the caret
27932 - Added ViewPortWidth and ViewPortHeight properties
27933 - Added Wrap property
27934 - Added CaretMoved event
27935 - Removed some old debug code
27936 - Split() can now create soft splits
27937 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27938 - Added method to format existing text
27939 - Fixed size/alignment calculations to use viewport
27940 - RecalculateDocument now can handle changing line-numbers while
27944 - Added some wrap logic, we don't wrap if alignment is not left
27945 - Added casts for scrollbar var, base class switched types to
27946 also support RichTextBoxA
27947 - Implemented handling of scrollbar visibility flags
27950 - Switched scrollbars type to RichTextBoxScrollBars to support
27952 - Added tracking of canvas width/height
27953 - Switched scrollbars to be not selectable (to keep focus on text)
27954 - Added central CalculateDocument() method to handle all redraw
27956 - Added ReadOnly support
27957 - Added WordWrap support
27958 - Fixed handling of Enter key (we now treat it as a DialogKey)
27959 - Fixed caret positioning when h or v scroll is not zero
27960 - Fixed placing/generation of vertical scrollbar
27961 - Added CalculateScrollBars() method to allow updating scrollbar
27962 limits and visibility
27963 - Fixed handling of horizontal scroll
27964 - Added handling of vertical scroll
27965 - Implemented auto-'jump' when caret moves to close to a left or
27966 right border and there is text to be scrolled into view (currently
27967 there's the potential for a stack overflow, until a bug in
27968 scrollbar is fixed)
27970 2005-06-21 Geoff Norton <gnorton@customerdna.com>
27972 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27974 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
27978 - return application/x-zerosize for files with size zero
27979 (if no extension pattern matches).
27980 - check matches collection for strings too.
27981 - return only the first mime type if the name value
27982 collection has more than one mime type.
27984 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
27986 * PropertyGrid.cs: Cleaned up some TODOs
27987 * PropertyGridView.cs: Added support for UITypeEditors
27989 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27991 * DataGrid.cs: clears cached value
27993 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27995 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
27996 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
27997 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
27998 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28000 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
28002 * ThemeWin32Classic.cs: fixes colour
28004 2005-06-15 Peter Bartok <pbartok@novell.com>
28006 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28007 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28008 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28009 * Control.cs: Added some MWFCategory and MWFDescription attributes
28010 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28012 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
28014 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28017 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
28019 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
28020 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
28021 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
28022 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
28023 * DataGrid.cs: default datagrid settings for Default Styles, fixes
28024 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
28026 2005-06-13 Jackson Harper <jackson@ximian.com>
28028 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
28029 isn't printed when the user enables dropping. (X11 does accept
28032 2005-06-13 Jackson Harper <jackson@ximian.com>
28034 * TreeView.cs: Remove some TODOS.
28036 2005-06-13 Jackson Harper <jackson@ximian.com>
28038 * Form.cs: Hook into the mdi framework.
28039 * MdiClient.cs: Use the base control collections add method so
28040 parents get setup correctly. Set the default back colour and dock
28042 * MdiChildContext.cs: New class, this bad actor handles an
28043 instance of an MDI window. Right now there is only basic
28044 support. You can drag, close, and resize windows. Minimize and
28045 Maximize are partially implemented.
28047 2005-06-13 Jackson Harper <jackson@ximian.com>
28049 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
28050 freaky when both vals are negative. NOTE: There are probably other
28051 places in XplatUIX11 that this needs to be done.
28053 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
28055 * DataGrid.cs: implement missing methods, move KeyboardNavigation
28056 * DataGridColumnStyle.cs: fixes signature
28058 2005-06-12 Jackson Harper <jackson@ximian.com>
28060 * XplatUIX11.cs: Use sizing cursors similar to the ones on
28063 2005-06-11 Jackson Harper <jackson@ximian.com>
28065 * StatusBarPanel.cs: Signature cleanups. Implement
28068 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
28070 * DataGridTextBoxColumn.cs: Honors aligment
28071 * GridColumnStylesCollection.cs: Contains is case unsensitive
28072 * GridTableStylesCollection.cs: several fixes
28073 * DataGridTableStyle.cs: default column creation
28074 * DataGridDrawingLogic.cs: fixes
28075 * CurrencyManager.cs: ListName property
28076 * DataGrid.cs: multiple styles support
28077 * DataGridColumnStyle.cs: fixes
28080 2005-06-10 Peter Bartok <pbartok@novell.com>
28082 * Control.cs(Select): Moved SetFocus call to avoid potential
28083 loops if controls change the active control when getting focus
28084 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
28085 the up/down buttons
28087 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
28089 * ImageListConverter.cs: Implemented
28091 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
28093 * MonthCalendar.cs: Wired in NumericUpDown control for year
28095 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
28097 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
28098 DoubleClick events, since they are not meant to be fired.
28100 2005-06-09 Peter Bartok <pbartok@novell.com>
28102 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
28103 Jonathan's standalone controls into MWF, implemented missing
28104 events, attributes and methods; added xxxAccessible classes
28105 * AccessibleObject.cs: Made fields internal so other classes
28106 can change them if needed
28108 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
28110 * UpDownBase.cs: Complete implementation
28111 * NumericUpDown.cs: Complete implementation
28112 * DomainUpDown.cs: Complete implementation
28114 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
28116 * DataGridTextBoxColumn.cs: drawing fixes
28117 * DataGridCell.cs: fixes ToString method to match MSNet
28118 * DataGridTableStyle.cs: fixes
28119 * DataGridBoolColumn.cs: fixes, drawing
28120 * DataGridDrawingLogic.cs: fixes, new methods
28121 * DataGridTextBox.cs: Keyboard and fixes
28123 - Keyboard navigation
28125 - Row selection (single, multiple, deletion, etc)
28128 2005-06-07 Jackson Harper <jackson@ximian.com>
28130 * ThemeWin32Classic.cs: Clear the background area when drawing
28133 2005-06-06 Peter Bartok <pbartok@novell.com>
28135 * ImageListStreamer.cs: Fixed signature for GetData
28136 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
28138 - Added missing ChildAccessibleObject class
28139 - Added missing OnXXXFocus overrides, switched to using those
28140 instead of the event handler
28142 - Added Parent property for ControlAccessibleObject
28145 - Added ResetBindings()
28146 * ListBindingConverter.cs: Implemented some methods
28147 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
28148 * ImageList.cs: Implemented basic handle scheme, removed TODOs
28149 * ContainerControl.cs: Fixed signature, now subscribing to the
28150 ControlRemoved event instead of overriding the handler, LAMESPEC
28151 * CurrencyManager.cs: Added missing attribute
28152 * MonthCalendar.cs: Added missing properties
28154 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
28156 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
28158 2005-06-06 Gaurav Vaish and Ankit Jain
28160 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
28161 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
28163 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
28165 * Control.cs: fixes CreateParams Width / Height.
28167 2005-06-05 Peter Bartok <pbartok@novell.com>
28169 * Win32DnD.cs: Removed compilation warnings
28171 2005-06-05 Peter Bartok <pbartok@novell.com>
28173 * Control.cs (CreateParams): Since we don't know if one of the
28174 properties we use is overridden, lets make sure if we fail accessing
28175 we continue with a backup plan
28177 2005-06-05 Peter Bartok <pbartok@novell.com>
28180 - Removed debug output
28181 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
28183 - Plugged resource leak
28184 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
28187 2005-06-05 Peter Bartok <pbartok@novell.com>
28189 * XplatUIWin32.cs: Removed DnD code
28190 * Win32DnD.cs: Implemented drop source and drop target functionality
28192 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28194 * UpDownBase.cs: remove duplicate addition of event, enable some code
28195 that was commented out.
28196 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
28197 Validate input when a key is pressed. It works fine now for every
28198 combination of Hexadecimal. Only missing some drawing love when sharing
28199 space with other controls.
28201 2005-06-04 Peter Bartok <pbartok@novell.com>
28204 - We need to pass a window for DragDrop, so enable callback events
28205 - Added DnD callback events when being a DragSource
28206 * XplatUI.cs (StartDrag): Added window handle argument
28207 * XplatUIDriver.cs (StartDrag): Added window handle argument
28208 * QueryContinueDragEventArgs: Made fields internally accessible so
28209 drivers can set them
28210 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
28213 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
28215 * DataGridTextBoxColumn.cs: column text editing
28216 * DataGridTableStyle.cs: Respect columns styles created by the user
28217 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
28218 * DataGridBoolColumn.cs: bool column editing
28219 * DataGrid.cs: fixes to scrolling, properties, etc
28220 * DataGridTextBox.cs: handle keyboard
28221 * DataGridColumnStyle.cs: fixes
28223 2005-06-02 Jackson Harper <jackson@ximian.com>
28225 * ImageListStreamer.cs: Somewhat broken implementation of
28226 GetObjectData. The RLE needs some work to match MS properly.
28228 2005-06-02 Jackson Harper <jackson@ximian.com>
28230 * X11Dnd.cs: Attempting to keep at least one file in MWF
28233 2005-06-02 Peter Bartok <pbartok@novell.com>
28235 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
28238 2005-06-02 Peter Bartok <pbartok@novell.com>
28240 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
28241 * XplatUI.cs: Added DoDragDrop() method
28242 * XplatUIDriver.cs: Added DoDragDrop() method
28244 2005-06-02 Jackson Harper <jackson@ximian.com>
28246 * Splitter.cs: Implement BorderStyle.
28248 2005-06-02 Jackson Harper <jackson@ximian.com>
28250 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
28251 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
28254 2005-06-02 Peter Bartok <pbartok@novell.com>
28257 - Added Data setter
28258 - Fixed broken insertion code for SetData, now also
28259 overwrites any existing entry of the same format name
28260 * Hwnd.cs: Added list of pointers that automatically gets
28261 freed when the window is disposed
28262 * XplatUI.cs: Call driver initialization method when loading
28265 - OnDragLeave takes EventArgs, not DragEventArgs
28266 - Added setting of WS_EX_ACCEPTFILES style when dropping is
28268 - Forces style update when drop state changes
28269 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
28270 not perfect since we cannot (yet) call the IDataObject.GetData()
28271 method, we keep getting 0x80004005 error, dunno why)
28273 2005-06-02 Peter Bartok <pbartok@novell.com>
28275 * DragEventArgs.cs: Make fields internal so we can cache the
28276 object and re-set the fields from XplatUI
28278 2005-06-02 Jackson Harper <jackson@ximian.com>
28280 * Control.cs: Add some internal methods so the DnD subsystem can
28281 raise DnD events. Also call into the driver when AllowDrop is set.
28283 * XplatUIDriver.cs: New method for setting whether or not a window
28284 is allowed to accept drag and drop messages.
28286 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
28288 * ScrollBar.cs: Make sure that values sent in Scroll events
28289 are always between Maximum and Minimum.
28291 2005-06-01 Marek Safar <marek.safar@seznam.cz>
28293 * Menu.cs: Call MenuChanged when menuitem visibility has been
28295 * MenuItem.cs: Rebuild menu when item is (not) visible.
28296 * MainMenu.cs: MainMenu has special MenuChanged.
28297 * Theme.cs: Caption and FrameBorderSize are not fixed.
28298 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
28299 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
28301 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
28302 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
28304 2005-05-30 Jackson Harper <jackson@ximian.com>
28306 * DataFormat.cs: We can't statically initialize this stuff because
28307 it calls into the xplatui and could create a loop. So we lazy init
28310 2005-05-28 Jackson Harper <jackson@ximian.com>
28312 * Control.cs: Proper implementation of Product(Name/Version).
28314 2005-05-27 Jackson Harper <jackson@ximian.com>
28316 * DataObject.cs: Dont crash if no data is found.
28318 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28319 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
28320 as per status page, guessing it should be set to true
28322 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
28324 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
28325 * DataGridTableStyle.cs: set proper formatting text, def header text
28326 * ThemeWin32Classic.cs: new themable paramaters
28327 * DataGridBoolColumn.cs: paint check box, get data, fixes
28328 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
28329 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
28330 * DataGridColumnStyle.cs: fixes
28331 * Theme.cs: new themable paramaters
28333 2005-05-26 Peter Bartok <pbartok@novell.com>
28335 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
28337 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28338 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
28340 2005-05-24 Peter Bartok <pbartok@novell.com>
28342 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
28343 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
28344 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
28345 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
28346 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
28347 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
28348 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
28349 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
28350 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
28351 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
28352 missing attributes, etc
28353 * DataGridPreferredColumnWidthTypeConverter.cs: Added
28355 2005-05-24 Peter Bartok <pbartok@novell.com>
28357 * Help.cs: Added, implemented trivial functions, throws up MessageBox
28358 when user tries to get help
28359 * DataObject.cs, DataFormats.cs, LinkArea.cs,
28360 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
28361 to suppress warnings
28362 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
28363 avoid unreachable code warning
28365 2005-05-20 Peter Bartok <pbartok@novell.com>
28367 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
28369 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28371 * DataGridTextBoxColumn.cs: Basic painting methods
28372 * DataGridTableStyle.cs: Set table style in the column
28373 * ThemeWin32Classic.cs: Use Theme for colors
28374 * DataGridDrawingLogic.cs: Implement more drawing
28375 * DataGrid.cs: drawing, theming, enhacements, fixes
28376 * DataGridColumnStyle.cs: fixes, drawing
28377 * Theme.cs: theming for Datagrid
28379 2005-05-20 Peter Bartok <pbartok@novell.com>
28381 * Cursor.cs: Implemented GetObjectData() method
28383 2005-05-20 Peter Bartok <pbartok@novell.com>
28385 * Cursors.cs: Added setting of cursor name
28387 - Implemented constructors
28388 - Implemented Draw and DrawStretched
28389 - Implemented Current property
28390 - Implemented == and != operators
28391 - Implemented Dispose()
28392 - Implemented ToString
28393 - Added missing attributes
28395 - Added missing reset for OverrideCursor when DoEvents is called
28396 - Fixed creation of cursor, logic was wrong
28398 - Added missing reset for OverrideCursor when DoEvents is called
28399 - Fixed creation of cursor, bit arrays were swapped
28400 * Clipboard.cs: Removed obsolete MonoTODO attribute
28402 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28404 * ComboBox.cs: fixes OnSelectedItemChanged
28405 * ControlBindingsCollection.cs: fixes item range check
28407 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28410 - Calc preferred height properly
28411 - Implement missing properties
28413 * NumericUpDown.cs: Implement missing events
28415 2005-05-19 Jackson Harper <jackson@ximian.com>
28417 * TabControl.cs: New method that resizes the tab pages before
28418 redrawing them. This as needed as the control is double buffered
28419 and sizing will not be recalculated unless ResizeTabPages is
28421 * TabPage.cs: Set base.Text instead of Text in the constructor so
28422 that UpdateOwner does not get called. Use the new Redraw method of
28423 TabControl instead of Refresh so the sizing is recalculated.
28424 * ThemeWin32Classic.cs: Draw the text for button tabs.
28426 2005-05-19 Jackson Harper <jackson@ximian.com>
28428 * Control.cs: Paint control background images. Fix typo where
28429 PaintControlBackground was not getting called correctly.
28431 2005-05-19 Peter Bartok <pbartok@novell.com>
28433 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
28434 I can investigate, apparently I broke FileDialog
28436 2005-05-19 Marek Safar <marek.safar@seznam.cz>
28438 * AxHost.cs: Some simple properties.
28439 * Control.cs: window must be accessible after ctor.
28440 * Form.cs: Added TransparencyKey property.
28441 * TextBoxBase.cs: Implemented Clear. Text property can be null.
28442 * XplatUIWin32.cs: SetBorderStyle implemented.
28444 2005-05-18 Peter Bartok <pbartok@novell.com>
28446 * DataObject.cs: Entries are not global but particular to the
28447 DataObject, now it behaves that way
28448 * XplatUIWin32.cs: Implemented Clipboard methods
28449 * Clipboard.cs: Implemented
28450 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
28451 * XplatUIOSX.cs: Updated to final clipboard prototypes
28452 * XplatUIX11.cs: Implemented Clipboard methods
28453 * XplatUIDriver.cs: Updated to final clipboard prototypes
28454 * XplatUIStructs.cs:
28455 - Added BITMAPINFOHEADER struct
28456 - Added ClipboardFormats enum
28458 - Added ClipboardStruct
28459 - Added Atom enum items for clipboard types
28460 - Fixed atom types for Selection event structures
28462 - Added internal properties and methods for drivers to enumerate
28464 - Switched initialization method to allow drivers to assign their
28465 own IDs even for the MS predefined clipboard IDs
28466 * XplatUI.cs: Updated to final clipboard interface
28468 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28469 * PropertyGridView.cs: Fixed compiler warnings.
28471 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28472 * PropertyGrid.cs: Added some event calls
28473 * PropertyGridView.cs: Change drawing code to use double buffering
28474 * PropertyGridTextBox.cs: Changed Text property name
28475 * GridItem.cs: Added Bounds property.
28476 * GridEntry.cs: Added Bounds property.
28478 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
28480 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
28481 since GetType() may not return the correct type if the object is
28484 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
28486 * TreeNodeCollection.cs: fixes get/set item ranges
28488 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28490 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
28492 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28494 * ComboBox.cs: Fix item range comparation
28495 * ListView.cs: Fix item range comparation
28497 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28500 - Clear example panel when OnPaint is called
28501 - Better solution for displaying the example panel text
28502 - Select default indexes in the ListBoxes
28504 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28506 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
28508 2005-05-11 Peter Bartok <pbartok@novell.com>
28510 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
28511 * SelectionRangeConverter.cs: Implemented
28512 * PropertyGrid.cs: Fixed attribute value
28514 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
28515 - Added Sebastien Pouliot's CAS Stack Propagation fixes
28516 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
28517 that's common to all drivers. First methods to go there are
28518 Sebastien Pouliot's CAS Stack Propagation helper methods
28519 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
28520 Sebastien Pouliot for CAS Stack Propagation
28522 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28525 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
28527 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
28529 * DataGridTextBoxColumn.cs: fixed some members
28530 * GridColumnStylesCollection.cs: indexed column is case insensitive
28531 * DataGridTableStyle.cs: fixes
28532 * ThemeWin32Classic.cs: add new theme parameter
28533 * Theme.cs: add new theme parameter
28534 * DataGridDrawingLogic.cs: Datagrid's drawing logic
28535 * DataGrid.cs: fixes, new internal properties, etc.
28536 * DataGridColumnStyle.cs: allows to set grid value
28539 2005-05-10 Peter Bartok <pbartok@novell.com>
28541 * AccessibleObject.cs:
28542 - Removed MonoTODO attribute on help, method is correct
28543 - Fixed Bounds property
28544 * AxHost.cs: Moved MonoTODO
28545 * ButtonBase.cs: Now setting AccessibleObject properties
28546 * RadioButton.cs: Setting proper AccessibleObject role
28547 * CheckBox.cs: Setting proper AccessibleObject role
28548 * ControlBindingsCollection.cs: Added properties, methods and attributes
28549 * DataFormats.cs: Fixed awkward internal API, and changed to enable
28550 userdefined DataFormats.Format items as well
28551 * ListControl.cs: Removed data_member from the public eye
28552 * OpenFileDialog.cs:
28553 - Made class sealed
28554 - Added missing attributes
28555 * SaveFileDialog.cs: Added missing attributes
28556 * ImageListStreamer.cs: Fixed code that caused warnings
28557 * LinkLabel.cs: Removed unreachable code
28558 * TreeView.cs: Fixed code that caused warnings
28559 * PropertyGridView.cs: Fixed code that caused warnings
28560 * GridColumnStylesCollection.cs: Added missing attributes
28561 * GridTableStylesCollection: Added missing attribute
28562 * PropertyManager: Added .ctor
28563 * SecurityIDType: Added
28564 * DataObject.cs: Implemented class
28565 * LinkArea.cs: Added missing attribute
28567 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
28569 * RadioButton.cs: call base method to allow to fire OnClick event
28570 * UpDownBase.cs: OnMouseUp call base method
28571 * CheckedListBox.cs: call base method before returning
28572 * TrackBar.cs: call base method before returning
28575 2005-05-10 Peter Bartok <pbartok@novell.com>
28577 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
28580 2005-05-10 Peter Bartok <pbartok@novell.com>
28582 * DataFormats.cs: Implemented
28583 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
28584 XplatUIX11.cs: Added Clipboard APIs
28585 * XplatUIWin32.cs: Implemented Clipboard APIs
28586 * FolderBrowserDialog.cs: Added missing event, attributes
28588 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
28590 * CheckBox.cs: call base method to allow to fire OnClick event
28592 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
28594 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
28596 2005-05-06 Peter Bartok <pbartok@novell.com>
28598 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
28599 * Screen.cs: Implemented
28600 * HelpNavigator.cs: Added
28601 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
28603 * HelpProvider.cs: Implemented all we can do until we have a CHM
28604 help library (which means that "What's This" does work now)
28606 2005-05-06 Jackson Harper <jackson@ximian.com>
28608 * XplatUIX11.cs: Fix waking up the main loop.
28610 2005-05-05 Peter Bartok <pbartok@novell.com>
28612 * XplatUI.cs: Updated revision
28613 * Form.cs: Removed enless loop
28614 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
28615 * Label.cs (OnPaint): Added call to base.OnPaint()
28616 * ToolTip.cs: Made ToolTipWindow reusable for other controls
28617 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
28618 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
28620 * ButtonBase.cs: Moved base.OnPaint() call to end of method
28621 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
28622 to ToolTip.ToolTipWindow for drawing and size methods; this allows
28623 reuse of ToolTipWindow by other controls
28624 * SizeGrip.cs: Moved base.OnPaint() call to end of method
28625 * XplatUIX11.cs: Now clipping drawing area (experimental)
28626 * PictureBox.cs: Moved base.OnPaint() call to end of method
28627 * Theme.cs: Fixed ToolTip abstracts to match new format
28628 * ErrorProvider.cs: Implemented
28630 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
28632 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
28636 - Implements LinkBehavior
28637 - Fixes many issues
28639 2005-05-03 Jackson Harper <jackson@ximian.com>
28641 * ListView.cs: Calculate the scrollbar positioning on resize and
28642 paint, so they get put in the correct place.
28644 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28646 * ColorDialogs.cs: The small color panels are now handled by
28647 SmallColorControl. This fixes drawing of the focus rectangle
28648 and adds a 3D border.
28650 2005-05-03 Peter Bartok <pbartok@novell.com>
28652 * Control.cs: Modified version of Jonathan Chamber's fix for
28655 2005-05-03 Jackson Harper <jackson@ximian.com>
28657 * ListView.cs: Remove redraw variable. Control now handles whether
28658 or not a redraw needs to be done, and will only raise the paint
28659 event if redrawing is needed.
28661 2005-05-03 Jackson Harper <jackson@ximian.com>
28663 * Splitter.cs: No decorations for the splitter form. Cache the
28666 2005-05-03 Jackson Harper <jackson@ximian.com>
28668 * TreeView.cs: Use dashed lines to connect nodes. Use the
28669 ControlPaint method for drawing the focus rect instead of doing
28672 2005-05-02 Peter Bartok <pbartok@novell.com>
28674 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
28676 2005-04-29 Jackson Harper <jackson@ximian.com>
28678 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
28679 entire image buffer. Just clear the clipping rectangle.
28681 2005-04-29 Jackson Harper <jackson@ximian.com>
28683 * ThemeWin32Classic.cs: Don't draw list view items that are
28684 outside the clipping rectangle.
28686 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
28688 * ListBox.cs: added horizontal item scroll
28690 2005-04-29 Jackson Harper <jackson@ximian.com>
28692 * ThemeWin32Classic.cs: Remove some old debug code that was
28693 causing flicker with the new double buffering code.
28695 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
28697 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
28698 behave like combobox and comboboxlist (still not sure if this is
28701 2005-04-28 Jackson Harper <jackson@ximian.com>
28703 * ThemeWin32Classic.cs: Don't fill the middle of progress
28704 bars. This fills areas outside of the clip bounds that don't need
28707 2005-04-28 Jackson Harper <jackson@ximian.com>
28709 * Control.cs: Don't expose functionality to touch the image buffers.
28711 * ListView.cs: We do not need to (and no longer can) manipulate
28712 the image buffers directly. All of this is handled by Control.
28714 2005-04-28 Peter Bartok <pbartok@novell.com>
28716 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28717 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
28718 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
28720 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28723 - Adjust control's height for non-simple comboboxes (bug fix)
28725 * MenuAPI.cs: remove unused var
28726 * ScrollBar.cs: remove unsed var
28728 * ListBox.cs: unselect items when clearing
28730 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28732 * ListControl.cs: honors OnPositionChanged and default Selected Item
28733 * ListBox.cs: unselect items when clearing
28735 2005-04-27 Jackson Harper <jackson@ximian.com>
28737 * X11Keyboard.cs: Initialize a default keyboard and give a warning
28738 if a "correct" keyboard is not found. This will make us not crash,
28739 but might give some users bad keyboard layouts...seems to be the
28740 same thing rewind does.
28742 2005-04-27 Jackson Harper <jackson@ximian.com>
28744 * BindingManagerBase.cs: Attach the current/position changed
28745 handlers to their respective events.
28747 2005-04-27 Jackson Harper <jackson@ximian.com>
28749 * Control.cs: Make sure that the first WM_PAINT does a full draw,
28751 * ThemeWin32Classic.cs: Don't fill the background for picture
28752 boxes. This could overright user drawing.
28753 * ComboBox.cs: Just fill the clipping rect not the entire client
28754 rect when drawing the background. This prevents pieces of the
28755 image buffer from getting overwritten and is theoretically faster.
28757 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
28759 * ComboBox.cs: Databinding support fixes, fire missing events
28760 * ListControl.cs: implement missing methods and properties, fixes
28761 * ThemeWin32Classic.cs: Databiding support on Drawing
28762 * CheckedListBox.cs: Databinding support fixes, fire missing events
28763 * ListBox.cs: Databinding support fixes, fire missing events
28765 2005-04-25 Peter Bartok <pbartok@novell.com>
28767 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
28769 2005-04-25 Jackson Harper <jackson@ximian.com>
28771 * TreeView.cs: Use the horizontal scrollbars height not width when
28772 determining how much of the client area is available.
28774 2005-04-25 Jackson Harper <jackson@ximian.com>
28776 * Control.cs: Double buffering is handled differently now. As per
28777 the spec, the extra buffer is created in the WM_PAINT message and
28778 passed down to the control's drawing code.
28786 * PropertyGridView.cs:
28798 * DateTimePicker.cs:
28800 * TreeView.cs: Update to new double buffering system.
28801 * MonthCalendar.cs: Uncomment block, as Capture is now
28802 working. Update to new double buffering
28803 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
28804 * PaintEventArgs.cs: New internal method allows us to set the
28805 graphics object. This is used for double buffering.
28806 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
28807 rectangle. The internal paint_area var has been removed from
28808 StatusBar. The clipping rect should be used instead.
28809 * Theme.cs: Give the PictureBox drawing method a clipping rect.
28810 * TabPage.cs: The RefreshTabs method was removed, so just call the
28811 tab controls Refresh method now.
28812 * TabControl.cs: Update to new double buffering. Make sure the
28813 handle is created before sizing the tab pages, otherwise we will
28814 get stuck in a loop.
28816 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
28818 * LinkLabel.cs: Fix typo, bug #74719; patch
28819 from Borja Sanchez Zamorano
28821 2005-04-22 Jackson Harper <jackson@ximian.com>
28823 * TreeNode.cs: Implement Handle stuff.
28824 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
28826 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
28828 * DataGridTextBoxColumn.cs: call base constructors, fixes
28829 * GridColumnStylesCollection.cs: missing events, methods, and functionality
28830 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
28831 * DataGridTableStyle.cs: implements create default column styles
28832 * DataGridBoolColumn.cs: which types can handle
28833 * DataGrid.cs: missing methods, fixes, new functionality
28834 * DataGridColumnStyle.cs: fixes
28836 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
28837 * FolderBrowserDialog.cs:
28838 - Use a thread to fill the TreeView
28839 - Adjusted some sizes
28841 2005-04-19 Peter Bartok <pbartok@novell.com>
28843 * LinkLabel.cs: (Re-)create the pieces when setting the Text
28844 property. Fixes #74360.
28846 2005-04-19 Jackson Harper <jackson@ximian.com>
28848 * XEventQueue.cs: Lock when getting the lockqueue size.
28849 * PictureBox.cs: Call base OnPaint
28851 2005-04-19 Peter Bartok <pbartok@novell.com>
28853 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28854 messages were no longer being processed (this broke BeginInvoke)
28857 2005-04-18 Jackson Harper <jackson@ximian.com>
28859 * TreeView.cs: buglet that caused node images to get drawn
28860 regardless of whether or not they were in the clipping rectangle.
28862 2005-04-18 Jackson Harper <jackson@ximian.com>
28864 * CurrencyManager.cs: There are four rules for GetItemProperties:
28865 - If the type is an array use the element type of the array
28866 - If the type is a typed list, use the type
28867 - If the list contains an Item property that is not an object, use
28869 - use the first element of the list if there are any elements in
28872 2005-04-17 Jackson Harper <jackson@ximian.oom>
28874 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28875 click. This handles offsets for scrolling properly and reduces
28876 memory. Also fixed GetNode to not offset now that TopNode works
28878 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28880 2005-04-17 Jackson Harper <jackson@ximian.com>
28882 * CursorConverter.cs: Initial implementation.
28884 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28886 * ListControl.cs: work towards complex data binding support on ListControl
28887 * CurrencyManager.cs: work towards complex data binding support on ListControl
28888 * ListBox.cs: work towards complex data binding support on ListControl
28891 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28893 * GridTableStylesCollection.cs: fixes name and constructor
28894 * DataGridTableStyle.cs: fixes
28895 * DataGridBoolColumn.cs: fixes names and constructors
28896 * DataGrid.cs: define methods and properties. Some init implementations
28897 * DataGridCell.cs: define methods and properties. Some init implementations
28898 * GridTablesFactory.cs: Define methods and properties
28900 2005-04-15 Geoff Norton <gnorton@customerdna.com>
28902 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
28903 graphics port changes. We still want the coordinates in global screen
28906 2005-04-14 Jackson Harper <jackson@ximian.com>
28908 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28909 check plus minus or checkbox clicks unless those features are enabled.
28911 2005-04-14 Jackson Harper <jackson@ximian.com>
28913 * TreeView.cs: Add methods for setting the top and bottom visible
28914 nodes. TreeNode::EnsureVisible uses these methods.
28915 * TreeNode.cs: Implement EnsureVisible
28917 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
28919 * Form.cs: Pospone menu assignation if the window has not been created yet
28920 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28923 2005-04-12 Jackson Harper <jackson@ximian.com>
28925 * TreeView.cs: Set the TopNode properly when scrolling
28926 occurs. This has the added benifit of reducing the amount of
28927 walking that needs to be done when drawing. Also removed an old
28929 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28931 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
28933 * Timer.cs: fixes interval setting when the timer is already enabled
28935 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
28937 * FolderBrowserDialog.cs: First approach
28939 2005-04-09 Peter Bartok <pbartok@novell.com>
28941 * FolderBrowserDialog: Added
28943 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
28945 * LinkLabel.cs: move drawing code into the theme
28946 * ThemeWin32Classic.cs: drawing code and painting background bugfix
28947 * Theme.cs: define DrawLinkLabel method
28949 2005-04-05 Jackson Harper <jackson@ximian.com>
28951 * BindingContext.cs: Use weak references so these bad actors don't
28952 stay alive longer then they need to.
28954 2005-04-05 Jackson Harper <jackson@ximian.com>
28956 * ListControl.cs: Basic implementation of complex databinding.
28958 * ListBox.cs: Add calls to ListControl databinding methods.
28960 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
28963 - Don't change PopupButtonState to Normal when the
28964 PopupButton gets pressed several times.
28965 - Renamed ButtonPanel to PopupButtonPanel
28967 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
28969 * ColorDialog.cs: Use cached objects instead of creating them
28970 * LinkLabel.cs: Use cached objects instead of creating them
28971 * Splitter.cs: Use cached objects instead of creating them
28972 * FontDialog.cs: Use cached objects instead of creating them
28973 * PropertyGridView.cs: Use cached objects instead of creating them
28974 * MessageBox.cs: Use cached objects instead of creating them
28975 * FileDialog.cs: Use cached objects instead of creating them
28976 * ThemeWin32Classic.cs: Use cached objects instead of creating them
28977 * TreeView.cs: Use cached objects instead of creating them
28979 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
28981 * Control.cs: use Equals to compare the font since no == op
28982 * ScrollBar.cs: use Equals to compare the font since no == op
28984 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
28986 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
28988 2005-04-01 Jackson Harper <jackson@ximian.com>
28990 * Binding.cs: Implement IsBinding.
28991 * BindingManagerBase.cs:
28992 * PropertyManager.cs:
28993 * CurrencyManager.cs: Add IsSuspended property.
28995 2005-04-01 Jackson Harper <jackson@ximian.com>
28997 * Binding.cs: Had some IsAssignableFrom calls backwards.
28999 2005-04-01 Jackson Harper <jackson@ximian.com>
29001 * Binding.cs: Handle null data members when pulling data.
29002 * PropertyManager.cs: Handle the data member being a property that
29005 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29007 * DataGridTextBoxColumn.cs: fixes signature
29008 * DataGrid.cs: calls right constructor
29010 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29012 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29013 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29014 * GridTableStylesCollection.cs: implements GridTableStylesCollection
29015 * DataGridTableStyle.cs: implements DataGridTableStyle
29016 * DataGridBoolColumn.cs: implements DataGridBoolColumn
29017 * DataGridTextBox.cs: implements DataGridTextBox
29018 * DataGridColumnStyle.cs: implements DataGridColumnStyle
29020 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
29022 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
29024 2005-03-29 Peter Bartok <pbartok@novell.com>
29027 - Properly implemented CompanyName property
29028 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
29029 returns a path that includes CompanyName, ProductName and
29030 Version (fixes bug #70330)
29032 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
29034 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
29037 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29039 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
29041 - Added ReadOnly CheckBox
29042 - Further refactoring: moved some code from Open-/SaveFileDialog
29045 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29047 * OpenFileDialog.cs: Fixed CheckFileExists
29049 Moved FileView and DirComboBox outside FileDialog class.
29050 They can now be used outside FileDialog
29052 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29054 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
29055 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
29057 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29059 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29060 - Added missing CreatePrompt property in SaveDialog
29061 - Overall SaveDialog handling should be better now
29062 - Added non standard ShowHiddenFiles property
29063 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
29064 - Added InitialDirectory and RestoreDirectory support
29066 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
29068 * FileDialog.cs: Made dirComboBox usable
29070 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
29072 * FileDialog.cs: Added Filter support (case sensitiv)
29074 2005-03-24 Jackson Harper <jackson@ximian.com>
29076 * TabControl.cs: Need a couple more pixels for the lines.
29078 2005-03-23 Jackson Harper <jackson@ximian.com>
29080 * TabControl.cs: Give the tab page focus when it is selected.
29082 2005-03-23 Jackson Harper <jackson@ximian.com>
29084 * TabControl.cs: Account for the drawing of tabs borders when
29085 invalidating. If the slider was clicked dont do click detection on
29088 2005-03-23 Jackson Harper <jackson@ximian.com>
29090 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
29092 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
29094 * CategoryGridEntry.cs: Added
29095 * GridItem.cs: Added helper properties
29096 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
29097 * GridEntry.cs: Updated code for collection
29098 * PropertyGrid.cs: Cleaned up some formatting
29099 * PropertyGridView.cs: Added drop down functionality for enums.
29100 * GridItemCollection.cs: Added enumerator logic
29101 * PropertyGridEntry.cs: Added
29103 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
29106 - Removed unnecessary commented code
29107 - Fixed handling for entering the filename manually in the combobox
29109 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
29111 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
29113 2005-03-18 Peter Bartok <pbartok@novell.com>
29115 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
29116 them being touching the border
29118 2005-03-18 Peter Bartok <pbartok@novell.com>
29120 * TextControl.cs: Quick hack to center text better
29122 2005-03-18 Peter Bartok <pbartok@novell.com>
29125 - Don't throw NotImplemented exceptions, just print a notice once
29126 instead (requested by Miguel). This makes running existing SWF
29129 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
29130 - Added context menu trigger on right click
29131 * Panel.cs: Trigger invalidate on resize
29133 - Removed old double-buffer drawing
29134 - Added ResizeRedraw style to force proper update of statusbar
29136 - Removed debug output
29137 * ThemeWin32Classic.cs:
29138 - Fixed drawing of status bar, now draws Text property if there
29139 are no defined panels
29141 2005-03-18 Jackson Harper <jackson@ximian.com>
29143 * ImageList.cs: When the image stream is set pull all the images
29145 * ImageListStreamer.cs: Implement reading image list streams.
29147 2005-03-18 Peter Bartok <pbartok@novell.com>
29149 * ThemeWin32Classic.cs (DrawPictureBox):
29150 - Fixed calculations for centered drawing
29151 - Fixed drawing for normal mode, not scaling the image on normal
29153 2005-03-18 Peter Bartok <pbartok@novell.com>
29155 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
29158 - Made Open/Save button the accept button for FileDialog
29159 - Tied the cancel button to the IButtonControl cancel button
29160 - Save/Open now properly builds the pathname
29161 - Now handles user-entered text
29162 - Preventing crash on right-click if no item is selected
29163 - Fixed Text property, now uses contents of textbox
29164 - Fixed SelectedText property, now just returns the text part that
29165 is selected in the text box
29167 2005-03-18 Jackson Harper <jackson@ximian.com>
29169 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
29170 rect, make sure to de-adjust the interior rect after drawing the
29173 2005-03-18 Peter Bartok <pbartok@novell.com>
29175 * MenuAPI.cs: Remove menu *before* executing selected action to
29176 prevent the menu from 'hanging around'
29178 2005-03-17 Geoff Norton <gnorton@customerdna.com>
29180 * XplatUIOSX.cs: Implemented WorkingArea property
29182 2005-03-17 Peter Bartok <pbartok@novell.com>
29184 * XplatUIX11.cs: Fixed menu coord calculations
29185 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
29186 for calculating offsets
29188 2005-03-17 Peter Bartok <pbartok@novell.com>
29190 * Hwnd.cs: Do not consider menu presence for default client
29191 rectangle location/size
29192 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29193 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
29194 translation functions
29195 * FileDialog.cs: Fixed (what I presume is a) typo
29197 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
29199 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
29200 X access (avoids X-Async errors)
29202 2005-03-16 Jackson Harper <jackson@ximian.com>
29204 * TabControl.cs: Raise the SelectedIndexChanged event.
29206 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
29208 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29209 - Removed vertical ToolBar and replaced it with a custom panel
29210 (desktop and home button already work)
29211 - Added Help button (some controls get resized or relocated then)
29212 - Draw correct text depending on Open or Save.
29213 - Fixed some typos...
29215 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
29218 - Only change Maximum and Minimum when need it (bug fix)
29220 2005-03-15 Peter Bartok <pbartok@novell.com>
29222 * Form.cs: Use Handle for icon, to trigger creation if
29223 the window does not yet exist
29225 - CanSelect: Slight performance improvement
29226 - Focus(): Preventing possible recursion
29227 - Invalidate(): Removed ControlStyle based clear flag setting
29228 - WM_PAINT: fixed logic for calling OnPaintBackground
29229 - WM_ERASEBKGND: Fixed logic, added call to new driver method
29230 EraseWindowBackground if the control doesn't paint background
29232 - Moved EraseWindowBackground() method to internal methods
29233 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
29234 is sent via SendMessage on BeginPaint call on Win32
29236 - Added EraseWindowBackground() method
29237 - No longer sends WM_ERASEBKGND on .Expose, but on call to
29238 PaintEventStart, which more closely matches Win32 behaviour
29239 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
29240 - Fixed SetFocus() to properly deal with client and whole windows
29241 * Hwnd.cs: Added ErasePending property
29242 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
29243 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
29245 2005-03-12 Geoff Norton <gnorton@customerdna.com>
29248 - Fix hard loop when timers exist.
29249 - Fix bugs with middle and right click for 3 button mice.
29251 2005-03-11 Peter Bartok <pbartok@novell.com>
29254 - get_WorkingArea: Need to call X directly, GetWindowPos only
29255 returns cached data now
29256 - Added sanity check to GetWindowPos hwnd usage
29258 2005-03-11 Jackson Harper <jackson@ximian.com>
29260 * BindingManagerBase.cs: This method isn't used anymore as
29261 PullData now updates the data in the control.
29263 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
29265 * Form.cs: fixes menu drawing on X11
29266 * MenuAPI.cs: fixes menu drawing on X11
29268 2005-03-11 Peter Bartok <pbartok@novell.com>
29270 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
29271 from Jonathan Gilbert; should fix bug #73606
29272 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
29273 in Screen coordinates. Thanks, Jordi.
29274 * Form.cs: Added missing attribute
29276 2005-03-11 Peter Bartok <pbartok@novell.com>
29279 - Rudimentary Mdi support
29280 - Removed outdated FormParent code
29281 - Implemented lots of missing properties and methods, still missing
29282 transparency support
29283 - Added missing attributes
29284 - Implemented support for MaximumBounds
29285 - Added firing of various events
29286 * XplatUI.cs: Added SetIcon() method
29287 * XplatUIDriver.cs: Added SetIcon() abstract
29288 * XplatUIOSX.cs: Stubbed out SetIcon() method
29290 - Implemented SetIcon() support
29291 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
29292 - Switched to unix line endings
29294 - Made POINT internal so for can access it as part of MINMAX
29295 - Implemented SetIcon() support
29296 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
29297 native Mdi support again, might have to go managed)
29298 * Control.cs: Now fires the StyleChanged event
29299 * MdiClient.cs: Added; still mostly empty
29301 2005-03-10 Peter Bartok <pbartok@novell.com>
29303 * SaveFileDialog.cs: Added emtpy file
29305 2005-03-08 Peter Bartok <pbartok@novell.com>
29307 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
29308 in turn triggers OnCreateContro) when creating a handle for the
29310 * TextControl.cs: Fixed endless loop in certain cases when
29311 replacing the current selection
29313 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
29316 - Honors NewValue changes in Scroll events allowing apps to change it
29317 - Adds First and Last Scroll events
29318 - Fixes Thumb events
29320 2005-03-07 Peter Bartok <pbartok@novell.com>
29322 * Hwnd.cs: Added DefaultClientRectangle property
29323 * XplatUI.cs: Now using the X11 driver Where() method, which provides
29324 more detailed debug information
29326 - Fixed size-change feedback loop, where we would pull an old size
29327 off the queue and mistakenly change our window's size to an
29329 - Now compressing ConfigureNotify events, to reduce looping and
29331 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
29334 2005-03-07 Jackson Harper <jackson@ximian.com>
29336 * Binding.cs: Push data pushes from data -> property. Check if the
29337 property is readonly when attempting to set it.
29339 2005-03-07 Jackson Harper <jackson@ximian.com>
29341 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
29342 instead of IsSubclassOf. Pulling data now sets the value on the
29344 * PropertyManager.cs:
29345 * CurrencyManager.cs: Just need to pull data when updating now,
29346 because PullData will set the value on the control.
29348 2005-03-04 Jackson Harper <jackson@ximian.com>
29350 * Binding.cs: Implement data type parsing and converting on pulled
29351 data. TODO: Are there more ways the data can be converted?
29353 2005-03-04 Jackson Harper <jackson@ximian.com>
29355 * Binding.cs: Support <Property>IsNull checks. Also bind to the
29356 controls Validating method so we can repull the data when the
29357 control loses focus.
29359 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
29362 - Fixes null string format
29365 - Adds enum type checks
29366 - Fixes redrawing and recalc need after changing some properties
29367 - Fixes on focus_item set after the event
29368 - Fixes adding columns after the control has been created
29370 * ThemeWin32Classic.cs:
29371 - Fixes CheckBox focus rectangle
29372 - Fixes ColumnHeader drawing
29375 2005-03-03 Jackson Harper <jackson@ximian.com>
29377 * Binding.cs: Bind to <Property>Changed events so we can detect
29378 when properties are changed and update the data.
29380 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
29383 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
29384 - Fixes ImageList constructor with ImageList container
29385 - Fixes image scaling (wrong parameters at DrawImage)
29387 2005-02-02 Jackson Harper <jackson@ximian.com>
29389 * Binding.cs: Make property searches case-insensitive. Eliminate
29390 some duplicated code.
29392 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
29395 - Handle focus event
29396 - Fix scrollbar events
29397 - Discard highlighted item if remove it
29398 - Fixes SelectedItem with strings
29400 2005-03-01 Peter Bartok <pbartok@novell.com>
29403 - Fixed Visible property, now follows (once again) parent chain
29404 to return false if any control in the chain is visible=false
29405 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
29406 - Fixed several places where is_visible instead of Visible was used
29407 - Implemented FIXME related to focus selection when setting focused
29408 control to be invisible
29410 * XplatUIWin32.cs: Now using proper method to find out if window is
29411 visible. Thanks to Jordi for pointing it out
29413 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
29415 * ComboBox.cs: show/hide scrollbar instead of creating it
29417 2005-02-27 Jackson Harper <jackson@ximian.com>
29419 * CurrencyManager.cs: Add PositionChanged stuff.
29421 2005-02-27 Peter Bartok <pbartok@novell.com>
29423 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
29424 * XplatUIOSX.cs: Added GetMenuOrigin() stub
29425 * XplatUIWin32.cs: Implemented GetMenuOrigin()
29427 - Implemented GetMenuDC()
29428 - Implemented GetMenuOrigin()
29429 - Implemented ReleaseMenuDC()
29430 - Implemented generation of WM_NCPAINT message
29431 - Implemented generation and handling of WM_NCCALCSIZE message
29432 * Form.cs: Added debug helper message for Jordi's menu work
29434 - Modified ClientRect property; added setter, fixed getter to handle
29435 setting of ClientRect
29436 - Added MenuOrigin property
29438 2005-02-26 Peter Bartok <pbartok@novell.com>
29441 - Destroys the caret if a window that's being destroyed contains it
29442 - Ignores expose events coming from the X11 queue for windows that
29443 already are destroyed
29444 - Now uses the proper variable for handling DestroyNotify, before we
29445 marked the wrong window as destroyed
29446 - Improved/added some debug output
29448 2005-02-26 Peter Bartok <pbartok@novell.com>
29450 * X11Keyboard.cs: Fixes to work on 64bit systems
29452 2005-02-26 Peter Bartok <pbartok@novell.com>
29455 - Now calling OnHandleDestroyed from DestroyHandle()
29456 instead of Dispose()
29457 - Removed bogus call to controls.Remove() from DestroyHandle()
29459 2005-02-26 Peter Bartok <pbartok@novell.com>
29461 * Control.cs: Properly destroy child windows when our handle is
29464 2005-02-25 Peter Bartok <pbartok@novell.com>
29467 - Added 'DriverDebug' define to allow tracing XplatUI API calls
29468 - Alphabetized Static Methods and Subclasses
29471 - Added XException class to allow custom handling of X11 exceptions
29472 - Created custom X11 error handler, tied into XException class
29473 - Added support for MONO_XEXCEPTIONS env var to allow the user
29474 to either throw an exception on X errors or continue running
29475 after displaying the error
29476 - Added handling of DestroyNotify message
29477 - Added handler for CreateNotify message (still disabled)
29478 - Improved (tried to at least) Where method to provide file and lineno
29480 - Added XErrorHandler delegate
29481 - Added XRequest enumeration (to suppor translation of errors)
29483 2005-02-25 Jackson Harper <jackson@ximian.com>
29485 * PropertyManager.cs: Implement editing features
29486 * CurrencyManager.cs:
29487 * Binding.cs: First attempt at UpdateIsBinding
29488 * BindingManagerBase.cs: Call UpdateIsBinding before
29489 pushing/pulling data.
29491 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
29493 * MenuAPI.cs: Respect disabled items
29494 * ThemeWin32Classic.cs
29495 - Caches ImageAttributes creation for DrawImageDisabled
29496 - Fixes vertical menu line drawing
29497 - Draws disabled arrows in disable menu items
29499 2005-02-24 Peter Bartok <pbartok@novell.com>
29502 - Added UserData property to allow associating arbitrary objects
29504 - Fixed leak; now removing Hwnd references from static windows array
29506 - Fixed Graphics leak in PaintEventEnd
29507 - Removed usage of HandleData, switched over to Hwnd class
29508 * HandleData.cs: Removed, obsoleted by Hwnd.cs
29510 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29512 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
29513 * ScrollBar.cs: Fixes bug
29514 * TrackBar.cs: removes death code, clipping, mimize refreshes,
29515 keyboard navigation enhancements
29517 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29519 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
29520 * GroupBox.cs: Add control styles
29521 * Label.cs: Add control styles
29522 * UpDownBase.cs: Add control styles
29523 * ListBox.cs: Add control styles
29524 * XplatUIWin32.cs: Fixes wrong parameter order
29527 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
29529 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
29531 2005-02-23 Jackson Harper <jackson@ximian.com>
29533 * PropertyManager.cs: Implement property binding. This doesn't
29534 seem to work yet though as (I think) there are some bugs in
29535 System.ComponentModel.PropertyDescriptor.
29536 * BindingContext.cs: Use new PropertyManager constructor.
29538 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
29540 * ProgressBar.cs: use clip region in ProgressBar
29541 * ThemeWin32Classic.cs: use clip region in ProgressBar
29543 2004-02-22 Jackson Harper <jackson@ximian.com>
29545 * BindingsCollection.cs: Remove some debug code.
29547 2005-02-22 Jackson Harper <jackson@ximian.com>
29549 * BindingContext.cs:
29550 * ControlBindingsCollection.cs:
29551 * CurrencyManager.cs:
29553 * BindingManagerBase.cs: Initial implementation
29554 * BindingsCollection.cs: Add an internal contains method that the
29555 BindingManagerBase uses to ensure bindings aren't added twice to
29557 * PropertyManager.cs: Stubbed out.
29559 * ContainerControl.cs: Hook up databinding
29561 2005-02-22 Geoff Norton <gnorton@customerdna.com>
29564 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
29565 Fixed Invalidate/Update chain.
29566 Fixed tons of other minor bugs (this is almost a complete rewrite).
29568 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
29570 * ComboBox.cs: do subcontrol creation when the control is created
29572 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29574 * Label.cs: fixes image drawing (image and imagelist)
29575 * ThemeWin32Classic.cs: cache brushes
29577 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29579 * Form.cs: Move menu drawing code to Theme class
29580 * ComboBox.cs: Move ComboBox drawing code to Theme class
29581 * MenuItem.cs: Move menu drawing code to Theme class
29582 * MenuAPI.cs: Move menu drawing code to Theme class
29583 * ThemeWin32Classic.cs: New methods
29584 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
29585 * ListBox.cs: Move Listbox drawing code to Theme class
29586 * Theme.cs: New methods
29588 2005-02-20 Peter Bartok <pbartok@novell.com>
29591 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
29592 only process mnemonics on those)
29593 - Fixed event sequence for key handling; first calling
29594 ProcessKeyEventArgs now
29596 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
29597 for processing non-character keys
29598 - Fixed WM_CHAR to generate proper event sequence before processing
29599 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
29602 2005-02-19 Peter Bartok <pbartok@novell.com>
29604 * UserControl.cs: Added TextChanged event; added attributes
29605 * SizeGrip.cs: Implemented resizing and optional display of grip
29606 * Form.cs: Fixed attribute
29607 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
29608 Changed meaning of ScrollWindow bool argument; instead of the
29609 clear attribute (which will be true usually anyway), it gives the
29610 option of moving child controls as well.
29612 - Changed to match new ScrollWindow argument
29613 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
29614 now handles the implicit parent window a WM puts around us
29615 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
29617 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
29618 * TreeView.cs: Adjusted to new ScrollWindow arguments
29620 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29622 * Form.cs: Menu integration with non-client area
29623 * MenuItem.cs: Menu integration with non-client area
29624 * MenuAPI.cs: Menu integration with non-client area
29626 2005-02-18 Peter Bartok <pbartok@novell.com>
29628 * MethodInvoker.cs: Added
29629 * MdiLayout.cs: Added
29630 * SendKeys.cs: Started implementation
29631 * ErrorIconAlignment.cs: Added
29633 2005-02-18 Peter Bartok <pbartok@novell.com>
29635 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
29636 * Form.cs: Added handling for Menu-related Non-client messages
29638 2005-02-17 Peter Bartok <pbartok@novell.com>
29640 * UpDownBase.cs: Fixed typo, compilation errors
29641 * DomainUpDown.cs: Fixed attribute value
29643 2005-02-16 Miguel de Icaza <miguel@novell.com>
29645 * UpDownBase.cs: Attach entry events.
29647 Add ForeColor property, Focused, InterceptArrowKeys (interception
29648 does not work yet).
29650 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
29653 - Redraw non client are on Setmenu
29654 - Calc proper menu starting point
29656 2005-02-17 Peter Bartok <pbartok@novell.com>
29658 * Application.cs: Fixed message_filter check
29660 2005-02-17 Peter Bartok <pbartok@novell.com>
29662 * Application.cs: Now calls registered message filters
29663 * DockStyle.cs: Fixed attribute
29664 * Form.cs: Fixed attribute
29665 * Menu.cs: Fixed attribute
29666 * ToolTip.cs: Fixed attribute
29667 * TreeNode.cs: Added missing attributes and arranged in regions
29668 * PropertyGrid.cs: Fixed signatures
29669 * TreeNodeCollection.cs: Added attributes
29670 * Splitter.cs: Added missing attributes; arranged into regions
29671 * TabPage.cs: Added missing attributes; arranged into regions
29672 * TextBoxBase.cs: Added missing attributes
29673 * TextBox.cs: Added missing attributes
29674 * ArrangeDirection.cs: Added missing attributes
29675 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
29676 * ToolBarButton.cs: Fixed attributes
29677 * AnchorStyles.cs: Fixed attribute
29678 * TrackBar.cs: Fixed attributes
29679 * TabControl.cs: Added missing attributes and arranged into regions
29680 * ToolBar.cs: Fixed attribute
29681 * StatusBar.cs: Fixed signature, organized into regions and added
29683 * StatusBarPanel.cs: Fixed attributes
29684 * ContentsResizedEventArgs.cs: Implemented
29685 * ContentsResizedEventHandler.cs: Implemented
29686 * DateBoldEventArgs.cs: Implemented
29687 * DateBoldEventHandler.cs: Implemented
29688 * UpDownEventArgs.cs: Implemented
29689 * UpDownEventHandler.cs: Implemented
29691 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
29693 * Form.cs: first Menu NC refactoring
29694 * MenuAPI.cs: first Menu NC refactoring
29696 2005-02-16 Peter Bartok <pbartok@novell.com>
29698 * ImeMode.cs: Added missing attributes
29699 * Menu.cs: Fixed attribute
29700 * GroupBox.cs: Fixed attribute
29701 * Label.cs: Fixed attribute
29702 * ColorDialog.cs (RunDialog): Removed TODO attribute
29703 * ComboBox.cs: Fixed attributes
29704 * ListControl.cs: Added missing attributes
29705 * PropertyGrid.cs: Fixed attributes
29706 * Control.cs: Fixed attributes
29707 * ListViewItem.cs: Added TypeConverter attribute
29708 * NotifyIcon.cs: Fixed attributes
29709 * ListView.cs: Fixed attributes
29710 * ButtonBase.cs: Fixed attribute
29711 * ImageList.cs: Added missing attributes
29712 * ContainerControl.cs: Fixed signature
29713 * CheckedListBox.cs: Fixed attribute; added missing attributes
29714 * Panel.cs: Fixed attributes
29715 * PropertyTabChangedEventArgs.cs: Added missing attribute
29716 * PropertyValueChangedEventArgs.cs: Added missing attribute
29717 * Binding.cs: Fixed attribute
29718 * ListViewItemConverter: Implemented ListViewSubItemConverter class
29719 * ListBox.cs: Fixed attribute; added missing attributes;
29720 * ScrollableControl.cs: Added missing attributes
29721 * PictureBox.cs: Added missing attributes; implemented missing property
29722 * DateTimePicker.cs: Added missing attributes
29723 * Theme.cs (ToolWindowCaptionHeight): Fixed type
29724 * MonthCalendar.cs: Fixed attributes
29725 * StatusBarPanel.cs: Added missing attributes
29726 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
29728 2005-02-16 Peter Bartok <pbartok@novell.com>
29730 * TextBoxBase.cs: The previous method to enforce height yet remember
29731 the requested high was less than ideal, this is an attempt to do
29733 * Control.cs: Added comment about possible problem
29734 * Copyright: Updated format
29735 * GridItemType.cs: Fixed swapped values
29737 2005-02-15 Jackson Harper <jackson@ximian.com>
29739 * BaseCollection.cs: Use property so we never access an
29740 uninitialized list. Also initialize the list in the property.
29742 2005-02-15 Peter Bartok <pbartok@novell.com>
29744 * GroupBox.cs (ProcessMnemonic): Implemented
29745 * Label.cs (ProcessMnemonic): Implemented
29746 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
29749 2005-02-15 Peter Bartok <pbartok@novell.com>
29751 * RadioButton.cs (ProcessMnemonic): Implemented
29752 * CheckBox.cs (ProcessMnemonic): Implemented
29754 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
29756 - Added internal method to allow calling ProcessMnemonic from other
29758 * ContainerControl.cs:
29759 - Started support for handling validation chain handling
29760 - Implemented ProcessMnemonic support
29761 - Added Select() call to Active, to make sure the active control
29763 * Form.cs: Setting toplevel flag for Forms (this was lost in the
29764 FormParent rewrite)
29765 * ThemeWin32Classic.cs:
29766 - DrawCheckBox(): Fixed stringformat to show hotkeys
29767 - DrawRadioButton(): Fixed stringformat to show hotkeys
29768 * CommonDialog.cs: Removed WndProc override, not needed
29770 2005-02-14 Peter Bartok <pbartok@novell.com>
29772 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
29773 missed those in the rewrite
29775 2005-02-14 Miguel de Icaza <miguel@novell.com>
29777 * NumericUpDown.cs (Increment, ToString): Add.
29778 (DecimalPlaces): implement.
29782 * UpDownBase.cs: Add the designer attributes.
29784 2005-02-13 Peter Bartok <pbartok@novell.com>
29786 * Panel.cs: Removed border_style, now in Control
29787 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
29788 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
29790 2005-02-13 Peter Bartok <pbartok@novell.com>
29792 * MouseButtons.cs: Added missing attributes
29793 * XplatUIStructs.cs: Added enumeration for title styles
29794 * LeftRightAlignment.cs: Added missing attributes
29795 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
29796 it compatible with Graphics.FromHwnd()
29797 * SelectedGridItemChangedEventArgs.cs: Fixed property type
29798 * Keys.cs: Added missing attributes
29799 * SelectionRange.cs: Added missing attributes
29800 * SelectionRangeConverter.cs: Added
29802 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
29803 ReleaseMenuDC methods
29804 - Renamed ReleaseWindow to UngrabWindow
29805 - Added proper startup notice to allow version identification
29807 - Added missing attributes
29808 - Removed FormParent concept
29809 * Label.cs: Removed border_style field, now in Control
29810 * RadioButton.cs: Now properly selects RadioButton when focus is
29812 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
29814 - Added missing attributes
29815 - Added borderstyle handling
29816 - Removed FormParent concept support
29817 - Fixed calls to XplatUI to match changed APIs
29818 - Fixed bug that would case us to use disposed Graphics objects
29819 - Removed unneeded internal methods
29820 - PerformLayout(): Fixed to handle DockStyle.Fill properly
29821 - SelectNextControl(): Fixed to properly check common parents
29822 * TextBoxBase.cs: Removed border_style field (now in Control)
29824 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
29825 fixed calculations for form size
29826 - Added support for localized strings and icons
29827 - Improved form size calculations, added border
29828 * ListView.cs: Removed border_style field (now in Control)
29829 * X11Structs.cs: Moved several structs from X11 driver here
29830 * X11Keyboard.cs: Changed debug message
29831 * Application.cs: Removed FormParent concept support
29833 - Resetting end_modal flag
29834 - Removed FormParent concept support
29835 * NativeWindow.cs: Removed FormParent concept support
29836 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
29837 Client area and Non-Client whole window to allow support for WM_NC
29839 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
29840 prevent using it until it supports Hwnd as per Geoff Norton's request
29841 * ToolBar.cs: Fixed drawing, was not doing proper drawing
29842 * PictureBox.cs: Removed border_style field, now in Control
29843 * XplatUIWin32.cs: Added new driver methods
29845 2005-02-12 Peter Bartok <pbartok@novell.com>
29847 * OpacityConverter.cs: Implemented
29848 * Hwnd.cs: Internal class to support drivers that need to emulate
29849 client area/non-client area window behaviour
29851 2005-02-11 Peter Bartok <pbartok@novell.com>
29853 * KeysConverter.cs: Implemented
29855 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
29857 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29858 * LinkLabel: Added missing attributes
29859 * MainMenu.cs: fixes ToString
29860 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29861 * ListBox.cs: fixes event position
29862 * TrackBar.cs: adds missing attributes and events
29864 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
29866 * MenuItem.cs: Use SystemInformation and bug fixes
29867 * MenuAPI.cs: Use SystemInformation and bug fixes
29869 2005-02-09 Jackson Harper <jackson@ximian.com>
29871 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29872 their keystate otherwise things like VK_MENU get stuck "on".
29874 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
29876 * ListBox.cs: Fixes AddRange bug
29878 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
29881 - Add missing attributes
29882 - Add missing method
29884 * CheckedListBox.cs: Added missing attributes
29885 - Add missing attributes
29886 - Remove extra method
29888 * ComboBox.cs: Added missing attributes
29889 * VScrollBar.cs: Added missing attributes
29890 * ScrollBar.cs: Added missing attributes
29891 * ListBox.cs: Fixes signature, add missing consts
29892 * LinkArea.cs: Added missing attributes
29895 2005-02-08 Peter Bartok <pbartok@novell.com>
29897 * Menu.cs: Added missing attributes
29898 * MainMenu.cs: Added missing attributes
29899 * GroupBox.cs: Added missing attributes
29900 * Label.cs: Added missing attributes
29901 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29903 - Added Instance and Options properties
29904 - Added missing attributes
29905 * Cursor.cs: Made Serializable
29906 * NotifyIcon: Added missing attributes
29907 * MenuItem.cs: Added missing attributes
29908 * TextBoxBase.cs: Implemented AppendText() and Select() methods
29909 * Panel.cs: Added Missing attributes
29910 * MonthCalendar.cs: Fixed CreateParams
29912 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29916 - Fixes issues with links
29917 - Adds the class attributes
29919 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29922 - Fixes button when no items available in dropdown
29923 - Fixes repainting problems
29924 - Adds the class attributes
29926 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29928 * XplatUIOSX.cs: Detect the menu bar and title bar height from
29929 the current theme. Cache these on startup.
29931 2005-02-07 Jackson Harper <jackson@ximian.com>
29933 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29934 the scrollbar buttons when they are depressed.
29936 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29938 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29939 Get the display size from the main displayid. We currently dont
29940 support multiple display configurations.
29942 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29944 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29946 2005-02-07 Miguel de Icaza <miguel@novell.com>
29948 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29950 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
29952 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29954 2005-02-04 Jackson Harper <jackson@ximian.com>
29956 * ThemeWin32Classic.cs: Respect the clipping rect when
29957 drawing. Only fill the intersection of clips and rects so there
29958 isn't a lot of large fills.
29959 * ScrollBar.cs: Pass the correct clipping rect to the theme
29960 engine. Remove some debug code.
29962 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
29964 * DateTimePicker.cs:
29965 - Fixed crash on DateTime.Parse, use Constructor instead
29967 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29971 - Owner draw support (MeasureItem and DrawItem)
29973 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29976 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29977 - Fixes MenuItems.Add range
29979 - MergeMenu and Clone and CloneMenu functions
29981 2005-02-03 Jackson Harper <jackson@ximian.com>
29983 * ScrollBar.cs: Make abstract
29984 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
29987 2005-02-03 Jackson Harper <jackson@ximian.com>
29989 * ScrollBar.cs: First part of my scrollbar fixups. This removes
29990 all the unneeded refreshes and uses invalidates with properly
29993 2005-02-03 Peter Bartok <pbartok@novell.com>
29995 * ComponentModel.cs: Added
29996 * IDataGridEditingService.cs: Added
29997 * Timer.cs: Added missing attributes
29998 * ToolTip.cs: Added missing attributes
30000 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
30002 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30004 2005-02-03 Peter Bartok <pbartok@novell.com>
30006 * ListBox.cs: Added missing attributes
30008 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
30011 - Fixes font height after font change
30012 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30014 2005-02-02 Peter Bartok <pbartok@novell.com>
30016 * HandleData.cs: Introduced static methods to allow class
30017 to be more self-contained and track it's own HandleData objects
30018 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
30019 HandleData to use new static methods
30021 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
30024 - Fixes default size and PreferredHeight
30026 - ObjectCollection.Insert implementation
30032 - ObjectCollection.Insert implementation
30033 - No selection after clean
30036 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
30038 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
30040 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
30043 - Caches ItemHeight calculation for OwnerDrawVariable
30044 - Handles dropdown properly
30045 - Fixes several minor bugs
30047 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
30050 - Fixes 71946 and 71950
30051 - Fixes changing Multicolumn on the fly
30052 - Fixes keyboard navigation on Multicolumn listboxes
30054 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30056 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
30057 crash reporter log.
30059 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30061 * XplatUIOSX.cs: Allow applications to actually exit.
30063 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30065 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
30066 their parent at creation time rather than lazily later. Fixes a major
30067 regression we were experiencing.
30069 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
30071 * ThemeWin32Classic.cs: more date time picker painting fixes
30072 * DateTimePicker.cs: more monthcalendar drop down fixes
30073 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
30075 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
30078 - When moving the thumb going outside the control should stop the moving
30079 - Adds the firing of missing events
30080 - Fixes no button show if Size is not specified
30081 - End / Home keys for keyboard navigation
30083 2005-01-30 Peter Bartok <pbartok@novell.com>
30085 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
30086 sanity check to prevent theoretical loop
30087 * XplatUIWin32.cs (SetVisible): Removed debug output
30088 * XplatUIX11.cs (SystrayChange): Added sanity check
30089 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
30090 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
30091 behaviour, valid until the X11 client window rewrite is done
30092 * TextBox.cs (ctor): Setting proper default foreground and background
30095 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
30097 * Theme: Added DrawDateTimePicker to interface
30098 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
30099 * DateTimePicker.cs: Created (still needs keys and painting code)
30100 * DateTimePickerFormat.cs: added
30101 * MonthCalendar.cs: fixed CreateParams for popup window mode
30103 2005-01-29 Peter Bartok <pbartok@novell.com>
30105 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
30106 this should also the calculations for ligher/darker
30107 * Theme.cs: Fixed defaults for ScrollBar widths/heights
30109 2005-01-29 Peter Bartok <pbartok@novell.com>
30111 * ArrangeDirection.cs: Added
30112 * ArrangeStartingPositon.cs: Added
30113 * SystemInformation.cs: Implemented
30114 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30115 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
30116 used by SystemInformation class
30117 * X11Strucs.cs: Added XSizeHints structure
30119 - Fixed CreateParams to make sure the menu window is always visible
30120 - TrackPopupMenu: Added check to make sure we don't draw the
30123 2005-01-29 Peter Bartok <pbartok@novell.com>
30125 * HandleData.cs: Added method for altering invalid area
30126 * TextBoxBase.cs: Implemented TextLength
30128 2005-01-28 Peter Bartok <pbartok@novell.com>
30130 * XplatUIX11.cs: Improvement over last patch, not sending
30131 the WM_PAINT directly anymore, instead we scroll any pending
30132 exposed areas and let the system pick out the WM_PAINT later
30134 2005-01-28 Peter Bartok <pbartok@novell.com>
30136 * SWF.csproj: Deleted, no longer used. Instead,
30137 Managed.Windows.Forms/SWF.csproj should be used
30138 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
30139 directly, to avoid a potential race condition with the next
30142 2005-01-28 Peter Bartok <pbartok@novell.com>
30144 * XplatUI.cs: Made class internal
30146 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
30148 * CheckedListBox.cs:
30151 - Missing methods and events
30153 2005-01-27 Peter Bartok <pbartok@novell.com>
30155 * Application.cs (Run): Don't use form if we don't have one
30157 2005-01-27 Peter Bartok <pbartok@novell.com>
30159 * TextBoxBase.cs (get_Lines): Fixed index off by one error
30161 2005-01-27 Peter Bartok <pbartok@novell.com>
30163 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
30164 * GridItem.cs: Added; Patch by Jonathan S. Chambers
30165 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
30166 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
30167 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
30168 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
30169 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30170 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30171 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30172 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30173 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30174 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30176 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
30179 - Draw focus on Simple Combobox
30180 - Fixes drawing issues
30183 2005-01-27 Peter Bartok <pbartok@novell.com>
30186 - Place window in default location, instead of hardcoded 0/0
30187 - Send initial LocationChanged event
30189 - UpdateBounds after creation to find out where the WM placed us
30190 - Make sure that if the ParentForm changes location the Form
30192 * XplatUIX11.cs: XGetGeometry will not return the coords relative
30193 to the root, but to whatever the WM placed around us.
30194 Translate to root coordinates before returning toplevel
30196 * XplatUIWin32.cs: Removed debug output
30197 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
30198 flag to GetWindowPos, to allow translation of coordinates on X11
30200 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
30202 * ListBox.cs: connect LostFocus Event
30204 2005-01-27 Peter Bartok <pbartok@novell.com>
30206 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30207 XplatUIX11.cs: Extended the Systray API
30208 * Form.cs: Removed debug output
30209 * Application.cs: Fixed focus assignment, always need to call
30210 XplatUI.Activate() since Form.Activate() has rules that may
30212 * NotifyIcon.cs: Should be complete now
30213 * ToolTip.cs: Worked around possible timer bug
30215 2005-01-27 Jackson Harper <jackson@ximian.com>
30218 - Only invalidate the effected tabs when the
30219 selected index changes. This reduces drawing and gets rid of some
30221 - Only refresh if the tabs need to be shifted, otherwise only
30222 invalidate the slider button.
30223 - On windows the tabs are not filled to right if the slider is
30226 2005-01-27 Jackson Harper <jackson@ximian.com>
30228 * TabControl.cs: Only refresh on mouseup if we are showing the
30229 slider. Also only invalidate the button whose state has changed.
30231 2005-01-26 Peter Bartok <pbartok@novell.com>
30233 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
30234 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
30235 and SystrayRemove() methods
30236 * XplatUIOSX.cs: Stubbed Systray methods
30238 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
30240 - Fixed broken XChangeProperty calls (marshalling messed up things)
30241 * X11Structs.cs: Added enums and structs required for Size hinting
30242 * NotifyIcon.cs: Added & implemented
30244 2005-01-26 Jackson Harper <jackson@ximian.com>
30246 * TabControl.cs: Space vertically layed out tabs properly.
30248 2005-01-26 Peter Bartok <pbartok@novell.com>
30250 * Form.cs (CreateClientParams): Always set the location to 0,0
30251 since we're a child window.
30253 * Control.cs (SetVisibleCore): Always explicitly setting the location
30254 of a toplevel window, apparently X11 doesn't like to move windows
30255 while they're not mapped.
30257 2005-01-26 Jackson Harper <jackson@ximian.com>
30259 * TabControl.cs: Implement FillToRight size mode with vertically
30262 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
30264 * ControlPaint.cs, ThemeWin32Classic.cs
30265 - Fixes DrawFocusRectangle
30267 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
30270 - MenuBar tracking only starts when item is first clicked
30271 - Fixes menu hidding for multiple subitems
30272 - Unselect item in MenuBar when item Executed
30275 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
30278 - IsInputKey for ListBox
30281 - Shift and Control item selection
30282 - Implement SelectionMode.MultiExtended
30283 - Fixes RightToLeft
30285 - IsInputKey implemented
30286 - Do not generate OnTextChangedEdit on internal txt changes
30288 2005-01-23 Peter Bartok <pbartok@novell.com>
30290 * AccessibleObject.cs: Partially implemented Select()
30291 * MonthCalendar.cs: Added missing attributes and events
30292 * Form.cs: Fixed CreateParams behaviour, now controls derived from
30293 form can properly override CreateParams.
30294 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30295 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
30296 Control performs Invalidate & Update
30297 * NativeWindow (CreateHandle): Added special handling for Form
30298 and Form.FormParent classes to allow overriding of From.CreateParams
30300 - ControlNativeWindow: Renamed 'control' variable to more intuitive
30302 - ControlNativeWindow: Added Owner property
30303 - Removed usage of Refresh() on property changes, changed into
30304 Invalidate(), we need to wait until the queue is processed for
30305 updates, direct calls might cause problems if not all vars for
30306 Paint are initialized
30307 - Added call to UpdateStyles() when creating the window, to set any
30308 styles that CreateWindow might have ignored.
30309 - Added support for Form CreateParent overrides to UpdateStyles()
30310 * MessageBox.cs: Removed no longer needed FormParent override stuff,
30311 CreateParams are now properly overridable
30312 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
30313 CreateParams are now properly overridable
30315 2005-01-23 Miguel de Icaza <miguel@ximian.com>
30317 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
30320 Capture LostFocus and OnTextBoxChanged. The later introduces a
30321 recursive invocation that I have not figured out yet.
30323 Reset the timer when not using (it was accumulating).
30326 (OnTextBoxChanged): Set UserEdit to true here to track whether the
30327 user has made changes that require validation.
30329 Reset changing to avoid loops.
30331 2005-01-22 Miguel de Icaza <miguel@ximian.com>
30333 * NumericUpDown.cs: Display value at startup.
30335 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
30338 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
30339 filled in. Added some basic parsing of text.
30341 Still missing the OnXXX method overrides, and figuring out the
30342 events that must be emitted.
30344 * UpDownBase.cs: Handle UserEdit on the Text property.
30346 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
30349 - Fixes IntegralHeight
30352 2005-01-21 Jackson Harper <jackson@ximian.com>
30354 * TabControl.cs: Set the SelectedIndex property when SelectedTab
30355 is set so that the page visibility is updated and the tabs are
30358 2005-01-21 Jackson Harper <jackson@ximian.com>
30360 * TabControl.cs: Use cliping rectangle for blitting. Give the
30361 theme the clipping rect so we can do clipping while
30362 drawing. Remove some debug code.
30364 2005-01-21 Jackson Harper <jackson@ximian.com>
30366 * TabPage.cs: Add a new method so tab pages can force the tab
30367 control to recalculate the tab page sizes.
30368 * TabControl.cs: UpdateOwner needs to make the tab control recalc
30371 2005-01-20 Jackson Harper <jackson@ximian.com>
30373 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
30375 2005-01-20 Jackson Harper <jackson@ximian.com>
30377 * TreeView.cs: Set the bounds for nodes properly. They were
30378 getting screwed up when checkboxes were not enabled, but images
30381 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
30384 - Owner draw support
30387 2005-01-20 Jackson Harper <jackson@ximian.com>
30389 * XplatUIStructs.cs: More misc keys
30390 * X11Keyboard.cs: Ignore some control keys.
30392 2005-01-20 Jackson Harper <jackson@ximian.com>
30394 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
30395 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
30397 2005-01-19 Peter Bartok <pbartok@novell.com>
30399 * Control.cs: Un-selecting the control when it is loosing focus
30401 2005-01-19 Jackson Harper <jackson@ximian.com>
30403 * TreeView.cs: Hook up to the text controls leave event so we can
30404 end editing when the users clicks outside the text box.
30406 2005-01-19 Jackson Harper <jackson@ximian.com>
30408 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
30409 get set in the conversion array.
30411 2005-01-19 Peter Bartok <pbartok@novell.com>
30413 * Application.cs (ModalRun): Added a call to CreateControl to ensure
30414 focus is properly set
30416 - Added missing attributes
30417 - removed styles, those are already set in the base class
30419 - Added missing attributes
30420 - Added clip window styles
30421 * CheckBox.cs: Added missing attributes
30423 - FormParentWindow.CreateParams: Added required clip styles
30424 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
30425 also filters modifier keys
30427 - Added assignment of Accept and Cancel button to enable Enter
30428 and Esc keys in MessageBox dialogs
30429 - FormParentWindow.CreateParams: Added required clip styles
30430 * RadioButton.cs: Added missing attributes
30431 * TextControl.cs: No longer draws selection if control does not
30434 - Now draws simple rectangle around test area to make it obvious
30435 there's a control. This is a hack until we properly support borders
30436 - A few simple fixes to support selections better, now erases selected
30437 text when typing, and resets selection when using movement keys
30439 2005-01-19 Miguel de Icaza <miguel@ximian.com>
30441 * UpDownBase.cs: Added some new properties.
30443 * DomainUpDown.cs: Implement a lot to get my test working.
30445 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30447 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
30449 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30451 * OSXStructs (WindowAttributes): Fixed csc complaints
30453 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30456 OSXStructs.cs: Initial refactor to move enums and consts into
30457 OSXStructs and use them in the driver for greater readability.
30459 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30461 * XplatUIOSX.cs: Initial support for Standard Cursors.
30462 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
30464 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
30466 * ComboBox.cs: ability to change style when the ctrl is already
30467 created, missing methods and events, bug fixes, signature fixes
30469 2005-01-19 Peter Bartok <pbartok@novell.com>
30471 * Cursors.cs (ctor): Added ctor to fix signature
30473 2005-01-18 Peter Bartok <pbartok@novell.com>
30475 * Button.cs: Implemented DoubleClick event
30477 - Fixed keyboard handling to behave like MS, where the press of
30478 Spacebar is equivalent to a mousedown, and the key release is
30479 equivalent to mouseup. Now a spacebar push will give the same
30480 visual feedback like a mouse click.
30481 - Added missing attributes
30482 - Added ImeModeChanged event
30483 - Added support for generating DoubleClick event for derived classes
30485 - Implemented DoubleClick event
30486 - Added missing attributes
30487 * CommonDialog.cs: Added missing attribute
30488 * ContextMenu.cs: Added missing attributes
30490 - AutoChecked buttons do not allow to be unselected when clicked
30491 (otherwise we might end up with no selected buttons in a group)
30492 - Added missing attributes
30493 - Implemented DoubleClickEvent
30494 * ThreadExceptionDialog.cs: Enabled TextBox code
30496 2005-01-18 Peter Bartok <pbartok@novell.com>
30498 * Form.cs: Removed debug output
30499 * Button.cs: Added support for DoubleClick method
30501 2005-01-18 Peter Bartok <pbartok@novell.com>
30504 - Added method to parent window that allows triggering size
30505 calculations when a menu is added/removed
30506 - set_Menu: Cleaned up mess from early days of Form and Control,
30507 now properly triggers a recalc when a menu is added/removed
30508 - Added case to select form itself as focused form if no child
30510 - Added PerformLayout call when showing dialog, to ensure properly
30513 - Select(): Made internal so Form can access it
30514 - Focus(): Only call Xplat layer if required (avoids loop), and sets
30516 * Application.cs (Run): Removed hack and calls PerformLayout instead
30517 to trigger calculation when Form becomes visible
30519 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
30521 * ComboBox.cs: fixes for ownerdraw
30523 2005-01-18 Peter Bartok <pbartok@novell.com>
30526 - Sentinel is no longer static, each Document gets it's own, this
30527 avoids locking or alternatively overwrite problems when more
30528 than one text control is used simultaneously.
30529 - Switched to use Hilight and HilightText brushes for text selection
30531 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
30533 2005-01-18 Peter Bartok <pbartok@novell.com>
30536 - Hooked up the following events:
30544 o SystemColorsChanged
30545 o ParentFontChanged
30547 - Removed debug output
30548 - Added a call to the current theme's ResetDefaults when a color change
30550 * Form.cs: Now setting the proper ImeMode
30551 * Theme.cs: Defined a method to force recreation of cached resources
30552 and rereading of system defaults (ResetDefaults())
30553 * ThemeWin32Classic.cs: Added ResetDefaults() stub
30555 2005-01-17 Peter Bartok <pbartok@novell.com>
30557 * Control.cs: Added missing attributes
30559 2005-01-17 Jackson Harper <jackson@ximian.com>
30561 * TreeNode.cs: Implement editing. Add missing properties selected
30563 * TreeView.cs: Implement node editing. Also some fixes to use
30564 Invalidate (invalid area) instead of Refresh when selecting.
30566 2005-01-17 Peter Bartok <pbartok@novell.com>
30569 - Implemented InvokeGotFocus() method
30570 - Implemented InvokeLostFocus() method
30571 - Implemented InvokePaint() method
30572 - Implemented InvokePaintBackground() method
30573 - Implemented InvokeClick() method
30574 - Implemented FindForm() method
30575 - Implemented RectangleToClient() method
30576 - Implemented ClientToRectangle() method
30577 - Implemented ResetBackColor() method
30578 - Implemented ResetCursor() method
30579 - Implemented ResetFont() method
30580 - Implemented ResteForeColor() method
30581 - Implemented ResetImeMode() method
30582 - Implemented ResetLeftToRight() method
30583 - Implemented ResetText() method
30584 - Implemented Scale() methods
30585 - Implemented ScaleCore() method
30586 - Implemented Update() method
30587 - Removed unused variables
30588 - Stubbed AccessibilityNotifyClients and
30589 ControlAccessibleObject.NotifyClients() methods (dunno what to do
30591 - Now setting proper default for RightToLeft property
30592 - Fixed bug in SetClientSizeCore that would cause windows to get
30594 - Now sending Click/DoubleClick events
30595 - Now selecting controls when left mouse button is clicked on
30597 * AccessibleEvents.cs: Added
30598 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
30599 * XplatUIOSX.cs: Stubbed UpdateWindow() method
30600 * XplatUIWin32.cs: Implemented UpdateWindow() method
30601 * XplatUIX11.cs: Implemented UpdateWindow() method
30602 * Form.cs: Removed stray semicolon causing CS0162 warning
30603 * ThemeWin32Classic.cs: Fixed unused variable warnings
30604 * ScrollableControl.cs: Now calls base method for ScaleCore
30605 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
30606 style to avoid interference with internal click handler (which is
30607 different than standard Control click handling)
30609 - Now unchecks all sibling radio buttons when control is
30610 selected (Fixes #68756)
30611 - Removed internal tabstop variable, using the one inherited from
30614 2005-01-17 Jackson Harper <jackson@ximian.com>
30616 * NavigateEventArgs.cs: Fix base type.
30617 * LinkLabel.cs: Sig fix
30619 2005-01-17 Jackson Harper <jackson@ximian.com>
30621 * TreeView.cs: Only invalidate the effected nodes bounds when
30624 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30626 * XplatUIWin32.cs: fixes Win32 marshaling
30627 * XplatUIX11.cs: fixes method signature
30629 2005-01-17 Peter Bartok <pbartok@novell.com>
30631 * XplatUIX11.cs: Clean up resources when we no longer need them
30633 2005-01-17 Peter Bartok <pbartok@novell.com>
30635 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
30636 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
30637 and DestroyCursor() methods.
30638 * Cursor.cs: Partially implemented, now supports standard cursors;
30639 still contains some debug code
30640 * Cursors.cs: Implemented class
30642 - WndProc(): Added handling of WM_SETCURSOR message, setting the
30644 - Implemented Cursor property
30645 - Replaced break; with return; more straightforwar and possibly
30647 - Now properly setting the result for WM_HELP
30648 * X11Structs.cs: Added CursorFontShape enum
30649 * XplatUIStructs.cs:
30650 - Added StdCursor enum (to support DefineStdCursor() method)
30651 - Added HitTest enum (to support sending WM_SETCURSOR message)
30653 - Now sends the WM_SETCURSOR message
30654 - Implemented new cursor methods
30655 * XplatUIOSX.cs: Stubbed new cursor methods
30657 - Implemented new cursor methods
30658 - Added GetSystemMetrics function and associated enumeration
30660 2005-01-15 Peter Bartok <pbartok@novell.com>
30663 - WndProc(): Now handles EnableNotifyMessage
30664 - SelectNextControl(): Fixed bug where if no child or sibling
30665 controls exist we looped endlessly
30667 2005-01-14 Jackson Harper <jackson@ximian.com>
30669 * TreeView.cs: Recalculate the tab pages when a new one is added
30670 so that the proper bounding rects are created.
30672 2005-01-14 Jackson Harper <jackson@ximian.com>
30674 * TreeView.cs: Draw a gray box instead of a grip in the lower
30675 right hand corner when there are both horizontal and vertical
30678 2005-01-14 Jackson Harper <jackson@ximian.com>
30680 * Control.cs: When erasing backgrounds use FromHwnd instead of
30681 FromHdc when there is a NULL wparam. This occurs on the X driver.
30682 * XplatUIX11.cs: Set the wparam to NULL.
30684 2005-01-13 Jackson Harper <jackson@ximian.com>
30686 * PictureBox.cs: Implement missing methods (except ToString, need
30687 to test that on windows) and events. When visibility is changed we
30688 need to redraw the image because the buffers are killed. When size
30689 is changed refresh if the sizemode needs it.
30691 2005-01-13 Peter Bartok <pbartok@novell.com>
30693 * Control.cs (SelectNextControl): Was using wrong method to select
30696 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30698 * ComboBox.cs: fixes dropstyle
30700 2005-01-13 Peter Bartok <pbartok@novell.com>
30703 - Implemented Select() override
30704 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
30705 - Now sets keyboard focus on startup
30706 * Control.cs (SelectNextControl): Now properly handles directed=true
30708 - WndProc: Now passes tab key on to base if AcceptTabChar=false
30709 - Added (really bad) focus rectangle (mostly for testing)
30710 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
30711 to enforce redraw on focus changes
30712 * ContainerControl.cs:
30713 - Fixed detection of Shift-Tab key presses
30714 - Fixed traversal with arrow keys
30715 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
30716 gonna keep this or if it's complete yet
30718 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30720 * ComboBox.cs: missing properties, fixes
30722 2005-01-13 Peter Bartok <pbartok@novell.com>
30724 * Panel.cs (ctor): Setting Selectable window style to off
30725 * Splitter.cs (ctor): Setting Selectable window style to off
30726 * GroupBox.cs (ctor): Setting Selectable window style to off
30727 * Label.cs (ctor): Setting Selectable window style to off
30729 2005-01-12 Miguel de Icaza <miguel@ximian.com>
30731 * UpDownBase.cs (InitTimer): If the timer has been already
30732 created, enable it.
30734 Use a TextBox instead of a Label.
30736 2005-01-12 Jackson Harper <jackson@ximian.com>
30738 * TreeView.cs: Refresh the tree after sorting the nodes. Always
30739 draw the connecting node lines (when ShowLines is true).
30740 * TreeNode.cs: The nodes index can now be updated. This is used
30741 when a node collection is sorted.
30742 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
30743 insert or an existing unsorted node collection can be sorted.
30745 2005-01-12 Peter Bartok <pbartok@novell.com>
30747 * ContainerControl.cs: Implemented ProcessDialogKeys()
30749 2005-01-12 Peter Bartok <pbartok@novell.com>
30752 - Implemented SelectNextControl() method
30753 - Several focus related bug fixes
30754 - Fixed Docking calculations to match MS documentation and
30757 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
30759 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
30762 2005-01-12 Peter Bartok <pbartok@novell.com>
30765 - Fixed broken Contains() method
30766 - Implemented GetNextControl() method. Finally. This is the pre-
30767 requisite for focus handling.
30769 2005-01-12 Peter Bartok <pbartok@novell.com>
30771 * OSXStrucs.cs: Added
30773 2005-01-12 Peter Bartok <pbartok@novell.com>
30776 - Removed PeekMessageFlags
30777 - Implemented SetWindowStyle() method
30778 * XplatUIStructs.cs: Added PeekMessageFlags
30779 * X11Structs: Added missing border_width field to XWindowChanges struct
30781 - PeekMessage: Now throws exception if flags which are not yet
30782 supported are passed
30783 - Implemented SetWindowStyle() method
30784 - Fixed SetZOrder to handle AfterHwnd properly
30785 * XplatUI.cs: Added SetWindowStyle() method
30786 * XplatUIDriver.cs: Added SetWindowStyle() abstract
30788 - Implemented UpdateStyles() method
30789 - Implemented UpdateZOrder() method
30790 * XplatUIOSX.cs: Added SetWindowStyle() stub
30792 2005-01-12 Geoff Norton <gnorton@customerdna.com>
30794 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
30798 2005-01-11 Jackson Harper <jackson@ximian.com>
30800 * TreeView.cs: Still need to draw lines to siblings even if out of
30801 the current node is out of the clip.
30803 2005-01-11 Jackson Harper <jackson@ximian.com>
30805 * TreeView.cs: When setting the hbar/vbar/grip position use
30806 SetBounds so that perform layout is only called once. Also suspend
30807 and resume layout so layout is only done once for all controls.
30808 - Removed some debug fluff
30809 * SizeGrip.cs: Call base implmentation in overriding methods.
30810 - When visibility is changed the drawing buffers are killed so we
30813 2005-01-11 Jackson Harper <jackson@ximian.com>
30815 * TreeView.cs: Calculate the open node count while drawing. This
30816 saves us an entire tree traversal for every paint operation. Use
30817 a member var for the open node count so less vars are passed around.
30819 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
30821 * MonthCalendar.cs:
30822 - fixed selection to use mousemove, not mouse polling on timer
30823 * ThemeWin32Classic.cs
30824 - removed redundant unused variable "no_more_content"
30826 2005-01-11 Peter Bartok <pbartok@novell.com>
30828 * XplatUIX11.cs (DoEvents): Needs to return when no more events
30829 are pending, so it now calls PeekMessage instead of GetMessage;
30830 implemented a incomplete version of PeekMessage
30832 2005-01-11 Peter Bartok <pbartok@novell.com>
30834 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
30836 * TextBoxBase.cs: Added sending of TextChanged event
30838 2005-01-10 Jackson Harper <jackson@ximian.com>
30840 * TreeView.cs: Try not to draw outside the clipping rectangle on
30843 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
30845 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
30847 2005-01-10 Jackson Harper <jackson@ximian.com>
30850 - Implement fast scrolling. Now only the newly
30851 exposed nodes are drawn and the old image is moved using the
30852 XplatUI::ScrollWindow method.
30853 - Factor in height of nodes when calculating whether or not the
30854 node is in the clipping rect.
30856 2005-01-10 Jackson Harper <jackson@ximian.com>
30858 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30860 2005-01-10 Peter Bartok <pbartok@novell.com>
30862 * Application.cs: Added temporary hack to resolve all our resize
30863 required issues on startup. This will get fixed properly at
30864 some point in the future
30866 2005-01-10 Jackson Harper <jackson@ximian.com>
30868 * SizeGrip.cs: New internal class that is used as a sizing
30869 grip control...hence the name.
30871 2005-01-10 Peter Bartok <pbartok@novell.com>
30873 * Control.cs: Implemented proper TabIndex handling, now assigning
30874 a tabindex when a control is added to a container
30875 * GroupBox.cs (ctor): Now sets the Container style bit, required
30876 for Control.GetNextControl()
30878 2005-01-09 Jackson Harper <jackson@ximian.com>
30880 * TextBoxBase.cs: Clear window when scrolling (fixes build).
30882 2005-01-09 Peter Bartok <pbartok@novell.com>
30884 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30885 XplatUIX11.cs: Added ability to control ScrollWindow expose and
30886 an overload for ScrollWindow to allow only scrolling a rectangle
30888 2005-01-09 Peter Bartok <pbartok@novell.com>
30891 - Implemented SetDesktopBounds method
30892 - Implemented SetDesktopLocation method
30894 2005-01-08 Jackson Harper <jackson@ximian.com>
30896 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30897 the node count has changed, this removes to VScroll::Refresh calls
30900 2005-01-08 Geoff Norton <gnorton@customerdna.com>
30902 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30904 2005-01-07 Jackson Harper <jackson@ximian.com>
30906 * TreeNode.cs: Just update the single node when it is
30907 checked. Don't refresh after toggling, the Expand/Collapse already
30909 * TreeView.cs: Respect clipping a little more when drawing. Try
30910 not to redraw things that don't need to be redrawn. Just hide the
30911 scrollbars when they are no longer needed instead of removing
30912 them, so they don't have to be created again and again.
30914 2005-01-07 Geoff Norton <gnorton@customerdna.com>
30916 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
30917 coordinates to window space to place the caret properly, FIXED.
30918 Implement GetWindowState & SetWindowState
30920 2005-01-06 Peter Bartok <pbartok@novell.com>
30923 - Implemented ClientSize property
30924 - Implemented DesktopBounds property
30925 - Implemented DesktopLocation property
30926 - Implemented IsRestrictedWindow property
30927 - Implemented Size property
30928 - Implemented TopLevel property
30929 - Implemented FormWindowState property
30931 - Implemented GetTopLevel() method
30932 - Implemented SetTopLevel() method
30933 * X11Structs.cs (Atom):
30934 - Added AnyPropertyType definition
30935 - Added MapState definiton and updated XWindowAttribute struct
30936 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30937 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30938 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30940 - Implemented GetWindowState() and SetWindowState() methods
30941 - Fixed Win32GetWindowLong return type
30943 - Introduced central function for sending NET_WM messages
30944 - Implemented GetWindowState() and SetWindowState() methods
30945 * TextBoxBase.cs (set_Lines):
30946 - Now uses Foreground color for text added via Text property (Duh!)
30947 - Added code to remember programmatically requested size (fixes
30948 behaviour when Multiline is set after Size)
30949 - Added AutoSize logic
30951 2005-01-06 Jackson Harper <jackson@ximian.com>
30953 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30955 2005-01-06 Jackson Harper <jackson@ximian.com>
30957 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30958 set to less then 0.
30960 2005-01-06 Jackson Harper <jackson@ximian.com>
30962 * ScrollableControl.cs: Lazy init the scrollbars.
30964 2005-01-06 Jackson Harper <jackson@ximian.com>
30966 * Theme.cs: Speed up getting pens and solid brushes, by using
30967 their ARGB as a hash instead of tostring and not calling Contains.
30969 2005-01-06 Peter Bartok <pbartok@novell.com>
30972 - Implemented OnActivated and OnDeactivate event trigger
30973 - Implemented Activate() method
30974 - Fixed ShowDialog() to activate the form that was active before
30975 the dialog was shown
30977 - Added global active_window var that tracks the currently active
30979 - Now always grabs Property changes from the root window to always
30980 catch changes on the active window property
30981 - Added code to PropertyNotify handler to send Active/Inactive
30982 messages when state changes. This puts X11 and Win32 en par on
30983 WM_ACTIVATE notifications (except for double notifications when
30984 the user clicks away from our modal window to another one of our
30987 2005-01-05 Jackson Harper <jackson@ximian.com>
30989 * ImageList.cs: Implment ctor
30991 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30993 * XplatUIOSX.cs: Implement Activate/SetTopmost
30995 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30997 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
30999 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31001 * XplatUIOSX.cs: Implement GetActive/SetFocus.
31003 2005-01-05 Peter Bartok <pbartok@novell.com>
31005 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31006 XplatUIOSX.cs: Added GetActive method to return the currently
31007 active window for the application (or null, if none is active)
31009 - Implemented ActiveForm
31010 - Commented out owner assignment for modal dialogs (causes problems
31011 on Win32, since the owner will be disabled)
31012 - Reworked some Active/Focus handling (still incomplete)
31013 * CommonDialog.cs: Commented out owner assignment for modal dialogs
31014 (causes problems on Win32, since the owner will be disabled)
31015 * IWin32Window: Added ComVisible attribute
31017 2005-01-05 Peter Bartok <pbartok@novell.com>
31019 * ToolTip.cs (WndProc): Enable setting focus now that we have the
31020 required XplatUI functions.
31022 2005-01-05 Peter Bartok <pbartok@novell.com>
31024 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
31025 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
31026 to implement focus and activation handling; still incomplete and
31029 2005-01-04 Peter Bartok <pbartok@novell.com>
31031 * TextBoxBase.cs: Changed access level for Document property to
31032 match switch to internal for TextControl
31034 2005-01-04 Peter Bartok <pbartok@novell.com>
31036 * AccessibleObject: Added ComVisible attribute
31038 2005-01-04 Jackson Harper <jackson@ximian.com>
31040 * X11Keyboard.cs: Remove unneeded var.
31042 2005-01-04 Jackson Harper <jackson@ximian.com>
31044 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
31046 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
31047 ClientMessage. This makes apps exit cleanly (more often).
31049 2005-01-04 Jackson Harper <jackson@ximian.com>
31051 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
31052 handling focus, return correct colors and fonts,
31053 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
31054 handle selection, horizontal scrolling, and mouse interaction.
31056 2005-01-04 Peter Bartok <pbartok@novell.com>
31058 * ICommandExecutor.cs: Added
31059 * IDataGridColumnStyleEditingNotificationService.cs: Added
31060 * IFeatureSupport.cs: Added
31061 * IFileReaderService.cs: Added
31062 * IDataObject.cs: Added ComVisible attribute
31063 * AmbientProperties.cs: Added
31064 * BaseCollection.cs: Added missing attributes
31065 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
31066 * BaseCollection.cs: Added missing attributes
31067 * Binding.cs: Added TypeConverter attribute
31068 * BindingContext.cs: Added DefaultEvent attribute
31069 * BindingsCollection.cs: Added DefaultEvent attribute
31070 * Button.cs: Added DefaultValue attribute
31071 * DragEventArgs.cs: Added ComVisible attribute
31072 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
31073 * KeyEventArgs.cs: Added ComVisible attribute
31074 * KeyPressEventArgs.cs: Added ComVisible attribute
31075 * MouseEventArgs.cs: Added ComVisible attribute
31076 * NavigateEventArgs.cs: Added
31077 * NavigateEventHandler.cs: Added
31078 * FeatureSupport.cs: Added
31079 * OSFeature.cs: Added
31080 * Theme.cs: Added abstract Version property to support OSFeature
31081 * ThemeWin32Classic.cs: Added Version property to
31082 support OSFeature.Themes
31083 * ProgressBar.cs: Removed OnPaintBackground override, not required since
31084 the proper styles to avoid background drawing are set, also doesn't
31086 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
31087 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
31088 * ScrollEventArgs.cs: Added ComVisible attribute
31089 * SplitterEventArgs.cs: Added ComVisible attribute
31090 * AccessibleSelection.cs: Added Flags attribute
31091 * Appearance.cs: Added ComVisible attribute
31092 * Border3DSide.cs: Added ComVisible attribute
31093 * Border3DStyle.cs: Added ComVisible attribute
31094 * BorderStyle.cs: Added ComVisible attribute
31095 * DragAction.cs: Added ComVisible attribute
31096 * ErrorBlinkStyle.cs: Added
31097 * ScrollEventType.cs: Added ComVisible attribute
31098 * AnchorStyles.cs: Added Editor attribute
31099 * DockStyle.cs: Added Editor attribute
31100 * HorizontalAlignment.cs: Added ComVisible attribute
31101 * HelpEventArgs.cs: Added ComVisible attribute
31102 * PaintEventArgs.cs: Added IDisposable
31104 2005-01-04 Peter Bartok <pbartok@novell.com>
31106 * TextControl.cs: Switched Line, LineTag and Document classes to
31109 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
31111 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
31112 Simple mode, fixes, IntegralHeight, etc.
31114 2005-01-04 Peter Bartok <pbartok@novell.com>
31116 * TextBoxBase.cs: Using proper font variable now
31118 2005-01-04 Peter Bartok <pbartok@novell.com>
31120 * Form.cs (ShowDialog): Set parent to owner, if provided
31121 * GroupBox.cs: Removed unused vars
31123 - Added GetHashCode() for Document and LineTag classes
31124 - Removed unused variables
31125 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
31126 to allow translation between continuous char position and line/pos
31127 * CheckBox.cs: Removed vars that are provided by base class
31128 * RadioButton.cs: Removed vars that are provided by base class, added
31129 new keyword where required
31130 * LinkLabel.cs: Added new keyword where required
31131 * Control.cs (WndProc): Removed unused variable
31133 - Finished SelectionLength property
31134 - Implemented SelectionStart property
31135 - Implemented Text property
31136 - Removed unused vars
31137 * MessageBox.cs: Added new keyword where required
31138 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
31140 * MenuAPI.cs: Added new keyword where required
31141 * ButtonBase.cs: Removed vars that are provided by base class, added
31142 new keyword where required
31143 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
31144 argument to double, to allow compiling with csc 2.0 (Atsushi ran
31146 * Application.cs (Run): Now triggers the ThreadExit event
31147 * CommonDialog.cs: Added new keyword where required; now properly sets
31148 parent (owner) for dialog
31149 * XplatUIX11.cs: Commented out unused vars
31150 * StatusBar.cs: Fixed signature for Text property
31151 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
31153 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
31155 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
31156 TrackBar.cs, MonthCalendar.cs: remove unused vars
31158 2005-01-03 Jackson Harper <jackson@ximian.com>
31160 * ThemeWin32Classic.cs:
31161 * X11Keyboard.cs: Remove unused vars.
31163 2005-01-03 Peter Bartok <pbartok@novell.com>
31166 - set_Text: Tied into TextControl
31167 - set_TextAlignment: Tied into TextControl
31169 - Added alignment properties and implemented alignment handling
31170 and drawing (still has a bug, not generating proper expose events)
31171 - Added new Line() constructor to allow passing the line alignment
31172 - Fixed selection setting, properly handling end<start now
31173 - Added aligment considerations to RecalculateDocument()
31175 - Now properly enforces control height for single line controls
31176 - Added support for CharacterCasing
31177 - Added IsInputKey override
31178 - Fixed Keys.Enter logic
31179 - Added SetBoundsCore override
31180 - Fixed mouse selection handling
31182 2005-01-03 Jackson Harper <jackson@ximian.com>
31185 - Collapse and uncheck all nodes when CheckBoxes is disabled.
31186 - Checkboxes are always aligned to the bottom of the node,
31187 regardless of item height.
31188 - Use the node bounds to draw the text so we can center it when
31189 the item height is greater then the font height.
31190 - Node::Bounds are only the text part of the node.
31191 * TreeNode.cs: New method to combine collapsing and unchecking all
31194 2005-01-02 Jackson Harper <jackson@ximian.com>
31196 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
31197 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
31198 tree when a check is changed. TODO: Only refresh the checked node.
31200 2004-12-30 Jackson Harper <jackson@ximian.com>
31202 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
31203 * TreeNode.cs: When collapsing make sure to never collapse the
31206 2004-12-29 Jackson Harper <jackson@ximian.com>
31208 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
31210 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
31212 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
31214 2004-12-28 Peter Bartok <pbartok@novell.com>
31216 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
31219 2004-12-28 Peter Bartok <pbartok@novell.com>
31221 * Control.cs (WndProc): Added WM_HELP handler, now generates
31222 HelpRequested event
31223 * Form.cs: Added HelpButton property and required support code
31224 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
31226 2004-12-28 Peter Bartok <pbartok@novell.com>
31229 - Made DialogForm.owner variable internal
31230 - Added check to ensure owner form is set before setting
31231 owner properties in CreateParams
31233 2004-12-28 Geoff Norton <gnorton@customerdna.com>
31235 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
31236 swizzling. Implement ClientToScreen and ScreenToClient. Implement
31237 GetCursorPos. Fix major visibility issues. Rework the windowing
31238 system to support borderless/titleless windows (implements menus).
31239 Fix GetWindowPos. Implement initial background color support for
31242 2004-12-28 Peter Bartok <pbartok@novell.com>
31244 * Form.cs (get_CreateParams): Make sure we have an owner before using
31245 the owner variable. Implement proper default if no owner exists
31247 2004-12-28 Peter Bartok <pbartok@novell.com>
31249 * In preparation for making Managed.Windows.Forms the default build target
31250 for System.Windows.Forms, the following stubbed files were added.
31251 Dialogs are currently being implemented by contributors and are only
31252 short-term place holders.
31253 * ColorDialog.cs: Initial check-in (minmal stub)
31254 * DataGrid.cs: Initial check-in (minimal stub)
31255 * DataGridLineStyle.cs: Initial check-in (minimal stub)
31256 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
31257 * DataGridTableStyle.cs: Initial check-in (minimal stub)
31258 * FontDialog.cs: Initial check-in (minimal stub)
31259 * FileDialog.cs: Initial check-in (minimal stub)
31260 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
31261 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
31262 * OpenFileDialog: Initial check-in (minimal stub)
31263 * IComponentEditorPageSite.cs: Initial check-in
31264 * Splitter.cs: Initial check-in (for Jackson)
31265 * SplitterEventArgs.cs: Initial check-in (for Jackson)
31266 * SplitterEventHandler.cs: Initial check-in (for Jackson)
31267 * TextBox.cs: Initial check-in; still needs some wiring to
31268 TextControl backend
31269 * Form.cs: Implemented ControlBox property
31270 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
31271 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
31272 * TextControl.cs: Added selection functionality; added todo header
31274 - Implemented Lines property
31275 - Implemented TextHeight property
31276 - Implemented SelectedText property
31277 - Implemented SelectionLength property
31278 - Implemented SelectAll method
31279 - Implemented ToString method
31280 - Removed and cleaned up some debug code
31281 - Implemented (still buggy) mouse text selection
31283 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
31285 * ComboBox.cs: Complete DropDownList implementation, fixes.
31287 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
31289 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
31290 * ComboBoxStyle.cs: ComboBoxStyle enum
31291 * ComboBox.cs: Initial work on ComboBox control
31293 2004-12-21 Peter Bartok <pbartok@novell.com>
31295 * Control.cs (ctor, CreateParams): Moved setting of is_visible
31296 forward so that anything that creates a window gets the default,
31297 also no longer uses Visible property in CreateParams to avoid
31298 walking up the parent chain and possibly get the wrong visible
31299 status. Fixed IsVisible to no longer walk up to the parent.
31301 2004-12-21 Peter Bartok <pbartok@novell.com>
31303 * Form.cs (ShowDialog): Unset modality for the proper window
31305 2004-12-20 Peter Bartok <pbartok@novell.com>
31307 * CommonDialog.cs: Initial check-in
31309 2004-12-20 Peter Bartok <pbartok@novell.com>
31311 * Control.cs (Visible): Now uses the parent window instead of the
31312 client area window for the property
31315 - ShowDialog(): Now uses the proper window for modality
31316 - The default visibility state for the form parent is now false. This
31317 will prevent the user from seeing all the changes to the form and
31318 its controls before the application hits Application.Run()
31319 - Removed some stale commented out code
31322 - Added FindWindow() method to have a method to check for existence
31324 - Added ability to override default exception handling (for example
31325 when debugging with VS.Net; to do this the ExternalExceptionHandler
31327 - Removed some useless debug output
31330 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
31331 not working as expected
31332 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
31333 property to allow switching back to the modal window if focus is
31334 given to another one of our windows (Application Modal)
31335 - Now only sets override_redirect if we create a window
31337 - Moved EventMask selection before mapping of newly created window
31338 so we can catch the map event as well
31339 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
31340 - Added various Atom related DllImports
31341 - Implemented Exit() method
31342 - .ctor() : No longer shows window if WS_VISIBLE is not defined
31343 in the CreateParams
31345 * MessageBox.cs: Now properly deals with the FormParent window by
31346 providing an override the FormParent CreateParams property to
31347 set as POPUP instead of OVERLAPPED window.
31349 2004-12-19 Geoff Norton <gnorton@customerdna.com>
31351 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
31352 Minor code cleanup.
31354 2004-12-19 Geoff Norton <gnorton@customerdna.com>
31356 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
31358 2004-12-18 Peter Bartok <pbartok@novell.com>
31360 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
31361 implementing SetModal() method
31363 2004-12-18 Peter Bartok <pbartok@novell.com>
31365 * X11Structs.cs (XGCValues): Fixed type of function element
31366 * XplatUI.cs: Added ScrollWindow() method
31367 * XplatUIDriver.cs: Added ScrollWindow() abstract
31368 * XplatUIWin32.cs: Implemented ScrollWindow() method
31369 * XplatUIX11.cs: Implemented ScrollWindow() method
31370 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
31372 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31374 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
31375 Some more keyboard support (INCOMPLETE)
31377 2004-12-17 Peter Bartok <pbartok@novell.com>
31380 - Added color attribute to line tags.
31381 - Added color argument to all functions dealing with tags
31382 - Added color argument support to various functions
31383 - Fixed miss-calculation of baseline/shift in certain circumstances
31385 * TextBoxBase.cs: Added new color option to test code
31387 2004-12-17 Jackson Harper <jackson@ximian.com>
31390 * MonthCalendar.cs: Signature fixes
31392 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31394 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
31395 keyboard event moved it. Create a new graphics context for each paint resolves this
31397 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31399 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
31400 Make caret exist and go blink blink. Initial keyboard support.
31401 Fix exception handler, Add Invalidate support. Change way RefreshWindow
31404 2004-12-17 Jackson Harper <jackson@ximian.com>
31406 * XplatUIStructs.cs: Updated set of virtual keycodes.
31407 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
31409 2004-12-17 Jackson Harper <jackson@ximian.com>
31411 * XplatUIX11.cs: Prune old keyboard code.
31413 2004-12-17 Jackson Harper <jackson@ximian.com>
31415 * XplatUIX11.cs: When generating mouse wparams get the modifier
31416 keys from the ModifierKeys property.
31418 2004-12-17 Jackson Harper <jackson@ximian.com>
31420 * X11Keyboard.cs: Send up/down input when generating
31421 messages. Remove some unused vars.
31423 2004-12-17 Jackson Harper <jackson@ximian.com>
31426 * TreeView.cs: get rid of warnings.
31428 2004-12-17 Jackson Harper <jackson@ximian.com>
31430 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
31432 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
31434 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
31435 CheckedListBox.cs: Implementation
31437 2004-12-17 Peter Bartok <pbartok@novell.com>
31439 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
31441 2004-12-16 Peter Bartok <pbartok@novell.com>
31444 - InsertCharAtCaret(): Fixed start pos fixup
31445 - CaretLine_get: No longer derives the line from the tag, the tag
31446 could be stale if lines in the document have been added or deleted
31447 - RebalanceAfterDelete(): Fixed bug in balancing code
31448 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
31449 - Line.Streamline(): Now can also elminate leading empty tags
31450 - DumpTree(): Added a few more tests and prevented exception on
31452 - Added Debug section for Combining lines
31453 - Delete(): Now copies all remaining properties of a line
31456 - Left mousebutton now sets the caret (and middle button still acts
31457 as formatting tester, which must go away soon)
31458 - Added Debug section for Deleting/Combining lines
31459 - Fixed calculations for UpdateView after Combining lines
31461 2004-12-16 Peter Bartok <pbartok@novell.com>
31463 * TextControl.cs: Now properly aligns text on a baseline, using the
31464 new XplatUI.GetFontMetrics() method. Simplified several calculations
31465 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
31468 2004-12-16 Peter Bartok <pbartok@novell.com>
31470 * XplatUI.cs: Added GetFontMetrics() method
31471 * XplatUIDriver.cs: Added GetFontMetrics() abstract
31472 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
31473 into libgdiplus, our private GetFontMetrics function
31474 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
31475 * XplatUIWin32.cs: Implemented GetFontMetrics() method
31477 2004-12-16 Jackson Harper <jackson@ximain.com>
31479 * XplatUIStruct.cs: Add enum for dead keys
31480 * X11Keyboard.cs: Map and unmap dead keys.
31482 2004-12-16 Jackson Harper <jackson@ximian.com>
31484 * X11Keyboard.cs: Detect and use the num lock mask.
31486 2004-12-16 Peter Bartok <pbartok@novell.com>
31488 * Control.cs (CreateGraphics): Added check to make sure the
31489 handle of the window exists before calling Graphics.FromHwnd()
31491 2004-12-16 Peter Bartok <pbartok@novell.com>
31493 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
31494 contains a lot of code that's not supposed to be there for the
31495 real thing, but required for developing/testing the textbox
31498 2004-12-16 Peter Bartok <pbartok@novell.com>
31501 - Fixed Streamline method
31502 - Added FindTag method to Line
31503 - Added DumpTree method for debugging
31504 - Added DecrementLines() method for deleting lines
31505 - Fixed UpdateView to update the cursor to end-of-line on single-line
31507 - Added PositionCaret() method
31508 - Fixed MoveCaret(LineDown) to move into the last line, too
31509 - Added InsertChar overload
31510 - Fixed InsertChar tag offset calculations
31511 - Added DeleteChar() method
31512 - Added Combine() method for folding lines
31513 - Fixed Delete() method, no longer allocates wasted Line object and
31514 now copies all properties when swapping nodes
31515 - Delete() method now updates document line counter
31517 2004-12-15 Jackson Harper <jackson@ximian.com>
31519 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
31520 * X11Keyboard.cs: Expose the currently selected modifier keys
31521 through a property.
31523 2004-12-15 Peter Bartok <pbartok@novell.com>
31525 * TextControl.cs: Initial check-in. Still incomplete
31527 2004-12-15 Jackson Harper <jackson@ximian.com>
31530 * TreeView.cs: Fix build on csc (second time today ;-))
31532 2004-12-15 Jackson Harper <jackson@ximian.com>
31534 * TreeView.cs: Store the treenodes plus/minus box bounds when it
31535 is calculated and use this for click testing.
31536 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
31538 2004-12-15 Jackson Harper <jackson@ximian.com>
31540 * TreeView.cs: Pass the nodes image index to the image list when
31541 drawing that image.
31543 2004-12-15 Jackson Harper <jackson@ximian.com>
31545 * X11Keyboard.cs: Set messages hwnd.
31546 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
31547 post_message calls.
31549 2004-12-15 Jackson Harper <jackson@ximian.com>
31551 * X11Keyboard.cs: Fix to compile with csc.
31553 2004-12-15 Jackson Harper <jackson@ximian.com>
31555 * X11Structs.cs: Add key mask values
31556 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
31557 * X11Keyboard.cs: New file - Extrapolates and interpolates key
31558 down/up foo into WM_CHAR foo
31559 * KeyboardLayouts.cs: Common keyboard layouts
31560 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
31561 post messages into the main queue.
31563 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
31565 * Button.cs: implement ProcessMnemonic
31566 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
31568 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
31569 * ButtonBase.cs: Show HotkeyPrefix (not the &)
31571 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
31573 * MonthCalendar.cs: Implemented click-hold for next/previous month
31576 2004-12-11 Peter Bartok <pbartok@novell.com>
31579 - Added XKeyboardState (moved from XplatUIX11.cs)
31580 - Added XCreateGC related enums and structures
31581 - Added GXFunction for XSetFunction
31583 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
31585 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
31586 CaretVisible() calls
31588 * ToolTip.cs: Added code to prevent stealing focus from app windows
31590 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
31591 DestroyCaret, SetCaretPos and CaretVisible)
31594 - Added implementation for caret functions
31595 - Moved hover variables into a struct, to make it a bit easier
31596 on the eyes and to debug
31597 - Removed XKeyboardState (moved to XplatUIX11.cs)
31598 - Moved Keyboard properties into the properties region
31600 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
31601 call to get a graphics context for our control
31603 * XplatUIOSX.cs: Added empty overrides for the new caret functions
31605 * TreeView.cs: Fixed bug. No matter what color was set it would always
31606 return SystemColors.Window
31608 * XplatUIWin32.cs: Implemented caret overrides
31610 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
31612 * ListBox.cs: fire events, implement missing methods and properties,
31615 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
31617 * MonthCalendar.cs: invalidation bug fixing
31618 * ThemeWin32Classic.cs: paint fixing
31620 2004-12-09 Geoff Norton <gnorton@customerdna.com>
31622 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
31623 prepare the CGContextRef there now.
31625 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
31627 * MonthCalendar.cs:
31628 - optimisationL only invalidate areas that have changed
31629 * ThemeWin32Classic.cs:
31630 - only paint parts that intersect with clip_area
31632 2004-12-09 Peter Bartok <pbartok@novell.com>
31634 * Application.cs: Undid changes from r37004 which cause problems
31637 2004-12-09 Ravindra <rkumar@novell.com>
31639 * ToolBar.cs: Added support for displaying ContextMenu
31640 attached to a button on ToolBar.
31641 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
31644 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31646 * Label.cs: autosize works in text change and removes unnecessary
31649 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31651 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31654 2004-12-08 Geoff Norton <gnorton@customerdna.com>
31656 * XplatUIOSX.cs: Added mouse move/click/grab support
31657 Remove some debugging WriteLines not needed anymore.
31658 Add window resizing/positioning.
31659 Fix visibility on reparenting.
31661 2004-12-08 Peter Bartok <pbartok@novell.com>
31663 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
31665 2004-12-07 Geoff Norton <gnorton@customerdna.com>
31667 * XplatUIOSX.cs: Initial checkin
31668 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
31670 2004-12-03 Ravindra <rkumar@novell.com>
31672 * ListView.cs: Added some keybindings and fixed scrolling.
31673 ScrollBars listen to ValueChanged event instead of Scroll
31674 Event. This would let us take care of all changes being
31675 done in the scrollbars' values programmatically or manually.
31676 * ListView.cs (CanMultiselect): Added a check for shift key.
31677 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
31678 * ListViewItem.cs (Clone): Fixed. We need to make a copy
31679 of ListViewSubItemCollection as well.
31681 2004-12-06 Peter Bartok <pbartok@novell.com>
31683 * Control.cs (Parent): Added check and exception to prevent
31686 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
31688 * ListBox.cs: implemented clipping, selection single and multiple,
31691 2004-12-03 Ravindra <rkumar@novell.com>
31693 * ListView.cs (ListView_KeyDown):
31694 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
31695 when CTRL key is pressed.
31696 * ListViewItem.cs (Selected): Fixed setting the property.
31698 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31700 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
31702 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
31703 MinimizeBox, ShowInTaskbar, TopMost properties.
31705 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
31706 will be implemented).
31708 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31710 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
31712 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
31715 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
31717 * TreeView.cs: BackColor is Colors.Window.
31719 2004-12-01 Jackson Harper <jackson@ximian.com>
31721 * TreeView.cs: When resizing the tree if the user is making it
31722 smaller we don't get expose events, so we need to handle adding
31723 the horizontal scrollbar in the size changed handler as well as
31724 the expose handler.
31726 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
31728 * DrawItemState.cs: fixes wrong enum values
31730 2004-12-01 Jackson Harper <jackson@ximian.com>
31732 * TreeView.cs: Resize the hbar as well as the vbar on resize.
31734 2004-12-01 Jackson Harper <jackson@ximian.com>
31736 * NodeLabelEditEventArgs.cs:
31737 * NodeLabelEditEventHandler.cs:
31738 * OpenTreeNodeEnumerator.cs:
31740 * TreeNodeCollection.cs:
31742 * TreeViewAction.cs:
31743 * TreeViewCancelEventArgs.cs:
31744 * TreeViewCancelEventHandler.cs:
31745 * TreeViewEventArgs.cs:
31746 * TreeViewEventHandler.cs: Initial implementation.
31748 2004-12-01 Ravindra <rkumar@novell.com>
31750 * ListView.cs (CalculateListView): Fixed scrolling related
31751 calculations. Also, removed some debug statements from other
31753 * ListViewItem.cs: Changed access to 'selected' instance variable
31754 from private to internal.
31755 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
31757 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
31759 * ThemeWin32Classic.cs: remove cache of brush and pens for
31760 specific controls and use the global system, fixes scrollbutton
31761 bugs (for small sizes, disabled, etc)
31763 * ScrollBar.cs: does not show the thumb for very small controls
31764 (as MS) and allow smaller buttons that the regular size
31766 2004-12-01 Miguel de Icaza <miguel@ximian.com>
31768 * UpDownBase.cs: Add abstract methods for the interface.
31769 Add new virtual methods (need to be hooked up to TextEntry when it
31771 Add override methods for most features.
31772 Computes the size, forces the height of the text entry.
31774 * NumericUpDown.cs: Put here the current testing code.
31776 * Set eol-style property on all files that do not have mixed line
31777 endings, to minimize the future problems. There are still a few
31778 files with mixed endings, and someone should choose whether they
31779 want to move it or not.
31781 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
31783 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
31786 2004-11-30 Ravindra <rkumar@novell.com>
31788 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
31789 drawing and replaced use of SystemColors by theme colors.
31790 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
31791 * ListView.cs (ListViewItemCollection.Add): Throw exception when
31792 same ListViewItem is being added more than once.
31794 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
31796 * MonthCalendar.cs:
31797 - ControlStyles love to make the control not flicker
31799 2004-11-30 Peter Bartok <pbartok@novell.com>
31801 * CharacterCasing.cs: Added
31803 2004-11-29 Peter Bartok <pbartok@novell.com>
31805 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31806 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
31807 I am removing these files as they conflict with already completed
31808 work. While it is fantastic to get contributions to MWF, I
31809 respectfully ask that everyone please coordinate their contributions
31810 through mono-winforms-list or #mono-winforms at this time. We're
31811 explicitly avoiding stubbing and don't want controls that don't have
31812 their basic functionality implemented in svn. Please also see
31813 http://www.mono-project.com/contributing/winforms.html
31816 2004-11-29 Marek Safar <marek.safar@seznam.cz>
31818 * Application.cs (ModalRun): Don't hang after exit.
31820 * Theme.cs: New TreeViewDefaultSize property.
31822 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
31823 with less hardcoded SystemColors constant.
31824 Implemented TreeViewDefaultSize.
31826 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31827 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
31830 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
31832 * MonthCalendar.cs:
31833 - Fix NextMonthDate and PrevMonthDate click moving calendar
31835 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31837 * MonthCalendar.cs:
31838 - Fix usage of ScrollChange Property when scrolling months
31840 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
31842 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
31843 - Fixes menu destroying
31844 - Support adding and removing items on already created menus
31846 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31848 * MonthCalendar.cs:
31849 - Re-worked all bolded dates handling to match win32
31850 * ThemeWin32Classic.cs:
31851 - Fixed rendering with bolded dates
31853 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
31855 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31856 - Horizontal scroolbar
31861 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
31863 * MonthCalendar.cs:
31864 - Fix Usage of MaxSelectionCount from SelectionRange
31865 - Fixed Shift + Cursor Selection
31866 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31867 - Fixed normal cursor selection to be compat with win32
31868 - Fixed Shift + Mouse Click selection
31870 2004-11-24 Peter Bartok <pbartok@novell.com>
31872 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31873 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31875 - CreatedKeyBoardMsg now updates keystate with Alt key
31876 - Added workaround for timer crash to CheckTimers, Jackson will
31877 develop a proper fix and check in later
31878 - Implemented DispatchMessage
31879 - Removed calling the native window proc from GetMessage (call
31880 now moved to DispatchMessage)
31882 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31883 the keydata (Fixes bug #69831)
31886 - (DispatchMessage): Switched to return IntPtr
31887 - Added DllImport for SetFocus
31889 2004-11-24 Ravindra <rkumar@novell.com>
31891 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31892 background drawing.
31893 * ListViewItem.cs: Fixed various properties, calculations
31894 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31895 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31896 and some internal properties. Fixed MouseDown handler and Paint
31899 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31901 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31903 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31905 * ContainerControl.cs: correct accidental check in of local changes
31907 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31909 * ThemeWin32Classic.cs:
31910 - Fixed Drawing Last month in grid (sometimes not showing)
31911 * MonthCalendar.cs:
31912 - Fixed title width calculation bug (makeing title small)
31914 2004-11-23 Peter Bartok <pbartok@novell.com>
31917 - Added generation of WM_MOUSEHOVER event
31918 - Added missing assignment of async_method atom
31919 - Fixed WM_ERASEBKGND; now only redraws the exposed area
31921 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31923 * ThemeWin32Classic.cs:
31924 - Fixed Drawing of today circle when showtodaycircle not set
31925 - fixed drawing of first and last month in the grid (gay dates)
31926 * MonthCalendar.cs:
31927 - Fixed Drawing of today circle
31928 - Fixed drawing of grady dates
31929 - Fixed HitTest for today link when ShowToday set to false
31930 - Fixed DefaultSize to obey ShowToday
31932 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31934 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31935 * System.Windows.Forms/Theme.cs
31936 * MonthCalendar.cs: added for MonthCalendar
31937 * SelectionRange.cs: added for MonthCalendar
31938 * Day.cs: added for MonthCalendar: added for MonthCalendar
31939 * DateRangeEventArgs.cs: added for MonthCalendar
31940 * DateRangeEventHandler.cs: added for MonthCalendar
31942 2004-11-22 Ravindra <rkumar@novell.com>
31944 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31947 2004-11-22 Miguel de Icaza <miguel@ximian.com>
31949 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31952 * NumericUpDown.cs: Added new implementation.
31953 * UpDownBase.cs: Added new implementation.
31955 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31958 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31961 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31964 2004-11-21 Miguel de Icaza <miguel@ximian.com>
31966 * Timer.cs (Dispose): Should call the base dispose when
31969 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31971 * ScrollBar.cs: updates thumb position when max, min or increment
31974 2004-11-21 Ravindra <rkumar@novell.com>
31976 * ListView.cs: Implemented item selection, activation and
31977 column header style. Fixed properties to do a redraw, if
31978 required. Added support for MouseHover, DoubleClick, KeyDown
31979 and KeyUp event handling and some minor fixes.
31980 * ListViewItem.cs: Fixed constructor.
31981 * ThemeWin32Classic.cs: Improved drawing for ListView.
31983 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31985 * ThemeWin32Classic.cs: initial listbox drawing code
31986 * DrawMode.cs: new enumerator
31987 * ListControl.cs: stubbed class
31988 * ListBox.cs: initial implementation
31989 * Theme.cs: new methods definitions
31990 * SelectionMode.cs: new enumerator
31992 2004-11-17 Peter Bartok <pbartok@novell.com>
31994 * XplatUIWin32.cs: Added double-click events to the class style
31995 * Control.cs (WndProc):
31996 - Added handling of click-count to MouseDown/ MouseUp events.
31997 - Added handling of middle and right mouse buttons
31998 - Removed old debug code
32000 2004-11-17 Jackson Harper <jackson@ximian.com>
32002 * XplatUIX11.cs: Use the new Mono.Unix namespace.
32004 2004-11-17 Ravindra <rkumar@novell.com>
32006 * ListView.cs: Added event handling for MouseMove/Up/Down.
32007 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32008 * ThemeWin32Classic.cs: We need to clear the graphics context and
32009 draw column header in a proper state.
32012 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
32014 * Menu.cs: fixes signature
32016 2004-11-16 Peter Bartok <pbartok@novell.com>
32018 * XplatUIX11.cs (GetMessage): Implemented generation of
32019 double click mouse messages
32021 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
32023 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
32026 2004-11-11 Peter Bartok <pbartok@novell.com>
32028 * HandleData.cs: Added Visible property
32029 * XplatUIX11.cs (IsVisible): Now uses Visible property from
32031 * XplatUIX11.cs: Removed old debug leftovers
32032 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
32033 * Control.cs (WndProc): Removed old debug leftovers,
32034 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
32035 needed WM_SIZE handling
32037 2004-11-11 Jackson Harper <jackson@ximian.com>
32039 * OwnerDrawPropertyBag.cs:
32040 * TreeViewImageIndexConverter.cs: Initial implementation
32042 2004-11-10 Jackson Harper <jackson@ximian.com>
32044 * ThemeWin32Classic.cs:
32045 * TabControl.cs: instead of moving tabs by the slider pos just
32046 start drawing at the tab that is offset by the slider. This way
32047 scrolling always moves by exactly one tab.
32049 2004-11-10 Jackson Harper <jackson@ximian.com>
32051 * TabControl.cs: You can only scroll left when the slider has
32052 already ben moved right.
32054 2004-11-10 Jackson Harper <jackson@ximian.com>
32056 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
32059 2004-11-10 Jackson Harper <jackson@ximian.com>
32061 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
32064 2004-11-09 Jackson Harper <jackson@ximian.com>
32066 * TabControl.cs (CalcXPos): New helper method so we can determine
32067 the proper place to start drawing vertical tabs.
32068 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
32070 2004-11-09 Jackson Harper <jackson@ximian.com>
32072 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
32073 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
32074 and Bottom, left and right are illegal values for this and
32075 multiline is enabled when the alignment is set to left or right.
32076 (DrawTab): Each alignment block should draw the text itself now
32077 because Left requires special love. Also add rendering for Left
32080 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
32082 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
32083 does not destroy the windows, removes debugging messages
32085 2004-11-09 jba <jba-mono@optusnet.com.au>
32087 * ThemeWin32Classic.cs
32088 (DrawButtonBase): Fix verticle text rect clipping in windows
32089 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32090 rendering and incorrect text rect clipping
32091 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32092 rendering and incorrect text rect clipping
32094 2004-11-08 Jackson Harper <jackson@ximian.com>
32096 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
32097 bottom when they are bottom aligned so the bottoms of the tabs get
32099 * TabControl.cs (DropRow): Move rows up instead of down when the
32100 tab control is bottom aligned.
32102 2004-11-08 13:59 pbartok
32105 - Added handling for various window styles
32106 - Added handling for popup windows
32107 - Added SetTopmost handling
32109 2004-11-08 13:55 pbartok
32112 - Added argument to SetTopmost method
32113 - Fixed broken ClientToScreen function
32115 2004-11-08 13:53 pbartok
32117 * XplatUIStructs.cs:
32118 - Added missing WS_EX styles
32120 2004-11-08 13:53 pbartok
32122 * XplatUI.cs, XplatUIDriver.cs:
32123 - Added argument to SetTopmost
32125 2004-11-08 13:52 pbartok
32128 - Added XSetWindowAttributes structure
32129 - Improved XWindowAttributes structure
32130 - Added SetWindowValuemask enum
32131 - Added window creation arguments enum
32132 - Added gravity enum
32133 - Added Motif hints structure
32134 - Added various Motif flags and enums
32135 - Added PropertyMode enum for property functions
32137 2004-11-08 13:50 pbartok
32140 - Fixed arguments for updated SetTopmost method
32142 2004-11-08 13:49 pbartok
32145 - Fixed arguments for updated SetTopmost function
32146 - Fixed usage of PointToClient
32148 2004-11-08 13:44 pbartok
32151 - Added Clipping of children and siblings
32153 2004-11-08 13:41 pbartok
32156 - Removed SetMenuBarWindow call. We do this in Form.cs
32158 2004-11-08 13:40 jackson
32160 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
32161 scrolling jimmi in the correct location with bottom aligned tabs
32163 2004-11-08 13:36 pbartok
32165 * ContainerControl.cs:
32166 - Implemented BindingContext
32167 - Implemented ParentForm
32169 2004-11-08 12:46 jackson
32171 * TabControl.cs: Put bottom rendered tabs in the right location
32173 2004-11-08 07:15 jordi
32175 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
32178 2004-11-05 17:30 jackson
32180 * TabControl.cs: When selected tabs are expanded make sure they
32181 don't go beyond the edges of the tab control
32183 2004-11-05 14:57 jackson
32185 * TabControl.cs: Reset show_slider so if the control is resized to
32186 a size where it is no longer needed it's not displayed anymore
32188 2004-11-05 13:16 jackson
32190 * TabControl.cs: Make tab pages non visible when added to the
32193 2004-11-05 12:42 jackson
32195 * TabControl.cs: Implement SizeMode.FillToRight
32197 2004-11-05 12:16 jackson
32199 * Control.cs: Do not call CreateHandle if the handle is already
32202 2004-11-05 11:46 jackson
32204 * TabControl.cs: Remove superflous call to CalcTabRows
32206 2004-11-05 09:07 jackson
32208 * XplatUIX11.cs: Update for Mono.Posix changes
32210 2004-11-05 07:00 ravindra
32212 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
32215 2004-11-04 22:47 jba
32217 * ThemeWin32Classic.cs:
32218 - Fix Button rendering for FlatStyle = Flat or Popup
32219 - Fix RadioButton and CheckBox rendering when Appearance = Button
32220 (normal and flatstyle).
32221 - Correct outer rectangle color when drawing focus rectangle
32222 - Adjust button bounds to be 1 px smaller when focused
32223 - Make button not draw sunken 3d border when pushed (windows compat)
32224 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
32225 - Offset the text in RadioButton and Checkbox when being rendered as
32227 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
32229 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
32230 - Fixed disabled text rendering for normally rendered radiobuttons
32232 2004-11-04 10:26 jackson
32234 * TabControl.cs: Recalculate tab rows when resizing
32236 2004-11-04 07:47 jordi
32238 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
32239 collection completion, drawing issues, missing features
32241 2004-11-04 05:03 ravindra
32244 - We need to recalculate the Thumb area when
32245 LargeChange/maximum/minimum values are changed.
32246 - We set the 'pos' in UpdatePos() method to minimum, if it's less
32247 than minimum. This is required to handle the case if large_change is
32248 more than max, and use LargeChange property instead of large_change
32250 - We return max+1 when large_change is more than max, like MS does.
32252 2004-11-04 04:29 ravindra
32254 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
32255 - Changed default value signatures (prefixed all with ListView).
32256 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
32258 - Fixed calculations for ListViewItem and implemented Clone()
32261 2004-11-04 04:26 ravindra
32263 * Theme.cs, ThemeWin32Classic.cs:
32264 - Changed default ListView values signatures (prefixed all with
32266 - Fixed default size values for VScrollBar and HScrollBar.
32267 - Fixed DrawListViewItem method.
32269 2004-11-04 04:05 ravindra
32271 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
32273 2004-11-04 04:04 ravindra
32275 * ImageList.cs: Implemented the missing overload for Draw method.
32277 2004-11-03 19:29 jackson
32279 * TabControl.cs: Handle dropping rows on selection properly
32281 2004-11-03 11:59 jackson
32283 * TabControl.cs: remove debug code
32285 2004-11-03 11:52 jackson
32287 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
32288 the scrolly widgerywoo
32290 2004-11-02 13:52 jackson
32292 * TabControl.cs: Resize the tab pages and tabs when the tab control
32295 2004-11-02 13:40 jackson
32297 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
32298 selected tab to the bottom
32300 2004-11-02 13:39 jackson
32302 * TabPage.cs: Store the tab pages row
32304 2004-11-02 12:33 jordi
32306 * MenuItem.cs: fixes handle creation
32308 2004-11-02 11:42 jackson
32310 * TabControl.cs: signature fix
32312 2004-11-02 08:56 jackson
32314 * TabControl.cs: Calculate whether the tab is on an edge properly.
32315 Remove top secret debugging code
32317 2004-11-01 19:57 jackson
32319 * TabControl.cs: Add click handling, and proper sizing
32321 2004-11-01 19:47 jackson
32323 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
32326 2004-11-01 19:39 jackson
32328 * TabPage.cs: add internal property to store the bounds of a tab
32331 2004-10-30 04:23 ravindra
32333 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
32336 2004-10-30 04:21 ravindra
32338 * ListView.cs, ListViewItem.cs: Added support for scrolling and
32339 fixed calculations.
32341 2004-10-30 03:06 pbartok
32344 - Removed extension of DllImported libs
32346 2004-10-29 09:55 jordi
32348 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
32349 navigation, itemcollection completion, menu fixes
32351 2004-10-27 22:58 pbartok
32354 - Now throws a nice error message when no X display could be opened
32356 2004-10-26 13:51 jordi
32358 * ListView.cs: removes warning
32360 2004-10-26 03:55 ravindra
32362 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
32363 ThemeWin32Classic.cs: Some formatting for my last checkins.
32365 2004-10-26 03:36 ravindra
32367 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
32368 control and default values.
32370 2004-10-26 03:35 ravindra
32372 * Theme.cs: Added some default values for ListView control.
32374 2004-10-26 03:33 ravindra
32376 * ToolBar.cs: ToolBar should use the user specified button size, if
32377 there is any. Added a size_specified flag for the same.
32379 2004-10-26 03:33 ravindra
32381 * ColumnHeader.cs: Added some internal members and calculations for
32384 2004-10-26 03:32 ravindra
32386 * ListViewItem.cs: Calculations for ListViewItem.
32388 2004-10-26 03:31 ravindra
32390 * ListView.cs: Added some internal members and calculations for
32393 2004-10-22 13:31 jordi
32395 * MenuAPI.cs: speedup menus drawing
32397 2004-10-22 13:16 jackson
32399 * XplatUIX11.cs: Make sure to update exposed regions when adding an
32402 2004-10-22 11:49 jackson
32406 2004-10-22 11:41 jackson
32408 * Control.cs: Check to see if the window should have its background
32409 repainted by X when drawing.
32411 2004-10-22 11:31 jackson
32413 * XplatUIX11.cs: When invalidating areas only use XClearArea if
32414 clear is true, this way we do not get flicker from X repainting the
32417 2004-10-22 11:28 jackson
32419 * XEventQueue.cs: Queue properly
32421 2004-10-21 09:38 jackson
32423 * XEventQueue.cs: Fix access modifier
32425 2004-10-21 09:36 jackson
32427 * XEventQueue.cs: Don't loose messages
32429 2004-10-21 09:22 jackson
32431 * XEventQueue.cs: Don't loose messages
32433 2004-10-20 04:15 jordi
32435 * BootMode.cs: enum need it by SystemInfo
32437 2004-10-19 21:58 pbartok
32440 - Small sanity check
32442 2004-10-19 21:56 pbartok
32445 - Added private FormParentWindow class which acts as the container
32446 for our form and as the non-client area where menus are drawn
32447 - Added/Moved required tie-ins to Jordi's menus
32448 - Fixed/Implemented the FormStartPosition functionality
32450 2004-10-19 21:52 pbartok
32453 - Removed unneeded locals
32454 - Added code to all size and location properties to understand and
32455 deal with the parent container of Form
32457 2004-10-19 21:33 pbartok
32460 - Fixed to deal with new Form subclasses for menus
32462 2004-10-19 17:48 jackson
32464 * XEventQueue.cs: commit correct version of file
32466 2004-10-19 16:50 jackson
32468 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
32470 2004-10-19 16:15 jordi
32472 * MenuAPI.cs: MenuBarCalcSize returns the height
32474 2004-10-19 08:31 pbartok
32477 - Added missing call to PreProcessMessage before calling OnXXXKey
32480 2004-10-19 00:04 ravindra
32482 * ToolTip.cs: Fixed constructor.
32484 2004-10-18 09:31 jordi
32486 * MenuAPI.cs: menuitems in menubars do not have shortcuts
32488 2004-10-18 09:26 jordi
32490 * MenuItem.cs: fixes MenuItem class signature
32492 2004-10-18 08:56 jordi
32494 * MenuAPI.cs: prevents windows from showing in the taskbar
32496 2004-10-18 00:28 ravindra
32498 * ToolTip.cs: Suppressed a warning message.
32500 2004-10-18 00:27 ravindra
32502 * Control.cs: Default value of visible property must be true.
32504 2004-10-17 23:19 pbartok
32507 - Complete implementation
32509 2004-10-17 23:19 pbartok
32512 - Added EnableWindow method
32513 - Added SetModal stub
32514 - Added generation of WM_ACTIVATE message (still needs testing)
32515 - Added SetTopMost stub
32516 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
32518 2004-10-17 23:17 pbartok
32521 - Removed VirtualKeys to XplatUIStructs
32522 - Implemented SetTopMost method
32523 - Implemented EnableWindow method
32524 - Bugfix in ScreenToClient()
32525 - Bugfixes in ClientToScreen()
32527 2004-10-17 22:51 pbartok
32529 * XplatUIStructs.cs:
32530 - Added WS_EX styles to WindowStyles enumeration
32532 2004-10-17 22:50 pbartok
32534 * XplatUI.cs, XplatUIDriver.cs:
32535 - Added method for enabling/disabling windows
32536 - Added method for setting window modality
32537 - Added method for setting topmost window
32539 2004-10-17 22:49 pbartok
32541 * ThemeWin32Classic.cs:
32542 - Added ToolTip drawing code
32544 2004-10-17 22:49 pbartok
32547 - Added ToolTip abstracts
32549 2004-10-17 22:47 pbartok
32552 - Fixed Form.ControlCollection to handle owner relations
32553 - Added Owner/OwnedForms handling
32554 - Implemented Z-Ordering for owned forms
32555 - Removed unneeded private overload of ShowDialog
32556 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
32558 - Fixed Close(), had wrong default
32559 - Added firing of OnLoad event
32560 - Added some commented out debug code for Ownership handling
32562 2004-10-17 22:16 pbartok
32565 - Fixed/implemented flat list of controls
32567 2004-10-17 22:14 pbartok
32570 - Added code to simulate modal dialogs on Win32
32572 2004-10-17 16:11 jordi
32574 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
32577 2004-10-17 13:39 jordi
32579 * MenuAPI.cs: menu drawing fixes
32581 2004-10-15 09:10 ravindra
32583 * StructFormat.cs: General Enum.
32585 2004-10-15 09:09 ravindra
32587 * SizeGripStyle.cs: Enum for Form.
32589 2004-10-15 09:08 ravindra
32591 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
32592 in Theme for ListView.
32594 2004-10-15 09:06 ravindra
32596 * ColumnHeader.cs: Flushing some formatting changes.
32598 2004-10-15 09:05 ravindra
32600 * ListViewItem.cs: Implemented GetBounds method and fixed coding
32603 2004-10-15 09:03 ravindra
32605 * ListView.cs: Implemented Paint method and fixed coding style.
32607 2004-10-15 07:34 jordi
32609 * MenuAPI.cs: fix for X11
32611 2004-10-15 07:32 ravindra
32613 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
32614 - Renamed Paint() method to Draw() for clarity. Also, moved
32615 DrawImage() to OnPaint().
32617 2004-10-15 07:25 ravindra
32619 * CheckBox.cs, RadioButton.cs:
32620 - Removed Redraw (), we get it from ButtonBase.
32621 - Implemented Paint (), to do class specific painting.
32623 2004-10-15 07:16 ravindra
32626 - Redraw () is not virtual now.
32627 - Added an internal virtual method Paint (), so that
32628 derived classes can do their painting on their own.
32629 - Modified OnPaint () to call Paint ().
32631 2004-10-15 06:43 jordi
32633 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
32634 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
32636 2004-10-15 00:30 ravindra
32639 - MessageBox on windows does not have min/max buttons.
32640 This change in CreateParams fixes this on Windows. We
32641 still need to implement this windowstyle behavior in
32644 2004-10-14 05:14 ravindra
32647 - Changed Redraw () to do a Refresh () always.
32648 - Fixed the MouseMove event handling when mouse is pressed,
32649 ie drag event handling.
32650 - Replaced the usage of ToolBarButton.Pressed property to
32651 ToolBarButton.pressed internal variable.
32653 2004-10-14 05:10 ravindra
32655 * ToolBarButton.cs:
32656 - Added an internal member 'inside' to handle mouse move
32657 with mouse pressed ie mouse drag event.
32658 - Changed 'Pressed' property to return true only when
32659 'inside' and 'pressed' are both true.
32660 - Some coding style love.
32662 2004-10-14 00:17 ravindra
32664 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
32667 2004-10-14 00:15 ravindra
32669 * ButtonBase.cs: Redraw () related improvements.
32671 2004-10-14 00:14 ravindra
32673 * MessageBox.cs: Moved InitFormSize () out of Paint method and
32674 removed unnecessary calls to Button.Show () method.
32676 2004-10-13 17:50 pbartok
32680 - Removed destroying of window until we solve the problem of X
32681 destroying the window before us on shutdown
32683 2004-10-13 16:32 pbartok
32686 - Now Redraws on MouseUp for FlatStyle Flat and Popup
32688 2004-10-13 14:18 pbartok
32691 - Added code to destroy the X window
32693 2004-10-13 14:18 pbartok
32696 - Added code to destroy a window
32698 2004-10-13 14:12 pbartok
32701 - Added the Redraw on Resize that got dropped in the last rev
32703 2004-10-13 09:06 pbartok
32705 * ThemeWin32Classic.cs:
32706 - Path from John BouAntoun:
32707 * Fix check rendering (centre correctly for normal style, offset
32708 correctly for FlatStyle).
32709 * Fix border color usage (use backcolor) for FlatStyle.Popup
32710 * Use checkbox.Capture instead of checkbox.is_pressed when
32711 rendering flatstyle states.
32713 2004-10-12 21:48 pbartok
32715 * ThemeWin32Classic.cs:
32716 - Removed all occurences of SystemColors and replaced them with the
32717 matching theme color
32719 2004-10-12 21:41 pbartok
32721 * ThemeWin32Classic.cs:
32722 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
32723 him using the function for flatstyle drawing
32724 - Changed functions to use the new version of CPDrawBorder3D
32726 2004-10-12 21:15 pbartok
32729 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
32730 match MS documentation. They need to return defined colors if the
32731 passed color matches the configured control color. Thanks to John
32732 BouAntoun for pointing this out.
32734 2004-10-12 20:57 pbartok
32737 - Fix from John BouAntoun: Raise ForeColorChanged event when text
32740 2004-10-12 20:46 pbartok
32743 - Fix from John BouAntoun: Now properly sets the Appearance property
32745 2004-10-12 20:45 pbartok
32747 * ThemeWin32Classic.cs:
32748 - Fixes from John BouAntoun: now handles forecolors and backcolors
32749 for flatstyle rendered controls much better; It also fixes normal
32750 checkbox rendering when pushed or disabled.
32752 2004-10-08 02:50 jordi
32754 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
32757 2004-10-07 08:56 jordi
32759 * ThemeWin32Classic.cs: Removes deletion of cached brushes
32761 2004-10-06 03:59 jordi
32763 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
32764 XplatUIWin32.cs: removes warnings from compilation
32766 2004-10-05 12:23 jackson
32768 * RadioButton.cs: Fix ctor
32770 2004-10-05 11:10 pbartok
32773 - Partial implementation by Benjamin Dasnois
32775 2004-10-05 10:15 jackson
32777 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
32780 2004-10-05 03:07 ravindra
32783 - Removed a private method, Draw ().
32784 - Fixed the ButtonDropDown event handling.
32785 - Fixed MouseMove event handling.
32787 2004-10-05 03:04 ravindra
32789 * ThemeWin32Classic.cs:
32790 - Added DrawListView method and ListViewDefaultSize property.
32791 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
32792 - Changed DOS style CRLF to Unix format (dos2unix).
32794 2004-10-05 03:03 ravindra
32797 - Added DrawListView method and ListViewDefaultSize property.
32799 2004-10-05 02:42 ravindra
32801 * ToolBarButton.cs: Added an internal member dd_pressed to handle
32802 clicks on DropDown arrow.
32804 2004-10-04 22:56 jackson
32806 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
32807 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
32808 Control handle the buffers, derived classes should not have to
32809 CreateBuffers themselves.
32811 2004-10-04 21:20 jackson
32813 * StatusBar.cs: The control handles resizing the buffers now.
32815 2004-10-04 21:18 jackson
32817 * Control.cs: When resizing the buffers should be invalidated. This
32818 should be handled in Control not in derived classes.
32820 2004-10-04 14:45 jackson
32824 2004-10-04 02:14 pbartok
32826 * LeftRightAlignment.cs:
32829 2004-10-04 01:09 jordi
32831 * ThemeWin32Classic.cs: fixes right button position causing right
32832 button not showing on horizontal scrollbars
32834 2004-10-02 13:12 pbartok
32837 - Simplified the Invalidate method by using an X call instead of
32838 generating the expose ourselves
32839 - Added an expose when the window background is changed
32840 - Implemented ClientToScreen method
32842 2004-10-02 13:08 pbartok
32845 - Added Win32EnableWindow method (test for implementing modal
32847 - Added ClientToScreen method and imports
32849 2004-10-02 13:07 pbartok
32851 * XplatUI.cs, XplatUIDriver.cs:
32852 - Added ClientToScreen coordinate translation method
32854 2004-10-02 13:06 pbartok
32856 * KeyPressEventArgs.cs:
32857 - Fixed access level for constructor
32859 2004-10-02 13:06 pbartok
32862 - Changed access level for the window_collection hash table
32864 2004-10-02 13:05 pbartok
32867 - Added KeyPreview property
32868 - Added Menu property (still incomplete, pending Jordi's menu work)
32869 - Implemented ProcessCmdKey
32870 - Implemented ProcessDialogKey
32871 - Implemented ProcessKeyPreview
32873 2004-10-02 13:02 pbartok
32876 - Added private method to get the Control object from the window
32878 - Implemented ContextMenu property
32879 - Implemented PointToScreen
32880 - Implemented PreProcessMessage
32881 - Implemented IsInputChar
32882 - Implemented IsInputKey
32883 - Implemented ProcessCmdKey
32884 - Completed ProcessKeyEventArgs
32885 - Fixed message loop to call the proper chain of functions on key
32887 - Implemented ProcessDialogChar
32888 - Implemented ProcessDialogKey
32889 - Implemented ProcessKeyMessage
32890 - Implemented ProcessKeyPreview
32891 - Added RaiseDragEvent stub (MS internal method)
32892 - Added RaiseKeyEvent stub (MS internal method)
32893 - Added RaiseMouseEvent stub (MS Internal method)
32894 - Added RaisePaintEvent stub (MS Internal method)
32895 - Added ResetMouseEventArgs stub (MS Internal method)
32896 - Implemented RtlTranslateAlignment
32897 - Implemented RtlTranslateContent
32898 - Implemented RtlTranslateHorizontal
32899 - Implemented RtlTranslateLeftRight
32900 - Added generation of KeyPress event
32902 2004-10-02 05:57 ravindra
32904 * ListViewItem.cs: Added attributes.
32906 2004-10-02 05:32 ravindra
32908 * ListView.cs: Added attributes.
32910 2004-10-01 11:53 jackson
32912 * Form.cs: Implement the Close method so work on MessageBox can
32915 2004-09-30 14:06 pbartok
32920 2004-09-30 11:34 jackson
32922 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32924 2004-09-30 07:26 ravindra
32926 * ListViewItemConverter.cs: Converter for ListViewItem.
32928 2004-09-30 07:26 ravindra
32930 * SortOrder.cs: Enum for ListView control.
32932 2004-09-30 07:25 ravindra
32934 * ColumnHeader.cs: Supporting class for ListView control.
32936 2004-09-30 07:24 ravindra
32938 * ListView.cs, ListViewItem.cs: Initial implementation.
32940 2004-09-30 07:20 ravindra
32942 * ItemActivation.cs: Enum for ListView Control.
32944 2004-09-29 20:29 pbartok
32947 - Added lookup of pixel value for background color; tries to get a
32948 color 'close' to the requested color, it avoids having to create a
32949 colormap. Depending on the display this could mean the used color
32950 is slightly off the desired color. Might have to change it to a more
32951 resource intensive colormap approach, but it will work as a
32952 workaround to avoid red screens.
32954 2004-09-29 14:27 jackson
32956 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32958 2004-09-28 12:44 pbartok
32960 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32961 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32962 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32963 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32964 TrackBar.cs, VScrollBar.cs:
32965 - Streamlined Theme interfaces:
32966 * Each DrawXXX method for a control now is passed the object for
32967 the control to be drawn in order to allow accessing any state the
32968 theme might require
32970 * ControlPaint methods for the theme now have a CP prefix to avoid
32971 name clashes with the Draw methods for controls
32973 * Every control now retrieves it's DefaultSize from the current
32976 2004-09-28 12:17 jackson
32978 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32981 2004-09-24 14:57 jackson
32983 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
32984 Gives us a nice little performance boost.
32986 2004-09-24 12:02 jackson
32988 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
32989 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
32990 Control and supporting classes. Initial checkin
32992 2004-09-23 13:08 jackson
32994 * Form.cs: Temp build fixage
32996 2004-09-23 01:39 ravindra
32998 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
32999 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33000 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33001 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33002 EventHandlers needed by ListView Control.
33004 2004-09-22 14:12 pbartok
33006 * ScrollableControl.cs:
33007 - Implemented DockPadding property
33008 - Implemented AutoScroll property
33009 - Implemented AutoScrollMargin property
33010 - Implemented AutoScrollMinSize property
33011 - Implemented AutoScrollPosition property
33012 - Implemented DisplayRectangle property (still incomplete)
33013 - Implemented CreateParams property
33014 - Implemented HScroll property
33015 - Implemented VScroll property
33016 - Implemented OnVisibleChanged property
33018 2004-09-22 14:09 pbartok
33021 - Added Form.ControllCollection class
33022 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
33023 RemoveOwnedForm (still incomplete, missing on-top and common
33024 minimize/maximize behaviour)
33025 - Added StartPosition property (still incomplete, does not use when
33027 - Added ShowDialog() methods (still incomplete, missing forcing the
33030 2004-09-22 14:05 pbartok
33033 - Added message loop for modal dialogs
33035 2004-09-22 14:02 pbartok
33038 - Fixed wrong types for events
33040 2004-09-22 14:00 pbartok
33042 * Shortcut.cs, FormWindowState.cs:
33043 - Fixed wrong values
33045 2004-09-22 12:01 jackson
33047 * Control.cs: Text is never null
33049 2004-09-20 22:14 pbartok
33052 - Fixed accessibility level for Idle handler
33054 2004-09-20 18:54 jackson
33056 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33057 XplatUIX11.cs: New message loop that uses poll so we don't get a
33060 2004-09-17 10:43 pbartok
33063 - Fixed behaviour of arrow buttons. Now properly behaves like
33064 Buttons (and like Microsoft's scrollbar arrow buttons)
33066 2004-09-17 10:14 pbartok
33069 - Added missing release of keyboard/mouse capture
33071 2004-09-17 06:18 jordi
33073 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
33074 Theme.cs: Very early menu support
33076 2004-09-16 17:45 pbartok
33079 - Fixed sending a window to the front
33080 - Added overload for SetWindowPos to avoid casting
33082 2004-09-16 17:44 pbartok
33085 - Added SendToBack and BringToFront methods
33087 2004-09-16 07:00 ravindra
33089 * Copyright: Added Novell URL.
33091 2004-09-16 07:00 ravindra
33093 * ToolBar.cs: Invalidate should be done before redrawing.
33095 2004-09-15 21:19 ravindra
33097 * ColumnHeaderStyle.cs: Enum for ListView Control.
33099 2004-09-15 21:18 ravindra
33101 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
33104 2004-09-13 18:26 jackson
33106 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
33109 2004-09-13 18:13 jackson
33111 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
33112 a second thread and post messages into the main threads message
33113 queue. This makes timing much more consistent. Both win2K and XP
33114 have a minimum timer value of 15 milliseconds, so we now do this
33117 2004-09-13 15:18 pbartok
33119 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33121 - Added Z-Ordering methods
33123 2004-09-13 10:56 pbartok
33126 - Fixed #region names
33127 - Moved properties and methods into their proper #regions
33129 2004-09-13 10:51 pbartok
33132 - Added Accept and CancelButton properties
33133 - Added ProcessDialogKey() method
33135 2004-09-13 08:18 pbartok
33137 * IWindowTarget.cs:
33140 2004-09-10 21:50 pbartok
33143 - Added DoDragDrop() [incomplete]
33144 - Properly implemented 'Visible' handling
33145 - Added SetVisibleCore()
33146 - Implemented FindChildAtPoint()
33147 - Implemented GetContainerControl()
33148 - Implemented Hide()
33150 2004-09-10 19:28 pbartok
33153 - Moved methods into their appropriate #regions
33154 - Reordered methods within regions alphabetically
33156 2004-09-10 18:57 pbartok
33158 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33159 - Added method to retrieve text from window
33161 2004-09-10 18:56 pbartok
33164 - Moved some internal functions into the internal region
33165 - Implemented FontHeight
33166 - Implemented RenderRightToLeft
33167 - Implemented ResizeRedraw
33168 - Implemented ShowFocusCues
33169 - Implemented ShowKeyboardCues
33170 - Implemented FromChildHandle
33171 - Implemented FromHandle
33172 - Implemented IsMnemonic
33173 - Implemented ReflectMessage
33174 - All public and protected Static Methods are now complete
33176 2004-09-10 16:54 pbartok
33179 - Implemented remaining missing public instance properties
33180 - Alphabetized some out of order properties
33182 2004-09-10 05:51 ravindra
33184 * PictureBox.cs: Added a check for null image.
33186 2004-09-10 00:59 jordi
33188 * GroupBox.cs: remove cvs tag
33190 2004-09-09 05:25 ravindra
33192 * ToolBar.cs: Make redraw accessible from ToolBarButton.
33194 2004-09-09 05:23 ravindra
33196 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
33199 2004-09-09 02:28 pbartok
33201 * ThemeWin32Classic.cs:
33202 - Improve disabled string look
33204 2004-09-09 01:15 jordi
33206 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
33209 2004-09-08 23:56 ravindra
33211 * ItemBoundsPortion.cs: It's enum, not a class!
33213 2004-09-08 23:47 ravindra
33215 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
33218 2004-09-08 21:13 ravindra
33220 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
33223 2004-09-08 21:03 ravindra
33225 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
33228 2004-09-08 21:01 ravindra
33230 * ScrollableControl.cs: Removed unreachable code.
33232 2004-09-08 06:45 jordi
33234 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
33236 2004-09-08 01:00 jackson
33238 * XplatUIX11.cs: Only run the timers when updating the message
33239 queue. This effectively gives X messages a higher priority then
33240 timer messages. Timers still need love though
33242 2004-09-07 14:01 jackson
33244 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
33245 this for us and the handle is no longer valid.
33247 2004-09-07 13:59 jackson
33249 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
33250 loop that manages to not crash. TODO: Add poll and cleanup timers
33252 2004-09-07 11:12 jordi
33254 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
33256 2004-09-07 03:40 jordi
33258 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
33259 fixes, methods, multiple links
33261 2004-09-06 06:55 jordi
33263 * Control.cs: Caches ClientRectangle rectangle value
33265 2004-09-05 02:03 jordi
33267 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
33270 2004-09-04 11:10 jordi
33272 * Label.cs: Refresh when font changed
33274 2004-09-02 16:24 pbartok
33277 - Added sanity check to creation of double buffer bitmap
33279 2004-09-02 16:24 pbartok
33282 - Fixed selection of text color
33283 - Fixed handling of resize event; now properly recreates double
33285 - Added missing assignment of TextAlignment
33286 - Added proper default for TextAlignment
33288 2004-09-02 14:26 pbartok
33291 - Added missing RadioButton.RadioButtonAccessibleObject class
33293 2004-09-02 14:26 pbartok
33296 - Added missing Control.ControlAccessibleObject class
33297 - Started to implement Select()ion mechanisms, still very incomplete
33299 2004-09-02 14:25 pbartok
33301 * AccessibleObject.cs:
33302 - Added missing methods
33304 2004-09-02 14:23 pbartok
33306 * AccessibleNavigation.cs, AccessibleSelection.cs:
33309 2004-09-02 10:32 jordi
33311 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
33312 pool for pens, brushes, and hatchbruses
33314 2004-09-01 15:30 jackson
33316 * StatusBar.cs: Fix typo
33318 2004-09-01 14:44 pbartok
33323 2004-09-01 14:39 pbartok
33325 * Button.cs, RadioButton.cs:
33326 - Functional initial check-in
33328 2004-09-01 14:01 pbartok
33331 - Added missing default
33332 - Added missing region mark
33334 2004-09-01 09:10 jordi
33336 * Label.cs: fixes method signatures, new methods, events, fixes
33339 2004-09-01 07:19 jordi
33341 * Control.cs: Init string variables with an empty object
33343 2004-09-01 04:20 jordi
33345 * Control.cs: fires OnFontChanged event
33347 2004-08-31 20:07 pbartok
33350 - Enabled display of strings
33352 2004-08-31 20:05 pbartok
33355 - Added (partial) implementation of DialogResult; rest needs to be
33356 implemented when the modal loop code is done
33358 2004-08-31 19:55 pbartok
33361 - Fixed to match the removal of the needs_redraw concept
33363 2004-08-31 19:55 pbartok
33366 - Removed the rather odd split between 'needs redraw' and redrawing
33367 - Now handles the events that require regeneration (ambient
33368 properties and size)
33370 2004-08-31 19:41 pbartok
33373 - Added firing of BackColorChanged event
33374 - Added TopLevelControl property
33375 - Fixed handling of WM_ERASEBKGRND message
33377 2004-08-31 12:49 pbartok
33383 2004-08-31 12:48 pbartok
33386 - Finished (famous last words)
33388 2004-08-31 04:35 jordi
33390 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
33391 scrolling bugs, adds new methods
33393 2004-08-30 14:42 pbartok
33396 - Implemented CheckBox drawing code
33398 2004-08-30 14:42 pbartok
33401 - Made Redraw() and CheckRedraw() virtual
33402 - Improved mouse up/down/move logic to properly track buttons
33404 2004-08-30 09:44 pbartok
33407 - Updated to fix broken build. Not complete yet.
33409 2004-08-30 09:28 pbartok
33414 2004-08-30 09:17 pbartok
33419 2004-08-27 16:12 ravindra
33421 * ToolBarButton.cs: Added TypeConverter attribute.
33423 2004-08-27 16:07 ravindra
33425 * ImageIndexConverter.cs: Implemented.
33427 2004-08-27 14:17 pbartok
33430 - Removed unneeded stack vars
33431 - First attempt to fix sizing issues when layout is suspended
33433 2004-08-25 15:35 jordi
33435 * ScrollBar.cs: more fixes to scrollbar
33437 2004-08-25 14:04 ravindra
33439 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
33440 Added the missing divider code and grip for ToolBar Control.
33442 2004-08-25 13:20 pbartok
33445 - Control now properly passes the ambient background color to child
33448 2004-08-25 13:20 jordi
33450 * ScrollBar.cs: small bug fix regarding bar position
33452 2004-08-25 12:33 pbartok
33455 - Now only calls SetTimer or KillTimer if the enabled state has
33458 2004-08-25 12:33 pbartok
33461 - Fixed timer handling, now seems to work
33462 - Improved error message for window creation
33464 2004-08-25 12:32 pbartok
33467 - Fixed generation of MouseUp message
33469 2004-08-25 12:29 jordi
33471 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
33472 and fixes for progressbar
33474 2004-08-24 18:43 ravindra
33476 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
33477 in ToolBar control.
33479 2004-08-24 17:15 pbartok
33483 - Added missing events
33486 2004-08-24 17:14 pbartok
33488 * StatusBar.cs, PictureBox.cs:
33489 - Now uses Control's CreateParams
33491 2004-08-24 16:36 pbartok
33494 - Fixed background color handling
33495 - Fixed sending of enter/leave events on a grab
33497 2004-08-24 16:35 pbartok
33500 - Refined definitions for CrossingEvent
33502 2004-08-24 12:37 jordi
33504 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
33505 formmating, methods signature, and adds missing events
33507 2004-08-24 12:24 jordi
33509 * Control.cs: fire OnEnabledChanged event
33511 2004-08-24 11:17 pbartok
33514 - Implemented SetTimer() and KillTimer()
33516 2004-08-24 11:16 pbartok
33519 - Now uses Remove instead of Add to kill the timer
33521 2004-08-24 10:16 jackson
33523 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
33524 picture boxes in the theme now. Draw picture box borders and obey
33527 2004-08-24 05:49 jackson
33529 * Timer.cs: Remove top secret debugging code
33531 2004-08-24 05:34 jackson
33533 * PictureBox.cs: Temp hack to make picture boxes draw their full
33536 2004-08-24 05:29 jackson
33538 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33539 XplatUIX11.cs: Move timers to the driver level. On X they are
33540 queued by the driver and checked on idle.
33542 2004-08-24 01:07 jackson
33544 * XplatUIX11.cs: Use a queue for async messages instead of passing
33545 them as ClientMessages since that was totally broken. Also simply
33546 check for events and return an idle message if none are found. This
33547 gives us an idle handler, and prevents deadlocking when no messages
33550 2004-08-23 18:19 ravindra
33552 * XplatUIWin32.cs: Removed the unwanted destructor.
33554 2004-08-23 17:27 pbartok
33557 - Finishing touches. Works now, just needs some optimizations.
33559 2004-08-23 16:53 jordi
33561 * ScrollBar.cs: small fix
33563 2004-08-23 16:45 pbartok
33566 - Removed debug output
33569 2004-08-23 16:43 jordi
33571 * ScrollBar.cs: [no log message]
33573 2004-08-23 16:10 pbartok
33576 - Fixed handling of WM_CLOSE message
33577 - Removed debug output
33579 2004-08-23 16:09 pbartok
33582 - Added handling of Idle event
33583 - Added handling of form closing
33584 - Fixed reporting of MessageLoop property
33585 - Removed some unneeded code, should provide a bit of a speedup
33587 2004-08-23 15:22 pbartok
33590 - Added InitLayout() method
33591 - Added code to properly perform layout when Anchor or Dock property
33593 - Changed 'interpretation' of ResumeLayout. MS seems to have a
33594 LAMESPEC, tried to do it in a way that makes sense
33596 2004-08-23 14:10 jordi
33598 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
33599 properties and methods
33601 2004-08-23 13:55 pbartok
33604 - Properly fixed Jordi's last fix
33605 - Now uses Cursor's Position property instead of calling XplatUI
33608 2004-08-23 13:44 jordi
33610 * PaintEventHandler.cs: Adding missing attribute
33612 2004-08-23 13:39 pbartok
33615 - Implemented Position property
33617 2004-08-23 13:39 pbartok
33619 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33620 - Added method to move mouse cursor
33622 2004-08-23 13:39 pbartok
33625 - Fixed setting of background color
33626 - Added method to move mouse cursor
33628 2004-08-23 13:16 jordi
33630 * Control.cs: avoids null exception
33632 2004-08-22 17:46 jackson
33634 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
33637 2004-08-22 17:40 jackson
33639 * XplatUIX11.cs: Add some missing locks
33641 2004-08-22 15:10 pbartok
33643 * Control.cs, Form.cs:
33644 - Removed OverlappedWindow style from Control, instead it's default
33646 - Made form windows OverlappedWindow by default
33648 2004-08-22 13:34 jackson
33650 * ScrollBar.cs: Update the position through the Value property so
33651 the OnValueChanged event is raised.
33653 2004-08-22 12:04 pbartok
33656 - Added Cursor.cs and UserControl.cs
33658 2004-08-22 12:03 pbartok
33661 - Started implementation, not usable yet
33663 2004-08-22 12:00 pbartok
33666 - Implemented UserControl (complete)
33668 2004-08-21 19:20 ravindra
33670 * ToolBar.cs: Correcting the formatting mess of VS.NET.
33672 2004-08-21 18:49 ravindra
33674 * ToolBar.cs: Probably this completes the missing attributes in
33677 2004-08-21 18:03 ravindra
33679 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
33680 Fixed toolbar control signatures.
33682 2004-08-21 16:32 pbartok
33687 2004-08-21 16:30 pbartok
33692 2004-08-21 16:19 pbartok
33694 * Control.cs, Label.cs:
33697 2004-08-21 15:57 pbartok
33700 - Added loads of debug output for development
33701 - Fixed typo in method name
33703 2004-08-21 15:52 pbartok
33705 * ToolBarButtonClickEventArgs.cs:
33706 - Added missing base class
33708 2004-08-21 14:53 pbartok
33711 - Updated to match new GrabWindow signature
33713 2004-08-21 14:51 pbartok
33715 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33716 - Added method to get default display size
33718 2004-08-21 14:23 pbartok
33720 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33721 - Added method to query current grab state
33722 - Added argument to allow confining a grab to a window
33724 2004-08-21 14:22 pbartok
33727 - Added [Flags] attribute so that modifiers can be used in bitwise
33730 2004-08-21 14:21 pbartok
33732 * TrackBar.cs, ScrollBar.cs:
33733 - Replaced direct XplatUI calls with their Control counterpart
33735 2004-08-21 13:32 pbartok
33738 - Implemented Created property
33740 2004-08-21 13:28 pbartok
33743 - Implemented ContainsFocus
33745 2004-08-21 13:26 pbartok
33748 - Implemented CausesValidation
33750 2004-08-21 13:21 pbartok
33753 - Implemented CanFocus
33754 - Implemented CanSelect
33755 - Implemented Capture
33757 2004-08-21 12:35 pbartok
33760 - Fixed bug with Async message handling
33761 - Implemented getting the ModifierKeys
33763 2004-08-21 12:32 jackson
33765 * AsyncMethodResult.cs: Make sure we have the mutex before we
33766 release it. Fixes BeginInvoke on windows
33768 2004-08-21 11:31 pbartok
33770 * XplatUIWin32.cs, XplatUIX11.cs:
33771 - Drivers now return proper mouse state
33773 2004-08-21 10:54 jackson
33775 * Control.cs: Implement EndInvoke
33777 2004-08-21 10:48 jackson
33779 * Timer.cs: Remove unneeded finalizer
33781 2004-08-20 19:52 ravindra
33783 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
33784 in mouse event handling in the ToolBar control.
33786 2004-08-20 19:50 ravindra
33788 * ImageList.cs: Changed draw method to use the arguments passed in
33791 2004-08-20 18:58 pbartok
33793 * XplatUIStructs.cs:
33794 - Added private message for async communication
33796 2004-08-20 17:38 ravindra
33798 * Control.cs: Made RightToLeft property virtual and removed a
33801 2004-08-20 14:39 jordi
33803 * ThemeGtk.cs: use style_attach
33805 2004-08-20 14:39 pbartok
33808 - Added jackson's Async code from X11 to Win32
33810 2004-08-20 14:09 pbartok
33813 - Added all new files
33815 2004-08-20 14:09 pbartok
33818 - Added call to set window background color
33820 2004-08-20 14:03 pbartok
33822 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33823 - Added method for setting the window background
33825 2004-08-20 14:02 pbartok
33828 - Added method for setting the background color
33829 - Added handling for erasing the window background
33831 2004-08-20 13:45 jordi
33833 * TrackBar.cs: fixes timer, new properties and methods
33835 2004-08-20 13:34 jackson
33837 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
33840 2004-08-20 13:22 jackson
33842 * Timer.cs: Timer Tick events are now handed through Controls Async
33843 mechanism so the callbacks are executed in the same thread as X
33845 2004-08-20 13:19 jackson
33847 * XplatUIDriver.cs: Expose functionality to send async messages
33850 2004-08-20 13:18 jackson
33852 * Control.cs: Implement Begininvoke
33854 2004-08-20 13:14 jackson
33856 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33857 messages through the driver
33859 2004-08-20 13:12 jackson
33861 * XplatUIX11.cs: Lock before all X operations. Also added Async
33862 method functionality through XSendEvent
33864 2004-08-20 13:11 jackson
33866 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33867 This will screw up on 64 bit systems)
33869 2004-08-20 13:10 jackson
33871 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33872 Async messages through X/Win32
33874 2004-08-19 19:39 pbartok
33877 - Updated code to match new HandleData.DeviceContext type
33879 2004-08-19 19:38 pbartok
33882 - Made DeviceContext a generic object to allow usage from various
33884 - Added support for queueing Windows messages
33886 2004-08-19 19:37 pbartok
33889 - Added generation of MouseEnter, MouseLeave and MouseHover events
33890 - Added cleanup on EndPaint
33892 2004-08-19 19:17 pbartok
33895 - Added handling of WM_MOUSEHOVER
33896 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33899 2004-08-19 18:55 jordi
33901 * ThemeGtk.cs: fixes button order
33903 2004-08-19 18:12 jordi
33905 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33907 2004-08-19 17:09 pbartok
33910 - Added Right property
33911 - Added RightToLeft property
33913 2004-08-19 16:27 jordi
33915 * ThemeGtk.cs: experimental GTK theme support
33917 2004-08-19 16:26 jordi
33919 * ITheme.cs, Theme.cs: move themes from an interface to a class
33921 2004-08-19 16:25 jordi
33923 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33926 2004-08-19 16:04 pbartok
33929 - Added colormap basics
33930 - Added a way to re-initialize with a different display handle
33931 - Fixed setting of the window background color
33932 - Added various X11 imports related to colors and colormaps
33934 2004-08-19 15:51 pbartok
33937 - Removed packing hints (Paolo suggested this a while back)
33938 - fixed colormap type
33939 - Added default Atom types
33940 - Added Screen and color structs and enums
33942 2004-08-19 15:39 pbartok
33945 - Added missing Draw() method
33946 - Added missing RecreateHandle event
33948 2004-08-19 15:30 pbartok
33951 - Added handling of WM_CLOSE
33953 2004-08-18 13:16 jordi
33955 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33958 2004-08-18 09:56 jordi
33960 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33962 2004-08-17 15:31 ravindra
33964 * SWF.csproj: Updated project.
33966 2004-08-17 15:25 pbartok
33969 - Drawing improvement; don't call UpdateBounds if we are not visible
33970 (or have been minimized)
33972 2004-08-17 15:24 pbartok
33975 - Finished IsVisible
33976 - Added Win32GetWindowPlacement
33978 2004-08-17 15:08 jackson
33980 * Panel.cs: Initial checkin of the Panel
33982 2004-08-17 14:25 pbartok
33985 - Fixed broken handling of default window sizes
33987 2004-08-17 13:29 jackson
33989 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
33990 has a large startup time.
33992 2004-08-17 10:25 jackson
33994 * HandleData.cs: union areas properly
33996 2004-08-17 10:12 jackson
33998 * HandleData.cs: union areas properly
34000 2004-08-16 20:00 ravindra
34002 * ToolBar.cs, ToolBarButton.cs: Added attributes.
34004 2004-08-16 18:48 ravindra
34006 * ToolBar.cs: Added attributes.
34008 2004-08-16 17:17 ravindra
34010 * SWF.csproj: Updated project.
34012 2004-08-16 17:16 jackson
34014 * XplatUIX11.cs: Check for more expose events before sending a
34015 WM_PAINT so they can all be grouped together. This makes dragging a
34016 window across another window redraw in a sane way.
34018 2004-08-16 15:47 pbartok
34021 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
34022 support OnMouseEnter/Leave()
34023 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
34026 2004-08-16 15:46 pbartok
34028 * XplatUIStructs.cs, XplatUIX11.cs:
34029 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
34030 OnMouseEnter/Leave()
34032 2004-08-16 15:34 jackson
34034 * XplatUIX11.cs: Group multiple expose events in HandleData, make
34035 sure messages get the message field set to WM_NULL if they are not
34038 2004-08-16 15:24 jackson
34040 * HandleData.cs: HandleData is used for storing message information
34043 2004-08-15 17:23 ravindra
34045 * ColorDepth.cs: Added attribute.
34047 2004-08-15 17:23 ravindra
34049 * SWF.csproj: Updated project for ToolBar Control.
34051 2004-08-15 17:20 ravindra
34053 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
34054 control and also dos2unix format.
34056 2004-08-15 17:13 ravindra
34058 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
34059 ToolBarButtonClickEventArgs.cs,
34060 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
34061 ToolBarTextAlign.cs: First Implementation of ToolBar control.
34063 2004-08-15 15:31 pbartok
34066 - First (mostly) working version
34068 2004-08-13 16:15 pbartok
34071 - Fixed Anchor default
34073 2004-08-13 15:43 pbartok
34076 - Changed GetCursorPos signature
34078 2004-08-13 15:42 pbartok
34080 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34081 - Changed signature for GetCursorPos
34083 2004-08-13 15:25 pbartok
34087 - Fixed resizing/exposure handling
34089 2004-08-13 15:22 jordi
34091 * ThemeWin32Classic.cs: removes redundant code and fixes issues
34094 2004-08-13 14:55 jordi
34096 * TrackBar.cs: change from wndproc to events
34098 2004-08-13 13:00 jordi
34100 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34101 XplatUIX11.cs: implements PointToClient (ScreenToClient)
34103 2004-08-13 12:53 pbartok
34106 - Changed GetWindowPos to also provide client area size
34107 - Fixed broken prototypes for several win32 functions
34109 2004-08-13 12:53 pbartok
34111 * XplatUI.cs, XplatUIDriver.cs:
34112 - Changed GetWindowPos to also provide client area size
34114 2004-08-13 12:52 pbartok
34117 - Added generation of WM_POSCHANGED
34118 - Changed GetWindowPos to also provide client area size
34120 2004-08-13 12:52 pbartok
34123 - Added Dispose() and destructor
34124 - Fixed resizing and bounds calculation
34126 - Added memory savings for invisible windows
34128 2004-08-13 12:46 jordi
34130 * TrackBar.cs: adds timer and grap window
34132 2004-08-13 10:25 jackson
34134 * Timer.cs: SWF Timer
34136 2004-08-12 16:59 pbartok
34138 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34139 - Implemented method to get current mouse position
34141 2004-08-12 14:29 jordi
34143 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
34144 enhancement, fix mouse problems, highli thumb, etc
34146 2004-08-12 13:31 pbartok
34149 - Fixed Anchoring bugs
34151 2004-08-12 13:01 jackson
34153 * StatusBar.cs: Don't forget things
34155 2004-08-12 12:54 jackson
34157 * ThemeWin32Classic.cs: Handle owner draw status bars
34159 2004-08-12 12:54 jackson
34161 * StatusBar.cs: Implement missing properties, events, and methods.
34162 Handle mouse clicking
34164 2004-08-12 10:19 jackson
34166 * StatusBarPanelClickEventArgs.cs,
34167 StatusBarPanelClickEventHandler.cs: Classes for handling status
34168 bar panel click events
34170 2004-08-12 10:10 jackson
34172 * Control.cs: Add missing properties
34174 2004-08-12 09:46 pbartok
34176 * BindingsManagerBase.cs:
34177 - Name changed to BindingManagerBase.cs
34179 2004-08-12 09:25 jordi
34181 * ScrollableControl.cs: calls ctrlbase instead of exeception
34183 2004-08-11 16:28 pbartok
34185 * InputLanguageChangingEventArgs.cs:
34186 - Never check in before compiling. Fixes the last check-in
34188 2004-08-11 16:26 pbartok
34190 * InputLanguageChangingEventArgs.cs:
34191 - More signature fixes
34193 2004-08-11 16:20 pbartok
34195 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
34196 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
34197 ImageListStreamer.cs, InputLanguage.cs,
34198 InputLanguageChangedEventArgs.cs,
34199 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
34200 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
34201 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
34202 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34205 2004-08-11 16:16 pbartok
34209 - Added .Net 1.1 method
34211 2004-08-11 15:25 pbartok
34214 - Fixed BindingManagerBase.cs filename
34216 2004-08-11 15:22 pbartok
34218 * BindingManagerBase.cs:
34219 - Was checked in with wrong filename
34221 2004-08-11 14:50 pbartok
34226 2004-08-11 13:41 jordi
34228 * XplatUIWin32.cs: Fixes ClientRect
34230 2004-08-11 13:19 pbartok
34232 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34234 - We had SetWindowPos and MoveWindow to set window positions and
34235 size, removed MoveWindow. We have GetWindowPos, so it made sense to
34236 keep SetWindowPos as matching counterpart
34237 - Added some X11 sanity checking
34239 2004-08-11 12:59 pbartok
34242 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
34243 (It seems that SetBounds is just a front for SetBoundsCore and
34244 SetBoundsCore updates the underlying window system and
34245 UpdateBounds is responsible for updating the variables associated
34246 with the Control and sending the events)
34247 - Major cleanup of Size handling; we now have two sizes, client_size
34248 and bounds. Bounds defines the window with decorations, client_size
34251 2004-08-11 12:55 pbartok
34253 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34254 - Added method to calculate difference between decorated window and
34257 2004-08-11 12:54 pbartok
34260 - Forcing redraw on resize
34262 2004-08-11 11:43 pbartok
34265 - Removed disposing of the actual images when the list is disposed
34267 2004-08-11 09:13 pbartok
34270 - Now properly reparents windows
34272 2004-08-11 08:37 pbartok
34277 2004-08-11 07:47 pbartok
34280 - Rewrote the collection stuff. Might not be as fast now, not
34281 keeping the number of children around and accessible directly, but
34282 it's more straightforward
34284 2004-08-11 07:44 pbartok
34286 * AccessibleObject.cs:
34287 - Fixed to match ControlCollection rewrite
34289 2004-08-11 07:43 pbartok
34292 - Added missing creation of the collection list
34294 2004-08-10 20:08 jackson
34296 * StatusBar.cs: Get the paint message from WndProc
34298 2004-08-10 19:31 jackson
34300 * ThemeWin32Classic.cs: Create Brushes as little as possible
34302 2004-08-10 19:20 jackson
34304 * UICues.cs: Add Flags attribute
34306 2004-08-10 19:19 jackson
34308 * StatusBarPanel.cs: Signature cleanup
34310 2004-08-10 19:10 jackson
34312 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
34313 Initial implementation of status bar item drawing
34315 2004-08-10 17:27 jordi
34317 * TrackBar.cs: add missing methods, properties, and restructure to
34320 2004-08-10 16:24 jackson
34322 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
34323 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
34326 2004-08-10 13:21 jordi
34328 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
34329 enhancements and standarize on win colors defaults
34331 2004-08-10 12:52 jackson
34333 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
34334 ThemeWin32Classic.cs: Implement DrawItem functionality
34336 2004-08-10 12:47 jordi
34338 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
34340 2004-08-10 12:32 jordi
34342 * Control.cs: throw ontextchange event
34344 2004-08-10 11:43 pbartok
34347 - Added more to the still unfinished Dock/Anchor layout code
34349 2004-08-10 11:39 pbartok
34351 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34352 - Added GetWindowPos method
34354 2004-08-10 11:36 pbartok
34357 - Implemented several methods
34359 2004-08-10 09:47 jackson
34361 * TrackBar.cs: Allow control to handle buffering
34363 2004-08-10 09:41 jackson
34365 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
34367 2004-08-10 09:24 jackson
34369 * Label.cs, LinkLabel.cs: Let Control handle buffering.
34371 2004-08-10 09:09 jackson
34373 * StatusBar.cs: Let Control handle all the buffering.
34375 2004-08-10 09:08 jackson
34377 * Control.cs: Control will now handle the buffering code, so each
34378 control does not have to implement this.
34380 2004-08-10 08:34 jackson
34382 * XplatUIDriver.cs: Use default colors from the theme
34384 2004-08-09 17:12 pbartok
34387 - Fixed several bugs Ravindra pointed out
34389 2004-08-09 16:11 pbartok
34392 - Added incomplete dock layout code
34393 - Added support for mouse wheel
34395 2004-08-09 16:09 pbartok
34398 - Added handling for middle and right mousebutton
34399 - Added handling for mouse wheel
34400 - Added handling for key state and mouse state and position
34401 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
34404 2004-08-09 15:40 jackson
34406 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
34407 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
34410 2004-08-09 15:37 jackson
34412 * StatusBar.cs: Initial implementation of StatusBar
34414 2004-08-09 15:36 jackson
34416 * ITheme.cs: Add support for drawing status bar and getting status
34419 2004-08-09 15:35 pbartok
34424 2004-08-09 15:34 jackson
34426 * ThemeWin32Classic.cs: Add support for drawing status bar and get
34427 status bar item sizes
34429 2004-08-09 15:21 jackson
34431 * ThemeWin32Classic.cs: Use known colors for default control
34434 2004-08-09 15:12 jackson
34436 * ThemeWin32Classic.cs: Make the default font static, it is static
34437 in control so this doesn't change functionality and creating fonts
34440 2004-08-09 14:56 pbartok
34443 - Added GrabMode enum
34445 2004-08-09 14:55 pbartok
34447 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34448 - Removed Run method, was only required for initial development
34450 2004-08-09 14:51 pbartok
34452 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34453 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
34456 2004-08-09 13:48 pbartok
34459 - Fixed default sizing for child windows
34461 2004-08-09 12:56 pbartok
34464 - Added generation of WM_DESTROY message
34465 - Added handling of window manager induced shutdown
34467 2004-08-09 11:31 jackson
34469 * ThemeWin32Classic.cs: New names for control properties
34471 2004-08-09 11:25 jackson
34473 * Control.cs: Use new color names
34475 2004-08-09 11:02 jackson
34477 * XplatUI.cs: Get default window properties from the theme
34479 2004-08-09 11:01 jackson
34481 * ITheme.cs: The theme engine now controls default window
34484 2004-08-09 11:00 jackson
34486 * ThemeWin32Classic.cs: Add default window color properties
34488 2004-08-09 10:17 jackson
34490 * ThemeWin32Classic.cs: Use correct default back color
34492 2004-08-09 10:05 jackson
34494 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
34497 2004-08-09 09:56 jackson
34499 * XplatUI.cs: Remove defaults, these are handled by the theme now.
34501 2004-08-09 09:54 jackson
34503 * Control.cs: Get default properties from the theme.
34505 2004-08-09 09:53 jackson
34507 * ITheme.cs: Themes now handle default control properties
34509 2004-08-09 09:53 jackson
34511 * ThemeWin32Classic.cs: Themes now handle default control
34512 properties so coloring will be consistent
34514 2004-08-08 16:54 jordi
34516 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
34518 2004-08-08 15:08 jordi
34520 * XplatUIX11.cs: fixes keyboard crash
34522 2004-08-08 13:47 jordi
34524 * Label.cs: add cvs header info
34526 2004-08-08 12:09 jackson
34528 * ThemeWin32Classic.cs: Add pen_buttonface
34530 2004-08-08 11:52 jordi
34532 * Label.cs, LinkLabel.cs: [no log message]
34534 2004-08-08 11:34 jordi
34536 * ThemeWin32Classic.cs: Use Windows Standard Colours
34538 2004-08-07 17:32 jordi
34540 * TrackBar.cs: throw exceptions of invalid enums values
34542 2004-08-07 17:31 jordi
34544 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
34547 2004-08-07 16:56 jackson
34549 * HorizontalAlignment.cs: Initial checkin
34551 2004-08-07 13:16 jordi
34553 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
34556 2004-08-07 13:05 jordi
34558 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
34559 GetSysColor defines
34561 2004-08-06 18:01 pbartok
34563 * ThemeWin32Classic.cs:
34564 - Fixed some rounding issues with float/int
34566 2004-08-06 18:00 jackson
34568 * DockStyle.cs, AnchorStyles.cs:
34570 Add flags and serializable attributes.
34572 2004-08-06 17:46 pbartok
34575 - Implemented GetParent
34577 2004-08-06 17:18 pbartok
34580 - Fixed some rounding issues with float/int
34582 2004-08-06 17:17 pbartok
34584 * X11Structs.cs, XplatUIX11.cs:
34585 - Fixed Refresh and Invalidate
34587 2004-08-06 15:30 pbartok
34589 * Control.cs, X11Structs.cs, XplatUIX11.cs:
34590 - Fixed recursive loop when resizing
34591 - Improved/fixed redrawing on expose messages
34593 2004-08-06 09:53 jordi
34595 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
34596 keyboard navigation
34598 2004-08-06 08:02 pbartok
34600 * X11Structs.cs, XplatUIX11.cs:
34601 - Fixed reparenting
34602 - Fixed window border creation
34604 2004-08-05 15:38 pbartok
34607 - Attempted fix for reparenting problems
34609 2004-08-04 15:14 pbartok
34612 - Fixed Invalidation bug (calculated wrong client area)
34613 - Added ClientSize setter
34615 2004-08-04 15:13 pbartok
34618 - Added AutoScale properties
34620 2004-08-04 15:13 pbartok
34623 - Added latest files
34625 2004-08-04 14:11 pbartok
34627 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34629 - Added Invalidate handling
34631 2004-08-03 17:09 jordi
34633 * XplatUIDriver.cs: fixes spelling mistake
34635 2004-07-27 09:53 jordi
34637 * TrackBar.cs: fixes trackbar events, def classname, methods
34640 2004-07-27 09:29 jordi
34642 * ScrollBar.cs: fixes scrollbar events
34644 2004-07-27 04:38 jordi
34646 * Control.cs: changes to be able to run winforms samples
34648 2004-07-26 11:42 jordi
34650 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
34651 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
34653 2004-07-26 05:41 jordi
34655 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
34656 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
34659 2004-07-22 09:22 jordi
34661 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
34662 check link overlapping, implement events, and fixes
34664 2004-07-21 10:28 jordi
34666 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
34668 2004-07-21 10:19 jordi
34670 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
34671 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
34672 LinkLabelLinkClickedEventArgs.cs,
34673 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
34674 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
34677 2004-07-19 13:09 jordi
34679 * Control.cs, Label.cs: label control re-written: added missing
34680 functionlity, events, and properties
34682 2004-07-19 10:49 jordi
34684 * Control.cs: fixes SetBounds logic
34686 2004-07-19 01:29 jordi
34688 * Control.cs: Call RefreshWindow only if the window has created
34690 2004-07-15 14:05 pbartok
34692 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
34693 - Implemented ImageList and ImageList.ImageCollection classes
34694 - Added ColorDepth enumeration
34695 - Updated SWF VS.Net project
34697 2004-07-15 11:06 jordi
34699 * XplatUIStructs.cs: added MsgButons enum
34701 2004-07-15 11:03 jordi
34703 * Control.cs: added basic mouse handeling events
34705 2004-07-15 03:38 jordi
34707 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
34708 Vertical TrackBar control implementation
34710 2004-07-13 09:33 jordi
34712 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
34714 2004-07-13 09:31 jordi
34716 * Control.cs, Form.cs: commit: new properties and fixes form size
34719 2004-07-09 14:13 miguel
34721 * ProgressBar.cs: Spelling
34723 2004-07-09 11:25 pbartok
34726 - Removed usage of Rectangle for drawing. Miguel pointed out it's
34729 2004-07-09 11:17 miguel
34731 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
34733 * ProgressBar.cs: Fixed spelling for `block'
34735 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
34738 Avoid using the += on rect.X, that exposed a bug in the compiler.
34740 2004-07-08 23:21 pbartok
34742 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
34743 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
34744 BaseCollection.cs, Binding.cs, BindingContext.cs,
34745 BindingMemberInfo.cs, BindingsCollection.cs,
34746 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
34747 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
34748 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
34749 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
34750 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
34751 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
34752 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
34753 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
34754 FrameStyle.cs, GiveFeedbackEventArgs.cs,
34755 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
34756 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
34757 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
34758 InputLanguageChangedEventArgs.cs,
34759 InputLanguageChangedEventHandler.cs,
34760 InputLanguageChangingEventArgs.cs,
34761 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
34762 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
34763 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
34764 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
34765 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
34766 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
34767 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
34768 QueryAccessibilityHelpEventArgs.cs,
34769 QueryAccessibilityHelpEventHandler.cs,
34770 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
34771 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
34772 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
34773 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
34774 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
34775 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
34776 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
34777 XplatUIX11.cs, lang.cs: