1 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4 FocusIn() too. This should fix the issue on switching
7 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
9 * X11Keyboard.cs : set XIM font size to somewhat reasonable
10 number (ideally the input textbox size, but that could be
13 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
15 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
16 the ToolStripItem's TextChanged. [Fixes bug #393597]
18 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20 * TabControl.cs: When invalidating in SelectedIndex and we need to
21 inflate to take into account the border of the tabs, make sure that
22 the invalidated rect doesn't overflow the control bounds, since that
23 would avoid updating at all.
25 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
27 * TabControl.cs: Don't substract scroller width from the row width,
28 since we need to take into account the total width of the control when
29 calculating the position of the tabs. This avoids showing scroller
30 when it is actually not needed.
31 Fixes part of #322325.
33 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
35 * ThemeVisualStyles.cs: Added support for TextBoxBase.
37 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
39 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
40 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
42 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
44 * DataGridView.cs: Only paint the top left header cell if there
47 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
49 * DataGridView.cs: When binding to a BindingSource, get the underlying
50 list to bind to. [Fixes bug #345483]
52 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
54 * DataGridView.cs: Do not bind to collection properties.
57 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
59 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
61 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
63 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
66 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
68 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
70 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
72 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
75 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
77 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
79 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
81 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
84 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
86 * TabControl.cs: Extended to handle the hot style.
88 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
90 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
91 Extended UpDownBase code to handle hot and disabled styles.
93 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
95 * DataGridView.cs: Handle databinding to generic list type things.
98 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
100 * DataGridViewCellCollection.cs: Add a method to find the cell
101 with the given DataPropertyName.
102 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
103 * DataGridViewColumnCollection.cs: Add a method to clear all
104 autogenerated columns.
105 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
109 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
111 * DataGridView.cs: Don't try to update the RowTemplate with
114 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
116 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
117 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
118 * DataGridView.cs: Lots of fixes/enhancements to databinding to
121 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
123 * Control.cs: Remove invalidating implicit child controls when
124 control is invalidated. It was causing too many redraws on
125 controls with implicit scrollbars.
126 * ListView.cs: Listen to the Invalidated event and invalidate
129 2008-05-20 Andreia Gaita <avidigal@novell.com>
131 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
132 * HtmlDocument.cs: Check for nulls
134 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
136 * Control.cs: In ControlCollection.RemoveInternal, remove the
137 internal control before calling PerformLayout and OnControlRemoved,
138 which was leaving us in an invalid state and causing a X error (bad
139 match). Observe that Remove () call has the same order.
140 Fixes an X error changing ComboBoxStyle.DropDownStyle.
142 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
144 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
145 being fired if ControlStyles.UserPaint style is activated.
148 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
150 * GridEntry.cs: Don't be so strict when setting the value -
151 do not check if what we set is what we get.
154 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
156 * XplatUIX11.cs: If there are no timers timeout should be 0
159 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
161 * Control.cs: As a followup to invalidating implicit children when
162 a control is invalidated, only invalidate them if they are in the
165 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
167 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
169 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
171 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
173 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
175 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
176 * XplatUIWin32.cs: Made Win32DeleteObject public.
178 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
180 * GridEntry.cs: Determine HasDefaultValue more strictly by using
181 PropertyDescriptor.ShouldSerializeValue.
184 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
186 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
187 in the classic theme.
189 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
191 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
193 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
194 ScrollBarHasPressedThumbStyle.
196 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
198 * TextRenderer.cs: Included some methods in the 1.1 profile.
200 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
202 * Control.cs: When we make a control visible, it may have been
203 previously visible and while it wasn't visible, the z-order of
204 things may have been shuffled, so the control needs to have its
205 z-order updated just in case. [Fixes bug #391518]
207 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
209 * ThemeVisualStyles.cs: Added support for GroupBox.
211 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
213 * GroupBoxRenderer.cs: Included in the 1.1 profile.
215 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
217 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
218 bug #389996; XSelectInput() behaved as mouse handler robber,
219 so remove extra call to it.
221 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
223 * Control.cs: Simplify ControlCollection.Contains method.
225 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
227 * DataGridViewRow.cs: Implement GetPreferredSize.
229 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
231 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
233 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
235 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
236 painting and edit control fixes.
238 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
240 * DataGridView.cs, DataGridViewCell.cs: Work around some external
241 checks to make sure we are in an actual row/col for top left header cell.
242 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
244 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
246 * Control.cs: Use long instead of int when handling WParam from
247 mousewheel scrolling. Int was overflowing on Win64.
249 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
251 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
252 flow panel without scrolling first, and then calculate the
253 scrolling based on the new layout. [Fixes bug #390149]
255 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
257 * ListBox.cs: Invalidate after scrolling up when selected index
258 changes. [Fixes bug #390151]
260 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
262 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
263 set, default height to 150. I tried first with DefaultSize, but this
264 is not generating a SetBoundsCore call before handle creation time, so
265 we can take it into account. This is just what .net does.
267 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
269 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
270 as it broke some stuff. Calberto is filing a bug for eno to
273 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
275 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
276 to 0 is the current value is -1, and if style is not Simple, just
277 return, like .net does.
278 Fixes part of #374713.
280 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
282 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
283 progress bar stuffs, use doubles instead of ints to prevent
284 overflow. [Fixes bug #389798]
286 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
288 * XplatUIX11.cs, X11Keyboard.cs :
289 Significant refactoring on XIM support. Now IM engine UI
290 should show up, at mostly-correct preedit position.
291 - Eliminated use of FocusWindow, as it is never mapped
292 and hence blocks correct preedit position. XIC is now
293 created per window, and it must be destroyed too when
294 the window is destroyed.
295 - WM_QUIT messages should not be filtered even when hwnd
296 is zombie. Filtering it could cause endless loop.
297 - Preedit position must move only when the window is alive.
298 - Make it IDisposable and make sure to release XIM/XICs.
300 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
302 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
303 XplatUIX11.cs, XplatUIWin32.cs :
304 fix for bug #325033 and #387693;
305 - WM_QUIT should not be sent when no running application
307 - SetTimer/KillTimer (especially on win32) should be
308 invoked for the window that the timer is/will_be attached.
309 - There could be unattached timers to a window when it's
310 started. For those timers, hold pending timers and when
311 a window is mapped, attach them to it.
312 - WaitForHwndMessage() could run into loop when
313 WM_SHOWWINDOW is handled before this method is called.
314 So, strictly check wm_showwindow state.
315 - Tick handler should not be invoked while one Tick handler
316 call is still running (introduced Busy state).
318 2008-05-13 Andreia Gaita <avidigal@novell.com>
320 * WebBrowserBase.cs: Override Internal alternative methods for
321 SetBoundsCore and OnResize instead of the protected ones.
322 * Control.cs: Move SetBoundsCore and OnResize implementations to
323 SetBoundsCoreInternal and OnResizeInternal, so they can be
324 overriden internally (WebBrowserBase needs to catch them but can't
325 override the protected methods without api compat problems)
327 2008-05-13 Andreia Gaita <avidigal@novell.com>
329 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
331 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
334 * ListView.cs: Remove debug messages.
336 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
338 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
339 area is empty. Also calculate scrollbars in Simple mode based in area
340 height and total number of items, not in MaxDropDownItems.
341 Fixes part of #371991.
343 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
345 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
347 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
349 * BindingSource.cs: GetListSortDescription is not public.
351 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
353 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
355 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
357 * HtmlElement.cs: Fix parameter names to match MS.
358 * HtmlWindowCollection.cs: Should not be sealed.
360 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
362 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
363 button, because the thumb button will not get drawn if the scrollbar
364 is disabled. [Fixes bug #389262]
366 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
368 * ListBox.cs: Handle End key for multi-column listboxen.
371 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
373 * ListBox.cs: Fix algorithm to determine which column our item is in.
376 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
378 * ListBox.cs: Invalidate when the listbox is resized.
381 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
383 * ListBox.cs: There is always at least one row in the ListBox (if
384 we are doing these calculations.) [Fixes bug #389253]
386 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
388 * ListBox.cs: There is always at least one column in the ListBox.
391 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
393 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
394 ensure in Simple mode that the height is exactly the requested one.
395 Also add the ComboBoxListControl to the controls collection in Simple
396 mode even if handle hasn't been created.
397 Fixes part of #371991.
399 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
401 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
402 our ComboBox owner instead of giving it back to the previous control (
403 as done in other controls). Also remove the empty override of Select
404 method, since we want to be selected *and* give focus to our owner.
405 This should let the user do keys-navigation in Simple mode.
407 2008-05-10 Geoff Norton <gnorton@novell.com>
409 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
410 problems with rapid scrolling of treeviews. Fixes #381084
412 2008-05-10 Geoff Norton <gnorton@novell.com>
414 * XplatUICarbon.cs: Deactivate the active window before
415 activating the desired window. Completes fixing #386504
417 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
419 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
420 SmallChange to the item size width plus the padding, to match .net.
422 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
424 * FileDialog.cs: Apply the custom filter typed by the user in the file
425 name combobox as much as possible while navigating in the file dialog.
428 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
430 * Binding.cs: Actually use NullValue if the retrieved value of
431 data source is null or DBNull. Makes a test pass.
433 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
435 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
436 * MimeIcon.cs: Provide a way to get icons from resources.
438 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
440 * Binding.cs: When the value retrieved from the control to be assigned
441 to the data source is null, actually use the 2.0 DataSourceNullValue
442 value. Make pass a data binding test.
444 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
446 * Control.cs: We need to invalidate implicit children even when
447 invalidate is called with invalidatechildren = false. (Implicit
448 children are really part of the parent.)
449 * ListView.cs: Double-buffer internal child controls for less
451 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
452 owner ListView subitems for greatly increased performance.
455 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
457 * FileDialog.cs: When the user types a wildcard character in the
458 filename combobox, update the contents of the folder using the text as
460 Fixes part of #385261.
462 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
464 * ListBox.cs: Various fixes for MultiColumn listboxen.
467 2008-05-08 Andreia Gaita <avidigal@novell.com>
469 * HtmlElement.cs: Implement Style property
471 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
473 * ListBox.cs: Respect checkboxes when measuring item size.
474 * ThemeWin32Classis.cs: When drawing list items, don't draw
475 text outside of the item's bounds to prevent overlapping.
476 (.Net actually overlaps, but that's just silly.)
479 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
481 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
482 Gert Driesen. Fixes bug #324830.
484 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
486 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
489 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
491 * BindingSource.cs: When calling IsSynchronized, return the value of
492 the related IList list.
494 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
496 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
499 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
501 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
502 navigation to scroll the grid if the current cell is not visible.
504 2008-05-07 Andreia Gaita <avidigal@novell.com>
506 * HtmlElement.cs: Implement TabIndex
508 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
510 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
511 properties, even when there are no items.
514 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
516 * NativeWindow.cs: Add support for multiple handles per window.
517 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
518 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
519 directly - use FromHandle instead.
522 2008-05-07 Andreia Gaita <avidigal@novell.com>
524 * HtmlElement.cs: Implement InnerHTML setter
526 2008-05-07 Andreia Gaita <avidigal@novell.com>
528 * HtmlDocument.cs: Implement Focused
530 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
532 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
533 methods, as well as add messages to the exceptions.
535 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
537 * BindingSource.cs: Setting DataSource should only reset DataMember if
538 the previous value was null (make pass a not working test).
540 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
542 * BindingSource.cs: When EndInit call is postponed and is called until
543 DataSource.EndInit is called, remove the handler for data source.
545 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
547 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
549 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
551 * ToolStripManager.cs: Store references to toolstrips as
552 weak references so they do not prevent forms from getting collected.
555 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
557 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
558 on .Net. So do the same thing in WndProc.
560 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
562 * TrackBar.cs: Commit patch from Andy Hume that corrects
563 the clickable areas to better match .Net.
566 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
568 * TrackBar.cs: Commit patch from Andy Hume that adds the
569 ResizeRedraw control flag so the track bar repaints itself
570 when it is resized. [Fixes bug #387072]
572 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
574 * TrackBar.cs: Commit patch from Andy Hume that adds better
575 support for keyboard navigation when the TrackBar is vertical.
578 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
580 * BindingSource.cs: Implement ISupportInitializeNotification support.
582 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
584 * ThemeVisualStyles.cs: Added support for ToolBar.
586 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
588 * ToolBar.cs: Made the Vertical property internal.
590 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
592 * ThemeVisualStyles.cs: Added support for TrackBar.
594 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
596 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
597 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
598 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
599 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
600 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
601 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
603 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
605 * ThemeVisualStyles.cs: Added support for UpDownBase.
607 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
609 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
610 Extracted Theme.UpDownBaseDrawButton.
612 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
614 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
615 removed from the static toolstrips collection in ToolStripManager
616 when they are disposed. Provides a workaround for bug #386483.
618 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
620 * GridEntry.cs: Read-only properties with Editor with
621 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
624 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
626 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
627 the menu key and there are no items on the menu.
630 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
632 * Control.cs: Avoid calling ToString on a string.
633 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
634 * GroupBox.cs: In FlatStyle property throw, not just create, the
635 exception. Avoid calling ToString on a string.
636 * ProgressBar.cs: Avoid calling ToString on a string.
637 * ScrollBar.cs: Avoid calling ToString on a string.
638 [All issues were found using Gendarme]
640 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
642 * NotifyIcon.cs: Prevent click events to be trigger after double click
643 events. Fixes remaining issues of bug #324832.
645 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
647 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
648 to mimic win32 behavior. Partially fixes bug #324832.
650 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
652 * BindingSource.cs: Implement Find methods.
654 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
656 * BindingSource.cs: Implement Sort, ApplySort overloads, and
659 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
661 * ListBindingHelper.cs: When calling GetListItemProperties and the
662 passed object is ITypedList, return the result of
663 ITypedList.GetItemProperties instead.
665 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
667 * LinkLabel.cs: Set default value of name on constructor of Link class
668 only for 2.0 profile.
670 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
672 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
673 Fixes remaining issues of bug #346154.
675 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
677 * LinkLabel.cs: Set a default value for name on internal contructor of
678 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
680 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
682 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
683 and refer all instances to owner.links. Partially fixes #346154.
685 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
687 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
688 length equal zero. Also called CreateLinkPieces in constructor. It fixes
689 the LinkLabel test 'TestLinkArea'.
691 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
693 * Form.cs: Remove menu before close form to prevent form to be not gaced.
696 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
698 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
701 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
703 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
706 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
708 * MenuAPI.cs: Remove unused ProcessCmdKey method.
710 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
712 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
715 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
717 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
720 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
722 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
723 sometimes we open a conext menu on mouse down of some controls and the mouse
724 up is dispatched to menu and dont need to. It fix remaining issues of
725 #363711 and other problems related to menu mouse click events.
727 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
729 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
730 some var names to better fit changes, now we have month_menu and today_menu
731 vars. Fixes bug #363711.
733 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
735 * MonthCalendar.cs: Handle every right mouse click to open context menu,
736 right now the default month menu but it will be change to have "Go to today"
739 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
741 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
743 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
745 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
747 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
749 * ThemeVisualStyles.cs: Added support for TreeView.
751 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
753 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
754 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
756 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
758 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
760 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
762 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
763 Implement 2.0 SP1 stuffs.
765 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
767 * FileDialog.cs: Implement 2.0 SP1 stuffs.
769 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
771 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
772 Implement CanEnableIme property. (2.0 SP1)
774 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
776 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
779 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
781 * Control.cs: Provide an internal way for a control to override
782 the setting of Height.
783 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
784 set height using new method.
786 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
788 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
790 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
792 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
793 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
795 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
797 * ThemeVisualStyles.cs: Added support for StatusBar.
799 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
801 * DataObject.cs: Add the other IDataObject interface.
803 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
805 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
806 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
808 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
810 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
811 * ListView.cs: Hide non-public API.
812 * MaskedTextBox.cs: Remove extra attribute.
814 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
816 * DataGridViewImageCell.cs: Use formatted value instead of value
817 to calculate preferred size.
819 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
821 * ListBox.cs: Move some initialization around so that selected_indices
822 is not accessed before it is created.
824 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
826 * InputLanguageCollection.cs: Implement the collection better.
829 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
831 * ToolStripDropDownItem.cs: Get the correct event object for
833 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
836 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
838 * DataGridViewRowCollection.cs: We don't currently support shared
839 rows. Should fix test failures caused by previous commit.
841 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
843 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
844 datagridview gets set. Only paint cells in visible columns.
845 * DataGridViewCell.cs: Draw border after cell content.
846 * DataGridView.cs: Invalidate after setting some properties. Only
847 use visible columns. Fit hit test bug with areas in the col/row header
848 area but not in a row or col. Implement UpdateCell/Row methods.
850 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
852 * DataGridViewElement.cs: Don't throw NIEX.
853 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
854 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
855 * DataGridViewCheckBoxColumn.cs: Implement ToString.
856 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
857 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
858 if the user filled in the formatting Value, use it.
860 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
862 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
865 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
867 * BindingSource.cs: Some corrections to Filter property, as well as
868 setting it for our list when resetting it.
870 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
872 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
873 than the maximum. Fixes reopened bug #384182.
875 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
877 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
878 Fixes remaining issues of #367490.
880 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
882 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
883 SystemInformation.WorkingArea to get max_screen value.
885 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
887 * BindingSource.cs: Implement Filter and RemoveFilter.
889 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
891 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
893 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
895 * X11Dnd.cs: When trying to convert data and we know we started the
896 dnd loop, don't try to use the cached data if the loop is not running,
897 which means that the data has been resetted.
900 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
902 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
905 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
907 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
908 it to drawn off screen edge. Fixes bug #367490.
910 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
912 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
913 menu position to have only one assignment of Location var.
915 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
917 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
918 for this patch. Fixes bug #384115.
920 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
922 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
923 the same. If LargeChange is zero, set a minimum size for the scroll
924 thumb grip. [Fixes bug #384182]
926 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
928 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
931 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
933 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
935 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
937 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
940 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
942 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
944 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
946 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
948 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
950 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
952 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
954 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
956 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
958 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
960 2008-04-27 Andreia Gaita <avidigal@novell.com>
962 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
963 supposed to return a reference to an mshtml interface, which we
965 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
966 reference to an mshtml interface, which we don't support). Code
968 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
969 DomDocument getter (it's supposed to return a reference to an
970 mshtml interface, which we don't support). Code formatting cleanup.
972 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
974 * ListView.cs: Ouch, forgot to commit.
976 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
979 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
981 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
983 * ListView.cs: When calculating box selection for virtual mode, don't
984 look for intersection with item's text, but item bounds, since that
985 would mean read ListViewItem's text for _every_ item, and that's
986 something we just can't do in virtual mode (items are only requested
989 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
991 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
992 partial support for managed windows (based on the patch from Ernesto).
994 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
996 * ListView.cs: When doing a key search use FindItemWithText method
997 instead of doing the search by ourselves, this way we avoid
998 duplicating the code and also we handle the special case for virtual
999 mode. To achieve that make our private overload of FindItemWithText
1000 internal and also have a 'roundtrip' parameter.
1002 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1004 * ListView.cs: When doing the layout don't request the
1005 ListViewItem instance if we are in virtual mode (since we can't request it
1006 until the item is actully drawn).
1008 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1010 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
1013 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1015 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
1016 the patch from Ernesto).
1018 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1020 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1021 * ThemeVisualStyles.cs: Added.
1023 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1025 * IDeviceContext.cs: Added a missing using.
1027 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1029 * ButtonBase.cs: Made IsDefault protected internal.
1030 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1032 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1034 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1035 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
1036 RadioButtonRenderer.cs: Included in the 1.1 profile.
1037 * IDeviceContext.cs: Added.
1038 * TextRenderer.cs: Included a member in the 1.1 profile.
1040 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1042 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
1044 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1046 * ErrorProvider.cs: Make the error icons come after the control
1047 they refer to. It isn't the way the MS does it, but its better
1048 than what we were doing. See bug #368587.
1050 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1052 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
1053 from Eric Albright that lazy loads the input language as ensures
1054 everything gets properly initialized. Fixes bug #373871.
1056 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1058 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
1059 implicit mnemonics. [Fixes bug #383000]
1061 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063 * X11Dnd.cs: When canceling the operation, automatically restore the
1064 default cursor - normally the default cursor is restored when the
1065 mouse buttons are released, but we should be able to restore it even
1066 if the buttons are still pressed (for example, when pressing ESC to
1070 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072 * X11Dnd.cs: When starting a new drad and drop operation, set control
1073 field to null, just as the other fields, to avoid calling any
1074 operation on a previous control. Also, when calling DndLeave on a
1075 control, set it to null, thus we don't fire that event multiple times
1079 2008-04-23 Geoff Norton <gnorton@novell.com>
1081 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
1082 the whole_window object. Fixes #377084.
1084 2008-04-23 Andreia Gaita <avidigal@novell.com>
1086 * HtmlElement.cs: Implement RaiseEvent (event injection into the
1089 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
1091 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
1093 2008-04-23 Andreia Gaita <avidigal@novell.com>
1095 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
1098 2008-04-23 Andreia Gaita <avidigal@novell.com>
1100 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
1103 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1105 * X11Dnd.cs: When the drop was cancelled, or could just not be
1106 performed, return DragDropEffect.None always (match .net).
1108 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1110 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
1112 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1114 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
1116 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
1118 * DataGridView.cs: Add support for error icon tool tips.
1119 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
1120 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
1122 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
1124 * X11Structs.cs: Add mouse button masks enum.
1125 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
1126 WM_EXITSIZEMOVE only once at the beginning and at the end of the
1127 form resize/move operation instead of for each step of it.
1128 [Fixes bug #346529 for the x11 backend]
1130 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1132 * DataGridView*: Implement support for drawing error icons.
1134 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1136 * TreeView.cs: Make vbar and hbar internal.
1137 * TreeNode.cs: If collapsing the node removes one of the TreeView's
1138 scrollbars, invalidate the whole thing.
1141 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1143 * TreeView.cs: Calling Sort() sets Sorted = true.
1144 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
1145 if the nodes need to be sorted.
1148 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
1150 * Form.cs: Fire SizeChanged for both when the form is minimized and
1152 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
1153 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
1155 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
1157 * ComboBox.cs: If the combobox is disabled, draw a disabled
1158 background before painting anything else.
1161 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1163 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
1164 forget to send a Leave event to the target window - just as .net does
1165 when cancelling dnd operations.
1167 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1169 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
1170 soon as possible - this happens when we send the drop message to the
1171 target window. This way we avoid firing any DragOver _after_ drop finished.
1174 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1176 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
1177 * Form.cs: Handle form minimization as a special state, where size doesn't
1178 change, but we have to fire SizeChanged.
1179 [Fixes bug #325122 for the win32 and x11 backends]
1181 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1183 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
1184 if the handle is disabled.
1187 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1189 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
1190 for forms with FormBorderStyle.None.
1193 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
1195 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
1197 [Fixes bug #346529 for the X11 backend]
1199 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1202 - Send a mouse Enter message after say dragging the mouse with a
1203 button down and then release it in another client.
1204 - Reset the cursor to prevent X11 from remembering it and setting it
1205 before the control gets WM_SETCURSOR.
1206 - Qeueue a mouse move after a mouse enter like win32.
1209 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1211 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
1212 It's sent when the form gets moved, resized, closed.
1213 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
1214 [Fixes bug #359193 for X11]
1216 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1218 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
1221 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
1223 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
1224 group. Fixes the 1.1 build.
1226 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1228 * ListView.cs: Use display indexes for selection in Details view, as
1229 well as do the proper layout based on display indexes for that view
1232 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1234 * ListView.cs: Focused item information is now stored as a display
1235 index, and display indexes are used all over the place for selection,
1236 instead of ListViewItem.Index values, which doesn't give us enough
1237 information to modify the selection in groups mode, and was broken.
1239 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
1241 * Control.cs: Do not fire MouseDown if validation of the control has
1243 * Form.cs: Validate the form before closing.
1244 [Fixes bugs #330501 and #353310]
1246 2008-04-18 Andreia Gaita <avidigal@novell.com>
1248 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
1249 CreateWebBrowserSiteBase implementations
1250 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
1251 Style and TabIndex setters
1253 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1255 * ListViewGroup.cs: When returning the actual item count, return the
1256 proper count for default group.
1259 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1262 * ListViewGroup.cs: When calculating groups layout, get the actual
1263 number of items per group, since groups added to the group BUT not
1264 added to the ListView are just ignored, and can cause some nasty
1265 exceptions because of the lack of synchronization. Also for
1266 ListViewGroup don't use lazy initialization for items, since we
1267 the common scenario is to use it always - and it helps us to refactor
1268 and clean the .ctor overloads.
1270 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1272 * ListView.cs: When adding an item to a ListViewItemCollection
1273 belonging to a group (ListViewGroup.Items), don't generate a redraw if
1274 the added item hasn't beeen previously added to the ListView instance
1275 refered by the group, since it will be ignored. This should avoid some
1276 really nasty flickering.
1278 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1280 * ListView.cs: When accessing an item in a specific display
1281 position, use the helper method GetItemAtDisplayIndex, instead of
1282 direct access to the reordered_items_indices array. When doing layout
1283 for groups set the correct Items index for the display position (since
1284 in groups mode items don't have the same position as in Items
1286 * ListViewGroup.cs: Add a field to store the starting item number,
1287 which is later used when calculating the layout.
1291 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
1293 * Application.cs: Fixed ProductVersion to fallback to the assembly
1294 version. Fixes regression for bug #325413.
1296 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1298 * ListView.cs: New helper method to retrieve an item in a _specific
1299 display_ position (the items can be displayed in a different order
1300 than one of Items collection).
1301 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
1302 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
1303 specific display position (again remember that items can be sorted
1304 different than Items).
1306 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1308 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
1309 list and update it when the collection changes. We were recreating
1310 this several times per row paint and for every pixel the mouse moved
1312 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
1315 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1317 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
1318 list to use generics.
1319 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
1320 and remove unneccessay casts.
1322 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
1324 * DataGridViewBand.cs: Add internal way to set displayed variable.
1325 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
1326 * DataGridView.cs: Make sure we always keep track of Displayed
1327 rows and columns, and only draw things that are displayed.
1329 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
1331 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
1332 whether the key events are filtered or not. Introduced
1333 PreFilter() process for this purpose. This fixes atokx3/iiimx
1336 2008-04-16 Andreia Gaita <avidigal@novell.com>
1338 * HtmlHistory.cs: Implement Length property
1340 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
1342 * DataGridView.cs: Call EndEdit when a sort is performed so we take
1343 away the edit textbox. Refactor to reuse column sort code.
1345 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
1347 * MenuAPI.cs: Remove the code that save and restore capture status of
1348 grab_control, this fixes some Menu and Context menu bugs but maybe it can
1349 cause some others, I cant figure the possible problems of this patch but
1350 right now remove the code looks to be better than keep it. This patch fixes
1351 bugs #357638, #378721 and #379570.
1353 2008-04-12 Andreia Gaita <avidigal@novell.com>
1355 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
1356 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
1357 add missing properties and event handlers.
1359 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
1361 * ListBox.cs: Make sure the LargeChange we are setting is at least
1362 zero, to prevent an IOORE. [Fixes bug #379531]
1364 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
1366 * ComboBox.cs: Support item navigation by entering text. Firstly,
1367 in DropDownList mode, for each key-press select the next item
1368 starting with that letter.
1369 For other modes, when no item selected, on arrow-up/-down and open
1370 drop-down select the first item matching the text in the textbox.
1372 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
1374 * X11Keyboard.cs : Control.FromHandle() could return null
1375 in MoveCurrentCaretPos().
1377 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1379 * ListView.cs: When changing the size in VirtualMode, also Reset the
1381 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
1382 changing selection info for VirtualMode.
1385 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1387 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
1388 view, don't use LineLimit for the first item - use NoWrap *always*
1389 instead, since ListView.LabelWrap is not used for this view.
1392 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1394 * Binding.cs: Call UpdateIsBinding when setting control - probably
1395 Binding is already usable and we don't need to wait to check the
1396 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
1397 Created, just like 2.0 does.
1398 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
1400 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1402 * Binding.cs: Just realized we don't need to have a handler for
1403 BindingContextChanged, since this info should be now consumed directly
1404 in the BindingManagerBase. And also, the manager.IsBindingSuspended
1405 state info is checked directly, instead of caching it.
1407 * CurrencyManager.cs: IsSuspended should return always false if Count
1410 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1412 * Binding.cs: When calling PushData, return if manager.Count == 0,
1413 since we just don't have data to be read. Also, when setting the
1414 Control for binding, hook up some events to refresh the IsBinding
1415 state when BindingContext change or control gets created; use
1416 Control.IsHandleCreated instead of Control.Created check to set
1417 IsBinding state - we *actually* need to modify IsBinding when control
1418 is created, but we don't have any Created event, only HandleCreated.
1419 Fixes part of #349364.
1421 2008-04-11 Geoff Norton <gnorton@novell.com>
1423 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
1424 warping a null Caret.
1426 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1428 * DataGridView.cs: Implement row/column autosizing methods. Implement
1430 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
1431 * DataGridViewRowCollection.cs: Add an internal sorting method.
1433 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1435 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
1436 value in ListView drawing code.
1438 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
1440 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
1441 is clicked. Respect the user setting Cancel in FileOk.
1443 2008-04-11 Geoff Norton <gnorton@novell.com>
1445 * ListView.cs: Avoid setting and resetting control Width/Heights and
1446 calculate the final value and set it once. Prevents a feedback loop
1449 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1451 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
1454 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
1456 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
1457 Add some on-the-spot code, but it seems we don't need it.
1459 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1461 * Form.cs: Add method for DataGridView to trigger focus cues
1462 even when it handles the tab keypress.
1464 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
1466 * DataGridView.cs: More keyboard handling, tab, esc.
1467 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
1468 when at the beginning or end of the text in the text box.
1470 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1472 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
1474 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1476 * DataGridView.cs: Some fixups for showing and adding the edit control.
1477 * DataGridViewButtonColumn.cs: Implement ToString.
1478 * DataGridViewCell.cs: Size and position the control simultaneously.
1479 * DataGridViewTextBoxCell.cs: Use base to position control.
1481 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1483 * DataGridViewCell.cs: Fix up some formatting and painting code.
1484 * DataGridViewImageCell.cs: Implement some NIEX methods.
1486 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1488 * ToolStripItemCollection.cs: What moving an item from one owner
1489 to another, remove from source owner before adding to destination.
1492 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
1494 * PictureBox.cs: Call Load when ImageLocation is set.
1497 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
1499 * X11Keyboard.cs, XplatUIX11.cs :
1500 Implement over-the-spot mode (with some odd offsets).
1501 - set preedit position when caret is set.
1502 - Wrap XMoveResizeWindow() to move preedit position.
1504 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1506 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
1509 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1511 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
1512 and ScanTableIndex public, it fix compilations errors when compiling
1513 WinForms to generate keyboard layout resources.
1515 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
1517 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
1518 different element count than scan table. It prevents some errors in non
1521 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1523 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
1525 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
1527 * DataGridView.cs: Call OnContentClick.
1528 * DataGridViewCell.cs: Do a null check on ValueType instead
1530 * DataGridViewCheckBoxCell.cs: Implement.
1532 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1534 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
1536 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1538 * X11Keyboard.cs : Check XGetIMValues() return value in
1539 case it does not return input styles in some environment.
1541 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
1543 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
1545 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1547 * BindingContext.cs: Stub UpdateBinding method.
1549 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
1551 * X11Structs.cs : added couple of structs for XIM support.
1553 Release XIM in case it failed to create XIC.
1554 Use consts for XNblah string.
1555 Add support for IM style customization and XIC creation
1556 for preedit-position and preedit-callback.
1557 Right now use MONO_WINFORMS_XIM_STYLE environment variable
1558 (list of: over-the-spot | on-the-spot | root). Only root
1561 (redoing r99172 with fix.)
1563 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1565 * TreeView.cs: Center the checkbox a little better.
1567 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1569 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
1570 Apply very nice patch from Ernesto Carrea that simplifies our
1571 scrollbar drawing. [From bug #376146]
1573 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
1575 * TreeView.cs: Correct the location of the root node checkbox when
1576 ShowRootLines = false. Don't draw the root lines for the root node
1577 when ShowRootLines = false. [Fixes bug #377535]
1579 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1581 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
1583 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
1585 * MaskedTextBox.cs: Added missing attribute. Code formatting.
1586 * PageSetupDialog.cs: Added missing attribute. Code formatting.
1587 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
1588 * ImeMode.cs: Added missing field.
1589 * HtmlWindow.cs: Code formatting. Fixed line endings.
1590 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
1592 * HtmlHistory.cs: Code formatting. Fixed line endings.
1593 * HtmlDocument.cs: Code formatting. Fixed line endings.
1594 * ToolStripPanel.cs: Added missing IList implementation.
1595 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
1597 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
1599 * BindingContext.cs: Changed argument names to fix corcompare errors.
1600 * DataGridView.cs: Removed extra explicit interface implementation
1601 of IDropTarget. Code formatting.
1602 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
1603 * ComboBox.cs: Changed argument names to fix corcompare errors.
1604 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
1606 * GridColumnStylesCollection.cs: Changed argument names to fix
1607 corcompare errors. Removed extra tabs.
1608 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
1610 * Control.cs: Changed argument names to fix corcompare errors. Code
1611 formatting. Removed extra explicit IList implementation.
1612 * TextBox.cs: Changed argument names to fix corcompare errors. Code
1613 formatting. Use string.Empty instead of "".
1614 * GridItemCollection.cs: Changed argument names to fix corcompare
1615 errors. Code formatting.
1616 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
1617 corcompare errors. Code formatting.
1618 * ImageList.cs: Changed argument names to fix corcompare errors.
1619 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
1620 * DataGridViewRowCollection.cs: Changed argument names to fix
1621 corcompare errors. Code formatting.
1622 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
1623 * DataGridViewSelectedCellCollection.cs: Changed argument names to
1624 fix corcompare errors. Code formatting.
1625 * DataGridViewComboBoxCell.cs: Changed argument names to fix
1626 corcompare errors. Code formatting.
1627 * LinkLabel.cs: Changed argument names to fix corcompare errors.
1628 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
1630 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
1632 * BindingSource.cs: Changed argument names to fix corcompare errors.
1633 Removed extra explicit interface implementations.
1634 * DataGridViewSelectedRowCollection.cs: Changed argument names to
1635 fix corcompare errors. Code formatting.
1636 * ToolStripItemCollection.cs: Removed extra explicit interface
1637 implementation of IList.ReadOnly.
1638 * DataGridViewColumnCollection.cs: Changed argument names to fix
1639 corcompare errors. Code formatting.
1640 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
1641 * ListView.cs: Changed argument names to fix corcompare errors.
1642 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
1644 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
1646 * ListBindingHelper.cs: Changed argument names to fix corcompare
1648 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
1649 fix corcompare errors. Code formatting.
1650 * ToolStripPanel.cs: Removed extra explicit implementation of
1651 IDropTarget interface.
1652 * ListBox.cs: Changed argument names to fix corcompare errors. Code
1653 formatting. Removed extra tabs and spaces.
1654 * DataGridViewCellCollection.cs: Changed argument names to fix
1656 * Help.cs: Changed argument names to fix corcompare errors. Code
1658 * TabControl.cs: Changed argument names to fix corcompare errors.
1659 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
1661 * TableLayoutSettings.cs: Changed argument names to fix corcompare
1664 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1666 * ListBindingHelper.cs: When returning properties, only return those
1667 that are browsable. Also, don't do a linear search of the properties,
1668 but use the indexer of the PropertyDescriptorCollection class.
1670 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1672 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
1673 Dictionary containing the related (child) currency managers. Also,
1674 when setting DataSource, add datasource to our List if it is not a list.
1676 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1678 * PropertyGridTextBox.cs: Fix background color of the buttons.
1679 * PropertyGridView.cs: Make the entry less jumpy.
1681 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1683 * PropertyGrid.cs: Fix unused variable warnings.
1685 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
1687 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
1688 double-click. It expanded it once in the mouse down and then
1689 again in the double-click handler.
1691 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1693 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
1694 TypeConverter and UITypeEditors.
1696 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
1698 * Control.cs: Visibility should be set synchronously,
1699 so we must also redraw once it is and not rely on layouting or
1700 other code to repaint.
1703 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
1705 * DataGridViewCell.cs: Respect DataGridView.GridColor.
1707 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1709 * Control.cs: Invalidate when the alpha channel is less than 255,
1710 not only when control is transparent.
1712 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1714 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
1715 Implement some painting convenience methods that threw NIEX.
1717 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
1719 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
1720 * DataGridViewLinkCell.cs: Implement.
1722 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1724 * GridEntry.cs: Report the conversion exception error description.
1727 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
1729 * PropertyGridView.cs: Do not scroll to item on resize.
1732 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1734 * BindingContext.cs: When retrieving a BindingManagerBase, if the
1735 dataSource parameter is ICurrencyManagerProvider, then return
1736 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
1737 instead of creating a new one.
1739 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1741 * BindingSource.cs: Implement support for Type instances as
1744 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1746 * DataGridView.cs: Minor cleanups and call CellMouseUp.
1747 * DataGridViewCell.cs: Make some painting routines internally virtual.
1748 * DataGridViewButtonCell.cs: Implement.
1750 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
1752 * Control.cs: We always need to invalidate our children with
1753 transparent backgrounds when we are invalidated.
1756 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
1759 and CancelCurrentEdit on CurrencyManager respectively. Implement
1760 support for ICancelAddNew too.
1762 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
1765 call EndNew/CancelNew if list is ICancelAddNew.
1767 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1769 * DataGridView.cs: Guard against an exception while painting
1770 if there are no rows.
1772 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
1774 * DataGridView.cs: Implement a bunch of keyboard commands.
1776 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
1778 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
1779 isn't set, don't call OnPaint. [Fixes bug #375300]
1781 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1783 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
1784 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
1785 hookup the remaining events related to CurrencyManager, and fire
1786 OnListChanged also for the Clear () method.
1788 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1790 * BindingSource.cs: Use Current and Position implementations in
1791 CurrencyManager instead of using our own routines, since we need
1792 to be in synch with it. Count should NEVER return a -1 value, and
1793 also report ListChanged events for both simple IList data
1794 sources (manually) as well for IBindingList ones (by hooking up an
1795 event handler for it).
1797 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1799 * BindingSource.cs: Make one .ctor call the another, to avoid
1800 duplicate code. Add the CurrencyManager property, and also for AddNew
1801 throw the proper exceptions and show better error messages.
1803 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1805 * ComboBox.cs: Only adjust selectedindex if Handle has been
1806 created. Fixes failing test.
1808 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1810 * ComboBox.cs: Adjust selectedindex if we insert a new item
1811 above the current selectedindex in a sorted ComboBox.
1814 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1816 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
1819 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
1821 * DataGridViewTextBoxCell.cs: Implement stuffs.
1823 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1825 * TreeView.cs: Create the scrollbars even earlier to be
1826 double dog certain they are created before they are accessed.
1828 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1830 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
1832 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1834 * ScrollBar.cs: Create an internal safe Value setter so we
1835 won't crash if we try to set a value outside the min and max.
1836 * TextBoxBase.cs: Use safe value setter to guard against a
1837 potential NRE that is being reported by Reflector.
1839 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1841 * TreeView.cs: Create the scrollbars earlier in the constructor
1842 to attempt to guard against an NRE in SetTop in Reflector.
1844 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
1846 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
1847 DataGridViewRowCollection.cs: Do not scroll column and row headers,
1848 show messagebox on data format error, use column display index
1849 correctly, make sure HitTest supports new layout stuff,
1850 make sure scrollbars support new layout stuff.
1852 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1854 * XplatUIX11.cs : Patch by Doug Rintoul.
1855 For some IM engines, keypress events need to delay call
1856 to XPending() and XNextEvent() in the loop so that it
1857 does not mess the orders in XIM commit callback.
1858 Some KeyRelease events such as shift keys need to be
1859 processed both in the IM engine and winforms driver
1860 itself since winforms holds its own state check.
1862 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
1864 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1866 * X11Keyboard.cs, XplatUIX11.cs :
1867 add primitive support for XIM input support (preedit-
1868 nothing and status-nothing). It requires precise event
1869 capturing (XSelectInput/"filterEvents") and different
1870 call to XFilterEvent against root window.
1871 Get composed string and send dummy WM_IME_COMPOSITION.
1872 Free XIM and XIC instances in finalizer.
1874 (This first patch does not include suggested changes
1875 by Doug Rintoul. It will follow.)
1877 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1879 * DataGridView.cs: When binding to a property, if the property
1880 doesn't have a setter, set the column to readonly.
1883 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1885 * ComboBox.cs: Guard against NRE if an arrow key is hit while
1886 we aren't dropped down. Support Home/End in DropDownList mode.
1889 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1891 * TreeNodeCollection.cs: Don't increment count until we've
1892 saved our index to return.
1895 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1897 * Label.cs: Add padding to the label's AutoSize calculation.
1900 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1902 * ListBindingHelper.cs: Actually implement GetListName method.
1904 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1906 * BindingSource.cs: Throw the propert expceptions for some methods, as
1907 well as detect the list item type for Add method if DataSource is null.
1909 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1911 * DataGridViewCell.cs: I don't know why I commented this out,
1912 putting it back for now.
1914 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1916 * DataGridViewCell.cs: Remove storage for owning column, just
1918 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1919 * DataGridViewColumnHeaderCell.cs: If the header text has been
1920 explicitly set, return it.
1923 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1925 * DataGridViewRowCollection.cs: Disable row sharing when
1926 using data binding. Its a great feature, but lets work on
1927 getting DGV usable first before we worry about optimizations.
1929 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1931 * BindingSource.cs: When resetting our internal list, compute list
1932 item type information to be used for indirect list access. Also
1933 implement/tune some properties and methods related to the list access
1935 * ListBindingHelper.cs: Add a stub for GetListName method, used from
1938 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1940 * DataGridView.cs: If RowCount is increased while ColumnCount
1941 is zero, add a column. [Fixes bug #331649]
1943 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1945 * DataGridViewRowCollection.cs: When adding new rows for
1946 databinding, make sure they are place before the add row.
1949 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1951 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1952 instead of Index order.
1954 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1956 * DataGridView.cs: If columns are added by increasing ColumnCount,
1957 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1960 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1962 * DataGridView.cs: Turn off and on the "new row" when
1963 AllowUserToAddRows is toggled. When the handle is created,
1964 set current cell and selected cell/row/col.
1966 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1968 * ComboBox.cs: When navigating the drop down by keyboard, we
1969 need to scroll the list box if our selection moves out of the
1970 currently shown items. [Fixes bug #371990]
1972 2008-03-24 Luke Page <luke.a.page@gmail.com>
1974 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1975 on the control. Also now handles unicode compatibility characters and
1976 stores the unicode compatibility length on the stack. Fixes Bugs
1977 #355198 and #366436.
1979 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1981 * BindingSource..cs: Take into account DataMember when re-creating the
1982 List property, and also create a specific kind of list as needed.
1984 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1986 * ListBindingHelper.cs: Add a new case for GetList () method - when we
1987 get an empty IEnumerable, try to detect whether the datamember is
1988 valid or not for that type, if true, return null, and throw exception
1991 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
1993 * ComboBox.cs: Alt-Down should drop down the list, Esc should
1994 retract it. [Fixes bug #371989]
1996 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1998 * PropertyGrid.cs: Initialize the sorting button as pushed.
2000 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
2003 - Visually select the PropertyTab.
2004 - Filter Properties by Attributes properly.
2006 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2008 * MenuItem.cs: Remove menu item from parent when disposed.
2011 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2013 * ToolBar.cs: Don't reset layout_type if Dock = None.
2015 2008-03-21 Andreia Gaita <avidigal@novell.com>
2017 * UserControl.cs: Select the first available control when we get focus.
2020 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2022 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2023 the content if we are in edit mode. [Fixes bug #343964]
2025 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2027 * DataGridViewCell.cs: Fix border painting for column headers.
2029 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2031 * BindingSource.cs: When setting or resetting data source,
2032 use ListBindingHelper.GetList () method, since it will get the list in
2033 case datasource is IListSource.
2035 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2037 * DataGridViewCell.cs: Implement lots more stuffs.
2039 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2041 * PropertyGridView.cs, GridEntry.cs: Implement support for
2042 UITypeEditor.IsDropDownResizable.
2044 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2046 * DataGridViewCell.cs: Remove unused variables, improve how
2047 several of the property getters work.
2048 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
2049 get its size from the parent row/col.
2051 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2053 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
2054 user alters manually the PropertyTabs collection via the
2055 PropertyTabs property.
2057 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2059 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
2060 new tests for them to be sure to be compatible with .net.
2062 2008-03-20 Andreia Gaita <avidigal@novell.com>
2064 * WebBrowserBase.cs: Fix attributes, add events
2065 * WebBrowser.cs: Fix Padding signature
2067 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2069 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2071 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
2073 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
2074 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2075 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
2076 passes the new suite of tests for it.
2078 2008-03-18 Andreia Gaita <avidigal@novell.com>
2080 * WebBrowser.cs: Add missing attributes, missing Padding and
2081 DefaultSize properties, remove extraneous getters
2083 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2085 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
2088 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2090 * ComboBox.cs: Move resetting the selected index to keypress
2091 instead of textchanged. Changing the text programmatically
2092 should not trigger resetting the selected index. Fixes test.
2094 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2096 * ComboBox.cs: When the user types into the textbox, reset
2097 the selected index to -1. [Fixes bug #371672]
2099 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
2101 * FileDialog.cs: Support Control-A for selecting everything
2102 in an OpenFileDialog. [Fixes bug #371564]
2104 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
2106 * DataGridView.cs: When row/column visible/height properties
2107 change, invalidate. Take the NIEX out of InvalidateRow/Column
2108 etc. We don't support them yet, but we can just invalidate
2109 everything until we do support them. (Added MonoTODO). Set
2110 proper control styles.
2111 * DataGridViewRow.cs: Don't call PaintHeader if row headers
2114 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2116 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
2118 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
2120 * DataGridViewRow.cs: Only paint the white background in
2121 cell bounds, the row bounds extends past the cells if the
2122 grid width isn't as wide as the DGV.
2124 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
2126 * DataGridView*: Completely revamp the drawing to match the
2127 public API. Our grids now look better, and call all the
2128 appropriate methods and event to allow users to override
2129 the painting and do their own.
2131 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2133 * ListBindingHelper.cs: Implement 2.0 GetList methods.
2135 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2137 * DataGridView.cs: Implement BorderStyle.
2139 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2141 * FileDialog.cs: Apply patch from Andy Hume: Any time we
2142 are comparing attributes, make sure we only look at the
2143 one we are interested. These calls were failing if there
2144 were more than one attribute.
2147 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
2149 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
2151 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2153 * PageSetupDialog.cs: Stub EnableMetric.
2154 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
2155 * PrintPreviewDialog.cs: Add ProcessDialogKey,
2158 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2160 * MonthCalendar.cs: Remove unused variable.
2162 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
2164 * DataGridView*.cs: corcompare stuffs.
2166 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2168 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
2169 The savings aren't worth the extra code to fix the optimization.
2172 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2174 * ToolBar.cs: Always call base.Dock in the Dock override so that
2175 Control's layout_type gets reset correctly.
2178 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
2180 * X11Dnd.cs: End DnD operation also for the middle mouse button.
2182 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2184 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
2185 at the same time we do explicit ones, because we have to give all
2186 other controls on the container a chance to handle explicit ones
2187 first. If no one has an explicit mnemonic, then we can let the
2188 MenuStrip have a shot at implicit mnemonics.
2189 * MenuStrip.cs: Create an implicit mnemonic function.
2190 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
2191 mnemonics for MenuStrips.
2194 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
2196 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
2197 DataGridColumnStyle.cs: corcompare stuffs.
2199 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2201 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
2202 Details - This is needed after we added the bits to use any available
2203 column also for List and SmallIcon view.
2205 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2207 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
2208 at the proper place, not only when changing SelectedIndex and changing
2209 the selection using keys/mouse, as .net does.
2211 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2213 * ControlBindingsCollection.cs: Implement last 2.0
2214 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
2215 in the new 2.0 Add methods.
2217 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219 * ListBox.cs: When calling SelectedIndexCollection.Clear,
2220 return if no items are previously selected - this is done to avoid
2221 firing OnSelectedIndexChanged without need to do so. Also,
2222 when creating handle ensure that the focused item is visible (as
2225 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227 * ListBox.cs: Rewrote/refactored most of selection code. We require
2228 the following things in selection: a) keep selection sorted (both
2229 indices and items), b) SelectedIndices automatically detect the
2230 selection mode, c) SelectedIndex should be the first selected item
2231 index, d) Need to Focus/adjust scroll bar when selecting a new item,
2232 not only for SelectedIndex, which is specially important in Multi*
2233 selection modes. To achieve this we are moving the selection core to
2234 SelectedIndexCollection and make depend all selection modifications on
2238 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2240 * ToolStrip.cs: Enable implicit mnemonics for drop down
2241 menu strips. [Fixes part of bug #367692]
2243 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2245 corcompare - fix parameter names [stragglers].
2246 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
2247 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
2250 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2252 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
2253 was a mnemonic pressed as well as Alt. Also, if nothing handles a
2254 mnemonic, let the ToolStripManager have it even if it doesn't
2255 have a matching mnemonic.
2258 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2260 corcompare - fix warning about implicit implementation
2261 * ToolStrip.cs: Add IToolStripData interface.
2262 * IToolStripData.cs: Add.
2264 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
2266 corcompare - fix warning about implicit implementation
2267 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
2270 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2272 corcompare - fix parameter names [N-Z].
2273 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
2274 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
2275 PropertyManager.cs, RichTextBox.cs,
2276 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
2277 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
2278 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
2279 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
2280 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
2281 ToolStripContentPanel.cs, ToolStripDropDown.cs,
2282 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2283 ToolStripPanel.cs, ToolStripSeparator.cs,
2284 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
2285 UICuesEventHandler.cs, UpDownBase.cs.
2287 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2289 corcompare - fix parameter names [G-M].
2290 GridColumnStylesCollection.cs, GridItemCollection.cs,
2291 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
2292 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
2293 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
2294 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
2295 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
2297 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
2299 corcompare - fix parameter names [A-F].
2300 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
2301 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
2302 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
2303 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
2304 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
2305 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
2306 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
2308 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
2310 * GridEntry.cs: Do not convert not only if the types match,
2311 but also if the property type is assigneable from the value's
2315 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
2317 * PropertyGridView.cs:
2318 - Subscribe to the listbox only once and not everytime.
2319 - Update the textbox even if SetValue fails.
2320 - Close the listbox before calling TrySetValue just in case.
2323 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
2325 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
2327 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2329 * ListView.cs: Implement support for custom column width based on
2330 Columns collection (we were previously using this collection only
2334 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2336 * ListViewItem.cs: For Tile view, always set bounds for the first
2337 subitem (which is the main one), and also don't let Width be larger
2338 than ListView.TileSize.Width. Improve code readibility also.
2339 * ThemeWin32Classic.cs: When painting the ListViewItem instances
2340 in Tile view, _always_ use the NoWrap flag.
2343 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
2345 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
2347 * GridEntry.cs: For MS compitability make all child properties
2348 readonly if the parent is readonly. Ugh.
2349 [Fixes bug #365945 and #365944]
2351 2008-02-29 Andreia Gaita <avidigal@novell.com>
2353 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
2354 relative to the history
2356 2008-02-29 Andreia Gaita <avidigal@novell.com>
2358 * HtmlElement.cs: More handlers for mouse and key events
2360 2008-02-28 Andreia Gaita <avidigal@novell.com>
2362 * WebBrowserBase.cs: MouseClick sig changed.
2363 * HtmlHistory.cs: Implement history navigation
2364 * HtmlElement.cs: Add event handlers, and connect them.
2366 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
2369 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
2370 so that DisplayNameAttribute doesn't get ignored.
2371 - Check for ParenthesizeNameAttribute and parenthesize the Label.
2372 - Add support for PasswordPropertyTextAttribute
2373 * PropertyGridView.cs: Check if an entry is a password.
2374 [Fixes bugs #365589, #365586, #365588]
2376 2008-02-28 Andreia Gaita <avidigal@novell.com>
2378 * PropertyGridView.cs: Revert the message filtering change, as we
2379 need it to block after all. Remove block parameter, unnecessary.
2381 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
2383 * UserControl.cs: Better implementation of GetPreferredSize.
2384 First step to fixing bug #361441.
2386 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2388 * Binding.cs: Actually implement data binding support for
2389 classes implementing IBindableComponent.
2390 * ControlBindingsCollection.cs: Likewise.
2392 2008-02-26 Andreia Gaita <avidigal@novell.com>
2394 * PropertyGridView.cs: Use a message filter to check when to
2397 2008-02-26 Andreia Gaita <avidigal@novell.com>
2399 * Application.cs: Change the message_filters loop so a filter
2400 can be removed while looping.
2402 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
2404 * GridEntry.cs: Optimization in ToggleValue so that it caches
2406 * PropertyGridView.cs: An optimization so that the property isn't
2407 re-read twice for each StandardValue added to the drop-down menu.
2408 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
2412 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
2414 * Application.cs: Apply patch from Justin Cherniak to match
2415 MS better for ProductName, ProductVersion, and CompanyName.
2418 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2420 * Binding.cs: Actually implement 2.0 NullValue property. Also
2421 when changing the formatting related properties, only update the state
2422 if formatting_enabled is true (we don't mind otherwise).
2424 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
2426 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
2429 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2431 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
2432 of GetType on the current value as it uses reflection to
2433 determine the type. This fixes the case where the new value is
2436 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
2438 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
2441 2008-02-24 Luke Page <luke.a.page@gmail.com>
2443 * Line.cs, TextControl.cs: Implement offset x and y so that a
2444 document doesn't have to begin at (0,0) on the viewpoint.
2445 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
2446 bars and switches the text alignment (and therefore is now
2447 implemented for textbox). Fixes #321383.
2449 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2451 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
2452 properties. Also when changing FormattingEnabled update the control
2453 property -as .Net does-.
2455 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
2457 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
2458 * Binding.cs: Add stubs for the overloads of the Add method in
2461 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2463 * Binding.cs: PullData () returns a false value if we got an exception.
2464 Also when validating the control and we get an error, instead of
2465 setting the value of the previous one, cancel the event (tested in 1.1
2468 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
2470 * TreeView.cs: Make selected_node and highlighted_node internal.
2471 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
2472 to null when Nodes.Clear is called.
2475 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2477 * FontDialog.cs: Ensure that when the Font is set in code,
2478 all the gui pieces are updated accordingly.
2481 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2483 * TextRenderer.cs: Respect proposed size for MeasureString.
2484 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
2485 autosize, use a proposed width to force wrapping for long text.
2488 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2490 * TreeView.cs: Factor in checkboxes = false and state images in
2491 to HitTest. [Fixes bug #363360]
2493 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2495 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
2496 when drawing the selected range.
2499 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
2501 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
2502 ResizeRedraw control styles.
2505 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2507 * TreeView.cs: StateImages are basically custom checkboxes, so
2508 factor their size the same as real checkboxes when determining
2512 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2514 * MessageBox.cs: Make the message box wider if the form caption
2515 is longer than the text in the form.
2518 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2520 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
2522 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2524 * TreeNode.cs: Guard against an NRE when the parent's
2525 StateImageList hasn't been set.
2528 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2530 * SplitContainer.cs: Add SupportsTransparentBackColor and
2531 OptimizedDoubleBuffering control styles.
2534 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2536 * Application.cs: For the app data paths and the registry key paths,
2537 ensure they are created before returning them to the user.
2540 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2542 * Application.cs: Guard against an NRE in CompanyName and
2545 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
2547 * Application.cs: For CompanyName, ProductName, and ProductVersion,
2548 make sure we handle all three cases correctly: attribute is present,
2549 attribute is present but is an empty string, and attribute is not
2552 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
2554 * PropertyGridView.cs:
2555 - Fix a NRE that caused a test failure
2556 - Another performance improvement - cache the standard values
2559 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2561 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
2564 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
2566 * PropertyGridView.cs: Fix a big performance bug.
2568 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2570 * SelectionRange.cs: Apply patch from Andy Hume to make
2571 constructor behavior more accurate. [Fixes bug #362117]
2573 2008-02-19 Andreia Gaita <avidigal@novell.com>
2575 * Control.cs: Added a new flag is_disposing to track if the
2576 window is currently in the process of being disposed of.
2577 This is used so that, when firing visibility changes triggered
2578 by unparenting controls during Dispose, the control doesn't
2581 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
2583 * ComboBox.cs: Set height to preferred height when the handle
2584 is created. [Fixes bug #360862]
2586 2008-02-18 Andreia Gaita <avidigal@novell.com>
2588 * XplatUIX11.cs: Create FosterParent with border width at 0.
2589 With the previous value of 4, everytime a control got reparented
2590 from parent = null, it's location would be shifted right and
2591 down by 4, since these coordinates would be offset by the
2592 FosterParent's border width.
2594 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
2596 * Control.cs: During diposing firstly remove ourselfes from
2597 the parent and *then* destroy our handle, because removing
2598 ourselfes from the parent controls collection causes
2599 VisibilityChange, etc events, which require a handle and end
2600 up recreating the control.
2602 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
2604 * GridEntry.cs: Set expanded state before notifying that the
2605 expansion has taken place.
2606 * PropertyGridView.cs:
2607 - Set the propertygridtextbox text to the selected
2608 StandardValue before proceeding to setting it.
2609 - Scrolling bugfixes.
2611 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2614 - Fix ValueText to not return null.
2615 - Fix conversion error reporting to actually happen.
2616 * PropertyGridView.cs: Set entry only if the text has changed.
2619 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2622 - Fix handling of a null current value.
2623 - Swallow editor exceptions.
2626 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
2628 * PropertyGrid.cs: Clear current items first thing before
2629 repopulating subitems.
2631 - Handle null StandardValuesCollection.
2632 - Mark as not editable if there is no PropertyDescriptor and
2633 if the Converter cannot convert from string.
2634 [Part of fix for bugs #360666 and #358332]
2636 2008-02-15 Luke Page <luke.a.page@gmail.com>
2637 * MaskedTextBox.cs: Now skips non editable characters after a
2638 character has been entered and we are progressing to the next
2639 position in the MaskedTextBox.
2641 2008-02-15 Luke Page <luke.a.page@gmail.com>
2642 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
2643 that it changes the selection rather than just repositioning the
2644 cursor. Fixes Bug #360873.
2646 2008-02-15 Luke Page <luke.a.page@gmail.com>
2647 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
2648 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
2649 correctly. See #359330
2651 2008-02-15 Andreia Gaita <avidigal@novell.com>
2653 * XplatUIX11.cs: If the handle is null when posting a message, use the
2654 current thread queue to post instead. Fixes #332409
2656 * SendKeys.cs: Slight optimization
2658 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
2660 * PropertyGrid.cs, PropertyGridView.cs:
2661 Fix multiple scrolling and sizing issues.
2664 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2666 * PropertyGridView.cs: Ensure that drop down editors are shown
2667 in the WorkingArea of the screen.
2670 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
2672 * GridEntry.cs: Fail silently when UITypeEditor is missing.
2675 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2677 * Binding.cs: Implement 2.0 DataSourceNullValue property.
2679 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2681 * PropertyGridView.cs:
2682 - Clear the controls in the drop down form after it is hidden.
2683 - Fix Width sizing of the dropdown editors to match MSFT.
2685 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2687 * PropertyGridView.cs:
2688 - Fix height for drawing the grid entry
2689 text value, so that it clips multiline text properly.
2690 - Fix unfocusing to match MSFT.
2692 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
2694 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
2695 Fixes a bug where on repopulation after value changed items become
2698 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2700 * Binding.cs: For the 2.0 profile, look for a
2701 'PropertyChanged' event in the target control, and add checks for
2702 DataSourceUpdateMode property to change -or not- the data source
2703 from validation/control property change.
2705 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
2707 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
2708 not compare struct with null in 2.0).
2710 2008-02-10 Luke Page <luke.a.page@gmail.com>
2712 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
2713 updates the provider and if not using a provider, uses the internal document
2714 class implementation of password char. Also when showing text, uses display string
2715 from the provider, instead of the actual text.
2717 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2719 * Binding.cs: Ooooops, forgot to take into account the data_source
2720 and binding_member_info null case (it was breaking the Binding tests).
2722 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2724 * Binding.cs: Implement support for data source changes exposed by
2725 'PropertyNameChanged' events, and update the control property as
2728 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2730 * Binding.cs: Implement 2.0 WriteValue method.
2732 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2734 Commit patch from James Purcell for better AutoScale implementation:
2736 * ScaleControl should call GetScaledBounds with the control's total size rather
2737 than client size. GetScaledBounds should handle ignoring the borders in its
2738 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
2739 (for the most part they just call the base code now since that is fixed).
2740 * Added ScaleChildrenInternal to allow controls to disable scaling of children
2741 without having to override ScaleChildren (since none of .NET's controls do).
2742 This is required for most controls in Mono that have scrollbars to prevent the
2743 scrollbars from being moved/resized.
2744 * Nested ContainerControls can have a different scale mode than their parent.
2745 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
2746 designer produce different results both of which look incorrect).
2747 * Default AutoScaleMode for ContainerControl should be Inherit.
2748 * Simplified workaround for ComboBox scaling issue.
2749 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
2750 1.0 style auto scaling should scale the whole control's size instead of
2751 ignoring the borders (except for Form) and the rounding is done differently to
2752 preserve control alignment.
2753 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
2755 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
2756 * CurrentAutoScaleDimensions should round the estimated character width instead
2758 * ListBox's GetScaledBounds should always use the height it was set to instead
2759 of the height that was passed in. This prevents rounding errors from
2760 accumulating quickly with IntegralHeight.
2763 2008-02-08 Andreia Gaita <avidigal@novell.com>
2765 * Form.cs: Add a null check (darn it).
2767 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2769 * MdiClient.cs: Make sure the requesting form actually owns the
2770 control menu items before removing them. Also, use
2771 Suspend/ResumeLayout when adding or removing items so we only
2775 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
2777 * Control.cs: Guard against an NRE in ShowFocusCues.
2780 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
2783 property, as well as stubbing DataSourceUpdateMode.
2785 2008-02-08 Andreia Gaita <avidigal@novell.com>
2787 * Form.cs: When closing forms, get focus back to the active control of the
2788 active form. [Fixes #341314, corner case]
2790 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2792 * MdiClient.cs: After we move the scrollbars, invalidate the NC
2793 area, so any old scrollbar artifacts are cleaned up.
2796 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2798 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
2799 for our menus, display that control box menu instead of the 1.1
2802 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2804 * MdiControlStrip.cs: Add property to access the mdi form tied to
2806 * MdiClient.cs: Be smarter about removing and adding toolstripitems
2807 to the implicitly merged menu. Every time we clicked the form, items
2808 were getting removed and the re-added, causing the form to jump around
2809 as the menu resized.
2811 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2813 * MdiClient.cs: Make sure the NormalBounds always gets set. It
2814 was being reset by the implicit menu merge for menustrips.
2817 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2819 * Form.cs: Don't do the previous change when WindowState = Normal,
2820 or it messes up where the window is placed. Fixes test failure.
2822 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
2824 * Form.cs: When becoming visible, if we are an MDI child, call
2825 SetWindowState with a dummy old_state so that changes will actually
2827 [Fixes the 2nd part of bug #325473]
2829 2008-02-07 Andreia Gaita <avidigal@novell.com>
2831 * Control.cs: Reset properties to their pre parent-change values in case
2832 the new parent == null (in which case we're basically removing the control,
2833 and don't want any events fired due to fake property changes)
2836 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
2838 * PropertyGridView.cs:
2839 - Refactor SetValue to allow setting the value
2840 when a custom editor is used, but the entry is not editable.
2841 - Remove the custom editor control on CloseDropDown.
2844 2008-02-06 Andreia Gaita <avidigal@novell.com>
2846 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
2847 reflection only on 1.1, this property is public on system.drawing on 2.0.
2850 2008-02-06 Andreia Gaita <avidigal@novell.com>
2852 * WebBrowser.cs: Do a normal page refresh by default.
2854 2008-02-05 Andreia Gaita <avidigal@novell.com>
2856 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
2857 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
2858 platforms. Fixes #359036
2860 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
2861 platform-specific flags.
2863 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2865 * Binding.cs: Add 2.0 BindableComponent property - just return control
2868 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
2870 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2871 Jonathan for this patch. Fixes #358442.
2873 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
2875 * Form.cs: If we change the active MDI child form, let the others
2876 know they need to repaint their title bar so it will appear inactive.
2877 [Fixes part 1 of bug #325473]
2879 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
2881 * PropertyGridView.cs: Do not trucate custom editors' width
2882 and align them to the left.
2883 [Fixes #358353 and #358349]
2885 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2887 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2888 Also fix the arguments passed to CollectionChangeEventArgs in the
2891 2008-02-04 Geoff Norton <gnorton@novell.com>
2893 * Hwnd.cs: The conversion to Quartz coordinates happens in
2894 System.Drawing. Removing this translation from here.
2896 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2898 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2899 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2900 GridItemCollection.cs:
2901 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2903 2008-02-04 Geoff Norton <gnorton@novell.com>
2905 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
2906 SYSKEYUP if any other key has been pressed in the mean time.
2909 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2911 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2912 when the item in current position is different than 0. Also, save the
2913 item index in the beginning of the operation, instead of getting the
2914 index of the item when the event is actually performed. Lastly clean
2915 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2919 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2921 * Form.cs: Alt-Minus for MDI children system menu should work
2922 with both the minus keys on the keyboard.
2925 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2927 * Control.cs: Don't invalidate on region change. The WM should
2928 take care of this automagically. Keeps us out of an infinite
2929 paint loop if someone changes the Region in the OnPaint.
2932 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2934 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2936 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2938 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2939 down the MonthCalendar only on F4, not Alt+F4.
2940 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2943 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2945 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2946 if its part of a DateTimePicker, else, use the back color.
2949 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2951 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2954 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2956 * CurrencyManager.cs: When we get a ListChanged event from our source,
2957 always fire our own ListChanged event, as .Net does.
2959 2008-02-03 Luke Page <luke.a.page@gmail.com>
2961 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2964 2008-02-03 Luke Page <luke.a.page@gmail.com>
2966 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2967 property. Removed if for richtext property that was always true.
2968 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2970 2008-02-03 Luke Page <luke.a.page@gmail.com>
2972 * TextBoxBase.cs - commited patch from James Purcell that
2973 correctly sets the FixedHeight control style when the MultiLine
2974 property is changed on a TextBox control. Fixes bug 358229.
2976 2008-02-02 Luke Page <luke.a.page@gmail.com>
2978 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2979 Fixes bug 351938 - caret is positioned correctly when drawn
2980 and when calculating textual position of caret, no longer
2981 has a NRE in certain situations.
2983 2008-02-01 Geoff Norton <gnorton@novell.com>
2985 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2986 get that region removed from the paint event.
2987 * XplatUICarbon.cs: Remove the window mapping after disposing of
2988 window. Prevents a crash with handle reuse. Optimize exposes
2989 only onto visible windows (rare; but possible).
2991 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2993 * UpDownBase.cs: Make sure the internal textbox calls the base's
2994 OnMouseDown and OnMouseUp so the textbox will function correctly.
2995 There were notes saying it doesn't chain up, but its an internal
2996 class, so our implementation may differ.
2999 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3001 * ListBox.cs: Fix a logic error and don't process MouseDown
3002 for mouse buttons other than Left.
3004 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3006 * Control.cs: Remove HeightInternal.
3007 * ListBox.cs: Commit patch from James Purcell that correctly
3008 calculates heights for ListBoxen.
3011 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3013 * Label.cs: Apply patch from James Purcell that corrects the
3014 signature of the AutoSize property.
3017 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3019 * ListBox.cs: Don't throw [Mouse]Click events for buttons
3020 other than the left mouse button.
3022 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
3024 * Control.cs: Remove my awesome optimization as it caused some
3025 regressions with control ordering. :(
3028 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
3030 * PropertyGridView.cs: Fix a NRE on double click when there is no
3033 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3035 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
3037 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
3039 * ListBox.cs: Call MouseClick and MouseDoubleClick.
3042 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3044 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
3045 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
3046 instead of Hwnd.bmp_g.
3048 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3050 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
3051 Use the Hwnd one instead.
3053 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3055 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
3057 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3059 * Form.cs: corcompare for RestoreBounds.
3061 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3063 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
3065 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3067 * Form.cs: Handle Alt-Minus for MDI children forms.
3068 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
3069 Add mnemonics to the control menu.
3072 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3074 * Binding.cs: Initial implementation bits of FormattingEnabled
3075 property and BindingComplete event (2.0).
3076 * BindingCompleteEventArgs.cs: Internal methods for setting error text
3079 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
3081 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
3082 table.Location. [Fixes bug #354672]
3084 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
3086 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
3087 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
3089 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3091 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
3092 of doing all the re-bound work, just invalidate and call SetControlText
3093 to set the updated text of selected item to our textbox.
3096 2008-01-28 Andreia Gaita <avidigal@novell.com>
3098 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
3099 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
3100 missing properties and methods. Add Load, Unload, Error, GotFocus,
3101 LostFocus, Resize, Scroll events (only load and unload are connected)
3103 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
3105 * AccessibleObject.cs: Modified argument names to match MS.
3106 * Button.cs: Modified argument names to match MS.
3107 * BindingContext.cs: Modified argument names to match MS.
3108 * BindingMemberInfo.cs: Modified argument names to match MS.
3109 * ButtonBase.cs: Modified argument names to match MS.
3110 * ComboBox.cs: Modified argument names to match MS.
3111 * Control.cs: Modified argument names to match MS.
3112 * CheckedListBox.cs: Modified argument names to match MS.
3113 * CommonDialog.cs: Modified argument names to match MS.
3114 * DataGrid.cs: Modified argument names to match MS.
3115 * CursorConverter.cs: Modified argument names to match MS.
3116 * ControlPaint.cs: Modified argument names to match MS.
3117 * CheckBox.cs: Modified argument names to match MS.
3118 * ControlBindingsCollection.cs: Modified argument names to match MS.
3119 * BindingSource.cs: Modified argument names to match MS.
3120 * DataFormats.cs: Modified argument names to match MS.
3121 * ContainerControl.cs: Modified argument names to match MS.
3122 * CurrencyManager.cs: Modified argument names to match MS.
3123 * Application.cs: Modified argument names to match MS.
3124 * ContextMenuStrip.cs: Modified argument names to match MS.
3125 * ContextMenu.cs: Modified argument names to match MS.
3126 * BindingManagerBase.cs: Modified argument names to match MS.
3127 * WindowsFormsSection.cs: Fixed line ending.
3129 2008-01-27 Andreia Gaita <avidigal@novell.com>
3131 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
3132 detecting that the dropdown toolwindow is hidden. EndLoop outside the
3135 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
3137 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
3138 MS. Code formatting.
3140 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3142 * Binding.cs: Don't avoid the Format event if the control
3143 property type is object. Also, if the value retrieved by
3144 the data source is null _and_ the control proeprty type
3145 is object, return Convert.DBNull (match .Net).
3146 Fixes part of #324286.
3148 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3150 * ListControl.cs: Since we are getting two BinginContextChanged events
3151 for the same binding context instance (when the control is added to
3152 form, and when the form is actually shown), take it into account only the
3153 first time for a given binding context instance.
3154 Fixes part of #324286.
3156 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
3158 * PropertryGridView.cs: Ops.
3160 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
3162 * PropertyGridView.cs: Close dropdown form if the owner form is
3166 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
3168 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
3169 RootGridEntry.cs, CategoryGridEntry.cs:
3170 PropertyGrid rewrite.
3171 - Rewrite all of the control logic in PropertyGrid.
3172 - Rewrite all of the ComponentModel logic in GridEntry.
3173 - Rewrite all UI work in PropertyGridView.
3174 - Many bugfixes, etc.
3176 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
3178 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
3179 when all contained controls are autosize or dock-fill. Also take into
3180 account when the total percentage of column/row sizes is not 100%.
3183 2008-01-24 Andreia Gaita <avidigal@novell.com>
3186 - Save a reference to the IDocument in the instance and
3187 use that one instead of going to WebHost.Document; the document that the
3188 WebHost returns might not be the right one (in case of frames).
3189 - Use the hashcode returned from the IDocument interface.
3190 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
3191 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
3192 LinkColor, Url, VisitedColor, Window
3195 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
3196 set_Attribute, NextSibling, Parent, TagName, AppendChild,
3197 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
3198 SetAttribute, Equals, equality operators.
3199 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
3200 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
3202 * HtmlElementCollection.cs: Change implementation to use a generic
3203 collection. Implemented Enumerator and CopyTo
3205 * HtmlHistory.cs: Add constructor, no implementation yet.
3207 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
3208 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
3209 Equals, equality operators.
3211 * HtmlWindowCollection.cs: Implemented.
3213 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
3214 has been deprecated).
3216 * WebBrowserBase.cs: Use Completed event to track document loading
3217 (Navigated has been deprecated)
3219 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
3221 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
3222 level MenuItems do not respect tabs.
3225 2008-01-23 Geoff Norton <gnorton@novell.com>
3227 * XplatUICarbon.cs: Ensure that windows are created in their initial
3228 FormWindowState. Finished fixing Fullscreen windows on Carbon
3230 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3232 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
3233 be used as grab_control. Also save status of capture before show ContextMenu
3234 and restore it after close.
3236 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3238 * Control.cs: Internal FindRootParent method added to return high control
3241 2008-01-23 Geoff Norton <gnorton@novell.com>
3243 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
3244 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
3245 it work again. Handle HITTEST events.
3247 2008-01-23 Geoff Norton <gnorton@novell.com>
3249 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
3250 a crash in certain cases. Support for fullscreen windows in certain cases.
3252 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
3254 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
3257 2008-01-23 Geoff Norton <gnorton@novell.com>
3259 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
3261 2008-01-23 Geoff Norton <gnorton@novell.com>
3263 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
3265 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3267 * SplitContainer.cs: Remove unused declarations.
3268 * Binding.cs: Remove unused declarations.
3270 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3272 * Form.cs: Remove unused declaration of 'active' in Activate method.
3273 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
3274 prevent compilation warnings.
3275 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
3276 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
3277 * Bindings.cs: Remove unused formatting_enabled declaration.
3278 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
3280 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
3282 * PropertyGridView.cs: Remove usused 'ex' declaration.
3283 * DataGridView.cs: Remove unused declarations.
3285 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3287 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
3289 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
3290 to Control class, it makes possible to grab menu to controls that can't
3291 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
3292 WmMouseMove removed since it was used only to track menu events.
3295 - Moved all active_tracker stuff from Form.
3296 - ProcessActiveTracker added to prevent code duplicity, now mouse events
3297 can call this method instead of reimplement all necessary code handle for
3299 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
3303 - Remove special handle to ToolStripOverflow, now we can grab menu to
3304 controls that can't reach Form using parent tree.
3305 - Change type of grab_control from Form to Control.
3307 2008-01-22 Geoff Norton <gnorton@novell.com>
3309 * TextBoxBase.cs: Split up the sizing of controls and placing of
3310 controls. Fixes a bug where scrollbars in Reflector could be sized
3311 wrong and have non-working thumbers.
3313 2008-01-23 Geoff Norton <gnorton@novell.com>
3315 * XplatUI.cs: Refactor environment variables to default support to the
3316 Carbon driver on the Mac.
3318 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
3320 * Label.cs: Uses new LabelPainter for drawing operations.
3321 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
3322 * Theme.cs: DrawLabel and LabelDefaultSize removed.
3324 2008-01-22 Geoff Norton <gnorton@novell.com>
3326 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
3328 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3330 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
3331 through the normal flat button code and don't draw the checkbox glyph.
3332 * Theme.cs: Button->ButtonBase signature change.
3335 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
3337 * LinkLabel.cs: Uses new class LinkLabelPainter.
3339 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
3341 * MessageBox.cs: Adjust right border space, we don't need to add
3342 "space_border*2" two times.
3344 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3346 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
3347 becomes a wrapper around Padding.
3348 [Fixes a part of bug #354676]
3350 2008-01-22 Geoff Norton <gnorton@novell.com>
3352 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
3353 acquired. Also ensure the buffer is large enough to grab the header
3354 we need on linux boxes.
3356 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
3358 * Control.cs: Implement a custom enumerator so people can delete
3359 from the Controls collection while in a foreach.
3362 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3364 * PropertyGridView.cs: Fix focusing behavior:
3365 - Tab should focus the grid text box.
3366 - Clicking on the labels shouldn't focus the grid text box.
3368 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3370 * PropertyGridView.cs: IsValueTypeGridItem should return true
3373 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
3375 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
3376 - Renamed GridEntry.SelectedObjects to TargetObjects to better
3377 reflect the property name role.
3378 - PropertyGrid.GetTarget is not required as the target is known
3380 - Setting values will handle value types as a special case now and
3381 populate them up in the chain.
3384 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
3386 * Hwnd.cs: Create a public property for the Graphics we keep around.
3388 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
3390 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
3391 when the current object selection changes.
3392 Fixes failing test SelectedObject_Null2.B5.
3394 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
3396 * PropertyGrid.cs: Process Browsable properties with
3397 DesignerSerializationVisibilityAttribute.Content as being expandable.
3398 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
3399 will not be expandable. We should be nested components-friendly now.
3401 2008-01-21 Andreia Gaita <avidigal@novell.com>
3403 * WebBrowserBase.cs: Check if control was loaded properly,
3404 don't bind if it wasn't.
3406 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
3407 GetElementFromPoint, equality operators, OpenNew, Write.
3408 Remove extra set_Body
3410 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3412 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
3413 that makes our AutoScale* stuff more tolerant to different orders
3414 of being set. [Fixes bug #354669]
3416 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3418 * PropertyGridView.cs, PropertyGridTextBox.cs:
3419 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
3420 [Fixes #339005 and #348209]
3422 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
3424 * PropertyGridView.cs: Hide the grid text box before adjusting it
3425 for the newly selected GridItem.
3428 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
3430 * Form.cs: Give MDI children the opportunity to cancel the parent form
3431 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
3432 properly for both the parent and child.
3433 * Application.cs: Signature of internal method changed, pass the previous
3437 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3439 * PropertyGridView.cs: Set the property value only if it has changed.
3442 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3444 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
3445 If the mouse hasn't actually moved, ignore these messages so the currently
3446 highlighted menuitem isn't reset to the one under the mouse.
3449 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
3451 * PropertyGridView.cs: When the property changes Invalidate the GridItem
3452 in order for the properties with UITypeEditor.GetPaintValueSupported == true
3453 to reflect the change visually.
3456 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
3458 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
3459 to 2.0 button drawing.
3460 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
3461 the button text is tall enough for one line. LineLimit says it will
3462 always draw at least one line, but it is a lie.
3465 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
3467 * XplatUIStructs.cs, X11Keyboard.cs :
3468 added some more VK_* keys to be handled.
3470 2008-01-16 Andreia Gaita <avidigal@novell.com>
3472 * Control.cs: Check if there is a container before setting or getting
3473 the validation flag.
3475 2008-01-16 Andreia Gaita <avidigal@novell.com>
3477 * ContainerControl.cs: Add flag to track if a control cancels validation,
3478 so we don't fire click events.
3481 - (HandleClick) Check if validation was cancelled before firing the click
3482 events (doubleclicks are fired, but not clicks)
3483 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
3484 ContainerControl.set_ActiveControl, but in the case of non-selectable
3485 controls, like a Label, activecontrol is not set.
3487 * ButtonBase.cs: Only fire clicks if validation passes.
3491 2008-01-16 Geoff Norton <gnorton@novell.com>
3493 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
3496 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
3498 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
3499 SelectedPath, just display the default dialog instead of crashing.
3502 2008-01-16 Geoff Norton <gnorton@novell.com>
3504 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
3505 AddExpose instead of trusting apples compositing manager which doesn't
3506 work for our use case. Remove some dead code causing warnings and
3507 redecorate some other code to prevent warnings.
3509 2008-01-16 Geoff Norton <gnorton@novell.com>
3511 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
3512 carbon signals us to redraw. Fixes another portion of the flickering bug
3514 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3516 * Form.cs: Prevent the MdiParent property to be set when value is the same
3517 as value already set. Fixes bug #328019.
3519 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3521 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
3522 it prevents NRE when closing mdi child windows. Fixes bug #325211.
3524 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3526 * InternalWindowManager.cs: Invalidade close button after mouse up when
3527 mdi form is prevented to close.
3529 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
3531 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
3532 thanks to Andy Hume. Fixes bug #325433.
3534 2008-01-16 Andreia Gaita <avidigal@novell.com>
3536 * LinkLabel.cs: Reset focused_index when resellecting the control.
3539 2008-01-15 Geoff Norton <gnorton@novell.com>
3541 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
3544 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3546 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
3549 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
3551 * ContainerControl.cs: Setting AutoScaleMode to anything should set
3552 Form.AutoScale to false.
3553 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
3554 AutoScaleBaseSize should be changed on Font change unless it has been
3558 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3560 * MenuAPI.cs: On instance of MenuTracker check if source control is
3561 ToolStripOverflow and use properly method to find form.
3564 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
3566 [Fixes bug #323241 Transparent toolbar support]
3568 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
3571 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
3572 defined in control style to mimic win32 behavior.
3574 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
3575 it will be transparent.
3577 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3579 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
3580 CreateParams for ToolBar controls.
3582 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3584 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
3585 FixedToolWindow, SizeableToolWindow, or None for border styles have
3586 different minimum sizes than regular forms. Implemented to fix
3587 regression in PDN with toolbox being too wide.
3589 2008-01-14 Andreia Gaita <avidigal@novell.com>
3591 * HtmlElementCollection.cs: Implemented
3593 * HtmlElement.cs: Implemented:
3601 * HtmlDocument.cs: Implemented GetElementsByTagName.
3603 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3605 * Screen.cs: Stub BitsPerPixel to always return 32.
3607 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3609 * Form.cs: Implement RestoreBounds.
3611 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
3613 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
3614 Sebastien and his fabulous magical problem-finding machine:
3615 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
3616 respect the value set.
3618 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
3620 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
3621 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
3623 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3625 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
3626 messages (to match .Net), we need to remove the capture ourselves.
3628 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
3630 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
3631 will process the message and close our window.
3634 2008-01-10 Geoff Norton <gnorton@novell.com>
3636 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
3637 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
3640 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3642 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
3645 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3647 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
3648 Linux doesn't care, having a minimum matches MS and keeps the window
3649 from becoming too small to use window decorations.
3652 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3654 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
3655 ShowFocusCues. Make focus rectangles fit the text instead of the whole
3656 control. [Fixes bug #325419]
3658 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
3660 * ComboBox.cs: Guard against an NRE if the user open a new form from a
3661 SelectedIndexChanged event. This closes the combobox dropdown, and we
3662 were trying to dispose it. [Fixes bug #352830]
3664 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3666 * Control.cs, Form.cs: Implement the necessary semantics for
3667 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
3668 to determine if a focus rectangle should be drawn.
3669 * PropertyGrid.cs: Fix property visibility to match override.
3670 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
3672 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
3674 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
3677 2008-01-09 Geoff Norton <gnorton@novell.com>
3679 * XplatUICarbon.cs: Scroll windows in the correct direction.
3681 2008-01-09 Geoff Norton <gnorton@novell.com>
3683 * XplatUICarbon.cs: Track all created utility windows so we can hide them
3684 when the app is deactivated or spaces is enabled.
3686 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
3689 extra separation pixel for the label rect origin if SmallImageList is
3690 null, and thus we don't need that separation between icon and label
3692 Patch by Ernesto Carrea.
3695 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
3697 * StatusStrip.cs: Invalidate after completing a layout. The base
3698 OnLayout does this, but we don't call the base.
3699 * ToolStripItem.cs: Revert the previous change to invalidate after
3701 [Fixes bug #351341 better.]
3703 2008-01-07 Geoff Norton <gnorton@novell.com>
3705 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
3706 not a notification to exit the application. Listen for WM_QUIT
3709 2008-01-07 Andreia Gaita <avidigal@novell.com>
3711 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
3713 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
3715 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
3716 so it can repaint at the correct location.
3719 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3721 * ListControl.cs: SelectedValue should return a null value if
3722 SelectedIndex is -1. Also, when setting it, it should throw an
3723 ArgumentNullException if the value is null, as well as taking
3724 into account the String.Empty value, instead of ignoring it (we have
3725 tests for that now).
3726 Fixes part of #324286.
3728 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
3730 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
3731 SelectionStart is updated after pressing enter. Fixes bug #351918.
3733 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3735 * TextControl.cs: Revert a piece r92316 that prevented the fix
3736 from working when there were multiple tags in the text box.
3739 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3741 * TextControl.cs: Apply patch from Luke Page that prevents an
3742 NRE when determining the beginning of a paragraph.
3745 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3747 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
3748 caret gets moved with clicking away from a selected block of
3749 text. Fixes bug #351885.
3751 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3753 * TextControl.cs: Apply patch from Luke Page that takes line
3754 alignment into account for mouse selection, so that center and
3755 right aligned text can be selected.
3758 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3760 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
3761 issues after loading an RTF file by using the correct line feeds.
3764 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
3766 * TextControl.cs: When deleting multiple line selections, we need
3767 to invalidate every line beginning at the first line of the selection.
3768 Patch from Luke Page fixes bug #351791.
3770 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3772 * ListControl.cs: When getting a CurrencyManager.PositionChanged
3773 event, don't set SelectedIndex if the number of items is 1. This is
3774 because, for the first item, PositionChanged is fired _before_
3775 ItemChanged (the place where we actually populate the items), and
3776 leave us in a temporary invalid state (since items collection is
3780 2008-01-04 Geoff Norton <gnorton@novell.com>
3782 * XplatUICarbon.cs: Create native toolwindows instead of
3783 the managed drawing ones.
3785 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3787 * LineTag.cs: If the line doesn't have any characters, return
3788 0 for GetCharIndex. Fixes an AOORE exception after certain
3789 caret movements. Fixes bug #351683. Patch by Luke Page.
3791 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3793 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
3794 is hit when there is selected text, only the selected text gets
3795 deleted, not the character in front of the selection as well.
3798 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3800 * ComboBox.cs: When the values are displayed, calculate the
3801 ComboListBox scrollbar's LargeChange based on the visible area's
3802 height and the actuall ItemHeight, instead of calculating it
3803 based on MaxDropItems value, since it's not used by our _current_
3807 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3809 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
3810 Patch from Luke Page that fixes issues with font colors and styles
3811 not showing up in a readonly RichTextBox. Fixes bug #324354.
3813 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
3815 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
3816 from Luke Page. This one fixes bug #349926.
3818 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3820 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
3821 an item in the IBindingList source changes with
3822 ListChangedType.ItemAdded. Ignore for now firing the event for other
3823 changes, since we want to have tests for those cases as well.
3825 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3827 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
3830 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3832 * TextBoxTextRenderer.cs: Implement a cache for measuring each
3833 character. This is effective because the typical usage of a
3834 TextBox is with a limited amount of fonts and characters, and
3835 the current implementation of TextBox measures everything one
3836 character at a time. Another second or two speedup for bug #347238.
3838 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3840 * Control.cs: Rewrite the Font getter to only query the parent's
3841 Font property once instead of twice. Since this operation is
3842 recursive, the queries were growing exponentially as the control
3843 tree got deeper. Another second or two speedup for bug #347238.
3845 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
3847 * Control.cs: Avoid setting a parent (and more importantly, updating
3848 the zorder of all its children) if the parent is already correct in
3849 WmShowWindow. Decreases the startup time of the test case on bug
3850 #347238 from 35 seconds to 11 seconds.
3852 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3854 * X11Dnd.cs: When the dnd operation has started and we are
3855 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
3856 This is done to match .Net, which doesn't send those messages after
3857 dnd operation was completed/cancelled.
3860 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3862 * ToolStrip.cs: Previous change should be != null, not == null.
3865 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3867 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3868 user may have moved the mouse off the current item during the event.
3870 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3872 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3873 calling GetItemAt for every MouseMove event by also taking into
3874 account whether any mouse button is pressed (probably dragging);
3875 if so, we can call GetItemAt, and if not, try to not call it
3876 (GetItemAt can be quite expensive when used with a large number of items).
3878 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3880 * ListView.cs: Implement -finally- support for dnd, by calling
3881 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3883 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3884 simple calculation of distances for all the items in the owner
3887 2007-12-21 Geoff Norton <gnorton@novell.com>
3889 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
3890 for windows that are originally created as invisible. Fixes missing
3891 main window in paint-mono.
3893 2007-12-21 Geoff Norton <gnorton@novell.com>
3895 * XplatUICarbon.cs: Register our D&D handler. Register our custom
3896 subclass handler for com.novell.mwfview subclassing HIView. Implement
3897 Pasteboard and Dnd methods.
3899 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3901 * ListBox.cs: When we got focus, give focus to first item if there
3902 wasn't any pervious focused item. Also update navigation to depend on
3903 SelectedIndex rather than FocusedItem, just as .Net does.
3906 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3908 * ListBox.cs: Both FindString and FindStringExact methods must do an
3909 case insensitive search, should allow the last valid index to be
3910 passed in the overload taking an initial index, and should also
3911 continue searching from the top back to the specified index when it
3914 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3916 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3917 redraw issue, and allows RichTextBox to draw colored text even while
3918 disabled or readonly.
3920 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3922 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3923 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3924 and doesn't grey text in a disabled RichTextBox.
3926 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3928 * RichTextBox.cs: Apply patch from Luke Page that adds better support
3929 for many RTF commands: quad alignment, separate formatting for blocks
3930 inside groups, and ParDef support. Makes the test case from bug #324589
3933 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3935 * LineTag.cs: Fix an error in the new Draw method that caused
3936 a crash when rendering the document on bug #324589.
3938 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3940 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3941 TextControl.cs: Apply patch from Luke Page that adds support
3942 for URL links in RichTextBox.
3943 [Fixes enhancement #342516]
3945 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
3947 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3948 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3950 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3952 * ListBox.cs: When a key gets pressed, try to find a string
3953 if the key is a character or a digit.
3956 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3958 * TableLayoutPanel.cs: Remove some unused variables.
3960 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3962 * DateTimePicker.cs: Commit patch from Luke Page that ensures
3963 we don't end up at an invalid date when we click the up/down
3964 spinner to change the month or year. Fixes bug #348682.
3966 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3968 * Application.cs: Calling Exit in 2.0 should chain to the
3969 Exit (CancelEventArgs) version so it can be cancelled.
3970 * Form.cs: Create a flag to allow raising the Closing
3971 events to be skipped. We raise them once in Application.Exit
3972 and don't want to raise them again when the Form is actually
3973 closed. [Fixes bug #349073]
3975 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
3977 * ToolStripDropDown.cs: Guard against an NRE when there
3978 hasn't been a mainform set in the application context.
3981 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3983 * ListBox.cs: When SetBoundsCore gets called, besides
3984 calling UpdateScrollBars, update the value of
3985 last_visible_index, since we could need to show more items
3986 than before, and we need to let the paint routines know that.
3989 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3991 * ListView.cs: Add DesignerSerializationVisibility attribute to
3992 InsertionMark property.
3993 * ListViewItem.cs: Add same attribute to Position property.
3995 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3997 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4000 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
4002 * ThemeWin32Classic.cs: Don't draw the background on a
4003 flat button if there is a background image.
4006 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4008 * ListBox.cs: If we remove the item currently selected,
4009 remove it not only from SelectedItems, but also
4010 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
4011 the items count decreased and focused_item has bigger value than that.
4013 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4015 * Control.cs: Perform our layout after we resize ourselves
4016 if we had to adjust our AutoSize. Missed commit for bug
4019 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4021 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4022 we can provide an implementation of AutoSize.
4025 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4027 * ListBox.cs: Add the internal overload Sort (bool paint),
4028 to indicate whether we actually need a paint or we will
4029 call Refresh ourselves. This way we don't request a paint
4030 _before_ having an updated and valid layout.
4033 2007-12-12 Andreia Gaita <avidigal@novell.com>
4035 * XPlatUIX11.cs: Send paint messages when updating a systray icon
4036 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
4037 properly invalidated.
4040 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4042 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
4043 don't simply assign it to our internal group field, but instead
4044 use our Group property, which should do all the neccessary work
4045 required to support groups. Fixes an issue reported to me (mail) by a
4046 guy using this new feature.
4048 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
4050 * Control.cs: Use Scale instead of ScaleControl to ensure the
4051 whole hierarchy gets scaled.
4054 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4056 * DateTimePicker.cs: Don't set the internal MonthCalendar's
4057 Parent property. Doing this causes the control to be hosted by
4058 the Form instead of being a popup window.
4061 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4063 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
4064 at an index higher than Count, just use Add instead of Insert.
4067 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4069 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
4070 DrawPictureBox, this is handled by Control.PaintBackground.
4073 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
4075 * MenuAPI.cs: When process menu keys return true by default only if menu is
4076 active. Fixes bug #342892.
4078 2007-12-09 Andreia Gaita <avidigal@novell.com>
4080 * Control.cs: check if windows are actually mapped before
4081 trying to zorder. Fixes #342509, #346955
4083 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4086 * ListViewInsertionMark.cs:
4087 * ThemeWin32Classic.cs: Implement the drawing side of the
4088 new 2.0 ListView.InsertionMark property.
4090 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
4092 * CurrencyManager.cs: Silence some debug spew.
4094 2007-12-07 Geoff Norton <gnorton@novell.com>
4096 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
4097 masks for our children as well as siblings to avoid having to query
4098 Quartz for this information.
4099 * XplatUICarbon.cs: Implement a delegate based system to pass
4100 information to System.Drawing. Implement Async methods. Remove
4101 the hack for the resize thumb and imlpement a transparent Grow Box.
4102 Rework the messaging system to proplery create window's and messages,
4105 2007-12-06 Andreia Gaita <avidigal@novell.com>
4107 * X11Keyboard.cs: Use Xutf8LookupString to support international
4108 characters under alternate codepages. Patch from #340878
4110 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4112 * ListView.cs: When doing layout computations, set position in the
4113 ListView instances (we cache the position just as .Net does).
4114 * ListViewItem.cs: New internal setter method for Position. Also set
4115 position field as also available in 1.1, since we are going to use it
4116 now in the common case.
4118 2007-12-06 Andreia Gaita <avidigal@novell.com>
4120 * Control.cs: When removing controls, get the actual container
4121 to notify about active control changes. Fixes 341314.
4123 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4125 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
4127 2007-12-05 Andreia Gaita <avidigal@novell.com>
4129 * Control.cs: When updating the zorder, ignore windows that are not
4130 mapped. Fixes #342509
4132 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4134 * ListViewItem.cs: Actually implement serialization on this class.
4136 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
4138 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
4139 LinkCollection. Spaces to tabs, and removed extra tabs.
4141 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4143 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
4144 tests to fail (hopefully).
4146 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4148 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
4149 the image margin so custom renderers can correctly place it.
4151 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4153 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
4154 so custom renderers can correctly place it.
4156 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
4158 * Application.cs: Let WM_CHAR messages flow through to controls
4159 hosted in Strips. [Fixes bug #343972]
4161 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
4163 * ToolStripManager.cs: Guard against an NRE I ran into.
4165 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
4167 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
4168 a Link is manually added to the Links collection, we need to set
4169 its owner, so it can invalidate properly.
4172 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4174 * ListView.cs: When changing ListViewItem.Position (which calls
4175 ListView.ChangeItemLocation), invalidate not only the area
4176 corresponding to the main item, but also to the area occupied
4177 by the items being moved.
4179 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4181 * ListView.cs: When changing the position of a given item,
4182 don't use item bounds, but item areas (which includes the item spacing
4183 between them). Also, use first/last position if the requested
4184 position is outside bounds (as .Net does). Invalidate the previous and
4185 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
4186 in a specific position, instead of directly accessing Items collection
4187 (this is done to get the right item - remember an Item can have a
4188 different position in the grid than in the Items collection).
4190 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4192 * MessageBox.cs: Calculate text area instead of just top left, this rect
4193 area will be used in DrawString. Fixes bug #343364.
4195 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4197 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
4198 screen width. Partially fixes bug #343364.
4200 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
4202 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
4203 code inside recalculate, it makes code more simple.
4205 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
4207 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
4208 between update or add icon. Fixes bug #324344.
4210 2007-11-21 Andreia Gaita <avidigal@novell.com>
4212 * XPlatUIX11.cs: Do not treat tool windows as if they have no
4213 window manager, since that stretches the drawing area to include
4214 the window decorations, and they get hidden. Reverts r84444 and fixes
4215 #335849 and #342790 (mdi and pdn3 regression)
4217 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4219 * ListView.cs: When setting focused item, try to give focus to the
4220 previous one _only_ if the previous one remains valid.
4223 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
4225 * Application.cs: Revert r89650, as it broke a common case to fix
4226 an obscure case. Fixes bug #342606.
4228 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
4230 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
4232 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
4234 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
4235 alignment. [Fixes #324228]
4237 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
4239 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
4242 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
4244 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
4245 it prevent problems when empty captions. [Fixes #342141]
4247 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
4249 * Label.cs: Use Size instead of None. Fixes bug #342077.
4251 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4253 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
4255 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
4257 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
4258 but there isn't a MdiContainer.
4261 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
4263 * TextControl.cs: Don't recalculate document if the recalc_start and
4264 recalc_end hasn't changed.
4267 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
4269 * DataGridViewTextBoxCell.cs: Removed CWL.
4271 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4273 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
4275 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
4277 * TextControl.cs: Missed some code for bug 341534 to trigger a
4278 recalculation when the font changes.
4280 2007-11-16 Andreia Gaita <avidigal@novell.com>
4282 * Control.cs: When updating the zorder, check if the child to update is
4283 the same control that is set to always be on top (i.e., scrollbars), and
4284 just put it on top directly. Fixes BadMatch error on pdn3
4286 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4288 * ListView.cs: Throw the needed exceptions for FindNearestItem.
4290 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
4292 * Control.cs: Don't perform a new layout when a label changes its text,
4293 cause label handles its own autosizing.
4296 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298 * ListView.cs: Implement 2.0 FindNearestItem methods.
4300 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4302 * ToolStripPanel.cs: Make Join at least add the control to the panel,
4303 even if the rest of what Join does isn't supported. Add some more
4304 support for vertical toolbars.
4305 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
4306 [Fixes the application breaking parts of bug #341998]
4308 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4310 * ToolStripItem.cs: When determining if we have a check/image margin,
4311 we need to look at ShowCheckMargin as well as ShowImageMargin.
4313 2007-11-15 Geoff Norton <gnorton@novell.com>
4315 * XplatUIOSX.cs: Rename to...
4316 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
4317 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
4319 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
4321 * KeysConverter.cs: The default values should be an array of Keys, not
4322 strings. Also, the array has more values for 2.0.
4325 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4327 * Application.cs: Change ExecutablePath to use
4328 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
4331 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4333 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
4334 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
4335 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
4336 be ignored. Create a new GetLineEnding that can specify which types of
4337 line endings to look for. On Insert, only create new lines for \n and \r\n.
4340 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
4342 * TextBoxBase.cs: As we loop through each line changing the font, tell
4343 the document that the line needs to be recalculated. Fixes bug #341534.
4345 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
4346 [Another round of refactoring]
4347 * Line.cs: Add DeleteCharacters.
4348 * LineTag.cs: Add Delete.
4349 * TextBoxBase.cs: Update to use new methods.
4350 * TextControl.cs: Refactor the Delete* methods.
4352 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
4354 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
4355 the patch. [Fixes #324856]
4357 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4360 * ListViewItem.cs: Add an initial implementation of
4361 2.0 ListViewItem.Position getter.
4363 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4365 * ListView.cs: Add a reordered_items_indices array, to allow us
4366 to have a different sorting than that of Items (the sorting in Items
4367 could not match the actual sorting in screen). This is needed to
4368 implement a pair of 2.0 features.
4369 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
4370 actual position in the ListView grid, since it could have a position
4371 different than its Index (position in ListViewItemCollection).
4373 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
4375 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
4376 not draw partial lines.
4377 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
4378 LineLimit flag from the base is preserved.
4379 Fixes the windows part of bug #338965.
4381 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
4383 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
4384 so that it can be canceled in KeyPress.
4387 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4389 * ListView.cs: In ItemControl, reset mouse-handling related
4390 fields even if we dont' have items (we still should reset them when
4391 we had items but then called Items.Clear). Partially based in a patch
4395 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
4397 * Application.cs: In ProductVersion first try AssemblyFileVersion
4398 before falling back to assembly version. Fixes bug #339787.
4400 2007-11-08 Andreia Gaita <avidigal@novell.com>
4402 * HtmlElement.cs: Implement InnerText setter.
4403 * WebBrowserBase.cs: Implement Navigated event support.
4404 Add flag to track when the browser "document" is ready to be retrieved.
4405 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
4406 Make sure browser document is ready before retrieving it.
4407 Clean up cached objects (document) when moving to a new page through
4408 any of the navigation methods.
4409 Use the new Mono.WebBrowser.INavigation interface to control navigation.
4410 Implement OnNavigated event.
4412 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
4414 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
4415 DrawLinkLabel, this is handled by OnPaintBackground.
4416 Fixes bug #339565, part II.
4418 2007-11-07 Andreia Gaita <avidigal@novell.com>
4420 * Control.cs: Revert r88915. Selecting text on a textbox depends on
4421 getting a Select call on click, so this call needs to be here for now.
4424 2007-11-07 Geoff Norton <gnorton@novell.com>
4426 * OSXStructs.cs: Add the kEventClassApplication constants.
4427 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
4428 application is deactivated otherwise Menu overlays linger on top of
4429 other application windows.
4431 2007-11-07 Geoff Norton <gnorton@novell.com>
4433 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
4434 dont support cursors yet anyways. This allows Reflector to run.
4436 2007-11-07 Geoff Norton <gnorton@novell.com>
4438 * XplatUIOSX.cs: Implement DragSize.
4440 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4442 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
4443 ItemControl, request the focus, as .Net does. This is needed after
4444 Control does not request focus anymore when it receives a
4447 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
4449 * Label.cs: Make DrawImage internal so it can be called from Theme code.
4450 Remove the DrawImage call from OnPaint.
4451 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
4452 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
4453 but before we draw the text for DrawLabel and DrawLinkLabel.
4456 2007-11-05 Andreia Gaita <avidigal@novell.com>
4458 * Control.cs: Remove select call on click. Fixes #325809
4460 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4462 * ListViewItem.cs: Add 2.0 Position property getter.
4464 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4466 * ListView.cs: Add 2.0 BackgroundImageTiled property.
4467 Also, to make it work properly, change item's BackColor and
4468 BackgroundImageLayout as needed.
4469 * ThemeWin32Classic.cs: Don't fill any background rectangle
4470 in ListView.ItemControl when drawing items; just let the Control
4471 base implementation fill it.
4473 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
4476 as well as adding a custom 'dummy' Converter, as .net does.
4478 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4480 * PropertyGridView.cs: When clicking drop-down button,
4481 select an index in the listbox only if our standard values collection
4482 has one or more items.
4484 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4486 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
4489 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4491 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
4492 the value is not changed. This ensure a pushed button remains in that
4493 state when clicked again. When switching the value of PropertySort
4494 between Categorized and CategorizedAlphabetical, do not update the
4495 grid items and do not fire a PropertyChangedEvent. When clicking the
4496 sorting buttons, do not modify the PropertySort value when switching
4497 between Categorized and CategorizedAlphabetical but only update the
4500 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4502 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
4504 * PropertyGrid.cs: Also put Categorized button in pushed state when
4505 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
4506 for help description label.
4508 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4510 * ListView.cs: When calculating the biggest item for a given column,
4511 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
4514 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
4516 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
4517 value for PropertySort on 1.0 profile. PropertySortChanged event
4518 should only be fired on 2.0 profile. Fixed NullReferenceException
4519 in UpdateSortLayout when PropertyGrid contains no items.
4521 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
4523 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
4526 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4528 * ListViewItem.cs: Implement 2.0 IndentCount property.
4530 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4532 * X11Dnd.cs: When sending status in a dnd operation, compare current
4533 effect with the 'allowed' field instead of 'drag_data.Allowed', since
4534 the later is only created when a Winforms application is both the
4535 source and the target, but not when we are the target only.
4536 Fixes part of #324251.
4538 2007-11-01 Geoff Norton <gnorton@novell.com>
4540 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
4542 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
4543 children out of the drawing view on mac.
4544 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
4545 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
4547 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4549 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
4550 on the non-hosted-control part of it shouldn't do anything.
4551 Fixes part of bug #327498.
4553 2007-11-01 Andreia Gaita <avidigal@novell.com>
4555 * WebBrowserBase.cs: revert previous change, resize can be called anytime
4557 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
4559 * Application.cs: When a toolstrip has the keyboard input loop, let messages
4560 it does not use flow through to controls that are hosted in menus.
4561 Same with mouse clicks.
4562 * Form.cs: Don't close all menus on click if the click is on a
4563 control hosted in a menu.
4564 Fixes part of bug #327498, and part of bug #325969.
4566 2007-10-31 Andreia Gaita <avidigal@novell.com>
4568 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
4570 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
4572 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
4573 Addresses an issue raised in bug #336218.
4575 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
4577 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
4578 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
4580 2007-10-30 Andreia Gaita <avidigal@novell.com>
4582 * ContainerControl.cs: Check if the active control is a
4583 child of a removed control and update active_control accordingly.
4586 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4588 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
4589 or the MaxDate. Fixed bug #337693.
4591 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4593 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
4594 after calling SetWindowLong for a form, to force an immediate NC refresh.
4595 Fixes first part of bug #325150.
4597 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4599 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
4600 simple. Fixes the last part of bug #322668.
4602 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
4604 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
4605 needs to be TopMost as well, or else the MessageBox is under the form.
4606 Patch by George fixes bug #325300.
4608 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4610 * X11Dnd.cs: When starting a new drag operation, reset the static
4611 'dropped' field to false (previously the implementation didn't reset
4612 it and got confused after the first drag).
4615 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4617 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
4618 items instead of re-creating them all. For this purpose we now cache
4619 both CategoryGridEntry items and the GridEntries for the main object's
4621 * GridItem.cs: Make SetParent method abstract.
4622 * GridEntry.cs: Override the SetParent method (already there, but now
4626 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4628 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
4629 depending on its depth (as .Net does). Update the needed values in
4630 MouseDown handler. Also draw the plus/minus rect after the label,
4631 so we don't draw on top of it.
4633 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
4635 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
4636 processed by forms or controls when menu is active. [Fixes #333548]
4638 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4640 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
4641 parent doesn't have focus. This was causing ToolStripTextBoxes to take
4642 focus on mouse over.
4644 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4646 * TextControl.cs: Code cleaning, simplifying.
4648 2007-10-24 Geoff Norton <gnorton@novell.com>
4650 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
4651 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
4653 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
4655 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
4656 the cap is maxvalue, not actually 0. [Fixes bug #336218]
4658 2007-10-24 Andreia Gaita <avidigal@novell.com>
4660 * SendKeys.cs: apply jpobst's patch to bug #332409
4662 2007-10-23 Andreia Gaita <avidigal@novell.com>
4664 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
4665 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
4668 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4670 * PropertyGridView.cs: If a property has an UIEditor available,
4671 make the drop-down/editor button available only if the property
4674 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4676 * PropertyGridView.cs: Don't make the grid item textbox
4677 editable when a drop-down control is available, but
4678 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
4679 true. The same bur the color of the grid item value's label.
4681 2007-10-22 Geoff Norton <gnorton@novell.com>
4683 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
4684 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
4685 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
4686 driver. Padd the bottom of all real windows so the resize thumb doesn't
4687 obscure scroll/status bars.
4689 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
4691 * WindowsFormsSection.cs: Implement.
4693 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4695 * MdiClient.cs: Maximize new active mdi child when a maximized child is
4696 closed see #325434 patch.
4698 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
4700 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
4703 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4705 * PropertyGridView.cs: When showing the textbox for a grid item,
4706 have two local variables to store the read-only and non-editable
4707 status of a grid item (we were previously using just one variable
4708 to do this, when actually they are slightly different).
4709 Fixes part of #325023.
4711 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4713 * PropertyGridView.cs: When showing a drop-down list, try to get the
4714 values using TypeConverter.ConvertTo (to convert to a string). Fixes
4717 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4719 * PropertyGrid.cs: When updating a property and populating sub grid
4720 items, remove the previous ones, and invalidate the specific area.
4721 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
4722 area behind a grid item.
4723 * GridItemCollection.cs: Add an internal Clear method, to allow us to
4724 clean the items if needed (specially for controls implementing
4725 ICustomTypeDescriptor and returning a variable number of properties).
4728 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
4730 * TextControl.cs: Clean up and document the Insert function.
4732 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4734 * TextControl.cs: Make sure we know our start point for updating the view
4735 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
4738 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4740 * ListView: Couple of corcompare fixes.
4742 2007-10-17 Geoff Norton <gnorton@novell.com>
4744 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
4745 the title caption of real window.
4747 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4749 * ErrorProvider.cs: Add the error provider's internal window to a
4750 containercontrol when the parent changes. [Fixes bug #329714]
4752 2007-10-17 Geoff Norton <gnorton@novell.com>
4754 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
4755 When we make a new window; restore the old active window - fixes dialogs.
4757 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4759 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
4760 when modifying a property, and if found then invalidate as
4762 Fixes part of #324865.
4764 2007-10-17 Geoff Norton <gnorton@novell.com>
4766 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
4767 highly experimental. Fixed coordinate translation. Fixed window locations.
4768 Initial support for clipping. Implemented NC areas and menus. Support for
4769 launching from command line from Will Johansson (wjohansson@atacomm.com).
4770 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
4771 wjohansson@atacomm.com)
4772 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
4773 Hwnds now track the existence of all of their children for Mac clipping.
4774 * XplatUI.cs: Re-enabled the native driver on the Mac.
4776 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
4778 * Line.cs: Move the InsertString function to here.
4779 * TextControl.cs: Cleanup some duplicate code, move some InsertString
4780 functionality to Line.
4782 2007-10-17 Geoff Norton <gnorton@novell.com>
4784 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
4786 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
4788 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
4789 always setting value to true.
4790 * Form.cs: When changing AcceptButton, notify new and original button.
4792 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
4794 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
4795 a custom control that implements IButtonControl instead of an actual
4796 button. [Fixes bug #334244]
4798 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4800 * Form.cs: Change SelectActiveControl to internal, we need to call it in
4803 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
4804 active control when activate a new mdi window.
4808 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
4810 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
4814 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4816 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
4817 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
4818 so we always recalculate the whole document instead of just the new part.
4821 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4823 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
4824 when the mouse was to the left of the first character in the line.
4826 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
4828 * TextBox.cs, TextBoxBase.cs: When setting the document's password
4829 character, use the property instead of the variable so that the
4830 UseSystemPasswordChar property is taken into account.
4833 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4835 * FolderBrowserDialog.cs: When a node is right clicked and the "New
4836 folder" contex menu appears, actually add the new folder to it, even
4837 if the node is not currently selected. Still use SelectedNode in case
4838 there wasn't found a node under the pointer.
4841 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4843 * ListViewItem.cs: When retrieving the focused state, the index check
4844 should be done only when ListView is in virtualmode, as it is an
4845 expensive check for normal mode.
4847 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4849 * ListViewItem.cs: Make the focus state information be stored
4850 in the ListView, not in the items. This is done to match the MS
4851 behaviour for items that are not yet part of a ListView control;
4852 besides that, since just one item can be focused at the same time,
4853 we save a little space in our items.
4854 Fixes part of #331643.
4856 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4858 * ComboBox.cs: When focus is lost, deselect the text. When setting
4859 text of control, select all text. Do not hide selection when control
4860 does not have focus. Fixes bug #333663.
4862 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4864 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4865 instead of ArgumentException when SelectionLength is set to negative
4866 value. Added same check to SelectionStart. Code formatting.
4868 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4870 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4871 or SelectionStart. Code formatting.
4873 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4875 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4876 indicating that there was not a previous drag-and-drop operation going
4878 Fixes part of #325071.
4880 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4882 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4883 AllowedEffect, don't let the drop operation happen.
4886 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4888 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4890 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4892 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4895 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4897 * Line.cs: Add a method that finds the tag that contains an x-coord.
4898 * LineTag.cs: Add a method that finds the character at an x-coord using
4899 a binary search, the old way was a linear search.
4900 * TextControl.cs: Change FindCursor to use the above new methods.
4902 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4904 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4905 value different than AllowedEffect). This should be possible to
4906 indicate that dragging is not possible in some control/area.
4908 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
4910 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
4911 descent internally when font changes instead of outside code being responsible
4913 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4914 instead of accessing internal variables.
4916 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
4918 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4919 remove special treatment for ArrangeIcons since it is already arranged.
4921 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4923 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4924 the Win32 backend uses Color.
4925 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4926 Refactor to store a Color instead of a Brush for Color.
4928 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4930 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4931 away. I didn't realize I needed this when I refactored these earlier.
4933 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4935 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4936 store a Color structure and use the ResPool for back color instead of
4937 holding onto brushes.
4939 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4941 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4944 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4946 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4947 to recalculate its size. Fixes a part of bug #331052.
4949 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4951 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4952 button. Fixes a part of bug #331052.
4954 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4956 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4958 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4962 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4964 * TextBoxTextRenderer.cs: Don't make this a static class, as static
4965 doesn't exist in 1.1. (Thanks jb!)
4967 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4969 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4970 class to allow us to use different backends on different platforms.
4971 Linux uses the current [Draw|Measure]String backend. Windows uses
4972 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4973 of GDI+. This leads to better looking text and more accurate measurements
4974 on Windows, fixing many of the reported issues.
4975 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4977 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4979 * FolderBrowserDialog.cs: When running on Windows,
4980 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4981 since we must match both "C:" and "C:\" forms. A little hackish, but
4985 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4987 * ListView.cs: When calling EndEdit (after editing an item),
4988 create a new instance of LabelEditEventArgs to keep clean the fields
4989 in case we get a new call to BeginEdit; also do Application.DoEvents
4990 to have focus in synch. This is a fix similar to TreeView's #325244.
4992 2007-10-07 Andreia Gaita <avidigal@novell.com>
4994 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4995 * WebBrowserBase.cs: Added dialog support, calling the
4996 WebBrowserDialogs classes for each specific dialog type.
4998 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5000 * ListView.cs: When the last item is focused and is removed,
5001 move the focus to the previous item (in Items order). This is what MS
5005 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5007 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5008 instead of the opposite (RemoveAt call Remove). This is a better
5009 approach since we don't need to to a pair of traversals when using
5012 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5014 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5015 check that the node actually has nodes, and if not, move to the
5016 parent node instead.
5019 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5021 * TreeView.cs: Move the previous change to the general case (to
5022 call Application.DoEvents in cases where the method was called by
5025 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5027 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5028 call Application.DoEvents. This is neccessary when we get a call to
5029 BeginEdit from an AfterLabelEdit handler, because the focus always
5030 goes to the TreeView, even if we try to give it to our
5031 LabelEditTextBox. The call do Application.DoEvents seems to
5032 synchronize the focus, basically.
5035 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5037 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
5038 should be false. This also removes some nasty recursive paths. Fixes
5041 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
5043 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
5044 state to normal. Also resize window when cascading. Fixes #325433.
5046 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5048 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
5049 DefaultForeColor, as drawing empty colored lines isn't very useful.
5050 [Fixes the not drawn lines part of bug #324358]
5052 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5054 * TextControl.cs: Move Line and LineTag classes into separate files to
5055 make things easier to find.
5056 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
5057 * RichTextBox.cs: Capitalize LineTag.Length property access.
5058 - This is purely an organizational/formatting change, no logic changed. -
5060 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5062 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
5065 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5067 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
5070 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5072 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
5073 prevent calling of OnBackColorChanged. Fixes #325321.
5075 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5077 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
5078 because control can be disabled because owner is disabled.
5080 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
5082 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
5083 string.Empty, test failed from previous change.
5085 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
5087 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
5088 is null, not String.Empty. See bug #323038.
5090 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
5092 * TextControl.cs: Change the margins to match MS a little better.
5093 Still not perfect for X11 due to some DrawString differences, but
5094 is still an improvement over the old stuff.
5095 Partially fixes #324467.
5097 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5099 * FolderBrowserDialog.cs: When using MyComputer as
5100 RootFolder, let absolute paths be considered as valid ones. Also, use
5101 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
5102 for Windows compatibility.
5103 Partially fixes #325247.
5105 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5107 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
5108 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
5109 method, since it causes the dialog to not select folders directly
5110 under the root path (when setting SelectedPath property).
5112 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5114 * TreeNode.cs: When calling Expand/Collapse and need to call
5115 ExpandBelow/CollapseBelow respectively, take into account
5116 partially visible nodes (previously Expanding/Collapsing
5117 a partially visible node in the bottom was not updating its +- sign).
5119 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5121 * TreeView.cs: When calling Expand on a TreeNode, and we need to
5122 expand nodes below (ExpandBelow), scroll the entire Viewport
5123 area if the node is above it and not visible (instead of scrolling
5124 the area from node's Bottom, which applies only when the node is
5128 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5130 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
5131 node in the bottom area (as .Net does). This is done to preserve the
5132 scroll position when ExpandAll is called before handle is created for
5133 the 1.1 profile (bottom area, as opposed to top area in 2.0).
5136 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5138 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
5139 bottom area if we are in fact not using the vertical scroll bar.
5142 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
5144 * Control.cs: Comment out a double buffering optimization that doesn't
5145 take into account invalidates created in OnPaint, causing the control
5146 to never be redrawn. It would take quite a bit of work to work around
5147 this, but I left it commented with an explanation for later possible
5151 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
5153 * Control.cs: Ask parent to perform a layout if control is AutoSize and
5155 * RadioButton.cs: Implement GetPreferredSizeCore.
5158 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
5160 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
5163 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
5165 * Application.cs: Move the sync context stuff to Run instead of RunLoop
5166 so that it doesn't get uninstalled on modal forms.
5167 * Control.cs: Install a sync context when a control is created.
5168 * WindowsFormsSyncronizationContext.cs: Create a private static control
5169 to invoke on. This is easier than trying to find a created control we
5173 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
5175 * Application.cs: Install a WindowsFormsSynchronizationContext in the
5176 run loop, and uninstall it when done.
5177 * WindowsFormsSynchronizationContext.cs: Implement.
5178 [Fixes the common case in bug #327608]
5180 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
5182 * DataGridViewCellCollection.cs: Added argument checks for indexers.
5183 Use case-insensitive lookup of column name in indexer. Code
5186 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5188 * TreeNode.cs: When collapsing or expanding a node, check whether its
5189 change will affect the visible area (we were previously doing a
5190 IsVisible check, but that check is not enough since children nodes
5191 could be still visible). Fixes part of #325266.
5193 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
5195 * TreeView.cs: Always select the first node when the TreeView gets
5196 focus if there is no currently selected node.
5199 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
5201 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
5202 node being selected is null.
5203 [Patch from Yves Bastide fixes bug #326858]
5205 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5207 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
5208 whether all the parent nodes are expanded.
5209 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
5210 call RecalculateVisibleOrder if all previous nodes are expanded.
5211 Before that we were doing a IsVisible check, but sometimes the node
5212 is not in the visible area, but _should_already be ready, because of
5213 all previous nodes are expanded. Fixes #325259.
5215 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5217 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
5218 portion of the item is clicked.
5220 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5222 * TextControl.cs: Do not tell the system to move the cursor if the
5223 textbox isn't focused. Fixes part of bug #322668.
5225 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5227 * ComboBox.cs: When there are no items, do not show the dropdown if
5228 the down arrow is clicked. Fixes part of bug #322668.
5230 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
5232 * ToolStripComboBox.cs: Manually set the size of this control in the
5233 constructor, as it doesn't seem to be the same as DefaultSize.
5234 Fixes a failing monobuild test.
5236 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
5238 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
5239 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
5241 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
5243 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
5244 Desktop. This lets it work for people who have moved their desktops
5245 from the default location on windows. For people who have not, both
5246 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
5248 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5250 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
5251 but when the base constructor sets this, the control is null. Set it
5252 again in the constructor. Fixes a failing monobuild test.
5254 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5256 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
5258 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
5261 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5263 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
5264 will handle it themselves.
5265 * ToolStripItem.cs: When deciding what the text of a tooltip should
5266 be, use the Text property instead of the text field.
5267 * ToolStripTextBox.cs: Handle tooltips.
5268 [Fixes bugs #325417 and #325973]
5270 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5272 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
5273 left click. Fixes the easy part of bug #325969.
5275 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
5277 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
5278 bug #325406, but set a minimum for StatusStrip to 22 to keep
5279 bug #325390 fixed. I think this minimum would have been figured
5280 up automatically if the grip was actually a ToolStripItem, but it
5283 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5285 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
5286 as this is apparently the actual value used by .Net. Also apply
5287 ItemPadding in Details view only, and decrease the general width padding,
5288 to have only the needed. This should fix #324340 in Windows too.
5290 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5292 * ListViewItem.cs: Don't Invalidate item if parent is inside
5293 a BeginUpdate/EndUpdate block. This prevents to have differences
5294 between the ListView and items state, as well as avoid some exceptions
5296 * ListView.cs: Make 'updating' field internal.
5298 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5300 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
5301 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
5302 size if appropriate.
5303 Fixes reopened bug #325414.
5305 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5307 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
5308 * ToolStripItem.cs: Invalidate before and after our new autosize when
5310 Fixes reopened bug #325390.
5312 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5314 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
5315 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
5318 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
5320 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
5322 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5324 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
5325 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
5328 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
5330 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
5331 item to select when the ToolStrip is selected.
5332 * ToolStripControlHost: Realign the control when the bounds or visibility
5334 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
5335 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
5337 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
5338 base.OnPaint. Was causing text not to be drawn.
5340 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
5342 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
5344 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5346 * TreeView.cs: When creating the label edit text box,
5347 set is initially to Visible = false. This is done to
5348 prevent a confusion in the layout which makes it to lose
5349 focus when shown the first time. Fixes part of #82592.
5351 2007-09-13 Andreia Gaita <avidigal@novell.com>
5353 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
5355 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5357 * ToolStrip.cs: Take Margin into account when calculating preferred
5358 size. Also, allow preferred size to get smaller than the explicit
5360 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
5361 First step towards fixing bug #82747.
5363 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5365 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
5366 full row select background over the plus/minus glyph. Also, turn
5367 off the focus rectangle for full row select since MS doesn't seem
5368 to ever paint it. [Fixes bug #81839]
5370 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5372 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
5373 This was causing keyboard opened dropdowns to lose focus.
5376 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5378 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
5379 ClientRectangle instead. [Fixes bug #82838]
5381 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
5383 * SplitContainer.cs: We can't reset Visible on every layout because
5384 someone may have set Visible = false explicitly on a SplitterPanel.
5385 Make sure when we switch orientation the SplitterDistance does not
5386 change. Fixes two failing tests.
5388 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5390 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
5391 TextRenderer, since the latter is only available in 2.0.
5393 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
5395 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
5396 * SplitContainer.cs: Implement FixedPanel layouting.
5398 2007-09-12 Andreia Gaita <avidigal@novell.com>
5400 * WebBrowserBase.cs: setup shutdown routine
5402 2007-09-12 Andreia Gaita <avidigal@novell.com>
5404 * Application.cs: Let keyboard events that are targetted
5405 to non-mwf windows hosted inside mwf (as in, webbrowser),
5406 propagate properly. Fixes keyboard handling on the webbrowser.
5408 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5410 * ListView.cs: When handling MouseUp event and we are
5411 highligting a node with the mouse right button, don't trigger
5412 Before/AfterSelecting event, since we are not actually selecting
5415 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5417 * TreeView.cs: When editing a node, modify the edit text box
5418 depending on the text length (as you are typing), like MS does.
5420 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5422 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
5423 Override GetPreferredSizeCore to perform calculations. Remove custom
5424 autosize logic. [Fixes bug #82739]
5426 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
5428 * TextBoxBase.cs: Modified should default to false.
5430 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5432 * Control.cs: Update the anchoring distances even when layout is supspended.
5433 Patch provided by George fixes bug #82805.
5435 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5437 * Control.cs: Provide a setter for ExplicitHeight.
5438 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
5439 remove the hacks in here for requested_height.
5442 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5444 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
5445 Maximum to lower that its current Value caused an ArgumentException by setting
5446 the Value to the new Maximum.
5448 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5450 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
5451 handle moves to the closest tick when it is being dragged.
5454 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
5456 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
5457 can't let them count as real items when calculating where to merge in the
5458 user's items. [Fixed bug #82786]
5460 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5462 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
5463 who want to add a menu item directly onto a toolstrip.
5464 [Fixes bug #82775, part II]
5466 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5468 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
5469 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
5470 don't set it to available.
5471 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
5472 [Fixes bug #82727, part II]
5474 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5476 * StatusStrip.cs: Change item placement to None if not visible.
5477 * ToolStripItem.cs: Invalidate when InternalVisible changes.
5478 These should have been committed to fix 82723, but I missed them.
5480 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
5482 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
5483 Click, and that it is only called once.
5484 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
5485 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
5489 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
5493 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
5494 instead of 8, just like above. Partially fixes #82734.
5496 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5498 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
5501 * ListView.cs: Remove extra space between rows in Details view (match
5503 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
5506 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
5508 * Application.cs: Modified ProductVersion to return value of
5509 AssemblyInformationVersion if available, and fallback to assembly
5510 version. Fixes bug #82746. Code formatting.
5511 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
5514 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5516 * Control.cs: When updating ZOrder for a child control,
5517 take into account the implicit ones (we need it in our controls
5518 using them). Fixes #82642.
5520 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5522 * ToolStripItem.cs: Add support for animated images.
5525 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
5527 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
5528 visible. [Fixes bug #82727]
5530 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5532 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
5533 so we repaint using the new size. [Fixes bug #82723]
5535 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5537 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
5538 option. [Fixes bug #81779]
5540 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5542 * TreeView.cs: Override HandleClick because the StandardClick style is
5543 set to false. According to MSDN (and testing), the click events should
5544 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
5546 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5548 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
5549 the border will disappear. Fixes reopened #82653.
5551 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5553 * Control.cs: If the control is autosize, and its preferred size changes
5554 when it lays out its children, tell its parent so it can be re-layed out.
5555 Fixing some of the fallout from r85433.
5557 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5559 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
5560 and CheckBox share some code.
5562 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5564 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
5565 the TrackBar, not every mouse move. [Fixed bug #82718]
5567 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5569 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
5570 under 2.0 rendering. [Fixes bug #82657]
5572 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5574 * TreeView.cs: If we found a TreeNode to display a context menu, but
5575 it doesn't have one to show, let the TreeView display its menu
5576 instead. [Fixes bug #82680]
5578 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
5580 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
5581 OnPaintInternal instead. Give the internal TextBox a Border property
5582 so it can draw itself more correctly. [Fixes bug #82653]
5584 2007-09-06 Zoltan Varga <vargaz@gmail.com>
5586 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
5588 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5590 * ComboBox.cs: Adjust combobox button state to reflect current state when
5591 back to enabled = true. Fixes first issue of #82654.
5593 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5595 * Control.cs: Fix last patch regression, prevent forms to update zorder when
5596 setting visible property.
5598 2007-09-05 Everaldo Canuto <everaldo@simios.org>
5600 * Control.cs: Update zorder after control creation in SetVisibleCore, it
5601 fix zorder for controls initially created as non visible. Fixes #82667.
5603 2007-09-04 Everaldo Canuto <everaldo@simios.org>
5605 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
5606 mimic win32 look. Fixes #82656.
5608 2007-09-01 Zoltan Varga <vargaz@gmail.com>
5610 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
5611 Stubs for new net 3.5 classes.
5613 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5615 * ListViewItem.cs: In ListViewItemCollection operations calculate
5616 Layout for owner as well as invalidate it. Fixes part of #82642.
5618 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
5620 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
5621 when returning Enabled. [Fixes bug #82651]
5623 2007-08-30 Everaldo Canuto <everaldo@simios.org>
5625 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
5627 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5629 * ListView.cs: Put item padding info in a single place
5630 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
5632 * ThemeWin32Classic.cs:
5633 * Theme.cs: Likewise.
5635 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5637 * ListView.cs: When a ListViewSubItem instance is invalidated,
5638 invoke Invalidate on parent ListViewItem, not parent ListView.
5641 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5643 * ListView.cs, ListViewItem.cs: corcompare stuffs.
5645 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5647 * BindingMemberInfo.cs: Implement == and != operators.
5649 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
5651 * HtmlElementEventArgs.cs: Implement properties.
5653 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5655 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
5657 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5659 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
5660 Add (string,string,string) to implement the imagekey. It turns out, we
5661 use the requested imagekey whereas .Net does not. So I broke ours to match
5664 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5666 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
5668 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
5670 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
5672 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
5674 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
5675 up-to-date. Fixes bug #82618.
5677 2007-08-29 Everaldo Canuto <everaldo@simios.org>
5679 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
5680 reflect document changes. Fixes #82367.
5682 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5684 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
5685 as well as add new ones. This should make work the BackgroundImage
5686 property for ListView again.
5688 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5690 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
5691 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
5692 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
5694 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5696 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
5699 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5701 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
5702 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
5704 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
5706 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
5707 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
5709 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5711 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
5713 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
5715 * GridEntry.cs: Implement GetService.
5717 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
5719 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
5720 for label editting, make sure we focus back on the TreeView.
5723 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5725 * ListView.cs: Add some 2.0 overrides.
5727 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5729 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
5730 because getter dont returns right value before handle creation. Thanks
5731 to George. Fixes #82569.
5733 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5735 * Theme.cs: Revert last patch, it causes error under win32.
5737 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
5739 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
5740 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
5741 logical Desktop rather than the physical file system location. Fixes #82603.
5743 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
5745 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
5746 for the patch. Fixes #82568.
5748 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5750 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
5753 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5755 * ListViewInsertionMark.cs: New stubbed class.
5757 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5759 * FolderBrowserDialog.cs: When adding folder, immediately create the
5760 directory with temporary name and rename the directory when editing
5761 finishes. This matches MS. Ensure the node for the new folder is
5762 selected and LabelEdit is disabled, when editing is either finished
5765 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5767 * TreeView.cs: When editing label of node, ensure node is visible.
5769 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
5771 * PropertyGridView.cs: Set the value only if it has changed.
5773 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5775 * ListView.cs: Some more code refactoring to add support sorting
5776 with groups (now for Details view). Remove unused code also.
5778 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5780 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
5781 Not a big fan of reacting immediately to a field in an EventArg, but that's
5782 the way it's done. (This is part of the previous commit that got left out.)
5784 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
5786 * FolderBrowserDialog.cs: Removed need for separate description field.
5787 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
5788 has focus when dialog box is displayed again, regardless of what
5789 button was pressed the previous time. Set RootFolder and SelectedPath
5790 each time dialog box is displayed. This ensures the treeview is
5791 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
5792 when it does not have focus. Added support for more special folders.
5794 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5796 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
5797 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
5798 it resets the edit_args.
5799 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
5802 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
5804 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
5805 button to match MS. Provide more meaningful exception message for
5806 invalid RootFolder value. Use zero-length string when SelectedPath
5807 is set to null. Allow non-rooted paths in SelectedPath, but ignore
5808 them in FolderBrowserTreeView. Allow folders to be created in
5809 RootFolder. Fixes bug #82576.
5811 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5813 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
5814 since we need to take into account the group headers and the margin
5816 * ListViewGroup.cs: Add a rows field to store the number of rows per
5819 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5821 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
5822 Anyways, let's just follow the lead.
5824 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5826 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
5827 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
5828 controls in GetPreferredSizeCore.
5829 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
5832 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
5834 * PrintDialog.cs: Need to instantiate the form variable here too.
5836 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5838 * ListView.cs: Do some reorganization to support sorting in groups,
5839 by doing the layout sequentially in ListView.Items. Also add support
5840 for the Default Group, which should be available for items with no
5842 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
5843 for storing layout info also.
5844 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
5845 collection, as well as providing internal members to do a traversal
5846 including the default group (needed when doing layout/drawing).
5847 * ThemeWin32Classic.cs: When drawing group headers use internal
5848 ListViewGroupCollection members to take into account the default
5851 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
5853 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
5855 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5857 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
5858 been created. If handle is created, we want arror keys. If we are editing
5859 a node, we want things like enter, esc, home, end, page up, page down.
5860 Allows Esc to work for FolderBrowserDialog.
5862 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5864 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5865 they close when ESC is pressed. Thanks Andy!
5867 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5869 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5870 This way we can tell if this is a CommonDialog provided with mono, or one
5871 that is being implemented outside by a developer. If it is an external one,
5872 the developer is responsible for showing their own form. We were showing
5873 our blank form after the developer showed his.
5874 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5875 PageSetupDialog.cs: Instantiate form variable in our constructor.
5878 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5880 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5881 and always return true. [Fixes bug #81616]
5883 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5885 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5886 TextBox. [Fixes bug #82549]
5888 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
5890 * FileDialog.cs: When Save/Open is clicked and no filename is selected
5891 or entered then do not close the dialog. Fixes bug #82539. Removed
5894 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
5896 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5897 code to this method. It is calling every time filter changes. This method
5898 will help to fix the bug #80887.
5900 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5902 * CheckBox.cs: Implement AutoSize calculation.
5904 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5906 * CheckBox.cs: Use new 2.0 rendering for 2.0.
5907 * Theme.cs: Method declarations for 2.0 rendering path.
5908 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5910 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5912 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5914 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5916 * ListViewGroupCollection.cs: Implement AddRange the right way, to
5917 only call Redraw on the parent one time.
5919 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5921 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5922 GetClipboardContent.
5923 * DataGridViewCell.cs: Implemented GetClipboardContent,
5924 GetEditedFormattedValue, GetFormattedValue.
5925 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5927 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5929 * TableLayoutStyleCollection.cs: corcompare fix.
5931 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5933 * DataObject.cs: Implemented retrieval of convertible / not convertible
5936 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5938 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5939 ourselves. This ensures the entire old bounds are repainted, in case our new
5940 size is smaller. [Fixes bug #82518]
5942 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
5944 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5945 flag to make fast handle of mouse events, without this the mouse move is
5946 handled in some manner, whether it is a mouse move or not. Fixes #81588.
5948 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5950 * ListView.cs: When doing layout calculations don't use a ref
5951 param to keep the current item; instead use its Index value (this
5952 is specially important when doing the layout with Groups
5953 and Items being sparse). Also don't take into account items added to
5954 the Group but not yet added to the main ListView.Items collection.
5956 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5958 * ListViewGroupCollection.cs: Forgot to mimic an issue
5959 in the indexer (don't assign the ListView owner for new values).
5961 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5963 * ListViewGroupCollection.cs: Make the string indexer use
5964 the int based indexer to re-use code, instead of duplicate the code.
5965 Also Redraw as needed and take into account null values.
5967 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5969 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5972 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5974 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5975 when other buttons are clicked or navigated to.
5977 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5979 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5980 it's XplatUIX11 that attaches them.
5982 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5984 * DataGridView.cs: If a column has been added, recreate the editing row.
5987 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5989 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5990 of the tag to draw. Makes disappearing text show up again.
5992 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5994 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5995 Contents. Fixes #82487.
5997 2007-08-19 Andreia Gaita <avidigal@novell.com>
5999 * Added HtmlElement.cs, HtmlElementCollection.cs,
6000 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6002 2007-08-19 Andreia Gaita <avidigal@novell.com>
6004 * BindingSource.cs: Implement this, dispose and getenumerator.
6005 * DataGridViewRowCollection.cs: Move the InvalidOperationException
6006 out of AddInternal, throw it only on public Add calls. The
6007 UsingWebBrowser sample was blowing up with this when setting the
6008 DataSource after adding DataBindings, so it's likely that .net
6009 only throws this exception when Add is called directly.
6011 * ToolStripControlHost.cs: Return the hosted control's text
6012 property, and not the ToolStripItem one (it would always return
6015 * HtmlDocument.cs: Implement GetElementById and All
6016 * WebBrowser.cs: Remove exception on set_DocumentStream.
6018 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6020 * Form.cs: Fix the max and min value for opacity (0~1).
6022 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6025 * DataGridTableStyle.cs: Default header font is now null, on getter it
6026 returns datagrid font when is null. On setter permits null.
6029 - When ResetHeaderFont set header font to null.
6030 - On EndInit set grid_style.DataGrid.
6032 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6034 * TabControl.cs: Fix regression in default padding x.
6036 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6038 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
6040 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6042 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
6043 not 2. Fixes #82229.
6045 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6047 * TabControl.cs: Fix tab size when image height is less than text height.
6048 Partially fixes #81837.
6050 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6052 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
6053 "alt + tab". It works only for Win32, for X11 theres no way to remove window
6054 from taskbar and keep it on "alt_tab". Fixes #81722.
6056 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6058 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
6059 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
6060 Fixes #80877 and #79418.
6062 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6064 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
6065 between position and one of the screen borders. Fixes #82349.
6067 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6069 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
6070 the MessageBox in the taskbar. Fixes #82457.
6072 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6074 * MessageBox.cs: Fix form size when icon is set and text height is bigger
6075 than icon. Fixes #82468.
6077 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6079 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
6080 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
6081 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
6082 Refactored HandleNCCalcSize somewhat to avoid code duplication.
6083 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
6084 FormBorderStyle to decide if we're calculating a new size from the
6085 client size or not. CreateParams: Don't fake tool windows, only the X11
6086 backend manages toolwindows manually.
6088 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6090 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
6091 ObjectDisposedException.
6093 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6095 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
6096 in OnLoad should not have any effect. [Fixes bug #82470]
6098 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6100 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
6101 paint for controls that create their own ToolTipWindow instead of
6102 going through ToolTip.
6104 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6106 * ToolTip.cs: Make Hide internal instead of public to match MS API.
6108 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6110 * ListViewGroupCollection.cs: Use generic List instead of an
6111 ArrayList, since this collection is 2.0 only.
6113 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
6115 * ToolTip.cs (Hide): Made public to make the build work (should
6116 this not be public?).
6118 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6120 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
6122 * ToolTip.cs: Add an internal Visible property to facilitate transition.
6124 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
6126 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
6127 PopupEventHandler.cs: Make these internal for 1.1.
6128 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
6129 use ToolTipWindow internals.
6130 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
6131 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
6133 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6135 * X11Dnd.cs: Add a null check.
6137 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6139 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
6140 nothing else succeeds. Fixes #82453.
6142 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6144 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
6145 rectangle if we're painting to another window than the one the paint
6146 message was generated on. Simplify the code somewhat, which makes
6147 PaintEventEnd also simpler.
6149 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6151 * Control.cs: When changing parent of a form, let the form decide whether
6152 XplatUI.SetParent should be called or not.
6153 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
6154 recreating the handle. If the new parent's handle isn't created, don't
6155 recreate our handle, just destroy it. CreateParams: Check if the
6156 parent's handle is created before fetching it.
6158 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6160 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
6161 Update calls to PaintEventStart/End to take a Message argument.
6162 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
6163 take a Message argument.
6164 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
6165 Message argument, and handle the case where we don't paint to the window
6166 for which the paint message was generated.
6168 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6170 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
6171 Marshal.GetLastWin32Error. Plug nasty memory leak in
6172 PaintEventStart/End, we were creating a DC we weren't releasing.
6174 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6176 * ListView.cs: Add Groups support in Details view. Also have a small
6177 method to do the layout of the group header. Don't use a separate
6178 method to do the groups calculation in Icons view, since our methods
6179 are now a little simpler.
6180 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
6182 * ThemeWin32Classic.cs: Likewise.
6184 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
6186 * Application.cs: Add FilterMessage method and rework our message loop
6189 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
6191 * Application.cs: Add some methods and stub a few methods that are
6192 pretty much never used.
6194 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
6196 * TreeNode.cs: Add some serialization methods.
6198 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6200 * ListView.cs: In ListViewItemCollection have a
6201 'is_main_collection' field to not modify ListViewItem.ListView
6202 when using it as ListViewGroup.Items (and not ListView.Items)
6203 and also don't modify selection state (.Net behaviour).
6204 Instead, set group for items contained in a ListViewGroup.Items collection.
6205 * ListViewItem.cs: Simplify some code in Group setter.
6206 * ListViewGroup.cs: use the new .ctor to pass the current instance
6207 to the ItemsCollection.
6208 * ListViewGroup.cs: Set the ListView property for ListViewGroup
6209 instances when adding/removing. Also make Remove use RemoveAt, which
6210 should perform better.
6212 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6214 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
6215 that crept into the 1.1 profile.
6217 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6219 * ToolBarButton.cs: Implement ImageKey.
6221 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
6223 * ToolBar.cs: Implement ScaleControl/ScaleCore.
6225 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6227 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
6228 created, it might have gotten destroyed since we last checked. Fixes
6231 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
6233 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
6234 tooltip will hide when mouse is moved off the control.
6237 2007-08-11 Andreia Gaita <avidigal@novell.com>
6239 * WebBrowserBase.cs, WebBrowser.cs: add implementation
6240 using Mono.Mozilla for loading and navigating webcontrol
6242 The initial implementation was done on
6243 /trunk/mozembed/tests/browser , and copied here.
6245 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
6247 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
6248 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
6250 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6252 * DataGridView.cs: Add support for an editing row. Fixes #82226.
6253 RowTemplateFull: throw an exception if a column doesn't have a template.
6254 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
6255 add the row just before it.
6256 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
6258 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
6259 DataGridView field to be able to reach the grid's editing row.
6261 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6263 * ToolTip.cs: If the control's handle hasn't been created when it has a
6264 tooltip set on it, don't check to see if we need to show the tooltip. This
6265 check was causing the control's handle to be created.
6268 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6270 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
6272 Handle Not Created -1 0
6276 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
6278 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
6281 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
6283 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
6284 * ToolTip.cs: Implement some properties and owner draw.
6286 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6288 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
6289 show them again, since setting visibility causes a paint, causing an
6290 endless loop (instead use a temporary and set it all when it's known if
6291 they should be shown or not). Fixes #79265.
6293 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6295 * DataGridView.cs: Only do a full column/row selection if a header was
6296 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
6297 isn't pressed, deselect everything before selecting something.
6299 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6301 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
6302 behaviour according to bug #81075 - they are returned in the order they
6303 are selected. Fix HitTest to check if the point is within any of the
6304 headers. Allow for row/column selection when in ColumnHeader or
6305 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
6306 the row and column to call when their selected state changes, and
6307 updated selected_[rows|columns] whenever SetSelected* is called.
6308 * DataGridViewBand.cs: Initialize isRow correctly. Call
6309 SetSelected[Row|Column]CoreInternal when the selected state changes, and
6310 add a SelectedInternal to avoid StackOverflows.
6311 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
6312 ReadOnly no matter what.
6313 * DataGridViewSelectedColumnCollection.cs,
6314 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
6315 the items in reverse order (just as MS does...)
6317 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
6319 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
6320 itself, not part of a mnemonic. [Fixes bug #82378]
6322 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6324 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
6325 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
6326 the DGV, the column, the row, or the cell itself is readonly.
6328 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
6330 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
6332 * FileDialog.cs: Same.
6333 * TextRendered.cs: Same.
6334 * FolderBrowserDialog.cs: Same.
6335 * TextBoxBase.cs: Same.
6336 * Application.cs: Same.
6338 * ThemeClearLooks.cs: Same.
6340 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
6342 * XplatUI.cs: Added RunningOnUnix property to be used by controls
6343 instead of duplicating these checks everywhere.
6344 * FileDialog.cs: Use case-insensitive comparison for populating the
6345 DirComboBox when not running on unix. Fixes bug #82385.
6346 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
6349 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6351 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
6352 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
6353 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
6354 cell and column selection with ctrl and shift pressed. Call the correct
6355 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
6356 the corresponding virtual method (PaintBackground to paint background,
6358 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
6359 either the column, row or the cell itself is selected.
6360 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
6362 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
6363 here. When the row is selected, don't select all cells. Each cell now
6364 queries the row to see if the row is selected.
6366 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6368 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
6371 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6373 * ListView.cs: In ListViewItemsCollection check that owner is
6374 not null before trying to access it (this happens quite often
6375 using Groups). Also don't duplicate calls by calling CollectionChanged
6378 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6380 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
6381 when we are dismissed to clear keyboard mnemonics.
6382 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
6383 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
6384 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
6385 was activated by keyboard or the OS tells us to always draw them.
6386 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
6387 [Fixes bugs #82376, #82377]
6389 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6391 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
6392 shot at having it because Alt was pressed.
6393 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
6394 the first real menu item.
6395 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
6396 a mnemonic if Text is null.
6399 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6401 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
6402 search do check whether the item is already contained in the
6403 collection or not; instead check if the owner of the item is the same
6404 as ours. Also, remove a redundant check in the same method.
6406 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
6408 * Control.cs: Allow the clip region to be set back to null.
6409 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
6410 [Fixes button still showing up in bug #82370 when Show Through is turned off]
6412 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
6414 * GridEntry.cs: Add a null check.
6415 * PropertyGrid.cs: When checking for existing grid entries, ignore category
6416 entries. Fixes #82297.
6418 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6420 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
6423 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
6425 * ListBox.cs: Implement ScaleControl.
6427 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6429 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
6431 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
6432 parent has a menu strip. Fixes #81689.
6434 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6436 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
6437 moments, so apply some fuzzy logic to determine if the mouse is still
6438 inside a control or not. Fixes #82288 (for the third time).
6440 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6442 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
6443 Don't create the child if it has been disposed already (may happen if
6444 the user closes the form the Load event).
6446 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6448 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
6451 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
6453 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
6454 might call us after we've been destroyed, in which case our own private
6455 parent field is null. Fixes #82326.
6457 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6459 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
6460 check for setting the dropdown's owner.
6462 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
6464 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
6465 before removing system menu items.
6467 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
6469 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
6471 * MdiControlStrip.cs: Added. These are the menu items used in mdi
6473 * ToolStrip.cs: Add a null check to mnemonics.
6474 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
6476 [Fixes most of bug #81689]
6478 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6480 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
6482 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6484 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
6486 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6488 * DataGridViewCell.cs: EditType: returns
6489 DataGridViewTextBoxEditingControl always.
6491 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
6493 * TextRenderer.cs: Remove the LineLimit string format flag from the
6494 DrawString fallback method so that things like buttons that aren't
6495 tall enough to draw a full line will still draw part of the text.
6496 [Fixes part of bug #82272]
6498 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6500 * DataGridView.cs: Implemented AutoResizeColumn(s).
6501 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
6502 according to the Alignment.
6503 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
6504 Implement alignment and padding when painting.
6505 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
6507 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
6509 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
6512 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6514 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
6517 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6519 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
6520 hide GetPreferredSize from public API.
6521 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
6522 * ToolStripItem.cs: Stub out drag and drop methods and events.
6523 * ToolStripManager.cs: Stub out Save/LoadSettings.
6524 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
6525 * ToolStripPanel.cs: Fix corcompare error.
6526 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
6527 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
6528 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
6530 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
6532 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
6533 bounds height instead of PreferredHeight. Puts things back the way
6534 they were for height while still fixing the width. Fixes broken unit
6537 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6539 * Binding.cs: Implement 2.0 constructors and add a null check.
6541 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6543 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
6544 and fix row index (off by one).
6546 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6548 * PropertyGridView.cs: Remove debug output.
6550 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6552 * Control.cs: We need to reset the is_created flags when the handle is
6553 destroyed. Fixes #82187.
6554 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
6555 client coordinates if the window doesn't have a parent.
6556 Win32GetParent returns the parent or the owner, and for top-level
6557 windows with no parent (but with an owner) we were calculating the
6558 location from the location of the owner.
6559 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
6560 form has been disposed.
6561 * MdiClient.cs: Add a null-check.
6563 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6565 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
6566 actually do auto-sizing. Override the internal GetPreferredSizeCore
6567 so we can provide an implementation that returns the current width
6568 and preferred height. Allows anchor = right to work with TextBox 2.0.
6571 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6573 * ListView.cs: Add support for navigating items in Groups mode, by
6574 creating a big matrix containing all rows and cols of all groups. When
6575 are in other mode than Details, pressing Up should have a similar
6576 behaviour as that one of Down (moving to the next available column if
6577 current one doesn't have an item in the requested row). Also, don't
6578 proceed to use groups if ShowGroups is false.
6579 * ListViewGroup.cs: Add an internal int field to store the starting
6580 row of the group (used by the big matrix used for navigating the
6582 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
6585 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
6587 * ToolStripDropDown.cs: When we do Show, start with the
6588 DefaultDropDownDirection, but if our popup menu is going to off-screen,
6589 modify the direction to keep it on screen. [Fixes bug #82210]
6591 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
6593 * FileDialog.cs: Accept any FilterIndex value, and store it
6594 unmodified. When FilterIndex is less than 1, or greater than number
6595 of filters, then default to first filter. Only add filter extension to
6596 file if user did not specifiy an extension. When type of dialog is
6597 OpenFileDialog and DefaultExt is set, then only use filter extension
6598 if: CheckFileExists is true and no file wih the default extension
6599 exists, or CheckFileExists is false, and user specified file does not
6600 exist. When CheckFileExists is true, then add first extension of
6601 selected filter that matches existing file. Perform checks for
6602 existing file, overwrite and create after extension has been added to
6603 file name. When CheckFileExists is true and type is SaveFileDialog,
6604 then only consider first filter extension if DefaultExt is set.
6605 When CheckFileExists is true, then ignore DefaultExt if file with that
6606 extension does not exist. Also perform check for existing file when
6607 type is SaveFileDialog. Changed some field to constants.
6609 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6611 * ListView.cs: Take into account the region used by header
6612 control when doing the vertical scroll (this way we invalidate
6613 the precise area, and don't get any dirty one).
6615 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
6617 * FileDialog.cs: Check for valid filterIndex on button open/save.
6620 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6622 * ListView.cs: Update some layout calculations in details view
6623 and clean the code in a pair of assignations.
6625 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6627 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
6628 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
6629 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
6630 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
6632 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6634 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
6635 performance of thread-safe Graphic methods. (Thanks rolf!)
6637 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6639 * ListView.cs: When doing the layout calculations, don't calculate
6640 scroll bars before handle is created. This is unnecessary and also
6641 calculating them before handle creation item causes a number of random
6642 bugs (which begin to appear after Chris' big patch for handle creation
6645 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
6647 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
6648 for things that don't have a Graphics object. Currently, things just use
6649 the static Hwnd.bmp_g which is not thread safe.
6651 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6653 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
6654 dialog. Fixes #82187.
6656 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6658 * DataGridViewElement.cs: Initialize state.
6659 * DataGridView.cs: Forward a few Mouse events to cells. Add
6660 GetRowInternal and GetCellInternal that doesn't unshare rows.
6661 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
6662 don't use the index, but look it up. Add
6663 DataGridViewControlCollection.RemoveInternal to remove controls
6664 that Remove won't remove (scrollbars, edit control).
6665 * DataGridViewColumn.cs: Initialize State correctly.
6666 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
6667 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
6669 * DataGridViewRowCollection.cs: Implemented shared rows.
6670 * DataGridViewRow.cs: Throw exceptions as MS do.
6671 * DataGridViewCell.cs: A few properties are implemented by a
6672 Get<Property> method, so move implementation there and remove the
6673 NIEX in the method. Add a bunch of OnXInternal that DataGridView
6674 calls when necessary.
6675 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
6676 complicates matters.
6677 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
6680 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6682 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
6683 the children controls. Instead, we will just set up the proper docking for the
6684 children controls so we don't have to worry about it. [Fixes bug #82188]
6686 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6688 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
6689 canceling and correct Before/AfterLabelEdit properties as layed out in bug
6690 81847. [Fixes bug #81847]
6692 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
6694 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
6695 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
6696 an explicit size based on the design-time size of the text. Since our fonts
6697 may not match this explicit size, we tend to cut off the ends of people's labels.
6699 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
6701 * Menu.cs: Add some missing methods to MenuItemCollection.
6703 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6705 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
6706 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
6707 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
6708 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
6709 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
6710 * DataGridViewElement.cs: State defaults to Visible.
6711 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
6712 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
6714 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6716 * Control.cs: Minor 1.1 corcompare fix.
6718 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6720 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
6721 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
6723 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6725 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
6726 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
6727 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
6728 DataGridViewSelectedColumnCollection.cs,
6729 DataGridViewSelectedRowCollection.cs: Corcompare work.
6731 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6733 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
6734 it is autoset by VS2005 designer and the effect is barely noticeable.
6736 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
6738 * TreeView.cs: Implement HitTest.
6740 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6742 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
6743 manually adding and removing the control from the Controls
6745 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
6746 EditingControlInternal property that tracks the editing control.
6747 Always keeping the scrollbars in the Controls collection, as MS
6748 testing confirms is the right behaviour.
6750 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6752 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
6753 according to MSDN and new test.
6755 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6757 * TreeNode.cs: Implement ToolTipText.
6758 * TreeView.cs: Implement tooltips, NodeMouse* events.
6760 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6762 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
6764 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6766 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
6767 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
6769 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
6771 * Control.cs, Form.cs, ContainerControl.cs,
6772 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
6773 for misc properties.
6775 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
6777 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
6778 * TreeView.cs: Implement StateImageList.
6780 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6782 * Form.cs: Don't check if the current form is the active form before
6783 activating it. Fixes #81904.
6785 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6787 * Form.cs: Don't check if the current form is the active form before
6788 activating it. Fixes #81904.
6790 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6792 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
6794 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6796 * Form.cs: Don't try to position the form after loading if the form was
6797 disposed. Fixes #81969.
6799 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6801 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
6802 properties. Had to change ToolBar into ToolStrip, which required a
6805 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6807 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
6808 resized, fixes part of #79829 (vertical lines in toolbar).
6809 PropertyGrid: Refactored Populate* to something that's easier to
6810 follow at least for me, as well as splitting it up into several new
6811 methods, required to update only subitems when something has
6812 changed by a popup editor or listbox. Don't use events to check
6813 when any values are changed, since the events are unreliable (we're
6814 changing the objects the events are registered with, and if the
6815 event handling requires the objects to be immutable (objects stored
6816 in hashtables for instance), the events will never be raised).
6817 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
6818 everytime we change a value, since events are unreliable.
6819 DropDownButtonClicked: For the same reason don't compare objects to
6820 check if it has changed or not, it would require all objects to
6821 derive Equals. Fix dialog location on windows, MS is doing weird
6822 things when creating parented forms.
6823 * GridEntry.cs: Add a SelectedObject setter.
6825 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6827 * TreeNode.cs: Add some corcompare attributes.
6828 * TreeNodeCollection.cs: Implement 2.0 stuffs.
6829 * TreeView.cs: Implement some 2.0 stuffs.
6831 2007-07-18 Andreia Gaita <avidigal@novell.com>
6833 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
6836 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
6838 * ListBox.cs: Implement custom tab offsets.
6840 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6842 * ToolStripContentPanel.cs: Support System renderer.
6843 * ToolStripControlHost.cs: Set RightToLeft to default to No.
6845 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6847 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
6849 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6851 * CheckBox.cs: Chain TextAlign to base implementation instead of
6852 maintaining another one.
6854 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6856 * ButtonBase.cs: Fix an incorrect string constant.
6858 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6860 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
6861 of creating one for measuring strings.
6863 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6865 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
6866 Implement MaxItemSize.
6868 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6870 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6871 for DeviceContext. Instead, use the static one available in Hwnd.
6872 Informal tests show this saves about 500k on formtest.exe.
6874 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6876 * ContainerControl.cs: Implement 2.0 AutoScaling.
6878 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6880 * ComboBox.cs: Work around bug #82120 (bug in mcs).
6882 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6884 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6885 Darken the focus color.
6887 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6889 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6891 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6892 X, Y instead of a rect for drawing text.
6893 - For ControlPaint.DrawCheckBox, center the check a little better when the
6894 checkbox is odd width. When drawing a flat checkbox, use a white background
6895 when state != inactive.
6896 [Fixes bugs #82097, 82100]
6898 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
6900 * ListControl.cs: When changing CurrencyManager, disconnect event
6901 handlers from previous one. Fixes bug #81771. Code formatting.
6903 2007-07-15 Andreia Gaita <avidigal@novell.com>
6905 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6906 full preview invalidation from layout invalidation, and only invalidate
6907 the layout when setting zoom or other properties. Invalidation should
6908 always be done even when resetting properties with the same values as
6909 what is there. Fixes #81744 and #79830.
6911 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6913 * ListView.cs: Implement initial support for Groups. Split some of the
6914 LayoutIcons code to render a partial list of the items (needed by
6915 items contained in ListViewGroup instances). Let the
6916 ListViewItemsCollection.ListView property be modifiable (needed when
6918 * ListViewGroup.cs: Use a Bounds property rather than a Location
6919 one. Also invalidate the bounds when they get changed.
6920 * ThemeWin32Classic.cs: When drawing items, also draw the group header
6921 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6924 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6926 * ListView.cs: When space gets pressed and CheckBoxes is true,
6927 don't invoke the Begin and EndUpdate methods. We are generating
6928 a redraw of the entire control without need to do so.
6930 2007-07-13 William Holmes <billholmes54@gmail.com>
6932 * Control.cs: Changing logic in FindFlatForward and
6933 FindFlatBackward to handle multiple Controls with
6935 This fixes bug 81687.
6937 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
6939 * OSFeature.cs: Enable IsPresent.
6941 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6943 * Control.cs: Don't do anything in WmShowWindow if the control has been
6944 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6945 control is created, put on a form, the control is disposed (the
6946 form is never shown), and then we get a MapNotify, triggering a
6948 * Form.cs: Exclude the current form when sending Deactivate to all
6950 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6951 there was a race condition because assigning the handle raises
6952 events, we can get more messages, therefore trying to assign the
6953 handle again, which would fail if any of those event handlers
6954 closed/disposed the control.
6956 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6958 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6960 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6962 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6963 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6965 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6967 * DateTimePicker.cs: If there's no part format specifier, return an
6970 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6972 * FlatButtonAppearance.cs: Throw NotSupportedException for a
6973 Transparent BorderColor.
6975 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6977 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6978 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6979 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6980 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6981 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6982 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6983 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6985 * X11Structs.cs: Remove warnings, add ToString implementations.
6987 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6989 * XplatUIX11.cs: Translate min/max size according to the actual min/max
6990 size, and not the current size. Fixes #81798.
6992 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6994 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6995 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6996 to the control yet).
6998 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7000 * PropertyGridTextBox.cs: Add a method that sends any forwarded
7001 mousedowns to the contained textbox.
7002 * X11Structs.cs: More ToString implementation.
7003 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7006 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7008 * PropertyGridView.cs: Add a null-check, fixes a few tests.
7010 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7012 * TableLayoutPanelCellPosition.cs: TypeConverter.
7014 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7018 * PropertyGridTextBox.cs: Propagate any color changes to all contained
7020 * PropertyGridView.cs: A few color fixes.
7022 2007-07-10 Jackson Harper <jackson@ximian.com>
7024 * TextControl.cs: Remove some old unused text formatting stuff.
7026 2007-07-10 Jackson Harper <jackson@ximian.com>
7028 * TreeView.cs: Update full row select invalidation to match the
7029 newer DrawSelection... method.
7030 - Make sure to invalidate the entire width when selecting a new
7031 node, if we have full row selection enabled.
7033 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7035 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
7036 display of properties again.
7038 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7040 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
7041 to existing collections.
7043 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7045 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
7046 that changed between 1.1 and 2.0.
7048 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7050 * PowerStatus.cs: Added. This is just a data class, it is filled
7051 in by SystemInformation.
7053 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7055 * Message.cs: Add op_Equality and op_Inequality.
7057 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7059 * MenuStrip.cs: Finish corcompare work.
7061 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7063 * LinkArea.cs: Add op_Equality and op_Inequality.
7065 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7067 * Application.cs: Add MessageLoopCallback delegate.
7069 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7071 * ListBox.cs: First set of 2.0 stuffs.
7073 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7075 * Control.cs: Make an internal Height property we can override
7076 without messing up the public API.
7077 * ListBox.cs: Override HeightInternal to always return the size
7078 the user set. [Fixes bug #80466]
7080 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
7082 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
7083 paint cell borders if we haven't calculated where they go yet.
7084 [Fixes bugs #82040 and #82041]
7086 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7088 * ListView.cs: In Details view, set the location of item_control
7089 in the (0,0) position (and the header_control is thus on the
7090 item_control). This way the Bounds of the Items are relative to the
7091 ListView control (before this, they had a Bounds value without the
7092 header_control offset, which wasn't matching .Net). Fixes #82004.
7094 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7096 * ListControl.cs: When DataSource is set to null, pass an empty
7097 array of object to SetItemsCore. This is done to clean the items
7098 in the ListContol children. Fixes #81788.
7100 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7102 * ListControl.cs: Add 2.0 stuffs.
7104 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7106 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
7107 Refresh is overkill for just about every repaint request.
7109 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7111 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
7112 so remove my custom Get method and fix the property getter.
7114 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7116 * Label.cs: DefaultMargin for 2.0.
7118 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7120 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
7121 reported issue where other controls with mnemonics would steal strokes
7122 from a selected ComboBox.
7124 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
7126 * ScrollOrientation.cs: Make internal for 1.1.
7127 * ScrollEventArgs.cs: Add 2.0 stuffs.
7129 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
7131 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7132 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
7133 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
7135 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7137 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
7139 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7141 * ListView.cs: Implement the so-incredibly broken 2.0
7142 VirtualItemsSelectionRangeChanged event.
7144 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7146 * ListView.cs: When enter is pressed and selection is non empty,
7147 an OnItemActivate event must be fired.
7149 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7151 * ListView.cs: Store the FocusedItem information as an
7152 int instead of a ListViewItem (needed by VirtualMode).
7153 Update the calls to SetFocusedItem to pass an index instead of
7155 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
7156 the Focused state from the owner ListView.
7158 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7160 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
7161 property. Also, invalidate previous focused item in the mentioned
7162 property (match .Net).
7164 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7166 * ListView.cs: Implement 2.0 FocusedItem property setter.
7168 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7170 * ListView.cs: Implement 2.0 TopItem property setter.
7172 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
7174 * StatusStrip.cs: The default renderer is System.
7175 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
7176 if the user specifies it.
7177 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
7178 if we are ManagerRenderMode.
7179 * ToolStripMenuItem.cs: Calculate our text color better.
7180 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
7181 from Professional to the base class based off working with the System renderer.
7182 * ToolStripSystemRenderer.cs: Added.
7184 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7186 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
7188 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
7190 * ToolTip.cs: Implement 2.0 Tag property.
7192 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7194 * ListView.cs: Implement 2.0 HitTest methods.
7196 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7198 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
7199 item is under the pointer or not (sugar). Also remove the TODO
7200 regarding to the cursor changes in OneClick activation.
7201 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
7202 the subitems use the parent's HotFont if UseItemStyleForSubItems is
7203 true; otherwise don't show the underline style.
7205 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7207 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
7208 the code to retrieve the item at position only one time. Also
7209 change cursor when Activation is ItemActivation.OneClick as well
7210 as invalidate the item if HotTracking is true (to show/hide the
7211 underline style). Add an internal HotItemIndex property to retrieve
7212 the current hot item's index.
7213 * ListViewItem.cs: Add an internal HotFont property to cache the
7214 font used when HotTracking is true and the pointer moves within the
7216 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
7217 HotFont depending on the hot state of the item.
7219 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221 * ListView.cs: Implement 2.0 HotTracking property.
7223 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7225 * ToolStripControlHost.cs: If our hosted control never got created,
7226 don't try to dispose it. [Fixes bug #81909]
7228 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7230 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
7232 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
7234 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
7236 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7238 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
7240 * DrawListViewColumnHeaderEventArgs.cs:
7241 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
7242 using the DrawText () methods.
7244 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
7246 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
7247 background which got erased in my changes yesterday.
7249 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7251 * ListViewItem.cs: Actually set bounds for subitems in Details view
7253 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
7254 can invoke from the owner draw routines if we need it. Also, add
7255 support for Owner draw in Details view.
7257 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7259 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
7260 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
7261 ShowImageMargin setting, properly align text in a ToolStripLabel
7262 hosted on a ToolStripDropDown.
7264 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7266 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
7267 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
7269 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7271 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
7273 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
7275 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
7276 location to match ToolStripMenuItems.
7278 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7280 * DrawListViewColumnHeaderEventArgs.cs:
7281 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
7282 column headers in ListView.
7284 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
7286 * UserControl.cs: Implement AutoSize.
7288 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7290 * DrawListViewItemEventArgs.cs:
7292 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
7295 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
7297 * ToolStripDropDownItemAccessibleObject.cs: Added.
7298 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7299 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
7300 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
7301 ToolStripTextBox.cs: corcompare work.
7303 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
7305 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
7306 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
7307 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
7310 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
7312 * OSFeature.cs: Add IsPresent.
7313 * PrintPreviewControl.cs: Add RightToLeft.
7314 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
7315 * SplitterPanel.cs: Add AutoSizeMode.
7317 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7319 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
7320 * MdiClient.cs: Add 2.0 ScaleControl.
7321 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
7322 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
7324 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7326 * Form.cs: Implement some scaling methods, stub some RTL methods,
7329 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7331 * Control.cs: corcompare work.
7332 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
7334 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
7336 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
7337 ControlPaint 2.0 stuffs.
7339 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7341 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
7343 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7345 * UpDownBase.cs: Add 2.0 stuffs.
7347 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7349 * NumericUpDown.cs: Add 2.0 stuffs.
7351 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7353 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
7355 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7357 * ErrorProvider.cs: Implement 2.0 stuffs.
7359 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7361 * DomainUpDown.cs: Implement 2.0 stuffs.
7363 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7365 * CheckedListBox.cs: Fix RefreshItems signature.
7367 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
7369 * PictureBox.cs: Implement 2.0 stuffs.
7371 2007-06-12 Andreia Gaita <avidigal@novell.com>
7373 * TabControl.cs: Check if there are tabpages before checking
7374 the selected index - fix #81802 (font changes raise a ResizeTabs
7375 call on controls.add, which blew up nicely with no tabpages)
7377 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7380 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
7382 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7385 * ListViewItem.cs: In VirtualMode the selection information
7386 resides in the ListView, rather than in the Items. Also, throw
7387 InvalidOperationExceptions when VirtualMode is being used and
7388 CheckedItemCollection is accessed.
7390 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7392 * ComboBox.cs: Add ScaleControl.
7394 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7396 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
7398 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7400 * GroupBox.cs: Add 2.0 stuffs.
7402 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
7404 * Panel.cs: Add autosize properties/event.
7406 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7409 - When we remove a control, remove it from the collection before performing the layout.
7410 - Setup an internal property for explicit_bounds.
7411 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
7412 - Perform a layout when we set a new AutoSizeMode.
7414 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
7416 * ScrollableControl.cs: Add 2.0 stuffs.
7418 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7420 * ScrollBar.cs: Add 2.0 stuffs.
7422 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7424 * Splitter.cs: Add 2.0 stuffs.
7426 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7428 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
7429 to have BindingContext simply use base implementation.
7431 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7433 * ColumnHeader.cs: corcompare fix.
7435 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7437 * Button.cs: corcompare fixes.
7438 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
7440 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
7442 * Button.cs: Override GetPreferredSizeCore.
7443 * ButtonBase.cs: PerformLayout after changing properties that can affect
7444 AutoSize. Simplify some mouse/keyboard code.
7445 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
7446 * MouseEventArgs.cs: Make Location internal for 1.1.
7447 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
7448 * Theme.cs: Add CalculateButtonAutoSize.
7449 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
7451 2007-06-05 Miguel de Icaza <miguel@novell.com>
7453 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
7455 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7457 * ListViewItem.cs: We can't cache Bounds in VirtualMode
7458 since we can get different item instances every time we retrieve it.
7460 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7462 * ListView.cs: Work around for #81602, since an unkown an pretty
7463 infrequent condition appears only in some systems (old linux boxes, it
7466 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7468 * Button.cs: Completely reformat and a little refactor to bring
7469 this closer to Mono circa 2007.
7471 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7473 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
7474 to be ButtonBase.Invalidate.
7476 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7478 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
7480 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
7482 * ButtonBase.cs: Completely reformat and a little refactor to bring
7483 this closer to Mono circa 2007.
7485 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
7487 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
7488 values for autosize. Fixes #80137.
7490 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7492 * Control.cs: Don't perform layout when AutoSize changes.
7493 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
7494 directly when autosizing, use SetBounds with BoundsSpecified.None.
7495 Fixes unit tests my last commit broke.
7497 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7499 * Control.cs: Perform layout when AutoSize changes.
7500 * Form.cs: Implement AutoSizing.
7502 2007-06-01 Chris Toshok <toshok@ximian.com>
7504 * DataGrid.cs: remove the XXX'ed check at the top of
7505 ProcessGridKey. fixes #80464.
7507 2007-06-01 Chris Toshok <toshok@ximian.com>
7509 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
7510 adding idempotent (add/remove in Edit()), and also make sure we
7511 don't add it until after we set the text, so it's not tripped in
7512 Edit(). Fixes unit test regression.
7514 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
7516 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
7517 change is user explicit, not when the layout engine moves stuff. Fixes
7518 anchoring to bottom and right. [Fixes bug #81790]
7520 2007-06-01 Andreia Gaita <avidigal@novell.com>
7522 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
7524 2007-06-01 Andreia Gaita <avidigal@novell.com>
7526 * ContainerControl.cs:
7527 Fire enter event for common ancestor if it is not a ContainerControl.
7528 Send focus to the active_control and not the 'value', the active
7529 control might have been changed in one of the events fired.
7530 Definitely fixes #80159.
7532 2007-06-01 Andreia Gaita <avidigal@novell.com>
7534 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
7536 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7538 * PropertyGrid.cs: Anchor the help description to the bottom of the
7539 help panel and refactor SelectGridItem into a
7540 SelectGridItemInternal that can be set to null (and update it to
7541 clear the help texts when it is set to null). Set root item to null
7542 when there's no SelectedObject. Fixes #80438.
7543 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
7544 when we're recalculating after a resize (only).
7546 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7548 * ListView.cs: Implement 2.0 RedrawItems method.
7550 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7552 * ListControl.cs: Disconnect PositionChanged and ItemChanged
7553 handlers from previous data manager when DataSource is set to
7556 2007-05-31 Jackson Harper <jackson@ximian.com>
7558 * TextBoxBase.cs: These seem to be the correct values.
7560 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
7562 * FileDialog.cs: When close dialog with ok set filterindex using combobox
7563 value. Fixes #81784.
7565 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
7567 * Control.cs: Implement 2.0 scaling methods.
7569 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7571 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
7572 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
7575 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7577 * ProgressBar.cs: Implemented missing 2.0 members.
7579 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7581 * Control.cs: Corcompare issues.
7582 * MessageBox.cs: Implemented missing 2.0 functions.
7584 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7586 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
7587 Implemented more 2.0 members.
7589 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7591 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
7592 null (strange, but it seems to happen when running unit tests).
7594 2007-05-30 Andreia Gaita <avidigal@novell.com>
7596 * ContainerControl.cs: Set active_control even earlier, before
7597 firing any events, and undo it if validation returns false.
7599 2007-05-30 Andreia Gaita <avidigal@novell.com>
7601 * ContainerControl.cs: Raise Validation and Enter/Leave events
7602 even if there is no Form and set active_control earlier, just
7603 before firing Enter events (toshok's patches). Fixes #80647.
7605 2007-05-30 Jackson Harper <jackson@ximian.com>
7607 * TextControl.cs: Redid the pageup/pagedown a little to simplify
7608 things and fix bug #81311.
7610 2007-05-30 Jackson Harper <jackson@ximian.com>
7612 * X11Dnd.cs: Now that we have our own event loop, we need to
7613 cancel when we get a mouseup but it won't be accepted.
7615 2007-05-30 Chris Toshok <toshok@ximian.com>
7617 * DataGrid.cs (set_CurrentCell): guard against negative
7620 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
7621 array index syntax instead of looping over the property names.
7623 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
7624 and set IsInEditOrNavigateMode to false there.
7626 2007-05-30 Jackson Harper <jackson@ximian.com>
7628 * TreeView.cs: Make sure we don't get a bad visible order when
7629 setting to the top node. Fixes some misc crashing in
7632 2007-05-30 Andreia Gaita <avidigal@novell.com>
7634 * UserControl.cs: Add 2.0 AutoSizeMode
7636 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7638 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
7640 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7642 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
7643 lines. Fixes #80285.
7645 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7647 * DataGridColumnStyle.cs: Add char trimming column header text format.
7649 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
7651 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
7654 2007-05-29 Jackson Harper <jackson@ximian.com>
7656 * TreeNode.cs: Fix off by one on calculating whether or not a node
7659 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
7661 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
7662 * ScrollableControl.cs: Force an UpdateDistances when we move the
7666 2007-05-29 Andreia Gaita <avidigal@novell.com>
7668 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
7669 update the page setup screen.
7671 2007-05-29 Andreia Gaita <avidigal@novell.com>
7673 * PageSetupDialog.cs: Fix landscape mode.
7675 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7677 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
7678 IconSizeHorizontalSpacing.
7680 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7682 * ListView.cs: The declaration of prev_tooltip_item should be inside
7683 a NET_2_0 conditional (avoid a warning).
7685 2007-05-28 Andreia Gaita <avidigal@novell.com>
7687 * PageSetupDialog.cs: Implement PrintPreview control to display
7688 the preview thumbnail. Change unit conversion to use
7689 PrinterUnitConvert methods.
7691 Note: there is a huge bug in ms.net where the default margins are
7692 interpreted as centimeters (?), when in fact they are set in inches. When
7693 loading the page setup dialog initially (ms.net), the default margins
7694 are set to 1 inch, and the dialog shows them with value 10, when in fact
7695 it should be 25 (properly converted). Our dialog doesn't have this bug.
7697 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
7699 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
7701 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7704 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
7707 2007-05-28 Andreia Gaita <avidigal@novell.com>
7709 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
7710 an IntPtr on csc (it builds fine on mcs, could it be a compiler
7711 bug?), convert the ptr to Int32 first.
7713 2007-05-28 Jackson Harper <jackson@ximian.com>
7715 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
7716 recieved, we will exit the dnd tracking loop.
7718 2007-05-28 Jackson Harper <jackson@ximian.com>
7720 * X11Dnd.cs: Keep tracking until the xdnd finished event is
7721 recieved. TODO: I should probably stick a timer on the dropped
7722 event, and finish the drag if the XDND Finished event never shows
7723 (because some apps don't seem to send it).
7725 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
7727 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
7730 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7732 * MonthCalendar.cs: Only mark the keypresses we actually handle as
7735 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7737 * MonthCalendar.cs: Set the size after initializing all the relevant
7738 variables. Fixes #81742.
7740 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7742 * KeyEventArgs.cs: Fix typo.
7744 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
7746 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
7747 to match MS. Fixed MinDate to only accept value less than or equal
7748 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
7749 Removed TODO's that are now verified by unit tests.
7751 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
7753 * TreeNodeCollection.cs: Minor corrections to exceptions to match
7756 2007-05-25 Jackson Harper <jackson@ximian.com>
7758 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
7759 it's own message loop.
7760 * XplatUIX11.cs: Remove some of the dnd hooks
7762 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
7764 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
7765 instead of MinimizedWindowSize.
7767 2007-05-25 Jackson Harper <jackson@ximian.com>
7769 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
7771 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7773 * KeyEventArgs.cs: Added SuppressKeyPress.
7774 * Control.cs: Added support for SuppressKeyPress.
7776 2007-05-24 Andreia Gaita <avidigal@novell.com>
7778 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
7779 problems with PieChart. suppress_validation should not be a counter,
7780 if there are several BeginInit calls, the first EndInit will
7781 activate validation. Fix exceptions thrown by set_Value.
7782 * UpDownBase.cs: ValidateText only if it's the user editing it.
7784 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7786 * ListControl.cs: FilterItemOnProperty should return the filtered
7787 item proeprty even if DataSource is null. The same applies for
7788 GetItemText. Fixes #80427.
7790 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7792 * Control.cs: If a control doesn't have a parent when it's Dock is
7793 set, but it has children, it needs to do a layout. Fixes some nested
7794 controls issues. [Fixes bug #81199]
7796 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7798 * ComboBox.cs: If there are few items in the drop down list, make it
7799 the exact size the items need, no bigger. Fixes #81612.
7801 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7803 * Application.cs: When we have captured the keyboard for a menu,
7804 check for mouse down events in case we need to close the menu.
7805 * Control.cs, Form.cs: Remove mouse down checks for menus.
7807 2007-05-24 Jackson Harper <jackson@ximian.com>
7809 * TextControl.cs: Handle tabs in non multiline mode a little
7812 2007-05-24 Jackson Harper <jackson@ximian.com>
7814 * TextControl.cs: We need to manually break apart tabbed text and
7815 move the tabs, since the system.drawing tabbing mechanism relies
7817 * TextBoxBase.cs: Move the caret properly when the user enters a
7820 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
7822 * ContainerControl.cs: Don't check CanSelect before calling
7824 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
7825 release a KeyboardActive on click if it's not ours.
7827 2007-05-23 Andreia Gaita <avidigal@novell.com>
7829 * ColumnHeader.cs: Add TypeConverter
7831 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7833 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
7835 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7837 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
7839 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7841 * LinkLabel.cs: Implement public Padding property.
7843 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7845 * LinkLabel.cs: Implement public FlatStyle.
7847 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
7849 * Control.cs: Apply patch from George to call parent.PerformLayout
7850 when Visible is changed. [Fixes bugs #81118, 81718]
7852 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7854 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
7856 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7858 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
7860 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
7862 * ContextMenu.cs: Implement Collapse.
7864 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7866 * ToolBarButton.cs: Implement Name.
7868 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7870 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7871 use current_item, it prevents some NRE. Fixes #81675.
7873 2007-05-22 Andreia Gaita <avidigal@novell.com>
7875 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7876 without updating the text.
7878 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7880 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7881 without calling DeleteObject. [Should fix bug #81709]
7883 2007-05-22 Jackson Harper <jackson@ximian.com>
7885 * RichTextBox.cs: Set the line endings correctly, when flushing
7888 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
7890 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7893 2007-05-22 Jackson Harper <jackson@ximian.com>
7895 * TreeView.cs: Setting top with a null node should set to the very
7898 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7900 * Form.cs: ShowDialog: destroy the handle when message loop is
7901 finished, matches MS behaviour. Refactor parts of WmClose into
7902 RaiseCloseEvents, that only raises events if they haven't already
7903 been raised. Fixes #81688 and #81521.
7904 * Application.cs: Don't call close on the form when exiting a modal
7905 loop, it will raise all the (Form)Closed/Closing events again if
7906 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7907 which doesn'r raise any events it they have been raised before.
7909 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7911 * Control.cs: Add OnPrint.
7912 * ToolStrip.cs: Add GetChildAtPoint.
7913 * ToolStripContainer.cs: Add OnRightToLeftChanged.
7914 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7916 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7918 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
7920 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7922 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7923 isn't visible anymore. Fixes #81651.
7925 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7927 * Control.cs: WmShowWindow: Update children's z-order after setting
7928 their parent. SetParent may show the window, thereby corrupting
7929 z-order, since the window will be shown on top.
7930 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7931 multiple (and redundant) WM_SHOWWINDOW messages.
7932 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7933 event has already been raised.
7934 * Form.cs: Change is_changing_visible_state to a counter, since
7935 SetVisibleCore can be called recursively. CreateHandle: when
7936 creating mdi children, send (De)Activated events.
7937 * MdiClient.cs: Update use of is_changing_visible_state.
7938 * Application.cs: OnThreadException: Surround exception handling with
7939 try/finally to ensure we always reset the error-handling state
7942 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7944 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7947 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7949 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7950 SmallIcon views, now that we have a standarized horizontal spacing.
7952 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7953 4, just like the other views (Match .Net).
7955 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
7957 * Control.cs: Delay calculating anchor distances until we actually layout.
7958 Always query the WM for the actual size and location it put us at instead of
7959 only when we send negative values.
7960 [Fixes bugs #81694, 81695]
7962 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7964 * Application.cs: Avoid a possible stack overflow when trying to exit
7967 2007-05-19 Marek Safar <marek.safar@gmail.com>
7969 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7972 2007-05-19 Andreia Gaita <avidigal@novell.com>
7974 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7975 * NumericUpDownAcceleration.cs,
7976 NumericUpDownAccelerationCollection.cs: Added 2.0
7979 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
7981 * RichTextBox.cs: Recalculate the document after the ScrollBars
7982 property is changed. Fixes bug #81681.
7984 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7986 * DataObject.cs: Implement 2.0 methods.
7988 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7990 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7991 in the center of the checkbox, not in the left-top corner.
7994 2007-05-18 Jackson Harper <jackson@ximian.com>
7996 * RichTextBox.cs: Recalculate the document after the scrollbars
7997 property is changed.
7998 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8001 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8003 * CreateParams.cs: Make HasWindowManager marginally faster.
8004 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8005 into Hwnd so that other drivers can use it as well.
8006 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8007 the default location from Hwnd. Fixes MDI client windows always
8008 showing up at (0,0) in Windows (Win32 won't set the default
8009 location since the window styles aren't correct).
8011 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
8013 * TreeView.cs: Modified DoubleBuffered to just use the base
8016 2007-05-18 Jackson Harper <jackson@ximian.com>
8018 * TreeView.cs: Set the top node to the last child node when
8020 - When we get focus, if there is no selected node, use the top
8023 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8025 * KeysConverter.cs: Add CanConvertTo.
8026 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8027 * LinkConverter.cs: Added.
8029 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8031 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8032 it prevents error when file dont have write access. Fixes #81669 and #81667.
8034 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8036 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
8037 button text. Fixes #79640.
8039 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8041 * Control.cs: According to MSDN controls created in the designer theres
8042 keyboard accelerators visible by default. So included check for design
8043 in ShowKeyboardCuesInternal.
8045 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8047 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
8050 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8052 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
8053 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
8055 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8057 * Control.cs: Finish implementation of UI State using WmChangeUIState
8058 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
8059 in some controls to check for show_keyboard_cues to draw accell keys "_".
8061 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8063 * ListBox.cs: When calculating the horizontal scrollbar
8064 in single column mode, don't use values less than 0 for
8065 Maximum. Fixes #81474.
8067 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8069 * ListBox.cs: Throw the some missing exceptions in
8070 ListBox.ObjectCollection methods.
8072 2007-05-17 Jackson Harper <jackson@ximian.com>
8074 * TextBoxBase.cs: Recalculate the document when the word wrap
8075 value has changed. This fixes 81488.
8077 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8079 * Clipboard.cs: Implement missing GetText overload.
8081 2007-05-17 Chris Toshok <toshok@ximian.com>
8083 * Control.cs (CheckDataBindings): remove the binding_context arg
8086 * CurrencyManager.cs (OnItemChanged): fix this now that
8087 BindingManagerBase is fixed. also remove the comment telling where
8088 the fix should go. We set transfering_data to true/false around
8089 the call to PushData to keep UpdateIsBinding from being called.
8090 (ListChangedHandler): remove the extra OnMetaDataChanged call for
8091 PropertyDescriptorAdded in the 1.1 case. The extra call is
8092 actually generated by System.Data generating 2 metadata changed
8093 events of its own per column add. The fix should go there. Add a
8094 comment to that affect in our test's Assert.Ignore.
8096 * BindingManagerBase.cs: Rework PullData and PushData slightly.
8097 we keep a boolean flag (transfering_data) that keeps us from
8098 calling UpdateIsBinding multiple times if we re-enter either of
8101 * ControlBindingsCollection.cs (AddCore): remove the
8102 binding_context arg to binding.Check.
8104 * Binding.cs (IsBinding): don't check if we're binding here, just
8105 return our cached value. we update it in UpdateIsBinding.
8106 (Check): don't take the binding_context arg, we'll just use our
8107 control's. Also, for some reason MS doesn't use the data member
8108 field when getting the bindingmanager for this binding. it just
8109 uses the datasource. Make this method callable multiple times,
8110 and only do the is_null_desc stuff if manager.Position != -1 (so
8111 we don't get an exception accessing manager.Current).
8112 (UpdateIsBinding): move the code from IsBinding here.
8113 (PositionChangedHandler): call Check here to we can initialize
8114 things that require a non- -1 position.
8116 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8118 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
8121 2007-05-17 Andreia Gaita <avidigal@novell.com>
8123 * TabControl.cs: Add 2.0 methods and events, including
8124 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
8125 * TabPage.cs: Add 2.0 methods
8127 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8129 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
8130 keyboard_cues is properly handled by message method.
8132 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8134 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
8136 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8138 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
8140 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
8143 - WmUpdateUIState added to handle state changes, it make call to
8144 OnChangeUICues event.
8145 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
8148 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
8150 * ImageKeyConverter.cs: Added.
8151 * TreeViewImageKeyConverter.cs: Added.
8153 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155 * ToolTips.cs: Update Text if SetToolTip is called for a control
8156 already showing the tooltip, as well as restarting its timer; show
8157 tooltip if we are inside the control bounds by the time of calling
8158 SetToolTip. Inside ShowTooltip remove the check to not show the
8159 tooltip again for the active control (it is allowed by .Net to
8160 show the tooltip on the same control multiple times).
8162 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
8164 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8166 2007-05-16 Andreia Gaita <avidigal@novell.com>
8168 * ContainerControl.cs: only process tab key if there are no
8169 modifier keys present, otherwise the control does the
8170 tab processing, if it needs to. Fixes #81622
8171 * TabControl.cs: Fixes calculation for which tab to select on
8174 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
8176 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8178 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
8180 * Control.cs: Make IsInputCharInternal to allow controls to
8181 override it and still match MS API.
8182 * TextBoxBase.cs: Override IsInputCharInternal and always
8186 2007-05-15 Jackson Harper <jackson@ximian.com>
8188 * TextBox.cs: Disable some of the menu options when using a
8191 2007-05-15 Jackson Harper <jackson@ximian.com>
8195 * RichTextBox.cs: Some new 2.0 methods
8197 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
8199 * FileDialog.cs: On 1.0 profile, do not support multidotted
8202 2007-05-14 Jackson Harper <jackson@ximian.com>
8204 * TextBoxBase.cs: Implement some of the new 2.0 methods.
8205 * RichTextBox.cs: We need to override these methods on 2.0.
8206 * MaskedTextBox.cs: These are implemented now
8207 * TextControl.cs: This was off by one.
8209 2007-05-14 Jackson Harper <jackson@ximian.com>
8211 * TextControl.cs: Because the line endings are including in the
8212 text, we don't need to add them in anymore.
8214 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8216 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
8217 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
8219 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8221 * ToolBar.cs: Adjust size to default size when button theres no text and
8222 image, it fixes remaining issues from #81524.
8224 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8227 - When not flat call redraw to recalculate sizes on creare handle to match
8229 - Revert 77220 because it causes some regressions in toobar
8232 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8234 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
8235 now actually enters a usable state.
8237 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8239 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
8240 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
8243 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8245 * ToolBar.cs: Save default_size on create handle to use later for buttons
8246 without text, needed to mimic win32 behavior.
8248 2007-05-11 Everaldo Canuto <everaldo@simios.org>
8250 * ToolBar.cs: Fix button layour to best fit width or height according to
8251 vertical or not. Fixes #81524.
8253 2007-05-10 Everaldo Canuto <everaldo@simios.org>
8255 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
8256 toolbar size info because different styles theres different sizes.
8259 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8261 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
8262 if we are using checkboxes, checked is true, and we have less
8263 than two images in StateImageList; for the 1.1 in the same scenario
8264 draw the first image if we have at least one image in StateImageList.
8265 Fixes part of #81191.
8267 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8269 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
8270 the owner's Items collection on merge.
8272 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8274 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
8275 * ToolStripItemCollection.cs: Lots of fixes to when events get called
8276 and parent/owner gets changed based on gert's unit tests.
8278 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8280 * MaskedTextBox.cs: Started implementing parts of it.
8282 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8284 * ListView.cs: When clicking the checkbox on the items
8285 take into account the double clicks even if we have only
8286 one image in StateImageList (only for 1.0/1.1). Also
8287 generate an extra change of checked state when we receive
8288 the second click on checkbox (match .Net behaviour).
8289 Fixes part of #81191.
8291 2007-05-10 Everaldo Canuto <everaldo@simios.org>
8293 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
8295 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
8297 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
8298 even if OnLoad is overriden and base.OnLoad is not called.
8301 2007-05-10 Andreia Gaita <avidigal@novell.com>
8303 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
8304 shame. (I blame my ever-persisting and annoying cold)
8306 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8308 * ListView.cs: Don't eat navigation keys. Let them flow through to
8309 KeyDown/KeyPress routines. [Fixes bug #81569]
8311 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8313 * ListView.cs: When handling keys for selecting the item based off
8314 keyboard input, do not consider keys pressed with Alt or Control. Also,
8315 correctly handle keys when the Shift key is down. [Fixes bug #81578]
8317 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8319 * Control.cs: When using UseWaitCursor, we have to store the requested
8320 Cursor to use when UseWaitCursor is turned off.
8322 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
8324 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
8326 * Application.cs: Use PreProcessControlMessage instead of
8328 * PreProcessControlMessage.cs: Make internal for 1.1.
8330 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8332 * Control.cs: Add InternalContains focus property, which hast the same
8333 functionality of ContainsFocus, but also including implicit controls.
8334 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
8335 since we need to know if the focus is contained in our implicit
8336 ItemControl when calculating Layout. Fixes part of #80888.
8338 2007-05-08 Everaldo Canuto <everaldo@simios.org>
8340 * ToolTip.cs: Remove center form string alignment as it must be align to
8343 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
8345 * ToolStripItemCollection.cs: Set the new item's parent and owner
8346 in Insert like we do in Add. [Fixes bug #81568]
8348 2007-05-08 Jackson Harper <jackson@ximian.com>
8350 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
8351 - Off by one error in SetTop
8352 - Disable DoubeBuffering
8354 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8356 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
8357 control as much as necessary in order to make it entirely visible,
8358 instead of centering the control in the container (matches MS
8359 behaviour). CalculateCanvasSize: we need to take the current scroll
8360 position into account when calculating the maximum canvas,
8361 otherwise the following scenario will fail: resize so that the
8362 scrollbars appear, use the scrollbars to scroll, resize again
8363 smaller, and now the canvas size is too small. Recalculate: when
8364 showing scrollbars make sure they start off at 0, and try to scroll
8365 the active control into view. Fixes #79540. HandleScrollBar: don't
8366 scroll anywhere if the scrollbar isn't visible.
8368 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8370 * ListView.cs: When focus changed, call Layout/Invalidate
8371 in the focused item to update the selected state (should show
8372 entire label when ListView is focused, and a part of it if is not).
8373 * ListViewItem.cs: When doing layout for LargeIcon, take into account
8374 for displaying the entire label not only the Focused state of the
8375 item, but also the Focused state of the ListView (match .Net
8378 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8380 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
8381 Implement UseWaitCursor.
8383 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8384 Applying contributed patch from Sergey Volk.
8386 * Clipboard.cs: Implement SetDataObject retry logic and new overload
8388 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
8390 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8392 * Control.cs: Implement DrawToBitmap.
8394 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8395 Applying contributed patch from Stefan Noack.
8397 * Control.cs: Add [Get|Set]AutoSizeMode.
8399 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8401 * MdiClient.cs: Unmerge menus when the last child is closed.
8403 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
8405 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
8406 * ToolStripManager.cs: Call Merge on DropDowns.
8409 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8411 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
8413 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
8414 visibility. We can't create forms visible, since we have to set the
8415 owner before making the form visible (otherwise Win32 will do
8416 strange things with task bar icons). The problem is that we set the
8417 internal is_visible to true before creating the control, so
8418 is_changing_visible_state is the only way of determining if we're
8419 in the process of creating the form due to setting Visible=true -
8420 this works because SetVisibleCore explicitly makes the form
8421 visibile afterwards anyways. Fixes #80775.
8423 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8425 * ThemeWin32Classic.cs: When drawing ListViewItems,
8426 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
8427 or LargeIcon _and_ item is not focused (match .Net behaviour).
8429 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8431 * Control.cs, Form.cs: Fix some obsolete method warnings.
8433 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
8435 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
8436 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
8438 2007-05-04 Andreia Gaita <avidigal@novell.com>
8440 * ContainerControl.cs: Fix active_control attribution when going
8441 up the parent chain so that the first parent container gets the control
8442 and the rest of the parent containers get the child containers (skips
8443 non-containers). Fixes #80729
8445 2007-05-04 Randolph Chung <tausq@debian.org>
8447 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
8450 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8452 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
8453 takes a size parameter, since the CreateParam's size isn't true for
8454 minimized forms. Fixes #81518,
8456 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8458 * Form.cs: Add OnDeactivateInternal.
8459 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
8461 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8463 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
8464 accessing the parent. Fixes #81508.
8466 2007-05-03 Chris Toshok <toshok@ximian.com>
8468 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
8469 2.0 block, pass listposition + 1 to ChangeRecordState when a row
8470 was added before the current listposition. Fixes the
8471 TestInsertRowBeforeCurrent unit test.
8473 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
8475 * Application.cs: Add RaiseIdle.
8476 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8477 XplatUIX11.cs: Implement RaiseIdle.
8479 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
8480 corcompare work: N - Z
8484 * ScrollableControl.cs
8488 * SystemInformation.cs
8490 * TableLayoutControlCollection.cs
8491 * TableLayoutPanel.cs
8496 * ToolStripComboBox.cs
8497 * ToolStripContainer.cs
8498 * ToolStripContentPanel.cs
8499 * ToolStripDropDown.cs
8500 * ToolStripDropDownItem.cs
8501 * ToolStripDropDownMenu.cs
8503 * ToolStripItemCollection.cs
8504 * ToolStripMenuItem.cs
8506 * ToolStripSplitButton.cs
8509 * TreeNodeCollection.cs
8510 * TreeNodeMouseHoverEventArgs.cs
8513 2007-05-01 Everaldo Canuto <everaldo@simios.org>
8515 * ContextMenu.cs: Add public method Show with alignment property to 2.0
8516 stuff. Thanks aatdark for the patch.
8518 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8520 * GridItem.cs: Implement 2.0 Tag property.
8522 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
8524 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
8525 count instead of Nodes.Length. [Fixes bug #81448]
8527 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8529 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
8532 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8533 corcompare work: A - M
8534 * BindingNavigator.cs
8539 * FlowLayoutPanel.cs
8545 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
8547 * Application.cs: Give toolstrips a chance to process mnemonics.
8548 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
8549 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
8550 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
8552 2007-05-01 Jackson Harper <jackson@ximian.com>
8554 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
8556 - Don't set the BoundsSpecified
8558 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8560 * Application.cs: When using the toolstrip shortcut mechanism, allow the
8561 message to pass through to a regular control if it hosted by a toolstrip.
8562 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8563 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
8565 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8567 * TextRenderer.cs: Use the flags argument when using the MeasureString
8570 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
8572 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
8573 the MDI menu item. [Fixes bug #81483]
8575 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
8577 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
8578 string. When setting Name to null, use zero-length string instead.
8580 2007-04-29 Andreia Gaita <avidigal@novell.com>
8582 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
8583 DeselectTab). Implement missing 2.0 TabPageCollection methods
8584 (Add, ContainsKey, RemoveByKey, IndexOfKey)
8586 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
8588 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
8590 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
8592 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
8593 Fixes bug #81479. Include details of exception when LoadFile fails.
8595 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
8597 * DrawListViewSubItemEventArgs.cs: Added missing setter
8599 2007-04-27 Andreia Gaita <avidigal@novell.com>
8601 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
8602 Hide methods (not complete). Implement missing 2.0 OnPopup event.
8604 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8606 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
8607 removed in ly last commit (it was breaking the Label edit feature).
8609 * ThemeWin32Classic.cs: When drawing a ListViewItem use
8610 StringAlignment.Near for LineAlignment (match .Net).
8612 2007-04-27 Andreia Gaita <avidigal@novell.com>
8614 * TabControl.cs: Change SetTab so it adds the tabpage to the list
8615 of controls if it isn't already there - was blowing up when doing
8616 tabcontrol.TabPages[i]=new TabPage().
8617 SetTab now does a replace by removing the page at the index.
8618 Add a new InsertTab method that inserts a page in a given index
8619 instead of replacing.
8620 Implements TabPageCollection.Insert(int, TabPage).
8622 2007-04-27 Chris Toshok <toshok@ximian.com>
8624 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
8625 internal handler that can be invoked from our subclasses.) Also,
8626 add a comment to PushData about how we need to fix it.
8628 * CurrencyManager.cs: tons of changes here. trying to get things
8629 matching the behavior of .net wrt event orders (ItemChanged,
8630 CurrentChanged, PositionChanged.) I've implemented a private .net
8631 symbol (ChangeRecordState) that appears in stack traces because
8632 it's actually easier to do this than to effective inline all its
8633 various behaviors at every call site.
8635 * RelatedPropertyManager.cs: guard against an exception here by
8636 not using parent.Current if the position is set to -1 (if the
8637 parent datasource is cleared, for instance).
8639 * Binding.cs: don't parse data in PushData (this might be wrong,
8640 but it jives with MS's behavior.) Also, don't call PushData when
8641 we get a CurrentChanged event.
8643 2007-04-27 Andreia Gaita <avidigal@novell.com>
8647 WebBrowserSiteBase.cs,
8648 HtmlDocument.cs: Added stubbed out classes, no real implementations
8651 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8653 * MainMenu.cs: In draw method without parameters call draw method with
8654 PaintEvent, another one (just rect) adjust rectangle and we dont need it
8655 as Rect property is already adjusted. Fixes #80694.
8657 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
8659 * Application.cs: Need to handle keyboard menu deselection here.
8660 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
8661 navigation, allowing keyboard to work on X11.
8662 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
8664 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8666 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
8667 menu bar. It fixes some drawing issues in menu bar.
8669 2007-04-27 Everaldo Canuto <everaldo@simios.org>
8671 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
8672 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
8673 when <alt> key is pressed.
8675 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8677 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
8678 example just set visible to false and make this prevent from other problems.
8679 In SystrayAdd always remove pending expose. Fixes #81072.
8681 2007-04-26 Marek Safar <marek.safar@gmail.com>
8683 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
8686 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8688 * ListView.cs: Added three missing 2.0 events and corresponding
8689 EventHandlers. Added the OwnerDraw property.
8690 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
8692 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8694 * DrawListViewItemEventArgs.cs
8695 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
8697 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
8699 * TextControl.cs: Fixed typo in constructor
8701 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
8703 * Application.cs: Create a shortcut path so that currently selected
8704 MenuStrips can intercept keyboard events without having focus.
8705 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
8706 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
8707 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
8708 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
8709 generate WM_SYSCOMMAND message in X11 for other platforms.
8710 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
8711 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
8712 * ToolStripSplitButton.cs: Add DefaultItem property.
8714 2007-04-26 Everaldo Canuto <everaldo@simios.org>
8716 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
8717 fixes some menu draw problem on Windows with border diferent from default
8718 it also fixes #81403.
8720 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8722 * Form.cs: Refactor WndProc into separate methods, just like Control is
8725 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8727 * Control.cs: set_Text: move the call to the driver into a seperate
8728 virtual method so that Form can override it.
8729 * MaskedTextBox.cs: Corcompare fixes.
8730 * Form.cs: Override UpdateWindowText and only update the styles if the
8731 form has been shown (fixes #81405).
8733 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8735 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
8736 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
8737 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
8738 the form lost focus or another control was clicked.
8740 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
8742 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
8745 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8747 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
8748 DrawListViewItemEventHandler.cs,
8749 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
8751 * X11Structs.cs: More ToString implementation.
8753 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
8755 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
8756 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
8758 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8760 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
8762 * FormCollection.cs: Don't add a form if it's already in the
8764 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
8765 according to behaviour and MSDN. The ownerWin32 is the active
8766 window at the moment when we call ShowDialog, not the context's
8767 main form (the context's main form may open another form that opens
8768 a form with ShowDialog, the win32 owner is the second form). Add
8769 and remove forms to the Application.OpenForms in other places to
8770 better match MS behaviour. Add an IsActive property that raises
8771 On(de)Activated only if the active state has changed (we were
8772 raising OnDeactivated before OnActivated while creating forms).
8773 * Application.cs: Refactor Enabling/Disabling of windows for modal
8774 dialog loops out to separate methods, and restore the thread
8775 context when we quit the method. Fixes #81407.
8777 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8779 * ListView.cs: In ItemControl.HandleClicks, also fire
8780 2.0 MouseClick or MouseDoubleClick events on the parent,
8781 not only the Click/DoubleClick events.
8783 2007-04-24 Andreia Gaita <avidigal@novell.com>
8785 * TableLayoutSettings.cs:
8786 - Added a GetControls method and a support structure to help the
8787 TypeConverter to enumerate the controls for serialization.
8788 - Added a new serialization constructor.
8789 - Added a isSerialized flag initialized to true on the
8790 serialization constructor so that the TableLayoutPanel.LayoutSettings
8791 setter does not throw the designed NotSupportedOperation exception
8792 when the object is built through deserialization.
8793 - Implemented GetObjectData
8795 * TableLayoutPanel.cs: Added check on LayoutSettings.
8797 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8799 * ListView.cs: Report Click and DoubleClick events to the parent
8800 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
8801 from breaking the click count state when using dialog forms (Control
8802 reports the clicks in a similar fashion). In the previous behaviour
8803 the last WM_LBUTTONUP message in a double click was sent to the
8804 ListView's form, instead of the ListView, which was breaking the click
8805 count for it. Fixes #80387.
8807 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8809 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
8811 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8813 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
8814 us from created dropdowns for menu items that do not have subitems.
8815 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
8816 Check HasDropDownItems before calling DropDown so a dropdown will not be
8817 created if it isn't needed.
8819 2007-04-24 Jackson Harper <jackson@ximian.com>
8821 * TreeView.cs: Set the first node to the selected node when we get
8822 focus if there is no selected node.
8824 2007-04-24 Andreia Gaita <avidigal@novell.com>
8826 * MimeIcon.cs: remove using blocks so that image streams are
8827 not disposed of. Fixes #80151
8829 2007-04-24 Jackson Harper <jackson@ximian.com>
8831 * TextBoxBase.cs: Fixup the height of textboxes when the control
8834 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
8836 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
8837 for each ToolStripItem when the parent's RightToLeftChanged is called.
8839 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8841 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
8843 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
8844 property, so that the setter can be overriden too.
8845 * TextBox.cs: Change GetContextMenuInternal() to use
8846 ContextMenuInternal.
8848 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8850 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8853 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8855 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8858 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8860 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
8861 avoid duplicate work. Mostily skeleton code, it's not working at
8864 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
8866 * NotifyIcon.cs : stub for MouseClick event
8867 * Application.cs: stub for SetUnhandledExceptionMode
8869 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8871 * BindingNavigator.cs : Initial (partial) implementation
8873 2007-04-23 Jackson Harper <jackson@ximian.com>
8875 * TreeView.cs: Do not create the treeview's handle when setting
8876 the scroll position.
8877 - ExpandAll needs to compute the scrollbars so it knows which
8878 position to set the bar too.
8880 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8882 2007-04-23 Jackson Harper <jackson@ximian.com>
8884 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8887 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
8889 * ToolStripItem.cs: Make GetImageSize internal.
8890 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8891 need to draw an item. Fixes a reported issue where images on menus
8892 that were not 16x16 were drawing incorrectly.
8894 2007-04-21 Miguel de Icaza <miguel@novell.com>
8896 * Padding.cs: Use the converter, fixes the resgen2 issue with
8899 2007-04-21 Jackson Harper <jackson@ximian.com>
8901 * TreeView.cs: Dont try to unhighlight the selected node if there
8902 isn't a selected node.
8904 2007-04-21 Jackson Harper <jackson@ximian.com>
8910 * TreeView.cs: Use the InternalBorderStyle property to set the
8911 initial border style, this forces the client rectangle to be sized
8914 2007-04-20 Jackson Harper <jackson@ximian.com>
8916 * TreeView.cs: Simplify scrolling to the last node after expanding
8918 - Fix some off by ones with setting the bottom.
8920 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8922 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8923 that. We were incorrectly doing it the other way around. Also,
8924 update ClientSize if we change the BorderStyle before the control
8927 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8929 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8930 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8931 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8932 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8933 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8934 Caption to CaptionHeight.
8935 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8936 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8937 and FixedFrameBorderSize to return value from current XplatUI driver.
8938 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8939 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8940 and FixedFrameBorderSize using win32 API. Renamed Caption to
8942 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8943 * SystemInformation.cs: Fixed typo in BorderSize.
8945 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8947 * XplatUI.cs: Added MenuAccessKeysUnderlined.
8948 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8949 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8951 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8952 value from XplatUI driver.
8953 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8954 SystemParametersInfo.
8955 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8957 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8960 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8962 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8964 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8966 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8968 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8970 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8971 MenuStrips that contain ToolStripSeparators.
8973 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8975 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8976 DefineStdCursorBitmap.
8977 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8978 has been created off a standard cursor. This is used to get a
8979 bitmap of the standard cursor when Draw or DrawStretched is called
8980 in order to draw the cursor.
8981 * X11Structs.cs: Added XcursorImage and XcursorImages.
8982 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8983 DefineStdCursorBitmap.
8984 * Cursors.cs: Update all relevant creations of Cursor to use the new
8985 internal constructor.
8987 2007-04-19 Jackson Harper <jackson@ximian.com>
8989 * TextBox.cs: Move the has_been_focused into the base control, so
8990 some of the text adding methods can manipulate it (probably time
8991 for a better name for this flag too).
8992 - Call a new version of selectall that doesn't scroll
8993 * TextBoxBase.cs: When we append text, if the document is empty,
8994 don't scroll. If the document has text already, we scroll to the
8995 end of the appended text.
8996 - When the text is changed, we reset the has_been_focused, so the
8997 next time the control gets focused, all the text is selected.
8999 2007-04-19 Jackson Harper <jackson@ximian.com>
9001 * TextControl.cs: Move the margins to the document, add a method
9002 so the margin sizes can be updated.
9003 * TextBoxBase.cs: When the border style is changed, update the
9006 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
9008 * Control.cs: Respect DefaultPadding.
9009 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9010 padding into account.
9011 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
9013 2007-04-19 Jackson Harper <jackson@ximian.com>
9015 * TextControl.cs: Oops, we need to use the ClientRect not the
9018 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9020 * ListView.cs: In ItemControl.ItemsMouseDown, take into
9021 account the double clicks when CheckBoxes are used and
9022 the pointer is inside the checkbox. Fixes part of #81191.
9024 2007-04-18 Jackson Harper <jackson@ximian.com>
9026 * TextControl.cs: Pressing the end key shouldn't move the caret
9027 past the line ending.
9028 * TextBoxBase.cs: We can still delete if we are in the line
9029 ending and the combine will just kill the existing line ending.
9031 2007-04-18 Jackson Harper <jackson@ximian.com>
9033 * TextControl.cs: We can't move lines, then invalidate their
9034 bounds, we need to get the old bounds and combine that with the
9036 * TextBoxBase.cs: Before combining two lines for a delete, we need
9037 to invalidate the area of the old line, since that will be moved
9038 in the combine operation.
9040 2007-04-18 Everaldo Canuto <everaldo@simios.org>
9042 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
9043 with transparent background. Fixes #80482.
9045 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
9047 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
9048 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
9051 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9053 * CreateParams.cs: Add a couple of helper methods and do a less string
9054 concatenation in ToString.
9055 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
9056 overload that takes a Control parameter, since this method may be
9057 called before a control is assigned to the hwnd (from
9058 CreateWindow), and update CreateWindow to use the new overload. In
9059 GetMenuOrigin subtract the title bar from the y position if the
9060 form has a window manager (since we're painting it and not X).
9061 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
9062 CreateParams to calculate the origin (since border sizes may vary).
9063 In ScreenToMenu only subtract the title height if we actually have
9065 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
9066 mdi children never have menus of themselves.
9067 * InternalWindowManager.cs: Implement menu handling like form does.
9068 Added GetMenuOrigin to calculate the menu origin, can't use the
9069 CreateParams from the form like normally since it's lying.
9070 * Hwnd.cs: Implement GetBorderSize better (in the sense more
9071 windows-like) and add Inflate and comparison operators to the
9072 Borders type. When calculating MenuOrigin and it's a form with a
9073 window manager, use the window manager to calculate it.
9075 2007-04-17 Chris Toshok <toshok@ximian.com>
9077 * Control.cs (CreateControl): turns out in 2.0 we don't need this
9078 OnBindingContextChanged thing here. It's only generated from
9079 ContainerControl.OnCreateControl. Fixes a newly written unit test
9080 - BindingTest.BindingContextChangedTest4.
9082 2007-04-17 Jackson Harper <jackson@ximian.com>
9084 * ScrollBar.cs: When setting values, make sure the current
9085 position stays within the new values range.
9087 2007-04-17 Chris Toshok <toshok@ximian.com>
9089 * Control.cs (CreateControl): talk about a bizarre corner case.
9090 Don't emit OnBindingContextChanged here if we're a parentless
9091 control (i.e. if we're a form.). Fixes
9092 BindingTest.BindingContextChangedTest2.
9094 2007-04-17 Everaldo Canuto <everaldo@simios.org>
9096 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
9097 from win32. Fixes #81255.
9099 2007-04-17 Everaldo Canuto <everaldo@simios.org>
9101 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
9102 already present in CalculateButtonTextAndImageLayout.
9104 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9106 * XplatUIX11.cs: When setting min/max size for a window we need to
9107 translate the coordinates to x coordinates. Create an overload of
9108 SetWindowMinMax that takes a CreateParams handling this, and change
9109 SetWMStyles to call this function (can't use Control.FromHandle in
9110 the SetWindowMinMax to get the control/CreateParams from the handle
9111 because the handle might not have been assigned to the control
9114 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
9117 if StateImageList is non-null and it has less than two items (match MS
9118 behaviour). Also, in HandleNavKeys handle the Space key, calling
9119 the new ToggleItemsCheckState method, which tries to change the
9120 checked state of the selected items. Fixes part of #81191.
9122 2007-04-16 Jackson Harper <jackson@ximian.com>
9124 * RichTextBox.cs: namespace cleanup.
9126 2007-04-16 Everaldo Canuto <everaldo@simios.org>
9128 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
9130 2007-04-16 Everaldo Canuto <everaldo@simios.org>
9133 * Control.cs: Call invalidate in set_Region.
9135 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
9138 2007-04-16 Jackson Harper <jackson@ximian.com>
9140 * TextBoxBase.cs: When enter is pressed, we need to update all
9141 lines below the current.
9143 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
9145 * MdiClient.cs: Implement implicit menu merging for MDI
9146 children. When a child form is active, if it has a menustrip
9147 and the parent form has a MainMenuStrip, automatically merge
9150 2007-04-15 Andreia Gaita <avidigal@novell.com>
9152 * TabControl.cs: Refactored sizing methods to not repeat
9153 code all over the place. Tab bounds are now calculated
9154 as if alignment is top and single line, and only when
9155 setting the bounds are the positions adjusted according
9156 to alignment. Replaced hardcoded positions, spacings and
9157 paddings by getting the values the ThemeEngine.
9160 * Theme.cs: Change TabControl properties and methods so
9161 that all start with TabControl*. Added more properties
9162 to help remove hardcoded values on tabcontrol.
9163 Add CPDrawBorder3D declaration so the Theming classes
9166 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
9168 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
9169 on the Theming namespace, and call the appropriate methods here.
9170 Change CPDrawBorder3D to public.
9172 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9174 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
9175 the control after firing the OnMouseUp event, instead of sending
9176 the message before the mentioned event. This is so we can match the
9177 MS behaviour. Fixes part of #80385.
9179 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
9181 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
9182 RightToLeft property.
9184 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
9186 * ToolStrip.cs: Add properties and internal methods to support merging.
9187 * ToolStripItem.cs: Add MergeAction and MergeIndex.
9188 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
9189 not trigger reparenting or layouts.
9190 * ToolStripManager.cs: Add Merge and RevertMerge methods.
9191 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
9192 is hosting the overflow menu.
9194 2007-04-13 Jackson Harper <jackson@ximian.com>
9196 * TextControl.cs: Set the line ending correctly for the first
9199 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
9201 * Theme.cs: Update GetMethod to get the new definition for
9202 KnownColors.Update (and fix theme color updates).
9204 2007-04-12 Everaldo Canuto <everaldo@simios.org>
9206 * MessageBox.cs: Fix some test and button position.
9208 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9210 * Form.cs: Consider the implicit controls in
9211 GetRealChildAtPoint. We need it since this method
9212 is called on Form when handling the some messages in
9213 WndProc, and need to consider those implicit ones too.
9216 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
9218 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
9219 if there are no ShortcutKeys set.
9220 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
9221 set, use it when painting.
9223 2007-04-12 Jackson Harper <jackson@ximian.com>
9225 * TextControl.cs: Fix some off-by-one issues in line duplication
9226 and insertion in the undo manager. Also, overwrite the first tag
9227 of a line on insert, if it is just a zero lengthed tag. This
9228 prevents us from getting an extra stranded tag at the beginning of
9231 2007-04-11 Everaldo Canuto <everaldo@simios.org>
9233 * Label.cs: Remove check for handle created in CalcAutoSize, we need
9234 to calculated proper size including when handle was not created yet.
9236 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9238 * MdiWindowManager.cs: When moving a form, allow the form to be moved
9239 when the mouse is outside of it's parent's client rectangle. Fixes
9240 #79982 (take 3, part 2).
9242 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9244 * X11Structs.cs: Add a few ToString() overrides.
9245 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
9246 the window location in a window-manager independent way. Reworked
9247 FrameExtents, it now actually works. Reworked AddConfigureNotify
9248 and ReparentNotify handling to use GetTopLevelWindowLocation
9249 instead of the earlier, more hacky solution. Reworked SetWMStyles,
9250 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
9251 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
9252 for all other windows (fixes #81281 part 1), a toolwindow is hidden
9253 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
9254 and generally refactored to do as few calculations as possible
9257 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
9259 * Theme.cs: Change "reflective-contract" between MWF and SD to
9260 minimize # of calls, avoid Color serialization and avoid updating
9261 every "known colors" each time a single one is updated.
9263 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
9265 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
9266 when not readonly and the text is explicitly set. Code style updates.
9267 * DataGridTableStyle.cs: Removed extra line.
9268 * DataGrid.cs: Code style updates. Removed extra whitespace.
9269 * DataGridColumnStyle.cs: Code style updates. Removed extra
9272 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9274 * XplatUIX11.cs: Added comment that "fixes" #80021.
9276 2007-04-09 Jackson Harper <jackson@ximian.com>
9278 * TextControl.cs: We don't need this -1 on the line count anymore.
9280 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
9282 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
9283 entered value to underlying type, and convert it back to a string to
9284 apply formatting. Modified GetFormattedValue to use TypeConverter
9287 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
9289 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
9290 Use SubItems property when we want to ensure there's at least one
9291 subitem. Modified SubItems property to ensure there's always at least
9292 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
9293 the NRE's reported by MS.
9295 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
9297 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
9298 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
9299 Spaces to tabs. Removed extra tabs.
9301 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
9303 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9304 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
9306 2007-04-06 Jackson Harper <jackson@ximian.com>
9308 * TextBoxBase.cs: When a delete removes a line, recalculate all
9309 lines below that line (they need to get offsets setup correctly)
9312 2007-04-05 Jackson Harper <jackson@ximian.com>
9314 * TextControl.cs: We need to invalidate across the width of the
9315 document when we are invalidating multiple lines.
9316 * TextBoxBase.cs: Don't delete into the line ending.
9318 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9320 * ListView.cs: Restore the check for the MouseHover event
9321 in ListView. It looks like the ListView fires more than one MouseHover
9322 event when HoverSelection is true _only_ in weird-corner scenarios, but
9323 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
9326 2007-04-05 Mike Kestner <mkestner@novell.com>
9328 * ListView.cs : raise MouseDown before updating selection.
9329 [Fixes #80373 tab 1&3]
9331 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
9333 * ToolStripRenderer.cs: Add static method to mirror image.
9334 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
9335 and RightToLeftAutoMirrorImage.
9336 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
9338 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
9340 * ToolStripSplitStackLayout.cs: Support Alignment property.
9341 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
9343 2007-04-05 Jackson Harper <jackson@ximian.com>
9345 * TextControl.cs: Move around the line endings when crossing line
9347 - When combining lines, strip the ending text off the first line.
9349 2007-04-05 Jackson Harper <jackson@ximian.com>
9352 * TextBoxBase.cs: Try to never move the cursor into the line
9355 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9357 * ToolStripItem.cs: Make sure we aren't firing mouse events when
9358 the item is disabled. Also add a few missing methods.
9360 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9362 * ListView.cs: We don't need the MouseEnter/MouseLeave check
9363 to fire just one MouseHover event when HoverSelection is true, since
9364 .Net does fire more than one MouseHover event in that scenario. Also,
9365 fix the selection in HoverSelection, by invoking UpdateMultiSelect
9366 if MultiSelect is true, instead of only setting ListViewItem.Selected.
9367 Finally, we need to reset the Hover logic in MouseMove, even when we
9368 don't have a selected item.
9370 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9372 * ToolStrip.cs: Add several missing methods, properties, and events.
9374 2007-04-04 Chris Toshok <toshok@ximian.com>
9376 * DataGridTextBoxColumn.cs: set the bounds of the text box to
9377 (0,0,0,0) in Commit, as MS does.
9379 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
9380 make sure we set CurrentRow on a row header click *before* calling
9381 Select. This moves the current cell (and the textbox) to the new
9382 row. The call to Select then hides the textbox, giving us the
9383 correct behavior. Fixes #80362.
9385 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
9386 (ListChangedHandler): reorder the position/current changed events,
9387 and call UpdateIsBinding in the ItemAdded case.
9389 * GridColumnStylesCollection.cs: add some columns events, one of
9390 which raises the CollectionChanged event.
9392 2007-04-04 Jackson Harper <jackson@ximian.com>
9394 * TextControl.cs: When we delete multiple selection lines
9395 invalidate the selection area, don't need to do that for single
9396 lines because the final update view will handle it.
9398 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
9400 * Control.cs: When we CreateControl, we need to also create all of the
9401 control's children. The child's OnLoad must also fire before the parent's
9402 OnLoad. Fixes the toolbox size in PDN.
9404 2007-04-04 Jackson Harper <jackson@ximian.com>
9406 * TextBoxBase.cs: When the user presses enter, insert a line
9407 ending into the text. (Maybe this would be a good spot for
9408 Environment.NewLine).
9409 * TextControl.cs: Remove undo manager hack, line endings get
9410 inserted properly now.
9412 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9415 - Remove unneeded parameters in UpdateCursor.
9416 - Fix UpdateCursor to check if menu is active.
9417 - Call UpdateCursor when menu deactivate my click.
9418 [Fixes remaining issues from #80410]
9420 2007-04-04 Everaldo Canuto <everaldo@simios.org>
9422 * Control.cs: GetRealChildAtPoint method added, it make an
9423 recursive child control search for the point.
9425 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
9428 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
9430 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9432 * Form.cs: Fix mouse position when send back mouse event after closes
9435 2007-04-03 Everaldo Canuto <everaldo@simios.org>
9437 * Form.cs: Simplify the BUTTONDOWN for active tracker.
9439 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9441 * Control.cs: Fix an issue where if a user resized a control inside
9442 a sizing method like OnResize, we would overwrite their explicit
9443 value. Also, only call DefaultSize once in the constructor instead
9444 of 4 times. Also, do not call SetBoundsCore from SetBounds if
9445 nothing actually changed.
9447 2007-04-03 Jackson Harper <jackson@ximian.com>
9449 * TextControl.cs: Don't attempt to copy text for lines with no
9450 text in them (technically this shouldn't happen, but we aren't
9451 always inserting line endings when we should be).
9453 2007-04-03 Jackson Harper <jackson@ximian.com>
9455 * TextBoxBase.cs: Calculate the scrollbars before calculating the
9456 document, because this sets some of the document size properties
9459 2007-04-03 Jackson Harper <jackson@ximian.com>
9461 * TextBoxBase.cs: We need to calculate maximums even if this is
9462 not a multiline control, because the maxs are used for scrolling.
9463 - Display the caret after doing a page up/down, we need to
9464 manually display it because a proper CaretMoved event isn't
9465 triggered (this is because of the way the math is done to
9466 determine how far to scroll).
9468 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
9470 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
9471 (ToolBar was relying on SetBoundsCore to default the values sent
9472 base off of BoundsSpecified.)
9474 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9476 * DateTimePicker.cs: Change Text so that when a null value or empty
9477 string is assigned to the test we always raise ValueChanged and
9478 TextChanged (earlier implementation would only raise ValueChanged
9479 if the current date value was different from DateTime.Now).
9481 2007-04-03 Andreia Gaita <avidigal@novell.com>
9483 * ButtonBase: Call update after invalidation, fixes #80194
9485 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9487 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
9490 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9492 * XplatUIX11.cs: SetWMStyles: If the control is a form with
9493 FormBorderStyle = None, don't give the window any decorations.
9496 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9498 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9499 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
9500 to check for is a mix of several styles (such as WS_CAPTION for
9502 * Control.cs: Don't paint an area bigger than the client area when
9503 painting the background colour. Add an internal GetCreateParams.
9504 Update calls to XplatUI.CalculateWindowRect due to API change.
9505 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
9506 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
9507 the size if it hasn't been handled by any windows. When creating
9508 and moving windows, X wants the location of the entire window, but
9509 the size of the client window, so add
9510 TranslateClientRectangleToXClientRectangle,
9511 TranslateWindowSizeToXWindowSIze and
9512 TranslatedXWindowSizeToWindowSize to cope with this, and call them
9513 before every window creation and move. Update CalculateWIndowRect
9514 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
9515 In AddConfigureNotify don't do anything if the hwnd is a zombie
9516 (fixes the BadWindow we were getting while running the tests),
9517 always calculate the offsets when it's a parentless window, not
9518 only when reparented, and translate the window size, since we're
9519 getting the client size of the whole window, excluding entire
9521 * Theme.cs: Added BorderSizableSize.
9522 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9523 anymore. Update calls to XplatUI.CalculateWindowRect due to API
9525 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
9526 change. Fake the window styles here instead of in XplatUIWin32 so
9527 that all back-ends get the same window styles (and it's Form that's
9528 deciding when to use wm, not the Win32 backend anyways)
9529 * Hwnd.cs: Completely reworked GetWindowRectangle and
9530 GetClientRectangle - they are now passed a CreateParams and they
9531 only use Style and ExStyle to determine the rectangles (they should
9532 now work just like Win32AdjustWindowRectEx - though quite a few
9533 special cases are probably missing). They should also be 100%
9534 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
9535 == rect), and all numbers (borders, menu sizes) are taken from the
9536 current theme. Added a GetBorders helper function that will return
9537 the borders for any given CreateParams (including captions and
9538 menus), and GetBorderSize that returns the given border size only.
9539 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9540 Hwnd.GetClientRectangle.
9542 2007-04-02 Chris Toshok <toshok@ximian.com>
9544 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
9545 logic between the values we present to the user and the values
9546 which are stored in the column's property. Also, don't call
9547 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
9549 2007-04-02 Jackson Harper <jackson@ximian.com>
9551 * TextBoxBase.cs: Scroll faster!
9553 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9555 * StatusStrip.cs: Layout fixes for PDN.
9556 * ToolStrip.cs: Set item's available to true, and placement to main when
9558 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
9559 changing in setter before doing any work, add InternalVisible.
9560 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
9561 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9564 2007-04-02 Jackson Harper <jackson@ximian.com>
9566 * TextBox.cs: LBUTTON does not make the textbox select all of it's
9569 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9571 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
9572 Makes ToolStripComboBoxes show up again.
9574 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9576 * ListView.cs: Add a hover_pending field in ListView
9577 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
9578 cycle (we are resetting the MouseHover logic in XplatUI
9579 to handle HoverSelection). Fixes #80429.
9581 2007-04-02 Jackson Harper <jackson@ximian.com>
9583 * TextControl.cs: Make sure the attributes get set on the last
9585 - Still have to do the end tag if we have stepped all the ways to
9588 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
9590 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
9591 on an internal libgdiplus call when the information is already
9592 available via the public API.
9594 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9596 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
9597 control is removed from a control collecftion.
9598 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
9599 Fixes FormPropertyTest (failed on rare occasions).
9600 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
9601 of Win32SetParent (when changing from no parent to a parent it
9602 might add the new parent's location in screen coordinates to this
9604 * Form.cs: Rework ChangingParent once again, now the handle is
9605 recreated whenever a FormWindowManager is added or removed (that is
9606 whenever a normal form is parented or abandoned). Also change
9607 CreateParams so that all non-toplevel windows always get the
9608 specified sice (StartupPosition is never considered for
9609 non-TopLevel forms).
9610 * ContainerControl.cs: Add ChildControlRemoved, the container control
9611 needs to be notified when a control is removed from it's
9612 collection, in the case the removed control is the active control.
9614 2007-04-02 Jackson Harper <jackson@ximian.com>
9616 * RichTextBox.cs: Use the new methods for setting the font and
9617 color, these methods set the specified attribute without
9618 overriding the other attributes.
9620 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
9622 * ToolStripPanel.cs: Fixes for better layouts in PDN.
9624 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
9626 * TextBox.cs: Added internal ChangeBackColor method to special-case
9627 Color.Empty. Added check for invalid ScrollBars value.
9628 * TextBoxBase.cs: Added internal ChangeBackColor method.
9629 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
9630 internal ChangeBackColor method to special-case Color.Empty. Added
9631 check for invalid ScrollBars value.
9633 2007-03-30 Everaldo Canuto <everaldo@simios.org>
9635 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
9637 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9639 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
9640 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
9641 [Based on submitted patch from Olivier Duff.]
9643 2007-03-30 Jackson Harper <jackson@ximian.com>
9645 * TextBox.cs: Only select all on initial focus if the user has not
9646 specified a selection area.
9648 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
9650 * UserControl.cs: Override CreateParams.
9652 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9656 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9657 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
9658 check for is a mix of several styles (such as WS_CAPTION for instance).
9659 * Control.cs: Don't paint an area bigger than the client area when painting
9660 the background colour. Add an internal GetCreateParams. Update calls to
9661 XplatUI.CalculateWindowRect due to API change.
9662 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
9663 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
9664 hasn't been handled by any windows. When creating and moving windows, X
9665 wants the location of the entire window, but the size of the client
9666 window, so add TranslateClientRectangleToXClientRectangle,
9667 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
9668 to cope with this, and call them before every window creation and move.
9669 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
9670 removing DeriveStyles). In AddConfigureNotify don't do anything if the
9671 hwnd is a zombie (fixes the BadWindow we were getting while running the
9672 tests), always calculate the offsets when it's a parentless window, not
9673 only when reparented, and translate the window size, since we're getting
9674 the client size of the whole window, excluding entire window.
9675 * Theme.cs: Added BorderSizableSize.
9676 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9677 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
9678 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
9679 Fake the window styles here instead of in XplatUIWin32 so that all
9680 back-ends get the same window styles (and it's Form that's deciding when
9681 to use wm, not the Win32 backend anyways)
9682 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
9683 they are now passed a CreateParams and they only use Style and ExStyle
9684 to determine the rectangles (they should now work just like
9685 Win32AdjustWindowRectEx - though quite a few special cases are probably
9686 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
9687 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
9688 sizes) are taken from the current theme. Added a GetBorders helper
9689 function that will return the borders for any given CreateParams
9690 (including captions and menus), and GetBorderSize that returns the given
9692 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9693 Hwnd.GetClientRectangle.
9695 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
9697 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
9698 layout of the mdi children is handled by CreateParams. Fixes
9701 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9703 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
9706 * Form.cs: When active tracker mouse down is not processed, send event
9707 back to control inside mouse position. [Fixes #81227]
9709 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9711 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
9712 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
9713 stealing focus from the active form on Windows. (Control will be made
9714 visible in ShowWindow.)
9716 2007-03-29 Mike Kestner <mkestner@novell.com>
9718 * ImageList.cs : add internal Changed event.
9719 * ListView.cs : hook up to StateImageList.Changed to perform
9720 invalidations when the the state icon list changes. [Fixes #81191]
9722 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
9724 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
9725 to prevent tooltips from stealing focus from the active form on Windows.
9727 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9729 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
9731 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
9733 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9735 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
9738 2007-03-29 Jackson Harper <jackson@ximian.com>
9740 * TextControl.cs: When deleting text from non multiline textboxes,
9741 we need to update the entire document, because line offsets will
9744 2007-03-29 Everaldo Canuto <everaldo@simios.org>
9746 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
9747 added to theme, now we can create themes that uses diferent notify engines
9748 like notification-daemon from galago project or growl for Mac OS.
9750 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9752 * NotifyIcon.cs: Prevent Balloon to show in task bar.
9754 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9756 * XplatUIX11.cs: Prevent system to open more than one balloon.
9758 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
9759 some compiler warning messages.
9761 2007-03-28 Everaldo Canuto <everaldo@simios.org>
9765 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
9767 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
9768 implemented, this methods is used by NotifyIcon.BalloonWindow class.
9770 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
9773 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9775 * ListViewItem.cs: Forgot to make Invalidate internal.
9777 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9779 * ListView.cs: Add a InvalidateSelection method to
9780 invalidate methods which are currently selected, and call
9781 it when setting FullRowSelect and HideSelection, instead of
9784 2007-03-28 Chris Toshok <toshok@ximian.com>
9786 * XplatUIX11.cs (UnmapWindow): reindent this block.
9788 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
9789 the selection_start if we're moving the selection (that is, not
9790 extending it). Fixes bug #80461.
9792 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9794 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
9795 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
9796 create private ControlCollection.
9798 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9800 * Control.cs: We need to call OnVisibleChanged for our implicit
9801 children as well as our normal children. Fixes scrollbars in
9802 comboboxes not showing up.
9804 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9806 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
9807 the check for IsHandleCreated first. The check in CreateHandle is not
9808 good enough because CreateHandle can be overriden, and the override
9809 should not be called if the handle is already created.
9811 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
9813 * ToolStrip.cs: Remove MonoTODO for tooltips.
9814 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
9815 * ToolStripContainer.cs: Add custom ControlCollection class.
9816 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
9817 * ToolStripDropDown.cs: Add some missing properties/methods.
9818 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
9819 * ToolStripItem.cs: Remove MonoTODO for tooltips.
9820 * ToolStripManager.cs: Add IsShortcutDefined.
9821 * ToolStripOverflow.cs: Override LayoutEngine.
9822 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
9823 * ToolStripSeparator.cs: Add ImageKey.
9825 2007-03-28 Jackson Harper <jackson@ximian.com>
9827 * TextControl.cs: If a char delete removes a line ending, we need
9828 to update the ending style.
9829 - Make sure the line ending calcs get called.
9831 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9833 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
9834 it was making the new code not work. Fixed a typo in the new code
9835 as well. Fixes #79826.
9837 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9840 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
9841 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
9842 - SystrayBalloon method implemented.
9843 [Add support for notifyicon balloon on win32, #79149]
9845 2007-03-27 Mike Kestner <mkestner@novell.com>
9847 * ThemeWin32Classic.cs : update StateImageList selection to mirror
9848 the ms behavior when only one image is added to the list.
9851 2007-03-27 Jackson Harper <jackson@ximian.com>
9853 * TextControl.cs: Improvements to non multiline line ending
9856 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9858 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
9860 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9863 - Balloon message handling added.
9864 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
9866 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9867 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
9868 to SystrayBalloon to me like other Systray method, also a
9869 handle parameter added.
9871 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9873 * ListView.cs: Show scrollbars even when items.Count == 0
9874 but the columns Width is bigger than the ListView.Width.
9875 Also, when columns.Count == 0 set layout_wd and layout_ht
9876 to the ClientRectangle values, so we don't show any scrollbar
9879 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9881 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9883 2007-03-27 Jackson Harper <jackson@ximian.com>
9885 * RichTextBox.cs: The RTF library decodes the text properly for us
9888 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9890 * ListView.cs: Display HeaderControl even when columns.Count == 0.
9891 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9892 ListView header (HeaderControl), instead of Control.BackColor.
9894 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9896 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9897 Fixes tab control issues where controls would not show up because they
9898 never received their OnVisibleChanged call.
9900 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9902 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9905 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9907 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9908 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9909 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9910 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
9911 the handle. Fix WindowState by using the internal variable until we are
9912 sure that we've been shown.
9913 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9917 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
9919 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9920 (at least borders). Fixes #79386 on Linux (with a small difference
9921 in behaviour: when trying to resize a caption-less window metacity
9922 shows the sysmenu. Resizing is still possible though).
9923 * XplatUIWin32.cs: When setting window styles send request an extra
9924 WM_NCCALCSIZE when it's a form without title (due to no text and no
9925 caption), since Win32 seems to calculate it wrong the first time we
9926 get the message, though the second time things work as they should.
9927 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9928 newly reparented window might show up unparented. Update
9929 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9930 there's no title text. Fixes #79386.
9932 2007-03-27 Mike Kestner <mkestner@novell.com>
9934 * ListBox.cs : don't perform invalidations if the handle hasn't been
9935 created. [Fixes #80753]
9937 2007-03-27 Mike Kestner <mkestner@novell.com>
9939 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9942 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9944 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
9945 needed to implement Balloon.
9947 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949 * ListViewItem.cs: In the constructors that take
9950 an array of strings, don't use ListViewSubItemCollection.AddRange
9951 method to add items, since we need to have a different behaviour (in
9952 the constructors we add an item for each null string, opposed to
9953 the behaviour of AddRange, which adds nothing).
9955 2007-03-26 Andreia Gaita <avidigal@novell.com>
9957 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9959 2007-03-26 Jackson Harper <jackson@ximian.com>
9961 * TextControl.cs: Draw and measure line endings when in non
9963 - When searching the text, count the end of the last line as a
9966 2007-03-26 Jackson Harper <jackson@ximian.com>
9968 * RichTextBox.cs: The selection_start and selection_end don't
9969 really track the correct tags for the selection. So we'll manually
9970 compute the correct tag here.
9972 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9974 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9975 and Continuous styles. Fixes #79469.
9977 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9979 * ToolStrip.cs: Implement Tooltips.
9980 * ToolStripItem.cs: Create internal method for determining tooltip.
9982 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9984 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9986 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9988 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9989 it prevents a problem thak keeps icon visible after application
9992 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9994 * NotifyIcon.cs: Balloon properties and methods created.
9996 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9997 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9999 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
10001 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10003 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10005 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
10006 parameter indicates which aspects were explicit/user-set.
10007 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10009 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10011 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10012 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10013 SmallChange, and Value (2.0).
10014 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10016 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10018 * ListView.cs: Always set item_control.Width in LayoutDetails
10019 if View is Details. Setting it later in CalculateScrollBars
10020 in a not-so-corner scenario (the sum of columns width is
10021 not bigger than the ListView width when handle is created, and then
10022 that sum gets bigger by increasing the width of the columns)
10023 causes a very weird recursion path (which shouldn't be happening,
10024 since header_control sets it in CalculateScrollBars too). This bug
10025 appeared after Chris' fixes for handle created issues, so probably
10026 it's related to some handle-creation time.
10028 2007-03-23 Chris Toshok <toshok@ximian.com>
10030 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10031 case where there's an add row, just so we don't end up in a case
10032 where it's not displayed (this happens when the row is partially
10033 obscured). Fixes bug #79574.
10035 2007-03-23 Jackson Harper <jackson@ximian.com>
10039 * RichTextBox.cs: Preserve line endings in the lines text buffer,
10040 also added an enum that represents the line ending type.
10042 2007-03-23 Andreia Gaita <avidigal@novell.com>
10044 * NumericUpDown.cs: Fix logic so Text and Value properties are not
10045 messed with in every method call, but only from DownButton,
10046 UpButton, UpdateEditText() and ValidateText. Fixes #80346
10048 2007-03-23 Chris Toshok <toshok@ximian.com>
10050 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
10051 format objects if the format spec is "". Fixes bug #80889.
10053 2007-03-22 Miguel de Icaza <miguel@novell.com>
10055 * ToolStripPanel.cs (Join): added stubs to build PDN3
10057 * Control.cs (AutoScrollOffset): Add.
10059 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
10060 property, its only implemented for Win32, on X11 it defaults to
10061 some hardcoded value.
10063 * ToolStripItem.cs (AllowDrop): Add property
10065 2007-03-22 Mike Kestner <mkestner@novell.com>
10067 * ListView.cs : in FullRowSelect Details mode, only enable box
10068 selection if the user clicks over the "item" column outside of the
10069 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
10071 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10073 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
10074 handle is not created yet.
10075 * Form.cs: Select: Don't call CreateHandle if the handle is already
10076 created, avoids a stack overflow on Windows when we are recreating
10078 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
10079 they are made visible, and override AfterTopMostControl to keep
10080 them on top when other controls are brought to front.
10081 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
10082 or force_*scroll_visible is true (old implementation always shows
10083 scrollbars when needed, no matter what auto_scroll was set to).
10084 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
10085 IsHandleCreated check.
10087 2007-03-22 Andreia Gaita <avidigal@novell.com>
10089 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
10090 row or col separator.
10091 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
10093 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10095 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
10097 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10099 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
10100 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
10101 every time. Fixes #80410.
10103 2007-03-22 Chris Toshok <toshok@ximian.com>
10105 * BindingSource.cs (AddNew): partially implement.
10107 remove a couple of NotImplementedException's
10108 to get bug #81148 closed.
10110 2007-03-22 Everaldo Canuto <everaldo@simios.org>
10115 - UpdateCursor method added to update the screen cursor.
10116 - GetAvailableCursor method added to return cursor for enabled tree,
10117 it searches for cursor on control and it's parent's for enabled control.
10118 - Call UpdateCursor method on setter of Cursor property.
10119 - On setter of Enabled call UpdateCursor when it is false, we need to
10120 change cursor to normal (or to this parent cursor) because cursor
10121 setting theres no effect to disabled controls.
10122 - Some minor source changes to follow the coding style guidelines.
10124 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
10127 2007-03-22 Chris Toshok <toshok@ximian.com>
10129 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
10132 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10134 * XplatUIX11.cs: Implement default locations for forms.
10135 * Form.cs: Completely rework startup location for forms. Fixes #79964.
10136 * Hwnd.cs: Add previous_child_startup_location (to track the current
10137 startup location for any child forms of the current form) and
10138 previous_main_startup_location (to track the startup location for
10139 the current toplevel form).
10141 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10143 * Control.cs: Don't trigger a layout if an implicit control is added
10144 that isn't visible. Also, don't notify the owner when an implicit control
10145 is added. (Owners shouldn't even know about their implicit controls.)
10147 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10149 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
10150 to save some re-layouts.
10152 2007-03-21 Everaldo Canuto <everaldo@simios.org>
10154 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
10157 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
10159 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
10160 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
10162 2007-03-21 Mike Kestner <mkestner@novell.com>
10164 * ListView.cs : disable selection update for non-left button clicks
10165 with mods and over selected items. [Fixes #80524]
10167 2007-03-20 Jackson Harper <jackson@ximian.com>
10170 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
10173 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10175 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
10176 very probably a more complicated calculation there. Update the
10177 textbox' ForeColor and BackColor when the ComboBox' colors are
10178 changed. Change the border change in LayoutComboBox to only affect
10179 the textbox, not all the calculations there. Seems to fix most of
10182 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10184 * ComboBox.cs: Handle Home and End keys as well as all combinations of
10185 modifiers + navigation keys as input keys, enables advanced text
10186 selection in the combobox (like Shift+Left Arrow for instance).
10187 ComboTextBox now overrides Focused and returns whatever
10188 ComboBox.Focused returns, since it really should be focused
10189 whenever the ComboBox is. Fixes #80795. Also make the border around
10190 the text box one pixel bigger, as mentioned in #79436.
10192 2007-03-20 Jackson Harper <jackson@ximian.com>
10194 * TreeView.cs: Don't offset the images, this was causing some
10195 artifacts when expanding/collapsing with images that were the
10196 exact height of the treenode.
10198 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10200 * TrackBar.cs: Query the theme for the correct value when the mouse
10201 moves and the thumb is pressed.
10202 * Theme.cs: Added TrackBarValueFromMousePosition
10203 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
10204 implementation was updating the trackbar value when drawing, now
10205 the drawing methods only draw. Fixes #80900. Refactored the
10206 calculations out to TrackBarValueFromMousePosition and
10207 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
10208 according to the mouse position whenever it wants to. Changed the
10209 light coloured pen when drawing the thumb from ControlLight to
10210 ControlLightLight, because the ControlLight is the same colour as
10211 the background so the 3D effect is lost.
10213 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10215 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
10216 defined. Fixes #80784.
10218 2007-03-20 Marek Habersack <mhabersack@novell.com>
10220 * ContextMenuStrip.cs: align with the change introduced in
10223 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10225 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
10226 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
10229 2007-03-19 Chris Toshok <toshok@ximian.com>
10231 * Control.cs (WmPaint): don't make use of the Handle property
10232 after an event is emitted, as the user could have closed the
10233 form/destroyed the control. Store the Handle in a local variable
10234 and make use of that. Fixes bug #80768.
10236 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10238 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
10239 behavior in X11 environments.
10241 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10243 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
10244 because on setter of topmost we dont call SetTopmost when handle is not
10247 2007-03-20 Jackson Harper <jackson@ximian.com>
10249 * TextControl.cs: Need to use SelectionLength () not
10250 selection_length, since that var is reset to -1.
10251 - Draw the caret when we don't have focus.
10252 * TextBox.cs: The selectall actually doesn't occur until the first
10254 * TextBoxBase.cs: Need to update the caret position after a
10257 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10259 * ListView.cs: Enable scrolling when using Tile view.
10261 2007-03-20 Everaldo Canuto <everaldo@simios.org>
10265 * XplatUIDriver.cs: Abstract SetOwner method created.
10267 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
10268 must be implemented and was masked as todo.
10270 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
10273 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
10274 cheking for null owner to remove transient. The SetTopmost will be change
10277 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
10278 SetTopmost. Now owned forms will work properly in win32 and X11.
10280 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10282 * MdiWindowManager.cs: Update function name.
10283 * Form.cs: After closing a form MdiParent is always null.
10284 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
10285 better what it should do: necessary book-keeping when the form is
10286 closed, it should not close the form itself.
10288 2007-03-19 Andreia Gaita <avidigal@novell.com>
10290 * ListViewItem.cs: Fix back and fore color. The subitems only
10291 use their own colors if they are set, otherwise use the listview's
10292 colors. Don't set default colors on constructor for subitem.
10295 2007-03-19 Mike Kestner <mkestner@novell.com>
10297 * ListView.cs : make box selection for Details views with
10298 FullRowSelect conform to MS behavior when clicking in the "item"
10299 column and clicking outside the defined columns.
10300 [Fixes case 5-6 of #80374]
10302 2007-03-19 Chris Toshok <toshok@ximian.com>
10304 * ScrollableControl.cs: create the controls from within the ctor,
10305 but don't actually add them until our handle is created. this
10306 fixes a NRE possibility jpobst found (if you override OnLayout in
10307 a subclass, it's called before your ctor). Also, add a
10308 IsHandleCreated guard to UpdateSizeGripVisibility as well.
10310 2007-03-19 Jackson Harper <jackson@ximian.com>
10312 * TextBox.cs: Reduce the amount of invalidation we do.
10313 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
10314 some of them are true by default on MS.
10315 - Add some functions to reduce the amount of invalidates we do.
10316 * TextControl.cs: Less invalidation.
10318 2007-03-19 Chris Toshok <toshok@ximian.com>
10320 [ Fixes #81773, and *seems* to fix #81553 as well ]
10322 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
10323 AccumulateDestroyedHandles. We need to do it *after* we send
10324 WM_DESTROY, as the user's code can access Control.Handle in
10325 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
10326 move the WM_DESTROY/zombie handling to before the call to
10327 XDestroyWindow. For some reason without this ordering
10328 FormTest.RecreateHandle hangs. This ordering is semantically
10329 equivalent, however, as XDestroyWindow is async anyway.
10331 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
10333 * RichTextBox.cs: Reset backcolor_set after setting default.
10335 2007-03-19 Chris Toshok <toshok@ximian.com>
10337 * ScrollableControl.cs: the scroll position should not effect the
10338 canvas size. commit patch from georgegiolfan@yahoo.com, which
10339 fixes some really bizarre behavior on resizing. Fixes bug #80778.
10341 2007-03-19 Chris Toshok <toshok@ximian.com>
10343 * ScrollableControl.cs: clean this up a bit. create the
10344 scrollbars in the ctor and just show/hide them as needed. Also,
10345 make hscroll_visible/vscroll_visible internal to Recalculate, and
10346 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
10347 everywhere else. This seems to fix the scrollbars appearing
10348 beneath the content for me (i have *no* idea why that is,
10351 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
10353 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
10354 some redundacy for stuff in Anchor and Dock that base will take care of.
10357 2007-03-19 Mike Kestner <mkestner@novell.com>
10359 * ListView.cs : make box selection for Details views without
10360 FullRowSelect dependent on the text bounds, not item bounds.
10361 * ListViewItem.cs : add an internal property to obtain the TextBounds
10362 in Details view. [Fixes case 1-4 of #80374]
10364 2007-03-19 Andreia Gaita <avidigal@novell.com>
10366 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
10367 we're < 2.0. #78448 && #80316
10369 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
10371 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
10372 have the same style available as the previously selected one. Also,
10373 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
10375 2007-03-19 Jackson Harper <jackson@ximian.com>
10377 * TextControl.cs: Add an alignment property that all new lines
10379 - Make sure to use the align shift when calculating the line's X
10381 * TextBox.cs: Set the alignment on the document as well as on all
10382 the document lines.
10384 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10386 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
10387 throw if setting the parent of an mdichild that already has an
10388 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
10389 AssemblyProductAttribute in the assembly, use the type's namespace (as
10390 MS seems to do). CreateControl: don't create the handle if the control
10391 is not visible (according to MS behaviour and spec). SetTopLevel: Only
10392 create handle if the control is not a form. Change FocusInternal to
10393 virtual so that it can be overriden by Form.
10394 * TextBox.cs: Update call to FocusInternal.
10395 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
10396 form is not a toplevel form when it's a mdi child, so update is_toplevel
10397 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
10398 hasn't been created. Show (IWin32Window): Don't allow this overload for
10399 toplevel windows. CenterToParent/CenterToScreen/Select: create the
10400 handle as MS does. SetVisibleCore: if called on a MdiChild and the
10401 parent isn't visible yet, save the visibility and restore it when the
10402 parent is made visible.
10403 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
10404 methods, since the visibility of the scrollbars can be changed from
10405 several places, not only from AutoScroll.
10408 2007-03-19 Jackson Harper <jackson@ximian.com>
10410 * RichTextBox.cs: Enable shortcuts by default.
10411 * TextBoxBase.cs: Add conditional shortcuts.
10413 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10415 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
10417 2007-03-19 Chris Toshok <toshok@ximian.com>
10419 [ Fixes bug #80604]
10421 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
10422 swallow the message we're waiting on, instead of delivering it, as
10423 this is only used for the WM_SHOWWINDOW raised from
10424 MapWindow/UnmapWindow, and the message needs to be generated
10425 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
10426 before doing the Map/Unmap. Also make sure that the Hwnd is still
10427 alive after the message has been handled.
10429 *before* the window is shown.
10431 * Control.cs (CreateControl): guard a few more things inside the
10432 if (!is_created) block, as we might end up being called again -
10434 (WmShowWindow): call CreateControl if we're showing the control.
10436 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10438 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
10439 controls without a handle if they have any parent with a handle. In
10440 Dispose add a check whether the handle is created or not before
10441 calling BeginInvoke, this removes the need of the extra disposing
10442 parameter (which was bogus anyway since it didn't prevent the
10443 invoke from happening, it only skipped the check for an existing
10444 handle, meaning that the invoke would call on an inexistent
10447 2007-03-19 Everaldo Canuto <everaldo@simios.org>
10449 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
10450 appears in taskbar.
10452 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10455 - Fixed a problem that dont show help button for messages with 3 buttons.
10456 - Refactory button size and position calculations, now dont use fixed
10457 values, also fixed button sizes (#80043) and form's border space.
10458 - AddButton method created, now all other AddButton methods call this one.
10459 - Some other source code cosmetic changes.
10461 2007-03-18 Jackson Harper <jackson@ximian.com>
10463 * RichTextBox.cs: Don't do this all fonts must match check if
10464 there is only one char selected.
10466 2007-03-18 Jackson Harper <jackson@ximian.com>
10468 * TreeView.cs: ScrollWindow works properly now, so we don't need
10469 to screw around with the scroll area. This fixes some artifacts
10470 when expanding and collapsing.
10472 2007-03-18 Jackson Harper <jackson@ximian.com>
10474 * TextBoxBase.cs: Allow updating the selection position when the
10475 cursor is outside the textarea, but we have a capture.
10476 * TextControl.cs: A special case for when the cursor is outside
10477 the bounds of the TB.
10479 2007-03-18 Jackson Harper <jackson@ximian.com>
10481 * TextBoxBase.cs: Remove image pasting code for now. There is no
10482 way to get an image on the clipboard right now anyways.
10484 * RichTextBox.cs: Use the new RTF Picture class for pictures.
10486 2007-03-18 Everaldo Canuto <everaldo@simios.org>
10489 - Set window properties in constructor intead of on CreateParams.
10490 - Remove topmost from Window ExStyle.
10491 - Set ShowInTaskbar to false.
10492 - Set form border to FixedDialog.
10493 - Some cosmetic changes and remove unneeded comments.
10494 - It fixes itens 2,3 and 4 of bug #80043.
10496 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
10498 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
10499 none was explicitly set. Fixes part of bug #79949.
10501 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10503 * ToolStripComboBox.cs: Add AutoComplete*.
10505 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
10507 * ToolStripComboBox.cs: Add FlatStyle.
10509 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10511 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
10512 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
10514 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10516 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
10517 CheckBox.cs, RadioButton.cs, BindingSource.cs,
10518 DataGridColumnStyle.cs: Remove warnings.
10520 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10522 * Menu.cs: MergeMenu: Check menu argument for null before looping over
10524 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
10525 visibility of mdi child forms. FormSizeChangedHandler: update the
10526 maximized size if size has changed while maximized.
10527 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
10528 creating the handle.
10529 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
10530 avoid creating the handle if not created.
10531 * XplatUI.cs: Update debug output.
10532 * XplatUIStructs.cs: Added ToString's for a couple of structs.
10534 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
10536 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
10538 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
10539 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
10540 Implement keyboard shortcuts.
10542 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10544 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
10545 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
10546 ColorDialog and all derived classes.
10548 2007-03-15 Everaldo Canuto <everaldo@simios.org>
10550 [ Fixes bug #79828 ]
10553 - Rename ToolBarButtonInfor to ToolBarItem.
10554 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
10555 - Maintain an array of ToolBarItem, used instead of ToolBarButton
10556 collection to be able add same button more than one time on a toolbar.
10557 - Refactory all properties and methods to use ToolBarItem.
10559 * ToolBarButton.cs:
10560 - Remove all propeties and methods that is now in ToolBarItem.
10561 - Rectangle propery now gets the rectangle from first ToolBarItem to
10562 mimic win32 behavior.
10563 - Size calculation and layout methods also removed.
10565 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
10566 ToolBarItem instead of ToolBarButton to right drawing buttons when
10567 same button/separator was added more than one time to ToolBar.
10569 * ThemeNice.cs: Same as above.
10571 2007-03-15 Andreia Gaita <avidigal@novell.com>
10573 * XplatUIX11.cs: Fire extra MouseMove events right after
10574 MouseDown and MouseUp, emulating win32's <censored> behaviour
10575 for apps that rely on it.
10577 2007-03-15 Jackson Harper <jackson@ximian.com>
10580 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
10581 it is drawn on the controls client window and there is no NC
10583 - Set the background color to gray on 2.0 when we are readonly.
10585 2007-03-15 Chris Toshok <toshok@ximian.com>
10587 [ Fixes bug #81144 ]
10589 * XplatUIX11.cs: implement VirtualScreen independently of
10590 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
10593 2007-03-15 Chris Toshok <toshok@ximian.com>
10595 * Hwnd.cs: add an internal field for the cached_window_state.
10597 * XplatUIX11.cs: cache the window state, invalidating the cache
10598 (and thus re-querying the X server) only when we see an update to
10599 the _NET_WM_STATE property.
10601 2007-03-15 Chris Toshok <toshok@ximian.com>
10603 * BindingSource.cs: get a lot of the unit tests working.
10605 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10607 * Control.cs: Modify UpdateStyles to store distances when bounds >=
10608 0 instead of just bounds > 0. [Fixes bug #80912]
10610 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
10612 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
10615 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
10617 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
10618 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
10619 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
10620 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
10622 2007-03-15 Chris Toshok <toshok@ximian.com>
10626 * Control.cs: add Ivan's fix for 81101, with a slight modification
10627 - you can set control.Target to null.
10629 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
10631 * ToolStripItem.cs: If our OwnerItem is null, we can't use
10632 HideDropDown, use Hide instead to prevent an NRE.
10635 2007-03-14 Jackson Harper <jackson@ximian.com>
10637 * TextBoxBase.cs: Mess with the creation stuff a little. We need
10638 to calculate the document before the handle is created, in some
10639 cases. (Actually just one case).
10641 2007-03-14 Jackson Harper <jackson@ximian.com>
10643 * TextBoxBase.cs: Need to display the caret after letting the base
10644 wndproc handle the focus methods, because the caret display
10645 methods check the focus state.
10646 - Try to display the caret after updating it's position with SelectWord.
10647 - Don't need to do an immediate update on this recalc, since there
10648 will be an invalidate anyways.
10650 2007-03-14 Jackson Harper <jackson@ximian.com>
10652 * TreeView.cs: Some workarounds so that we can match event order a
10655 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
10657 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
10658 #80803. Avoid NullReferenceException when Control does not have
10659 parent. Fixed different blinkstyle issues. Only subscribe to Tick
10660 event a single time. Only draw error icon when control is created and
10661 visible. Fixes failing unit tests.
10663 2007-03-14 Andreia Gaita <avidigal@novell.com>
10665 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
10666 Selecting events. Fire Leave and Enter events when changing tabs.
10668 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
10670 * TreeView.cs: Add TreeViewNodeSorter.
10671 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
10673 2007-03-14 Chris Toshok <toshok@ximian.com>
10675 * Form.cs: go ahead and remove the RecreateHandles that jpobst
10676 removed earlier and I had him add back it. It turns out metacity
10677 *does* in fact handle the MOTIF_WM_HINTS property changing, it
10678 just doesn't redraw the window titlebar until you resize the
10679 window. This also means we aren't recreating the entire window
10680 hierarchy on X when you change this property. And it looks better
10683 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10686 * ListView.cs: Collecting selection information
10687 is now done in SelectedIndexCollection rather than in
10688 SelectedListViewItemCollection. This is done so we can
10689 have the selection information code in one single place
10690 (virtual mode selection information entirely depends on
10691 SelectedIndexCollection).
10693 2007-03-13 Miguel de Icaza <miguel@novell.com>
10695 * ErrorProvider.cs: Add stubs for ISupportInitialize
10697 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10699 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
10700 in the right order with the right values, from the Checked property,
10701 just as MS does (instead of triggering them from ListView).
10703 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
10705 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10707 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
10708 the correct handler in OnItemCheck method (ItemCheckEventHandler
10709 instead of EventHandler). This used to throw an InvalidCastException.
10711 2007-03-13 Jackson Harper <jackson@ximian.com>
10713 * TextBoxBase.cs: Calculate the document before the handle is
10714 created, so there isn't an extra invalidate called.
10716 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
10718 * Form.cs: Don't set owner in ShowDialog until we are sure
10719 that we aren't going to throw an exception. [Fixes bug #80773]
10721 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
10723 * TreeView.cs: Make it compile.
10725 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10727 * Control.cs: Another place we don't call SizeFromClientSize.
10728 * Form.cs: Another place we don't call SizeFromClientSize.
10731 2007-03-12 Jackson Harper <jackson@ximian.com>
10733 * TreeView.cs: Basically emulating some strangness here with
10734 exanding nodes and setting node positions when windows aren't
10736 - Also attempting to walk the node tree less than previously, and
10737 just use visible order calculations for determining offsets.
10738 - oops made scrolling backwards.
10739 * TreeNode.cs: We need to start nodes with a zero visible order,
10740 because the order calcs are based on the first nodes order.
10742 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10744 * Form.cs: Don't exit the program if RecreateHandle is called on
10747 2007-03-12 Chris Toshok <toshok@ximian.com>
10749 * XEventQueue.cs: remove the use of PostQuitState.
10751 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
10752 WM_QUIT message in GetMessage, return false (and if we're in the
10753 nested WaitForHwndMessage, repost the WM_QUIT message).
10755 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10757 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
10758 or the MaximizeBox properties. [Part of bug #80640]
10760 2007-03-12 Everaldo Canuto <everaldo@simios.org>
10762 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
10765 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10767 * ToolStripItem.cs: Fix some tests I broke by checking Visible
10768 instead of visible.
10770 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
10772 * FileDialog.cs: Use text of File name combobox to determine what
10773 files the user selected. Added tokenizer to parse the file names.
10776 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
10778 * Control.cs: We can't call SizeFromClientSize in the constructor,
10779 but we still need to do the same work, so make an internal version.
10782 2007-03-12 Jackson Harper <jackson@ximian.com>
10786 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
10789 2007-03-12 Jackson Harper <jackson@ximian.com>
10791 * TextBoxBase.cs: Now that the handles are being created a little
10792 later, we need to make sure that the document is recalculated when
10793 the handle is created.
10795 2007-03-11 Everaldo Canuto <everaldo@simios.org>
10797 * Theme.cs: GetLinkFont abstract method added.
10800 - Remove CalcTrimRectangle, no longer needed.
10801 - Factor also remove, position issues must be fixed in libgdiplus.
10802 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
10803 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
10804 care about font used to draw links.
10805 - Set TabStop to true when control is "Selectable", control is selectable
10806 when have one or more links. Fixes #80501 (test case is also added).
10807 - Set the LinkArea values after links change, LinkArea values must be
10808 based in first link position and size, a test case was created.
10809 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
10810 the attribute must be true LinkArea.Length > 0. The same was applied to
10813 * ThemeWin32Classic.cs:
10814 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
10816 - Use CPDrawStringDisabled to draw disabled text instead of hard code
10818 - Draw focus rectangle for every parts focused, including parts that
10819 is on another line, its because regions returns various rectangles
10820 and not only one. Needed to mimic W32 look.
10821 - Uses Graphics.Clip to delimite region painted, it mean that now
10822 complete text is passed to DrawString, with this we solve layout
10823 issues without create another text renderer.
10824 - Uses Region.Intersect to fix some flickers problems, now only needed
10825 parts will redrawed.
10826 - This changes fixes #79614 and some other unreported issues, on Linux
10827 some layout problems still remain, the problem is under
10828 MeasureCharacterRanges but it is an libgdiplus bug.
10830 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
10832 * TextBox.cs: Set for foreground color.
10833 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
10834 this is already done in Control.
10836 2007-03-10 Jackson Harper <jackson@ximian.com>
10838 * TextBox.cs: Set the background color, but reset the
10839 backcolor_set flag which is just for the user setting the
10842 2007-03-09 Chris Toshok <toshok@ximian.com>
10844 * Control.cs: really remove the call to XplatUI.SetVisible from
10845 CreateHandle(), like I said I did when I merged the branch.
10847 * BindingSource.cs: implement some more of this stuff.
10849 2007-03-09 Jackson Harper <jackson@ximian.com>
10851 * TextBox.cs: Don't explicitly set our background colors.
10853 * TextBoxBase.cs: Draw readonly text.
10854 - Need to invalidate when backcolor or readonly are changed.
10856 2007-03-09 Jackson Harper <jackson@ximian.com>
10858 * TextBoxBase.cs: Don't set the forecolor until the handle is
10860 - Do not raise OnPaint, and removed some old debug code.
10862 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
10864 * ScrollableControl.cs: Fix mouse wheel scrolling.
10866 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10868 * Control.cs: Wire up MouseDoubleClick event.
10870 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10872 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10874 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10875 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10876 item is added. This logic was moved to ToolStrip.OnItemAdded.
10879 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10881 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10883 2007-03-08 Jackson Harper <jackson@ximian.com>
10885 * TreeView.cs: Show the correct image for selected node (this used
10886 to work, not sure how the code got deleted). Also implemented 2.0 feature
10889 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10892 * ListViewItem.cs: Cache index in items when retrieving them
10895 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10897 * ToolStripItem.cs: Don't return the explicit_size if we are using
10898 AutoSize. Fixes invalidation issue when user has explicitly set a
10899 size and has AutoSize = true.
10901 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10903 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10905 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10907 * DataGridView.cs: Remove event handler from DataView when a
10908 DataTable is used as DataSource.
10910 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10912 * Control.cs: Create internal setter for client_size to allow it to be
10913 set without triggering resizing code.
10914 * Form.cs: Calculate client_size in constructor, only change client_size
10915 in FormBorderStyle property if Handle has been created.
10916 [Fixes #80574, #80791]
10918 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
10920 * SystemInformation.cs: Add TerminalServerSession.
10922 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10924 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10927 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10929 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10930 Handle before we were supposed to. Now checks ActivateOnShow property
10932 * Control.cs: Add internal ActivateOnShow property.
10933 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10934 for ActivateOnShow.
10935 * Hwnd.cs Remove no longer needed no_activate field.
10937 2007-03-07 Jackson Harper <jackson@ximian.com>
10939 * TreeView.cs: Implement owner draw tree nodes. And a couple more
10941 * DrawTreeNodeEventHandler.cs: Add
10942 * DrawTreeNodeEventArgs.cs: Correct default value.
10944 2007-03-07 Chris Toshok <toshok@ximian.com>
10946 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10947 to be called before NativeWindow.WndProc. Put the HwndCreating
10948 magic there to hook up our Hwnd's to handles.
10950 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
10952 * DataGridView.cs: Comment out debug code.
10954 2007-03-07 Chris Toshok <toshok@ximian.com>
10956 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10957 to make the rest of the world happy]
10959 * Control.cs (CreateHandle): there's no need to call
10960 XplatUI.SetVisible here, it's effectively done by
10961 XplatUI.CreateWindow on X now, and always was on windows.
10963 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10964 shortcircuit out of the loop if we have a message loop running on
10967 [Changelog from merge]
10969 2007-03-05 Chris Toshok <toshok@ximian.com>
10971 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10972 causes handle creation.
10974 2007-02-28 Chris Toshok <toshok@ximian.com>
10976 * ApplicationContext.cs: Add a flag to make sure we only raise the
10977 ThreadExit event once (ExitThreadCore can be indirectly called
10978 from a few places.) I don't like the additional flag, but it
10979 makes the event ordering/count correct.
10981 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10982 without locking the collection. An enumerator doesn't give us any
10983 protection from modification anyway. Lock the thread hash and
10984 replace the complicated enumerator loop with a foreach.
10985 (Application.CloseForms): make internal so it can be called from
10986 ApplicationContext. This should probably be moved to MWFThread.
10987 (Application.ExitThread): don't call MWFThread.Current.Exit()
10988 here. just call XplatUI.PostQuitMessage. We'll exit the thread
10989 when the runloop exits (in response to WM_QUIT.)
10990 (Application.RunLoop): add a comment (and check) for
10991 context.MainForm being null after setting context.MainForm.Visible
10992 = true. This is because you're perfectly free to dispose of a
10993 form in VisibilityChanged. Chalk this up to another case where we
10994 need to synchronously generate WM_ACTIVATE from Control.Show.
10995 Also, add handling for WM_QUIT here so we'll exit the loop.
10997 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
10998 fact that we don't wait if we're only unmapping the whole_window
10999 makes me a bit nervous, but it doesn't seem to cause any problems
11002 also, add a comment about the stupid, broken and wrong resetting
11003 of PostQuitState to false in GetMessage().
11005 In PostQuitMessage, we need to add a WM_QUIT message to the
11006 thread's queue. We use the FosterParent to get the right
11009 Lastly, in SetVisible, we need to unmap both windows, since the
11010 waiting only happens when we're unmapping the client window. So
11011 now, the *only* time we unmap just the whole_window is in the hack
11012 for resizing a control to 0,0.
11014 2007-02-21 Chris Toshok <toshok@ximian.com>
11016 * Application.cs (CloseForms): rewrite this so that we don't
11017 modify the list while we're traversing it.
11019 2007-02-20 Chris Toshok <toshok@ximian.com>
11021 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11022 of OnHandleCreated.
11023 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11024 handle is created. otherwise we'll create it here.
11025 (VerticalScrollEvent): same here.
11027 * Application.cs (CloseForms): call Form.Dispose, don't post
11030 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11031 here. Application should Dispose() of the Form's.
11033 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11034 WM_DESTROY as well.
11035 (MapWindow,UnmapWindow): only actually do the waiting for
11036 SHOWWINDOW if the control we're dealing with is a Form.
11037 (CreateWindow): if the control isn't a form, SendMessage
11038 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
11040 * Control.cs (SetVisibleCore): always use is_visible here, not
11041 value. If we use value, we can end up re-setting something
11042 visible if, for instance, you do Control.Hide() in a delegate
11043 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
11045 2007-02-20 Chris Toshok <toshok@ximian.com>
11047 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
11048 the message we need. PeekMessage returning false should not be a
11049 condition under which we exit the loop.
11051 2007-02-15 Chris Toshok <toshok@ximian.com>
11053 * Control.cs (Refresh): only refresh if we've got a handle and are
11055 (CreateAccessibilityInstance): CreateControl() here.
11056 (UpdateChildrenZOrder): complicate the code loop even more by
11057 taking into account controls that haven't had their handle
11058 created, and those that aren't visible. But on the flip side,
11059 simplify the code by splitting it into two loops. one which
11060 builds up the list of child controls we're interested in, and the
11061 other that sets the z order of those children.
11063 2007-02-14 Chris Toshok <toshok@ximian.com>
11065 * Control.cs: Control.AccessibilityObject causes the control to be
11066 created, not just the handle.
11068 2007-02-14 Chris Toshok <toshok@ximian.com>
11070 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
11071 problem on X where a window might have its handle created (and be
11072 visible) while the window is unmapped. calling XConfigureWindow
11073 on an unmapped window is bad, and generates X errors.
11075 2007-02-13 Chris Toshok <toshok@ximian.com>
11077 * Control.cs (CreateHandle): don't loop over our children setting
11078 their parent here. do it when in WndProc when we're shown.
11079 (UpdateChildrenZOrder): make this internal so we can call it from
11081 (WndProc): for WM_SHOWWINDOW, reparent the child control after
11082 creating its handle. Also, remove the calls to PerformLayout from
11083 here. they're done in ScrollableControl.OnVisibleChanged. Also,
11084 OnVisibleChanged only seems to be called directly here for the
11085 toplevel control. It's propagated down the window hierarchy by
11086 calls to child.OnParentVisibleChanged.
11087 (OnVisibleChanged): don't do layout here - it's done (oddly
11088 enough, according to a glance at stack traces on ms.net..) in
11091 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
11092 z order of our children before calling PerformLayout.
11094 2007-02-12 Chris Toshok <toshok@ximian.com>
11096 [big change, fixes #80020]
11098 * AccessibleObject.cs: we need to make owner internal again to fix
11099 some of ControlAccessibleObject.
11101 * Control.cs: lots of changes here. add support for WM_CREATE,
11102 for which we generate OnHandleCreated. Remove the OnHandleCreated
11103 call from CreateHandle. Also add support for WM_SHOWWINDOW where
11104 we create child controls. leave the MonoTODO's for the
11105 accessibility calls, but fix the exceptions so the tests pass.
11107 Add the InvalidOperationExceptions to Invoke methods, and remove a
11108 couple of InvokeInternal methods we aren't using.
11110 Also, add a couple of CreateHandle calls in places where we know
11111 the handles are being created but our code doesn't reference
11114 Make SetVisibleCore call OnVisibleChange if the handle isn't
11115 created. If the handle is created, we rely on XplatUI.SetVisible
11116 generating the event synchronously.
11118 Lastly, make sure we don't use this.Handle inside CreateHandle,
11119 because we can call back into client (and that code can dispose of
11122 * XplatUIStructs.cs: misc/cleanup.
11124 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
11125 although we don't populate the wParam properly.
11126 (CreateWindow): generate WM_CREATE.
11127 (MapWindow,UnmapWindow): make these calls synchronous, at great
11128 performance expense (particularly in the unmap case), to match
11131 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
11133 (set_MdiParent): don't recreate the handle unless it's been
11136 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
11139 * NativeWindow.cs: this is probably the weirdest part of the
11140 patch. We need a way to link up the window being created to the
11141 WM_CREATE message. Since we can only be creating one window at a
11142 time on a given thread, we keep track of a per-thread reference so
11143 we can dispatch it properly. We also need to keep track of the
11144 Hwnd currently being created so that the win32 backend doesn't
11147 * XplatUIWin32.cs: a similar change to the one we made in
11150 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11152 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
11153 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
11154 to draw the menu shortcut string.
11156 2007-03-07 Jackson Harper <jackson@ximian.com>
11158 * TreeNode.cs: Add the 2.0 collapse method.
11160 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11162 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
11164 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11166 * DataGridView.cs: Change DataSource will clear column and row
11167 lists. Call Invalidate() to reflect DataSource change.
11169 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11171 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
11172 and a new row is added to it.
11174 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11176 * DataGridView.cs: Add columns when DataSource is en empty list but
11177 is a System.Data.DataView (from a System.Data.DataTable).
11179 2007-03-06 Andreia Gaita <avidigal@novell.com>
11181 * Label.cs: Implement AutoEllipsis (2.0)
11183 2007-03-06 Jackson Harper <jackson@ximian.com>
11185 * TreeView.cs: Implement 2.0 TopNode setter property.
11186 - Use a local var instead of the skipped_nodes field for computing
11187 how many nodes to skip. Otherwise we won't scroll because the
11188 valuechanged handler checks if skipped_nodes is equal to the new
11190 - Implement 2.0 Sort method.
11191 - Add useless 2.0 DoubleBuffer property
11192 - Implement 2.0 LineColors property. Lets you change the color of
11193 the lines in the tree. Terribly useful for creating non cohesive
11195 - Implement 2.0 image key feature.
11197 2007-03-06 Jackson Harper <jackson@ximian.com>
11199 * TreeView.cs: We can't get the bounds of the nodes before raising
11200 the AfterSelect event, because that event could change the node's
11201 bounds (scrolling, font change, etc).
11203 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11205 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
11206 * Form.cs: Don't recreate handle when creating FormWindowManager, just
11207 update window styles. In CreateParams us VisibleInternal instead of
11208 VIsible to get the actual visible flag set for this form.
11209 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
11210 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
11211 handle the case when the form is already maximized, in which case
11212 it should be restored. Fixes #81043.
11214 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11216 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
11218 2007-03-05 Jackson Harper <jackson@ximian.com>
11220 * TreeViewHitTestInfo.cs: implement.
11222 2007-03-05 Jackson Harper <jackson@ximian.com>
11224 * InternalWindowManager.cs: class status fix.
11226 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
11228 * InternalWindowManager.cs: All windows that have a parent
11229 are confined to their parent when they're being moved.
11232 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
11234 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
11235 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
11237 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11239 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
11240 buttons invisible before deciding which ones should be visible
11241 (fixes minimize/maximize buttons showing up in toolwindows). Remove
11242 an unused variable.
11243 * InternalWindowManager.cs: Remove warning.
11245 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11247 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
11248 to throw an InvalidOperationException is virtual mode is being used.
11250 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
11252 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
11253 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
11254 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
11255 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11256 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
11257 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
11259 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11261 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
11262 driver.KeyboardDelay from XplatUI.KeyboardDelay
11263 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
11264 (patch by Sergey Volk)
11266 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11268 * ToolWindowManager.cs: Added, contains logic for
11270 * CreateParams.cs: Add a few helper methods and an
11271 internal variable to know which control the CreateParams belongs
11273 * Control.cs: Call Form.ChangingParent when the
11274 parent is about to be changed.
11275 * XplatUIX11.cs: DeriveStyles (): Set
11276 caption_height for all windows that have captions and are children.
11277 Update to use ToolWindowManager instead of InternalWindowManager
11279 * XplatUIWin32.cs: Set fake window styles for all
11280 windows that have window managers.
11281 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
11282 now duplicated for mdi windows when they are
11283 maximized, first for the buttons the window itself has, then for
11284 the buttons that appear in the menu bar. Makes things a little
11285 easier). Updated UpdateWindowDecorations, SetWindowState and the
11286 mouse eventhandlers accordingly.
11287 * Form.cs: Add ChangingParent (), contains the
11288 logic of what should happen when the parent changes. In MdiParent
11289 don't set things that ChangingParent () is doing. When handling
11290 WM_CLOSE, we can close the form if there are any other modal forms
11291 and the current form is a descendent of the modal form.
11292 * InternalWindowManager.cs: A lot of refactoring,
11293 the title buttons are now extracted to a separate container class
11294 that takes care of all button code (clicks, tooltips, etc). Moved
11295 Iconic|Maximized|Normal Bounds properties to this class from
11296 MdiWindowManager, so that the window state logic can succeed for
11297 other than mdi wm's. Implemented general window state change logic.
11298 Moved CreateButtons to ThemeWin32Classic, since the theme might
11299 override which buttons are available when as well as the exact
11301 * FormWindowManager.cs: Added, contains logic for
11303 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
11304 which buttons go where (and if they are at all visible).
11305 Removed special handling of maximized windows, since they aren't special.
11306 In DrawManagedWindowDecorations don't try to draw the text if it is
11308 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
11309 use whatever the wm gives us.
11311 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
11313 * ButtonBase.cs: Add 2.0 properties.
11314 * Button.cs: Override Draw for 2.0.
11315 * Control.cs: Add Entered and Selected properties.
11316 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
11317 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
11318 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
11320 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
11322 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
11324 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
11326 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
11328 * XplatUIWin32.cs: Register a new class with Windows each time we get
11329 a new ClassStyle. [Fixes bugs #79432, #80817]
11330 * Controls.cs: Set the correct ClassStyle in CreateParams.
11331 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
11333 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
11335 * ListView.cs: Add fireEvent argument to ReorderColumn since the
11336 ColumnReordered event must not be signaled when modifying DisplayIndex
11337 of a ColumnHeader. Added internal ReorderColumns method which takes
11338 care of drawing, and updating the internal DisplayIndex of the
11339 ColumnHeader. Added AddColumn method which is invoked from
11340 ColumnHeaderCollection when adding or inserting columns, and which
11341 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
11342 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
11343 Recalculated dispay indices after removing a ColumnHeader.
11344 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
11345 match MS. Allows last display index to be returned after ListView
11346 is disposed. Update actual location of ColumnHeader when DisplayIndex
11349 2007-03-01 Everaldo Canuto <everaldo@simios.org>
11351 * LinkLabel.cs: Improve CalcTrimRectangle.
11353 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
11355 2007-02-28 Everaldo Canuto <everaldo@simios.org>
11357 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
11358 get rectangle as a result value.
11360 2007-02-28 Everaldo Canuto <everaldo@simios.org>
11362 * LinkLabel.cs: Theres some diferences between rectangle return from
11363 MeasureCharacterRanges and the area used for DrawString to fix this
11364 CalcMeasurementFactor method was created, it calcules the diferences
11365 to be use later to adjust rectangle in draw operations. Fixes #80473.
11367 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
11368 to adjust draw rectangle.
11370 2007-02-27 Everaldo Canuto <everaldo@simios.org>
11372 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
11373 text and some other changes to reduce and optimize source code.
11375 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
11377 * RadioButton.cs: Implement 2.0 event.
11378 * RelatedImageListAttribute.cs: Implement new class.
11380 2007-02-27 Everaldo Canuto <everaldo@simios.org>
11382 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
11384 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
11386 * CheckBox.cs: Implement 2.0 functionality.
11388 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11390 * ListView.cs: Refactor Add and AddRange methods of
11391 ListViewItemCollection, to not update the ListView
11392 everytime an item is added in AddRange. Also move the update
11393 code to a new CollectionChanged method, and call it
11394 from other methods that need it as well (this should also fix some
11395 bugs when Sorting is used).
11397 2007-02-27 Jackson Harper <jackson@ximian.com>
11399 * TextControl.cs: Try to never let the caret stay in a non-text
11401 * TextBoxBase.cs: Update the caret.
11403 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
11405 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
11406 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
11407 delete POINT structure, duplicate of one in XplatUIStructs.
11408 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
11410 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
11412 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
11413 edit box since otherwise the Label would immediately be set (even if
11414 the user did not modify the label). In OnKeyDown set Handled to true
11415 if Return or Escape was pressed. In ColumnHeaderCollection unlink
11416 columns that are to be removed. In ListViewItemCollection unlink items
11417 that are to be removed.
11419 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
11421 * TextRenderer.cs: If we set a GDI clip region, we need to clear
11422 it when we are done. [Fixes bug #80949]
11424 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11426 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
11428 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11430 * ListView.cs: I forgot to commit the changes for ListView
11431 in my previous patch.
11433 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11435 * Clipboard.cs: Partially implement an overload of SetDataObject.
11436 * Form.cs: Implement ShowWithoutActivation.
11437 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
11439 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11441 This is a first set of changes to make the Virtual mode works,
11442 by avoiding the retrieval of ListViewItem instances until
11445 * ListView.cs: Store item position in the ListView instead of the
11446 ListViewItem, this way we don't request the Bounds property of
11447 ListViewItem inside the ListView calculations, as well as cache the item
11448 size in item_size field. Store indexes instead of ListViewItem
11449 instances in the matrix used by icon view. Add a ItemMatrixLocation
11450 struct to hold the row and col info of the matrix info.
11452 * ListViewItem.cs: Don't store the location anymore, and only cache
11453 the rectangles for GetBounds. Use the ListView.GetItemLocation
11454 method to retrieve the actual location.
11456 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11458 * TextRenderer.cs: Add clipping support, thanks to George.
11461 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11463 * ListViewItem.cs: Cancel label edit when item is removed from
11465 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
11466 event before the edit textbox is displayed. Added CancelEdit method
11467 which is used end to editing while ignoring the value set by the
11468 user. In EndEdit, set focus to ListView to avoid losing focus to
11469 other controls. In ListViewItemCollection.Clear, cancel editing of
11470 any of the items. In Remove, cancel editing of item being removed.
11471 Avoid udplicate code by modifing RemoveAt to invoke Remove.
11473 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11475 * FileDialog.cs: Update FSEntry when move is successful. Fixes
11478 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11480 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
11481 compatible with non X11 systems. Fixes #80901.
11483 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
11485 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
11486 whether the item should be unselected and reselect. We do no want this
11487 when we're starting to edit the label. Do not fire the
11488 SelectedIndexChanged event from ListView when its already been fired
11489 by modifying ListViewItem.Selected. Fixes bug #80943.
11491 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11493 * TextRenderer.cs: Previos commit logic was backwards.
11495 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
11497 * TextRenderer.cs: Don't add padding on MeasureText if we were
11498 sent the NoPadding flag.
11500 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11502 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
11503 after DrawButton. To prevent image overlaps button borders SetClip and
11504 ResetClip added before and after draw image. Fixes #79129.
11506 2007-02-23 Everaldo Canuto <everaldo@simios.org>
11508 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
11509 window size, it fix problem when you run under win32 that theres
11510 Size diferent than ClientSize. Also fix controls size and positions
11511 to mimic Win32. Fixes #80837.
11513 2007-02-22 Everaldo Canuto <everaldo@simios.org>
11515 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
11516 menu area to fix some problems for non X11 systems. Fixes #80613.
11518 2007-02-22 Jackson Harper <jackson@ximian.com>
11520 * TreeNode.cs: When a node is expanded, set its is_expanded flag
11521 even if it doesn't have any children.
11523 2007-02-22 Jackson Harper <jackson@ximian.com>
11525 * TreeView.cs: Calculate the top node 'on the fly', this
11526 eliminates issues where you need to click on the tree before
11527 scrolling it to get the top node computed correctly.
11528 * TreeNodeCollection.cs: We don't need to mess with the top node
11531 2007-02-22 Jackson Harper <jackson@ximian.com>
11533 * DataGridViewRow.cs: Fix typo so height can actually be set.
11534 Patch by Peter Grimm.
11536 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11538 * FileDialog.cs: Fixed support for renaming files and directories.
11539 * ListView.cs: Do not lose focus when edit is canceled. Process
11540 Escape as regular key (to prevent closing of dialogs).
11542 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11544 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
11545 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
11547 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
11549 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
11550 did not modify label.
11551 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
11552 modified the text. Reset Label when user presses Escape in edit mode.
11553 Move focus to ListView after having cancelled or finished editing the
11556 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
11558 * ComboBox.cs: Removed unnecessary initializations. Marked items field
11559 private. Clear textbox when Text is set to null and SelectedIndex is
11561 * FileDialog.cs: Removed unnecessary initializations. Removed
11562 workarounds for ComboBox bugs that are now fixed. Modified
11563 DefaultExt, InitialDirectory and Title property to change null to
11564 zero-length string in getters. Avoid directly accessing fields.
11566 2007-02-20 Jackson Harper <jackson@ximian.com>
11568 * TextControl.cs: Remove RecalAlignments call, that was some
11569 debugging leftovers.
11570 - Don't use the line indent when we shouldn't.
11571 * RichTextBox.cs: Add support for paragraph left indents.
11573 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11575 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
11576 Seems like the class status pages doesn't catch params differences.
11578 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11580 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
11582 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
11584 * ComboBox.cs: Setting Text should have no effect if item text of
11585 selected item exactly matches value. First lookup text using
11586 case-sensitive comparison, and fallback to case-insensitive comparison.
11587 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
11588 allow startIndex to be last index. Changed ArgumentOutOfRangeException
11589 paramname to match MS. Restart from first item if string is not found
11590 after startIndex. Fixed paramname of ArgumentNullException that is
11591 thrown for null value in ObjectCollection.Contains.
11593 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11595 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
11597 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11599 * ListControl.cs: In SelectedValue use value.Equals to compare for
11600 equality instead of ==, otherwise it will fail for strings.
11603 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11605 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
11606 since the caret won't show up unless ShowSelection is true.
11609 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11611 * Application.cs: When disabling all forms but the main form, do not
11612 disable any descendants of the main form (such as mdi children or
11613 other parented forms). Fixes #80822 on Windows.
11614 * Form.cs: If we have a parent, set the WS_CHILD style.
11615 * Control.cs: Update the window styles if the control whose parent has
11616 changed is a form (the WS_CHILD style has to be switched).
11618 2007-02-19 Everaldo Canuto <everaldo@simios.org>
11620 * XplatUIStructs.cs: MsgUIState structure added.
11622 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11624 * FileDialog.cs: Removed need for separate fileName field. On 2.0
11625 profile, do not check filename(s) for illegal character if filename(s)
11626 were set non-interactively but always check on 1.0 profile. Fixed NRE
11627 in DefaultExt and only strip off first leading dot. Improve exception
11628 message when invalid Filter is set. Do not ignore InitialDirectory if
11629 it does no exist. Store specified Title, and if empty use default
11630 title (depending on type of dialog). Added an internal DialogTitle
11631 property for retrieving dialog title. Fixed logic of displayed dir to
11632 more closely match MS. Avoid setting ComboBox.Text to a zero-length
11633 string as its buggy.
11634 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
11635 FileName is a zero-length string (it can never be null). Override
11636 DialogTitle property to set default title of dialog box.
11637 * SaveFileDialog.cs: Override DialogTitle property to set default
11638 title of dialog box.
11640 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
11642 * FileDialog.cs: Modify default text of filename and filetype labels
11643 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
11644 after we've updated the SelectedIndex. Fixes part of bug #80887.
11645 * SaveFileDialog.cs: Set text of filetype label.
11647 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11649 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
11650 label field. Needed by latest Jackson's fixes for ListView.
11652 2007-02-16 Andreia Gaita <avidigal@novell.com>
11654 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
11655 print preview images.
11657 2007-02-16 Jackson Harper <jackson@ximian.com>
11659 * ListView.cs: Make AfterLabelEdit work correctly.
11660 * FileDialog.cs: After changing the name of the folder, we have to
11661 make sure that it is created, or that we pop up an error because
11664 2007-02-16 Jackson Harper <jackson@ximian.com>
11666 * X11Dnd.cs: Implement aliases on mime handlers, so things like
11667 System.String are mapped to text.
11668 - Handle dataobjects, getting all the possible formats out of them
11669 - We dont need the drag event args before we give feedback. This
11670 allows feedback cursors to be immediate before selections have
11673 2007-02-16 Jackson Harper <jackson@ximian.com>
11675 * TextBoxBase.cs: Modified the method for inserting images to
11676 taking a line and position instead of tag and position.
11677 * RichTextBox.cs: Handle PngBlip data by inserting the png image
11679 * TextControl.cs: Allow images to be inserted as the first tag of
11681 - Fix some off by one issues when we assume the first tag is a
11682 text tag, not an image tag.
11684 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11686 * ListView.cs: Set focus to ListView when ItemControl gets a
11687 WM_RBUTTONDOWN message, to mimic .Net behaviour.
11688 Fixes part of #80467.
11690 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
11692 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
11693 validate Text input (if null or empty string reset Value to default
11694 value). Fixes #80830.
11696 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11698 * ListView.cs: Set owner as null for columns and items when
11699 Dispose is invoked. Fixes #80607.
11701 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
11703 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
11704 showing DropDowns, don't show a Grip when doing Flow layout.
11705 [This fixes the toolbox in PDN 2.72.]
11706 * ToolStripItem.cs: Add Anchor property and some internal properties to
11707 reduces needed changes to FlowLayout.
11708 * ToolStripOverflow.cs: Remove unused variable.
11709 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
11710 use it in the layout calculations.
11712 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11714 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
11715 reported in #79640.
11717 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
11720 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11722 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
11723 MeasureString format, it can make button very large in some cases, it is
11724 strange but is what win32 do.
11726 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11728 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
11731 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
11732 rendering, the value is based on MenuAccessKeysUnderlined.
11734 2007-02-13 Everaldo Canuto <everaldo@simios.org>
11736 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
11739 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
11741 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
11742 and use MenuAccessKeysUnderlined instead.
11744 2007-02-13 Andreia Gaita <avidigal@novell.com>
11746 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
11747 A selected control would not get a Focus call if:
11748 - the default active control of the container is the same as
11749 the one that was selected
11750 - we are switching from one container to another
11751 Under these conditions, the container being selected already has
11752 an active_control, which is the same as the one being activated,
11753 so set_ActiveControl would always return and not send the Focus
11754 call. Fix to check if the currently active control of the container
11755 is actually focused.
11757 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
11759 * StatusStrip.cs: Implement the spring layout.
11760 * ToolStripControlHost.cs: Make sure the hosted control's visibility
11761 always matches the host.
11762 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
11763 and TextAfterImage.
11765 2007-02-13 Andreia Gaita <avidigal@novell.com>
11767 * Control.cs: Code reorganization only.
11768 - Reorganize the WndProc cases so that each case has it's own handling method,
11769 to help with the no-line-numbering stack traces.
11770 - Formatting changes (it's vstudio's fault, really :p)
11772 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11774 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
11775 Thread.CurrentUICulture to match DateTimePicker's (and MS)
11778 2007-02-12 Jackson Harper <jackson@ximian.com>
11781 * TextBox.cs: By default we have a non multiline document
11782 - use the multiline property instead of the internal variable
11783 * TextBoxBase.cs: Treat multiline and non multiline the same in
11785 - Use the documents multiline flag instead of tracking it ourself
11786 * TextControl.cs: Attempt at getting multiline to match MS
11787 behavior. Lines now track an offset, which is either their X or Y
11788 offset depending on whether or not we are in multiline mode.
11789 - Update all the methods to understand that lines have an X value.
11790 - Fix crash in Undo::Duplicate when empty lines are deleted.
11792 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11794 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
11795 code moved to properties PreferredHeight and PreferredWidth. It solve the
11796 all problems when preferred sizes must be recalculated. Fixes #80801.
11798 2007-02-12 Everaldo Canuto <everaldo@simios.org>
11800 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
11801 font height when compatible_text_rendering is false. Partially fix #80801.
11803 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11805 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
11807 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11809 * Form.cs: Improved exception messages in ShowDialog.
11811 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
11813 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
11814 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
11815 if not set. Fixes bug #80764. Avoid accessing current_settings field
11818 2007-02-08 Everaldo Canuto <everaldo@simios.org>
11820 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
11823 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
11824 public in 2.0 and for easy maintenance and dont break compatibility it is
11827 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11829 * ToolStripItem.cs: Implement using images from ImageList.
11831 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11833 * DateTimePicker.cs: Change default date-formatting culture from
11834 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
11835 seems to be the way MS does it.
11837 2007-02-08 Andreia Gaita <avidigal@novell.com>
11839 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
11840 (the 6 was cut off on the right side)
11842 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11844 * Form.cs: Tell MenuStrips to close when the form is clicked.
11845 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
11846 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
11847 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
11848 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
11849 support for Overflow, where items that do not fit are automatically
11850 reparented to a drop down menu.
11851 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
11852 Also: fixes bug #80747.
11854 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11856 * ComboBox.cs: Remove warning (unused code).
11857 * ScrollableControl.cs: Remove warning for 1.1 profile.
11859 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11861 * Form.cs: Remove a warning.
11863 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11865 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11866 'g' specifier, not documented anywhere, but seems to always show up
11867 as a single space (might have something to do with the DateTime 'g'
11868 specifier, which is the era format, but since DateTimePicker can't
11869 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11870 won't crash if the format has an unmatched quote. Now shows
11871 single-character formats correctly. Fixes #80744.
11873 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11875 * StatusStrip.cs: Stretch property needs to call base.Stretch,
11876 not this.Stretch to fix stack overflow. [Fixes bug #80760]
11878 2007-02-07 Chris Toshok <toshok@ximian.com>
11880 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11881 background color. it overwrites the background image we've
11882 already painted. Fixes #80599.
11884 2007-02-07 Chris Toshok <toshok@ximian.com>
11886 * DataGrid.cs: return immediately from Edit() when there are no
11887 columns. Fixes #80662.
11889 2007-02-07 Chris Toshok <toshok@ximian.com>
11891 * MessageBox.cs: fix #80625. don't always show the Help button in
11892 2.0. use the displayHelpButton parameter to determine if we
11893 should show it. Also, make the internal show_help field private.
11895 2007-02-07 Chris Toshok <toshok@ximian.com>
11897 * Control.cs (SetVisibleCore): check in the proposed patch for
11898 80604, and set is_visible before calling CreateControl.
11900 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
11902 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
11903 MonoInternalNote. This is added automagically by VS2005, so let's not crash
11906 2007-02-06 Everaldo Canuto <everaldo@simios.org>
11908 * MenuAPI.cs: hotkey_active internal field added, it is required because
11909 we need to know when hotkeys must be draw, before this change a keystate
11910 Navigating was used but we can have menu in navigating state without
11911 hotkeys. Fixes #80694.
11913 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11915 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11917 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11918 corresponding events and methods to be internal for 1.1 profile and
11919 public for 2.0 profile (required by SizeGrip).
11920 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11921 implicit control list). Don't set the size nor the location of the
11922 SizeGrip anymore as it's not needed.
11923 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11924 draw directly on the captured control (fixes #80656). Removed
11925 ShowGrip (it wasn't used anywhere), redraw (always true), added
11926 GetDefaultSize and GetDefaultRectangle to calculate defaults.
11927 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11928 be called from SizeGrip.
11930 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11932 * Timer.cs: Throw ArgumentException if Interval <= 0.
11934 2007-02-05 Jackson Harper <jackson@ximian.com>
11936 * TreeView.cs: We need to check scrollbar visibility when window
11937 visibility is updated, because non visible trees don't ever add
11939 * Cursor.cs: We want the override cursor to be reset to NULL when
11940 we set current cursor to the default cursor.
11942 2007-02-05 Jackson Harper <jackson@ximian.com>
11944 * TextControl.cs: Don't have crlfs when we are non multiline.
11945 - Consolidate the line position.
11947 2007-02-05 Jackson Harper <jackson@ximian.com>
11949 * X11Keyboard.cs: BACK+CTRL gets a special char code.
11951 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11953 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11954 handling LeaveNotify->NotifyUngrab in order to send
11955 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11956 after calling XUngrabPointer, so we call WindowUngrabbed directly
11957 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11958 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11959 MouseCaptureChanged correctly. Also create handles if changing
11960 Capture (matches MS behaviour).
11962 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11964 * SizeGrip.cs: Make the last change 2.0 only.
11966 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11968 * SizeGrip.cs: If resizing and the capture is lost, revert any size
11969 changes to initial size (fixes #80597).
11971 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11973 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11975 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11977 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11978 background) and only allow dragging if enabled. This way the
11979 sizegrip can be used to fill the open square that otherwise would
11980 have been shown in the bottom right corner of ScrollableControl
11981 when ScrollableControl is not suppose to support sizing.
11982 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11983 sizegrip is shown and enabled, and hook up with necessary events.
11985 2007-02-01 Chris Toshok <toshok@ximian.com>
11987 * DataGridTextBoxColumn.cs: clean up the
11988 GetFormattedString/GetColumnValueAtRow combination of functions.
11989 Also fix UpdateUI, and the initial state of
11990 IsInEditOrNavigateMode.
11992 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11993 aren't supposed to scroll the textbox here, we're supposed to
11994 scroll the datagrid.
11996 2007-02-01 Chris Toshok <toshok@ximian.com>
11998 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11999 setting the position.
12001 2007-02-01 Chris Toshok <toshok@ximian.com>
12003 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12004 here, since the most recent focus fixes keep us from generating
12005 the Leave event when our textbox gets focus.
12006 (Edit): we should be passing null for the column style's
12007 instantText parameter.
12009 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
12011 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
12012 raised. Fixes menu text/icons not showing up in PDN.
12014 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12016 * Control.cs: Remove code in constructor that makes every
12017 control with WS_CHILD set have initial location -1, -1.
12019 2007-01-31 Jackson Harper <jackson@ximian.com>
12021 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12023 * XplatUIX11.cs: Give teh keyboard to teh dnd.
12025 2007-01-31 Jackson Harper <jackson@ximian.com>
12027 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12028 - Remove some debug code.
12030 2007-01-31 Jackson Harper <jackson@ximian.com>
12032 * XplatUIX11.cs: If you set the override cursor during a grab, it
12033 should actually override the grab cursor. This comes into play
12034 when you are setting custom cursors in a DND feedback method.
12036 2007-01-31 Jackson Harper <jackson@ximian.com>
12038 * X11Dnd.cs: Add support for handling the QueryContinue and
12039 GiveFeedback events.
12040 - Cancel drag and drop actions when the escape key is clicked.
12041 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
12042 can handle the ESCAPE key.
12043 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
12044 done when dnd events are continued after the button is released.
12045 - Add a new helper method so that dnd can translate key events.
12047 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
12049 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
12050 make it more obvious what is happening.
12052 2007-01-30 Jackson Harper <jackson@ximian.com>
12054 * XplatUIX11.cs: Don't break when handling button release in drag
12055 and drop operations. We need that BUTTONUP message to get through
12056 so capture is released.
12057 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
12058 this is handled automatically when the mouse is down.
12060 2007-01-30 Jackson Harper <jackson@ximian.com>
12062 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
12063 is closed, so we need to make sure that we aren't changing the
12064 dialog result when the OK (Open or Save) button has been clicked
12065 and we are closing the window ourselves. Note we don't need to
12066 worry about the cache being written in this case, because it was
12067 already done in the previous FilOk call.
12069 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12071 * DateTimePicker.cs: Remove a warning.
12072 * ComboBox.cs: Remove a couple of warnings.
12074 2007-01-29 Chris Toshok <toshok@ximian.com>
12076 * XplatUIX11.cs: don't crash, and remove the icon if the user has
12077 set one, if SetIcon is passed a null icon.
12079 2007-01-29 Andreia Gaita <avidigal@novell.com>
12081 * TextBox.cs: Redraw when the password characters changes
12082 * TextControl.cs: Check if textbox has a password char and draw
12083 a line of password chars instead of the text in the line. LineTag gets
12084 an extra Draw() method which allows document.Draw to override the text
12085 that will be drawn. Removes 1024 char limitation on length of passworded
12088 2007-01-29 Jackson Harper <jackson@ximian.com>
12090 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
12091 single chars is not.
12093 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
12095 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
12096 one pixel. Fix a StackOverflowException caused by an overload wrongly
12099 2007-01-26 Everaldo Canuto <everaldo@simios.org>
12101 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
12102 also remove ProcessArrowKey and put the code inside ProcessKeys.
12104 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
12106 * PaddingConverter.cs: Added.
12108 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12110 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
12111 ShowPanels is false (fixes #80600). Only draw up to 127 characters
12112 of text (fixes #80601). For panels clip the text to draw to the
12113 panel (fixes #80603).
12115 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12117 * ComboBox.cs: Fixed implementation of ResetText.
12119 2007-01-25 Jackson Harper <jackson@ximian.com>
12121 * TextControl.cs: For the last char of a line we need to use the
12122 line size, not that chars width, since it won't actually be
12123 computed since the right side of a char is based on the start of
12124 the left side of the next char, and the next char does not exist.
12126 2007-01-25 Chris Toshok <toshok@ximian.com>
12128 * Splitter.cs: fix the new unit tests, and reindent some switch
12131 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12133 * ComboBox.cs: Implemented 2.0 methods and events.
12134 * TextBoxBase.cs: Added OnTextUpdate, so that
12135 ComboBox.ComboTextBox can inform ComboBox of it.
12137 2007-01-25 Jackson Harper <jackson@ximian.com>
12139 * TextControl.cs: Respect ShowSelection when deciding whether or
12140 not to display the caret, this allows comboboxes to have carets
12141 when the combotextbox does not have focus.
12143 2007-01-25 Jackson Harper <jackson@ximian.com>
12145 * TextControl.cs: Add a Suspend/Resume for updating, basically the
12146 same as the Suspend/Resume for recalc, except this will do actual
12148 - New Undo manager, works much like the MS version.
12150 * TextBoxBase.cs: The Cut operation is undoable.
12152 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12154 * TextBoxBase.cs: Don't antialias text. Makes it look way better
12155 on Windows (no difference on Linux).
12157 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12159 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
12160 we don't want to activate any windows. Fixes #79433.
12162 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
12164 - ButtonBase.cs: Fix capitalization of parameter: disposing.
12167 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
12170 - Move to using System.ComponentModel.EventHandlerList
12171 - Replace Refresh with Invalidate
12172 - Clear the mime filecache on closing
12173 - Some other memory reducing work. After beeing closed FD now uses
12174 only about 300 KB for the fdo mime stuff plus the memory of the
12176 * Mime.cs: Changed coding style and removed unnecessary commented
12177 code. Some more memory memory reducing work.
12179 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12181 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
12182 a few other missing 2.0 properties.
12183 * Theme.cs: Added DrawFlatStyleComboBox.
12184 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
12186 2007-01-24 Chris Toshok <toshok@ximian.com>
12188 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
12189 wake_waiting flag, not just when there's data to be read. if we
12190 don't, then future wakeup's won't reach us and we'll be doomed to
12191 wait for the entire 1 second timeout forever (unless there are X
12194 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
12196 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
12197 until you pass Items.Count, not Items.Count - 1 like 1.1.
12199 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
12201 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
12203 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
12205 * ToolStripContainer.cs: The recent Dock fix exposed that I was
12206 adding the panels in the wrong order.
12208 2007-01-24 Jackson Harper <jackson@ximian.com>
12210 * TextBoxBase.cs: When we move the caret we also need to move the
12211 selection, this fixes some random crashing after doing select
12212 text, unselect, delete a char, paste.
12214 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12216 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
12218 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12220 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
12221 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
12222 * ToolBar.cs: Force redraw in BackgroundImageChanged.
12224 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12227 - Implement support for vertical toolbars. Fixes #80539;
12228 - Call LayoutToolBar when resize, it fix some other problems in layout.
12229 - Rename requested_height to requested_size, as we can have width on it
12230 when toolbar is vertical.
12231 - Create a private property "Vertical" that uses Dock to verify when
12232 toolbar is vertical or not.
12233 - Set ControlStyles when change Dock property.
12234 - Refactory in LayoutToolBar to have better variables names and to support
12236 - Fixes default value for ButtonSize when button count is equal zero, size
12237 must be (39, 36) test case writed.
12239 2007-01-23 Chris Toshok <toshok@ximian.com>
12241 * Control.cs: fix the checks so that they work correctly for mdi
12244 2007-01-23 Chris Toshok <toshok@ximian.com>
12246 * Control.cs: ControlCollection seems to have super-secret
12247 abstraction breaking knowledge of Mdi containers. allow MdiClient
12248 to add toplevel controls.
12250 2007-01-23 Chris Toshok <toshok@ximian.com>
12252 * Control.cs: throw an ArgumentException if a toplevel control is
12253 added to our control collection from ControlCollection.Add, as
12254 well as from ControlCollection.IList.Add. This fixes the
12255 ControlSetTopLevelTest.TestTopLevelAdd unit test.
12257 Also, in ControlCollection.IList.Add, don't through an
12258 ArgumentNullException, throw an ArgumentException, when value ==
12259 null. This matches MS.
12261 2007-01-23 Chris Toshok <toshok@ximian.com>
12263 * BindingSource.cs: initial, incomplete, implementation of
12266 2007-01-23 Jackson Harper <jackson@ximian.com>
12269 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
12270 that I can fix a broken unit test (TextBoxTest::ClearUndo)
12272 2007-01-23 Everaldo Canuto <everaldo@simios.org>
12274 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
12276 2007-01-23 Andreia Gaita <avidigal@novell.com>
12278 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
12279 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
12280 IndexOfKey() for 2.0
12282 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12284 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
12285 to prevent it from changing z-order.
12286 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
12287 leave UI updates in MdiWindowManager.
12288 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
12289 1 sized (NC handling goes weird on Linux otherwise).
12290 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
12291 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
12292 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
12293 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
12294 and SetWindowState(s) to allow for changing the size of an activated child
12295 before activating it (reduces a lot of flicker).
12297 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
12299 * Form.cs: Changing FormBorderStyle has different semantics based
12300 on whether the Form is visible or not. If not visible, don't change
12301 the Size. But InvalidateNC needs to be called to force the window
12302 to pick up the changes and redraw itself. [Fixes bug #80574]
12304 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
12307 * ContainerControl.cs: ProcessCmdKey.
12308 * ErrorProvider.cs: new constructor.
12309 * Form.cs: fix AutoValidateEvent compiler warning.
12310 * Label.cs: fix OnAutoSizeChanged compiler warning.
12311 * MenuStrip.cs: fix CanOverflow compiler warning.
12312 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
12313 * TextBox.cs: Dispose.
12314 * ToolStrip.cs: CanOverflow, re-enable double buffering.
12315 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
12316 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
12317 * ToolStripItem.cs: Overflow, RightToLeft properties.
12319 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12321 * Form.cs: Move the layout of the main form to MdiWindowManager.
12322 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
12323 do a layout of the main window to update MdiClient's client area to
12324 the right area. Fixes #80533. Remove the calculation of nc size,
12325 it was just wrong and the correct one is the same as for
12326 InternalWindowManager.
12328 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
12330 * Control.cs: Setting Anchor or Dock needs to reset the other
12331 to its default. [Fixes bug #80556]
12333 2007-01-20 Chris Toshok <toshok@ximian.com>
12335 * CheckedListBox.cs: class status changes.
12337 * ScrollableControl.cs: same.
12339 * RichTextBox.cs: same.
12341 * ContainerControl.cs: same.
12343 * ListView.cs: same.
12345 * NotifyIcon.cs: same.
12347 * MenuStrip.cs: same.
12349 * RadioButton.cs: same.
12351 * CheckBox.cs: same.
12353 * PrintPreviewDialog.cs: same.
12357 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
12359 * TreeNode.cs: Apply Alan's patch for Name property.
12361 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12363 * Form.cs: Implemented SizeGripStyle.
12364 * SizeGrip.cs: Check for minimum and maximum size for the
12365 control being resized and only resize if size has actually
12368 2007-01-19 Chris Toshok <toshok@ximian.com>
12370 * DataGridColumnStyle.cs: stop setting _readonly in the
12371 PropertyDescriptor setter. fixes a unit test failure.
12373 also, rename ParentReadOnly to TableStyleReadOnly, and have it
12374 just consult our table style (if we have one). We don't need to
12375 consult the datagrid readonly attribute because that's passed in
12376 as the _ro arg to Edit. this simplifies things a little.
12378 * DataGrid.cs: use CurrentColumn instead of
12379 current_cell.ColumnNumber just to simplify some of the code.
12381 switch the order of some things in the CurrentCell setter to keep
12382 the previous cell from getting a textbox again -
12383 EnsureCellVisibility causes scrolling to happen, which calls Edit.
12384 So we need to set the new cell before calling it.
12386 call Edit in OnEnter, as does Microsoft.
12388 also, make sure the current table style isn't the one we create
12389 initially when checking to see if it's different than the one
12390 we're setting it to in BindColumns (this fixes #80421).
12392 * GridTableStylesCollection.cs: table styles can have "" for a
12393 mapping name. part of the fix for #80421.
12395 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
12396 Edit significantly.
12398 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12400 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
12401 and less GDI object leaky-er.
12403 2007-01-18 Andreia Gaita <avidigal@novell.com>
12405 * LinkLabel.cs: Add opaque control style
12407 2007-01-18 Jackson Harper <jackson@ximian.com>
12409 * TextControl.cs: Calculate width properly.
12410 - Don't store the tag's X offset, this can be figured out very
12412 - When getting the caret tag make sure to get the last empty tag.
12414 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12416 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
12419 * Control.cs: Color.Empty shouldn't count for previous transparent
12422 2007-01-18 Jackson Harper <jackson@ximian.com>
12426 * TextControl.cs: Starting to merge in some pieces of my older
12427 undo work. Basically just some slight cleanup of the undo API.
12429 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12431 * TrackBar.cs: Fix signature of RightToLeftLayout.
12432 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
12433 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
12434 * Application.cs: Implemented UseWaitCursor.
12436 2007-01-18 Jackson Harper <jackson@ximian.com>
12438 * TextControl.cs: We can't skip tags if any part of the tag is
12441 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12443 * ContainerControl.cs: Override OnLayout.
12445 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12447 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
12449 * ContextMenuStrip.cs: Make sure context menu is shown on top of
12452 2007-01-18 Chris Toshok <toshok@ximian.com>
12454 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
12455 (leftover from the container_selected days, I'd wager). fixes bug
12458 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12460 * Control.cs: Apply patch from George to fix the new testcase on
12461 bug #80451. We can't just check for Color.Transparent, we need
12462 to check if the back color's alpha channel is < 255.
12464 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
12466 * Form.cs: Move setting show_icon = true to before the constructor
12467 so that the base constructor has that information when it calculates
12468 the form's size. Was causing forms to be (6, 6) bigger than they
12469 were supposed to be. Thanks for catching this Rolf!
12471 2007-01-18 Jackson Harper <jackson@ximian.com>
12473 * TextControl.cs: When replacing a selection we need to invalidate
12474 from the initial selection start, because selection start is moved
12475 to the end of the replacement.
12477 2007-01-18 Andreia Gaita <avidigal@novell.com>
12479 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
12481 2007-01-18 Chris Toshok <toshok@ximian.com>
12483 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
12486 2007-01-17 Everaldo Canuto <everaldo@simios.org>
12488 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
12489 layout methods and properties from ToolBarButton must be available
12490 into ToolBarButtonInfo.
12492 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12494 * Control.cs: If the control has a transparent background, we
12495 need to refresh it when it moves and when it's parent's background
12496 image changes. [Fixes bug #80451]
12498 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12500 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
12502 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
12504 * XplatUIWin32.cs: Implement proper double buffering for Windows.
12505 [Fixes bug #80447, and probably speeds up things as well]
12507 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12509 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
12510 * XplatUIWin32.cs: We need to recalculate NC size after changing
12511 window style to toolwindow (otherwise the client rectangle will be
12512 3 pixels to small for some reason).
12513 * MdiWindowManager.cs: Revert NC size calculations to match how
12514 they are calculated only based on window styles (to match
12515 Win32AdjustWindowRectEx, since otherwise when setting size or
12516 location, Control will call Win32AdjustWindowRectEx to update client
12517 size, which would provoke a paint, then we'd get a NCCALCSIZE and
12518 calculate a different value of client size causing another paint
12520 * InternalWindowManager.cs: When moving or resizing a window only
12521 update size or location if they actually changed.
12522 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
12523 (seems to match Windows behaviour better). Cleaned up
12524 ManagedWindowDecorations to draw what's needed and nothing else
12525 (was drawing borders and lines where they shouldn't be)
12526 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
12527 (style = 0xFFFF) and takes into account caption height when
12528 calculating window rectangle.
12530 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12532 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
12533 can be added to toolbar multiple times, we need to maintain a list of
12534 button information for each positions.
12536 2007-01-16 Everaldo Canuto <everaldo@simios.org>
12538 * ToolBar.cs: Some small stetic changes.
12540 2007-01-16 Jackson Harper <jackson@ximian.com>
12542 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
12543 that allow us to have nested recalc = false blocks.
12544 - Add paste support for images in the RichTextBox
12545 * RichTextBox.cs: flush the text after the color is changed, so
12546 the change takes effect.
12547 - Use SuspendRecalc
12548 - Some extra debugging info
12549 * TextControl.cs: Tags no longer track their length, it is just
12550 computed from the next tags length, this makes things a little
12551 simpler and reduces places that we have to track length changes.
12552 - Refactored the linetag class a little so we could make it
12553 a base class for different kinds of tags
12554 - Created a image tag, a tag that can have a single image inserted
12556 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
12557 that we can call suspend multiple times.
12558 - Add some debugging methods
12560 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12562 * MdiClient.cs: Add ActivatePreviousChild for
12563 mdi child window navigation.
12564 * Form.cs: Use MdiClient.ActivateNextChild/
12565 ActivatePreviousChild instead of Form.SelectNextControl
12566 to select the next/previous child since
12567 SelectNextControl doesn't do it in the same order
12568 as mdi children should do it.
12570 2007-01-16 Chris Toshok <toshok@ximian.com>
12572 * Control.cs: remove container_selected field.
12574 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12576 * MdiClient.cs: Update main form's ActiveChild when
12577 updating keyboard focus for the mdi child.
12579 2007-01-16 Jonathan Pobst <jpobst@novell.com>
12581 * Control.cs: PreferredSize fix.
12583 * Form.cs: Add several 2.0 events, properties, and methods.
12585 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
12587 * Form.cs: Provide meaningful message when MdiParent is assigned a
12588 Form that is not an MdiContainer.
12590 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12592 * MdiClient.cs: Update main form's ActiveChild when
12593 activating a mdi child.
12595 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12597 * MdiWindowManager.cs: Fix NRE when merging menus and main form
12598 doesn't have a menu.
12600 * Form.cs: Request NCRecalc after creating a mdi child window.
12601 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
12602 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
12604 * MdiClient.cs: Add new method SendFocusToActiveChild that either
12605 sends keyboard focus to the active child, or to the MdiClient
12606 if there are no child forms.
12608 2007-01-15 Chris Toshok <toshok@ximian.com>
12610 * ListView.cs: drop the *Internal overrides, just do our work in
12611 ItemControl's WndProc instead.
12613 * UpDownBase.cs: a few large changes. Fix up the Selectable state
12614 of the various controls, and forward the events properly (in the
12615 same manner as MS) from the textbox to the UpDown. Also the
12616 ActiveControl of the UpDownBase gets set properly now. Finally,
12617 we don't call UpdateEditText from the ctor. Fixes bug #79957.
12619 * NumericUpDown.cs: set Text in the ctor.
12621 * DomainUpDown.cs: call UpdateEditText in the ctor.
12623 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
12624 so even a Selectable = false textbox can be focused if you click
12627 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
12628 just add their handling in their respective WndProc's. Also add
12629 an explicit FocusInternal method that doesn't consult CanFocus
12630 before calling Select(this).
12632 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
12633 do our work in WndProc instead.
12635 * TabControl.cs: same.
12637 * ComboBox.cs: same.
12639 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12641 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
12644 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12647 * ThemeWin32Classic.cs: Don't draw the item text outside
12648 item bounds in Details view, as well as use trimming.
12651 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12653 * Form.cs: Implement Form.ShowIcon.
12655 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
12656 null, which when combined with the DlgModalFrame window style removes
12657 the icon from the title bar.
12659 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12661 * Control.cs: Call OnMouseClick after OnClick. (2.0)
12663 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12665 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
12666 menu when mdi child windows theres a menu, uses insert to get icon
12667 at first position. Partially fix #80006.
12669 2007-01-15 Jonathan Pobst <jpobst@novell.com>
12671 * Clipboard.cs: Implement 2.0 methods.
12673 2007-01-15 Everaldo Canuto <everaldo@simios.org>
12675 * Menu.cs: Implement Insert method of MenuItemCollection class
12678 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12680 * ListView.cs: Implement 2.0 FindItemWithText method.
12682 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12684 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
12685 to calculate menu bar size. Fixes #80290.
12687 2007-01-11 Everaldo Canuto <everaldo@simios.org>
12689 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
12691 2007-01-11 Chris Toshok <toshok@ximian.com>
12693 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
12696 2007-01-11 Chris Toshok <toshok@ximian.com>
12698 * LinkLabel.cs: make sure to call base.Select in our Select method
12699 if it turns out we're going to be selected (i.e. if we have a link
12700 that is going to receive focus). That way our container's
12701 ActiveControl is updated properly.
12703 2007-01-11 Chris Toshok <toshok@ximian.com>
12705 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
12706 they have 1 or more links. this fixes the crash gert reported.
12708 2007-01-11 Andreia Gaita <avidigal@novell.com>
12710 * ContainerControl.cs: Remove ContainerSelected flag, not needed
12713 * Control.cs (Controls.Add): Check if control to be added to the collection
12714 is a top level control, and throw an ArgumentException if it is.
12715 Remove ContainerSelectedFlag, not needed anymore.
12717 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
12718 top most control doesn't activate the form. This fixes a problem in the
12719 MessageBox, where the default button wouldn't get focus because the form
12720 was activated before being Loaded - when the Owner is set, SetTopMost is
12721 called, and it would activate it.
12723 2007-01-11 Jonathan Pobst <jpobst@novell.com>
12725 * Button.cs: When clicked and setting the parent form's DialogResult,
12726 use FindForm instead of Parent, since parent could be a container
12727 control and not the Form. Fixes bug #80495.
12729 2007-01-10 Chris Toshok <toshok@ximian.com>
12731 * Form.cs: move the call to SendControlFocus into the same
12734 2007-01-10 Chris Toshok <toshok@ximian.com>
12736 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
12737 It breaks in the face of the new ActiveControl stuff, and should
12740 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
12741 activecontrol's focus if it's not already set, after we set
12742 ActiveControl, but before we call OnActivated. Re-fixes #79667
12743 after the previous focus/active control fixes regressed it.
12745 * Control.cs: reindent some code.
12747 2007-01-10 Chris Toshok <toshok@ximian.com>
12749 * Splitter.cs: clearing some outstanding changes from my tree.
12750 Replace all accesses (not writes) to the internal dock_style field
12751 with the Dock property.
12753 2007-01-10 Chris Toshok <toshok@ximian.com>
12755 * Control.cs: make FireEnter, FireLeave, FireValidating, and
12756 FireValidated virtual.
12758 * Form.cs: override and don't chain up calls to FireEnter and
12761 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12763 * ListView.cs: Add more text padding space when using
12764 auto resize for columns (the previous value didn't work fine).
12766 * ThemeWin32Classic.cs: Update text position inside columns,
12767 to match the appeareance of .Net.
12769 * ColumnHeader.cs: When using auto resize, only the Width should
12770 depend on the sub items, not the Height. Also, set width after
12771 auto resizing (the value of Width should never remain as -1 or -2).
12773 2007-01-10 Chris Toshok <toshok@ximian.com>
12775 * Application.cs: fix compilation errors when debug is enabled.
12777 2007-01-10 Chris Toshok <toshok@ximian.com>
12779 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
12780 add some nice ascii art pictures and explanation of the process).
12781 (GetMostDeeplyNestedActiveControl): new utility function we need
12782 because our ActiveControl can refer to a child container with its
12785 * Form.cs (OnActivated): remove the call to SelectActiveControl
12786 from here, since you can override this method and not chain up,
12787 and winforms still sets the active control.
12788 (OnCreateControl): also remove the unnecessary SelectActiveControl
12790 (WndProc): it's actually called from the WM_ACTIVATE block, just
12791 before calling OnActivated.
12793 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
12794 inside the else. the ActiveControl setter will end up setting
12795 focus on @control. This keeps us from setting it again (and
12796 generating an extra LostFocus/GotFocus pair).
12797 (Select (bool, bool)): reindent.
12799 2007-01-10 Jonathan Pobst <jpobst@novell.com>
12801 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
12802 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
12803 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
12804 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12805 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
12806 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
12807 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
12808 ToolStripTextBox.cs: Another wave of corcompare work.
12810 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12812 * ColumnHeader.cs: Implement 2.0 AutoResize method using
12813 the Width property.
12815 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
12816 methods by callling Column.AutoResize method on columns.
12818 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12820 * Control.cs: Provide proper implementations of PreferredSize
12821 and GetPreferredSize (2.0).
12823 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
12825 * Form.cs: Remove one character (!) to make my previous OnClosing
12826 stuff work for modal windows like MessageBox.
12828 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12831 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
12832 ListView.Columns to get the last displayed column. Fixes #80452.
12834 2007-01-09 Everaldo Canuto <everaldo@simios.org>
12836 * Label.cs, LinkLabel.cs: Source code identation fixes.
12838 2007-01-08 Everaldo Canuto <everaldo@simios.org>
12840 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
12841 we dont need to invalidate only borders because when we invalidate four
12842 border lines the invalidate's generates a complete redraw of button,
12843 because it now invalidate a complete rect some other redraws operations
12844 are fixed. Fixes #80196.
12846 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
12847 Remove ToolBarInvalidateEntireButton as it is not used.
12849 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12851 * Form.cs: Make sure that both OnClosing and OnFormClosing are
12852 called for 2.0 profile.
12853 * CloseReason.cs: Make class internal for 1.1.
12855 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
12857 * ToolStripManager.cs: Implement FindToolStrip functionality.
12858 * ToolStrip.cs: Register and unregister with ToolStripManager.
12860 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12862 * Control.cs: This was messy. 2.0 moves much of ControlCollection
12863 to ArrangedElementCollection. Implemented this with as few #if's as
12864 possible (which is still too many).
12866 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12868 * Control.cs: Implement SizeFromClientSize() [2.0].
12870 2007-01-07 Everaldo Canuto <everaldo@simios.org>
12872 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12873 use Theme.BorderSize to calculate area instead of static value 1,
12874 by the way use new BorderStaticSize instead Border3DSize when
12875 border_static is true. Fixes #79537.
12877 * XplatUIOSX.cs: Fix call to GetClientRectangle.
12879 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12882 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12884 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12886 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12888 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12889 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12892 - border_static field added, it will used to define when a control
12893 theres 3D border but it must be static (thin).
12894 - In GetWindowRectangle use Theme.BorderSize to calculate area
12895 instead of static value 1, by the way use new BorderStaticSize instead
12896 Border3DSize when border_static is true.
12898 * XplatUIX11.cs, XplatUIOSX.cs:
12899 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12901 * Theme.cs: BorderStaticSize field added.
12903 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12905 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12907 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12909 * Control.cs: Under InternalBorderStyle call RecreateHangle to
12910 mimic same behavior than win32 that set border only in CreateParams,
12911 it fix problems under CreateParams overrides. Fix #79442 and partial
12914 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12915 of thi control you must call recreate handle.
12917 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12918 need to do anything as RecreateHangle will take care about borders.
12920 2007-01-05 Mike Kestner <mkestner@novell.com>
12922 * ListView.cs: hack to eliminate Lost/Got focus notifications on
12923 cycles between the ItemControl and parent. Fixes #80388.
12925 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
12927 * Control.cs: Lazy init layout engine. Do not directly use
12928 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12930 2007-01-05 Chris Toshok <toshok@ximian.com>
12932 * DataGrid.cs: don't forceably rebind columns in SetDataSource
12933 unless our list manager has changed (i.e. unless we have reason to
12934 believe our columns have changed). Fixes #80422.
12936 also, disable the call do BindColumns in
12937 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
12938 1.1 the event isn't raised in response to a column addition on a
12941 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12943 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12944 that inheritors can not call it if they choose. Fixes bug #80456.
12946 2007-01-05 Andreia Gaita <avidigal@novell.com>
12948 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
12949 doesn't blow up with a null exception on marshalling.
12951 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12953 * Control.cs: Implement several 2.0 protected properties and methods.
12954 Ensure that all necessary events are being called when properties
12957 2007-01-05 Mike Kestner <mkestner@novell.com>
12959 * ListView.cs: implement PgUp/PgDn for Details view. Also
12960 fixes First/LastVisibleIndex to use the item_control.ClientRect
12961 instead of the parent control. Fixes #80378.
12963 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
12965 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12966 determine whether to use yard-pound or not (bug #78399).
12968 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12970 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12971 problems. So it is time to bring back the old popupbutton colors.
12973 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12976 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12977 property by using the internal information of the
12978 columns order in ListView.
12980 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
12982 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12983 Add 2.0 Tag properties.
12985 * LinkArea.cs: Add 2.0 ToString method.
12987 2007-01-03 Chris Toshok <toshok@ximian.com>
12989 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12990 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
12991 when we're editing, which fixes #80047.
12993 2007-01-03 Chris Toshok <toshok@ximian.com>
12995 * Form.cs: apply patch contributed by Dominik Seichter. fixes
12998 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
13000 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13001 property and implementation.
13003 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13004 for MdiWindowListItem property.
13006 * ToolStripDropDown.cs: Don't consider hidden menu items while
13007 laying out the menu.
13009 2007-01-03 Andreia Gaita <avidigal@novell.com>
13011 * SendKeys.cs: window handle is not needed in win32, so just
13012 get the active window for X after parsing keys and don't use
13013 it when building the message; it is passed by parameter to the
13014 Xplat method and used there to build the message instead. Also,
13015 wait for events to be processed on SendWait, as opposed to Send,
13016 which doesn't wait :) Playing with threads and Send() completely
13017 hangs on ms.net, only SendWait() works.
13020 X11Display.cs: Check for valid window handle.
13022 2007-01-03 Jackson Harper <jackson@ximian.com>
13024 * TextControl.cs: Need to prevent wrap calculations when replacing
13025 text (this was there before i removed it accidently).
13026 - Don't update the cursor during the positioning, just set it to
13027 selection_start at the end of the operaion.
13029 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13032 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13034 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13036 * MonthCalendar.cs: Added Click and DoubleClick events again,
13037 but this time they only hide Control's Click and DoubleClick.
13039 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
13041 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
13042 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
13044 2007-01-02 Jackson Harper <jackson@ximian.com>
13046 * TextBoxBase.cs: We move the caret with the split now, so we
13047 don't need to explicitly move the caret after splitting. This
13048 fixes the caret bumping down an extra line on Enter.
13050 2007-01-02 Miguel de Icaza <miguel@novell.com>
13052 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
13055 * ScrollableControl.cs: Add Scroll event.
13057 2007-01-02 Mike Kestner <mkestner@novell.com>
13059 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
13060 to fix all hdr height padding codepaths. Fixes #80207.
13062 2007-01-02 Chris Toshok <toshok@ximian.com>
13064 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
13065 setting it to the Control defaults anyway, and it being after the
13066 Dock set was screwing up layout.
13067 (set_Dock): don't short circuit out of setting base.Dock. Also,
13068 no need to call UpdateStatusBar here, as it'll be re-layed out if
13071 2007-01-02 Mike Kestner <mkestner@novell.com>
13073 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
13074 to header height for width == -1. Fixes the rest of #80207.
13076 2007-01-02 Mike Kestner <mkestner@novell.com>
13078 * ListView.cs: rework the mouse event forwarding everaldo added
13079 to translate the coordinates to the parent control not
13080 raise the parent events until after we've done our work. Hover
13081 needs more work, in the case where HoverSelection is on, because
13082 the item control receives more than one MouseHover per Enter
13083 event, so we need to ensure only the "first" hover gets forwarded.
13084 Opening a minor bug for that.
13086 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
13088 * CheckedListBox.cs: Fixed SelectionMode to match MS.
13089 * ListControl.cs: Implemented AllowSelection property. Removed extra
13091 * ListBox.cs: Implemented AllowSelection property.
13093 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13095 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
13096 SelectedItem, it prevent for errors when you must disable item
13097 before perform click. Fixes #80409.
13099 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13101 * MenuAPI.cs: Prevent second level and beyond submenus to close
13102 until first level when move out side of popup.
13104 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13107 - Down submenu positin in three pixels.
13108 - Closes sub menu when mouse leaves from menu. Fixes #80402.
13110 2007-01-02 Everaldo Canuto <everaldo@simios.org>
13112 * ThemeWin32Classic.cs:
13113 - Fix popup menu size adding one pixel on the top.
13114 - Down menu item border from two to one to mimic Win32.
13115 - Some source identation fixes.
13117 2007-01-01 Everaldo Canuto <everaldo@simios.org>
13119 * ThemeWin32Classic.cs: Use float numbers to calculate size and
13120 position of menu arrows, it fix wrong arrow size.
13122 2007-01-01 Everaldo Canuto <everaldo@simios.org>
13124 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
13125 instead of line, it simplify draw operation and fix it using 3D
13126 borders to mimic Win32.
13128 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
13130 * StatusStrip.cs: Add implementation of the sizing grip.
13132 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
13133 StatusStrip rendering.
13135 2006-12-31 Chris Toshok <toshok@ximian.com>
13137 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
13138 override the layout style (anchor/dock) of the control. assign to
13139 Dock instead. Fixes bug #80416.
13141 * ToolStrip.cs: same.
13143 2006-12-31 Andreia Gaita <avidigal@novell.com>
13145 * ContainerControl.cs: Use ContainerSelected flag to check if
13146 a Container is directly selected, or if Select is called on a
13147 non-container. If a container is directly selected, focus events
13148 should not be raised.
13149 Apply #80411 patch to throw exception on set_ActiveControl if
13150 control is the same as the current one.
13152 * Control.cs: Use ContainerSelected flag (see above).
13153 Add invalidation check to raise event but not invalidate if
13155 Apply #80411 patch.
13158 2006-12-31 Everaldo Canuto <everaldo@simios.org>
13160 * MenuAPI.cs: After click, dont close popup menu when menu is
13161 ContextMenu. Fixes #80399.
13163 2006-12-30 Chris Toshok <toshok@ximian.com>
13165 * ContainerControl.cs: make sure we throw the exception if the
13166 container control doesn't contain the control we're setting
13169 2006-12-30 Chris Toshok <toshok@ximian.com>
13171 * Control.cs (SetTopLevel): fix the exception raised by
13172 SetTopLevel for child controls.
13173 (set_Anchor): call UpdateDistances when setting the anchor type.
13174 This fixes bug #80336.
13176 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13178 * Theme.cs: For now, revert back to 8pt font.
13180 2006-12-29 Everaldo Canuto <everaldo@simios.org>
13182 * MenuAPI.cs: Set popup as active when open a ContextMenu.
13185 2006-12-29 Chris Toshok <toshok@ximian.com>
13187 * Control.cs: reorder the code in OnResize to give the same event
13190 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
13192 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
13193 TileHorizontally and TileVertically.
13195 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
13197 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
13198 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
13199 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
13200 Corrected copyright and email adress.
13202 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13204 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
13205 of Exception in FullPath property if no TreeView is associated with
13208 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
13210 * Theme.cs: Marked default_font as private, and initialize it in ctor
13211 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
13213 * ThemeGtk.cs: Removed default_font intialization.
13214 * ThemeWin32Classic.cs: Removed default_font initialization.
13216 2006-12-28 Chris Toshok <toshok@ximian.com>
13218 * Control.cs: fix a couple of place where we were creating handles
13219 more aggressively than we should be. Fixes ControlRefresh unit
13222 2006-12-28 Chris Toshok <toshok@ximian.com>
13224 * Control.cs: contrary to what the comment said, Control.Dock does
13225 not supercede Control.Anchor - the last one you assign to decides
13226 the layout behavior. so we need to keep track of which was the
13227 last set. Also, fix some of the affected property arguments in
13228 PerformLayout calls, and remove an redundant parent.PerformLayout
13231 Add a VisibleInternal property, which returns is_visible. We
13232 can/should get rid of all the usage of this field elsewhere.
13234 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13236 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
13237 control style, not DoubleBuffer. Added UseDoubleBuffering property
13238 that indicates whether doublebuffering is enabled and supported.
13239 (comment from and code based on Gert Driesen's patch in #80324).
13242 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13244 * Control.cs: Fixed a NRE.
13246 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13248 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
13251 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13253 * Control.cs: Rewrote double buffering, now a seperate
13254 class handles all the buffering, no Graphics is disposed of
13255 until the painting is finished (earlier implementation
13256 would crash if the control was resized in the OnPaint,
13257 since it would cause the double buffer to be recreated
13258 and the old one disposed), a separate Graphics is
13259 created for every paint (MS behaviour and anyways the state
13260 of the Graphics would have to be saved and restored otherwise)
13262 * XplatUIDriver.cs:
13264 * XplatUI.cs: Added and implemented GetOffscreenGraphics
13265 so that we can get the graphics for the back buffer without
13266 having to create a new one and remove the offscreen_dc parameter
13267 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
13269 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13271 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
13272 Also make virtual all the key-related methods.
13274 * ListViewItem.cs: Make virtual the key related methods for
13275 ListViewSubItemCollection.
13277 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13281 * ThemeWin32Classic.cs:
13282 * Theme.cs: Initial support for Tile view in ListView,
13283 as well as the implementation of the required bits for it (Item
13286 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13288 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
13289 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
13290 Provide useful exception messages.
13292 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13294 * TrackBar.cs: Remove a warning.
13295 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
13296 when used by DateTimePicker, fixes #80287. This also requires that
13297 MonthCalendar implements it's own drawing for the yearly updown control,
13298 otherwise the Capture tracking would be too complicated. Removed the Click
13299 and DoubleClick events (according to comments they were hiding the base class
13300 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
13301 raise these events, not that they cannot be raised. It is possible to raise
13302 them by calling OnClick and OnDoubleClick). Added two internal fields in
13303 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
13304 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
13305 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
13306 event, no longer needed.
13308 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13310 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
13311 true if new value differs from current value.
13313 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13315 * Control.cs: ControlCollection.Count must be public. Fixed build of
13318 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13320 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
13322 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
13324 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
13326 2006-12-26 Everaldo Canuto <everaldo@simios.org>
13328 * Control.cs: Invalidates control including when Width and Height is
13329 equal zero or is not visible, only Paint event must be care about
13330 this. Fixes #79913.
13332 2006-12-26 Chris Toshok <toshok@ximian.com>
13334 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
13335 more corcompare work.
13337 * DataGridView.cs: fix compiler warning.
13339 * ColumnHeader.cs: some corcompare work, and also take the
13340 opportunity to make the internal fields private.
13342 * ListView.cs: fix the fallout from the above field change.
13344 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
13346 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
13347 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
13348 ToolStripTextBox.cs: Fixes to events and corcompare.
13350 2006-12-26 Everaldo Canuto <everaldo@simios.org>
13352 * ListView.cs: Call owner.OnMousexx event to propagate events from
13353 item to ListView. Fixes #80367.
13355 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13357 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
13358 if value is less than one. ItemHeight should not be set to a value
13359 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
13360 Removed extra tabs.
13362 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
13364 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
13365 * ToolStripStatusLabel.cs: Add Spring for Moma.
13367 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13369 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
13370 Fixed code formatting. Removed debug code.
13371 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
13373 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
13375 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
13376 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
13377 ArgumentOutOfRangeException if ColumnCount is negative. In
13378 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
13379 less than 4 or higher than 32768.
13380 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
13381 Fixed FormatProvider to return CurrentCulture unless explicitly set.
13382 Fixed IsFormatProviderDefault to return true if FormatProvider has
13383 not been explicitly set.
13385 2006-12-25 Chris Toshok <toshok@ximian.com>
13387 * Application.cs: add a couple of 2.0 events.
13389 2006-12-25 Chris Toshok <toshok@ximian.com>
13391 * Control.cs: fix compiler warning.
13393 * AxHost.cs: corcompare fixes.
13395 * ApplicationContext.cs: corcompare fixes.
13397 2006-12-25 Chris Toshok <toshok@ximian.com>
13399 * Control.cs: only update dist_right/dist_bottom if the
13400 width/height is > 0. this fixes anchored controls being resized
13401 smaller until they disappear and then resized larger again.
13403 2006-12-25 Chris Toshok <toshok@ximian.com>
13405 * Control.cs: a couple of changes. Remove dist_left and dist_top,
13406 since they're nothing more than X/Left and Y/Top, respectively.
13408 Also, move back to a per-control Bitmap/Graphics for
13409 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
13410 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
13413 2006-12-25 Miguel de Icaza <miguel@novell.com>
13415 * MessageBox.cs: Implemented overload that takes a new "bool
13416 displayHelpButton" by adding a new internal field "show_help".
13417 When clicked this will raise the HelpRequested on the owner or the
13420 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
13421 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
13423 * ListView.cs: Add support ColumnWidthChanged and
13424 ColumnWidthChanging.
13426 Add support for ColumnReordered event.
13427 (ReorderColumn): Add NET_2_0 specific support for cancelling the
13430 Very nice codebase!
13432 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
13434 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
13436 2006-12-24 Chris Toshok <toshok@ximian.com>
13438 * GridTablesFactory.cs: 2.0 corcompare work.
13440 * ToolStripContainer.cs: add "override" to
13441 ContextMenuStripChanged, and remove the local event object.
13443 * ToolStripDropDown.cs: same with a couple properties.
13445 * ToolStripPanel.cs: same with AutoSizeChanged event.
13447 * TextBoxBase.cs: add "override" to AutoSizeChanged.
13449 * Form.cs: add the remaining 2.0 events, and do some corcompare
13452 * DateTimePicker.cs: add "new" to padding.
13454 * ButtonBase.cs: use Control's use_compatible_text_rendering.
13456 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
13458 * DataGridView.cs: PaddingChanged is overridden.
13460 2006-12-24 Chris Toshok <toshok@ximian.com>
13462 * Control.cs: corecompare work here too.
13464 * DataGridViewElement.cs, DataGridView.cs,
13465 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
13466 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
13467 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
13468 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
13471 2006-12-24 Miguel de Icaza <miguel@novell.com>
13473 * Control.cs: Switched the error message on the console for a
13474 todo. A review of the code will have to cope with this anyways
13475 (since its a large feature, it is in our radar) and it was
13476 producing too much output when running PDN.
13478 * ToolStripComboBox.cs: Set the text when the SelectedIndex
13479 changes. Applications depend on this (PDN 2.72)
13481 2006-12-23 Chris Toshok <toshok@ximian.com>
13483 * TableLayoutSettings.cs: finish up the corcompare work for this
13486 2006-12-23 Chris Toshok <toshok@ximian.com>
13488 * Control.cs: make SetImplicitBounds internal, do some futzing
13489 with LayoutEngine so that it's available in 1.1, and remove the
13490 entire duplicated code mess from PerformLayout. Use
13491 System.Windows.Forms.Layout.DefaultLayout instead.
13493 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
13495 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13497 * Form.cs: Add MainMenuStrip property.
13499 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
13501 * Control.cs: Add ContextMenuStrip property and implementation.
13502 Fix ContextMenu implementation to show menu centered on control when
13503 activated using the keyboard instead of showing at screen (0,0).
13505 * ToolStripDropDown.cs: Fix needed overload of Show ().
13507 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13509 * Menu.cs: Name property added for 2.0 profile.
13511 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13513 * Menu.cs: Update information about FindMenuItem, method to be
13516 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13518 * MenuAPI.cs: When deselect items deselect also selected subitems.
13520 2006-12-23 Everaldo Canuto <everaldo@simios.org>
13522 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
13523 FindSubItemByCoord to found itens that is not active, also an
13524 cheking added to FindSubItemByCoord to search for items only
13525 in visible popup windows. Fixes #80274.
13527 2006-12-22 Everaldo Canuto <everaldo@simios.org>
13529 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
13530 internal property, it be care about change ExStyle.
13532 2006-12-22 Andreia Gaita <avidigal@novell.com>
13534 * ContainerControl.cs: set activeControl for parent forms up the
13535 tree when the new activecontrol is a container.
13536 When validating the active control, if it is a container, also
13537 raise up the validation for it's active control. Fixes #80280
13539 * Control.cs: Add internal property flag and check to prevent
13540 Focus events from getting raised when Select() is called for
13541 a ContainerControl. There are still too many focus events being
13542 raised at the moment though.
13543 Cleaned up the code a bit.
13545 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13547 * Control.cs: Added all missing 2.0 events.and
13548 fixed a couple of corcompare issues.
13549 * TrackBar.cs: Implemented missing 2.0 bits.
13550 * MonthCalendar.cs,
13551 * DateTimePicker.cs,
13552 * MdiClient.cs: Fixed some corcompare issues.
13554 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13556 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
13557 SplitterPanel.cs: corecompare work.
13559 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13561 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
13562 Clean up warnings for BackgroundImageChanged and PaddingChanged
13563 events now that they are implemented in Control.cs.
13565 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
13567 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
13569 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
13570 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
13571 of TableLayoutPanel and supporting cast.
13573 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13576 - GrabWindow now confines the mouse pointer to the confine window.
13577 - Added Win32ClipCursor and Win32GetClipCursor.
13580 - Added CaptureWithConfine to be able to capture and confine
13583 * InternalWindowManager.cs:
13584 - Call CaptureWithConfine instead of Capture if we're an
13585 MdiChild (fixes #79982).
13587 2006-12-21 Chris Toshok <toshok@ximian.com>
13589 * DataGrid.cs: guard against the initial state of selection, where
13590 selection_start == -1. make sure we only select from index >= 0.
13593 2006-12-21 Chris Toshok <toshok@ximian.com>
13595 * Control.cs: we don't need to be so draconian with
13596 UpdateDistances, and we thusly don't need to call it before
13597 calling PerformLayout in ResumeLayout. Fixes bug #80289.
13599 2006-12-21 Daniel Nauck <dna@mono-project.de>
13602 TextBox.cs: Implemented AutoComplete properties.
13604 2006-12-20 Chris Toshok <toshok@ximian.com>
13606 * DataGridView*.cs: some corecompare work.
13608 2006-12-20 Jackson Harper <jackson@ximian.com>
13610 * XplatUIX11.cs: We need to hide the caret when deleting it,
13611 otherwise you get carets left lying around everywhere.
13612 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
13613 prevents getting some weird half drawn caret tracers when
13615 * TextControl.cs: Attempt to reduce the number of times we need to
13616 recreate the caret.
13618 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
13620 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
13622 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13624 * DateTimePicker.cs:
13625 - Implemented missing 2.0 bits.
13626 - Changed some default values to match MS.
13628 2006-12-20 Jackson Harper <jackson@ximian.com>
13630 * TextBoxBase.cs: When changing the font across the document we
13631 can't recalculate after changing each line, since that will cahnge
13633 - PreferredHeight is a little different than i thought.
13634 - When backspacing, move the caret before we do the actual char
13635 delete, because when that delete crosses a wrap boundary the
13636 positional information will change.
13638 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13640 * Control.cs: Added some missing 2.0 bits:
13641 BackgroundImageLayout, BackgroundImageLayoutChanged,
13642 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
13643 add IBindableComponent and IDropTarget implementation.
13645 * MonthCalendar.cs:
13646 - Added all missing 2.0 features:
13647 BackgroundImageLayout, RightToLeftLayout,
13648 OnHandleDestroyed, RightToLeftLayoutChanged,
13649 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
13651 - Rewrote all the BoldDate code, it was completely broken.
13652 - Fixed all the tests (the tests can now be re-enabled, the
13653 problems were not with the tests, but with the control, it was
13656 * DateTimePicker.cs: Changed the location where the
13657 MonthCalendar is shown.
13659 2006-12-19 Chris Toshok <toshok@ximian.com>
13661 * DataGridView.cs: add IDropTarget implementation.
13663 * ToolStripPanel.cs: add IDropTarget implementation.
13665 2006-12-19 Jackson Harper <jackson@ximian.com>
13667 * TextControl.cs: soft now means something different than what it
13668 used to mean, we want to move the caret regardless of whether or
13669 not this break was soft (would we really have wanted the caret
13670 to not move with the break in the old context?)
13671 * TreeView.cs: Make sure we factor in the vert scrollbar when
13672 calculating the horizontal scrollbar's maximum.
13674 2006-12-19 Andreia Gaita <avidigal@novell.org>
13676 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
13677 check for keywords in alternate casing, close bug #80049.
13679 2006-12-19 Chris Toshok <toshok@ximian.com>
13681 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
13682 methods (which all do nothing).
13684 * IDropTarget.cs: add the 4 missing methods.
13686 2006-12-19 Chris Toshok <toshok@ximian.com>
13688 * TableLayoutRowStyleCollection.cs: corcompare work.
13690 * TableLayoutSettings.cs: same.
13692 * TableLayoutStyle.cs: same.
13694 * TableLayoutColumnStyleCollection.cs: same.
13696 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
13698 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
13699 TableLayoutPanel I've had in my local tree for way too long.
13701 2006-12-19 Miguel de Icaza <miguel@novell.com>
13703 * TableLayoutSettings.cs: Finish the public API (still needs all
13704 the logic to update on changes).
13706 * TableLayoutPanelCellPosition.cs: new file.
13708 * TableLayoutRowStyleCollection.cs,
13709 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
13710 TableLayoutSettings.cs: Track the final 2.0 table api.
13712 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13714 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
13715 and Image List 2.0 members for ColummnHeader.
13716 * ListView.cs: Add key-related 2.0 methods for
13717 ColumnHeaderCollection.
13719 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13721 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
13722 ArgumentNullException if items argument is null. Ignore null item in
13723 arrays. Removed extra tabs.
13725 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
13727 * MonthCalendar.cs: Fixed InvalidCastException.
13729 2006-12-19 Jackson Harper <jackson@ximian.com>
13731 * TextControl.cs: Don't increment the position here.
13732 - When calculating char positions only add in the line break size
13733 for hard line breaks.
13735 2006-12-19 Andreia Gaita <avidigal@novell.org>
13737 * SendKeys.cs: Changed some things to match ms.net behaviour
13738 when parsing shifted capital letters.
13740 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
13741 Add window handle as parameter to SendInput. X11 needs the
13742 window handle, and the handle being passed to it in the keys
13743 queue is the active control handle (which windows needs), not
13746 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
13747 to support SendKeys on X.
13749 * X11Keyboard: Implement helper method to lookup a linux keycode
13750 given the virtual keycode. Added table of keycode-2-virtualkey
13751 values to support this.
13753 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13755 * ListView.cs: Add support for SelectedIndexCollection
13756 and SelectedItemCollection 2.0 methods. Implement support
13758 * ListViewItem.cs: Add support for ListViewSubItemCollection
13759 2.0 methods. Also, fix an incorrect behavior of AddRange method
13760 (it shouldn't call Clear).
13761 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
13763 2006-12-19 Jackson Harper <jackson@ximian.com>
13766 * TextBoxBase.cs: New args for FormatText
13767 * TextControl.cs: Rewrote the main drawing method, this version
13768 feels a little easier to understand and debug to me. Hopefully it
13769 does to others also
13770 - Fix FormatText to OR in the new formating values. Added
13771 FormatSpecified param, basically this works in the same way as
13772 BoundsSpecified in Control.
13773 - Set the caret properties when the caret is positioned.
13774 - When wrapping text make sure that we calculate the width of the
13776 - when calculating alignments we might have wrapped down to the
13777 next line, so don't search for an individual tag, search for the
13779 - We need to invalidate the selection area when we replace the
13782 2006-12-19 Daniel Nauck <dna@mono-project.de>
13784 * Application.cs: add Restart () 2.0 support
13786 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13788 * MenuItem.cs: Invalidate menu item rectangle after change Enable
13789 property. Fixes #80268.
13791 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13793 * MenuAPI.cs: Dont trigger select event when closes top menu
13794 item. Fixes #80270.
13796 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13798 * MenuAPI.cs: When you click on menuitem only trigger onselect
13799 event for top menu itens. Fixes #80271.
13801 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13803 * MdiWindowManager.cs: Make IconicBounds depend on
13804 the bottom of MdiClient, not the top (fixes #80267)
13806 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13808 * MdiClient.cs: Added missing 2.0 attribute
13810 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13812 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
13813 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
13815 2006-12-18 Everaldo Canuto <everaldo@simios.org>
13817 * MenuAPI.cs: Fix click when menuitem is not popup,
13818 this regression was caused by last commit (#80272).
13820 2006-12-17 Everaldo Canuto <everaldo@simios.org>
13822 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
13823 fire click event or close menu. Fixes #80272.
13825 2006-12-17 Daniel Nauck <dna@mono-project.de>
13827 * ListViewHitTestInfo.cs: add
13829 2006-12-17 Daniel Nauck <dna@mono-project.de>
13831 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
13832 * FlatButtonAppearance.cs: add
13833 * DockingAttribute.cs: add
13835 2006-12-17 Chris Toshok <toshok@ximian.com>
13837 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
13838 and rebind our columns when it does - this way, if you make
13839 changes to the DataTable (or set the Table attribute on a DataView
13840 after setting it as the DataGrid's DataSource, the changes are
13841 made visible.) Fixes bug #80107.
13843 2006-12-17 Daniel Nauck <dna@mono-project.de>
13845 * ListViewGroup.cs: add internal Location property for layouting.
13846 * Theme.cs: add abstract ListViewGroupHeight function.
13847 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
13849 2006-12-16 Andreia Gaita <avidigal@novell.com>
13851 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
13852 Added reset of selected index to 0 when adding first tab page.
13855 * NumericUpDown.cs: Fix NET_2_0 check
13857 2006-12-16 Daniel Nauck <dna@mono-project.de>
13859 * ListViewGroup.cs: fixed DefaultValueAttribute value
13861 2006-12-16 Daniel Nauck <dna@mono-project.de>
13863 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13865 2006-12-15 Miguel de Icaza <miguel@novell.com>
13867 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13868 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13869 ScrollableControl.cs: Add a handful of methods that are
13872 2006-12-15 Chris Toshok <toshok@ximian.com>
13874 * XplatUIWin32.cs: initial implementation of the Reversible
13875 drawing functions. there are some problems. DrawReversibleFrame
13876 doesn't seem to work at all for Dashed FrameStyle, and in the
13877 Thick case there are drawing errors at the corners (we probably
13878 need to bind Rectangle instead of doing moveto/lineto's.)
13880 2006-12-16 Andreia Gaita <avidigal@novell.com>
13882 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
13883 to send blocks of key messages. Send accumulates keys to send with Flush,
13884 while SendWait sends all keys immediately.
13886 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13887 XplatUIX11.cs, XplatUIX11-new.cs:
13888 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13889 to Win32 SendInput.
13890 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13892 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
13893 testing for ms.net on this class is very tricky, as the tests run too fast
13894 to allow the hook to release, essentially freezing the keyboard and the
13895 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
13898 2006-12-16 Daniel Nauck <dna@mono-project.de>
13900 * Padding.cs: fixed serialization compability to MS ("_var" field names),
13901 added missing attributes.
13903 2006-12-15 Daniel Nauck <dna@mono-project.de>
13905 * ListViewGroup.cs: Added missing attributes.
13906 * ListViewGroupCollection.cs: Added missing attributes.
13908 2006-12-15 Daniel Nauck <dna@mono-project.de>
13910 * ListViewItem.cs: fixed ListViewSubItem text property.
13912 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13914 * Control.cs: Added missing 2.0 attributes
13916 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13918 * MdiClient.cs: Added missing 2.0 attribute.
13919 * MonthCalendar.cs: Added some missing 2.0 attributes
13922 2006-12-15 Daniel Nauck <dna@mono-project.de>
13924 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13926 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
13928 * MainMenu.cs: Add the new 2.0 constructor to help out people
13929 using the MainMenu in VS2005.
13931 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13933 * MdiChildContext.cs: Removed it, no longer used.
13934 * MdiClient.cs: Added missing 2.0 attributes.
13936 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13938 * InternalWindowManager.cs: Fix a NullRef with previous
13939 changes for toolwindows.
13941 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13944 - Added AfterTopMostControl to allow for certain controls
13945 to always stay on top when normal controls are brought to
13949 - (DrawInversibleRectangle): Get window rectangle from Win32
13950 in stead of from control, since Win32 doesn't calculate
13951 screen coords correctly from control's Location if it
13952 have docked siblings.
13954 * MdiWindowManager.cs:
13955 - Correct the control menu popup location when clicked on
13956 the maximized form icon. (fixes #80223.1)
13957 - Don't show moving rectangle if mouse hasn't moved from
13958 the original clicked point.
13959 - Removed FormGotFocus handler (not used).
13960 - Calculate the control buttons location from the main
13961 window's size and not client size (fixes #79770).
13962 - Form is now closed when the form icon is double-clicked
13964 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13966 * InternalWindowManager.cs:
13967 - Moved some MDI-only methods to MdiWindowManager.
13968 - Removed unused properties and methods.
13969 - Unified method naming for methods handling wm messages.
13970 - Moved all message handling to seperate methods for
13973 * ThemeWin32Classic.cs:
13974 - DrawManagedWindowDecorations now draws the title bar
13975 with a gradient brush.
13976 - Add a CPDrawButtonInternal that allows us to specify
13977 light, normal and dark colors for the buttons (control
13978 buttons for MDI children were drawn with the same light
13979 color as the background, therefore loosing the 3D effect).
13982 - Add a CapturedControl property that is used to
13983 determine the control to resize (defaults to parent).
13984 Needed for MdiClient, since its SizeGrip's parent is
13985 MdiClient, but the control to resize is the main form.
13988 - Set SizeGrip's CapturedControl to the main form in order
13989 to resize the main form and not the MdiClient.
13990 - Override AfterTopMostControl to leave the scrollbars
13993 2006-12-15 Daniel Nauck <dna@mono-project.de>
13995 * ListView.cs: fixed ListViewItemCollection AddRange and
13996 implemented ListViewItemCollection AddRange 2.0 support.
13998 2006-12-15 Daniel Nauck <dna@mono-project.de>
14000 * ListViewGroup.cs: Add.
14001 * ListViewGroupCollection.cs: Add
14002 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14003 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14004 stub for ImageKey 2.0 support.
14006 2006-12-14 Mike Kestner <mkestner@novell.com>
14008 * ListView.cs: add text padding to the autocalculation for columns
14009 of width -2. Fixes #80207.
14011 2006-12-14 Mike Kestner <mkestner@novell.com>
14013 * ListView.cs: add some index guarding for partial row navigation
14014 logic. Fixes #80250.
14016 2006-12-14 Mike Kestner <mkestner@novell.com>
14018 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14019 are added or inserted to the collection. Fixes #81099.
14021 2006-12-13 Everaldo Canuto <everaldo@simios.org>
14023 * MenuAPI.cs: Closes menu when right click out side of popup
14024 it fix problem in ContextMenu and MainMenu. Fixes #80252.
14026 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14028 * ListViewItem.cs: Fix dumb error.
14030 * ListView.cs: Add Find and ContainsKey methods in
14031 ListViewItemCollection, and also return true for IsReadOnly
14032 and IsFixedSize (changes for 2.0).
14034 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
14036 * Control.cs: Allow Region to be set to null.
14038 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14040 * MdiWindowManager.cs: Remove unused (commented out) code.
14041 * Form.cs: When the MdiChild is maximized, the form needs
14042 WM_NCMOUSELEAVE, so request it.
14043 * InternalWindowManager.cs:
14044 - Added tooltips to control buttons.
14045 - Removed duplicated control button handling code.
14046 - Removed unused (commented out) code.
14048 2006-12-12 Everaldo Canuto <everaldo@simios.org>
14050 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
14051 was used because we must set cursor without trigger ChangeCursor event
14052 and without change Cursor control property. Fixes #79963.
14054 2006-12-12 Andreia Gaita <avidigal@novell.com>
14056 * Control.cs: Check if Region setter value is null, and ignore
14058 2006-12-12 Jackson Harper <jackson@ximian.com>
14060 * TextControl.cs: We were almost always drawing one more line then
14061 needed, since the GetLineByPixel will return the last line found
14062 at that pixel. In most cases though, we were invalidating up to
14063 the junction between two lines.
14064 - Improve debug code.
14066 2006-12-12 Chris Toshok <toshok@ximian.com>
14068 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
14069 and FillReversibleRectangle.
14071 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
14072 and FillReversibleRectangle.
14074 * XplatUIWin32.cs: add stubs which do nothing for
14075 DrawReversibleFrame, DrawReversibleLine, and
14076 FillReversibleRectangle.
14078 * XplatUIOSX.cs: add stubs which raise NIE for
14079 DrawReversibleFrame, DrawReversibleLine, and
14080 FillReversibleRectangle.
14082 * XplatUIX11.cs: add working implementation for
14083 DrawReversibleFrame, DrawReversibleLine, and
14084 FillReversibleRectangle.
14086 * ControlPaint.cs: implement DrawReversibleFrame,
14087 DrawReversibleLine, and FillReversibleRectangle, by calling into
14088 the appropriate XplatUI method.
14090 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14092 * Form.cs: Make MdiClient have the focus even if it's
14093 not selectable, since it should receive WM_KEY* and WM_MOUSE
14094 messages. Fixes #79907.
14096 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14098 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
14099 queried after the window is created.
14101 * XplatUIX11.cs: Added SendParentNotify to implement
14102 WM_PARENTNOTIFY logic. Fixes #79965.
14104 * Control.cs: Added MakeParam.
14106 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14108 * MdiClient.cs: Resume Layout before setting window
14109 states (fixes #80201).
14111 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14113 * MenuAPI.cs: Deselect a menu item after performing
14114 the click (fixes #80197).
14116 2006-12-11 Jackson Harper <jackson@ximian.com>
14118 * TextBoxBase.cs: We need to cap this value, since Maximum -
14119 ViewPortHeight can be less than zero.
14120 - Only do selection with the left mouse button.
14121 * TextBox.cs: Don't tell the world that we have a context menu.
14122 * Control.cs: New method so that we can control whether or not the
14123 context menu is visible outside MWF.
14125 2006-12-11 Everaldo Canuto <everaldo@simios.org>
14127 * ToolBarButton.cs: Fix text positon.
14129 2006-12-11 Miguel de Icaza <miguel@novell.com>
14131 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
14133 * Control.cs (DoubleBuffered): Add implementation.
14135 * Application.cs (OpenForms): Add.
14137 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
14139 * Form.cs: Use opacity instead of Opactiy to determine if we need
14140 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
14142 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
14144 * Control.cs: Fix NRE if Control.Site was set to null.
14146 2006-12-11 Chris Toshok <toshok@ximian.com>
14148 * Control.cs: ControlCollection.Remove should return if the arg is
14149 null, and ControlCollection.SetChildIndex should raise a ANE.
14151 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
14153 * Control.cs: Verify value set for Dock property. Code formatting
14156 2006-12-11 Jackson Harper <jackson@ximian.com>
14158 * TextControl.cs: Draw the caret and the selection when a flag is
14160 * TextBoxBase.cs: We want to draw the caret and the selection for
14161 TextBox but not for TextBoxBase.
14162 - If the window is resized and scrolling is no longer needed (the
14163 whole doc is visible) set the scroll position to zero.
14164 - The default SelectWord (the one TextBox uses) should move the
14165 caret to the end of the word.
14166 - SelectAll moves the caret to the end of the selection.
14167 * TextBox.cs: We don't selectall on focus, we just do it when the
14168 control is created.
14170 2006-12-11 Mike Kestner <mkestner@novell.com>
14172 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
14174 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14176 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
14178 * ListViewItem.cs: Add Name 2.0 property.
14180 2006-12-11 Andreia Gaita <avidigal@novell.com>
14182 * TabControl.cs: Set visibility on selected or default tab
14183 when tabcontrol handle is created, so that it's contents
14184 actually show up (duh). Fixes #80193
14185 Don't redraw the control if there is no handle created, as
14186 the selected index might be completely invalid. Added some tests
14189 2006-12-11 Everaldo Canuto <everaldo@simios.org>
14191 * ToolBar.cs: Uses maximun width and height of all buttons as
14192 button rectangle when ButtonSize specified, it looks strange but
14193 is what happens in Win32. Fixes #80189.
14195 2006-12-11 Jackson Harper <jackson@ximian.com>
14197 * TextControl.cs: Need to track undo levels ourself, since
14198 compound actions will mess them up.
14200 2006-12-10 Andreia Gaita <avidigal@novell.com>
14202 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
14203 SelectedIndex value is changed (even if it's not valid).
14204 Reset SelectedIndex to 0 when the handle is created and if
14205 the current index is invalid.
14206 Fixes SelectdeIndex unit tests and #80128
14208 2006-12-08 Chris Toshok <toshok@ximian.com>
14210 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
14211 calls EndEdit, it needs to be called before we set current_cell to
14212 its new value. Otherwise, we end up committing the value in the
14213 textbox to the new cell as well. Fixes bug #80160.
14215 2006-12-08 Chris Toshok <toshok@ximian.com>
14217 * Form.cs (set_CancelButton): if the button's DialogResult is
14218 None, set it to Cancel. Fixes bug 80180.
14220 2006-12-08 Jackson Harper <jackson@ximian.com>
14222 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
14223 to watch ourselves when setting the canvas size and setting the
14226 2006-12-08 Chris Toshok <toshok@ximian.com>
14228 * DataGrid.cs: comment out the two MakeTransparent calls for the
14229 time being so people using trunk (and not 1.2.2) on windows can
14230 actually use the datagrid. This deals with bug #80151.
14232 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
14234 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
14235 Graphics.DrawImage (image, int, int, int, int) overload instead
14236 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
14237 the dpi difference and was blurring images it drew.
14240 2006-12-08 Chris Toshok <toshok@ximian.com>
14242 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
14243 rowcnt is 0 (such as with an empty datasource), and make sure we
14244 initialize not_usedarea.Y to cells.Y, so we don't draw over the
14245 other areas (caption, parent row, etc, etc). Fixes bug #80095.
14247 2006-12-08 Chris Toshok <toshok@ximian.com>
14249 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
14252 2006-12-08 Chris Toshok <toshok@ximian.com>
14254 [ Fixes bug #80167 ]
14256 * ThemeWin32Classic.cs: don't draw the image if the button's flat
14257 style is FlatStyle.System.
14259 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
14260 ButtonBase.flat_style private, and switch uses of it to the public
14263 2006-12-08 Chris Toshok <toshok@ximian.com>
14265 [ Fixes bug #80121 ]
14267 * ThemeWin32Classic.cs: center the caption text in the datagrid
14270 * DataGrid.cs: lessen the amount we add to the caption height from
14271 6 to 2. 6 was making it huge.
14273 2006-12-08 Andreia Gaita <avidigal@novell.com>
14275 * UpDownBase: Handle MouseWheel call directly instead of capturing
14276 the inner textbox's OnMouseWheel. Fixes #80166
14278 2006-12-08 Jackson Harper <jackson@ximian.com>
14280 * TextControl.cs: We need to invalidate the textbox when we empty
14281 it (how had this not been discovered before?)
14283 2006-12-08 Jackson Harper <jackson@ximian.com>
14285 * TextBoxBase.cs: Reworked the mouse down code so I could get it
14286 to behave like MS, we now ignore the eventargs.Click and just
14287 track state ourself, which we were already doing anyways.
14288 - Constrain the double click handler to the double click size.
14290 2006-12-08 Chris Toshok <toshok@ximian.com>
14292 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
14293 direction if that scrollbar isn't shown. fixes bug #80158.
14295 2006-12-08 Andreia Gaita <avidigal@novell.com>
14297 * NumericUpDown.cs: Update value on getter. Fixes #79950
14299 2006-12-08 Chris Toshok <toshok@ximian.com>
14301 * MenuItem.cs: add back in the event cloning code. I didn't know
14302 how to do it in the face of the EventHandlerList work i'd done
14303 last week. Fixes bug #80183.
14305 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
14307 * Control.cs: Add an invalidate to the BackgroundImage setter.
14310 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
14312 * ToolStrip*: Add some small properties reported by MoMA, fix event
14313 firing and default properties based off of unit tests, and add some
14314 attributes based off of the class status page.
14316 2006-12-07 Jackson Harper <jackson@ximian.com>
14318 * TextBoxBase.cs: Take HideSelection into account when determining
14319 whether or not to show the selection.
14320 * RichTextBox.cs: After inserting the RTF into the document move
14321 the cursor to the beginning of the document.
14323 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
14325 * Control.cs: Remove static ArrayList "controls" which maintained
14326 a reference to every control created.
14327 * Application.cs: Create a static FormCollection to maintain a reference
14328 to every form created. Use it in places that formerly enumerated through
14329 the controls one looking for forms.
14330 * Form.cs: Add and remove self from above FormCollection.
14332 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
14334 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
14335 not libgdk (though it makes me wonder why I didn't have any
14338 2006-12-07 Chris Toshok <toshok@ximian.com>
14340 [ you had to know this was coming after that last commit...]
14342 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
14343 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
14344 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
14347 2006-12-07 Chris Toshok <toshok@ximian.com>
14349 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
14350 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
14351 all the behavior we need for double buffering.
14353 * XplatUIDriver.cs: implement the 3 double buffer methods using a
14354 client side Bitmap, just like the old Control-based double buffer
14355 code did. The methods are virtual, so each XplatUI driver
14356 subclass can replace the implementation to use a faster, platform
14359 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
14360 double buffer code, and clean things up a bit in the process.
14362 2006-12-06 Chris Toshok <toshok@ximian.com>
14364 * Control.cs: reindent WndProc.
14366 2006-12-06 Chris Toshok <toshok@ximian.com>
14368 [ I wanna be like BenM when I grow up ]
14370 * Hwnd.cs: create a single static Graphics object on the static
14371 Bitmap we create. use this for our text measurements.
14373 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
14374 This was causing us to allocate a backbuffer for every control,
14375 even when it wasn't flagged as double buffered. Instead use the
14376 single graphics instance. This might have implications for
14377 multithreaded applications. If we run into problems we can switch
14378 to creating 1 Graphics per control, on the static Hwnd bitmap.
14380 this change nets us a 7M savings in private dirty mappings when
14381 running FormsTest.exe.
14383 2006-12-06 Chris Toshok <toshok@ximian.com>
14385 * ListView.cs: the BackgroundImage override is just to set
14386 attributes. chain up to base.BackgroundImage.
14388 * RichTextBox.cs: same.
14390 * ToolBar.cs: same, but we need to also redraw the toolbar when it
14391 changes, so instead a handler for BackgroundImageChanged.
14393 * Control.cs: make background_image private.
14395 2006-12-06 Chris Toshok <toshok@ximian.com>
14397 * ScrollBar.cs: change the assignment of cursor to Cursor. not
14398 sure we even need this assignment, but roll with it for now.
14400 * Control.cs: make the cursor field private.
14402 2006-12-06 Chris Toshok <toshok@ximian.com>
14404 * Form.cs: we don't need to explicitly set ImeMode to
14405 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
14406 behavior in the face of ImeMode.Inherit.
14408 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
14409 change the ctor's assignment to use ImeMode instead of ime_mode.
14411 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
14412 ImeModeInherit. Only check for the parent's imemode (and return
14413 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
14414 This fixes the button unit test, which sets both ImeMode and
14415 DefaultImeMode to ImeMode.Disable.
14417 also make the ime_mode field private.
14419 2006-12-06 Chris Toshok <toshok@ximian.com>
14421 * Control.cs: make control_style private.
14423 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
14424 setting the styles to true, then setting them to false instead of
14425 reverting to their previous values.
14427 also, call SetStyle on the scrollbars instead of using
14428 control_style directly.
14430 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
14432 * FormCollection.cs: Implement. [2.0]
14434 2006-12-06 Chris Toshok <toshok@ximian.com>
14436 * Control.cs: make tab_stop private.
14438 * Label.cs: set TabStop, not tab_stop. reformat some event
14439 add/remove methods to make them more compact.
14441 2006-12-06 Chris Toshok <toshok@ximian.com>
14443 * RadioButton.cs: fix TabStop handling.
14445 2006-12-06 Chris Toshok <toshok@ximian.com>
14447 * TextBox.cs: remove the explicit assignments to has_focus.
14450 * ButtonBase.cs: remove the assignment to has_focus. Control will
14453 2006-12-06 Chris Toshok <toshok@ximian.com>
14455 * ButtonBase.cs: remove all uses of is_enabled from this code.
14456 it's always true when any of the code containing the checks is
14459 2006-12-06 Chris Toshok <toshok@ximian.com>
14461 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
14462 with different semantics (some are present in both 1.1 and 2.0
14463 profiles) so that we match MS's behavior in our unit tests.
14465 2006-12-06 Jackson Harper <jackson@ximian.com>
14467 * TextControl.cs: Make this operation undoable.
14468 * TextBoxBase.cs: Factor the border width into the preferred
14470 - implement Modified as per the spec.
14472 2006-12-06 Chris Toshok <toshok@ximian.com>
14474 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
14476 2006-12-06 Chris Toshok <toshok@ximian.com>
14478 * Control.cs: make right_to_left and context_menu fields private.
14480 2006-12-06 Chris Toshok <toshok@ximian.com>
14482 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
14483 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
14484 Control.child_controls private. switch all uses over to
14487 2006-12-06 Chris Toshok <toshok@ximian.com>
14489 * System.Windows.Forms/GroupBox.cs,
14490 System.Windows.Forms/AccessibleObject.cs,
14491 System.Windows.Forms/ErrorProvider.cs,
14492 System.Windows.Forms/Control.cs,
14493 System.Windows.Forms/UpDownBase.cs,
14494 System.Windows.Forms/ScrollBar.cs,
14495 System.Windows.Forms/DateTimePicker.cs,
14496 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
14497 System.Windows.Forms/ToolTip.cs,
14498 System.Windows.Forms/RadioButton.cs,
14499 System.Windows.Forms/LinkLabel.cs,
14500 System.Windows.Forms/Splitter.cs,
14501 System.Windows.Forms/TextBoxBase.cs,
14502 System.Windows.Forms/ToolStripTextBox.cs,
14503 System.Windows.Forms/ContainerControl.cs,
14504 System.Windows.Forms/ThemeWin32Classic.cs,
14505 System.Windows.Forms/SizeGrip.cs,
14506 System.Windows.Forms/ToolStripDropDown.cs,
14507 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
14508 private. switch all uses over to Control.Parent.
14510 2006-12-06 Chris Toshok <toshok@ximian.com>
14512 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
14513 Control does this before calling emitting these events.
14515 * TabControl.cs: same.
14517 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
14518 Control.client_rect.
14520 * ButtonBase.cs: use the ClientSize property instead of the
14523 * ScrollableControl.cs: same.
14525 * Control.cs: another pass at making properties private. also,
14526 move the initialization of tab_stop to the ctor.
14528 2006-12-05 Andreia Gaita <avidigal@novell.com>
14530 * TabControl.cs: Let the selected index be set freely if the
14531 control handle is not yet created.
14533 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14535 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
14536 internal until I can rewrite DefaultLayout.
14537 * ToolStrip.cs: Fix build error and some general cleaning.
14538 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
14539 Fix build errors caused by making some of Control's fields private.
14541 2006-12-05 Jackson Harper <jackson@ximian.com>
14543 * TextControl.cs: Redo Insert a little so that it use IndexOf
14544 instead of Split, this prevents it from messing up on things like
14545 \n\n\n. Also more effecient since the split array doesn't need to
14547 * TextBoxBase.cs: AppendText doesnt handle multiline and non
14548 multiline text differently, this is the first of many fixes that
14549 will make multiline/non-multiline the same thing as far as the
14550 TextBoxBase is concerned.
14551 - Don't split the text and insert lines, this can lose some line
14552 endings (like is the last line a soft or hard break). Instead use
14554 - Fix an off by one when combining all the lines in the Text
14556 - Remove separate multiline handling from the Text getter/setter.
14558 2006-12-05 Chris Toshok <toshok@ximian.com>
14560 * ButtonBase.cs: a few changes:
14562 - don't reinitialize internal Control fields in the ctor when they
14563 have the same values as Control sets them.
14565 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
14566 this before calling those methods.
14568 - we don't need to call Refresh for anything. use Invalidate
14571 - OnEnabledChanged doesn't need to redraw at all - Control.cs
14572 calls Refresh in its OnEnabledChanged.
14574 - several of the events we were registered for in the ctor to
14575 redraw ourselves already include calls to Invalidate in the
14576 property setters that raise the events. remove the extra
14579 - reformat a switch statement that was 83274658 columns wide.
14581 2006-12-05 Mike Kestner <mkestner@novell.com>
14583 * ComboBox.cs: fix a unit test regression from a TextBox
14584 SelectionLength return of -1 when there's no selection.
14586 2006-12-05 Chris Toshok <toshok@ximian.com>
14588 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
14589 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
14590 cleaning up some of the internal Control fields being used by
14593 2006-12-05 Mike Kestner <mkestner@novell.com>
14595 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
14596 listbox after AddImplicit calls since it defaults to hidden. Add a
14597 hack to preserve requested heights across DropDownStyle changes.
14599 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
14601 * PropertyGrid.cs: Hide FindFirstItem method from public API.
14603 2006-12-05 Chris Toshok <toshok@ximian.com>
14605 * DataGridView.cs: fix compiler warnings.
14607 * PrintControllerWithStatusDialog.cs: same.
14609 * ToolBar.cs: same.
14611 * FolderBrowserDialog.cs: same.
14613 * Splitter.cs: same.
14615 * DataGridViewComboBoxCell.cs: same.
14617 * XplatUIWin32.cs: same.
14619 * PictureBox.cs: same.
14621 * Win32DnD.cs: same.
14623 * PageSetupDialog.cs: same.
14625 * FileDialog.cs: same.
14627 * PrintDialog.cs: same.
14629 * DataGridTextBoxColumn.cs: same.
14631 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
14633 2006-12-05 Chris Toshok <toshok@ximian.com>
14635 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
14636 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
14637 System.ComponentModel.EventHandlerList work.
14639 2006-12-05 Jonathan Chambers <joncham@gmail.com>
14641 * DrawTreeNodeEventArgs.cs: Added.
14643 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14645 * InternalWindowManager.cs: Remove an unused field.
14647 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14649 * InternalWindowManager.cs:
14650 - Save the point where the title bar is clicked.
14652 * MdiWindowManager.cs:
14653 - Only allow moving of the window as long as the
14654 clicked point on the title bar does not get out of
14655 MdiClient's rectangle. Fixes #79982.
14658 - Added Horizontal/VerticalScrollbarVisible.
14659 - Simplified the scrollbar sizing algorithm.
14660 - Cache the difference in scrolled value in
14661 H/VBarValueChanged and move the calculation out
14664 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14666 * Control.cs: Make the Console.WriteLine in WndProc
14669 2006-12-05 Chris Toshok <toshok@ximian.com>
14671 * ToolStripManager.cs, ToolStripButton.cs,
14672 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
14673 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
14674 ToolStripSplitButton.cs, ToolStripSeparator.cs,
14675 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
14676 ToolStripProgressBar.cs, ToolStripContainer.cs,
14677 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
14678 to using System.ComponentModel.EventHandlerList.
14680 2006-12-04 Chris Toshok <toshok@ximian.com>
14682 * LinkLabel.cs: fix up compiler warnings.
14684 * TableLayoutSettings.cs: same.
14686 * TreeView.cs: same.
14688 * ToolBar.cs: same.
14690 * TabControl.cs: same.
14692 * RichTextBox.cs: same.
14694 * ListViewItem.cs: same.
14696 * PropertyGrid.cs: same.
14698 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
14702 * TextRenderer.cs: fix up compiler warnings.
14706 * Form.cs: corcompare fixes.
14708 * PictureBox.cs: fix up compiler warnings.
14710 * ImageListStreamer.cs: same.
14712 * TrackBar.cs: corcompare fix.
14714 * Control.cs: fix up compiler warnings.
14716 * SplitterPanel.cs: same.
14718 * NumericTextBox.cs: same.
14720 * ImageList.cs: same.
14722 * StatusStrip.cs: same.
14724 * ProgressBar.cs: corcompare fix.
14726 * ToolStripButton.cs: fix up compiler warnings.
14728 * ToolStripStatusLabel.cs: same.
14730 * ToolStripSplitButton.cs: same.
14732 * ToolStripSeparator.cs: same.
14734 * ToolStripProgressBar.cs: same.
14736 * ToolStripDropDownMenu.cs: same
14738 * ToolStripDropDown.cs: same.
14740 * ToolStripDropDownButton.cs: same.
14742 * ToolStrip.cs: same.
14744 * ToolStripControlHost.cs: same.
14746 * ToolStripContentPanel.cs: same.
14748 * ToolStripDropDown.cs: same.
14750 * ToolStripContainer.cs: same.
14752 * ToolStripPanel.cs: same, and add "new" where we need it to work
14753 with the new ArrangedElementCollection.
14755 * ToolStripItemCollection.cs: add "new" where we need it to work
14756 with the new ArrangedElementCollection.
14758 2006-12-04 Andreia Gaita <avidigal@novell.com>
14760 * TabControl.cs: Fix default tab selection to after TabControl
14761 gets focus and not before. Fixes #80128
14763 2006-12-04 Chris Toshok <toshok@ximian.com>
14765 * DataGridTableStyle.cs: remove the gross calling of
14766 datagrid.Refresh from here. It's a broken idea and it doesn't
14769 * DataGrid.cs: instead, just register/unregister from the
14770 DataGridTableStyle events in CurrentTableStyle. we play it
14771 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
14772 even though some would most likely not require it. Fixes bug
14773 #80115 (and one portion of #80117 as a side effect).
14775 2006-12-04 Chris Toshok <toshok@ximian.com>
14777 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
14778 so the textbox (if any) goes away. Fixes bug #80117.
14780 2006-12-04 Chris Toshok <toshok@ximian.com>
14782 * DataGridColumnStyle.cs: set the column's readonly property
14783 initially based on the property descriptor's IsReadOnly. Fixes
14786 2006-12-04 Chris Toshok <toshok@ximian.com>
14788 * ComboBox.cs: wrap the dropdown style changing work in
14789 SuspendLayout/ResumeLayout. Fixes bug #79968.
14791 2006-12-04 Jackson Harper <jackson@ximian.com>
14793 * TextBoxBase.cs: Fix off by one, since these are one-based.
14794 * TextBox.cs: Select all the text when we get focus. The TextBox
14795 does this but the RTB does not.
14797 2006-12-04 Chris Toshok <toshok@ximian.com>
14799 * DataGridTextBoxColumn.cs: remove some spew.
14801 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
14802 but some part of me is saying "it shouldn't be here.." At any
14803 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
14806 2006-12-04 Chris Toshok <toshok@ximian.com>
14808 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
14809 to reassign the propertydescriptor.
14811 2006-12-04 Jackson Harper <jackson@ximian.com>
14814 * TextControl.cs: Remove some unused variables. Maybe this will
14815 patch things up between mike and I.
14816 - don't split lines less then one char wide, if the viewport is
14817 that small text won't be visible anyways.
14819 2006-12-04 Jackson Harper <jackson@ximian.com>
14821 * TextBoxBase.cs: Default selection length is -1, need to do some
14822 more testing on windows to see when this is used for the property.
14823 - Redid the Lines [] property to that we properly remove soft line
14825 - added support for preserving carriage returns
14826 - CanUndo is not a variable like 'is undo enabled' it just returns
14827 true if there is undo operations available.
14828 - AppendText doesn't need to grab the last tag itself anymore,
14829 this happens automatically when we move the cursor.
14830 * TextControl.cs: Add CompoundActions to the undo class. This
14831 allows combining the other operations into one big option. ie a
14832 paste will combine { delete old, insert new, move cursor }
14833 - Add InsertString undo operation
14834 - New method for deleting multiline text
14835 - Add carriage returns to lines. So we can preserve carriage
14836 returns when text is 'roundtripped'
14838 2006-12-04 Chris Toshok <toshok@ximian.com>
14840 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
14841 minimum 0. Fixes the scrollbar exception in bug #80136.
14843 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14846 * MdiWindowManager: Removed unused fields and methods.
14848 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14850 * StatusBar.cs: Update all panels when a AutoSize=Contents
14851 panel needs updating.
14853 * StatusBarPanel.cs: Remove twidth and only use initialize.
14856 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14858 * Form.cs: When a form's MdiParent is set add it directly
14859 on top of the z-order in stead of relying on MdiClient's
14860 ActivateChild to do it. Fixes #80135.
14863 - Remove original_order, mdi_child_list is already doing
14865 - Create mdi_child_list on construction in
14866 stead of first use (avoids a few null checks).
14868 * MenuItem.cs: Use an already existing list of mdi children
14869 to get the correct order of children and remove the other
14872 2006-12-04 Chris Toshok <toshok@ximian.com>
14874 * PropertyGridView.cs: cached_splitter_location is only used in
14875 !DOUBLEBUFFER code.
14877 * PropertyGrid.cs: implement the ComComponentNameChanged event
14878 using Events, hoping that would fix the warning. Looks like a
14879 compiler bug instead (#80144).
14881 * PropertyManager.cs: remove unused method.
14883 2006-11-04 Everaldo Canuto <everaldo@simios.org>
14885 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
14886 include parentesis to fix expression evaluation. Fixes #79634.
14888 2006-11-02 Everaldo Canuto <everaldo@simios.org>
14891 - Changes to fix behavior in Menu control, some reported in #80097
14892 and other detected during behavior refactory like a select event
14894 - Remove unneded "if's" conditions.
14895 - Created an internal to flag when popup is active in control, we need
14896 it because in .NET you can have menu active but without popup active
14897 when you active menu using popup without visible items.
14898 - Mimic win32 behavior for Select and Popup events.
14899 - Dont open popup menu when you dont have visible subitems.
14900 - Do nothing when click on disabled menu item.
14901 - Some small changes to follow the coding style guidelines.
14902 - Unselect menu only when another control gives focus. Fixes #80097.
14903 - Remove unused code.
14905 * MenuItem.cs: internal VisibleItems method to check if menu
14906 theres visible subitems, it will be usefull to fix some
14907 behavior in Menu control.
14909 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14911 * Timer.cs: Tag property for 2.0 profile.
14913 2006-12-01 Chris Toshok <toshok@ximian.com>
14915 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14917 * Win32DnD.cs: comment out some unused fields.
14919 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14920 some unused properties/methods.
14922 * XplatUIX11.cs: fix MousePosition so we override the base class's
14923 property instead of conflicting with it.
14925 * PictureBox.cs: comment out some unused fields
14927 * OSXStructs.cs: make some struct fields public.
14929 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14930 MousePosition so we override the base class's property instead of
14931 conflicting with it.
14933 * X11Dnd.cs: comment out some unused fields
14935 * X11DesktopColors.cs: fix some struct field visibility to quiet
14938 * X11Dnd.cs: remove some debug code.
14940 * ThemeClearlooks.cs: comment out unused field.
14942 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14944 * ThemeGtk.cs: comment out some unused pinvokes.
14946 * Timer.cs: remove some unused fields.
14948 * ThemeClearlooks.cs: comment out unused field.
14950 * UpDownBase.cs: comment out unused field.
14952 * DataObject.cs: comment out unused field.
14954 * DataGridBoolColumn.cs: reomve unused field.
14956 * DataGrid.cs: remove unused field.
14958 * Cursor.cs: remove old ToBitmap code.
14960 * ControlPaint.cs: remove unused method.
14962 * ScrollBar.cs: remove unused fields.
14964 * ComboBox.cs: remove unused field, and chain up to
14965 AccessibleObject ctor.
14967 * ListBox.cs: remove unused field.
14969 * ButtonBase.cs: wrap a couple fields in NET_2_0.
14971 * GridEntry.cs: remove unused fields.
14973 * Binding.cs: remove unused fields.
14975 * AxHost.cs: remove unused method.
14977 * ContainerControl.cs: remove unused field.
14979 * ScrollableControl.cs: remove unused fields.
14981 2006-12-01 Chris Toshok <toshok@ximian.com>
14983 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14984 the Where/WhereString stuff. it's easy enough to CWL
14985 Environment.StackTrace.
14987 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14988 unused private fields.
14990 2006-12-01 Jackson Harper <jackson@ximian.com>
14992 * TextControl.cs: Do not update the view while inserting multiline
14993 text. If we update the view we might wrap lines, before entering
14994 the new lines, which causes the new line insertion calculations to
14995 be totally fubared.
14996 - Remove an old TODO
14997 - Make debug output a little nicer
14999 2006-12-01 Chris Toshok <toshok@ximian.com>
15001 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15003 2006-12-01 Chris Toshok <toshok@ximian.com>
15005 [ fix the majority of the CS0108 warnings we've been suppressing ]
15007 * TreeView.cs: mark BackgroundImageChanged as 'new'.
15009 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
15010 to "LayoutToolBar" to quiet mcs.
15012 * TabControl.cs: mark our ControlCollection class as 'new'.
15014 * TextBoxBase.cs: mark some events as 'new'.
15016 * Splitter.cs: TabStop is 'new'.
15018 * ControlBindingsCollection.cs: mark a few methods as new since
15019 they change the visibility from protected to public.
15021 * RadioButton.cs: DoubleClick -> base class, and remove unused
15024 * MonthCalendar.cs: ImeMode property -> base class, and mark many
15027 * NumericUpDown.cs: TextChanged -> base class.
15029 * CheckedListBox.cs: mark our ObjectCollection class as new to
15032 * FolderBrowserDialog.cs: make HelpRequest event new and have it
15033 muck with the base class.
15035 * StatusBar.cs: fix some mcs warnings about Update being the same
15036 name as a base class method.
15038 * RichTextBox.cs: mark some events as new, and make them do things
15039 to the base class impl.
15041 * UserControl.cs: mark TextChanged as new, and have it manipulate
15044 * UpDownBase.cs: mark some things new.
15046 * CheckBox.cs: mark DoubleClick "new", and add some text about
15047 what we need to look at.
15049 * Panel.cs: make the events "new", and manipulate the base
15050 version. these are just here for attributes.
15052 * AccessibleObject.cs: make owner private.
15054 * Control.cs: deal with AccessibleObject.owner being private.
15055 cache our own copy if we need it.
15057 * Button.cs: add "new" to the DoubleClickEvent.
15059 * ListBox.cs: no need to track our own has_focus here. let
15060 Control.has_focus do it for us. Also some other work to clear up
15061 warnings about not overriding base class methods of the same name.
15063 * ComboBox.cs: clear up some warnings about not override base
15064 class methods of the same name.
15066 2006-12-01 Chris Toshok <toshok@ximian.com>
15068 * Form.cs: flag a few things as "new" to quiet some of the mcs
15073 * PrintPreviewDialog.cs: same.
15075 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
15076 now DGV isn't so horrible on the class status page. also, move
15077 all events to using System.ComponentModel.EventHandlerList. my
15080 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15082 * MdiWindowManager.cs:
15083 - Set form to active mdi child if shown,
15084 and update the active mdi child to the next
15085 remaining child in the z-order if the form is hidden.
15088 - Track if the form has been visible and if its
15089 visibility is beeing changed, so that the MdiClient
15090 can properly decide the ActiveMdiChild. The MdiClient
15091 cannot track this since the form can change visibility
15092 before MdiClient is created.
15095 - Don't activate anything of the parent form is changing
15097 - Rework ActiveMdiChild to only return visible mdi
15098 children and take into account several other corner
15101 2006-12-01 Chris Toshok <toshok@ximian.com>
15103 * IBindableComponent.cs: new 2.0 interface.
15105 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
15107 * DataGrid.cs: Font for caption area is bold by default.
15109 2006-12-01 Everaldo Canuto <everaldo@simios.org>
15111 * Menu.cs: Tag property for 2.0.
15113 2006-11-01 Everaldo Canuto <everaldo@simios.org>
15115 * ThemeWin32Classic.cs: Adjust menu separator drawing.
15117 2006-12-01 Chris Toshok <toshok@ximian.com>
15119 * TreeView.cs: doh, the Begin* events should be
15120 TreeViewCancelEventHandler.
15122 2006-12-01 Chris Toshok <toshok@ximian.com>
15124 * Form.cs: Form.ControlCollection already stores off the
15125 form_owner field. don't access the base class's internal "owner"
15128 * Control.cs: make all the fields in Control.ControlCollection
15129 private. there's no need for any internal fields here.
15131 2006-12-01 Chris Toshok <toshok@ximian.com>
15133 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
15134 OnHandleCreated. Fixes bug #80109.
15136 2006-12-01 Chris Toshok <toshok@ximian.com>
15138 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
15139 SplitContainer.cs, Control.cs, StatusStrip.cs,
15140 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
15141 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
15142 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
15143 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
15144 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
15145 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
15146 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
15147 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
15148 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
15149 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
15151 do most of the work to convert our code over to use
15152 System.ComponentModel.Component.Events for
15153 adding/removing/dispatching events.
15156 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
15158 * DataGridView.cs: Fix an ArgumentNullException reported
15159 twice today in IRC.
15161 2006-11-30 Mike Kestner <mkestner@novell.com>
15163 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
15164 grabbed listbox. Fixes #80036 and #80101.
15166 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15168 * Message.cs: Changed ToString() to match MS.
15170 2006-11-30 Jackson Harper <jackson@ximian.com>
15172 * TextBoxBase.cs: You can still change the selected text on a read
15174 * TextControl.cs: Lower magic number for wrap calculations. This
15175 lets text get closer to the right (far) edge.
15177 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
15179 * Control.cs: Tweak 2.0 layout properties.
15180 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
15181 * TextRenderer.cs: Add a new overload.
15182 * ToolStrip*: Huge amount of changes and new features.
15184 2006-11-30 Mike Kestner <mkestner@novell.com>
15186 * ComboBox.cs: fixes for LargeChange and Maximum to get the
15187 scroll range correct. Fixes #79994.
15189 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15191 * MdiWindowManager.cs: Update main form's text when
15192 a form is closed. (fixes #80038)
15194 2006-11-30 Everaldo Canuto <everaldo@simios.org>
15197 - Fix an regression in ButtonSize.
15198 - Get ImeMode default value change to "Disable".
15199 - Get ShowTooltips default value change to true, default value is
15200 "false" but after make a test in .NET we get "true" result as default.
15202 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
15204 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
15206 2006-11-29 Chris Toshok <toshok@ximian.com>
15208 * XplatUIWin32.cs (GetWindowTransparency): check return value of
15209 GetLayeredWindowAttributes. if it's 0, return 1.0, as
15210 SetWindowTransparency hasn't been called.
15212 2006-11-29 Chris Toshok <toshok@ximian.com>
15214 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
15216 (set_AllowTransparency): reorder things a little so that the
15217 WS_EX_LAYERED style is removed properly.
15219 2006-11-29 Chris Toshok <toshok@ximian.com>
15221 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
15223 * Form.cs: only call the XplatUI transparency method (get/set) if
15224 SupportsTransparency says it's supported. Otherwise fallback to
15225 doing nothing (in the set case) or returning the instance field we
15226 cache (in the get case).
15228 * XplatUIStructs.cs: add TransparencySupport flag enum.
15230 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
15231 change to SupportsTransparency.
15233 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
15234 TransparencySupport.None from SupportsTransparency.
15236 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
15237 TransparencySupport.Set from SupportsTransparency.
15239 * XplatUIWin32.cs: implement GetWindowTransparency calling
15240 GetLayeredWindowAttributes, and implement SupportsTransparency by
15241 checking whether or not both
15242 GetWindowTransparency/SetWindowTransparency are available
15243 entrypoints. We need to do this since SetWindowTransparency is
15244 available as of win2k, but GetWindowTransparency requires winxp.
15247 * XplatUI.cs: Add GetWindowTransparency, and change
15248 SupportsTransparency to allow for either/both Get/Set.
15250 2006-11-29 Chris Toshok <toshok@ximian.com>
15252 * DataGrid.cs: keep from going into an infinite loop redrawing a
15253 datagrid that has no datasource. Fixes bug #80033.
15255 2006-11-29 Chris Toshok <toshok@ximian.com>
15257 * MenuItem.cs: fix the NRE when we assign text (and therefore call
15258 Invalidate) before the mainmenu has been assigned to a control.
15260 2006-11-29 Chris Toshok <toshok@ximian.com>
15262 * DataGrid.cs: detect when we should be double the double click
15263 row/column autosize stuff, although that codepath has yet to be
15264 written. part of the work for bug #79891.
15266 2006-11-29 Chris Toshok <toshok@ximian.com>
15268 * Binding.cs (SetControl): fix unit test.
15270 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15272 * PageSetupDialog.cs: Validate the margins and set them in
15274 * NumericTextBox.cs: New class to mimic the behavior of the
15275 textboxes used in the printing dialogs.
15277 2006-11-29 Andreia Gaita <avidigal@novell.com>
15279 * Form.cs: Revert previous change (remove call UpdateBounds
15280 from form constructor), because it messes with the handle creation
15281 order, and that one needs lots and lots of love.
15282 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
15283 for valid printer and throw InvalidPrinterException if document
15284 is set but printer not valid), adding a MonoTODO. Once
15285 handle creation is done properly, we can put this back in.
15287 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15289 * MenuItem.cs: Create a invalidate method for menu item, to be
15290 calling from set text, it make text changes to imadiate update
15291 on screen. Fixes #80013.
15293 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15295 * ToolBar.cs: Fixes and simplify toolbar button layout, it
15296 fixes bug #80070 and some other problem on toolbar buttons
15299 2006-11-28 Everaldo Canuto <everaldo@simios.org>
15301 * ThemeWin32Classic.cs: Paint toolbar toggle button background
15302 with dotted brush. Fixes #79564
15304 2006-11-28 Andreia Gaita <avidigal@novell.com>
15306 * Form.cs: Removed call to UpdateBounds on Form
15307 constructor, it was causing a call to CreateHandle
15308 before it was supposed to.
15309 * PrintControllerWithStatusDialog: Applied patch
15310 by Chris Toshok to hide controller when there are
15311 no printers available.
15312 PrintDialog.cs: initialize printer settings to
15313 null - correct DefaultValues test #5
15314 * PrintPreviewControl.cs: Move PrintController
15315 initialization to GeneratePreview
15316 * PrintPreviewDialog.cs:
15317 - Remove Preview generation from Document_set(). It is
15319 - Throw InvalidPrinterException on CreateHandle if
15320 a Document is set but there are no printers or
15321 printer is not valid.
15322 * ThemeWin32Classic: don't paint PrintPreviewControl
15323 if there is nothing to paint
15325 2006-11-28 Miguel de Icaza <miguel@novell.com>
15327 * Form.cs: Add another popular method.
15329 * TabPage.cs: ditto.
15331 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15333 * MenuItem.cs: Fixed a warning.
15334 * InternalWindowManager: Fixed a warning.
15336 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15339 - When cloning a menu also clone MdiList and clone the
15340 window menu items properly (as the forms and menuitems
15341 are kept in an internal hashtable, these need updating
15343 - Rewrote the window menu code, menu items are added in the
15344 order the forms were added to their parent, and they are
15345 updated every time the window menu is shown (before the
15346 list was only generated once, in the current order of the
15347 forms, and would never be updated). A checkmark is shown
15348 next to the item corresponding to the active mdi child.
15350 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15352 * XplatUIStructs.cs:
15353 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
15356 - Added TME_NONCLIENT to TMEFlags.
15357 - Handles WM_NCMOUSEMOVE in GetMessage to
15358 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
15360 * MdiWindowManager:
15361 - Now merges mdi child menu to parent menu when maximized.
15362 - Recalculate NC areas of both mdi child and mdi parent.
15364 on window state and size changes.Fixes #79844 (3).
15365 - Handle WM_NCCALCSIZE to properly calculate borders.
15368 - Add/remove to the mdi containers list of mdi children
15369 in the order they are added.
15370 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
15371 to the maximized mdi child.
15373 * InternalWindowManager.cs:
15374 - Only execute a click on the control buttons on the mouse up,
15375 not on the mouse down. Show the state of the button
15376 (was only showing Normal state, never Pressed state). The
15377 pressed button now follows the mouse (if you click the Close
15378 button and move the mouse over the Maximize button, the
15379 Maximize button will be shown as pressed). Since Win32 does
15380 not generate WM_NCLBUTTONUP if you release the button outside
15381 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
15384 * ThemeWin32Classic.cs:
15385 - Draw a missing border around mdi child forms. Fixes #79844 (2).
15388 - Added a list of forms which contains the order the forms are
15389 added to the mdi parent.
15390 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
15391 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
15392 - If the active form changes set the scrollbars to the top
15393 of the Z order, otherwise the form could hide them.
15394 - Scrollbars are now sized according to ClientSize, not
15395 to Size, and they take into account the other scrollbar
15396 to determine maximum.
15398 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15401 * XplatUIDriver.cs:
15405 - Added RequestAdditionalWM_NCMessages for windows to
15406 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
15407 Currently only implemented in XplatUIWin32.
15409 2006-11-27 Chris Toshok <toshok@ximian.com>
15411 * Hwnd.cs: only add the hwnd to the windows hash in
15412 set_WholeWindow and set_ClientWindow if whole_window/client_window
15413 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
15415 2006-11-27 Mike Kestner <mkestner@novell.com>
15417 * ComboBox.cs: remove redundant OnDropDown call. It is called
15418 from the ComboListBox.ShowWindow code. Fixes #79969.
15420 2006-11-27 Chris Toshok <toshok@ximian.com>
15422 * Hwnd.cs: remove the setters for ExposePending and
15423 NCExposePending - noone uses them.
15425 2006-11-27 Jackson Harper <jackson@ximian.com>
15427 * TextControl.cs: new param for ReplaceSelection which determines
15428 whether we select the new selection, or set the cursor to the end
15429 of the new selection.
15430 * TextBoxBase.cs: Use new param for ReplaceSelection. When
15431 pasting, select the new text.
15432 * RichTextBox.cs: Use new param for ReplaceSelection.
15434 2006-11-27 Jackson Harper <jackson@ximian.com>
15436 * TextBoxBase.cs: Set the selection to the caret after the caret
15437 is moved, otherwise they get out of sync.
15439 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15441 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
15444 2006-11-26 Everaldo Canuto <everaldo@simios.org>
15446 * ThemeWin32Classic.cs:
15447 - Fix toolbar drop down arrow position.
15448 - Fix drop down appearance when ToolBar.Appearance is normal,
15451 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
15453 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
15454 * Control.cs: Same.
15455 * UpDownBase.cs: Same.
15456 * ButtonBase.cs: Same.
15457 * ScrollBar.cs: Same.
15458 * TrackBar.cs: Same.
15459 * PictureBox.cs: Same.
15460 * UserControl.cs: Same.
15462 * ListControl.cs: Same.
15463 * TextBoxBase.cs: Same.
15464 * ListView.cs: Same.
15465 * RichTextBox.cs: Same.
15466 * TreeView.cs: Same.
15468 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
15471 - Text label for where
15472 - Text label comment was not shown
15474 2006-11-23 Everaldo Canuto <everaldo@simios.org>
15476 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
15478 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15480 * InternalWindowManager.cs:
15481 - Handle WM_PARENTNOTIFY to activate the form
15482 if any child control is clicked.
15483 - The form is only sizable if not minimized.
15485 * MdiWindowManager.cs:
15486 - Save the IconicBounds if the form is moved.
15487 - Rework SetWindowState, now the window bounds
15488 are stored only if the old window state is Normal.
15491 - In SetWindowStates store the old window state if
15492 the window is maximized and restore window state if
15493 the window looses focus.
15494 - Don't handle any scrollbar value changes if
15495 initializing the scroll bars. Fixes #79771.
15496 - Reworked ArrangeIconicWindows. Current algorithm
15497 tests bounds agains all other minimized windows, if
15498 any intersections create new bounds (going left to
15499 right, bottom to top) and then test again. When
15500 successful the bounds are saved and never computed
15501 again. Fixes #79774.
15503 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15505 * InternalWindowManager.cs: Added HandleTitleBarUp.
15507 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15509 * NumericUpDown.cs: In .NET 1.1, user entered text is still
15510 hexadecimal in ParseUserEdit.
15513 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15515 * MdiWindowManager.cs:
15516 - Handle a click on the form's icon to show the
15517 system menu (when maximized). Fixes #79775.
15518 - Change the existing click handler for the form's
15519 icon when not maximized to show on MouseUp.
15522 * Form.cs: In OnResize only layout the mdi child's
15523 parent if it actually has a parent. Might not if
15524 the window is closing.
15527 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15529 * MdiClient.cs: Ignore active MDI client for text of parent, if
15530 child has no text set.
15532 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
15534 * ToolBar.cs: Fixed ToString to match MS.
15536 2006-11-22 Andreia Gaita <avidigal@novell.com>
15539 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
15540 update inner values on set. Fixes #79966.
15541 - Override OnLostFocus to update value on NET 2. Fixes #79950.
15542 - Fix hexadecimal parsing.
15544 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
15545 parent. Fixes #79957
15547 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15549 * Control.cs: After calling SetWindowsPos in SetBoundsCore
15550 the actual size has to be queried, since if height /
15551 width is negative Win32 changes it to 0.
15552 Fixes #79999 on Windows.
15554 * XplatUIX11.cs: Set height / width to 0 if negative
15555 in SetWindowPos. Fixes #79999 on Linux.
15557 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15559 * ThemeWin32Classic.cs: Fix text redenring when button is
15562 2006-11-22 Everaldo Canuto <everaldo@simios.org>
15564 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
15565 and later navigate by mouse. Fixes #79528.
15567 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15569 * ToolBar.cs: Set default value for TabStop to false in
15570 constructor, it fixes remaining behavior of bug #79863.
15572 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15574 * MdiWindowManager.cs:
15575 * InternalWindowManager.cs:
15576 - Moved a few methods specific to Mdi from
15577 InternalWindowManager to MdiWindowManager.
15580 2006-11-21 Chris Toshok <toshok@ximian.com>
15582 * XplatUIOSX.cs: stub out InvalidateNC.
15584 * XplatUIWin32.cs: implement InvalidateNC using the call I found
15585 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
15587 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
15589 * XplatUIDriver.cs: add InvalidateNC abstract method.
15591 * XplatUI.cs: add InvalidateNC.
15593 2006-11-21 Everaldo Canuto <everaldo@simios.org>
15595 * ToolBar.cs: Invalidate complete button area when pressed status
15597 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
15598 * ThemeWin32Classic.cs: Increase vertical and horizontal position
15599 by 1 when button is pressed.
15601 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15603 * ToolButton.cs: Invalidate middle of DropDown button when
15604 ToolBar theres DropDownArrows.
15605 * ThemeWin32Classic.cs: Change position of DropDown arrow and
15606 fix DropDown drawing operations.
15608 2006-11-20 Chris Toshok <toshok@ximian.com>
15610 * NativeWindow.cs: fix the formatting of functions ('{' on the
15611 following line), and enable the thread exception dialog.
15613 * Application.cs: remove the duplicate exception catching from
15616 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15618 * Toolbar.cs: Triggers button click event when click on icon
15619 of dropdown ToolBarButton. Fixes #79912.
15621 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15624 * ThemeWin32Classic.cs:
15625 - Added a property WindowBorderFont to enable themeing
15626 of mdi child windows' Text.
15628 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15630 * InternalWindowManager.cs:
15633 * MdiWindowManager.cs:
15634 - If mdi child is maximized, set mdi parent's
15635 text to "Parent - [Child]". Fixes #79770.
15636 - If there is any maximized mdi child windows, only the active
15637 window (and any new windows) is maximized, the rest are normal.
15638 - On a WindowState change only save mdi child's window bounds
15639 if the old window state was normal. Fixes #79774.
15640 - The scroll bars are now calculated on hopefully all
15641 necessary events. Fixed #79771 / #79844->6 / #79906.
15642 - MdiClient.SizeScrollBars() now takes into account docked
15643 controls in the parent when calculating available space.
15644 - InternalWindowManager now always repaints the entire title
15645 area. Fixes #79844->1/4/5.
15646 - Added RequestNCRecalc on mdi child windowstate changes.
15649 2006-11-20 Mike Kestner <mkestner@novell.com>
15651 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
15652 in the MouseUp handler of the listbox and move the return handling
15653 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
15655 2006-11-20 Everaldo Canuto <everaldo@simios.org>
15657 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
15659 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15661 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
15662 working in 1.2.x anymore. So, updated.
15664 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
15666 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
15667 NumberGroupSeparator of current culture instead of assuming en-US.
15670 2006-11-17 Mike Kestner <mkestner@novell.com>
15672 * Control.cs: Add the concept of implicit bounds setting so that
15673 dock/undock round trips preserve explicitly set size/locations.
15676 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
15678 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
15679 can't handle those filters. (Fixes bug #79961)
15681 2006-11-17 Chris Toshok <toshok@ximian.com>
15683 [ fixes the exit/crashes associated with #79835. it's clearly
15684 suboptimal though, we need to figure out a better way to solve
15687 * PrintPreviewControl.cs: deal with the new invalid printer
15690 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
15691 and return false (so CommonDialog.ShowDialog doesn't actually show
15694 * PrintDialog.cs: enable/disable the Ok button depending on
15695 whether or not the printer is valid.
15697 * CommonDialog.cs (ShowDialog): only actually show the form if
15698 RunDialog returns true.
15700 2006-11-17 Jackson Harper <jackson@ximian.com>
15702 * TextControl.cs: When soft splitting a line, mark it as a soft
15703 split line. Also carry over the current line break to the next
15706 2006-11-17 Chris Toshok <toshok@ximian.com>
15708 * XplatUIX11.cs: when scrolling a window with an invalid area, we
15709 only want to shift the part of the invalid area that overlaps the
15710 area we're scrolling. we also don't want to clear the invalid
15711 area unless the invalid area was entirely contained within the
15714 2006-11-16 Chris Toshok <toshok@ximian.com>
15716 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
15717 also make sure to free the memory returned by XGetWindowProperty
15720 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
15722 2006-11-16 Chris Toshok <toshok@ximian.com>
15724 * XplatUI.cs: add a new super secret way to get at the totally
15725 unsupported X11 backend.
15727 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
15729 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
15731 2006-11-16 Jackson Harper <jackson@ximian.com>
15733 * TreeView.cs: Allow more explicit setting of top node position
15734 for scrollbars. Slower algo, but more accurate.
15735 - CollapseAll should maintain the current top node.
15736 * TextBoxBase.cs: When positioning the caret, use the line, pos
15737 method, since the x, y method does not grab the correct tag, and
15738 the caret height never gets set correctly. (Maybe I should just do
15739 away with the caret having its own height, and always use the
15740 carets current tag for height).
15742 2006-11-16 Jonathan Pobst <monkey@jpobst.com
15744 [Fixes 79778, 79923]
15746 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
15747 Parent to the FosterParent instead.
15749 2006-11-16 Jackson Harper <jackson@ximian.com>
15751 * TreeView.cs: Need to recalc the topnode when we expand or
15752 collapse. The scrolling methods can't handle this on their own,
15753 since they use differences between the last scroll position, and
15754 those difference get completely messed up since we are expanding
15755 nodes. This problem should probably be fixed in the scrolling
15756 methods, so they can figure out exactly where they are, but this
15757 will slow things down a little.
15758 * ThemeWin32Classic.cs: Special case for groupboxes with empty
15759 strings, makes nunit-gui look a lot nicer.
15761 2006-11-16 Chris Toshok <toshok@ximian.com>
15763 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
15764 the broken multithreaded event handling we have in here. File
15765 this entry under "Why we should move to the new X11 backend".
15767 Any thread can make it into UpdateMessageQueue, which gets events
15768 from the X socket - some of which could belong to hwnds being
15769 managed by a different thread. We can also have multiple threads
15770 in UpdateMessageQueue at the same time, with each one reading from
15771 the X socket. This leads to many problems, with the following
15774 We can't use hwnd.Queue.Enqueue anywhere in here and must use
15777 The MotionNotify compression we do can't work across threads
15778 (without locking the entire queue, perhaps) since we call
15779 hwnd.Queue.Peek, so we just punt and don't compress motion events
15780 unless the owning thread is the one which got the X event.
15782 ConfigureNotify is another fun one, since it modifies the hwnd's
15783 bounds and then enqueues the event. We add a lock to Hwnd which
15784 is held when setting configure_pending to true (and enqueuing the
15787 There is a race wrt the wake socket. we need to make sure that
15788 only 1 thread is waiting on that socket, or else a thread could
15789 sleep waiting for data that never comes. It's difficult (but not
15790 impossible) to make happen, because it seems to require something
15791 like the following:
15793 1. Thread 1 polls on wake_receive
15795 2. poll returns saying there's data to be read on
15798 3. Thread 2 polls on wake_receive and immediately returns
15799 saying there's data to be read.
15801 4. Thread 2 reads the wakeup byte from wake_receive
15803 5. Thread 1 attempts to read the wakeup byte from
15806 6. Thread 2 exits (due to a form closing, perhaps).
15808 7. Thread 1 blocks forever.
15812 Fixing the Expose handling isn't done yet, and the races inherent
15813 in that piece of code are responsible for the drawing mistakes you
15814 see when generating expose events in a MT app (like NPlot). This
15815 one is the likely to be the hardest to bandaid, and it doesn't
15816 appear to cause anything but drawing problems. The other issues
15817 caused apps to exit or hang.
15819 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
15820 called from a different thread than the one that should be calling
15823 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
15825 2006-11-15 Chris Toshok <toshok@ximian.com>
15827 * Application.cs: null out the context's MainForm when we exit
15828 RunLoop. Fixes a newly checked in unit test as well as the last
15829 ODE from bug #79933.
15831 2006-11-15 Chris Toshok <toshok@ximian.com>
15833 * Form.cs (set_Owner): allow a null value so we can clear the
15835 (Dispose): set all our owned_form's Owner properties to null, and
15836 clear the owned_forms collection.
15837 (WM_CLOSE): clean up this a little bit.. still not right though.
15839 * ApplicationContext.cs: OnMainFormClosed should only call
15840 ExitThreadCore if the main form isn't recreating. Fixes unit
15843 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15847 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
15849 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15853 * Hwnd.cs: Add a flag to show a window, but not activate it, to
15854 keep popup window types from stealing focus from the main form
15857 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
15859 * MenuAPI.cs: Set above flag to true.
15861 2006-11-15 Chris Toshok <toshok@ximian.com>
15863 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15864 the button being released is not in wParam.
15866 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15868 * Form.cs: Add the released button to MouseEventArgs.Button
15869 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
15872 2006-11-15 Chris Toshok <toshok@ximian.com>
15874 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15875 GetText(). untested because it's unused in our implementation.
15876 Control.Text always caches the text, even if
15877 ControlStyles.CacheText is not set.
15881 2006-11-15 Chris Toshok <toshok@ximian.com>
15885 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15886 message. no hiding, no disposing.
15888 in the WM_CLOSE handler, hide the form if it's modal.
15890 2006-11-15 Chris Toshok <toshok@ximian.com>
15892 * XplatUIX11.cs: use AddExpose instead of sending a message.
15893 fixes textbox border drawing.
15895 2006-11-15 Chris Toshok <toshok@ximian.com>
15897 * PropertyGridView.cs: keep from crashing on mouse move/down when
15898 the property grid is empty.
15900 2006-11-14 Jackson Harper <jackson@ximian.com>
15902 * TextControl.cs: Make PageUp and PageDown more like the MS
15904 * TextBoxBase.cs: When we set the text property position the
15905 cursor at the beginning of the document.
15907 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15909 * Form.cs: if a mdi child's WindowState has changed
15910 before it's creation, it would display wrong control
15913 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
15915 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15918 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15920 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
15921 the window gets to paint its borders even if the window is
15924 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
15925 otherwise the old control buttons would still be painted
15926 if the window gets bigger.
15928 * PaintEventArgs.cs: add an internal method so that the clip
15929 rectangle can be changed.
15931 2006-11-13 Chris Toshok <toshok@ximian.com>
15933 [ fixes bug #79745 ]
15935 * NotifyIcon.cs: lots of cleanup.
15937 * X11Structs.cs: add an enum for XEMBED messages.
15939 * XplatUIX11.cs: reindent one of the giant switch statements, it
15940 was taking up an additional tab stop, and this file is already way
15941 too wide for my laptop's screen.
15943 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
15944 we get it, resize the hwnd to the WMNormalHints max_width/height.
15946 2006-11-13 Jackson Harper <jackson@ximian.com>
15948 * TextBoxBase.cs: Compute the value changes for the mouse wheel
15951 2006-11-13 Chris Toshok <toshok@ximian.com>
15953 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15954 #79898. force a reference to the Region to stick around so the
15955 unmanaged object isn't collected (rendering our handle in the MSG
15958 2006-11-13 Chris Toshok <toshok@ximian.com>
15960 * XplatUIX11.cs: fix #79917 for window managers which support
15962 using XStoreName on the raw utf8, and we need to convert to
15963 COMPOUND_TEXT if it's non-latin1.
15965 2006-11-13 Chris Toshok <toshok@ximian.com>
15967 * Form.cs (set_DialogResult): we need to set closing to false if
15968 we're setting our result to None. fixes bug #79908.
15970 2006-11-13 Jackson Harper <jackson@ximian.com>
15972 * TextControl.cs: When formatting text, compute the adjusted tag
15973 lengths correctly, using FindTag for the end tag instead of trying
15974 to figure it out outselves.
15975 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15976 the item, ItemHeight doesn't work, because trees with large
15977 imagelists use those for their height
15978 * TreeView.cs: ActualItemHeight factors in the image height
15979 - compute left edge of checkboxes correctly
15980 - when expanding/collapsing move the bottom down one pixel, so we
15981 aren't moving part of the node
15983 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15985 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15986 stack in PaintEventStart so that it won't get disposed by the gc
15987 before reaching PaintEventEnd.
15989 2006-11-13 Jackson Harper <jackson@ximian.com>
15991 * TextBoxBase.cs: Don't select the word if we are on a line with
15993 - We don't need to position the caret on mouse up, since the mouse
15994 move handler should be doing this
15995 - When double clicking a blank line, the caret is advanced to the
15998 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
16000 * TreeNodeCollection.cs: Avoid duplicating indexer code.
16002 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
16004 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16005 Fixes part of bug #79910.
16007 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
16009 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16010 (bug #79903). Some minor string updates to match ms.
16012 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16014 * FileDialog.cs: Don't add an extension if the filename
16015 already ends with that extension.
16017 2006-11-10 Jackson Harper <jackson@ximian.com>
16019 * TreeView.cs: Use the currently highlighted node for the
16020 BeforeSelect event.
16021 * TextBoxBase.cs: There is no need to expand selection on
16023 - CanUndo means 'is there any undo operations', not 'is undo
16024 allowed on this textcontrol. Fixed ClearUndo unit test.
16026 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
16028 * Button.cs: only perform click when button is Selectable (so as
16029 not to activate default buttons when they're disabled)
16031 * Control.cs: Rewrite of the SelectNextControl and related
16032 methods. HandleClick now selects next control if the current one
16035 * Form.cs: OnActivated selects next active control only if Load
16036 has already occurred. If Load hasn't run, there's no point in
16037 selecting here, Load might change the state of controls.
16039 * FocusTest.cs: Tests marked as working again for these fixes
16041 2006-11-10 Chris Toshok <toshok@ximian.com>
16043 * XplatUIX11.cs: a couple of fixes.
16045 - use XInternAtoms with almost all the atoms we need to register,
16046 instead of many, many calls to XInternAtom. should help a bit on
16047 startup time, at the expense of making the code look a little
16050 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
16051 isn't reparented (which seems to be a clue that we're running fon
16052 compiz) and they have an Owner form. This fixes the tool windows
16053 in paint.net when running under compiz.
16055 - when setting the opacity of a window, support both the case
16056 where the window has been reparented and also when it hasn't been.
16057 Since compiz/beryl doesn't seem to reparent windows, and these are
16058 the only window managers which support translucency, I'm not sure
16059 why we need the hwnd.reparented case at all.. but leave it in.
16060 now we get translucent windows in paint.net under compiz/beryl.
16062 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16064 * FileDialog.cs: Always return the value for FilterIndex that
16065 was set. Internally convert it to values that make sense.
16067 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16069 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
16071 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16073 * Toolbar.cs: Change default value of DropDownArrows to true, the
16074 signature still using false to make it compatible with MS but the
16075 initial value is true. Fixes #79855.
16077 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16079 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
16080 only available on Linux.
16082 2006-11-09 Everaldo Canuto <everaldo@simios.org>
16084 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
16085 reduce number of calls to redraw method during toolbar creation.
16087 2006-11-09 Mike Kestner <mkestner@novell.com>
16089 * ListView.cs : raise SelectedIndexChanged when an item is selected
16090 programmatically via the Item.Selected property. Gert's nice
16091 ListViewSelectedIndexChanged test fixture now runs clean.
16093 2006-11-09 Mike Kestner <mkestner@novell.com>
16095 * ListView.cs : raise SelectedIndexChanged when a selected item is
16096 removed from the item collection using Remove or RemoveAt.
16098 2006-11-09 Mike Kestner <mkestner@novell.com>
16100 * ListView.cs : raise SelectedIndexChanged once per selected item
16101 for compat with MS. Fixes #79849+.
16103 2006-11-09 Chris Toshok <toshok@ximian.com>
16105 * TabControl.cs: initialize row_count to 0, and set it to 1 when
16106 we need to (if we have any tab pages). Fixes unit test.
16108 2006-11-09 Chris Toshok <toshok@ximian.com>
16110 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
16111 width is 0, not 3. Fixes a unit test.
16113 2006-11-09 Mike Kestner <mkestner@novell.com>
16115 * ListView.cs : use Implicit scrollbars so that focus isn't
16116 stolen from the listview when they are clicked. Fixes #79850.
16118 2006-11-09 Chris Toshok <toshok@ximian.com>
16120 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
16121 have a root item. Fixes #79879.
16123 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
16127 - An ArgumentException is now thrown if a wrong filter
16128 is applied (matches ms). The previous filter doesn't change
16129 anymore if an exception is thrown.
16130 - Changing the FileName property also affects FileNames
16131 * ColorDialog.cs: The length of the CustomColors array is always
16132 16. It doesn't matter if we use a smaller array or null to update
16133 or change the custom colors property.
16134 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
16135 for RootFolder if we get a undefined value.
16137 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
16139 * StatusBarPanel.cs:
16140 - Width is set to MinWidth if Width is smaller than
16141 MinWidth. Fixes #79842.
16142 - MinWidth now always overrides Width (MSDN says MinWidth
16143 is set to Width when AutoSize = None, but they do not
16145 - Style has now the the correct default value.
16147 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
16150 - The control is completely invalidated on
16151 Got/LostFocus to draw the focus rectangle correctly.
16152 - When AutoSize then height is always 45 (width for
16153 vertical controls).
16155 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
16156 on the mouse when moved and it doesn't move when grabbed
16157 until the mouse moves as well. Also fixed some wrong
16158 calculations when clicking on the thumb (control thought
16159 click was outside of thumb and didn't grab it).
16160 Fixes some of the issues in #79718.
16162 2006-11-08 Everaldo Canuto <everaldo@simios.org>
16164 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
16166 2006-11-08 Chris Toshok <toshok@ximian.com>
16168 * PropertyGridView.cs: only call ToggleValue if the item is not
16171 2006-11-08 Jackson Harper <jackson@ximian.com>
16173 * TextBoxBase.cs: The RichTextBox and textbox have very different
16174 word selection methods. Implement the textbox's simple word
16175 selection here, and let the RichTextBox override and provide it's
16177 - Don't do extra selection on mouseup
16178 * RichTextBox.cs: Use the documents word selection algorithm, I
16179 think ideally, this function will be pulled into the
16180 RichTextBox.cs code someday.
16182 2006-11-08 Chris Toshok <toshok@ximian.com>
16184 * RootGridEntry.cs: new class to represent GridItemType.Root.
16186 * CategoryGridEntry.cs: reformat, and add boilerplate.
16188 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
16189 returns the UI parent anyway, and we need special handling to
16190 implement the GetTarget method in the face of it. Also, implement
16193 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
16194 a root grid item, and use that instead of PropertyGrid.grid_items.
16195 Also, make use of TypeConverters (and add limitted support for
16196 ICustomTypeDescriptors) when initially populating the grid.
16197 Arrays now show up more or less properly.
16199 2006-11-08 Chris Toshok <toshok@ximian.com>
16201 * Application.cs: set the modal dialog to non modal after we close
16202 it. Fixes bug #79866.
16204 2006-11-08 Jackson Harper <jackson@ximian.com>
16206 * TextControl.cs: When combining lines carry over the line end
16207 style from the end line.
16208 - Invalidate the selected area when setting it, if it is visible.
16209 * TextBoxBase.cs: Only rich text box can do full line selects.
16210 - Make sure to set the cursor position when there is a click,
16211 otherwise two clicks in separate areas could cause a large chunk
16214 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16216 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
16219 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16221 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
16222 time. Remove tooltips when ToolButton click events. Fixes #79856.
16224 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16226 * MenuAPI.cs: Ignore right click for menu actions and fixes
16227 menu border when clicked. Fixes #79846.
16229 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16231 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
16232 MouseState after create wParam for message, this fixes mouse button
16233 equal none in mouse up events.
16235 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
16237 * Control.cs : Focus() now calls Select to set the Container's
16238 Active Control and to give it focus. To avoid infinite recursion
16239 (because ActiveControl also calls Focus at one point), a check
16240 is made in Focus with the help of a new internal variable
16243 2006-11-07 Mike Kestner <mkestner@novell.com>
16245 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
16246 if there's a selection. Fixes #79849.
16248 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
16250 * PropertyGrid.cs: Avoid fixed height of help description label.
16251 Fixes part of bug #79829.
16253 2006-11-07 Chris Toshok <toshok@ximian.com>
16255 * XplatUIX11.cs: fix #79790 again, by using the
16256 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
16258 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16260 * ToolBar.cs: Fix left click checking.
16262 2006-11-07 Chris Toshok <toshok@ximian.com>
16264 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
16266 2006-11-07 Chris Toshok <toshok@ximian.com>
16268 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
16269 PropertyManager unit tests.
16271 * PropertyManager.cs: make property_name internal.
16273 2006-11-07 Chris Toshok <toshok@ximian.com>
16275 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
16276 pass a unit test. Also, don't set image_index to anything in
16277 response to setting the ImageList property.
16279 2006-11-07 Everaldo Canuto <everaldo@simios.org>
16281 * ToolBar.cs: Ignore click events when mouse button is not a
16282 left button, only accepts other button for dropdown menus.
16285 2006-11-07 Chris Toshok <toshok@ximian.com>
16287 * DataGrid.cs: make the back and parent row buttons a little less
16290 2006-11-07 Jackson Harper <jackson@ximian.com>
16292 * TextBoxBase.cs: When converting to Text don't put line breaks in
16293 for soft line breaks.
16294 * TextControl.cs: There is an initial "fake" line in the document,
16295 this is now a soft break line, so that an extra line feed doesn't
16296 get added to the end of documents.
16298 2006-11-07 Chris Toshok <toshok@ximian.com>
16302 * CurrencyManager.cs: if the list is readonly, don't bother
16303 checking if IBindingList.AllowNew is true.
16305 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
16306 for non-DataRowView datasources.. or rather, make it not crash.
16307 (DataGridPaintRelationRow): make sure we limit the row painting to
16308 the area not covered by the row header, and make our cell width at
16309 least large enough to cover the relation area. This allows grids
16310 that have relations but no rows to render correctly.
16311 (DataGridPaintRowContents): same type of changes here.
16312 (SetDataSource): move back to always calling
16313 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
16314 navigating back through relations.
16315 (HitTest): handle the case where we have no cells but have
16316 relations. Right now we generate a hit in cell 0 of whatever the
16317 row is, not sure if this is strictly correct, but it works for our
16320 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
16321 bother doing anything.
16323 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
16325 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
16326 early version of StatusStrip. Not responsible for eaten
16327 application or firstborn children.
16329 2006-11-06 Chris Toshok <toshok@ximian.com>
16331 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
16332 call GetTabRect with a -1 index. Fixes #79847.
16334 2006-11-06 Jackson Harper <jackson@ximian.com>
16336 * TreeNodeCollection.cs: Update scrollbars after clearing.
16338 2006-11-06 Chris Toshok <toshok@ximian.com>
16340 * NumericUpDown.cs: fix the ToString method for some unit test
16343 2006-11-06 Chris Toshok <toshok@ximian.com>
16346 - set the initial SelectedGridItem if we can.
16348 - Exclude non-mergable properties only if we're merging > 1
16349 object. Merging 1 object isn't really merging, obviously.
16351 - Handle PropertySort.NoSort just like Alphabetical, which is
16352 wrong of course, but at least gets things on the screen.
16354 * PropertyGridView.cs:
16355 - Add method "FindFirstItem" which finds the first property grid
16356 item, so we can select it by default.
16358 - make use of GridEntry.CanResetValue.
16360 - Don't call RedrawBelowItemOnExpansion here anymore, the
16361 individual GridEntry's will do that.
16363 - Remove the ITypeDescriptorContextImpl internal class.
16366 - this class needs to implement ITypeDescriptorContext, as it's
16367 what MS's PropertyDescriptorGridEntry does, which means we can
16368 remove the ITypeDescriptorContextImpl internal class from
16369 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
16371 - keep a reference to our PropertyGridView, and move the call to
16372 RedrawBelowItemOnExpansion here from PGV. This means
16373 programmaticly setting Expanded actually does something visible.
16375 - add a CanResetValue() function which takes into account our
16376 possibly multiple "selected_objects" in the merged case. Shifting
16377 PropertyGridView to use this method fixes another unreported
16378 crasher found running the test for #79829.
16380 - when Top or Bounds is updated, make sure the PropertyGridTextBox
16381 is updated to reflect this.
16383 * CategoryGridEntry.cs: the ctor takes the PGV now.
16385 2006-11-06 Jackson Harper <jackson@ximian.com>
16387 * TextControl.cs: These are 1 based.
16388 * TextBoxBase.cs: When setting the selected text, don't change the
16389 selected text tags, this is done by ReplaceText, just position the
16390 cursor at the end of the new text.
16392 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
16394 * ListView.cs: Allow label edit only when, when LabelEdit is
16397 2006-11-06 Jackson Harper <jackson@ximian.com>
16399 * TextControl.cs: If a suitable wrapping position isn't found,
16400 just wrap right in the middle of a word.
16402 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
16404 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
16407 2006-11-06 Jackson Harper <jackson@ximian.com>
16409 * TreeView.cs: Can't use the VisibleCount property when setting
16410 scrollbar heights, because this doesn't take into account whether
16411 or not the horz scrollbar just came visible.
16413 2006-11-05 Everaldo Canuto <everaldo@simios.org>
16415 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
16416 activated. Fixes #79369, #79832.
16418 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
16420 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
16421 had to remove support for links that point to a directory. FileInfo
16422 returns no usefull information (means, the directory they point to)
16423 for such links. Replaced some empty string ("") with String.Empty.
16425 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16427 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
16428 NullReferenceException when attempting to remove node that is not in
16429 collection. Throw NullReferenceException when null is passed to
16430 Remove. Allow first element of the collection to be removed. Fixes
16431 bug #79831. In GetEnumerator ().Current return null if positioned
16432 before the first element of the collection. In GetEnumerator ().Reset,
16433 position before first element of the collection.
16435 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
16437 * PropertyGrid.cs: To match MS, remove default title and description
16438 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
16441 2006-11-04 Chris Toshok <toshok@ximian.com>
16443 * Theme.cs: add a Clamp method, just for kicks.
16445 * ThemeWin32Classic.cs: clamp all color components to [0..255].
16447 2006-11-04 Chris Toshok <toshok@ximian.com>
16449 * Form.cs: if the form isn't visible, Close() does nothing.
16451 2006-11-03 Chris Toshok <toshok@ximian.com>
16453 * Form.cs (Close): if the form is modal, don't Dispose of it, only
16455 (WndProc): don't Dispose after handling the WM_CLOSE message.
16457 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
16458 them as such, instead of using casts from Control to Form. Also,
16459 don't Dispose of the modal dialog when we fall out of the loop -
16460 Close() it instead.
16464 2006-11-03 Chris Toshok <toshok@ximian.com>
16466 * Control.cs (Dispose): only go through the dispose thing if we're
16467 @disposing, and we haven't already been disposed. Fixes bug
16470 * Form.cs: no reason to call "base.Dispose()" here instead of
16473 2006-11-03 Mike Kestner <mkestner@novell.com>
16475 * ComboBox.cs : use ToString instead of casts in AddItem for
16476 sorting functionality. Fixes #79812.
16478 2006-11-03 Chris Toshok <toshok@ximian.com>
16480 * Application.cs: pave the way for actually using the thread
16481 exception dialog. it's ifdefed out at the moment.
16483 2006-11-03 Chris Toshok <toshok@ximian.com>
16485 * ThreadExceptionDialog.cs: until we get a better layout, actually
16486 hide the details textbox and label when we shouldn't see them.
16488 2006-11-03 Jackson Harper <jackson@ximian.com>
16490 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
16491 multiline textboxes anymore. This method also determines the
16492 width/height of a textboxes canvas area.
16493 - Sorta a revert of the last patch. For multiline just position
16494 the controls, then bail. This way the scrollbar width won't be
16497 2006-11-03 Everaldo Canuto <everaldo@simios.org>
16499 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
16500 it dont need. Fixes #79537.
16502 2006-11-02 Jackson Harper <jackson@ximian.com>
16504 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
16505 send the status after firing the DndOver event.
16507 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16509 * TrackBar.cs: Now orientation only switches height / width if
16510 the control's handle is created (Win32 does it like this). Also
16511 fixed a typo in ToString() for a test to pass, changed the
16512 exception thrown in set_LargeChange and set_SmallChange to
16513 match Win32 behaviour, and added TrackBar tests to the unit
16516 2006-11-02 Chris Toshok <toshok@ximian.com>
16518 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
16519 not _NET_WM_STATE_NO_TASKBAR.
16521 2006-11-02 Jackson Harper <jackson@ximian.com>
16523 * TextControl.cs: Increment count by one, since in the update view
16526 2006-11-02 Jackson Harper <jackson@ximian.com>
16528 * TextBoxBase.cs: Use client rectangle not bounds for checking if
16529 the mouse is in the client rectangle (duh).
16531 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16533 * TrackBar.cs: Fixed trackbar jumping around when clicking
16534 on it - the trackbar was not detecting correctly at which
16535 side of the thumb the click was done. (fixes #79718)
16537 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16539 * ListBox.cs: scroll visible area when change SelectedIndex to
16540 a non visible area. Fixes #79481.
16542 2006-11-01 Jackson Harper <jackson@ximian.com>
16544 * TextControl.cs: When replacing the selection move the selection
16545 start/end/anchor to the end of the new text.
16547 2006-11-01 Jackson Harper <jackson@ximian.com>
16549 * XplatUIWin32.cs: When setting the parent change the controls
16550 visibility to it's visibility flag, not to it's old parents
16551 visibility (.Visible walks the parent chain).
16553 2006-11-01 Chris Toshok <toshok@ximian.com>
16555 * XplatUIX11.cs: revert the #79790 fix, as the simple.
16556 XSetTransientForHint fix breaks paint .net's tool windows. more
16557 work needed for that one.
16559 2006-11-01 Chris Toshok <toshok@ximian.com>
16561 * ScrollBar.cs: throw ArgumentException instead of Exception in
16562 LargeChange/SmallChange setters. fixes unit tests.
16564 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16566 * ContainerControl.cs: reverted rev.67183 (which was itself
16567 a reversion of rev.66853... eh).
16569 * Control.cs: Fixes Reflector hang by changing Focus() call
16570 to what it was before rev.66643 (calling Select() here sets
16571 ActiveControl, which in some situations calls back Focus and
16572 eventually does a stack overflow). Temp fix.
16573 Changes to GetNextControl() to not look for children to select when
16574 parent cannot be selectable (so it looks for siblings instead)
16576 2006-10-31 Mike Kestner <mkestner@novell.com>
16578 * CheckedListBox.cs : off by one error in returned index from
16579 ObjectCollection.Add. Fixes #79758.
16581 2006-10-31 Chris Toshok <toshok@ximian.com>
16583 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
16584 calls for the textbox/spinner, to keep from recursing to the point
16585 where we crash. Fixes #79760.
16587 2006-10-31 Chris Toshok <toshok@ximian.com>
16589 * ListControl.cs (set_SelectedValue): don't throw exceptions on
16590 null/"" value, just return. matches ms's behavior and fixes some
16593 2006-10-31 Chris Toshok <toshok@ximian.com>
16595 * Control.cs (set_Capture): make a logic a little easier to
16598 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
16599 if it's being destroyed. A necessary fix surely, but a bandaid
16600 also, to fix the stuck capture problem in bug #78413.
16602 2006-10-31 Chris Toshok <toshok@ximian.com>
16604 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
16605 convention of clearing hwnd.ClientRect when we set the
16606 width/height (so it'll be recalculated by Hwnd).
16608 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
16610 * ContainerControl.cs: reversed Contains check from
16611 ActiveControl due to hanging problems. This fix
16612 partly regresses #79667 (button does not have
16613 initial focus), so this might be a symptom for
16614 a larger parenting problem (set_ActiveControl
16615 is being called but the child control does
16616 not have the parent set yet?)
16618 2006-10-31 Mike Kestner <mkestner@novell.com>
16620 * MenuAPI.cs : fix keynav when menu is click activated.
16622 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
16624 * ToolStrip*: Version 0.2.
16626 * MenuStrip.cs: Version 0.1.
16628 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
16630 2006-10-30 Chris Toshok <toshok@ximian.com>
16632 [ fixes the oversized notify icon issue in bug #79745 ]
16634 * NotifyIcon.cs: scale the icon down to the size we're given by
16635 the XplatUI layer (this would be faster if we did it once instead
16636 of whenever we paint..) Also, remove the WM_NCPAINT handling,
16637 since it's never invoked.
16639 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
16640 pixels high by default, so let's hardcode our systray icon to that
16641 size. The SYSTEM_TRAY protocol should really have a way for
16642 client apps to query for the correct icon size.. but oh well. A
16643 couple of patches to deal with the screwy client_window ==
16644 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
16645 instance, and also make sure we don't XSelectInput twice).
16647 2006-10-30 Chris Toshok <toshok@ximian.com>
16649 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
16650 recreating forms. Control recreation is the bane of my existence.
16651 Fix it in a way that keeps everyone happy.
16653 2006-10-30 Chris Toshok <toshok@ximian.com>
16655 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
16656 just non-CHILD ones. otherwise sometimes scrollbars end up with
16657 client_windows not being resized to the proper size (ReportBuilder
16658 shows this extremely well).
16660 2006-10-30 Chris Toshok <toshok@ximian.com>
16662 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
16663 for non-WS_EX_APPWINDOW windows. This is what keeps them from
16664 showing up in the gnome taskbar. Fixes bug #79790.
16666 2006-10-30 Chris Toshok <toshok@ximian.com>
16668 * ApplicationContext.cs: guard against a NRE.
16670 * Application.cs: null out the old MainForm for the context, so we
16671 don't try to use it again once it's disposed. Fixes bug #79783.
16673 2006-10-30 Chris Toshok <toshok@ximian.com>
16675 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
16676 BindingContext, set the data source directly, otherwise do the
16677 lazy approach - the actual ListManager will be created when we get
16678 a BindingContext. Fixes bug #79700.
16680 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16682 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16683 XplatUIX11.cs: Remove old 2 parameter SetVisible.
16685 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
16687 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
16689 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
16690 of SetVisible that allows a window to be shown, but not activated.
16691 This is needed on Windows for MenuStrip, and can probably be used
16692 with MainMenu and ComboBox to fix the focus stealing issues on
16695 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
16697 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
16699 * PictureBox.cs: Fix the output of the ToString method.
16701 2006-10-29 Chris Toshok <toshok@ximian.com>
16703 * Control.cs (get_TopLevelControl): fix bug #79781.
16705 2006-10-29 Chris Toshok <toshok@ximian.com>
16707 * ListControl.cs (set_DataSource): throw Exception here, not
16708 ArgumentException, to match MS behavior.
16710 2006-10-29 Chris Toshok <toshok@ximian.com>
16712 * Form.cs: remove the try-catch's around calls to GetWindowState.
16713 We can just check the return value.
16715 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
16718 * XplatUI.cs: Add note about additional return value for
16721 2006-10-29 Chris Toshok <toshok@ximian.com>
16723 * Control.cs (CreateHandle): when we create our handle, we also
16724 create the handles of our child controls. Fixes one of the
16725 Control unit tests (CH11).
16727 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16729 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
16731 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
16733 * ThemeClearlooks.cs: A little speedup.
16735 2006-10-27 Chris Toshok <toshok@ximian.com>
16737 * Control.cs: implement Control.FromChildHandle in a way that
16738 matches the docs (and fixes the failed test.)
16740 2006-10-27 Chris Toshok <toshok@ximian.com>
16742 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
16745 * DataGrid.cs: implement ResetForeColor such that the tests
16748 2006-10-27 Chris Toshok <toshok@ximian.com>
16750 * ToolBarButton.cs: setting text/tooltiptext to null results in it
16751 being set to "". Fixes bug #79759.
16753 2006-10-27 Jackson Harper <jackson@ximian.com>
16755 * TextControl.cs: We need to clear the entire selection area when
16756 setting the start, otherwise multiline selections are still
16759 2006-10-26 Chris Toshok <toshok@ximian.com>
16761 * PropertyGridView.cs:
16763 - ifdef all the code specific to the double
16764 buffer case, and provide some alternatives in the non-doublebuffer
16765 code, which makes heavy use of XplatUI.ScrollWindow to move things
16766 around without having to invalidate (and cause flicker). There
16767 are still some drawing problems in the non-doublebuffered case, so
16768 DOUBLEBUFFER is defined by default.
16770 - Fix the way dropdowns are handled. now we explicitly watch for
16771 the events which might cause the dropdown to close, and break out
16772 of the nested event loop there. This gets rid of all Capture
16773 code, at the expense of the Msg special casing. Seems to work,
16774 though, and fixes bug #79743.
16776 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16777 * Control.cs: SetIsRecreating now recreates implicitly added
16778 child controls as well. Finally fixes #79629. The flag passed to
16779 SetIsRecreating has also been removed since it wasn't used.
16781 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16783 * PageSetupDialog.cs: Clean some code, fix some bits,
16784 add some checks, and add a printer sub-dialog.
16786 2006-10-26 Chris Toshok <toshok@ximian.com>
16788 * PropertyGrid.cs: make set_SelectedObject call
16789 set_SelectedObjects, and move the duplicate logic to the
16790 SelectedObjects setter. Also, raise SelectedObjectsChanged.
16792 * PropertyGridView.cs: hide the textbox when we get a
16793 SelectedObjectsChanged event.
16797 2006-10-26 Chris Toshok <toshok@ximian.com>
16799 * PropertyGridView.cs: deal with the type converter not supporting
16800 GetStandardValues() or GetStandardValues() returning null, which
16801 is does in the default case. Fixes #79742.
16803 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16805 * CheckedListBox.cs: nunit no longer crashes when selecting
16806 Project/Edit menu option
16808 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
16810 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
16811 is no menu selected. fixes #79739
16813 2006-10-25 Chris Toshok <toshok@ximian.com>
16815 * PropertyGridView.cs: factor out the splitter invalidation code
16816 into the SplitterPercent setter, and for kicks implement the
16817 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
16818 amount in either direction.
16820 2006-10-25 Chris Toshok <toshok@ximian.com>
16822 * PropertyGridView.cs: do some cleanup of the brush used to draw
16823 text - read only fields should be grayed out. not sure how to do
16824 this with the textbox, though. but the textbox's should also be
16825 readonly now at least. Also, hide/show the textbox when resizing
16828 * CursorConverter.cs: use System.Reflection when getting the
16829 properties of Cursors, as TypeDescriptor.GetProperties isn't
16830 returning static properties.
16832 2006-10-25 Chris Toshok <toshok@ximian.com>
16834 * PropertyGridView.cs: factor out the up/down handling, and reuse
16835 it for page up/down. also add End/Home support.
16837 2006-10-25 Chris Toshok <toshok@ximian.com>
16839 * PropertyGridView.cs:
16841 - ensure the selected grid item is visible in the scrolled area,
16844 - fix Keys.Down handling when you're on the last item in the
16847 2006-10-25 Mike Kestner <mkestner@novell.com>
16849 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
16850 clicks too. Fixes #79725.
16852 2006-10-24 Chris Toshok <toshok@ximian.com>
16854 * PropertyGrid.cs: use property.Converter instead of
16855 TypeDescriptor.GetConverter(property.PropertyType), so we catch
16856 TypeConverters declared on the property as well as on the
16857 PropertyType. Fixes bug #79678.
16859 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
16861 * MimeIcon.cs, Mime.cs:
16862 Fallback to the default platform handler if no shared mime info
16863 stuff exists (fixes #79693).
16865 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16866 * ContainerControl.cs: Incorrect contains check in ActiveControl
16867 from previous fix (duh).
16869 2006-10-20 Chris Toshok <toshok@ximian.com>
16871 * PropertyGridView.cs: the dropdown should be MIN(number of items
16872 in list, 15). Fixes #79551.
16874 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16875 Fixes #79384, #79394, #79652, #79667
16878 - Modal windows are now destroyed in the proper order for windows
16880 * ContainerControl.cs:
16882 - ActiveControl setter has more conditions on when to return:
16883 - if we're reselecting the active control, but it actually
16884 didn't have focus (window hidden or some such), it runs
16885 - if the active control being selected doesn't actually
16886 exist in the container, it returns
16890 - The ShowDialog now gets the current form as the owner when
16891 invoking without parameters, and correctly activates the owner
16896 - MessageBox now catches the Escape key to exit
16898 2006-10-20 Chris Toshok <toshok@ximian.com>
16900 * PropertyGridView.cs: fix a number of issues (bug #78565, and
16901 most of bug #79676):
16903 - you can navigate around the property grid with the arrow keys.
16905 - the dropdown is sized properly when the pg has a vertical
16908 - fix the indentation for subentries, and properly select the
16911 - fix the gray bar's drawing (only draw it to the last element,
16912 not for the height of the control. Also make sure we draw that
16913 last horizontal grid line.
16915 - use the same mechanism the datagrid uses wrt the editing textbox
16916 when scrolling/resizing/etc. Namely, we hide it first, do the
16917 operation, then show it again (if it's still visible).
16919 - aggressively remove a lot of unnecessary refreshes (and also
16920 calls to Invalidate(). call more limited variants, and only redraw
16925 - when we're populating the merged collection, fill in the UI
16926 parent with either the passed in item, or the category item we
16929 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16931 * GridItem.cs: drop some fully qualified names.
16933 * GridEntry.cs: add a "UIParent", which is basically the parent
16936 * GridItemCollection.cs: add an IndexOf method.
16938 2006-10-20 Mike Kestner <mkestner@novell.com>
16940 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
16941 a working win32 NC invalidation mechanism, we can't invalidate
16942 menus. [Fixes #79705]
16944 2006-10-20 Mike Kestner <mkestner@novell.com>
16946 * ListBox.cs : don't update the VScrollbar if the list is empty,
16947 just hide it. [Fixes #79692]
16949 2006-10-20 Jackson Harper <jackson@ximian.com>
16951 * RichTextBox.cs: Handle some special chars better, and don't skip
16952 the entire group when we encounter a special char that we don't
16955 2006-10-18 Chris Toshok <toshok@ximian.com>
16957 * PropertyGridView.cs: address a number of issues from bug #79676,
16958 mostly of the cosmetic variety.
16960 - The highlight rectangle for indented items not extends all the
16963 - Indented items aren't indented so much.
16965 - the dropdown is properly sized width-wise if the pg has a
16966 vertical scrollbar.
16968 2006-10-18 Chris Toshok <toshok@ximian.com>
16970 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16971 systray stuff is rather convoluted to begin with.
16973 systray icons are a single window for some reason (that I haven't
16974 figured out yet), and for them, client_window == whole_window.
16975 Given the way the tests are structured elsewhere to determine
16976 which paints are pending (client vs. nc), that situation will
16977 always yield PAINT, not NCPAINT. So, if we have a pending
16978 nc_expose and no pending expose, remove the hwnd from the paint
16979 queue, and also set nc_expose_pending to false, to keep us from
16980 blocking further expose's adding the hwnd to the paint queue.
16982 phew. like i said, a rather convoluted change. Fixes the
16983 notifyicon repaint issues in bug #79645.
16985 2006-10-18 Chris Toshok <toshok@ximian.com>
16987 * Form.cs: when getting the backcolor of the form, don't get
16988 base.BackColor, as this allows parents to influence the background
16989 color. This breaks mdi forms. Instead, if the background_color
16990 is empty, return the default.
16992 2006-10-18 Chris Toshok <toshok@ximian.com>
16994 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16995 to being private instead of internal static.
16997 * Control.cs: remove all the stupid ParentWaitingOnRecreation
16998 crap, it wasn't working for more deeply nested controls anyway,
16999 and we already have the is_recreating flag - use that instead.
17000 Before calling DestroyHandle in RecreateHandle, recurse through
17001 the control tree setting it to true. this returns the recreate
17002 code to much of its original simplicity, while now guaranteeing we
17003 actually recreate everything we're supposed to. This change gets
17004 fyireporting actually showing mdi children.
17006 2006-10-17 Chris Toshok <toshok@ximian.com>
17008 * Form.cs: remove some debug spew, and collapse some duplicate
17009 code at the end of SetClientSizeCore.
17012 - add some more debug spew here too wrt Destroy handling.
17013 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17014 in Control's handling of WM_DESTROY.
17015 - Remove the handling of zombie window DestroyNotifies from the
17016 event loop - we don't need it. Now the only DestroyNotifies we
17017 actually handle are ones generated by X.
17018 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17019 match gtk's (functioning) handling of this. This keep metacity
17020 from leaving droppings in the form of wm borders with no window
17021 contents all over the place.
17024 - add a bunch of debug spew wrt control recreation.
17025 - fix a bug where we weren't tracking Visible properly on
17027 - fixed the WM_PAINT double buffer handling to support re-entrant
17028 calls (yes, i know it's gross, but it's happening to us).
17030 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17031 * ThemeWin32Classic.cs: changed drawing of selected days
17032 to make them look better.
17034 2006-10-16 Chris Toshok <toshok@ximian.com>
17036 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
17037 drawing_stack. Nuke the ClientDC/NonClientDC properties.
17039 * XplatUIX11.cs: move away from using hwnd.client_dc and
17040 hwnd.non_client_dc and on to a stack of dc's (and in window's
17041 case, PAINTSTRUCT's), so we can deal with nested Paint calls
17042 without puking or not disposing of Graphics objects.
17044 * XplatUIOSX.cs: same.
17046 * XplatUIWin32.cs: same.
17048 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17050 * FileDialog.cs: Don't call on_directory_changed inside
17051 OnSelectedIndexChanged (it changes the SelectedIndex too).
17052 Instead move it to OnSelectionChangeCommitted.
17054 2006-10-13 Chris Toshok <toshok@ximian.com>
17056 * XplatUIX11.cs: more Destroy work. the current code does the
17057 following things, in order:
17059 1. Enumerates all handles of all controls at or below the one
17060 being destroyed, in pre-order. As it is doing this, it marks the
17061 handles as zombie and clears all references to them.
17063 2. calls XDestroyWindow on the window passed in.
17065 3. SendMessage's WM_DESTROY to all he handles in the accumulated
17068 2006-10-13 Chris Toshok <toshok@ximian.com>
17070 * XplatUIX11.cs: set hwnd.zombie to true before calling
17071 SendMessage (WM_DESTROY). this keeps us from marking the new
17072 window a zombie, and also keeps us from calling sendmessage at
17075 2006-10-13 Jackson Harper <jackson@ximian.com>
17077 * TextControl.cs: Do not show the caret and selection at the same
17078 time. Reduces ugliness by 35%.
17080 2006-10-13 Chris Toshok <toshok@ximian.com>
17082 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
17083 zombie after we do the recursive call, so we actually do call
17084 SendMessage on the children controls.
17085 (GetMessage): if we find a pending paint event for a zombie hwnd,
17086 remove the hwnd from the paint queue, or else it will always be
17087 there (and we'll effectively loop infinitely)
17089 2006-10-13 Mike Kestner <mkestner@novell.com>
17091 * MenuItem.cs : add Selected format under keynav too.
17094 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
17096 * PropertyGrid.cs: Fixed some NRE's and small difference between our
17097 implementation and that of MS.
17099 2006-10-13 Chris Toshok <toshok@ximian.com>
17101 * Control.cs (OnInvalidated) only futz with the invalid_region if
17102 the control is double buffered. this fixes the apparent hang in
17103 the ListView unit tests. Someone needs to make the
17104 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
17106 2006-10-13 Chris Toshok <toshok@ximian.com>
17108 * PropertyGridView.cs:
17110 - do a little refactoring so that only one place calls
17111 dropdown_form.Hide, and that is CloseDropDown. make everywhere
17112 else call that. Also make it Refresh, since there are redraw bugs
17113 otherwise (we should take a look at that...)
17115 - do a little more refactoring work to share the body of code
17116 involved with the drop down. it was duplicated in the code
17117 dealing with the listbox handling and in the code dealing with the
17120 - add a Capture to the dropdown form's control once it's
17121 displayed, and add a MouseDown handler that checks to make sure
17122 the position is inside the control. If it's not, close the
17123 dropdown. This fixes #78190.
17125 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
17126 if the value is different than the initial value.
17128 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
17130 * Control.cs: see #78650
17131 - Fixed GetNextControl for several cases:
17132 - Changed FindFlatForward to return
17133 correct sibling control when more than one
17134 control has same TabIndex as the currently
17136 - Changed FindFlatBackward to loop children
17137 from last to first and apply same logic as in
17139 - Changed FindControlForward to search for
17140 children when control is not a container
17141 but has children, or search for siblings if
17142 control is a container...
17143 - Changed FindControlBackward to continue
17144 searching for child controls when hitting
17147 - Fixed Focus method to update ActiveControl
17148 (FocusTest.FocusSetsActive failure)
17151 - Focus rectangle now refreshes when gaining
17153 - Removed grab for Tab key on IsInputKey that
17154 was keeping tab navigation from working (#78650)
17156 2006-10-13 Chris Toshok <toshok@ximian.com>
17158 * PropertyGridView.cs:
17159 - Rewrite SetPropertyValue to loop over SelectedGridItem's
17162 - Deal with GridItem.Value == null a few places.
17165 - replace the PopulateGridItemCollection with a pair of methods
17166 which compute the intersection of all the properties in the
17167 SelectedObjects array. Fixes #79615.
17169 - Throw ArgumentException from set_SelectedObjects if there's a
17172 - Add GetTarget method which can be used to traverse up the
17173 GridItem.Parent chain. It depends on the assumption that
17174 selected_objects for different GridEntries are always in the same
17175 order (a safe assumption). Use this method and loop over all the
17176 selected objects in the entry when calling RemoveValueChanged and
17179 * GridEntry.cs: Make this handle multiple selected objects.
17180 .Value returns null if not all the selected objects share the same
17183 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
17184 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
17185 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
17186 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
17187 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
17188 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
17189 add additional functionality.
17191 2006-10-12 Mike Kestner <mkestner@novell.com>
17193 * ErrorProvider.cs : new ToolTipWindow ctor sig.
17194 * HelpProvider.cs : new ToolTipWindow ctor sig.
17195 * ToolTip.cs : remove ToolTip param from Window sig since it is
17197 * ToolBar.cs : add tooltip support. Fixes #79565.
17199 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17201 * ComboBox.cs: move the events in set_SelectedIndex to
17202 after the call to HighlightIndex in order to avoid
17203 possible recursion and subsequent problems with the call
17204 to HighlightIndex and include a range check in
17205 set_HighlightIndex. Fixes #79588
17207 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17209 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
17210 to ui thread's settings instead of sunday.
17211 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
17213 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17215 * DateTimePicker.cs
17217 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
17218 and implement missing functionality (selecting different parts
17219 of the date and edit them individually with the keyboard).
17221 2006-10-11 Chris Toshok <toshok@ximian.com>
17223 * Control.cs (OnInvalidated): fix NRE relating to last change.
17225 2006-10-11 Chris Toshok <toshok@ximian.com>
17227 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
17228 atoms in _NET_WM_STATE here if the window is maximized. We need
17229 to do this because we're *replacing* the existing _NET_WM_STATE
17230 property, so those atoms will be lost otherwise, and any further
17231 call to GetWindowState will return Normal for a window which is
17232 actually maximized. Fixes #79338.
17234 2006-10-11 Jackson Harper <jackson@ximian.com>
17236 * TextControl.cs: Special case for setting selection end to
17237 selection start, we basically kill the anchor.
17238 - some todo comments.
17240 2006-10-11 Chris Toshok <toshok@ximian.com>
17242 * Control.cs: switch to using an "invalid_region" to track which
17243 parts of the image buffer need updating. This is more code than
17244 the simple fix from r66532. That version just attempted to always
17245 fill the entire buffer on redraw, which turns out to be
17246 inefficient when invalidating small rectangles. This version
17247 simply adds the invalid rectangle to the invalid region. When we
17248 get any WM_PAINT message we see if it can be filled using the
17249 image buffer, and if it can't (if the paint event's clip rectangle
17250 is visible in the invalid region) we first fill the image buffer.
17251 So, the image buffer is still a cache, we just fill it lazily.
17253 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
17254 need it any longer.
17256 2006-10-11 Chris Toshok <toshok@ximian.com>
17258 * XplatUIX11.cs (SetWindowPos): we need to update both position as
17259 well as size after calling XMoveResizeWindow. This keeps us from
17260 ignoring future SetWindowPos calls. Fixes the disappearing
17261 DateTimePicker in the ToolBarDockExample from bug #72499.
17263 2006-10-11 Chris Toshok <toshok@ximian.com>
17265 * TextBoxBase.cs: reorder things a bit when it comes to
17266 resizing-causing-recalculation. we were recalculating the
17267 document when our position was changed, which shouldn't happen.
17268 We only care about size changes. Clear up some more redundant
17269 recalculation calls while I'm at it. This makes the toolbar dock
17270 example snappy when you're just dragging toolbars around (since it
17271 causes a relayout whenever you move one.)
17273 2006-10-11 Chris Toshok <toshok@ximian.com>
17275 * ToolBarButton.cs (get_Rectangle): this only returns
17276 Rectangle.Empty if Visible == false, or Parent == null.
17277 Parent.Visible doesn't matter.
17279 2006-10-10 Chris Toshok <toshok@ximian.com>
17281 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
17282 by .net 1.1, so switch to an internal method instead.
17284 2006-10-10 Chris Toshok <toshok@ximian.com>
17286 * Control.cs (WM_PAINT): when a control is double buffered we draw
17287 initially to the ImageBuffer and then copy from there. But when a
17288 parent control which has child controls is double buffered, the
17289 initial drawing doesn't encompass the entire ClientRectangle of
17290 the parent control, so we end up with uninitialized bits (this is
17291 easily seen by dragging the top toolbar in
17292 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
17293 manually set the ClipRectangle of the paint_event (only the one we
17294 use to populate the ImageBuffer) to ClientRectangle. Fixes more
17295 of the nastiness in bug #72499.
17297 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
17298 which we use in Control.cs's WM_PAINT handling.
17300 2006-10-10 Jackson Harper <jackson@ximian.com>
17302 * TextBoxBase.cs: Finish off the autoscrolling stuff.
17304 2006-10-10 Chris Toshok <toshok@ximian.com>
17306 * Cursor.cs: Apply a slightly different patch to the one suggested
17309 2006-10-10 Jackson Harper <jackson@ximian.com>
17311 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
17312 not the parent form.
17313 * TextControl.cs: use difference in old line count vs new count to
17314 calculate how many lines were added, this takes into account soft
17315 line breaks properly.
17317 2006-10-10 Chris Toshok <toshok@ximian.com>
17319 * LinkLabel.cs: don't call MeasureCharacterRanges against a
17320 rectangle located at 0,0 and the size of the text. Use
17321 ClientRectangle instead. This fixes rendering of non-left aligned
17324 2006-10-10 Jackson Harper <jackson@ximian.com>
17326 * TextBoxBase.cs: When we set the selection start position the
17328 * TextControl.cs: Need to update the caret when we decrement it to
17330 - Make sure that the selection_visible flag gets reset to false if
17331 the selection isn't visible. Before this you could get it set to
17332 visible by changing the selection start, then changing the end to
17335 2006-10-09 Jackson Harper <jackson@ximian.com>
17337 * TreeView.cs: Don't update scrollbars when we aren't visible.
17338 * TreeNodeCollection.cs: Only need to update scrollbars if being
17339 added to an expanded visible node or the root node.
17341 2006-10-09 Chris Toshok <toshok@ximian.com>
17343 * XplatUIX11.cs (SendMessage): fix NRE.
17345 2006-10-09 Jackson Harper <jackson@ximian.com>
17347 * TextBoxBase.cs: Implement horizontal autoscrolling.
17348 * TextControl.cs: Add a movement types that allows moving forward
17349 and backwards without wrapping.
17351 2006-10-09 Mike Kestner <mkestner@novell.com>
17353 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
17354 with focus "expansion" of labels. Fixes #79532 and then some.
17355 * ThemeWin32Classic.cs : add LineLimit to ListView label format
17358 2006-10-09 Jackson Harper <jackson@ximian.com>
17360 * TextBoxBase.cs: Set the default max values to MaxValue since
17361 we use the scrollbar for autoscrolling and the default value is
17362 100. If we don't do this the caret won't keep up with typing
17363 after about 18 characters.
17364 * TextControl.cs: Make sure the selection is offset by the
17365 viewport x. This fixes selection when using auto scrolling.
17367 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
17369 * Form.cs: The active control should be selected after the
17370 OnLoad so that any child control initialization that affects
17371 the selection is done. Fixes #79406
17373 2006-10-06 Chris Toshok <toshok@ximian.com>
17375 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
17376 to have no evil effects.
17378 - Stop selecting StructureNotifyMask on non-toplevel windows.
17380 The only way children should be resized is by using the SWF api,
17381 and we already send WM_WINDOWPOSCHANGED messages in those cases.
17382 Toplevel windows can be interacted with via the window manager,
17383 and so we keep the input mask there.
17385 The other event StructureNotifyMask gives us (that we care
17386 about) is DestroyNotify. The code is already structured such
17387 that it assumes we won't be getting a DestroyNotify event for
17388 the window we pass to XDestroyWindow (which is what
17389 StructureNotifyMask is supposed to guarantee.) So, that code
17390 shouldn't be affected by this either.
17392 - Stop selecting VisibilityChangeMask altogether.
17394 We weren't doing anything with the resulting events anyway.
17396 This vastly reduces the number of X requests and events we see
17397 when resizing/laying out a large ui.
17399 2006-10-06 Chris Toshok <toshok@ximian.com>
17401 * ScrollableControl.cs (DisplayRectangle): we need to take into
17402 account the DockPadding regardless of whether or not auto_scroll
17403 == true. rework this slightly to this effect, and fix bug #79606,
17404 and part of #72499 (you can now see the drag handles and drag
17407 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
17409 * ListViewItem.cs: Collections of selected and checked items are now
17410 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
17411 we mark the collection "dirty".
17412 * ListView.cs: Marked collections readonly. Modified UpdateSelection
17413 to only clear SelectedItems when a new item is selected and MultiSelect
17414 is enabled. CheckedItems and SelectedItems now subscribe to Changed
17415 event of ListViewItemCollection, and mark its list dirty whenever
17416 that event is fire. This allows us to return selected/checked items
17417 in the same order as they are in the Items collection. This matches
17420 2006-10-06 Chris Toshok <toshok@ximian.com>
17422 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
17423 right mouse clicks. Fixes bug #79593.
17425 2006-10-06 Chris Toshok <toshok@ximian.com>
17427 * Splitter.cs: doh, fix splitters that don't want to cancel the
17428 movement when you drag them. Also, impose the limits on the
17429 values we send to the SplitterMovingEvent. Fixes #79598.
17431 2006-10-06 Jackson Harper <jackson@ximian.com>
17433 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
17434 since we use this for auto scrolling also.
17436 2006-10-05 Chris Toshok <toshok@ximian.com>
17438 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
17439 beginning to think that most datagrid column types don't need this
17440 method. Fixes bug #79392.
17442 2006-10-05 Chris Toshok <toshok@ximian.com>
17444 * DataGrid.cs: move back to a more lazy scheme for creating the
17445 CurrencyManager, so we aren't updating it every time you set
17446 either DataSource or DataMember. Also, don't call
17447 RecreateDataGridRows if the currency manager hasn't changed.
17449 2006-10-05 Chris Toshok <toshok@ximian.com>
17451 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
17452 emitted, SelectedIndex should already be updated. Fixes bug
17455 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
17457 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
17458 ToolStripTextBox.cs: Initial commit.
17459 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
17461 2006-10-05 Jackson Harper <jackson@ximian.com>
17463 * TabControl.cs: We need to invalidate the tab control area when
17464 new ones are added (duh).
17466 2006-10-03 Chris Toshok <toshok@ximian.com>
17468 * Form.cs (ProcessDialogKey): if the focused control is in this
17469 form and is a button, call its PerformClick method here. Fixes
17472 2006-10-04 Jackson Harper <jackson@ximian.com>
17474 * TabPage.cs: Ignore setting of Visible, and add an internal
17475 method for setting the controls visibility. TabPage's Visible
17476 property is a little strange on MS, this seems to make us
17477 compatible, and fixes cases where people set all the tab pages to
17479 * TabControl.cs: Use the new internal setting on tab pages
17482 2006-10-03 Mike Kestner <mkestner@novell.com>
17484 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
17486 2006-10-03 Mike Kestner <mkestner@novell.com>
17488 * ListView.cs : use is_visible instead of Visible to check if
17489 scrollbars should be placed/sized. Also some max_wrap_width
17490 love for LargeIcon view. [Fixes #79533]
17492 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
17495 Make set_TextAlign() do actually update the align. Fixed #78403.
17497 2006-10-03 Chris Toshok <toshok@ximian.com>
17499 * DataGrid.cs: fix a crash when switching datasources if the
17500 vertical scrollbar is at someplace other than Value = 0. Also,
17501 reduce the number of recalculation passes we do in SetDataSource
17504 2006-10-03 Jackson Harper <jackson@ximian.com>
17506 * TextBoxBase.cs: Move the if value the same bail check up, we
17507 don't want to empty the document if it is already empty, this
17508 seems to severly mess up the caret. TODO: I should probably fix
17509 the empty statement to update teh caret somehow.
17511 2006-10-03 Chris Toshok <toshok@ximian.com>
17513 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
17514 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
17515 reflection, an internal row type, properties on said type, etc.)
17516 will work with our datagrid. Fixes #79531.
17518 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17520 * FileDialog.cs: Don't crash if a path is not accessible
17521 (System.UnauthorizedAccessException). Fixes #79569.
17522 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
17523 a ':' too. Return unknown icon for those paths/files.
17525 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
17527 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
17528 GetContainerControl returns null.
17530 2006-10-02 Chris Toshok <toshok@ximian.com>
17532 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
17533 call to XGetWindowAttributes instead of "handle". fixes an X
17534 error using notifyicon after the NotifyIconWindow to Form base
17537 2006-10-02 Chris Toshok <toshok@ximian.com>
17539 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
17540 server grab and looping we need to do to get down to the most
17541 deeply nested child window.
17542 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
17543 QueryPointer again after the WarpPointer so we can generate a
17544 proper (fake) MotionNotify event to be enqueued in the destination
17546 (GetCursorPos): call QueryPointer.
17550 2006-10-02 Jackson Harper <jackson@ximian.com>
17552 * NotifyIcon.cs: Derive the notify icon from a form, so things
17553 like FindForm work on it.
17554 - Swallow the WM_CONTEXTMENU message, since that is generated on
17555 mouse down, and context menu is a mouse up kinda guy. I believe
17556 the correct fix here is probably to make the notify icon entirely
17557 NC area, but this seems to work fine for anyone not manipulating
17560 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
17562 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
17563 ToolStripItemCollection.cs, ToolStripLabel.cs,
17564 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
17565 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
17566 Initial implementation.
17567 * TextRenderer.cs: Provide padding to MeasureText.
17569 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
17571 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
17572 of ButtonBaseAccessibleObject. Fix bug #79552.
17574 2006-10-02 Jackson Harper <jackson@ximian.com>
17576 * MdiWindowManager.cs: When maximizing use the containers client
17577 rect, not it's bounds, so nc area is accounted correctly.
17578 - Use the parent form's size for the menu position, since the
17579 client isn't always the full form size.
17581 2006-10-01 Chris Toshok <toshok@ximian.com>
17583 * ScrollableControl.cs: make sure neither right_edge or
17584 bottom_edge are < 0, since they're used as LargeChange for the
17585 horiz/vert scrollbars respectively. Fixes #79539.
17587 2006-10-01 Chris Toshok <toshok@ximian.com>
17589 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
17590 the xplatuix11 code can cause us to destroy/recreate our handle.
17594 - this code can be invoked many times for the same Hwnd. Make
17595 sure we only destroy the client window once (the first time this
17596 method is called). This fixes bug #79544.
17597 - Remove the call to the improperly bound XSync. why we had two
17598 bindings to this, I will never know, but this call resulted in
17599 events being discarded from the queue(!).
17600 - correct a misunderstanding of _XEMBED_INFO - the second atom is
17601 not our current state but the state we wish to be in. So, 0 if
17602 we don't want to be mapped. Change it to 1.
17603 (SystrayRemove): The XEMBED spec makes mention of the fact that
17604 gtk doesn't support the reparent of client windows away from the
17605 embedder. Looking at gtksocket-x11.c seems to agree with this.
17606 The only avenue we have for removing systray icons is to destroy
17607 them. We don't want the handle to go away for good, though, so
17608 call InternalRecreateHandle on the NotifyIconWindow. Fixes
17611 2006-10-01 Chris Toshok <toshok@ximian.com>
17613 * Form.cs (WndProc): inline the native_enabled variable usage into
17614 the cases in which it's used. Fixes #79536.
17616 2006-09-29 Mike Kestner <mkestner@novell.com>
17618 * ListView.cs : toggle the selection state for ctrl clicks in
17619 multiselect mode. [Fixes #79417]
17621 2006-09-29 Mike Kestner <mkestner@novell.com>
17623 * ListView.cs : kill CanMultiSelect and refactor the selection
17624 code to support multiselection in the absence of mod keys. Steal
17625 arrow/home/end keys by overriding InternalPreProcessMessage to
17626 restore regressed keynav behavior.
17629 2006-09-29 Jackson Harper <jackson@ximian.com>
17631 * MdiClient.cs: Repaint the titlebars when the active window is
17634 2006-09-29 Chris Toshok <toshok@ximian.com>
17636 * Application.cs: when entering a runloop with a modal, make sure
17637 the hwnd is enabled. Fixes #79480.
17639 2006-09-29 Chris Toshok <toshok@ximian.com>
17641 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
17642 when ListManager.CanAddRows == false, bump us back one.
17644 * DataGridColumnStyle.cs (ParentReadOnly): remove the
17645 listmanager.CanAddRows check. This makes ArrayLists uneditable
17646 using a datagrid, which is not right.
17647 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
17648 is an IEditable, but call property_descriptor.SetValue regardless.
17651 2006-09-29 Chris Toshok <toshok@ximian.com>
17653 * DataGridBoolColumn.cs: we need to test equality in the face of
17654 possible null values (as is the case with the default NullValue).
17655 This patch keeps us from crashing in that case.
17657 2006-09-29 Jackson Harper <jackson@ximian.com>
17659 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
17660 here, since it will get called for every node collection in the
17661 tree. This is now done in the treeview once the sorting is
17663 * TreeView.cs: Recalculate the visible order, and update the
17664 scrollbars after sorting, set the top nope to the root so that the
17665 recalc actually works.
17667 2006-09-29 Chris Toshok <toshok@ximian.com>
17669 * LinkLabel.cs: more handling of the default link collection in
17670 the face of LinkArea manipulation. The default link collection
17671 contains 1 element (start=0,length=-1). If the user sets LinkArea
17672 to anything and the links collection is the default, clear it.
17673 Then only add the link if its nonempty. Fixes #79518.
17675 2006-09-29 Chris Toshok <toshok@ximian.com>
17677 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
17678 piece correctly when we hit a '\n'. Fixes #79517.
17680 2006-09-29 Chris Toshok <toshok@ximian.com>
17682 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
17683 change the binding of gdk_init_check to take two IntPtr's, and
17684 pass IntPtr.Zero for both of them. Fixes #79520.
17686 2006-09-29 Mike Kestner <mkestner@novell.com>
17688 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
17691 2006-09-28 Jackson Harper <jackson@ximian.com>
17693 * XplatUIX11.cs: When translating NC messages make sure we go from
17694 whole window to screen, not client window to screen.
17695 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
17696 method doesn't exist
17697 - Skip over controls that aren't forms when arranging.
17699 2006-09-28 Jackson Harper <jackson@ximian.com>
17701 * XplatUIWin32.cs: Clip the rect to the parent window.
17702 * XplatUIStructs.cs: Add clipping modes struct.
17703 * InternalWindowManager.cs: New private method that factors title
17704 bar heights in when calculating the pos of an NC mouse message.
17705 - Use SendMessage to force a paint when the form's size is changed
17706 instead of painting the decorations immediately.
17707 - Don't let the NC button click messages get to DefWndProc,
17708 because they will attempt to handle windowing themself, and this
17709 messes up z-order (it will put them in front of the scrollbars).
17710 * XplatUIX11.cs: Make sure that we don't reset window managers if
17711 we already have one (ie the window is an MDI window).
17713 2006-09-28 Chris Toshok <toshok@ximian.com>
17715 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
17716 menu code really needs going over.
17718 2006-09-27 Chris Toshok <toshok@ximian.com>
17720 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
17721 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
17722 window is maximizable. So, we need to make sure that even if we
17723 clear the border/wm frame of those functions, they're still
17724 available (basically, we remove the decoration without removing
17725 the function). Half the fix for #79338.
17727 2006-09-27 Chris Toshok <toshok@ximian.com>
17729 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
17732 2006-09-27 Chris Toshok <toshok@ximian.com>
17734 * Splitter.cs: reorder things a bit so that we don't actually
17735 draw/move the splitter until after calling OnSplitterMoving. This
17736 lets users cancel/disallow the movement by explicitly setting
17737 event.SplitX/SplitY. Fixes #79372.
17739 2006-09-27 Jackson Harper <jackson@ximian.com>
17741 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
17742 because it is most likely on a window being destroyed, and that
17743 will give us an X11 error.
17745 2006-09-27 Chris Toshok <toshok@ximian.com>
17747 * PropertyGridView.cs: half of the fix for #78190. Clicking on
17748 the dropdown button now toggles between showing and hiding the
17749 dropdown. Also, get rid of dropdown_form_showing and just use
17750 dropdown_form.Visible. We still don't do a grab, but I'll leave
17751 that part to someone who has handled Capture-fu before.
17753 2006-09-27 Chris Toshok <toshok@ximian.com>
17755 * DataGrid.cs: return false if alt isn't pressed when '0' is
17756 pressed. this keeps the '0' key from being swallowed, and fixes
17759 2006-09-27 Chris Toshok <toshok@ximian.com>
17761 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
17762 Calling Refresh (in response to a scrollbar event) screws up the
17763 scrollbar painting. Fixes bug #78923.
17765 2006-09-27 Chris Toshok <toshok@ximian.com>
17767 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
17768 then insert into hashtable" blocks threadsafe.
17770 2006-09-27 Chris Toshok <toshok@ximian.com>
17772 * MessageBox.cs (CreateParams): the styles should be |'ed with our
17773 baseclass's, since otherwise the
17774 ControlBox/MinimizeBox/MaximizeBox assignments above have no
17775 effect. This gets the close button back in messageboxes.
17777 2006-09-27 Chris Toshok <toshok@ximian.com>
17779 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
17780 flag, not just != 0. this makes flags that are actually multiple
17781 bits (like WS_CAPTION) work. fixes bug #79508.
17783 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
17785 * PageSetupDialog.cs: add support for getting and settings the
17786 paper size, source and orientation.
17788 2006-09-26 Chris Toshok <toshok@ximian.com>
17790 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
17791 and caption == "", we need to remove the resize handles as well as
17794 * Control.cs (set_Text): turns out that setting Text on a form
17795 should change the WM styles on the window, since if ControlBox ==
17796 false, the only way to get a window border is to have a non-""
17797 Text property. check winforms/forms/text.cs for an example. so,
17798 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
17799 update both window styles and title. This fixes a lot of dialogs
17800 (including the preferences dialog in MonoCalendar.)
17802 2006-09-26 Chris Toshok <toshok@ximian.com>
17804 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
17805 control isn't a Form), call Win32ShowWindow to hide the window,
17806 but don't update the control Visible property. When we reparent
17807 back to a parent control, call SetVisible in order for the
17808 window's visibility to be reinstated.
17810 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
17813 * Control.cs (ControlCollection.Remove): remove that value.Hide()
17814 call for good, since it breaks MonoCalendar (and other things I'm
17815 sure.) Also, set all_controls to null *after* the owner calls,
17816 which end up regenerating it.
17817 (ChangeParent): allow new_parent to be == null, passing
17818 IntPtr.Zero down to XplatUI.
17820 this fixes #79294 the right way.
17822 2006-09-26 Mike Kestner <mkestner@novell.com>
17824 * GridEntry.cs : internal SetParent method.
17825 * PropertyGrid.cs : attach to property changed on the proper
17826 target if we have a hierarchical grid with subobjects. Setup
17827 GridItem.Parent for hierarchical items.
17828 * PropertyGridView.cs : Set value on the correct target for
17829 hierarchical grids. [Fixes #78903]
17831 2006-09-26 Chris Toshok <toshok@ximian.com>
17833 * Control.cs (ChildNeedsRecreating): this should return true if
17834 either we're being recreated and the child is in our list, or our
17835 parent is waiting for our recreation.
17837 2006-09-26 Chris Toshok <toshok@ximian.com>
17839 * Control.cs (ControlCollection.Remove): reinstate the
17840 value.Hide() call as suggested in bug #79294.
17842 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
17844 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
17845 coordinates (versus a relative move).
17847 2006-09-26 Chris Toshok <toshok@ximian.com>
17849 * Control.cs: rework child recreation a little bit. It turns out
17850 that we race between the DestroyNotify the WM_DESTROY message. If
17851 the parent gets its DestroyNotify before the child gets the
17852 WM_DESTROY message, the child ends up not recreating (since the
17853 parent finishes its recreation on DestroyNotify, and the child
17854 checks ParentIsRecreating.)
17856 So, instead we store off a list of all the child controls which
17857 need to be recreated when the parent control starts to recreate
17858 itself. Then, when child controls get their WM_DESTROY message we
17859 check to see if they're in the parent's pending recreation list,
17860 and if so, we recreate. This removes all dependency on ordering
17861 from the code and fixes the initial MonoCalendar upgrade dialog.
17863 2006-09-26 Jackson Harper <jackson@ximian.com>
17865 * TextControl.cs: Use the Line to get the length of the line,
17866 since soft line breaks can change the end line.
17868 2006-09-26 Chris Toshok <toshok@ximian.com>
17870 * Control.cs (ControlCollection.AddImplicit): don't add the
17871 control again if it's already in one of our lists. This keeps us
17872 from adding controls over and over again for comboboxes when their
17873 handle gets recreated (as the combobox adds implicit controls in
17874 OnHandleCreated). Fixes the X11 errors in bug #79480.
17876 2006-09-26 Jackson Harper <jackson@ximian.com>
17878 * TextControl.cs: When deleting characters make sure that any
17879 orphaned zero lengthed tags get deleted.
17880 - Fix ToString for zero lengthed tags.
17882 2006-09-25 Jackson Harper <jackson@ximian.com>
17884 * TextControl.cs: When getting a tag at the location there can be
17885 multiple tags at the same spot, these are 0-lengthed tags that
17886 appear when extra formatting has been stuck in a location. We
17887 need to pull out the last of these 0 lengthed tags.
17889 2006-09-25 Jackson Harper <jackson@ximian.com>
17891 * TextControl.cs: Fix print out in debug method.
17892 * TextBoxBase.cs: When text is set bail if we are setting to the
17895 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
17897 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17898 It is now possible to change the selected index in a FontXXXListBox
17899 with the up and down arrow keys from the FontXXXTextBoxes.
17900 Also, send the FontXXXTextBox mouse wheel event to the corresponding
17901 FontXXXListBoxes to match ms.
17903 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
17905 * SystemInformation.cs: Return a clone of the theme's MenuFont because
17906 anyone can dispose it, anytime. All other properties returns enums,
17907 structs or basic types so they don't need such tricks.
17909 2006-09-22 Jackson Harper <jackson@ximian.com>
17916 * XplatUIDriver.cs: Update interface to add a primary selection
17917 flag, so the driver can use the primary selection buffer if
17919 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17921 * RichTextBox.cs: We need to supply the data object to paste now
17922 (so we can choose to supply CLIPBOARD or PRIMARY).
17923 * TextBoxBase.cs: Supply data object to paste (see above).
17924 - Middle click uses the primary selection data object.
17926 2006-09-21 Chris Toshok <toshok@ximian.com>
17928 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17929 of SetWMStyles. It's still a rat's nest and is largely
17930 order-dependent which I dislike immensely. This also fixes the X
17931 button disappearing from toplevel forms.
17933 2006-09-21 Mike Kestner <mkestner@novell.com>
17935 * ListBox.cs: move Jordi's click/dblclick raising code to the
17938 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
17940 * ListBox.cs: Fixes 79450
17942 2006-09-21 Mike Kestner <mkestner@novell.com>
17944 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17945 to deal with people updating the TreeNodeCollection after the tree
17946 is disposed. "Fixes" 79330.
17948 2006-09-20 Jackson Harper <jackson@ximian.com>
17950 * TextControl.cs: Push the cursor record onto the undo stack
17951 before the delete action. This fixes 78651.
17953 2006-09-20 Jonathan Chambers <joncham@gmail.com>
17955 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17956 CreateParams. Fixes 79329.
17958 2006-09-19 Chris Toshok <toshok@ximian.com>
17960 * XplatUIX11.cs: a couple of blanket code massage passes to clean
17961 things up a bit. First, get rid of the NetAtoms array (and the NA
17962 enum), and just embed the atoms as static fields. Also, add a
17963 couple of functions (StyleSet and ExStyleSet) to clean up all the
17964 bitmask testing of styles.
17966 * X11Structs.cs: remove the NA enum, not needed anymore.
17968 2006-09-19 Chris Toshok <toshok@ximian.com>
17970 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17971 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
17972 added cleanup to get MessageBox titles appearing again, which were
17973 broken by my earlier fix for caption-less/ControlBox-less windows.
17975 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
17977 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17978 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17979 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17980 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17981 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17982 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17983 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17984 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17985 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17986 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17987 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17989 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17990 ToolStripButton.cs: Stubs needed for above.
17991 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17993 2006-09-15 Chris Toshok <toshok@ximian.com>
17996 - make the MessageQueues hashtable Synchronized.
17998 - SendMessage: if the Hwnd is owned by a different thread, use the
17999 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18000 thread. Fixes bug #79201.
18002 2006-09-15 Chris Toshok <toshok@ximian.com>
18004 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
18005 ControlBox == false, we disallow maximize/minimize/close. If the
18006 form Caption is "" we also disallow move (and get rid of the Title
18007 decoration). Unfortunately, regardless of how things are set,
18008 we're stuck with the Title and WM menu.
18010 2006-09-15 Chris Toshok <toshok@ximian.com>
18012 * Application.cs: add locking around the static message_filters
18013 ArrayList, part of #79196.
18015 2006-09-15 Chris Toshok <toshok@ximian.com>
18017 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18018 Form.ControlBox == false, the window has no titlebar nor resize
18019 handles. fixes bug #79368.
18021 2006-09-15 Chris Toshok <toshok@ximian.com>
18023 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18024 >= 0. Fixes bug #79370.
18026 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
18027 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18029 Add properties: LayoutEngine, Margin, DefaultMargin.
18030 Add method: GetPreferredSize.
18031 Move layout logic from PerformLayout to layout engines.
18033 2006-09-13 Chris Toshok <toshok@ximian.com>
18035 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
18036 fix for #79326 broke #78718, so this change addresses that.
18038 - in SendWMDestroyMessages remove the call to
18039 CleanupCachedWindows, since we might be recreating the control and
18040 need to maintain the references to right Hwnd handles. Also, set
18041 the zombie flag to true for each of the children in the hierarchy
18042 instead of calling hwnd.Dispose. This will cause GetMessage to
18043 ignore all events for the window except for DestroyNotify.
18045 - In GetMessage, ignore messages except for DestroyNotify for
18048 * Control.cs: revert the is_recreating fix from the last
18049 ChangeLog. It's definitely "right", but it breaks switching from
18050 an MDI form to a non-MDI form. Will need to revisit that.
18052 * Hwnd.cs: add a zombie flag, which means "the
18053 client_window/whole_window handles are invalid, but we're waiting
18054 for the DestroyNotify event to come in for them". Set the flag to
18055 false explicitly if setting WholeWindow/ClientWindow, and also
18058 2006-09-13 Chris Toshok <toshok@ximian.com>
18060 * XplatUIX11.cs: rework window destruction slightly.
18062 - when destroying the windows associated with a control, we don't
18063 need 2 separate XDestroyWindow calls. Just the one for the
18064 whole_window (or for client_window if whole_window is somehow
18065 IntPtr.Zero -- can this happen?) is enough.
18067 - reworked SendWMDestroyMessages slightly, so we always dispose
18068 the child control hwnd's after sending the messages.
18070 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
18071 the two places it was used (one was even using hwnd.Handle and the
18072 other hwnd.client_window. ugh), adding another call in
18073 SendWMDestroyMessages. We need this new call because now the
18074 DestroyNotify events in the queue will be ignored for the child
18075 controls (as their hwnd's were disposed, and the window id's
18076 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
18078 - this fixes bug #79326.
18080 2006-09-13 Chris Toshok <toshok@ximian.com>
18082 * Control.cs: don't always set is_recreating to false at the end
18083 of RecreateHandle, since sometimes we're not done (and won't be
18084 until WndProc handles the WM_DESTROY message). Also, set
18085 is_recreating to false in the WM_DESTROY handling code. Part of
18086 the fix for bug #79326.
18088 2006-09-13 Miguel de Icaza <miguel@novell.com>
18090 * X11DesktopColors.cs: Start the droppage of debugging messages.
18092 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
18094 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
18096 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
18098 2006-09-12 Chris Toshok <toshok@ximian.com>
18100 * DataGrid.cs (get_ListManager): if the list_manager is null, try
18101 to create it using SetDataSource. Fixes bug #79151.
18103 2006-09-11 Chris Toshok <toshok@ximian.com>
18105 * XEventQueue.cs: add a DispatchIdle property.
18107 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
18108 either the queue is null, or the queue has DispatchIdle set to
18110 (DoEvents): set queue.DispatchIdle to false around the
18111 peek/translate/dispatch message loop in this method. This keeps
18112 Application.Doevents from emitting idle events. Part of the fix
18115 2006-09-11 Chris Toshok <toshok@ximian.com>
18117 * DataGrid.cs (set_DataSource): make this work for both the
18118 winforms/datagrid test and ReportBuilder. It seems as though when
18119 we've created a ListManager (or maybe it's if we have a
18120 BindingContext?), when we set the DataSource it clears the
18121 DataMember to "". otherwise we reuse the datamember. Fixes bug
18124 2006-09-11 Chris Toshok <toshok@ximian.com>
18126 * XplatUIX11.cs: deal with queue being null, which happens in all
18127 the Clipboard functions. Fixes one of the two problems mentioned
18130 2006-09-11 Chris Toshok <toshok@ximian.com>
18132 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
18133 button on various spots (including outside the menu) works closer
18134 to MS, and doesn't crash. Fixes #79343.
18136 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
18138 * ListView.cs: Do not initialize item_sorter in init. To match MS,
18139 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
18140 and the internal comparer is set. When a new ListViewItemSorter is set,
18141 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
18142 was specified. No further processing is necessary if SortOrder is set
18143 to it's current value. If Sorting is modified to None, and View is
18144 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
18145 (either custom or our internal ItemComparer) to null, on 1.0 profile
18146 only set item_sorter to null if its our internal IComparer. If Sorting
18147 is modified to Ascending or Descending, then use our internal IComparer
18148 if none is set, and if the current IComparer is our internal one then:
18149 on 2.0 profile always replace it with one for new Sorting, and on 1.0
18150 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
18151 Enum.IsDefined to verify whether a valid View value is specified in
18152 its setter. Automatically sort listview items when listview is
18153 created. In Sort, do nothing if ListView is not yet created, or if
18154 no item_sorter is set (no Sorting was set, Sorting was explicitly set
18155 to None or ListViewItemSorter was set to null). Added Sort overload
18156 taking a bool to indicate whether the ListView should be redrawn when
18157 items are sorted (we use this in ListViewItemCollection to avoid double
18158 redraws). Modified our internal IComparer to take the sort order into
18159 account. In Add and AddRange methods of ListViewItemCollection, also
18160 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
18161 view), but use overload with noredraw option to avoid double redraw.
18162 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
18163 true when View is Tile, and do the same when attempting to set View to
18164 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
18165 for selected/checked indices, as it involves overhead when sorting is
18166 done while these collections are not used all that often. Instead
18167 we'll build the indices on demand. Modified IList implementation of
18168 CheckedIndexCollection to use public methods if object is int.
18169 Modified CheckedListViewItemCollection to hide checked items if
18170 ListView.CheckBoxes is false. Removed LAMESPEC remark in
18171 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
18172 IList implementation in SelectedIndexCollection to use public methods
18173 if object is int. Modified SelectedListViewItemCollection to hide
18174 selected items if listview is not yet created.
18175 * ListViewItem.cs: CheckedIndices list no longer needs to be
18176 maintained separately (see ListView changes). Also clone font, fixes
18179 2006-09-11 Mike Kestner <mkestner@novell.com>
18181 * ComboBox.cs: if we are updating the contents of the currently
18182 selected index, refresh the control or the textbox selection.
18185 2006-09-11 Mike Kestner <mkestner@novell.com>
18187 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
18188 the 'specified' logic has been moved there. This seems like a bug
18189 in Control.cs, since our current SetBoundsCore completely ignores
18190 the specified parameter. Peter's commit seems to indicate that is
18191 the way the MS control implementation works. [Fixes #79325]
18193 2006-09-10 Jonathan Chambers <joncham@gmail.com>
18195 * XplatUI.cs: Set default_class_name to be composed
18196 of current domain id. This allows MWF to be loaded in multiple
18199 2006-09-09 Miguel de Icaza <miguel@novell.com>
18201 * X11Keyboard.cs: If we are unable to obtain the input method, do
18202 not call CreateXic to create the input context. Should fix
18205 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
18207 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
18208 Simplified gnome support by adding more pinvokes to get the
18209 icon for a file or mime type.
18211 2006-09-08 Jackson Harper <jackson@ximian.com>
18213 * MenuAPI.cs: Deslect popup context menu items before closing the
18214 window, so that you don't see the previously selected item
18215 selected when you reopen the menu.
18216 * TextControl.cs: Update the cursor position even if we don't have
18217 focus. This fixes typing in things like the ComboBox. I'm not
18218 totally sure we should always set the visibility if we don't have
18219 focus, but couldn't find any corner cases where the cursor showed
18220 up when it shouldn't.
18222 2006-09-08 Chris Toshok <toshok@ximian.com>
18224 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
18225 our arrays are length 256. & 0xff before indexing. Fixes the
18226 crash in bug #78077.
18228 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18230 * ThemeWin32Classic.cs:
18231 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
18232 is true. Handle that check box too.
18234 2006-09-07 Chris Toshok <toshok@ximian.com>
18236 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
18239 2006-09-07 Chris Toshok <toshok@ximian.com>
18241 * Control.cs: in set_BackColor only do the work if
18242 background_color != value.
18244 * XplatUIX11.cs: move the clearing of invalid areas (both client
18245 and nc) to the same block of code where we set (nc_)expose_pending
18246 to false. That is, move it from PaintEventEnd to PaintEventStart,
18247 so things that cause invalidates from within OnPaint will trigger
18248 another call to OnPaint. Fixes bug #79262.
18250 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
18252 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
18253 * FileDialog.cs: Fix typo
18255 2006-09-07 Jackson Harper <jackson@ximian.com>
18257 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
18258 for tab pages if they have any.
18260 2006-09-06 Mike Kestner <mkestner@novell.com>
18262 * Splitter.cs: use the "current" rect when finishing drag handle
18263 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
18265 2006-09-06 Mike Kestner <mkestner@novell.com>
18267 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
18268 support offset splitters. [Fixes #79298]
18270 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
18272 * Mime.cs: Fixed a bug that could override the global mime type
18275 2006-09-05 Jackson Harper <jackson@ximian.com>
18277 * TabControl.cs: Better calculation method for setting the slider
18278 pos. Prevents crashes on really wide tabs.
18279 - Draw Image on tab pages if an image list is used.
18281 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18283 * MonthCalendar.cs: When Font changes, the Size should be
18284 updated to fit the new font's space requirements.
18286 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
18288 * ListBox.cs: If the items are cleared with Items.Clear set
18291 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18293 * MonthCalendar.cs: Handle arrow keys as input keys. Also
18294 fire DateChanged event instead of DateSelected event when
18295 the date was changed by keyboard interaction.
18297 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18299 * DateTimePicker.cs: Handle DateChanged for the associated
18300 month_calendar control, and set month_calendar.Font from
18301 OnFontChanged method, as well as resize the height of the
18302 control when needed. Make PreferredHeight proportional.
18304 2006-09-01 Chris Toshok <toshok@ximian.com>
18306 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
18309 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
18311 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
18313 * FileDialog.cs: Set ClientSize instead of window size, to allow space
18314 for decorations (Fixes #79219)
18316 2006-09-01 Mike Kestner <mkestner@novell.com>
18318 * ComboBox.cs: first stab at sorting plus some selection handling
18319 fixes to bring us more in line with MS behavior. Also switches back
18320 to index based selection. Alternative patches for index-based
18321 selection were provided by Jackson Harper, Carlos Alberto Cortez,
18322 and latency@gmx.de on bug 78848. I assume they were similar to this
18323 code I've had simmering in my tree forever.
18326 2006-09-01 Chris Toshok <toshok@ximian.com>
18328 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
18329 when setting list position guard against ending up with a -1 index
18330 (the other part of the fix for #78812). Should probably make sure
18331 we don't need the analogous fix in the ItemDeleted case.
18334 - in SetDataSource, work around the fact that the way
18335 OnBindingContextChanged is invoked will cause us to re-enter this
18336 method. I'll remove the hack once I investigate
18337 OnBindingContextChanged.
18339 - fix the logic in set_DataSource and set_DataMember (basically
18340 what to do if the other of the two is null.)
18342 - in OnListManagerItemChanged, we need to take into account the
18343 edit row when deciding whether or not to call RecreateDataGridRows
18344 (part of the fix for #78812).
18346 2006-09-01 Jackson Harper <jackson@ximian.com>
18348 * Splitter.cs: Don't do anything if there is no control to affect
18349 (prevents us from crashing in weird tet cases).
18350 * TreeView.cs: Bounding box for the mouse movement reverting
18351 focus/selection back to previously selected node. This matches
18352 MS, and makes the tree a lot more useable.
18353 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
18354 use clipping so they are not drawn. This fixes when the control
18355 is set to have a transparent background, or if it was over an
18358 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
18360 * MimeIcon.cs: Improved handling for reading default icons when
18361 using gnome (2.16 made it necessary). Check and read svg icons
18362 first, then 48x48 and then 32x32 icons.
18364 2006-08-31 Chris Toshok <toshok@ximian.com>
18366 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
18369 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
18370 ProcessKeyPreview. Fixes part of #77806.
18372 * DataGrid.cs: big patch.
18374 - revert the queueing up of DataSource/DataMember if inside
18375 BeginInit/EndInit calls. That's not the way the datagrid achieves
18376 its delayed databinding. Instead, call SetDataSource in
18377 OnBindingContextChanged. This mimic's MS's behavior, and fixes
18380 - Also, it wasn't mentioned in #78811, but the test case exhibits
18381 behavior that was lacking in our datagrid implementation - Columns
18382 that have mapping names that don't exist in the datasource's
18383 properties aren't shown. Yuck. To fix this I added the bound
18384 field to the column style, and basically any calculation to figure
18385 out anything about columns uses a loop to find the bound columns.
18386 still need to investigate if I can cache an array of the bound
18387 columns or if the indices must be the same.
18389 - When setting CurrentCell, we no longer abort if the cell being
18390 edited was in the add row. This fixes the other part of #77806.
18392 - The new code also fixes #78807.
18394 * ThemeWin32Classic.cs: perpetrate the same disgusting
18395 column.bound field hack, and only render bound fields.
18397 2006-08-31 Chris Toshok <toshok@ximian.com>
18399 * DataGridColumnStyle.cs: add bound field. this field is true if
18400 the datasource has a property corresponding to the mapping name.
18402 * DataGridTableStyle.cs: set the bound field on the column styles
18403 depending on whether or not we have a column for that property.
18405 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
18407 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
18408 splitter control (fixes #79228)
18410 2006-08-31 Chris Toshok <toshok@ximian.com>
18412 * DataGridColumnStyle.cs: we need to delay the assignment of
18413 property descriptor until the last possible moment due to the lazy
18414 databinding stuff in the datagrid. Also, fix the exceptions
18415 thrown by CheckValidDataSource to match MS.
18417 2006-08-31 Jackson Harper <jackson@ximian.com>
18419 * Form.cs: When activated select the active control, if there is
18420 no active control, we select the first control.
18421 * XplatUIX11.cs: If there is no focus control when we get a
18422 FocusIn event, find the toplevel form and activate it. This
18423 occurs when you popup a window, it becomes the focus window, then
18424 you close that window, giving focus back to the main window.
18426 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18428 * MonthCalendar.cs:
18429 * ThemeWin32Classic.cs: Cache Font in bold style, as well
18430 as StringFormat with Center alignments in MonthCalendar,
18431 instead of creating new ones when drawing the control.
18432 Also, draw the month name in bold style.
18434 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
18437 - PerformLayout(): It would seem MS performs the fill even if the
18438 control is not visible (part of #79218 fix)
18439 - ResetBackColor(): Use the setter to reset the color, to allow
18440 overriders to catch the change.
18442 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
18443 - CreateHandle(): dito (part of $79218 fix)
18444 - Don't set an icon if we have a dialog
18445 * ScrollableControl.cs:
18446 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
18447 - ScrollIntoView(): No need to scroll if control is already visible
18448 (resolves fixme and fixes #79218)
18450 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18452 * MonthCalendar.cs: Change proportions in SingleMonthSize
18453 to match the aspect of the original control.
18455 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
18457 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
18458 get updated when they get maximized.
18460 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
18462 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
18464 2006-08-29 Chris Toshok <toshok@ximian.com>
18466 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
18468 2006-08-29 Jackson Harper <jackson@ximian.com>
18470 * TreeView.cs: Need to track selected node and highlighted node,
18471 they aren't always the same thing, when the mouse is down on a
18472 node it is hilighted, but not selected yet.
18473 - Do the HideSelection stuff right
18474 - Need to focus on rbutton mouse down. And redraw selection when
18475 right click is mouse upped.
18477 2006-08-29 Mike Kestner <mkestner@novell.com>
18479 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
18480 when SubItems.Count < Columns.Count. [Fixes #79167]
18482 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18484 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
18486 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
18488 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
18489 from X. Only send based on ConfigureNotify if we don't have the
18490 correct location in hwnd (if the window manager moved us)
18492 2006-08-28 Mike Kestner <mkestner@novell.com>
18494 * ListView.cs: remove a TODO.
18495 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
18496 [Fixes ListView part of #79166]
18498 2006-08-28 Mike Kestner <mkestner@novell.com>
18500 * ListView.cs: move wheel handler to parent since it is focused
18501 instead of the item_control now. [Fixes #79177]
18503 2006-08-28 Mike Kestner <mkestner@novell.com>
18505 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
18506 when the control is focused. [Fixes #79171]
18508 2006-08-28 Mike Kestner <mkestner@novell.com>
18510 * ListView.cs: size the item and header controls for empty and
18511 unscrollable views.
18512 * ThemeWin32Classic.cs: draw disabled backgrounds.
18515 2006-08-28 Chris Toshok <toshok@ximian.com>
18517 * Form.cs: remove unused "active_form" static field.
18519 * Hwnd.cs: lock around accesses to static windows collection.
18521 * Application.cs: lock threads in Exit ().
18523 2006-08-28 Chris Toshok <toshok@ximian.com>
18525 * NativeWindow.cs: lock around accesses to window_collection.
18527 2006-08-28 Chris Toshok <toshok@ximian.com>
18529 * Control.cs: err, fix this the right way, by locking on controls
18530 when using it. not by making it synchronized.
18532 2006-08-28 Chris Toshok <toshok@ximian.com>
18534 * Control.cs: make the static "controls" field synchronized, as it
18535 gets updated from multiple threads.
18537 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18539 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
18540 Prevent other threads from exiting when calling thread sets quit state.
18541 * XEventQueue.cs: Added PostQuitState property
18543 2006-08-27 Chris Toshok <toshok@ximian.com>
18545 * AsyncMethodData.cs: add a slot for the window handle.
18547 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
18548 window (the destination control's window, not the foster window).
18550 * Control.cs (BeginInvokeInternal): store the window's handle in
18551 the AsyncMethodData.
18554 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18557 - PostQuitMessage: Removed resetting S.D display handle, we might have
18558 another loop started after calling PostQuitMessage (Fixes #79119)
18559 - Created destructor to reset S.D handle
18561 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
18563 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
18565 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18567 * TextControl.cs (Insert): Update the caret position even if we don't
18568 have a handle yet, just don't call the driver in that case.
18569 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
18570 to the end of the new selection text (Fixes #79184)
18572 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18574 * Form.cs (Activate): Only activate if the handle is created)
18576 - Mark window as invisible when it's disposed
18577 - Check if window handle is created when setting window visible,
18578 instead of relying just on the is_created variable
18579 - Check if object is disposed when creating the control (Fixes #79155)
18581 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18583 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
18584 when allowing layout again. Otherwise we re-generate the anchoring
18585 distance to the border again and actually alter what the user wanted
18586 This is ugly, it'd be better if we used DisplayRectangle instead of
18587 ClientRectangle for Control.UpdateDistances, but that causes us to
18588 have other problems (initial anchoring positons would be wrong)
18591 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18594 - The size and location setters shouldn't go directly to
18595 SetBoundsCore, but to SetBounds, which triggers layout on the
18596 parent, then calls SetBoundsCore. (Related to fix for #78835)
18597 - SetBounds: Moved actual location update code into this function
18598 from SetBoundsCore, to match MS. Added call to PerformLayout if
18599 we have a parent (to trigger resizing of anchored parents if the
18600 child size has changed (see testcase for #78835)
18601 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
18603 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
18605 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18607 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
18608 System.Drawing when a toplevel window gets closed; there might
18609 be other toplevel windows belonging to the same app (Fixes #78052)
18611 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
18613 * FileDialog.cs: After reading FileDialog settings from mwf_config
18614 use Desktop prefix only if a real folder doesn't exist anymore.
18615 * FontDialog.cs: Added char sets.
18616 It is now possible to select the font, size or style with the
18619 2006-08-25 Kornél Pál <kornelpal@gmail.com>
18621 * PrintPreviewDialog.cs: Use assembly name constants.
18623 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18625 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
18626 scrollbar from whacking it's buttons)
18628 2006-08-24 Chris Toshok <toshok@ximian.com>
18630 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
18631 in this patch (aggregating setting Left/Top/Width/Height to
18632 setting Bounds on the scrollbars), but the crux of the fix is in
18633 Recalculate, where we scroll by the remaining scroll_position if
18634 we're hiding a scrollbar. The 2*$5 reward in the comment is
18637 2006-08-24 Jackson Harper <jackson@ximian.com>
18640 * MdiWindowManager.cs: If the form is made a non-mdi window we
18641 need to remove the form closed event so that closing forms works
18644 2006-08-24 Jackson Harper <jackson@ximian.com>
18646 * Control.cs: Make IsRecreating internal so that the driver can
18648 - Temporarily remove the Hide when controls are removed, its
18649 making a whole bunch of things not work because visibility isn't
18650 getting reset elsewhere correctly
18651 * Form.cs: Need to do a full handle recreation when the mdi parent
18653 * XplatUIX11.cs: If we are recreating handles don't dispose the
18654 HWNDs. What was happening is the handles were being recreated in
18655 SendWMDestroyMessages, but then flow continued on in that method
18656 and destroyed the new handles.
18658 2006-08-23 Jackson Harper <jackson@ximian.com>
18660 * Form.cs: MdiClient is always at the back of the bus
18661 * Control.cs: When the order of items in the collection is changed
18662 we need to reset the all_controls array
18663 - do the same sorta setup thats done when adding a control when a
18664 control is set on the collection.
18666 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18668 * TextBoxBase.cs (get_Text): Return an empty array if our document
18669 is empty (fixes #79052)
18671 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18673 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
18674 on WM_SYSCHAR messages (fixes #79053)
18676 2006-08-23 Chris Toshok <toshok@ximian.com>
18678 * DataGrid.cs: fix flickering when scrolling vertically.
18680 2006-08-23 Chris Toshok <toshok@ximian.com>
18682 * DataGrid.cs (EndEdit): only invalidate the row header when we
18685 2006-08-23 Chris Toshok <toshok@ximian.com>
18687 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
18688 methods. fixes the flicker when scrolling around.
18690 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18692 * FileDialog.cs: Making sure the control is created before we get a
18693 chance to use it with BeginInvoke (Fixes #79096)
18695 2006-08-23 Chris Toshok <toshok@ximian.com>
18697 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
18698 width to use when painting the rows.
18700 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
18703 - Throw ArgumentException if a negative value is passed to SelectionLength
18704 - Update the selection end if start is moved. end needs to be always
18705 after start. (Fixes #79095)
18706 - Track selection length; MS keeps the selection length even if start
18707 is changed; reset on all other operations affection selection
18709 2006-08-22 Jackson Harper <jackson@ximian.com>
18711 * TreeView.cs: Make sure both scrollbars get displayed and sized
18712 correctly when the other bar is visible.
18713 - Use the original clip rectangle for checking if the area between
18714 the two scrollbars is visible, not the viewport adjusted clipping
18717 2006-08-22 Jackson Harper <jackson@ximian.com>
18719 * Binding.cs: We don't use IsBinding because it requires the
18720 control to be created, which really shouldn't be necessary just to
18721 set a property on the control.
18723 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18725 * ComboBox.cs: Some CB.ObjectCollection methods must throw
18726 ArgumentNullReferenceException when the argument is null.
18728 2006-08-21 Jackson Harper <jackson@ximian.com>
18730 * Timer.cs: Track the thread that the timer is started in (NOT
18731 CREATED), this way messages for it will only be triggered on its
18733 * XEventQueue.cs: Track the timers here, this makes timers per
18735 * XplatUIX11.cs: The timers are moved to the XEventQueue.
18737 2006-08-19 Chris Toshok <toshok@ximian.com>
18739 * XplatUIX11.cs: after further communication with pdb, we get the
18740 best of both worlds. SetZOrder working for un-Mapped windows, and
18741 no X errors for un-mapped windows.
18743 2006-08-19 Chris Toshok <toshok@ximian.com>
18745 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
18746 as it was causing pdn toolbars to not have the correct stacking.
18748 2006-08-18 Mike Kestner <mkestner@novell.com>
18750 * ListView.cs : guard against negative ClientArea.Width in scrollbar
18751 calculation. Not sure why control should ever be setting a negative
18752 width though. Fixes #78931.
18754 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18756 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
18757 null items in ObjectCollection class.
18758 * ListBox.cs.: Likewise.
18760 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
18762 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
18763 as the base method in ThemeWin32Classic should work fine.
18766 2006-08-18 Jackson Harper <jackson@ximian.com>
18768 * Binding.cs: When validating if the value entered doesn't convert
18769 properly reset to the old value.
18770 * RadioButton.cs: Don't fire click when we get focus.
18772 2006-08-18 Jackson Harper <jackson@ximian.com>
18774 * FileDialog.cs: Paint the selection on the directory combobox the
18777 2006-08-17 Jackson Harper <jackson@ximian.com>
18779 * ErrorProvider.cs: Don't allow the error control to be selected.
18780 * Control.cs: Don't send the SetFocus messages, the control
18781 activation will do this, and if we do it blindly here validation
18784 2006-08-17 Jackson Harper <jackson@ximian.com>
18787 * ContainerControl.cs: Make validation events fire in the correct
18788 order. TODO: For some reason the first validation event is not
18791 2006-08-17 Mike Kestner <mkestner@novell.com>
18793 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
18795 2006-08-17 Mike Kestner <mkestner@novell.com>
18797 * ComboBox.cs : implement scroll wheel support for popped-down
18798 state. Fixes #78945.
18800 2006-08-17 Jackson Harper <jackson@ximian.com>
18802 * TreeView.cs: Specify treeview actions (old patch that didn't get
18803 committed for some reason).
18804 - Don't let the mouse wheel scroll us too far. Just want to make
18805 the bottom node visible, not scroll it all the ways to the top.
18807 2006-08-17 Jackson Harper <jackson@ximian.com>
18809 * XplatUIX11.cs: Mouse wheel events go to the focused window.
18811 2006-08-17 Mike Kestner <mkestner@novell.com>
18813 * ComboBox.cs : don't do mouseover selection in simple mode.
18815 2006-08-16 Jackson Harper <jackson@ximian.com>
18817 * Form.cs: Fire the closing events for all the mdi child windows
18818 when a window is closed. If the cancel args are set to true, the
18819 main window still gets the event fired, but it doesn't not close.
18820 * MdiWindowManager.cs: Do this closing cleanup in a Closed
18821 handler, instead of when the button is clicked, so cancelling the
18822 close works correctly.
18823 * ComboBox.cs: Send the mouse down to the scrollbar.
18825 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18827 * ListBox.cs: When passing 'null' to SelectedItem,
18828 set SelectedIndex to -1, to unselect items. This is the
18829 observed behaviour in .Net.
18831 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
18833 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
18834 MS flags saying there won't be any. (fixes #78800)
18835 * Control.cs (HandleClick): Made virtual
18837 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
18839 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
18840 cultures. Fixed bug #78399.
18842 2006-08-16 Jackson Harper <jackson@ximian.com>
18844 * Form.cs: Use the MdiClients MdiChildren property to access
18845 MdiChildren instead of creating the array from the child controls.
18846 * MdiClient.cs: Maintain a separate array of the mdi children, so
18847 that insertion order is maintained when the Z-order is changed.
18849 2006-08-16 Mike Kestner <mkestner@novell.com>
18851 * ListView.cs : add an ItemComparer and default to it for sorting.
18852 Fixes #79076, but sorting needs a complete overhaul to be compat with
18855 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18857 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
18859 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18861 * Hwnd.cs (Mapped): Properly traverse the tree
18863 2006-08-15 Chris Toshok <toshok@ximian.com>
18865 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
18866 pass manager.Current.GetType() to ParseData. It has to be the
18867 property type. So, hold off doing the ParseData until we're in
18868 SetPropertyValue where we know the type. This fixes the crash in
18869 #78821 but the textbox is still empty.
18871 2006-08-15 Chris Toshok <toshok@ximian.com>
18874 - when we're scrolling, only call Edit() again if the
18875 current cell is still unobscured. Fixes bug #78927.
18876 - when handling mousedown on a cell, ensure the cell is visible
18877 before calling Edit.
18878 - remove the properties from DataGridRow, and remove the
18879 DataGridParentRow class altogether.
18882 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18884 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18885 fire OnTextChanged by ourselves. There's no point calling base,
18886 we don't set the base value anywhere else. Fixes #78773.
18888 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18890 * ListBox.cs: Call CollectionChanged when modifying
18891 an item from Items indexer, to update the actual items
18894 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18896 * PrintDialog.cs: Small fixes for focus and a pair of checks,
18897 to match .Net behaviour.
18899 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18901 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18903 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18905 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18907 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18909 * MessageBox.cs: Prevent potential NRE exception.
18910 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18912 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18914 * MessageBox.cs: Calculate the owner of a messagebox, also make
18915 it topmost. Fixes #78753
18917 2006-08-14 Chris Toshok <toshok@ximian.com>
18919 * XplatUIX11.cs: A couple of fixes so that metacity will let us
18920 programmatically move windows. first, set the PPosition hint as
18921 well as the USPosition hint. Second include some code from pdb
18922 that sets the window type to NORMAL when we set the transient for
18923 hint. This is because, in the absence of a window type, metacity
18924 thinks any window with TransientFor set is a dialog, and refuses
18925 to let us move it programmatically. fascists.
18927 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18929 * XplatUIX11.cs: When setting normal hints, take into consideration
18930 an different hints previously set so we don't delete them (fixes #78866)
18932 2006-08-12 Chris Toshok <toshok@ximian.com>
18934 * ToolBarButton.cs: make Layout return a boolean, if something to
18935 do with the button's layout changed.
18938 - add another parameter to Redraw, @force, which all existing
18940 - make the Layout function return a boolean which is true if the
18941 layout has actually changed. Redraw now uses this (and @force)
18942 to determine when to invalidate. At present the only place
18943 where @force can be false is the call from OnResize, when
18944 background_image == null. So, resizing a toolbar when the
18945 layout doesn't change results in no drawing.
18947 2006-08-12 Chris Toshok <toshok@ximian.com>
18949 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
18950 the VScrollBar and HScrollbar reversed. oops.
18952 * DataGrid.cs: fix the logic that assigns sizes to the implicit
18953 scrollbars. we were assigning them twice (once in
18954 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18955 therefore causing two scrollbar resizes (and redraws?) to happen
18958 2006-08-12 Chris Toshok <toshok@ximian.com>
18960 * ToolBarButton.cs: redraw the entire button if the theme tells us
18963 * Theme.cs: add ToolBarInvalidateEntireButton.
18965 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18966 buttons, just the border.
18968 * ThemeNice.cs: redraw the entire toolbar button since we need to
18969 draw the highlight image.
18971 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18972 we need to redraw the entire button (not just the border).
18974 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18976 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18977 for vertical bars. Fixes the mismatches shown by #78513
18979 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
18981 * FileDialog.cs: If a saved/remembered path doesn't exist
18982 anymore, fall back to "Desktop".
18984 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18986 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18987 parent. It's apparently legal to not have one
18989 - SetZOrder: Don't try to set Z-Order on an unmapped window
18990 - CreateWindow: 0,0 are legal coordinates for a window. don't move
18991 it unless the coordinates are negative
18993 2006-08-10 Mike Kestner <mkestner@novell.com>
18995 * ListControl.cs: allow null for DataSource. Clear DisplayMember
18996 when setting to null per msdn docs. Fixes #78854.
18998 2006-08-10 Chris Toshok <toshok@ximian.com>
19000 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19001 flickering by setting a clip rectangle on the Graphics when we
19002 need to redraw just a particular menuitem. Also, rename "OnClick"
19003 to "OnMouseDown" to reflect what it actually is.
19005 * Form.cs: track the OnMouseDown change.
19007 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
19009 * CommonDialog.cs: Properly inherit the CreateParams from the form
19010 and only change what we need. Fixes #78865
19012 2006-08-10 Chris Toshok <toshok@ximian.com>
19014 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19015 flickering in flat mode (and most of the flickering in general) by
19016 only invalidating the button border (and not the entire rectangle)
19017 when the state changes. A couple of cases still flicker:
19018 ToggleButtons, and the dropdown arrow case when the user mouse
19021 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
19023 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19024 for german keyboards. Numlock state shouldn't affect the behaviour
19025 of the Del key. Fixes bug #78291.
19027 2006-08-10 Chris Toshok <toshok@ximian.com>
19029 * ListControl.cs: remove the items.Clear line from BindDataItems,
19030 as this is the first thing done by both subclasses in their
19031 SetItemsCore overrides. Also, add a ItemChanged handler, and when
19032 passed -1, refresh the list. This gets databinding working when
19033 the datasource is set on the list before the datasource is
19034 populated (as in wf-apps/ReportBuilder.)
19036 * ComboBox.cs: remove the argument to BindDataItems. This call
19037 should really go away, and be initiated by the ListControl code.
19039 * ListBox.cs: same.
19041 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19043 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
19044 if no data is in the document when the control is displayed
19046 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19048 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
19051 - PositionCaret: Allow positioning of caret but don't call methods
19052 requiring a handle if the window isn't created yet
19053 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
19054 - owner_HandleCreated: Don't position the caret, just update it's
19055 location. User might have already set a different position
19057 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19059 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
19060 windows. Screws up the returned coordinates for child windows.
19061 Fixes #78825. I'm hoping this doesn't break something, since the
19062 code was explicitly put in 8 months ago, but no bug was attached.
19063 Menus still seem to work properly.
19065 2006-08-08 Chris Toshok <toshok@ximian.com>
19067 * DataGrid.cs: make BeginInit/EndInit actually do what they're
19068 supposed to do - delay data binding until the EndInit call. Also,
19069 make the table style collection's CollectionChangeAction.Refresh
19072 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
19073 (with action = Refresh) when a consituent table's MappingName is
19076 2006-08-08 Chris Toshok <toshok@ximian.com>
19078 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
19079 Invalidate, since changing the text can change the size of the all
19082 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
19084 * Form.cs (AddOwnedForm): Still need to add the form to our listif
19085 we don't have it yet
19087 2006-08-08 Chris Toshok <toshok@ximian.com>
19089 * PrintControllerWithStatusDialog.cs: don't .Close() the status
19090 dialog, as this causes X errors later on, since we actually
19091 destroy the window. Instead, .Hide() it.
19093 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
19095 * ComboBox.cs: Added focus reflection for popup window
19097 - Removed transient setting for non-app windows for now, not sure it
19099 - Fixed logic checking if we have captions when deciding
19100 override_redirect, WS_CAPTION is two bits and a 0 check was not
19102 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
19105 - AddOwnedForm: Don't just add the form to the list, call the property
19106 to ensure the driver is informed about the ownership as well
19107 - CreateHandle: Set the TopMost status in the driver if we have an owner
19108 * XplatUI.cs: Fixed debug statement
19110 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
19111 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19112 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
19113 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
19114 TrackBarRenderer.cs: Make constructor private.
19115 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
19116 * ProfessionalColorTable.cs: Make properties virtual.
19118 2006-08-06 Duncan Mak <duncan@novell.com>
19120 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
19123 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19124 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19125 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
19126 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
19127 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
19128 Initial import of new 2.0 classes.
19130 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19131 * Application.cs: Add 2.0 VisualStyles properties.
19133 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
19134 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19135 XplatUIX11.cs: Create property to allow access to existing private
19136 variable "themes_enabled"
19138 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19140 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
19141 file size, as otherwise our class libraries fail using windows. Fixes
19144 2006-08-04 Jackson Harper <jackson@ximian.com>
19147 * XplatUIX11.cs: Move the toolwindow window manager creation into
19148 the X11 driver, this way on win32 we can let windows create/handle
19151 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19153 * PrintDialog.cs: Remove some redundant checks, add some others,
19154 clean some code, and move the focus to the text boxes when the
19155 values are incorrect.
19157 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
19159 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
19161 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
19163 * NumericUpDown.cs: Setting the Minimum and Maximum is now
19164 handled correctly. Fixes bug #79001.
19166 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19168 * PrintDialog.cs: The "Copies" numeric up down must have
19169 set the Minimum property to 1; only if the value is bigger
19170 than 1, activate "Collate" check box. This is the behaviour of .Net.
19171 Also modify the Document elements only if it is not null.
19173 2006-08-03 Jackson Harper <jackson@ximian.com>
19175 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
19176 length. (We have a larger array then actual node count).
19178 2006-08-03 Jackson Harper <jackson@ximian.com>
19180 * ComboBox.cs: Don't show selection by default.
19181 - The SelectAll isn't needed here, since the focus code should do
19183 - DDL style lists to manual selection drawing, so when they
19184 get/lose focus they have to invalidate.
19186 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
19188 * TextBoxBase.cs: Don't always show all selections by default.
19190 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
19191 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
19192 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
19193 Fixed various typos.
19195 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
19197 * Control.cs: Removing the controls in a ControlCollection with
19198 Clear now hides the controls as expected. Fixes bug #78804.
19200 2006-08-03 Jackson Harper <jackson@ximian.com>
19202 * Control.cs: Revert previous focus patch, it breaks reflector.
19204 2006-08-03 Jackson Harper <jackson@ximian.com>
19206 * ComboBox.cs: Cleanup selection and focus with the combobox.
19207 This also eliminates some duplicated keyboard code, since now
19208 everything is handled by the main class.
19209 - Make list selection work on mouse up instead of down, to match
19212 2006-08-02 Jackson Harper <jackson@ximian.com>
19214 * Control.cs: Setting focus needs to go through the whole
19215 selection mechanism.
19217 2006-08-02 Chris Toshok <toshok@ximian.com>
19219 * PrintPreviewDialog.cs: change MinimumSize to use
19220 base.MinimumSize so it works.
19222 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
19225 - UpdateCaret: Added sanity check in case caret isn't defined yet
19226 - Line.Delete: Now updating selection and caret markers if we're
19227 transfering a node (Properly fixes #78323)
19228 - SetSelectionEnd: Added sanity check
19229 * TextBoxBase.cs: Removed broken attempt to fix #78323
19231 2006-08-01 Chris Toshok <toshok@ximian.com>
19233 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
19234 Close() call is handled in Form, not here.
19236 2006-08-01 Chris Toshok <toshok@ximian.com>
19238 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
19241 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
19242 for sizes < 100% zoom. The code now aggressively attempts to keep
19243 from calling document.Print (), and tries not to use the scaling
19244 g.DrawImage whenever possible (it still does if you scale to >
19245 100%, since usually that involves huge images).
19247 * PrintPreviewControl.cs: hook up the close button.
19249 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
19250 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
19251 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
19252 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
19253 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
19254 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
19255 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
19256 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
19257 Removed [Serializable] for 2.0 Event Handlers.
19259 2006-07-31 Jackson Harper <jackson@ximian.com>
19261 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
19262 * TextControl.cs: Uncomment out the body of this method.
19264 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
19266 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
19269 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19271 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
19272 that embed TextBox and need selections visible even if textbox is not
19273 focused to enforce that behaviour.
19274 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
19277 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19280 - Added new SetSelectionStart/SetSelectionEnd overloads
19281 - Fixed viewport width assignment to be accurate
19282 - Adjusted alignment line shift calculations to allow cursor on right
19283 aligned lines to be always visible at the right border (like MS)
19285 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
19286 - TextBoxBase_SizeChanged: recalculating canvas on size changes
19287 - CalculateScrollBars: Use ViewPort size instead of window size, to
19288 properly consider space occupied by the border and scrollbars
19290 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
19291 calculations; no longer leaves artifacts
19292 - CaretMoved: Adjusted window scrolling to match MS and fixed several
19293 calculation bugs (Still missing right/center align calculations)
19295 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19297 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
19298 use of both scroll rect and clip rect, as they do the same.
19300 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
19302 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
19303 in the event handler (fixes #78912)
19305 2006-07-31 Chris Toshok <toshok@ximian.com>
19307 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
19308 grid.ListManager.Count, since grid.ListManager might be null.
19309 This of course begs the question "why are we drawing rows for a
19310 grid with no list manager (and therefor no rows)?" Fixes the
19311 crash in bug #78929.
19313 2006-07-31 Chris Toshok <toshok@ximian.com>
19315 * RelatedPropertyManager.cs: Don't always chain up to the parent
19316 ctor. instead, call SetDataSource if the parent's position is !=
19317 -1. Fixes the crash in #78822.
19319 2006-07-31 Chris Toshok <toshok@ximian.com>
19321 * DataGrid.cs (get_ListManager): use field instead of property
19322 accessors for datasource and datamember.
19323 (RowsCount): make internal again.
19324 (OnMouseDown): end edits before resizing columns/rows.
19325 (OnMouseUp): restart edits after resizing columns/rows.
19327 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
19329 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
19330 This fixes the situation where the last set cursor is displayed
19331 whenever the mouse is over scrollbars.
19333 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19335 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
19336 Document properties, as well as initial values.
19338 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
19340 * XplatUIWin32.cs (SetBorderStyle): Setting both border
19341 and ClientEdge results in a 3-pixel border, which is
19344 2006-07-28 Jackson Harper <jackson@ximian.com>
19346 * TreeNodeCollection.cs: Fix the clear method.
19347 - Fix the Shrink also
19349 2006-07-27 Jackson Harper <jackson@ximian.com>
19351 * TreeView.cs: Make sure the visible order is computed when we
19352 attempt to size the scrollbars (for trees that mess with the
19353 scrolling when they shouldn't.
19354 - Make sure to give the scrollbars valid values.
19356 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
19358 * XplatUIX11.cs: Move motion compression code to where it
19359 has less performance impact
19361 2006-07-26 Jackson Harper <jackson@ximian.com>
19363 * UpDownBase.cs: When the control is selected make the child
19364 controls non selectable, so that a click on them won't do a
19365 focus/unfocus cycle.
19366 - Don't give focus to the text box when the spinner is selected.
19367 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
19369 2006-07-26 Chris Toshok <toshok@ximian.com>
19371 * ThemeWin32Classic.cs: add print preview rendering. I'm not
19372 satisfied with this solution. If the bitmaps are small, we should
19373 just cache them in the PrintPreviewDialog and draw them here.
19374 Also, the layout is broken for the 2-up and 3-up cases.
19376 * Theme.cs: add PrintPReviewControlPaint.
19378 * PrintPreviewDialog.cs: first pass implementation.
19380 * PrintPreviewControl.cs: first pass implementation. No
19383 * PrintDialog.cs: only validate fields if that particular portion
19384 of the UI is enabled. Also, set the document's controller to a
19385 PrintControllerWithStatusDialog wrapping the document's print
19388 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
19389 bring up a SaveFileDialog (i hope we don't want to match the
19390 behavior of the crappy windows file entry) and set the
19391 PrinterSettings.PrintFileName accordingly.
19393 2006-07-26 Jackson Harper <jackson@ximian.com>
19395 * ContainerControl.cs: Add a field that disables auto selecting
19396 the next control in a container when the container is activated.
19397 * UpDownBase.cs: Don't select the text box when the up down is
19400 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
19402 * XEventQueue.cs: Added methods for peeking (used for compression
19403 of successive events)
19404 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
19405 mouse move events (fixes #78732)
19407 2006-07-25 Jackson Harper <jackson@ximian.com>
19409 * UpDownBase.cs: Use an internal class for the textbox so that we
19410 can control focus. the updown control should always have focus,
19411 if either the text area or the buttons are clicked.
19412 - Send the key messages to the textbox, since it never actually
19414 - Activate and decativate the textbox caret.
19416 2006-07-24 Jackson Harper <jackson@ximian.com>
19418 * Control.cs: Use the directed select when selecting a control,
19419 this way the container controls override will get called and the
19420 whole ActiveControl chain will get triggered. TODO: probably need
19421 to make sure this gets done everywhere instead of the old
19423 * ContainerControl.cs: Implement the directed Select method to
19424 find and activate the correct child control.
19426 2006-07-22 Mike Kestner <mkestner@novell.com>
19428 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
19429 menu handling code so that clicks without a grab work too.
19432 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
19434 * FileDialog.cs: Enable the BackButton when dirstack has one element.
19435 Added some small optimizations.
19437 2006-07-21 Matt Hargett <matt@use.net>
19439 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
19441 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
19443 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
19444 tests pass and match MS in some strange border cases.
19446 2006-07-21 Chris Toshok <toshok@ximian.com>
19448 * ThemeWin32Classic.cs: handle drawing of the relation links and
19449 parent row buttons.
19451 * Theme.cs: change args to DataGridPaintParentRow.
19453 * DataGrid.cs: Don't use controls for the relation links and
19454 parent buttons, so we have to handle all their interactions in
19455 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
19456 when we're navigating through child tables, so we can reinstate
19457 selection, expanded state, current cell, etc.
19459 2006-07-20 Chris Toshok <toshok@ximian.com>
19461 * ToolBar.cs: When we redraw a button, for whatever reason,
19462 there's no reason to redraw the entire toolbar. Also, don't call
19463 Control.Refresh from within Redraw, as it's much heavier than
19464 Invalidate (which is really what we want).
19466 2006-07-20 Chris Toshok <toshok@ximian.com>
19468 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
19469 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
19470 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
19471 traces from within a debug IBindingList datasource
19472 (in mono/winforms/datagrid) for *days*, I've finally gotten things
19473 to work in a similar fashion.
19475 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19477 * ListBox.cs: Don't call Sort () when setting
19478 the Sorted property to false (avoid an unnecessary sort).
19480 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19482 * ListControl.cs: DataSource should throw an ArgumentException
19483 instead of a normal exception when the argument is not of the
19486 2006-07-20 Mike Kestner <mkestner@novell.com>
19488 * Control.cs: add InternalPreProcessMessage to allow us to steal
19489 key events before MWF gets its paws on them. Adapted from a
19491 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
19492 up/down/left/right navigation. Override the new internal control
19493 method to steal the events since they never make it to WndProc.
19494 * ToolBarButton.cs: don't worry about pushed when setting hilight
19495 since the drawing code prefers pushed to hilight. Invalidate on
19496 Hilight changes. Fixes #78547 and #78525.
19498 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19500 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
19501 the canvas size. Fixes #78868
19503 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19505 * Splitter.cs: Track requested split position until first layout
19506 is performed. Fixes #78871
19508 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
19510 * Application.cs: Removed code that forces 1.x for the version
19511 number if the version started with 0. Not sure why that code was
19512 there and I couldn't find any bugs that indicated we needed it.
19515 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
19517 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
19518 ResetDefaults(), just write some output to the console until it's
19519 implemented. Fixes bug #78907 for now. Eliminated two warnings.
19521 2006-07-19 Jonathan Chambers <joncham@gmail.com>
19523 * PropertyGridView.cs: set StartPosition of drop down forms
19524 so they appear in correct initial spot. Fixes #78190.
19526 2006-07-19 Mike Kestner <mkestner@novell.com>
19528 * ThemeWin32Classic.cs: use parent background color when drawing
19529 flat toolbars. Restructure the conditionals to make sure non-flat
19530 non-Divider toolbars are filled too. Fixes #78837.
19532 2006-07-19 Mike Kestner <mkestner@novell.com>
19534 * ListBox.cs: Sort on collection changes even if the handle
19535 isn't created yet. Fixes #78813.
19537 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19539 * ListControl.cs: DisplayMember should never be null,
19540 and now we assign String.Empty when null is passed to it (this
19543 2006-07-17 Mike Kestner <mkestner@novell.com>
19545 * ListViewItem.cs: restructure Font and subitem Font handling
19546 to hold a specific font and refer back to owner on null.
19549 2006-07-17 Mike Kestner <mkestner@novell.com>
19551 * ToolBar.cs: bandaid for side-effect of previous patch which was
19552 discarding explicit heights for non-AutoSize toolbars. Need to
19553 extend my format tester to deal with AutoSize=false. Fixes #78864.
19555 2006-07-15 Jackson Harper <jackson@ximian.com>
19557 * LabelEditTextBox.cs:
19558 * TreeView.cs: Use a new LabelEdit class for node editing, this
19559 class automatically 'closes' itself when it gets the enter key or
19561 - Use the client rectangle when setting the trees scrollbars, so
19562 border style is taken into account.
19564 2006-07-14 Jackson Harper <jackson@ximian.com>
19567 * TreeView.cs: Make the editing work similar to MSs, firing the
19568 events correctly and ending edits correctly.
19570 2006-07-14 Mike Kestner <mkestner@novell.com>
19572 * ToolBarButton.cs:
19573 * ToolBar.cs: layout restructuring and redraw enhancements to support
19574 formatting changes gracefully, like setting TextAlign, ImageList,
19575 ButtonSize, and Appearance. Handles explicit button sizing quirks
19576 of the MS controls. Things like flat toolbars ignoring button size
19577 but becoming constant sized at the largest button's size. Normal
19578 toolbars with an image set cannot be shrunk smaller than the image,
19579 but text can be clipped/ignored.
19580 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
19581 is zero. Seems like DrawString should be smart enough to not put
19582 anything on screen though. Also trim labels and ellipsize at the char
19583 boundary, not word.
19584 Fixes #78711 and #78483.
19586 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19588 * FolderBrowserDialog.cs: Disable "New Folder" button and
19589 "New Folder" contextmenu menuitem if a folder like "My Computer"
19592 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19594 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
19595 * FolderBrowserDialog.cs:
19596 - Use MWFConfig to store and read size and position settings
19597 - Added code to create a new folder (button or context menu).
19598 Use TreeView labeledit to change the name of the new folder.
19600 2006-07-14 Jackson Harper <jackson@ximian.com>
19602 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
19603 when the tree is scrolled we end editing.
19605 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
19607 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
19610 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19612 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
19613 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
19614 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
19615 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
19616 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
19617 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
19618 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
19619 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
19620 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
19621 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
19622 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
19623 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
19624 ListViewItemSelectionChangedEventHandler.cs,
19625 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
19626 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
19627 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
19628 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
19629 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
19630 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
19631 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
19632 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
19633 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
19634 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
19635 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
19636 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
19637 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
19638 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
19639 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
19640 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
19641 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
19642 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
19643 WebBrowserNavigatingEventHandler.cs,
19644 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
19646 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
19648 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
19649 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
19650 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
19651 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
19652 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
19653 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
19654 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
19655 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
19656 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
19657 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
19658 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
19659 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
19660 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
19661 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
19662 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
19663 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
19664 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
19665 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
19666 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
19667 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
19668 ListViewItemStates.cs, MaskFormat.cs: Added
19670 2006-07-13 Jonathan Chambers <joncham@gmail.com>
19672 * PropertyGridView.cs: Fix keyboard navigation of drop down.
19673 Patch from eno for bug 78558.
19675 2006-07-13 Jackson Harper <jackson@ximian.com>
19677 * TreeView.cs: When an edit is finished make sure that the
19678 selected node is visible.
19679 - When setting the top/bottom use the scrollbars is_visible, so
19680 everything will be set correctly even if the tree isn't visible
19683 2006-07-13 Jackson Harper <jackson@ximian.com>
19685 * ComboBox.cs: Revert the item->index part of my previous patch.
19686 * TreeView.cs: Use LostFocus instead of Leave for detecting when
19687 the edit box has lost focus (duh).
19688 - Just make the edit box not visible when we get return, that will
19689 take the focus, which will call EndEdit
19690 * TreeNode.cs When we start editing, notify the treeview.
19692 2006-07-12 Jackson Harper <jackson@ximian.com>
19694 * ComboBox.cs: Clear out old items before setting the item list.
19695 This prevents databound controls from having their items added
19697 - Switch the combobox to use indices whereever possible instead of
19698 using Item's. This allows usto navigate through lists that have
19699 more then one item with the same string value (ie a, b, b, a).
19700 - Scroll the listboxes scrollbar when a non visible item is
19702 - Allow keypress to cycle through all the possible values. For
19703 example if you have b1, b2, b3 and hold down the B key all the
19704 values will be cycled through.
19706 2006-07-12 Jackson Harper <jackson@ximian.com>
19709 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
19710 this using the internal methods.
19711 * Control.cs: Add OnGotFocusInternal. A new method that allows
19712 controls to "override" OnGotFocus and change focus behavior if
19714 - Same thing for LostFocus
19715 * ComboBox.cs: Pass off focus to the text control properly.
19717 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
19719 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
19720 * FolderBrowserDialog.cs: Almost a complete rewrite.
19721 - Better support for Environment.Specialfolders
19722 - Added support for MWFVFS
19723 - Made setting SelectedPath work
19725 2006-07-12 Jackson Harper <jackson@ximian.com>
19727 * Control.cs: Optimze getting all the controls.
19729 2006-07-11 Jackson Harper <jackson@ximian.com>
19731 * ContainerControl.cs: Override SETFOCUS in the container control,
19732 so that it is not selected on mouse click.
19734 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19736 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
19737 Hopefully we will have a better way once all of focus is complete.
19739 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
19741 * ThemeWin32Classic.cs: Commented out some debug code and fixed
19742 a compile error with csc.
19744 2006-07-11 Jackson Harper <jackson@ximian.com>
19746 * Control.cs: When hiding a control only select the next control
19747 if the current control was focused.
19748 - Don't handle enter/leave when setting/killing focus, this is
19749 done by the container control.
19750 - Remove is_selected, it's not needed anymore.
19751 - Add utility methods for selecting a child control, and for
19752 firing the Enter/Leave events.
19753 * ContainerControl.cs: When a control is activated fire the
19754 enter/leave events.
19755 - Don't wrap when processing the tab key, so that focus can be
19756 moved outside of the container.
19757 - Use the correct active control
19759 2006-07-11 Jackson Harper <jackson@ximian.com>
19761 * ComboBox.cs: Remove some debug code that was blinding me.
19762 * UpDownBase.cs: These controls actually aren't implicit, they are
19763 visible to the user.
19765 2006-07-10 Chris Toshok <toshok@ximian.com>
19767 * DataGrid.cs: move back to the is_adding boolean field. god i
19768 hate this is_editing/is_adding/is_changing stuff.
19770 2006-07-10 Chris Toshok <toshok@ximian.com>
19772 * DataGridTableStyle.cs: just check if the property type is bool.
19773 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
19774 Don't use CanRenderType.
19776 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
19777 if our text == NullText. Remove CanRenderType.
19779 * DataGridBoolColumn.cs: nuke CanRenderType.
19781 * DataGrid.cs: reenable some code to end the current edit inside
19782 of set_CurrentCell. This fixes the other 1.1.16 regression.
19783 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
19784 Also, remove the visible_row_count arg from CalcRowHeaders, since
19785 we don't need to worry about the actual height of the area.
19787 2006-07-10 Chris Toshok <toshok@ximian.com>
19789 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
19792 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
19793 the real sense of the IsInEditOrNavigateMode property (true =
19794 navigate, false = edit). Also, update OnKeyPress to reflect this.
19796 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
19797 column style exists, we still need to set its property descriptor
19798 to match up with our list manager.
19800 2006-07-10 Chris Toshok <toshok@ximian.com>
19802 * ThemeWin32Classic.cs: implement the new row/header painting
19803 approach. The parent row painting will likely go away and
19804 replaced with label controls, but the rest seems to work ok (and
19807 * Theme.cs: change the way we draw datagrid rows. we don't draw
19808 the row headers as a block now. Instead we draw them in the
19809 normal draw-row loop. Add some calls for drawing parent rows and
19812 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
19813 a default table style. Set the defaults from ThemeEngine.Current,
19814 not SystemColors. Fix lots of misc issues with property setters.
19816 * DataGrid.cs: move loads of style information out of this class
19817 as it's being duplicated with DataGridTableStyle. keep track of a
19818 special DataGridTableStyle for the properties we used to mirror
19819 here. Switch all the style properties to access this table style
19820 instead of instance fields of this class. Also add a internal
19821 class to represent parent rows (more needs to be stored here, like
19822 the selection state from the parent table, as well as the
19823 expansion state.) Also, for datasources with relations, do the
19824 right thing for collapse/expand, and add support for the
19825 navigation/parent row buttons.
19827 Lastly, fix the crash in the 1.1.16 build.
19829 * GridTableStylesCollection.cs: make the explicit interface
19830 implementations call the class's methods as opposed to duplicating
19833 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
19834 0 so the text doesn't jump around when we move the cursor.
19836 2006-07-10 Jackson Harper <jackson@ximian.com>
19839 * ListBox.cs: Match MS's ToString (this makes debugging focus
19840 stuff infinitely easier).
19842 2006-07-10 Jackson Harper <jackson@ximian.com>
19844 * Control.cs (SelectNextControl): When checking the control's
19845 parent use this instead of ctrl.parent so that null can be passed
19846 to SelectNextControl. (I have unit tests for this).
19847 - Remove unused var.
19849 2006-07-10 Chris Toshok <toshok@ximian.com>
19851 * CurrencyManager.cs: correct one regression, the removal of the
19852 finalType field. Also, add a MonoTODO on CanAddRows, implement
19853 Refresh() correctly, and fix some event emission in
19854 ListChangedHandler.
19856 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19858 * FileDialog.cs: Don't use brackets for new folders if they exist
19859 under *nix. Instead use -(number of existing folders +1).
19861 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19864 - Fixed really nasty bug #78771
19865 - Don't block the whole GUI when reading directories with a lot of
19866 entries. Use an other thread instead and call BeginInvoke to
19867 update the ListView in MWFFileView
19869 2006-07-07 Chris Toshok <toshok@ximian.com>
19871 * Control.cs (Dispose): release any Capture when disposing.
19873 2006-07-07 Chris Toshok <toshok@ximian.com>
19875 * LinkLabel.cs (Select): if we chain up to the parent, set
19876 focused_index to -1 so we'll search for the first available link
19877 the next time the user tabs into us. Also, if the direction is
19878 backward and focused_index == -1, start the search from the last
19881 2006-07-07 Chris Toshok <toshok@ximian.com>
19883 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19884 is beyond the end of the text, don't do anything.
19885 (CreateLinkPieces): set our ControlStyles.Selectable based on
19886 whether or not we have any links.
19887 (Link.Invalidate): use a loop instead of foreach.
19888 (Link.set_Start): null out owner.sorted_links so it'll be
19889 recreated by CreateLinkPieces.
19891 2006-07-06 Chris Toshok <toshok@ximian.com>
19893 * LinkLabel.cs: revert the SetStyle change.
19895 2006-07-06 Chris Toshok <toshok@ximian.com>
19897 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19898 (OnEnableChanged): s/Refresh/Invalidate
19899 (OnGotFocus): if we have a focused index already, refocus it (so
19900 if we mouse out/in to the window it'll focus the right link).
19901 (OnKeyDown): move the tab handling out of here.
19902 (OnLostFocus): don't set focused_index to -1, so we can refocus it
19903 when we lose focus.
19904 (OnMouseDown): don't Capture here - Control handles it. Also,
19905 focus the active link.
19906 (OnMouseUp): don't deal with Capture.
19907 (OnPaintBackgroundInternal): remove.
19908 (OnTextAlignChanged): CreateLinkPieces before calling the
19909 superclass's method.
19910 (OnTextChanged): call CreateLinkPieces before calling superclass's
19912 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19914 (Select): implement this, moving the selection between different
19915 links, and call parent.SelectNextControl if we don't have another
19916 link to focus in the given direction.
19917 (CreateLinkPieces): call Invalidate instead of Refresh.
19919 2006-07-06 Chris Toshok <toshok@ximian.com>
19921 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19922 new LinkLabel internals.
19924 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
19925 over pieces looking for active/focused/etc links. also, deal with
19926 runs of text (and links) with embedded \n's in them, and use
19927 MeasureCharacterRanges instead of MeasureString to figure out the
19928 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
19931 2006-07-04 Jackson Harper <jackson@ximian.com>
19933 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19934 XKB or key auto repeat, do it manually. Without key auto repeat,
19935 when a key is held down we get key press, key release, key press,
19936 key release, ... with auto repeat we get key press, key press, key
19937 press ..., and then a release when the key is actually released.
19939 2006-07-03 Jackson Harper <jackson@ximian.com>
19942 * ThemeWin32Classic.cs: Tabs do not obey normal background color
19943 rules, they are always control color regardless of the background
19946 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
19948 * FileDialog.cs: Added internal class MWFConfig.
19949 Removed Registry support and replaced it with support for the new
19950 MWFConfig class. See MWFConfig comments for more information.
19952 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
19954 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19955 rectangle. Added some patches from eno from bug #78490 and fixed
19956 the arrow position for small up and down CPDrawScrollButtons.
19958 2006-06-30 Jackson Harper <jackson@ximian.com>
19960 * InternalWindowManager.cs: Remove some debug code.
19961 * Form.cs: When an MdiParent is set to null, the window is
19962 "detatched" and becomes a normal window.
19963 * MdiClient.cs: Don't bring the new child form to the front until
19964 it is activated (setting it as active does this), this makes the
19965 previously active forms titlebar get redrawn as inactive.
19967 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
19969 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19970 with later controls
19972 2006-06-29 Mike Kestner <mkestner@novell.com>
19974 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19975 arrow in keynav state. Fixes #78682.
19977 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19979 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
19980 order (fixes #78393)
19982 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
19984 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
19985 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19986 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19987 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19988 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19989 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
19990 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19991 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19992 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19993 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19994 enumerations (FlagsAttribute, SerializableAttribute, added/removed
19997 2006-06-28 Mike Kestner <mkestner@novell.com>
19999 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20001 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
20004 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20005 item lines from other area (It also makes BackColor consistent and
20006 compatible with .NET). Fixed bug #78564.
20008 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
20010 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20011 Patch from Eno for #78555.
20013 2006-06-27 Chris Toshok <toshok@ximian.com>
20015 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20017 * DataGridColumnStyle.cs: same.
20019 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20021 * DataGridDrawingLogic.cs: nuke.
20023 2006-06-27 Chris Toshok <toshok@ximian.com>
20025 * DataGridTableStyle.cs: clean up the constructors, and build the
20026 list of child relations for this table. I have no idea if this is
20027 where we should be doing it (it probably isn't), but since we're
20028 already iterating over the properties..
20030 * DataGrid.cs: add row resizing. for now we add a DataGridRow
20031 struct and array for keeping track of row information, similar to
20032 what's shown in a hack on
20033 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20035 * Theme.cs: be consistent about the naming of DataGrid methods,
20036 prefering ColumnWidths and RowHeights over columnsWidths and
20039 * ThemeWin32Classic.cs: same, and also add support for variable
20040 sized rows (and the +/- expansion icons for related rows).
20042 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20044 * TextBoxBase.cs: Applied Eno's patch from #78660
20046 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20048 * Form.cs (ScaleCore): We don't want to scale our form if it's
20049 state is minimized or maximized, but we still need to scale our
20050 child windows. Also, added try/finally block to ensure layout
20051 gets reset (Fixes #78697)
20053 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20055 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
20057 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20059 * Form.cs: Fixed c+p error and added check to resize form if minimum
20060 size is bigger than current size (Fixes #78709)
20062 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
20064 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
20066 2006-06-26 Mike Kestner <mkestner@novell.com>
20068 * ComboBox.cs: only do Keypress handling in the combo when there
20069 are items in the collection. Fixes #78710.
20071 2006-06-26 Chris Toshok <toshok@ximian.com>
20073 * Binding.cs: make this work bi-directionally. also, clear up
20074 other mixups between Push/Pull Data (e.g. we're supposed to pull
20075 data when validating).
20077 * BindingManagerBase.cs: trim some fully qualified collection
20080 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
20082 2006-06-23 Chris Toshok <toshok@ximian.com>
20084 * PropertyManager.cs: It appears (according to the unit tests)
20085 that PropertyManager doesn't use
20086 PropertyDescriptor.AddValueChanged to track propery value changes
20087 in its datasource, but uses the same scheme as Binding, where it
20088 looks for a <Property>Changed event and binds to it.
20090 Also, according to the docs, IsSuspended always returns false for
20091 a property manager with a non-null datasource.
20093 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
20095 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
20096 need to update the actual DialogResult. (Fixes #78613)
20098 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
20100 * Form.cs (ShowDialog): Release any captures before running the
20101 new message pump (fixes #78680)
20103 2006-06-22 Mike Kestner <mkestner@novell.com>
20105 * ListView.cs: Layout column widths properly in details mode even
20106 if HeaderStyle.None is set. Fixes #78691.
20108 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
20110 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
20112 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
20114 * Control.cs (ContainsFocus): Using new driver method to get focused
20115 window, instead of trying to use internal tracking var, which can
20116 recursion issues (Fixes #78685)
20117 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
20118 XplatUIWin32.cs: Added GetFocus method to return focused window
20120 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20122 * ColorDialog.cs: when the mouse button is pressed inside the color
20123 matrix, don't let the cursor move out of it until the button is
20124 released, which is the behavior on windows. Changed 'colours' by
20125 'colors' to use the same word consistently.
20127 2006-06-21 Chris Toshok <toshok@ximian.com>
20129 * DataGrid.cs: add in some basic navigation stuff (navigating to a
20130 child relation and back, using a stack). Also, remove
20131 GetDataSource and the code that calls it - it's not needed. Also,
20132 track CurrencyManager.ListName's removal.
20134 2006-06-21 Chris Toshok <toshok@ximian.com>
20136 * CurrencyManager.cs: push some of the original type checking from
20137 BindingContext.CreateBindingManager to here, and remove some of
20138 the finalType stuff. Need more tests to make sure I've got the
20139 ListName part right, and we might need more in SetDataSource.
20141 * PropertyManager.cs: add a ctor that takes just the datasource,
20142 and no property name. Make SetDataSource work with a null
20143 property_name, and make Current return the data_source if the
20144 property descriptor is null. this makes 'string foo = "hi";
20145 BindingContext[foo].Current' return "hi" as it should.
20147 * RelatedCurrencyManager.cs: make this code more generic - there's
20148 no reason the parent manager has to be CurrencyManager, and
20149 there's no reason to pass the DataRelation. It suffices to use a
20150 BindingManagerBase and PropetyDescriptor.
20152 * RelatedPropertyManager.cs: make a similar change here.
20154 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
20155 flower I knew it could be.
20157 2006-06-20 Chris Toshok <toshok@ximian.com>
20159 * PropertyManager.cs: the PropertyChangedHandler is invoked when
20160 data in the source has changed and we need to update the control,
20161 so s/PullData/PushData.
20163 * CurrencyManager.cs: Refresh is meant to update the control from
20164 data in the datasource. So, s/PullData/PushData.
20166 * BindingContext.cs: add more ugliness (we weren't handling the
20167 case where data_source = DataTable and data_member = column_name).
20169 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
20170 from the perspective of the datasource. PullData pulls from the
20171 control, PushData pushes to the control.
20173 2006-06-20 Chris Toshok <toshok@ximian.com>
20175 * BindingContext.cs: rewrite the CreateBindingManager code to
20176 handle navigation paths more or less properly. This could
20177 definitely stand some more work, in particular to push the
20178 recursion up to the toplevel. But that relies on fixes in other
20179 places (System.Data comes to mind).
20181 Also, move to a flat hashtable (and encode the twolevel nature of
20182 the dictionary into the hash key). This lets us implement the
20183 IEnumerable.GetEnumerator method.
20185 * RelatedCurrencyManager.cs: new class. Update our view based on
20186 our relation and our parent CurrencyManager's position.
20188 * CurrencyManager.cs: split out some logic from the ctor into
20189 SetView, so it can be called from the new RelatedCurrencyManager
20192 * RelatedPropertyManager.cs: new class. Update our datasource
20193 based on the position of our parent CurrencyManager.
20195 * PropertyManager.cs: split out some logic from the ctor into
20196 SetDataSource, so it can be called from the new RelatedDataSource
20197 subclass. Also, make the Current getter return the value
20198 of the PropertyDescriptor, not the data_source.
20200 * Binding.cs: no need to duplicate the string splitting code here.
20202 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
20205 - set_Enabled: OnEnabledChanged is not called if the inherited state
20206 of the control is not altered, even though we might be changing the
20207 internal state of the control (#78458)
20208 - set_Enabled: (Re)Moved the enabling/disabling of the window to
20209 OnEnabledChanged, to allow easy altering of any child window state
20210 - OnEnabledChanged: Added code to enable/disable driver window state
20211 - OnParentEnabledChanged: Instead of firing the event, call
20212 OnEnabledChanged, which will fire the event and also a) set driver
20213 window state and pass the enabled state to any grandchildren (#78458)
20215 2006-06-19 Jackson Harper <jackson@ximian.com>
20217 * InternalWindowManager.cs: We don't set the cursor explicitly
20218 thats done via the response to NCHITTESTs.
20219 - Don't need to adjust for titlebar heights anymore, the
20220 coordinates are coming in the correct coordinates now (see peters
20224 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
20226 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
20227 being translated relative to whole window, instead of client window.
20228 That caused broken offsets on mouseclick (and caused gas for our
20229 InternalWindowManager)
20231 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
20234 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
20235 - Undo(): Added replay of cursor move on DeleteChars action; added
20236 calling Undo() again if a recorded cursor move is invalid (to
20237 ensure that some action is performed on Undo)
20238 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
20240 2006-06-16 Jackson Harper <jackson@ximian.com>
20242 * MdiClient.cs: Instead of just sizing maximized windows when
20243 there is a resize we also have to adjust the Y of minimized
20244 windows, so they stay pinned to the bottom of the mdi container.
20245 - Eliminate separate tracking of the active control, we can just
20246 get this from the controls collection.
20247 - Paint the decorations for the newly activated titlebar so we get
20249 * InternalWindowManager.cs:
20250 * ThemeWin32Classic.cs: Minimized windows get all three buttons
20251 even if they are a tool window.
20253 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
20255 * TextControl.cs (Undo): Handle non-existent cursor locations in the
20256 undo buffer, these can happen when text was deleted and the cursor
20257 was recorded first. Since we will also have a recorded cursor
20258 after the delete this is not an issue. (Fixes #78651)
20260 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
20262 * AccessibleObject.cs: Remove dependence on Control.is_selected;
20263 instead properly track control states internally (allows us to
20264 remove is_selected from Control)
20266 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20268 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
20269 whose width is not a multiple of 8.
20271 2006-06-13 Jackson Harper <jackson@ximian.com>
20273 * MdiClient.cs: Only maximize the next child if the current one
20276 2006-06-13 Chris Toshok <toshok@ximian.com>
20278 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
20279 modified. Also, guard against grid or grid_drawing being null in
20282 * DataGrid.cs: Reformat tons of getters/setters. In the
20283 DataMember setter, just call SetNewDataSource instead of
20284 duplicating some of its functionality. In SetNewDataSource, don't
20285 check ListManager for null, since the property getter creates the
20288 * DataGridTableStyle.cs: don't set TableStyle or call
20289 SetDataGridInternal on the column here, it's done in
20290 GridColumnStylesCollection.Add.
20292 * GridColumnStylesCollection.cs: fix all the explicit interface
20293 implementations to just call our methods. Nuke AddInternal() and
20294 move the body of it to Add(). Also, add a call to
20295 column.SetDataGridInternal to Add().
20297 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
20298 base()+duplicate code. Also, use the Format property instead of
20299 format to generate an Invalidate ala MS. Lastly, create the
20300 textbox here, unconditionally.
20301 (set_Format): call Invalidate.
20302 (get_TextBox): no need to call EnsureTextBox.
20303 (Commit): remove the message box.
20304 (Edit) remove the call to EnsureTextBox.
20305 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
20306 (EnterNullValue): no need to check textbox for null.
20307 (HideEditBox): no need to check textbox for null.
20308 (SetDataGridInColumn): add the textbox to the grid's controls.
20309 (EnsureTextBox): nuke.
20311 2006-06-13 Jackson Harper <jackson@ximian.com>
20313 * MdiWindowManager.cs: Hook up to the maximized menus paint event
20314 and redraw the buttons when needed. Unhook when the window is
20316 * MainMenu.cs: Add an internal Paint event, the mdi window manager
20317 needs this so that it can redraw its buttons when the menu is
20319 * InternalWindowManager.cs:
20320 * Form.cs: The method order has changed for DrawMaximizedButtons,
20321 so that it can be a PaintEventHandler.
20323 2006-06-13 Jackson Harper <jackson@ximian.com>
20325 * MdiClient.cs: When we close a maximized mdi window, the next mdi
20326 window is activated and maximized, even if it wasn't before.
20327 - When a new window is activated repaint the decorations of the
20328 old one, so that it no longer has the Active "look" (the blue
20330 * InternalWindowManager.cs: Open up CreateButtons to base classes
20331 so they can recreate the buttons on state changes.
20332 - If a window is maximized give it all three buttons
20333 * MdiWindowManager.cs: Create the titlebar buttons when the state
20334 is changed, this is needed because a toolwindow will not have all
20335 three buttons until it is maximized.
20337 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
20339 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
20342 2006-06-12 Jackson Harper <jackson@ximian.com>
20344 * KeysConverter.cs: Make sure we handle the Ctrl special case
20345 if its the only key.
20347 2006-06-12 Jackson Harper <jackson@ximian.com>
20349 * Theme.cs: Add a method to get the size of a managed window
20351 * InternalWindowManager.cs: Remove the ButtonSize property, this
20352 should be retrieved from the theme.
20353 * MdiWindowManager.cs: Get the button size from the theme
20354 * ThemeWin32Classic.cs: Make the method to get the managed window
20355 titlebar button size public.
20356 - Handle the different button sizes of maximized toolwindows
20357 (should match any maximized window).
20358 - Get the titlebar height from the theme, not the WM (which gets
20359 it from the theme).
20361 2006-06-12 Jackson Harper <jackson@ximian.com>
20363 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
20364 event down to the mdi window manager.
20365 - Expose some extra stuff to base classes
20366 - Make sure to end the Capture on an NC Mouse up, so that we can
20367 get double clicks properly, and the sizing doens't stick.
20368 - When doing PointToClient contain it in the workable desktop
20369 area, this prevents windows from changing size when the cursor is
20370 pulled outside of the working area while sizing.
20371 * MdiWindowManager.cs: When we get a double click maximize the
20373 - Reset the cursor after handling mode changes.
20375 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
20377 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
20378 current desktop, instead of just assuming a 0, 0 origin. This
20379 is needed for our internal window manager, to know the top
20380 margin of the desktop
20382 2006-06-12 Chris Toshok <toshok@ximian.com>
20384 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
20385 we need this to get rid of the selected background in the bool
20387 (CancelEditing): move the ConcedeFocus call to above the Abort
20388 call. Also, set is_changing to false and invalidate the row
20389 header if we were changing before.
20390 (ProcessKeyPreviewInternal): remove, since noone outside this
20391 class calls it anymore. Roll the code into ProcessKeyPreview.
20392 (EndEdit): remove the internal version.
20393 (InvalidateCurrentRowHeader): make private.
20395 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
20396 Keys.Escape handling (and with it the last call to
20397 DataGrid.EndEdit from outside the class.)
20400 2006-06-12 Chris Toshok <toshok@ximian.com>
20402 * DataGridTextBox.cs (.ctor): isedit defaults to false.
20403 (OnKeyPress): set isedit to true.
20404 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
20405 already handled by the grid.
20407 * DataGrid.cs (set_CurrentCell): more work here. it's still not
20409 (set_DataSource): SetDataSource always returns true, so stop
20410 putting it in an if statement.
20411 (EndEdit): get rid of some {}'s
20412 (ProcessGridKey): return true in case Keys.Escape.
20413 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
20414 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
20415 PositionChanged, stopped connecting to CurrentChanged.
20416 (GetDataSource): simplify this a bunch.
20417 (SetDataSource): change return type from bool to void.
20418 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
20419 to this, and make sure we don't set ListManager.Position inside
20421 (OnListManagerItemChanged): if we're passed an actual index,
20424 * CurrencyManager.cs (set_Position): don't call PullData here.
20426 2006-06-09 Jackson Harper <jackson@ximian.com>
20428 * TreeNode.cs: Recalculate the visible order before doing the
20429 Expand/Collapse Below calls, because those calls generate an
20431 - Reduce calls to the TreeView property, which is mildly expensive
20432 by using a local var.
20433 * Form.cs: Layout the MDI child windows when creating the parent
20435 - Don't use the internal constructor anymore
20436 * MdiClient.cs: use the parent form width/height (if available)
20437 when laying out the child windows, we do this because the
20438 mdiclient isn't docked yet when the initial layout is done.
20439 - Don't need an internal constructor anymore.
20441 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20443 * FileDialog.cs: handle access errors when trying to create a folder
20444 or changing to a directory. No need to initialize out parameters.
20446 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20448 * FileDialog.cs: Append a number when creating a new folder if the
20449 folder already exists (use parenthesis instead of square brackets)
20451 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20454 - Disabled registry support for windows and added better registry
20455 error checking for other systems (need to investigate why it
20456 works perfectly on my system)
20457 - If a folder already exist show an error MessageBox instead of
20458 trying to create an indexed name.
20459 - Fixed a non intentional typo.
20461 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20463 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
20465 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20467 * FileDialog.cs: When creating a new folder don't crash if the
20468 folder already exists.
20470 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20472 * FileDialog.cs: Allmost a complete rewrite.
20473 - added a "virtual" file system that handles the differences
20474 between unix and windows file systems (especially the directory
20475 structure). Moved most of the directory and file handling code
20477 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
20478 UnixFileSystem and FSEntry.
20479 - Recently used folder/directory, size, location and used file names
20480 (file name ComboBox) are now stored in the registry and get read
20481 before the dialog shows up (fixes part 6 of bug #78446).
20482 - Creation of new folders/directories is now possible (context menu
20483 or ToolBar). Added TextEntryDialog for this that fills in the gap
20484 until ListView.LabelEdit works.
20485 - Fixed cursor handling (bug #78527) and focus handling for
20487 - Various "Search in" ComboBox enhancements. The content of the
20488 dropdown listbox now almost matches ms.
20489 - Changed the behaviour when the user switches to SpecialFolder
20490 Recent to show the ListView in View.Details.
20491 - Beside using the ToolBar to change the View property of the
20492 file ListView it is now possible to use the context menu too.
20494 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
20496 * ComboBox.cs: Don't create a new ObjectCollection when an item
20497 gets inserted. Just insert the item in the existing object_items
20500 2006-06-08 Jackson Harper <jackson@ximian.com>
20502 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
20503 that the treeview and root node checks are done also, this fixes a
20504 regression i caused in the unit tests.
20506 2006-06-07 Wade Berrier <wberrier@novell.com>
20508 * RichTextBox.cs: More ISO8859-1 -> unicode
20510 2006-06-07 Mike Kestner <mkestner@novell.com>
20512 * ComboBox.cs : use items to hold highlight/selection so that
20513 collection insertions don't require synchronization.
20515 2006-06-07 Jackson Harper <jackson@ximian.com>
20517 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
20518 routine. We now always keep the sized edge at the cursor instead
20519 of computing movement and adjusting rects. There is one buglet
20520 with this method though when the cursor is moved over area that
20521 the window can not expand too (such as the toolbars on the desktop).
20523 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20525 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
20526 here. Fixes crash on startup in AlbumSurfer.
20528 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
20530 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
20533 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20535 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
20536 statement to avoid calling XNextEvent which will block if another thread
20537 took the event that we were expecting. Fixes bug #78605.
20539 2006-06-07 Mike Kestner <mkestner@novell.com>
20541 * ListView.cs : isolated checkbox clicking from the selection logic.
20542 Toggle check state on item doubleclicks. Really fixes #78454 part2.
20544 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20546 * Form.cs: Check that the value passed to Form.DialogResult
20547 is a valid enum value.
20549 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20551 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
20552 Computer'. Clicking it in the network view goes to 'My Computer'.
20553 Added CIFS filesystem type. Display the mount point of filesystems.
20554 Avoid duplicate mount points (happens for me with CIFS);
20556 2006-06-06 Jackson Harper <jackson@ximian.com>
20558 * InternalWindowManager.cs: Draw the maximized windows buttons
20561 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20563 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
20564 all other dialogs. Fixes bug #78585.
20566 2006-06-06 Mike Kestner <mkestner@novell.com>
20568 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
20569 Only invalidate checkbox on checkstate changes to avoid flicker.
20570 * ListBox.cs : avoid unselect/select when clicking selected item.
20571 avoid reselection flicker for already multiselected items.
20574 2006-06-06 Jackson Harper <jackson@ximian.com>
20576 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
20577 the parent form so that the menu is removed if needed.
20579 2006-06-06 Mike Kestner <mkestner@novell.com>
20581 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
20582 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
20584 2006-06-06 Mike Kestner <mkestner@novell.com>
20586 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
20589 2006-06-06 Jackson Harper <jackson@ximian.com>
20591 * Control.cs: Use the property (instead of the field) to get the
20592 default cursor so it is instantiated correctly.
20593 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
20594 resizes so we need to manually repaint the window decorations here.
20595 - Set the titlebar button locations as soon as they are created,
20596 otherwise they are not set correctly on win32.
20598 2006-06-06 Chris Toshok <toshok@ximian.com>
20600 * CurrencyManager.cs (set_Position): call PullData before
20602 (AddNew): after calling IBindingList.AddNew, update our
20603 listposition, and call OnCurrentChanged/OnPositionChanged (without
20605 (OnCurrentChanged): remove the call to PullData from here.
20606 (OnItemChanged): remove the call to PushData from here.
20607 (OnPositionChanged): change the test from == null to != null to
20608 match the other methods.
20609 (ListChangedHandler): the grossest part of the patch. Implement
20610 this such that it passes the unit tests in CurrencyManagerTest and
20611 the output more or less matches that of MS's implementation.
20613 2006-06-06 Mike Kestner <mkestner@novell.com>
20615 * ListView.cs : only update check state on single click.
20616 * ThemeWin32Classic.cs : fix focus drawing for details view without
20617 fullrowselect. Fixes #78454.
20618 * XplatUIX11.cs : fix for double click emission.
20620 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
20622 * PropertyGridView.cs : Applied Atsushi's patch to fix
20623 font dialog bug (#78197).
20625 2006-06-05 Jackson Harper <jackson@ximian.com>
20627 * TreeNode.cs: Compute the next node for expanding/collapsing
20628 correctly. We now factor in nodes without a NextNode
20629 correctly. (Fixes somes cases in nunit-gui).
20630 * InternalWindowManager.cs: Set the bounds when updating the
20631 virtual position of a tool window.
20633 2006-06-05 Chris Toshok <toshok@ximian.com>
20635 * DataGrid.cs: rename cached_currencymgr to list_manager.
20636 (set_CurrentCell): move SetCurrentCell code here, and clean it up
20638 (CurrentRow, CurrentColumn): single accessors so we can make the
20639 cursor movement code a lot easier to understand.
20640 (CurrentRowIndex): implement this in terms of CurrentRow.
20641 (BeginEdit): clean this up a bit.
20642 (CancelEditing): sort out the is_editing/is_changing/is_adding
20644 (EndEdit): minor changes.
20645 (OnKeyDown): add a comment about a (most likely) unnecessary
20647 (OnMouseDown): cancel editing when we click on a row header. And
20648 use the CurrentRow setter, not CurrentCell.
20649 (ProcessDialogKey): directly call ProcessGridKey.
20650 (UpdateSelectionAfterCursorMove): factor out this common block of
20651 code (it's used everywhere that we move the cursor by updating row
20653 (ProcessGridKey): pretty substantial overhaul. Use the
20654 CurrentRow/CurrentColumn properties to make the code a lot more
20655 readable. Only use the CurrentCell property when we have to
20656 modify both row and column at once. Tab behavior is still broken,
20657 and Delete is untested.
20658 (Select): if we have no selected rows, set selection_start to
20660 (EditCurrentCell): rename EditCell this. It was only ever invoked
20661 with CurrentCell as the arg, so drop the arg and rename it.
20663 * DataGridColumnStyle.cs: clean up the constructors a little, and
20664 drop CommonConstructor().
20666 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
20667 actually get notified when the user hits it.
20668 (ProcessKeyMessage): *substantially* simplify this method.
20669 There's no reason (that I can see) for the textbox to be making
20670 calls into the datagrid at all. Remove all of them but the ones
20671 for Enter handling. those will take some more work.
20673 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
20674 calling HideEditBox.
20675 (HideEditBox): if we have an active textbox, render it invisible
20676 without causing a re-layout of the datagrid.
20678 2006-06-05 Mike Kestner <mkestner@novell.com>
20680 * ListView.cs : fix NRE crasher when focuseditem is cleared by
20681 collection changes by resetting it to Items[0]. Fixes #78587.
20683 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20685 * MessageBox.cs: if the height of the text is larger than the icon_size,
20686 use that. Fixes bug #78575.
20688 2006-06-05 Jackson Harper <jackson@ximian.com>
20690 * TreeView.cs: Fix line drawing when scrolling. To do this each
20691 node is basically responsible for drawing its entire horizontal
20692 area. When drawing a node it draws its parent node lines if
20694 - Adjust the clip area to the viewport rectangle
20695 - Fix Left/Right key handling to match MS. (It expand/collapses
20696 and moves to parents/first child but does not move selection to
20698 - Fix SetTop to work with new bound calculation code
20699 - When scrollbars are no longer needed we need to reset scrolling
20700 vars and recalculate the visible order so the redraw is correct
20701 * TreeNode.cs: We can't expand/collapse nodes with no children.
20703 2006-06-03 John Luke <john.luke@gmail.com>
20705 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
20706 so the colors work without dev packages
20708 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
20711 - Select: Implemented to just use activate. Seems to match MS
20712 behaviour closest. Documented to only do actual control walking
20713 based on it's parameters if in a container control so I moved
20715 - Removed selection check logic from our internal Select() method
20716 * ContainerControl.cs:
20717 - Select: Moved selection logic from Control here, since MS documents
20718 that containers obey the bool arguments. No longer calling base
20720 2006-06-02 Jackson Harper <jackson@ximian.com>
20722 * TreeView.cs: If the selected node isn't changed when we get
20723 focus update the previously selected node so that we see the
20726 2006-06-02 Mike Kestner <mkestner@novell.com>
20728 * ComboBox.cs: restructure grab and general mouse event handling.
20729 Make the composite control raise mouse events like it was a single
20730 control for leaves/enters/motion/up/down events. fix dropdown list
20731 coordinate mangling and refactor it into the scrollbar subclass to
20732 reduce code duplication. Fixes #78282 #78361 and #78457.
20734 2006-06-02 Mike Kestner <mkestner@novell.com>
20736 * ScrollBar.cs: remove Capture setting/clearing, as it happens
20737 automatically in the Control.WndProc.
20739 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20741 * FileDialog.cs: fix crash when running SharpChess, which sets the
20742 FilterIndex to 2 with only one Filter.
20744 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20746 * ToolBar.cs: add SizeSpecified property.
20747 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
20748 try to figure out our real size, otherwise fallback to what the
20751 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20753 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
20754 * Control.cs (WndProc): MS always calls the DefWndProc to pass
20757 2006-06-01 Mike Kestner <mkestner@novell.com>
20759 * ListView.cs: revamp the focus management in ListView. It still
20760 causes churn of LostFocus/GotFocus emissions on clicks, but it's
20761 better than not handling focus at all. Will revisit when pdb feels
20762 the general focus handling is solid. Fixes #78526.
20764 2006-06-01 Jackson Harper <jackson@ximian.com>
20766 * TreeView.cs: Set the default border style in the constructor.
20767 - Move painting to use OnPaintInternal instead of capturing
20768 WM_PAINT, this is the correct way of doing things
20769 - UpdateBelow shouldn't invalidate the scrollbar area
20770 - Cap the top on update below in case the node was above the top
20771 of the viewport rectangle.
20772 - ExpandBelow and Collapse below need to obey Begin/End Update.
20773 * TreeNode.cs: Make is_expanded internal so the treenode
20774 collection can change it without firing the whole event chain.
20775 * TreeNodeCollection.cs: When clearing all the child nodes make
20776 sure to recalc the visible order.
20777 - Improve algo for remove the top node
20779 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20781 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
20782 SendMessage directly calling window procedures, which in turn might
20785 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
20787 * Control.cs: Don't handle WM_SETFOCUS if the same window already
20788 has focus (works around X11 sending a FocusIn after our SetFocus)
20789 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
20791 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
20793 * Mime.cs: Fix for the NET_2_0 build.
20794 NameValueCollection needs StringComparer now.
20796 2006-05-31 Chris Toshok <toshok@ximian.com>
20798 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
20799 return (via an out parameter) the starting X of the column.
20800 (UpdateVisibleColumn): track change to FromPixelToColumn.
20801 (HitTest): add a ColumnResize case here.
20802 (DrawResizeLine): new function, probably poorly named.
20804 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
20805 only need to keep one reference.
20806 (set_ListManager): same.
20807 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
20808 Also, add support for HitTestType.ColumnResize.
20809 (OnMouseMove): add column resize behavior here, and change the
20810 cursor to the correct one as we move around the datagrid.
20811 (OnMouseUp): terminate the column resize if we're resizing.
20812 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
20813 for the current cell.
20814 (ConnectListManagerEvents): use cached_currencymgr.
20815 (DisconnectListManagerEvents): fill this in, using
20816 cached_currencymgr.
20817 (SetCurrentCell): remove cached_currencymgr_events handling.
20818 (SetDataMember): only call DisconnectListManagerEvents if
20819 cached_currencymgr is != null.
20820 (SetDataSource): same.
20821 (OnListManagerCurrentChanged): cached_currencymgr_events ->
20822 cached_currencymgr.
20824 2006-05-31 Jackson Harper <jackson@ximian.com>
20826 * BindingManagerBase.cs: Remove somedebug code that creeped into
20828 * TreeNode.cs: We get the indent level dynamically right now, so
20829 don't track it as a member.
20830 * TreeNodeCollection.cs: Make sure all nodes added to the list
20831 have parents, treeviews/topnodes setup properly.
20832 - Don't attempt to track indent level.
20834 2006-05-30 Jackson Harper <jackson@ximian.com>
20836 * BindingContext.cs: Create the currency manager tables here.
20837 This allows us to more easily create null tables (when bad data
20838 members are used), and more easily create related currency
20840 * CurrencyManager.cs: All the table creation stuff is done by the
20841 binding context now.
20842 - Current should throw an exception if listposition is -1.
20843 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
20846 2006-05-30 Mike Kestner <mkestner@novell.com>
20848 * ListView.cs: allow reexpansion of zero-width column headers.
20851 2006-05-28 Chris Toshok <toshok@ximian.com>
20853 * CurrencyManager.cs (get_Current): after the late binding
20854 listposition = -1 fix, we need to guard against it here and return
20855 null, otherwise we raise an exception (which is swallowed
20856 elsewhere, and breaks datagrid databinding.)
20858 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20860 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
20861 than WM_SYSKEY, don't throw if get something unexpected (#78507)
20863 2006-05-26 Jackson Harper <jackson@ximian.com>
20866 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20867 values, it's faster and it's all we care about (we don't care if
20868 the names aren't equal).
20869 * KeyboardLayouts.cs: Eliminate some dead code.
20871 * X11Keyboard.cs: Lazy init keyboard detection.
20872 - Cleanup access modifiers a little.
20874 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20876 * XplatUIX11.cs: Once again, attempting to get layout just right.
20878 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20880 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20881 the sizes of each link section, that will result in sizes that
20882 match DrawString's layout (Fixes #78391)
20884 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
20886 * FileDialog.cs: If AddExtension property is true autocomplete the
20887 extensions in SaveFileDialog correctly. Fixes bug #78453.
20888 Set MyNetwork and MyComputer to "C:\" for windows. This should
20889 fix part 8 of bug #78446 for now.
20891 2006-05-26 Chris Toshok <toshok@ximian.com>
20893 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
20894 invalidate the current row header if we need to, but presumably
20895 we'll invalidate the row corrsponding to the bounds or
20897 (GridHScrolled): switch back to this method, as it's part of the
20898 public api. *sigh*.
20899 (GridVScrolled): same.
20900 (OnMouseWheel): hack up something that more or less works. Call
20901 GridHScrolled/GridVScrolled directly, instead of duplicating much
20902 of their code here.
20903 (EnsureCellVisibility): reinstate a bunch of this code, since we
20904 can't just set the scrollbar Value and expect to do all the work
20905 in the ValueChanged handler. Also, Call Update() after scrolling
20906 in one direction so the other XplatX11.ScrollWindow call has the
20907 proper stuff in the proper places.
20908 (EditCell): set is_editing to true before calling .Edit.
20910 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20911 don't bother comparing first.
20912 (OnKeyPress): call grid.ColumnStartedEditing before calling
20913 base.OnKeyPress. this will set is_changing and invalidate the row
20914 header if necessary.
20915 (ProcessKeyMessage): for WM_CHAR messages, call
20916 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
20919 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20920 it's done in the DataGrid.
20921 (NextState): call grid.ColumnStartedEditing, which takes care of
20922 invalidating the row header (and setting is_changing).
20924 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20925 here. it's done in the DataGrid.
20927 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20929 * Control.cs: allow changing the cursor when the mouse position is
20930 out of bounds but Capture is set.
20931 * LinkLabel.cs: handle the case when the mouse button is pressed on the
20932 linklabel but released somewhere else.
20934 2006-05-25 Jackson Harper <jackson@ximian.com>
20936 * TreeView.cs: When we get focus if there is no selected node make
20938 - Remove some uneeded setup code from Draw.
20939 * TreeNodeCollection.cs: If the tree doesn't have a top node when
20940 a new node is inserted make the new node the top.
20942 * Timer.cs: Use Utc time so that no local time zone stuff needs to
20943 be used (should be faster).
20945 2006-05-25 Chris Toshok <toshok@ximian.com>
20947 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20948 problem with the last commit.
20950 2006-05-25 Chris Toshok <toshok@ximian.com>
20952 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20953 need the invalidate call here, while scrolling right-to-left via
20954 the left arrow key (i.e. moving the editing cell while scrolling).
20956 * DataGrid.cs (.ctor): remove the initialization of
20957 ctrl_pressed/shift_pressed. We no longer track them using key
20958 up/down handlers, but by using Control.ModifierKeys. Also, switch
20959 to using ValueChanged handlers on the scrollbars instead of
20960 Scrolled event handlers. This simplifies a bunch of the scrolling
20962 (GridHValueChanged): rename from GridHScrolled, and change it to
20963 work with the new event args.
20964 (GridVValueChanged): same.
20965 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20966 (OnMouseWheel): actually scroll the datagrid. Don't change the
20968 (ProcessGridKey): correct all the keyboard navigation stuff I
20969 could find. Ctrl up/down/left/right/home/end work now.
20970 (EnsureCellVisibility): correct method name spelling. Also,
20971 simplify this a touch by not explicitly calling the
20972 ScrollToRow/ScrollToColumnInPixels methods. We just set the
20974 (OnKeyUpDG): no need for this method now.
20976 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20978 * LinkLabel.cs: display the OverrideCursor when hovering the label.
20981 2006-05-25 Chris Toshok <toshok@ximian.com>
20983 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20986 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20988 * Application.cs: Moved setting of is_modal and closing to before
20989 we create the control, to allow the event handlers called as a
20990 result of creation affect closing. Also removed Gonzalo's previous
20991 change to setting DialogResult, the behaviour has been moved to
20994 - ShowDialog(): Removed explicit creation of the form, let RunLoop
20996 - ShowDialog(): If no dialog result is set, we need to return Cancel
20997 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20998 the close is cancelled
21000 2006-05-25 Jackson Harper <jackson@ximian.com>
21002 * StatusBar.cs: We only need to update the sizes of the other
21003 panels when we have auto size contents. Also we are only updating
21004 the contents of the panel, not the borders, so compensate for the
21005 border width (TODO: get this width from the theme somehow).
21006 * TreeView.cs: Scrollable is true by default
21007 - Use invalidate instead of refresh where needed
21008 - Factor the scrollable value into scrollbar updating
21009 - Update the scrollbars if the Scrollable property is altered
21010 - Update the selected node if its ImageIndex is changed
21011 - Handle null nodes in UpdateNode (mainly so we don't have to
21012 check if selected is null when updating it
21013 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21014 are factored into the visible count
21015 - Use VisibleCount for clarity in the code
21016 - When the font is changed we need to recurse through all the
21017 nodes and invalidate their sizes
21019 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21021 * Application.cs: set the DialogResult to fixed when the main form is
21022 hidden or destroyed while being modal.
21024 2006-05-25 Miguel de Icaza <miguel@novell.com>
21026 * Theme.cs: Use Tangoified messagebox icons.
21028 (GetSizedResourceImage): Also cope with width = 0 and do not
21029 trigger a warning in that case (0 means "give me your icon from
21030 the resouce, no special size needed).
21032 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21034 * Application.cs: Leave runloop if the the main modal form is
21035 hidden (fixes #78484)
21037 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
21039 * BindingContext.cs : reject null datasource in Contains() and
21041 * CurrencyManager.cs : check data_member validity when data_source
21042 is dataset. When it is late binding, the initial position is -1.
21044 2006-05-24 Jackson Harper <jackson@ximian.com>
21046 * TreeNodeCollection.cs: Dont't recalculate the visible order on
21047 inserted nodes that aren't visible. This changes the
21048 max_visible_order which confuses scrollbar settings.
21049 - Use the enumerator to get the prev node instead of duplicating
21051 * TreeView.cs: Use new method for setting scrollbar values
21052 - Don't set the bounds every time the scrollbar is updated
21053 - When updating below the root node use an invalidate instead of a
21054 refresh to prevent the child controls (scrollbars) from being
21055 refreshed. (UpdateBelow still needs to be reworked anyways).
21056 - Reenable SetBottom now that visible orders are set correctly,
21057 added some debug code incase we ever get bad values there again.
21058 - Set the scrollbar max to 2 less then the max value, this
21059 compensates for the max value being one above the node count, and
21060 for scrollbars adding one extra "notch".
21061 - When drawing image nodes if there is an imagelist we draw the
21062 first image in the list if the supplied image index is out of the
21063 image list's bounds.
21065 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21067 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
21068 we receive a size change from the WM (Fixes #78503)
21070 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21072 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
21073 rectangle (Fixes #78501)
21075 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21078 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
21080 - Fixed MouseMove to no longer switch pressed state unless the left
21081 mouse button is pressed. Atsushi provided the original patch (#78485)
21083 2006-05-24 Jackson Harper <jackson@ximian.com>
21085 * ScrollBar.cs: New internal methods that allow us to change a
21086 couple values on the scrollbar (the most common case is maximum
21087 and large change) without getting multiple invalidates.
21089 2006-05-24 Chris Toshok <toshok@ximian.com>
21091 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
21092 (Edit): save off the original state in oldState, and set
21093 grid.is_editing to true.
21094 (OnKeyDown): abort editing if escape is pressed. also, call
21095 NextState if space is pressed.
21096 (OnMouseDown): call NextState.
21097 (NextState): factor out shared code from OnKeyDown and OnMouseDown
21098 here. Also, only invalidate the row header once (on the initial
21099 is_changing switch) to save on redraws.
21101 2006-05-24 Chris Toshok <toshok@ximian.com>
21103 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
21104 if the value in the cell is different than it was before. This
21105 keeps us from triggering a layout when we move around a datarid
21106 with a highlighted cell.
21107 (Edit): suspend layout when creating/positining the text box, and
21108 resume passing false so we don't ever actually re-layout.
21109 (ReleaseHostedControl): same.
21110 (EnsureTextBox): reformat slightly, and set WordWrap to false.
21112 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
21113 control-key sequences should go to the datagrid - remove that
21114 lock. Also, modify the conditions under which we move between
21115 cells when moving the cursor within a cell, and remove the "this"
21116 and "base" from field accesses. We weren't even consistent, given
21117 they all were in the base class.
21119 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
21121 * Binding.cs : (.ctor)
21122 An obvious NRE fix for BindingTest.CtorNullTest().
21124 2006-05-23 Chris Toshok <toshok@ximian.com>
21126 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
21127 them between lines. This fixes some quirks editing cells in the
21130 2006-05-23 Jackson Harper <jackson@ximian.com>
21132 * TreeView.cs: Use begin/end update when doing expand/collapse all
21133 so that we don't get flicker on the scrollbar.
21135 2006-05-23 Jackson Harper <jackson@ximian.com>
21137 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
21138 treenode calculations to be independant of the painting code. To
21139 do this nodes track a visible order which is calculated by the
21141 - Call new methods for expanding/collapsing nodes. These methods
21142 use scrollwindow so we don't have to update everything below the
21144 * TreeView.cs: Refactored drawing and scrolling code. We don't
21145 need to update nodes when drawing anymore or calculate scrollbar
21147 - Added new methods for expanding/collapsing nodes. These methods
21148 use ScrollWindow so as to not have to redraw all the nodes below.
21149 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
21150 we add/remove nodes or sort.
21151 - Handle removing the selected and the top node properly.
21153 2006-05-23 Chris Toshok <toshok@ximian.com>
21155 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
21156 maybe this should actually happen in the datagrid code?
21157 (EndEdit): no need to invalidate anything, given that
21158 ReleaseHostedControl causes the datagrid to relayout, which
21159 invalidates everything anyway.
21161 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
21162 in SetCurrentCell).
21163 (set_SelectionBackColor): call InvalidateSelection instead of
21165 (set_SelectionForeColor): same.
21166 (BeginEdit): Flesh this out a bit.
21167 (CancelEditing): only do any of this if we're editing/adding.
21169 (OnMouseDown): there's no need to cancel editing here, it's done
21171 (SetCurrentCell): only invalidate the current row header if it's a
21172 different row than the new one.
21173 (ShiftSelection): fix this to work like MS does.
21174 (ResetSelection): factor out the invalidation of selected_rows to
21175 InvalidateSelection.
21176 (SetDataSource): cancel any editing that's going on.
21178 * DataGridColumnStyle.cs
21179 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
21180 call the non-interface version.
21182 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
21183 header rectangle with the clip rectangle so we don't redraw the
21184 entire header for just a small area. Gets rid of the last flicker
21185 when horizontally scrolling.
21186 (DataGridPaintRow): same.
21188 2006-05-23 Mike Kestner <mkestner@novell.com>
21190 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
21191 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
21192 poorly placed checkbox on the MS control. Fixes Alex's unfiled
21193 Critical bug report.
21195 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
21197 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
21198 and this fixes #78493
21200 2006-05-23 Miguel de Icaza <miguel@novell.com>
21202 * Theme.cs (GetSizedResourceImage): Scale images if the proper
21205 * FileDialog.cs: Do not change the background for the side bar as
21206 it wont work nicely with the theme, and also reduces the artifacts
21207 in rendering the icons (which I want to fix too).
21209 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
21210 resources, not resgen resources.
21212 (PlatformDefaultHandler): Pull images using the new API.
21214 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
21216 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
21217 a reference to the hwnd and will not remove it unless there are
21218 no pending exposures (fixes #78341)
21219 * XplatUI.cs: Improved debug
21221 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
21223 * MenuAPI.cs : don't handle OnClick event when it was not the left
21224 button. Fixed bug #78487.
21226 2006-05-23 Mike Kestner <mkestner@novell.com>
21228 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
21229 prefer submenus to the top menu for item lookup, to avoid popping down
21232 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
21234 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
21235 Graphics.FillRectangle as the visual results are really bad (even
21236 on win). We now draw perfect arrows (and perfect shadows when the
21237 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
21238 Pen.DashPattern to draw the dots of each line.
21240 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
21242 * FileDialog.cs: Update the filename combobox when navigating through
21243 the ListView with the cursor keys. Fixes part 7 of bug #78446.
21245 2006-05-22 Mike Kestner <mkestner@novell.com>
21247 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
21250 2006-05-22 Mike Kestner <mkestner@novell.com>
21252 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
21253 requests. Fix a misspelled parameter and a copy paste exception error
21256 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
21258 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
21259 to get the same width/height (5/13) on X11 as the default font has on
21260 win32. This means that our DefaultFont emSize is smaller than the
21261 the MS SWF equivalent (even thought the width/height stays the same)
21263 2006-05-20 Jackson Harper <jackson@ximian.com>
21266 * MdiWindowManager.cs:
21267 * InternalWindowManager.cs: Make sure to use the border width from
21270 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
21272 * PrintDialog.cs: Implements printer details
21274 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
21276 * FileDialog.cs: Added focus handling for PopupButtonPanel.
21277 Fixes part 1 and 2 of bug #78446
21279 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
21281 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
21282 instead of sticking to the first ever calculated value
21284 2006-05-19 Mike Kestner <mkestner@novell.com>
21286 * ComboBox.cs: fix mouse motion selection to use MousePosition and
21287 PointToClient, since Capture is set. Fixes #78344.
21289 2006-05-19 Mike Kestner <mkestner@novell.com>
21291 * ListView.cs: match MS behavior in Details view where items are not
21292 drawn if Columns.Count == 0.
21293 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
21294 Use a separate pen to draw the check, since changing the width affects
21295 the box as well. Fixes #78454.
21297 2006-05-18 Miguel de Icaza <miguel@novell.com>
21299 * ListView.cs: ArgumentOutOfRangeException, single versions of the
21300 exception should throw the name of the invalid argument.
21302 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
21303 there are no files listed.
21305 2006-05-18 Jackson Harper <jackson@ximian.com>
21307 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
21310 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21312 * Control.cs: Brought back our old UpdateZOrder method as a private
21313 function and switched our calls from UpdateZOrder to the new one.
21314 This fixes the Paint.Net canvas disappearing bug.
21316 2006-05-18 Jackson Harper <jackson@ximian.com>
21319 * ThemeWin32Classic.cs:
21320 * InternalWindowManager.cs: Move the drawing into the theme,
21321 expose everything the theme should need from the window manager.
21323 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21325 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
21326 from the call to NativeWindow to avoid walking up the parent chain
21327 further than needed (speeds up setting cursors and avoids setting
21328 the wrong cursor if a parent has another cursor defined)
21329 * Cursor.cs: When loading an icon as cursor, MS uses the center of
21330 the icon as hotspot, not what's contained as hotspot in the icon
21331 file. This fixes the perceived drawing offset seen with Paint.Net
21333 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21336 - Store the calculated rectangle in Hwnd object and use it when
21337 setting the client size
21338 - Force Toolwindows to always be type Dock, to ensure they're on top
21340 2006-05-18 Mike Kestner <mkestner@novell.com>
21342 * ComboBox.cs: first pass at ComboBox rework. Layout is more
21343 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
21344 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
21345 Substantial refactoring to remove confusing nested classes. Coding
21346 standard and Get+Set->property refactorings. Shift to index based
21347 highlighting in ComboListBox instead of constantly using IndexOf and
21348 Items[]. Add invalidations on resize for DropDownList to fix ugliness
21349 in FileDialog growth. Draw borders manually since Simple mode needs
21350 to look like two independent controls. Make listbox border
21351 conditional to DropDownStyle. Improved OwnerDraw support.
21353 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
21355 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
21356 Don't set the disposed graphics to null, so we can throw the "right"
21357 exception if the graphics is reused later (added a flag to avoid
21358 double disposing). Some behaviours are different under 2.0 and are
21359 filled under bug #78448.
21361 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
21363 * Control.cs: When double-buffering is enabled, we need to reset
21364 our graphics context between paint calls. Otherwise, any
21365 transformations and other alterations on the context will
21366 become cumulative (#77734)
21368 2006-05-18 Mike Kestner <mkestner@novell.com>
21370 * ListView.cs: do focused item selection like MS on clicks.
21371 Rework focus handling for ItemControl so LostFocus invalidates as
21373 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
21374 the ListView ItemControl has focus.
21376 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
21378 * XplatUIX11.cs: If client_window ends up being width or height zero
21379 due to border settings, move it off window inside whole_window (#78433)
21381 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
21383 * Mime.cs: Shrink the mime file cache correctly.
21385 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
21387 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
21389 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21391 * XplatUIX11.cs (AddExpose): More sanity checks
21393 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21396 - AddExpose: Don't add expose ranges outside the size of our
21398 - Cast opacity values to Int32 to avoid crashes with certain
21400 - Added disabled code paths that protect against illegal cross-
21401 thread painting (Developers.exe)
21403 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21405 * ProgressBar.cs: Invalidate the control when it's resized
21406 since block size is based on control size. (#78388)
21408 2006-05-16 Miguel de Icaza <miguel@novell.com>
21410 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
21411 of setting the incoming argument to the "reset" value, we set the
21412 this.datamember to string.empty (before we were invalidating the
21417 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21419 * Form.cs: Only apply transparency settings after the form
21420 is created. (Fixes #77800)
21422 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21424 * ApplicationContext.cs: Grab the HandleDestroyed event so
21425 we know when to fire OnMainFormClosed
21427 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21429 * Application.cs: Introduced sub-class to allow tracking of
21430 threads and centralized triggering of the event mess for
21431 ThreadExit, AppExit, etc.. (#76156)
21433 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
21436 - Do not return a null icon index value for a mime subclass.
21437 Instead try the main mime type class too.
21438 - Seems that some newer distributions don't have a link to some
21439 gnome default icons anymore. So check the default gnome dir too.
21442 2006-05-16 Jackson Harper <jackson@ximian.com>
21444 * MdiClient.cs: Don't paint the parent background image if we have
21445 our own background image.
21447 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
21450 - PerformLayout: Do not shrink space filled by DockStyle.Fill
21451 controls, all filled controls are supposed to overlap (#78080)
21452 - UpdateZOrder is supposed to update the control's z-order in the
21453 parent's z-order chain. Fixed to behave like that
21454 - BringToFront: Removed obsolete code
21455 - SendToBack: Simplyfied
21456 - SetChildIndex: Trigger layout calculations when Z-order changes
21457 since layout is done by z-order
21459 2006-05-16 Chris Toshok <toshok@ximian.com>
21461 [ fixes bug #78410 ]
21462 * DataGrid.cs (set_AlternatingBackColor): use
21463 grid_drawing.InvalidateCells instead of Refresh().
21464 (set_BackColor): call grid_drawing.InvalidateCells.
21465 (set_BackgroundColor): use Invalidate instead of Refresh.
21467 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
21468 invalidate the cell area.
21470 2006-05-15 Chris Toshok <toshok@ximian.com>
21472 [ fixes bug #78011 ]
21473 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
21474 on to DataGridPaintRow.
21475 (DataGridPaintRow): take a clip argument, and only draw the cells
21476 which intersect it. same with the not_usedarea.
21478 * Theme.cs (DataGridPaintRow) add @clip parameter.
21480 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
21481 XplatUI.ScrollWindow.
21482 (ScrollToRow): same.
21484 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
21485 with last column which was causing a gray swath to appear with the
21486 XplatUI.ScrollWindow code.
21488 2006-05-15 Chris Toshok <toshok@ximian.com>
21490 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
21491 use XplatUI.ScrollWindow.
21492 (VerticalScrollEvent): use XplatUI.ScrollWindow.
21494 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21496 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
21498 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21500 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
21501 file since there are no equivalent X11 cursors
21503 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21505 * MonthCalendar.cs : DateTimePicker should reflect selected date
21506 on mouse*up*, not mouse*down*. Fixed originally reported part of
21509 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
21511 * TabControl.cs : When argument index is equal or more than tab
21512 count, just ignore. Fixed bug #78395.
21514 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
21516 * Control.cs: Dispose all child controls when control is diposed (#78394)
21518 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21520 * ColorDialog.cs: Finally it is possible to select the color with
21523 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21525 * PrintDialog.cs: Fix typo
21527 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
21529 * PrintDialog.cs: PrintDialog is not resizable
21530 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
21531 color. Made some ToolBar drawing methods protected virtual.
21533 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
21535 * PrintDialog.cs: Implementation of the PrintDialog
21537 2006-05-12 Chris Toshok <toshok@ximian.com>
21539 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
21540 thumb, instead use MoveThumb. This has the side effect of making
21541 most of the other thumb moving machinery use MoveThumb as well.
21542 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
21543 need to actually invalidate the rectangle where the new thumb will
21545 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
21546 We force an Update() after, so it's not as fast as it could be,
21547 but at least there's zero flicker and no droppings.
21548 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
21549 (UpdateThumbPos): add another argument (dirty), which says whether
21550 or not to calculate/add dirty regions which we later invalidate.
21551 For cases where we know we're going to use MoveThumb, we pass
21552 false for this. Otherwise, pass true.
21554 2006-05-12 Jackson Harper <jackson@ximian.com>
21556 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
21559 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
21561 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
21562 and GetClipRegion methods and UserClipWontExposeParent property.
21563 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
21564 overriding UserClipWontExposeParent property, setting to false, since
21565 Win32 handles the required expose messages to draw our clipped parent
21567 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
21568 PaintEventStart to set the user clip region if set.
21570 - Now internally tracking the Region for the control since we need to
21571 store it if the handle is not yet created and only set it when it
21572 becomes created. Before setting the region forced handle creation
21573 - Added code to draw the parents underneath a user-clipped region
21574 * Hwnd.cs: Added UserClip property
21576 2006-05-12 Chris Toshok <toshok@ximian.com>
21578 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
21579 (set_Maximum): same.
21580 (set_Minimum): same.
21581 (set_SmallChange): same.
21582 (OnMouseUpSB): remove the call to refresh when releasing the
21583 thumb. We shouldn't need it.
21585 2006-05-12 Miguel de Icaza <miguel@novell.com>
21587 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
21588 AutoSize set to None, we do not need to relayout everything, we
21589 just need to invalidate the current region.
21591 (Draw): Do not draw the entire ClientArea, just redraw the
21592 clip area being passed.
21594 * MdiClient.cs: Make MdiClient constructor with the Form argument
21597 2006-05-12 Jackson Harper <jackson@ximian.com>
21599 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
21600 parents background image, but strangely not their own.
21601 - (DrawStatusBarPanel): Take into account horizontal alignment
21602 when drawing the strings and icons.
21604 2006-05-12 Mike Kestner <mkestner@novell.com>
21606 * ListBox.cs: avoid invalidations for focus when the collection is
21609 2006-05-12 Chris Toshok <toshok@ximian.com>
21611 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
21612 invalidate the entire thumb area. Call InvalidateDirty which
21613 limits the redraw to the thumb itself and surrounding pixels.
21615 * XplatUIX11.cs (ScrollWindow): optimize copying.
21617 2006-05-12 Chris Toshok <toshok@ximian.com>
21619 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
21620 Figure out the positioning/layout in a single pass instead of
21621 multiple recursive invocations. Speeds up the initial display of
21622 the data grid. Also, make many things private that were
21623 originally public but unused outside this class.
21625 2006-05-11 Jackson Harper <jackson@ximian.com>
21627 * MdiClient.cs: Improved layout code.
21629 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
21631 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
21632 not SelectedObject.
21634 2006-05-11 Chris Toshok <toshok@ximian.com>
21636 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
21637 union of that will always be {0,0,width,height}.
21639 2006-05-11 Jackson Harper <jackson@ximian.com>
21641 * Form.cs: Match MS's DefaultSize for forms (they must have
21642 changed the size in sp2).
21644 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21646 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
21648 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
21650 * TextControl.cs : Fixed bug #78109. This incorrect position
21651 comparison caused crash on automatic line split.
21652 * TextBoxBase.cs : reduce duplicate code.
21654 2006-05-10 Jackson Harper <jackson@ximian.com>
21656 * MdiClient.cs: Active form is only sent to the back when using
21657 the Next form functionality, when a form is clicked the current
21658 active shouldn't be sent to the back.
21659 - Layout the mdi windows when the container is first made visible.
21660 * Form.cs: Give the MdiClient a ref to the containing form when we
21663 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21665 * LinkLabel.cs : link_font could be uninitialized, so populate one
21666 before actual use. Fixed bug #78340.
21668 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
21670 * XplatUIX11.cs : clipboard format native value is IntPtr.
21673 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21676 - Instead of showing context menus directly we send WM_CONTEXTMENU,
21677 which is passed up the parent chain by DefWndProc
21678 - We now handle WM_CONTEXTMENU to display any menu, or pass it
21679 to DefWndProc (#77956)
21680 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
21682 2006-05-10 Jackson Harper <jackson@ximian.com>
21684 * MdiClient.cs: We need to remove the controls from the mdi
21685 collection, when we close the window.
21686 * MdiWindowManager.cs: Special handling of closing mdi windows.
21687 * InternalWindowManager.cs: Make the close method virtual so the
21688 mdi window manager can handle it specially.
21690 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
21693 - Recalculate grid when the data source has changed
21694 - Matches styles provided by user from all data sources types
21695 * DataGridTableStyle.cs: For columns that provided by the user set the
21696 with the preferred value is there was unassigned.
21697 * CurrencyManager.cs: throw OnItemChanged event
21699 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21701 * PictureBox.cs: Don't animate until handle is created. Start animation
21702 when handle is created.
21704 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21706 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
21708 * XEventQueue.cs: We don't need to provide the extra info
21710 2006-05-10 Jackson Harper <jackson@ximian.com>
21712 * MdiClient.cs: If the mdi clients parent form has a background
21713 image set, we draw that background image for the mdi area's
21716 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
21718 * TextBoxBase.cs: Set IBeam cursor (#78347)
21720 2006-05-10 Mike Kestner <mkestner@novell.com>
21722 * ToolBar.cs: fix some text padding issues with ButtonSize
21723 calculation. Update the default size to match MS documentation.
21724 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
21725 button size. Fixes #78296.
21727 2006-05-10 Mike Kestner <mkestner@novell.com>
21729 * ListBox.cs: use is_visible for scrollbar positioning in case the
21730 control isn't on screen yet. Fix off by one with Right vs Width
21731 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
21733 2006-05-10 Jackson Harper <jackson@ximian.com>
21735 * X11Dnd.cs: Drop to a control with another control on top of it.
21736 * ToolBar.cs: Work on a copy of the buttons list, so that it can
21737 be modified in click handlers. TODO: Look for similar problems in
21740 2006-05-09 Jackson Harper <jackson@ximian.com>
21742 * Form.cs: Window managers need the old window state when setting
21744 * InternalWindowManager.cs: Allow the base mdi window manager to
21745 handle more of the MDI only stuff (like maximize buttons).
21746 * MdiWindowManager.cs: Fix some snafus in changing the window
21747 state. Add all the menu functionality, for both popup and
21749 * MdiClient.cs: When a new form is selected the currently
21750 activated form is sent to the back, this matches MS.
21751 - Implement a new method to activate the next mdi child window.
21753 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21756 - Added new InternalCapture method to allow controls to prevent
21757 the capture behaviour on the click handlers
21758 - Switched to use InternalCapture
21760 - Using InternalCapture to prevent mouse captures from being released
21761 on mouse button release (Fixes #78100)
21762 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
21763 returns Form borders if a caption is present. (Fixes #78310)
21765 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
21767 * TreeNode.cs: Changed serialization .ctor to not require every field
21768 to be present. (#78265)
21769 * OwnerDrawPropertyBag.cs: Added serialization .ctor
21771 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
21773 * MimeIcon.cs: for is faster than foreach for strings.
21775 2006-05-05 Mike Kestner <mkestner@novell.com>
21777 * CheckedListBox.cs: update check handling code to not use selected.
21778 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
21779 behavior for visual feedback, motion response, shift/ctrl handling,
21780 and properly deal with all 4 selection modes. Updates to bounds
21781 handling logic. Add scroll wheel support. [Fixes #77842]
21783 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21786 - Moved adding of Implicit controls into .ctor. That way, subsequent
21787 creation of the controls will not cause them to think they are
21788 toplevel windows (fixes #78200 header problem)
21789 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
21790 - Switched visibility setting of header control to use internal field
21791 to avoid triggering handle creation
21792 - Now checking if handle is created before causing a refresh when items
21793 are added (This makes us now match handle creation time with MS)
21794 * Splitter.cs: Removed loading of private splitter cursor, switched to
21795 Cursors version now that that is loading the right ones
21796 * Cursors.cs: Load proper splitter cursors from resources
21797 * Cursor.cs: Added second method of loading resource cursors for the
21798 VS.Net users amongst us
21800 2006-05-05 Mike Kestner <mkestner@novell.com>
21802 * ListView.cs: give header_control a minimum size based on the
21805 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
21807 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
21808 window seems to do that with metacity, so set that type. (#78120)
21810 2006-05-05 Mike Kestner <mkestner@novell.com>
21812 * ListViewItem.cs: fix Details mode checkbox layout bug.
21813 * ThemeWin32Classic.cs: draw a ListView column header for unused space
21814 at the end of the header, if it exists. [Fixes for #78200]
21816 2006-05-04 Jackson Harper <jackson@ximian.com>
21818 * MdiClient.cs: Add a helper property to get the container form.
21819 * MdiWindowManager.cs: We have to make sure to use the menu origin
21820 when drawing the icons and buttons, this fixes maximized window
21821 icons/buttons on win32.
21822 * InternalWindowManager.cs: Reset the restore captions when a
21823 window goes from Maximized to Minimized and vice versa. Move the
21824 DrawMaximizedButtons into the MdiWindowManager source, tool
21825 windows can't be maximized. NOTE: This could use a little
21826 refactoring if time ever permits.
21828 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21830 * TextBox.cs: Add MWFCategoryAttributes
21831 * TextBoxBase.cs: Add MWFCategoryAttributes
21832 * Form.cs: Add MWFCategoryAttributes
21834 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
21836 * Control.cs: Add MWFCategoryAttributes
21837 * ScrollableControl.cs: Add MWFCategoryAttributes
21839 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
21841 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
21842 Divider is true. Fix a little glitch in PropertyToolBar
21845 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
21848 - Dispose: Call base.Dispose, this causes the disposed event
21849 to be fired (and probably other, more important stuff)
21850 - SetVisibleCore: Set is_visible to true after creating the
21851 window so that the window still gets created invisible (if
21852 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
21853 to generate a WM_ACTIVE message
21854 * Form.cs: Call Dispose when we want to destroy the window, instead of
21855 just destroying the handle (Dispose will do that for us)
21857 - RootWindow also needs a queue, so we can properly process the
21858 property change events from RootWindow (like Activate)
21859 - Generatic synthetic WM_ACTIVE message when the active window is
21862 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21864 * LinkLabel.cs: Trigger a recalc of our label dimensions when
21867 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21869 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21870 for determining width and height (image might not be assigned if
21871 we're drawing an imagelist)
21873 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21875 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21876 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21878 * Theme.cs: No longer returns hardcoded menu height, instead calls
21880 * Form.cs (OnLoad): Scaling happens before triggering Load events
21883 2006-05-01 Mike Kestner <mkestner@novell.com>
21885 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
21887 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21889 * TextBoxBase.cs: Removed Fixme
21890 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21892 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21895 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21896 the rectangle relative to the parent, considering borders. We
21897 don't really want that.
21898 - ScrollWindow: Fixed warning to be more understandable
21899 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21900 scrollbars and scroll only the visible area
21901 * RichTextBox.cs: Removed debug output
21903 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21905 * NumericUpDown.cs (Text): Just use base
21906 * UpDownBase.cs: Ensure txtView is created before using it
21908 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21910 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21911 casting to IntPtr to avoid 64bit overflow errors
21913 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21916 - AllowDrop: Don't force handle creation.
21917 - CreateHandle: Added call to tell driver if we're allowed to drop
21919 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21921 * FileDialog.cs: Remember the last directory not only for the
21922 current instance but also for new FileDialog instances.
21924 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21926 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21927 broke sending async messages
21929 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21932 - ScrollWindow: Fixed method. We finally generate expose events again
21933 for scrolled areas. This was causing 'garbage' when scrolling
21934 textbox and other controls that used ScrollWindow
21935 - Switched from using the regular queue for paint events to the MS
21936 model of 'generating' paint events when the queue is empty.
21937 We use the new XQueueEvent.Paint subclass to store which windows
21939 - AddExpose now takes the x/y/width/height of the exposed area
21940 and inserts the window into the paint queue if not already there
21941 - InvalidateWholeWindow: Switched to use new AddExpose method
21942 - UpdateMessageQueue: Added which queue to monitor for paint events
21943 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21944 the unlikely case nothing above handles it. We reset the expose
21945 pending states to get them off the queue.
21946 - GetMessage: Now pulls a paint event if no other events are in the
21948 - Invalidate: Switched to new AddExpose method
21949 - PeekMessage: Updated to understand pending paint events
21950 - UpdateWindow: Fixed logic bug. We were only updating if the window
21951 didn't need updating. Also switched to sending WM_PAINT directly,
21953 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21954 and random access Remove(). The random access is needed to handle
21955 UpdateWindow() where a WM_PAINT is sent directly without accessing
21957 * ScrollBar.cs: Added Update() calls to cause immediate updates to
21958 allow for better feedback when scrolling. Scrollbars are small and
21959 the immediate update should make it 'feel' more responsive without
21960 slowing things down. ScrollBar still needs it's invaliate logic
21961 updated to not always invalidate the whole bar on certain changes.
21963 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21966 (BackColor): if the control does not support a transparent background,
21967 return the default backcolor when the parent backcolor is transparent.
21969 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
21971 * Application.cs: Updated to new StartLoop/GetMessage API
21972 * RichTextBox.cs: Provide some output on RTF parsing errors
21973 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21974 new queue_id argument to GetMessage and PeekMessage to allow faster
21975 handling of per-thread queues in drivers.
21976 * Hwnd.cs: Added Queue tracking and property
21977 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21978 * XEventQueue.cs: Added thread trackingA
21979 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21981 - Implemented new per-thread queue
21982 - GetMessage: Fixed return/break behaviour on several cases. We were
21983 returning stale messages in some cases, instead of just processing
21986 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21988 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21990 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
21992 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21993 fixed off-by-one comparisons between Width/Height and Right/Bottom.
21995 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21997 * PropertyGridView.cs: Fix drop down width.
21999 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22001 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22002 a mess in DrawToolBar, so I removed one of them.
22004 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22006 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22007 needed (clip). Otherwise we get artifacts.
22009 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22011 * FixedSizeTextBox.cs: Added constructor to allow specifying which
22013 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22014 and switched FixedSizeTextBox to only be fixed vertical (#78116)
22015 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22016 if it matches the scale base font (avoids unneeded scaling)
22018 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22020 * X11DesktopColors.cs: One gtk_init_check should be enough
22022 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22024 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22027 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22030 - Generate OnTextChanged for Backspace even if we're only deleting
22031 the current selection
22032 - When setting the Text property, only select all text if the
22033 control does not have focus when it is being set. Otherwise
22034 just place the cursor at the beginning of the control
22036 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22038 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
22039 Added a little helper to draw PropertyGrid ToolBar with a different
22040 border and a different BackColor.
22041 * PropertyGrid.cs: Some background parts didn't get painted with the
22042 correct background color. Added a class that helps us to draw the
22043 correct border for PropertyGridView and a class that helps us to
22044 draw ToolBars with a different backcolor
22045 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
22047 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
22049 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
22050 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
22052 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22054 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
22055 into the palette entries. Also, since we're working on a copy
22056 we needed to copy the palette back onto the bitmap.
22057 * Cursor.cs: Same fix as XplatUIWin32.cs.
22059 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22061 * ImageListStreamer.cs: Need to read the var (or we're off)
22063 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22065 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
22066 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
22067 TextBoxBase.cs: Unused var fixes
22068 * AxHost.cs: Small 2.0 fix
22069 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
22070 as it seems that is what at least Metacity expects. This will make
22071 icons show up on 64bit platforms. We still have some 64bit size
22072 issues, though, since the startup app window size still won't match.
22074 2006-04-25 Mike Kestner <mkestner@novell.com>
22076 * *.cs: cleanup newly reported exception var unused warnings.
22078 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22080 * ThemeWin32Classic.cs: Button image alignment now matches exactly
22083 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22085 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
22086 image. The image position is always the same, no matter if the
22087 button is pressed or not.
22089 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22091 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
22092 selection and set the correct filename for SaveFileDialog.
22093 Patch by Emery Conrad.
22095 2006-04-24 Mike Kestner <mkestner@novell.com>
22097 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
22098 check for item.X outside the ClientRect instead of item.Y. Fixes
22101 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22103 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
22104 trust that value blindly and do some sanity check. Fixes bug #77814.
22106 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22108 * ImageListStreamer.cs: save the mask as a 1bpp image.
22110 2006-04-21 Mike Kestner <mkestner@novell.com>
22112 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
22113 pass Checked and Indeterminate to the Theme Engine. Improve
22114 encapsulation with ListBox.
22115 * ListBox.cs: Keep a StringFormat instead of calculating it every item
22116 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
22117 nested types. Move all CheckState functionality to CheckedListBox.
22118 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
22119 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
22120 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
22121 single base list. Fix scrollbar sizing and placement to mirror MS.
22122 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
22124 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
22125 for CheckedListBox by using new DrawItemState info. Center the
22126 checkboxes on the items. Use new StringFormat property.
22128 2006-04-18 Jackson Harper <jackson@ximian.com>
22130 * Form.cs: MdiChildren don't do default locations the same way as
22131 regular forms. This prevents a crash when trying to position the
22134 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
22136 * PropertyGridTextBox.cs: Formatting, copyright
22137 * PropertiesTab.cs: Formatting
22138 * PropertyGrid.cs: Formatting
22139 * PropertyGridView.cs: Formatting, fix drop down, enabled double
22140 click toggling of values
22142 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
22144 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
22145 * Control.cs (.ctor): verify_thread_handle is static, don't reset
22146 every time a control is created
22147 * Application.cs: Removed obsolete EnableRTLMirroring method
22149 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
22151 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
22152 SelectedIndex to -1. Fixes bug #78121.
22154 2006-04-17 Jackson Harper <jackson@ximian.com>
22156 * Binding.cs: Handle null values for Current and BindingContext.
22157 This occurs when binding is a little delayed.
22158 * CurrencyManager.cs: return null for Current when there are no
22160 - Hookup to the listchanged event on the DataView and update
22161 bindings when the list is changed. This fixes late binding of
22164 2006-04-17 Jackson Harper <jackson@ximian.com>
22167 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
22170 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
22172 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
22174 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
22175 with the correct ButtonState
22177 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
22179 * XplatUIX11.cs: Improved distinguishing between window types to
22180 tell the WM a type closer to what the app wants (Fixes #78107)
22182 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
22184 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
22187 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
22189 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
22190 drawing code to reflect the size grip changes
22192 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22194 * ImageListStreamer.cs: fix handling of the mask that follows the main
22195 bitmap when deserializing and serialize it properly. The generated mask
22196 should better be a 1bpp image, but I'll do that later.
22198 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
22200 * FileDialog.cs: Show something in the DirComboBox on *nix if the
22201 path doesn't fit into some of our Current.Places
22203 2006-04-13 Jackson Harper <jackson@ximian.com>
22205 * ComboBox.cs: Use borders instead of drawing our own decorations,
22206 try to obey correct rules for heights.
22209 * ThemeClearLooks.cs:
22210 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
22211 this is now handled by borders.
22212 - Remove unused DrawListBoxDecorationSize method.
22214 2006-04-13 Mike Kestner <mkestner@novell.com>
22216 * MenuAPI.cs: null guarding for the disbled click check fixes crash
22219 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
22221 * ThemeWin32Classic.cs:
22222 - Fixed CPDrawStringDisabled
22223 - Corrected drawing of disabled menu items
22224 - Fixed drawing of disabled radio buttons (bug #78095)
22225 - Draw check in a disabled CheckBox with color ControlDark
22227 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22229 * Form.cs: Use the provided width when calculating the menu size;
22230 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
22231 and ClientSize.Width won't be updated yet
22232 * Application.cs: Use Visible instead of Show() to make form visible,
22233 this way we create the handle later and menusize is considered
22235 2006-04-12 Mike Kestner <mkestner@novell.com>
22237 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
22240 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22242 * TextBox.cs: Implemented context menu
22244 2006-04-12 Mike Kestner <mkestner@novell.com>
22246 * ListView.cs: implement box selection. fixes #77838.
22247 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
22249 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22251 * XplatUIX11.cs: Added setting of window type when transient window
22252 is created (metacity would move it otherwise)
22253 * X11Structs.cs: Added WINDOW_TYPE atoms
22254 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
22255 background (the control is Opaque but still wants transparent
22258 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22260 * Control.cs: Added OnPaintBackgroundInternal to allow controls
22261 that set Opaque but don't mean it (like all ButtonBase-derived
22262 controls) to still draw their background
22263 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
22266 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22268 * Control.cs (PaintControlBackground): Set the graphics object
22269 on our PaintEvent to null to prevent it from being disposed
22270 when the PaintEvent gets disposed
22272 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
22274 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
22275 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
22277 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
22280 - Added transparency check to BackColor property. Transparent
22281 backgrounds are only allowed if the control styles permit it
22282 - Added recursive painting of parent control background and
22283 foreground if a control with a transparent backcolor is drawn
22284 (Thanks to Tim Ringenback for providing his 'hack' as a base
22285 for this patch) Fixes #77985 and #78026.
22286 - Added Opaque style check before calling OnPaintBackground, no
22287 need to draw the background if the control is opaque
22288 - Removed ControlAccessibleObject owner variable (inherited from
22289 base, no need to define again)
22290 - Added some documentation links explaining the drawing events
22293 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22295 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
22296 that the affected control is the located at the left border of our
22297 parent (Fixes #77936)
22299 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22301 * TextBoxBase.cs: When rendering disabled or readonly controls,
22302 draw the background with 'Control' instead of 'Window' color as
22303 long as the user hasn't specifically set a color
22305 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22307 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
22308 since that won't be updated if the user types text (only if it's
22309 programatically set)
22311 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22313 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
22314 layout changes do to app-triggered resizes will have the proper
22315 display rectangle for layout
22317 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
22319 * ThemeWin32Classic.cs:
22320 - Make use of the SystemBrushes and SystemPens wherever possible
22321 - Corrected some highlight colors
22322 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
22324 * Theme.cs: Added Empty field to CPColor struct
22326 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
22328 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
22329 is displayed when calculating the display rectangle. Thanks to Mike
22330 for teaching me the err of my ways.
22332 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
22334 * ScrollableControl.cs:
22335 - Rewrote DisplayRectangle code, now returning the proper x/y coords
22336 (instead of 0,0) and we now return the real width/height instead of
22337 just the clientrectangle, adjusted for padding. The rectangle is
22338 now cached and created by the new CalculateDisplayRectangle method.
22339 - Created new CalculateDisplayRectange method, which basically does
22340 what get_DisplayRectangle() did originally, but now using the
22341 right edge instead of DisplayRectangle to determine the size of
22343 - get_Canvas(): Fixed it to properly calculate canvas for
22344 right/bottom controls which seem to be placed to the right/bottom
22345 of any controls that have a fixed location
22346 - Removed TODO that's taken care of
22347 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
22348 and SetDisplayRectLocation according to new MSDN2 docs
22349 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
22350 event when that is called, this is added for compatibility
22351 - ScrollControlIntoView(): Implemented.
22352 - Switched scrollbars to be implicit, they shouldn't be selectable
22353 * ContainerControl: Now that ScrollControlIntoView is implemented, we
22354 call it when the active control is set/changed
22355 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
22356 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
22357 implicit_control variable (used for native Win32 message generation)
22358 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
22359 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
22360 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
22361 * XplatUIStructs.cs: Added ScrollBarCommands enum
22363 2006-04-10 Jackson Harper <jackson@ximian.com>
22366 * CheckedListBox.cs:
22373 * PrintPreviewControl.cs:
22379 * UpDownBase.cs: Fixup base event overrides.
22381 2006-04-06 Mike Kestner <mkestner@novell.com>
22383 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
22384 all user-initiated value changes to min <= value <= max-thumbsz+1.
22385 (set_Value): check for vert/horiz when calculating new thumb position.
22386 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
22388 (OnMouseMoveSB): refactor the thumb dragging code and refine
22389 invalidation logic to reduce flicker.
22390 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
22391 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
22392 (UpdateThumbPosition): small code readability cleanup
22394 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
22396 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
22399 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
22401 * ThemeNice.cs: Use a better graphics effect when a button is pressed
22403 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
22405 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
22406 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
22407 This dramatically reduces the number of Pen.Dispose calls.
22408 Where possible call ResPool methods only once instead of calling it
22409 over and over again (for example for the same color).
22411 2006-04-06 Mike Kestner <mkestner@novell.com>
22413 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
22414 Also remove an unused private field on the collection. Fixes #77972.
22416 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22418 * ThemeNice.cs: Added ToolBar drawing code
22420 2006-04-06 Mike Kestner <mkestner@novell.com>
22422 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
22423 I'm assuming that means we need to look up the toplevel for the
22424 provided control. Fixes the crash trace in #77911 but exposes another
22425 crash in some strange reflection usage in NDocGui.
22427 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
22429 * ThemeNice.cs: Gave it a little silver touch and added Images
22431 * FontDialog.cs: FontDialog is not resizable
22432 * FileDialg.cs: Added SizeGripStyle.Show
22434 2006-04-05 Jackson Harper <jackson@ximian.com>
22436 * KeyboardLayouts.cs: Remove warning.
22438 2006-04-05 Jackson Harper <jackson@ximian.com>
22440 * Control.cs: Enable OnPaintInternal so we can use it for drawing
22441 all of our controls instead of Paint +=.
22456 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
22457 use OnPaintInternal. Remove Width/Height and Visible checks in
22458 paint handler, this is done at a higher level now.
22459 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
22460 * PaintEventArgs.cs: Add a handled flag so controls that don't
22461 want anymore painting after OnPaintInternal can make sure OnPaint
22464 2006-04-05 Mike Kestner <mkestner@novell.com>
22466 * Form.cs: fix the menu WndProc hacks to respect the native enabled
22467 state of the form, so that we don't process events when Modal dialogs
22468 are up. Fixes #77922.
22470 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
22472 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
22475 2006-04-05 Mike Kestner <mkestner@novell.com>
22477 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
22479 2006-04-05 Mike Kestner <mkestner@novell.com>
22481 * ListView.cs (HeaderMouseMove): null guarding for the over column
22482 when setting up the drag_to_index. Fixes #78015.
22484 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22486 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
22487 in the taskbar. Transient windows seem to accomplish that.
22489 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
22492 - Re-enabled CreateParams.X/Y code for FormStartPosition
22493 - Added code for manual placement when creating the Control
22494 - Incomplete patch to treat MDI forms differently when
22495 setting the ClientSizeCore. (Still need to figure out handling
22498 - When we're explicitly setting the X/Y position of a non-Child
22499 window, let the WM know. Metacity really wants this.
22501 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22503 * ThemeNice.cs: Added CPDrawButton
22505 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22507 * ThemeNice.cs: Changed the color for focused buttons and activated
22508 the arrows for small scroll buttons.
22510 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
22512 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
22513 anymore. Changed some method modifiers to protected (virtual)
22514 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
22516 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
22517 Updated drawing of menus, buttons and progressbars; added
22520 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22522 * ImageListStreamer.cs: implemented serialization/deserialization
22525 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
22527 * ThemeWin32Classic.cs:
22528 - Removed all the DrawFrameControl stuff; CPDrawButton,
22529 CPDrawCheckBox and CPDrawRadioButton are now handled directly
22531 - Updated and corrected the drawing code of CPDrawButton,
22532 CPDrawCheckBox and CPDrawRadioButton to better match ms
22533 - Updated theme checkbox and radiobutton code to use the CP*
22536 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22538 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
22541 2006-03-31 Jackson Harper <jackson@ximian.com>
22543 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
22545 * UpDownBase.cs: Don't CreateGraphics manually, use a
22546 Refresh. Ideally we would invalidate the correct areas here.
22548 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22551 - We now track the mapping state of windows. If a window (or
22552 one of it's parents) is not mapped we no longer permit
22553 WM_PAINT messages to be generated since we'd otherwise get
22554 lots of BadMatch X errors. Jackson did all the work figuring
22556 - Destroying the caret if the window it's contained in is
22557 destroyed. Can't use regular DestroyCaret method since it
22558 might fall into a drawing function (trying to remove the
22559 caret) and with that generate new BadMatch errors. Again,
22560 Jackson tracked this down.
22561 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
22562 make sure we send the messages to all windows. (The old code
22563 would send the WM_DESTROY to the window, and then all child
22564 windows would be 'gone' because the WM_DESTROY handle lookup
22565 would no longer find the destroyed window)
22566 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
22567 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
22569 2006-03-31 Jackson Harper <jackson@ximian.com>
22571 * ScrollableControl.cs: Dont recalc if we are not visible.
22573 2006-03-31 Mike Kestner <mkestner@novell.com>
22575 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
22576 the visibility branch.
22578 2006-03-31 Jackson Harper <jackson@ximian.com>
22580 * ScrollBar.cs: Cap values when incrementing/decrementing.
22582 2006-03-31 Mike Kestner <mkestner@novell.com>
22584 * MenuAPI.cs: setup menu.tracker for popup/context menus.
22585 * ToolTip.cs: guard against timer expirations with no active control.
22586 Not sure why it happened.
22588 2006-03-31 Mike Kestner <mkestner@novell.com>
22590 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
22592 * ToolTip.cs: Position the tooltip based on where the cursor is at
22593 popup time, not at MouseEnter time. Add a Down state so that we don't
22594 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
22595 positioning offset. Lookup DisplaySize at positioning time, since it
22596 can theoretically change during invocation.
22597 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
22598 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
22600 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22602 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
22603 Fixes behaviour when the Text property of the box is String.Empty
22605 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
22607 * XplatUIX11.cs: Only send mouseleave for our client windows, not
22608 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
22611 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22613 * FileDialog.cs: Visual enhancement for the popup buttons in
22616 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
22618 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
22621 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
22623 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
22624 highlighted menu items to match ms
22626 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
22628 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
22630 2006-03-30 Mike Kestner <mkestner@novell.com>
22632 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
22633 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
22634 go active to account for HotLight to Selected transition.
22635 * MenuItem.cs: add internal Selected prop. Fill out the Status
22636 property by calculating it from item info. Add HotLight,
22637 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
22639 2006-03-30 Mike Kestner <mkestner@novell.com>
22641 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
22643 2006-03-29 Jackson Harper <jackson@ximian.com>
22645 * Form.cs: Implement TODO.
22647 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22649 * PrintPreviewDialog.cs: Implemented missing methods and events; still
22650 missing proper dialog setup in the constructor
22652 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
22654 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
22656 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
22657 - Fixed ResetBindings and removed TODO
22658 - Added check for cross-thread calls to get_Handle()
22659 - Added Marshaller attribute for set_Font to satisfy class status
22660 * FontDialog.cs: Removed TODOs that seemed implemented
22661 * UpDownBase.cs: Removed unneeded TODO and Fixme
22662 * MessageBox.cs: Implemented support for Default button and removed TODO
22663 * FileDialog.cs: Removed obsolete TODO
22664 * DomainUpDown.cs: Removed obsolete TODO
22665 * ButtonBase.cs: Removed obsolete TODO
22666 * XplatUIWin32.cs: Removed obsolete TODO
22668 - Removed obsolete TODO
22669 - Calling CheckAcceptButton when the acceptbutton is changed to allow
22670 internal status updates
22671 - Making sure the active control is selected when the control is created
22672 * CurrencyManager.cs: Removed obsolete TODO
22674 2006-03-29 Mike Kestner <mkestner@novell.com>
22676 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
22677 of PrintPreviewDialog and RichTextBox.
22679 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22681 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
22682 DarkDark, Light and LightLight colors for a specific color
22683 * ThemeWin32Classic.cs:
22684 - Use Button drawing code to draw RadioButtons and CheckBoxes with
22685 Appearance = Button
22686 - Make use of the new ResPool helper CPColor
22687 - Draw ProgressBar and StatusBar with correct 3D borders
22689 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
22691 * ColorDialog.cs: Return selected color. Fixes bug #77940.
22693 2006-03-28 Mike Kestner <mkestner@novell.com>
22695 * ListView.cs: fix Icon layout to plan for scrollbar widths when
22696 calculating col/row counts.
22698 2006-03-28 Mike Kestner <mkestner@novell.com>
22704 switch to explicit interface method implementation for some methods
22705 corcompare identifies as inconsistent with MS.
22707 2006-03-28 Mike Kestner <mkestner@novell.com>
22711 add a few missing methods from the class status output.
22713 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
22715 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
22718 2006-03-28 Mike Kestner <mkestner@novell.com>
22720 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
22722 2006-03-27 Mike Kestner <mkestner@novell.com>
22724 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
22725 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
22727 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
22729 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
22731 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22733 * ThemeWin32Classic.cs:
22734 - GroupBox: Inserted a little gap between the text and the lines
22736 - Made the code in CPDrawBorder3D more readable
22737 - Corrected the drawing location of the up and down arrows in
22740 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22742 * ControlPaint.cs: Corrected line widths in DrawBorder for
22743 ButtonBorderStyle Inset and Outset
22745 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22747 * ThemeWin32Classic.cs:
22748 - Rewrote the totally broken CPDrawBorder3D method. That was
22749 one of the main problems for the terrific ThemeWin32Classic
22751 - Updated and corrected Button drawing
22752 - Correct the dimensions of the SizeGrip to match ms ones
22753 - Removed a small drawing glitch in DrawComboBoxEditDecorations
22754 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
22755 Border3DStyle.Sunken to match ms.
22757 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
22759 * ThemeWin32Classic.cs: First small part of the "de-uglify
22760 ThemeWin32Classic" effort, SizeGrip
22762 2006-03-24 Jackson Harper <jackson@ximian.com>
22764 * XplatUIX11.cs: Give a max idle time of one second, this matches
22765 MS and forces an Idle event every second when there are no other
22766 events in the queue.
22768 2006-03-24 Mike Kestner <mkestner@novell.com>
22770 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
22771 * ListView.Item.cs: fix layout issues with null image lists and images
22772 smaller than checkbox size.
22773 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
22774 mode like MS does. It's weird, but consistent. ;-)
22777 2006-03-24 Mike Kestner <mkestner@novell.com>
22779 * ListView.cs: Scroll wheel support for the item control. Fixes
22782 2006-03-23 Jackson Harper <jackson@ximian.com>
22784 * ScrollableControl.cs: Special case negative sized areas, not
22786 * MonthCalendar.cs: Save the rect of the clicked date so we can
22787 use it for invalidation.
22788 - Try to cut down on the number of invalidates
22789 - Invalidate the rect the mouse is over and was over when moving
22790 the mouse, so we get the focus box following the cursor.
22792 2006-03-23 Mike Kestner <mkestner@novell.com>
22794 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
22795 focus rectangle drawing. Fixes #77835.
22797 2006-03-23 Mike Kestner <mkestner@novell.com>
22799 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
22800 the if and else if and reverting back to the original == check on the
22803 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22805 * FontDialog.cs: Update the example panel if the selected index of
22806 the fontListBox changes.
22808 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
22810 * FileDialog.cs: Make FileDialog remember which directory it was in
22811 last in the same execution.
22813 2006-03-22 Mike Kestner <mkestner@novell.com>
22815 * FileDialog.cs: make the DropDownMenu on the toolbar display
22816 RadioChecks since they are mutually exclusive and that's what MS does.
22818 2006-03-22 Mike Kestner <mkestner@novell.com>
22820 * Theme.cs: add Color param to CPDrawMenuGlyph.
22821 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
22822 checks and radio marks and arrows are visible on highlighted items.
22823 * ControlPaint.cs: update to use new Theme signature.
22825 2006-03-22 Mike Kestner <mkestner@novell.com>
22827 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
22828 is active. Fixes #77870.
22830 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22832 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
22833 to be focused/selected after startup
22835 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
22838 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
22839 CustomColors and ShowHelp properties
22840 - Some internal rewrites to get better results when using the
22843 2006-03-22 Mike Kestner <mkestner@novell.com>
22845 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
22846 HoverSelection. Fixes #77836.
22848 2006-03-22 Mike Kestner <mkestner@novell.com>
22850 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
22851 ToggleButtons. (De)Sensitize the Back button around a stack count of
22852 1, not 0. Update ButtonSize based on a pixel count of the win32
22853 control. Adjust the toolbar size/location for new button size.
22855 2006-03-22 Jackson Harper <jackson@ximian.com>
22857 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
22859 * ScrollBar.cs: When doing increments and decrements we need to
22860 set the Value property so that ValueChanged gets raised. A
22861 possible optimization here would be to make an internal SetValue
22862 that doesn't invalidate immediately.
22863 * ToolTip.cs: Tooltips get added to their container (when
22864 supplied) so they get disposed when the container is disposed.
22865 - Don't create tooltips for String.Empty. This prevents all these
22866 little 2-3 pixel windows from showing up when running nunit-gui
22867 and driving me mad.
22868 * Form.cs: Don't set topmost when setting the owner if the handles
22869 haven't been created yet. The topmost set will happen when the
22870 handles are created.
22872 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
22875 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22876 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
22877 visible (to allow them to recalculate their sizes)
22879 2006-03-21 Mike Kestner <mkestner@novell.com>
22881 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22882 methods. Removed a ton of redundant code. Still not really happy with
22883 the border rendering, but I think that's mainly because of the
22884 ControlDarkDark being black instead of a dark grey. Depending on how
22885 close we want to be, we might want to revisit those color choices.
22886 Among the new features added during the refactor were DropDownArrow
22887 pressed rendering, Disabled image rendering. Proper flat appearance
22888 boundary rendering. Removed the Divider and Wrapping dividers since I
22889 can't figure out any combination of themes and conditions to make the
22890 MS control draw a horizontal line on a toolbar despite what the
22891 Divider property docs indicate.
22892 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22893 conditions and incorrect layout. Updated to coding standard.
22894 * ToolBarButton.cs: refactored layout and positioning code from
22895 ToolBar to here. Invalidate wherever possible instead of forcing
22896 redraws of the whole toolbar.
22897 (Known remaining issues: explicit ButtonSize smaller than provided
22900 2006-03-21 Mike Kestner <mkestner@novell.com>
22902 * ContextMenu.cs (Show): use the position parameter instead of just
22903 showing at the MousePosition.
22905 2006-03-21 Jackson Harper <jackson@ximian.com>
22907 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22908 control handle this.
22909 * TreeNodeCollection.cs: If we are clearing the root node we need
22910 to reset top_node so calcs can still happen.
22911 * ThemeWin32Classic.cs: This is a Flags so we need to check
22914 2006-03-21 Jackson Harper <jackson@ximian.com>
22916 * DataGrid.cs: Create columns when the binding context has been
22918 * X11Structs.cs: Keysyms are uints.
22919 - Add size to fix build.
22921 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
22923 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22925 - Added ResetMouseHover method to allow controls to retrigger
22926 hovering if they need it more than once
22927 - Implemented MouseHoverTime and MouseHoverSize properties
22928 * Timer.cs: Start() must reset the interval
22929 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22932 2006-03-21 Jackson Harper <jackson@ximian.com>
22934 * X11Keyboard.cs: improved layout detection. Move the nonchar
22935 tables into this file.
22936 * KeyboardLayouts.cs: Move the tables into resource files.
22938 2006-03-21 Mike Kestner <mkestner@novell.com>
22940 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22942 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
22944 * Mime.cs: Various speed optimizations. Looking up mime types
22945 is now 2 times faster than before
22947 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22949 * CreateParams.cs: Added internal menu field
22951 - Switched call order for UpdateBounds; now we always call
22952 the one that also takes ClientSize, and we're calculating the
22953 client size via driver method in the others. The previous
22954 method of tracking client size by difference wasn't working
22955 for forms where even the starting client size wouldn't match
22956 the overall form size (due to borders) (Part of fix for #77729)
22957 - CreateParams(): Do not use parent.Handle unless the handle is
22958 already created. Causes havoc with Nexxia and throws off our
22959 creation of controls
22961 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22962 - Switched handling of ConfigureNotify over to new PerformNCCalc
22963 method (consolidates code)
22964 - Changed RequestNCRecalc to use new PerformNCCalc method
22965 - Added calls to RequestNCRecalc when menus and borders are changed
22966 to allow app to set NC size. (Part of fix for #77729) This matches
22967 when MS send a WM_NCRECALC on Win32 windows.
22968 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22969 (Part of fix for #77729). This matches what MS does, they also
22970 send that message when the form is made visible.
22971 - XException.GetMessage: Improved usability of X errors by including
22972 a translation of the window into Hwnd and Control class
22973 - Improved debug info for window creation, reparenting and destruction
22974 - Created helper method WindowIsMapped() [Currently not used]
22975 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22977 - CreateParams: Now setting our menu on the new internal menu field
22978 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22979 avoid calculating the same property twice
22981 - Improved usability of ToString() for debugging purposes
22982 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22983 determine the height of the menu, instead of just the font. This
22984 required to also create a graphics context and to keep a bmp
22985 around (for performance reasons)
22987 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22989 * MenuAPI.cs: Added OnMouseUp method
22991 - Now remembering the requested client size, avoids size errors
22992 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22993 instead of base if the menu is active. This is required due to
22994 control now capturing and releasing on down/up and it would
22995 prematurely release our menu capture
22997 2006-03-17 Jackson Harper <jackson@ximian.com>
22999 * KeyboardLayouts.cs: Add the czech layouts.
23001 2006-03-16 Jackson Harper <jackson@ximian.com>
23003 * Control.cs: Use the viewport space when sizing not the controls
23004 client size, so things like ScrollableControl that effect the
23005 viewport size (when scrollbars are added) are computed correctly.
23006 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23008 - Handle creating BindingManagers for null data sources.
23009 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23010 source, otherwise when rows are added they are added to the 'fake'
23011 datasource and we will crash when trying to set the position in
23013 - Use Implicit scrollbars on the datagrid so they arent
23016 2006-03-16 Jackson Harper <jackson@ximian.com>
23019 * InternalWindowManager.cs:
23020 * MdiWindowManager.cs:
23021 * X11Keyboard.cs: I really want Mike to love me again (fix
23022 compiler warnings).
23024 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23027 - OnMouseDown: Switch to editing mode when clicking on the cell
23028 even if we're clicking on the cell that's currently
23030 - ProcessGridKey: Left/Right now wrap like MS.Net does
23031 - ProcessGridKey: Tab now knows to add a new row when tab is
23032 pressed in the cell of the last column of the
23034 - ProcessGridKey: Enter now adds another row if pressed in the last
23035 row and selectes the new row, same column cell
23036 - ProcessGridKey: Home/End navigate columns, not rows, like
23037 originally implemented
23038 - Broke ProcessKeyPreview code out into an extra Internal method
23039 so it can be called from the edit code
23040 * DataGridTextBox.cs (ProcessKeyMessage):
23041 - Switched to accept Tab keypresses
23042 - Added F2 handling to allow jumping to the end of the edited cell
23043 - Added logic to allow moving caret left/right inside edited cell
23044 and making the edited cell jump when the caret hits cell borders
23045 - Tab and Enter are now passed to the datagrid after being handled
23047 - Removed capture code now that Control handles it
23048 - set_SelectionStart now ensures caret is visible
23050 2006-03-16 Jackson Harper <jackson@ximian.com>
23052 * TrackBar.cs: Debackwards the increment/decrement for handling
23053 mouse clicks on the bar with vertical trackbars.
23054 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
23055 bottom to match MS.
23057 2006-03-16 Mike Kestner <mkestner@novell.com>
23059 * ListView.cs: make shift/ctrl keyboard and mouse selection
23060 consistent with the MS control. Fix a bug in
23061 SelectedListViewItemCollection.Clear that was pissing me off for the
23062 better part of a day because the collection was being altered
23063 underneath us as we walked the list.
23065 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23067 * Control.cs: Not sure how we could miss this so long, but it seems
23068 that MS.Net has Capture set all the way from before calling
23069 OnMouseDown through sending the mouse events until after
23070 OnMouseUp. This will fix DataGrid's selection being set to end
23071 at the location of the MouseUp.
23073 2006-03-15 Jackson Harper <jackson@ximian.com>
23075 * BindingContext.cs: Check the binding after its added so that it
23076 can initialize the binding managers and hookup to events.
23077 * Binding.cs: Data members seem to sometimes include rows/cols in
23078 the format Row.Column we now take this into account.
23079 - Hookup to the position changed event so we can update the
23080 control when the position has changed in the data set.
23081 * CurrencyManager.cs: Take into account the row/col naming
23082 convention when creating dataset tables.
23083 * BindingContext.cs: Using a newer better way of storing
23084 datasource/datamember pairs. Hopefully this better matches MS for
23085 looking up binding managers.
23088 2006-03-15 Jackson Harper <jackson@ximian.com>
23090 * BindingContext.cs: The currency manager needs the data member
23091 name, if the member is a data set we use the name to find the
23093 * CurrencyManager.cs: When creating the list prefer an IList over
23095 - Attempt to create a DataTable from a DataSet (TODO: might need
23096 some better error checking here, although MS doesn't seem to have much)
23097 - If we have a DataTable create a view and use it as our list.
23099 2006-03-15 Mike Kestner <mkestner@novell.com>
23101 * ListView.cs: keep a matrix of the icon mode layout to facilitate
23102 keyboard navigation. Support Up/Down/Left/Right selection correctly
23103 for all 4 View modes.
23104 * ListViewItem.cs: add internal row/col fields for icon layouts.
23106 2006-03-15 Jackson Harper <jackson@ximian.com>
23108 * TabControl.cs: Redraw the tabs when we resize so their newly
23109 calculated sizes are drawn on screen.
23110 * X11Keyboard.cs: Begginnings of XIM support. We also now support
23111 composite characters.
23112 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
23113 - filter events so that composite characters can be created
23115 * X11Structs.cs: Add XIMProperties enum.
23117 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23119 * Control.cs (BringToFront, SendToBack): Don't use window or handle
23120 unless it's created
23122 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23124 * Control.cs (PerformLayout): We don't need to consider visiblity
23125 for anchoring, only for docking. This fixes 'whacky' alignment
23126 in listbox and other controls that use implicit scrollbars after
23127 the previous PerformLayout patch
23128 * ListBox.cs: Switched to use implicit scrollbars
23130 2006-03-14 Mike Kestner <mkestner@novell.com>
23134 - chain up the "new event" overrides to base and use
23135 OnEvent to raise them. Part of fix for bug #76509.
23137 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
23139 * FileDialog.cs: Do not select an item in the parent directory
23142 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23144 * Control.cs (PerformLayout): It would seem that we considered
23145 invisible windows for our layout. Not quite the right thing
23146 to do. Now we don't any longer, thereby fixing bug #76889.
23148 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
23150 * Control.cs (CanFocus): I goofed. A control can have focus
23151 even though it's not selectable. Made it match MS docs.
23153 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23155 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
23156 center by default (fixes #76895)
23157 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
23158 all uses of Border3DSides.All with the explicit ORd together
23159 Left|Right|Top|Bottom because I assume that nobody was aware
23160 that All also implies a center fill. Most places I checked had
23161 a fill right above.
23162 * ProgressBarStyle.cs: Added
23164 2006-03-13 Mike Kestner <mkestner@novell.com>
23166 * ListView.cs: fix breakage in drag shadow header positioning
23167 from Peter's csc compilation fix.
23169 2006-03-13 Mike Kestner <mkestner@novell.com>
23171 * ListView.cs: fix NRE produced by backspacing twice in a focused
23174 2006-03-13 Mike Kestner <mkestner@novell.com>
23176 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
23178 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23180 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
23182 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
23183 the allowed size before making programmatic size changes
23185 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23187 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
23188 set, metacity is broken and will still use the emty sizes in
23189 the struct. (Fix for #77089)
23191 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
23193 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
23194 WindowExStyles and marked both enums as Flags
23195 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
23196 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
23197 to match WindowStyles split
23199 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
23200 - Updated to match WindowStyles split
23202 - Fixed FosterParent creation, was using ExStyle on the Style field
23203 (This should help with Popup focus issues)
23204 - Updated to match WindowStyles split
23206 2006-03-13 Jackson Harper <jackson@ximian.com>
23208 * MdiWindowManager.cs: Use the system menu height. Fixes some
23209 strange sizing issues.
23211 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23213 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
23215 - Scroll to caret after inserting text (#77672)
23216 - Make scroll range one pixel higher, fixes off-by-one error (and
23217 makes underlines visible on the last line)
23219 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23221 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
23222 the keyboard state from being stuck with keys in 'pressed' state when
23223 focus is switched away via keyboard
23224 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
23225 reset the keyboard if no X11 KeyUp events are expected to come
23226 * X11Structs.cs: Switched type of Visible to bool to match driver
23228 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
23231 - Switched caret to be just 1 pixel wide, matches MS and looks less
23233 - Moved caret display 1 pixel down from the top of the control
23235 - InsertCharAtCharet: Update the selection start if moving the caret
23236 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
23237 - No longer always creating the caret when the caret methods are
23238 called. Only the actual ShowCaret/HideCaret will do that now
23239 - Only setting caret visible if the owner control has focus
23240 - UpdateView: Added invalidation-shortcut logic for center and right
23241 aligned text. Previously we'd update all according to the left
23242 logic which caused drawing errors. Also fixed height of invalidated
23243 areas, now properly invalidating the whole area (was off-by-one)
23244 - owner_HandleCreated: Always generate the document when the
23245 handle is created; this ensures that
23247 - Fixed situation where caret would disappear under the right
23248 window border, also improved scrolling behaviour on left-
23250 - Fixed right-aligned textboxes to have a border to the
23251 right instead of the caret being under the right border
23253 - Switched from 'nested' to simple visible/not visible tracking
23254 for caret (part of fix for #77671)
23255 - No longer passing through translated FocusIn/FocusOut messages
23256 since we were notifying too often and the wrong windows. Instead
23257 we just notify our focussed window of receiving or loosing focus
23258 * XplatUIWin32.cs: Switched from 'nested' show/hide
23259 counting for caret to simple visible yes/no behaviour (part of
23262 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
23264 * Mime.cs: Remove debug code...
23266 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
23268 * MimeGenerated.cs: Removed
23269 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
23270 and subclasses) from /usr/(local/)share/mime and
23271 $HOME/.local/share/mime.
23273 2006-03-10 Jackson Harper <jackson@ximian.com>
23275 * MdiWindowManager.cs: Recalc the NC area when a window is
23276 maximized/restored so that the menu area is drawn on forms that
23279 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23281 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23282 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
23283 us to force a WM_NCCALCRESIZE message being sent. This is needed
23284 for MDI maximizing.
23286 2006-03-10 Jackson Harper <jackson@ximian.com>
23288 * Form.cs: We need to use the ActiveMenu when calculating menu
23290 - Fix nullref when the window manager hasn't been created yet.
23291 * Control.cs: Fix nullref when we try to bring a control to the
23292 front that has no parent.
23293 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
23295 - Add a dummy item to the maximized menu so it always has the
23296 correct height. Otherwise when there are no menus we don't get our
23300 2006-03-10 Jackson Harper <jackson@ximian.com>
23302 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
23304 * Form.cs: Make the window_state internal so the window managers
23306 - When an MDI child is maximized let its window manager create the
23307 main menu (so it can add its icon).
23308 - Notify the window managers of state changes
23309 - Let the window manager paint its buttons and handle button
23310 clicks on the menu when it is maximized.
23311 * InternalWindowManager.cs: Move the prev_bounds into the mdi
23312 window manager, since tool windows don't use it, only mdi windows.
23313 - Tell the main form that we don't want it to handle NCPAINT
23314 itself to avoid extra painting.
23315 - Handle clicks on a maximized windows menu.
23316 - Handle window state changes
23317 - Handle minimize/maximize clicks correctly by setting the window state.
23318 * MdiWindowManager.cs: Add an icon menu that (the menu you get
23319 when clicking on the forms icon).
23320 - New method to create a forms maximized menu. This is its normal
23322 - Handle window state changes.
23323 - Handle sizing of maximized windows. Maximized windows are just
23324 drawn bigger then the parent visible area. All controls are still
23325 there, they are just outside the visible area (this matches windows).
23326 * MdiClient.cs: No scrollbars when a child window is maximized.
23327 - Let the children windows figure out how big they should be when
23328 sizing maximized windows.
23329 - Implement a version of ArrangeIconicWindows somewhat similar to
23330 Windows version. There are some little differences, but I don't
23331 think any app will rely on the layout of minimized mdi windows.
23333 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23335 * Padding.cs: Several fixes to allow compiling with csc 2.0
23337 2006-03-09 Jackson Harper <jackson@ximian.com>
23340 * MenuItem.cs: Cheap hack so we can add items to the list without
23341 the events being raised. This allows adding mdi items during
23342 drawing. TODO: Should probably find a better time to add the items.
23344 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23346 * ThemeWin32Classic.cs:
23347 - CheckBox_DrawText: Added logic to not wrap if not enough space
23348 is available (Fix for bug #77727)
23349 - RadioButton_DrawText: Added logic not to wrap if not enough
23350 space is available (Fix for bug #77727). Also removed some
23351 duplicate code, DrawString always drawing the regular text
23352 before hitting the if statement.
23354 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23356 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
23358 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
23360 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
23361 * ContainerControl.cs: Partial implementation of some 2.0 scaling
23362 methods. Moved the new 2.0 properties into alphabetical order with
23363 other properties and added MonoTODO tags
23365 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23367 * AutoScaleMode.cs: Added. Fix build.
23369 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23371 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23372 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
23373 and was requiring premature handle creation for calls from above
23374 * Form.cs, Control.cs: Removed handle arguments from calls to
23375 CalculateClientRect()
23377 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23379 * ListView.cs (HeaderMouseMove): Fix csc compilation.
23380 drag_column.column_rect is MarshalByRef and can't be used that way
23382 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23384 * AxHost.cs: Added deserialization constructor for
23385 AxHost+State (fixes 77743)
23387 2006-03-09 Mike Kestner <mkestner@novell.com>
23390 - Added column drag reordering for details view.
23391 - fixed behavior when mouse is dragged off column and
23392 AllowColumnReorder is false.
23393 * ColumnHeader.cs: clone the format too in Clone.
23394 * Theme.cs: add DrawListViewHeaderDragDetails method.
23395 * ThemeWin32Classic.cs:
23396 - impl new method for drawing drag column shadows and targets.
23397 - support column offset for details mode in DrawListViewItem.
23399 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23401 * TextControl.cs: Reset the char_count when the document is cleared
23402 (Fixes bug reported on mono-winforms mailing list)
23404 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23406 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
23407 of calling base we simply process the key ourselves, since both
23408 DefWindowProc and the handled method would set m.Result.
23411 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
23413 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
23414 method also moves the window; instead implemented a copy of
23415 Control.ScaleCore (Part of fix for #77456)
23417 - Created new CreateGraphicsInternal method to allow providing
23418 a graphics context when no handle is created without triggering
23419 handle creation. (Part of fix for #77456)
23420 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23422 - Switched Constructor to require TextBoxBase instead of Control (to
23423 allow uncast access to CreateGraphicsInternal)
23424 - Safeguarded use of owner.Handle property. No longer accessing it
23425 unless the handle is already created.
23426 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23427 - Now triggering a recalc when owning control becomes visible
23428 * TextBox.cs, RichTextBox.cs: Switched to use new internal
23429 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
23430 premature handle creation (Part of fix for #77456)
23432 - We now only destroy our double-buffering buffers when the
23433 control is resized or disposed, but not when visibility
23434 changes. (The code even re-created them twice every time)
23435 - Now requiring a redraw of the buffer on visibility changes
23436 (fixes bug 77654 part 2)
23437 - Not passing OnParentVisibleChanged up unless the control
23439 - CanFocus: Fixed to match MS documentation
23440 - Focus: Fixed to return actual focus state and to check if
23441 setting focus is legal before setting it
23443 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
23445 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
23446 when to draw focus rectangle by looking at parent focus and
23447 selected state instead. This fixes TabPages on Linux sometimes
23448 having none or multiple focus rectangles.
23449 * XplatUIX11.cs (SetFocus):
23450 - Don't set the focus if the same window already has focus
23451 - Use SendMessage instead of PostMessage (like it's Win32
23452 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
23453 to match MS behaviour
23454 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
23455 are not selectable.
23457 2006-03-07 Jackson Harper <jackson@ximian.com>
23459 * PictureBox.cs: Revert line I accidently committed last week.
23461 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
23464 - Added new IsRecreating and ParentIsRecreating properties to
23465 allow testing if RecreateHandle has been called on ourselves
23466 or one of our parents
23467 - WndProc(WM_DESTROY): If our control handle is being recreated
23468 we immediately need to create the handle when receiving the
23469 destroy, that way our child windows find a valid parent handle
23470 when they themselves are being recreated upon WM_DESTROY receipt
23471 (fix for bug #77654 part 1)
23473 - DestroyWindow: WM_DESTROY must be sent to our own window before
23474 notifying any child windows. MS documents that child windows
23475 are still valid when WM_DESTROY is received. (Control now relies on
23477 - Added some fine-grain debug options
23479 2006-03-06 Jackson Harper <jackson@ximian.com>
23481 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
23482 box and base calculations off this.
23483 * MdiChildContext.cs:
23484 * MdiWindowManager.cs: Don't need to ensure scrollbars here
23487 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
23489 * Splitter.cs: In situations where the affected control is added
23490 to the parent's control list after the splitter, we would not
23491 populate affected. Now we try populating it on mousedown, if
23492 it's not already set, and force it to be re-set whenever our
23495 2006-03-03 Matt Hargett <matt@use.net>
23497 * Control.cs: implement Control.Padding
23498 * Padding.cs: -Padding.All returns -1 when constructing with the
23499 implicit default ctor
23500 -Padding.ToString() matches MS.NET
23501 * ContainerControl.cs: implement
23502 ContainerControl.AutoScaleDimensions
23503 * ListControl.cs: implement ListControl.FormattingEnabled
23504 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
23506 * TabPage.cs: Implement UseVisualStyleBackColor.
23507 * PictureBox.cs: Implement PictureBox.InitialImage.
23509 2006-03-03 Mike Kestner <mkestner@novell.com>
23511 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
23512 event declarations to proxy to base event.
23513 * ListViewItem.cs: update to use ItemControl.
23514 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
23515 * ThemeWin32Classic.cs: update to new ListView theme API and fix
23516 column header label rendering for 0 width columns.
23518 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
23520 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
23521 that causes the control to be created. Fixes #77476.
23523 2006-03-02 Jackson Harper <jackson@ximian.com>
23525 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
23528 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
23530 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
23531 passed in for the EventArgs (fixes #77690)
23533 2006-03-01 Jackson Harper <jackson@ximian.com>
23535 * ScrollBar.cs: Refresh afterbeing resized.
23537 2006-02-28 Mike Kestner <mkestner@novell.com>
23539 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
23540 Clean up a tracker compile warning.
23541 * MenuItem.cs: add internal PerformPopup method.
23544 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23546 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
23547 implicit expose) when the text is set to null
23549 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23551 * RichTextBox.cs (FlushText): When newline is true, we always
23552 need to split the line, even if no text is on it and we may
23553 never eat newlines. (Fixes #77669)
23555 2006-02-28 Mike Kestner <mkestner@novell.com>
23557 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
23558 and set Selected instead.
23559 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
23562 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
23564 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
23566 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
23569 - Got rid of the panel. All controls are now directly added to
23571 - It is now possible to set a font with the Font property
23572 - MinSize and MaxSize property do now what they should
23573 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
23574 - Searching and selecting a font with the font textbox works now,
23575 the same applies to the style and size textbox
23576 - Draw the correct 3D border in the example panel
23577 - Fixed a little mem leak (unused fonts didn't get disposed)
23578 - Many other internal updates/rewrites...
23581 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23584 - InsertRTFFromStream: Added 'number of characters inserted' argument
23585 - set_SelectedRTF: Now using the number of characters to calculate
23586 the new location for the selection and cursor (x/y cannot be used
23587 due to potentially already wrapped text)
23589 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23591 * TextControl.cs: Added property and implemented means to allow
23592 disabling recalculation of a document (can be used to speed up
23593 multiple inserts and is needed to make RTF inserts predictable, see
23595 * RichTextBox.cs: Using the new NoRecalc property of Document to
23596 keep x/y insert locations predictable. Also makes it faster inserting
23597 large chunks of RTF
23599 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
23601 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
23602 it's easier for a child control to handle the other messages without
23603 having to duplicate the special functionality
23605 - WndProc: Removed calling base handler for WM_KEYDOWN and added
23606 code to handle processing the key ourselves, in order to get
23607 access to the result of KeyEventArgs.Handled. We now only call
23608 ProcessKey if they key hasn't been handled already. Fixes #77526.
23609 - set_Text: If null or empty string is given, just clear the
23610 document. Fixes part of #77526
23612 2006-02-27 Jackson Harper <jackson@ximian.com>
23614 * SizeGrip.cs: Paint the background color before painting the grip
23615 so things look right.
23616 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
23618 2006-02-27 Mike Kestner <mkestner@novell.com>
23621 - Restructure layout and invalidation model to remove a ton of
23622 flicker from the control and speed up performance in general.
23623 - Add manual column resize, flickers like crazy, but I already have
23624 some ideas on how I'll fix that. (#76822)
23625 - Merge the three Icon-based views into a single layout method.
23626 - Move item selection interaction logic from the item since
23627 interaction with the collections is more appropriate to the view.
23628 - Deselection on non-item clicks.
23630 - Encapsulate most of the layout. Add some internal props to trigger
23631 layout. Move to a model where Items invalidate themselves instead
23632 of just invalidating the whole control every time something changes.
23633 - Invalidate on Text/Caption changes.
23634 - switch to an offset based layout model to avoid having to absolute
23635 position every element on item moves.
23636 - correct checkbox layout to conform to MS layout.
23637 * ThemeWin32Classic.cs:
23638 - refactor some column header drawing code.
23639 - fix string justification for column headers (#76821)
23640 - make SmallIcon labels top justified for compat with MS impl.
23641 * ThemeClearlooks.cs:
23642 - adjust to new ListViewItem internal checkbox bounds api.
23644 2006-02-27 Jackson Harper <jackson@ximian.com>
23646 * Control.cs: Change where implicit controls fall in the zorder.
23647 They are now on top of all children.
23648 - Synced AddImplicit code with Add
23649 - Removed unused enumerator.
23650 * SizeGrip.cs: Remove the TODO as its been TODONE.
23652 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23654 * TextControl.cs(Insert): Combine the last lines unless the insertion
23655 string ends with \n\n, otherwise we leave one line too many (Fixes
23656 something I noticed with the testapp for #77526; the bug itself was
23657 already fixed in the previous checkin)
23659 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
23662 - SelectionColor and SelectionFont methods no longer set absolute
23663 styles. Instead, the keep font or color respectively (This
23664 resolves a long-standing FIXME in the code)
23665 - When flushing RTF text, the insert code now considers text trailing
23666 behind the insertion point (Fixes the bug where when replacing
23667 the selected text via SelectedRTF the remainder of the line behind
23668 the selection would stay on the first insertion line)
23670 - AppendText now updates the selection points after inserting text
23671 - AppendText now ensures that the last tag (sometimes 0-length) of
23672 the document is used for the style information (Fixes part of
23675 - Created new FontDefiniton class to allow describing partial style
23677 - StreamLine() now takes a lines argument, to allow it to decide
23678 whether an encountered zero-length tag is the last in the document
23679 (which must be kept to not loose the font/color contained in it,
23681 - Created Combine() and Split() methods for Marker structs, to
23682 support marker updates due to reformatted documents (soft line
23684 - Implemented Document.CaretTag setter
23685 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
23686 of the last line (Not the cause, but also exposed by bug #77220)
23687 - Added LineTag argument to InsertString method, to allow callers
23688 to force a certain tag to be used (required to force use of the
23689 trailing zero-length tag of a document)
23690 - Now updating markers in Combine(), to avoid stale tag markers
23691 - Added some method descriptions to aid maintenance
23692 - Implemented new FormatText concept, allowing additive/subtractive
23693 formatting by only specifying the components that are to be
23694 changed. This was needed for resolving the RTB.SelectedColor/
23695 RTB.SelectedFont fixmes
23696 - Added Break() support method to allow breaking up linetags (used
23697 for partial formatting)
23698 - Added GenerateTextFormat() method. It is used for partial
23699 formatting and allows to generate a full font/color from given
23700 attributes and an existing tag.
23702 2006-02-26 Jackson Harper <jackson@ximian.com>
23704 * XplatUIX11.cs: Use the correct caption height.
23705 - Translate hittest coordinates to screen coords to match MS.
23706 * XplatUIWin32.cs: When we create MDI windows we need to reset
23707 some of the style flags, so we get a nice blank window, and can
23708 draw all the decorations ourselves.
23709 - Set a clipping rectangle on the non client paint event, the
23710 window manager drawing code needs one.
23711 * Form.cs: The window manager needs to know when the window state
23713 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
23714 don't need to factor in border and title sizes in these
23715 methods. TODO: Remove the args and fix the call points.
23716 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
23718 - Let the driver set the cursors.
23719 - Improve active window handling
23720 - Correct sizes for title bars and buttons.
23721 - Match MS drawing better
23722 * MdiWindowManager.cs: We don't need to handle border style
23723 updates specially anymore.
23724 - Check for scrollbars when windows are done moving
23725 - Handle Active properly.
23726 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
23727 correctly. I am spewing the exception though, so we don't hide the
23730 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
23732 * DataGridViewRowPostPaintEventArgs.cs,
23733 DataGridViewCellPaintingEventArgs.cs,
23734 DataGridViewRowCollection.cs,
23735 DataGridViewRowPrePaintEventArgs.cs,
23736 DataGridViewCell.cs: Clear a few warnings and implement a few
23737 exceptions that should be thrown.
23739 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23741 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
23742 'inheriting' our parent's (non-default) cursor. (Part of
23743 the fix for #77479)
23745 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23747 * XplatUIX11.cs: Fixed cast to make csc happy
23749 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
23751 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
23752 it's for the client area (part of fix for #77479 and needed
23753 for MDI window cursor handling)
23755 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
23756 the appropriate default cursors and also passing the message
23757 up the parent chain
23758 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
23759 for non-client areas
23761 2006-02-15 Jackson Harper <jackson@ximian.com>
23763 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
23764 is a real MDI window
23766 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
23768 * X11DesktopColors.cs: Instead of checking the desktop session
23769 string for "KDE" check if it starts with "KDE"
23771 2006-02-10 Jackson Harper <jackson@ximian.com>
23773 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
23776 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23778 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
23781 - Got rid of the panel. All controls are now directly added to
23783 - Changed to mono coding style
23785 2006-02-10 Jackson Harper <jackson@ximian.com>
23787 * InternalWindowManager.cs: We don't need the set visibility to
23788 false hack anymore now that peter has written beautiful shutdown
23791 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
23793 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
23794 where already explicitly destroyed
23796 2006-02-10 Jackson Harper <jackson@ximian.com>
23798 * MdiClient.cs: Handle the case where windows are too high or to
23799 the left and we need scrollbars.
23801 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
23803 * MimeIcon.cs: Added some icons
23806 - Got rid of the panel. All controls are now directly added to
23808 - Changed to mono coding style
23809 - On Linux "My Computer" and "My Network" will now show some
23810 more usefull information. A new class, MasterMount, gathers
23811 this information from /proc/mount. Updated MWFFileView to make
23812 use of this information
23813 - Fixed a bug that caused FileDialog to crash when
23814 ".recently_used" file had a zero size
23815 - FilterIndex does now what it should
23817 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
23820 2006-02-09 Jackson Harper <jackson@ximian.com>
23822 * ComboBox.cs: Don't touch if null.
23824 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
23826 * Cursor.cs: 64bit safeness fix
23827 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
23829 2006-02-09 Jackson Harper <jackson@ximian.com>
23831 * Form.cs: If a form is made into an MDI form update the styles so
23832 all the props can get set correctly.
23833 - Kill the mdi_container when we dont need it anymore.
23834 * InternalWindowManager.cs: Add missing NOT
23836 2006-02-08 Jackson Harper <jackson@ximian.com>
23838 * InternalWindowManager.cs: Respek clipping when drawing MDi
23841 2006-02-08 Jackson Harper <jackson@ximian.com>
23843 * Hwnd.cs: Add bits to track non client expose events.
23844 * XplatUIX11.cs: Track non client expose events on the hwnd. This
23845 gives us a proper invalid rect and will allow for some nice
23846 optimizations with NC client drawing
23847 - MDI windows are children windows, so move their style handling
23848 into the child window block.
23849 * InternalWindowManager.cs: Remove a state reset that was
23850 getting invoked at the wrong time. Fixes managed windows getting
23851 into a 'stuck' captured state.
23853 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23855 * TextControl.cs (Document.ctor): Now initializing
23856 selection_anchor. Fixes #77493
23858 2006-02-07 Jackson Harper <jackson@ximian.com>
23860 * TrackBar.cs: The increment/decrements were backwards.
23862 2006-02-07 Mike Kestner <mkestner@novell.com>
23864 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23865 to the instance itself.
23867 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23869 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23870 on ulongs and pointers, the size differs between 32bit and 64bit
23873 2006-02-07 Mike Kestner <mkestner@novell.com>
23875 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23876 for 64 bit platforms to work around a metacity bug.
23878 2006-02-07 Jackson Harper <jackson@ximian.com>
23880 * TrackBar.cs: Process the input keys we need, and hookup to
23881 KeyDown instead of using WndProc, so we get key messages.
23883 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23885 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23887 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23888 we need to translate the XdndVersion atoms array before sending it
23890 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23893 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23894 number of bits for the property, not the number of bytes. The
23895 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23896 but would not crash since it specified 8 bits instead of 4 bits)
23897 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23898 defined as XID -> long in the C headers)
23899 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
23900 references since those are now IntPtr to begin with
23901 - Switched all Atom.XXX 'int' casts to IntPtr casts
23902 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23903 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23904 - Added XChangeActivePointerGrab DllImport (for X11DnD)
23906 - Changed 'int' type for Atoms in XEvent structures to IntPtr
23907 - Changed atom in HoverStruct to be IntPtr
23909 - Removed local DllImports, switched code to use those from XplatUIX11
23910 - Removed/fixed casts related to the switch of Atom to be a IntPtr
23912 2006-02-06 Mike Kestner <mkestner@novell.com>
23914 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
23915 method signatures in the import region. There may still be some
23916 lingering struct marshaling issues, as I didn't drill down into those.
23919 2006-02-06 Jackson Harper <jackson@ximian.com>
23921 * ComboBox.cs: Dont manually set the top_item, this is computed
23922 when the scrollbar position is set.
23924 2006-02-06 Mike Kestner <mkestner@novell.com>
23926 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23927 startup crashes on amd64. There's other fixes needed. All pinvoke
23928 usage of Atom needs to be mapped to IntPtr for example. And there are
23929 likely other int/long issues to be addressed.
23931 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
23933 * FileDialog.cs: One more...
23935 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23937 * FileDialog.cs: Next try
23939 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23941 * FileDialog.cs: First part of fix for #77464
23943 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23945 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23946 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23947 AcceptButton border drawing.
23949 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23951 * Form.cs: Moved positioning of form after auto scaling is applied,
23952 otherwise it would possibly use wrong form size.
23954 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23956 * Control.cs (RecreateHandle): No need to re-create any child
23957 controls, the child windows will get destroyed automatically by
23958 the windowing system or driver, and re-created when the handle
23959 is being accessed the first time. Fixes #77456
23960 * Form.cs: No longer setting the form to closing if the handle is
23961 being recreated. This seems like the right thing to do, don't
23962 have a bug or testcase for this, though.
23964 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23966 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23967 controls to avoid unwanted side effects
23969 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23972 - ScaleCore needs to scale the bounds, not the ClientSize of the
23973 control. Fixes #77416.
23974 - DefaultSize is 0,0 for control
23976 - DefaultSize is 100, 20
23977 - SetBoundsCore: Now enforcing the height, no matter if the provided
23978 height is more or less than the preferred one, as long as AutoSize
23980 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23982 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23985 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23986 call unless both performLayout is true *and* we have a pending
23988 - ResumeLayout: MS does not completely nest Suspend and Resume,
23989 they bottom out at 0, fixed our code to match that.
23990 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23991 SetBoundsCore, we were updating even when we shouldn't. This fixes
23992 swf-anchors mis-anchoring when resizing the app fast and lots.
23993 - UpdateDistances: Now only setting the left and top distance if
23994 we have a parent and are not suspended, this is based on
23995 a suggestion by Don Edvaldson in bug #77355.
23996 - OnVisibleChanged: Fixed logic when to create the control. We may
23997 not create the control if we have no parent or if it's not visible;
23998 switched to using Visible property instead of is_visible field
23999 since the property also considers parent states. This fixes a bug
24000 when starting Paint.Net
24002 2006-02-02 Jackson Harper <jackson@ximian.com>
24004 * Form.cs: If the forms handle hasn't been created yet don't call
24005 into xplatui to make it top most, just set the topmost flag on the
24006 form in CreateParams
24007 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24009 2006-02-01 Jackson Harper <jackson@ximian.com>
24011 * ScrollableControl.cs: Refactored the Recalculate method a
24012 little, this wasn't handling all the variants of bottom and right
24013 bars needed to be added and added/removed based on their
24014 counterparts being added/removed (which changes the drawable
24015 size). Also we special case client widths and heights of 0 and
24016 don't add the scrollbar for those.
24018 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
24021 - Added method to get AbsoluteGeometry(); currently unused, but might
24022 be used in the future, if we try again to figure out toplevel
24023 coordinates with some more crappy window managers
24024 - Added FrameExtents() method to retrieve the WM set decoration size
24025 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
24026 to deal with at least KDE, FVWM and metacity (Fixes #77092)
24028 - Added whacky_wm tracking var for metacity
24029 - Added logic to have default menu height if the actual menu height
24030 has not yet been calculated (part of fix for #77426)
24031 * Form.cs: Keep track whether client size has been set and re-set
24032 it if a menu is added/removed afterwards (Fixes #77426)
24034 2006-01-31 Jackson Harper <jackson@ximian.com>
24036 * Control.cs: When a new Site is set on the component attempt to
24037 pull the AmbientProperties from it.
24039 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
24041 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
24042 in the background of the owning form. Fixes #77332
24044 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24046 * MimeIcon.cs: Fix for #77409
24048 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24050 * XplatUIX11GTK.cs: Initial import
24052 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
24054 * FixedSizeTextBox: fixes class signature
24056 2006-01-30 Jackson Harper <jackson@ximian.com>
24058 * FixedSizeTextBox.cs: New internal class that represents a
24059 textBox that will not be scaled.
24062 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
24065 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24067 * XplatUIX11.cs: Retrieve default screen number instead of
24068 assuming 0. Attempted fix for #77318
24070 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24073 - GetWindowPos: When a window is parented by FosterParent, use
24074 the desktop instead of FosterParent as the base to get coordinates
24075 - CreateWindow: Don't make FosterParent the parent window for Popups
24076 if we don't want a taskbar entry, Popups automatically don't get one
24077 * Hwnd.cs: Need to call remove to actually remove the key from the
24080 2006-01-30 Mike Kestner <mkestner@novell.com>
24082 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
24084 2006-01-30 Jackson Harper <jackson@ximian.com>
24087 * TreeNode.cs: Raise events no matter how the treenode is
24088 checked. Patch by Don Edvalson.
24090 2006-01-30 Jackson Harper <jackson@ximian.com>
24092 * TreeNode.cs: Signature fix.
24094 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
24096 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
24098 2006-01-20 Mike Kestner <mkestner@novell.com>
24100 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
24101 event forwarding when menus are active.
24102 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
24103 Most of the patch is pdb's with a little rework.
24105 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24107 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
24108 Removed GetMenuDC and ReleaseMenuDC methods; replaced
24109 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
24110 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
24111 * InternalWindowManager.cs: Added use of PaintEventStart/End to
24112 handling of WM_NCPAINT message, now passing the PaintEventArgs to
24113 the PaintWindowDecorations method
24114 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
24115 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
24116 * MenuAPI.cs: Made tracker window invisible
24118 - Removed GetMenuDC and ReleaseMenuDC methods
24119 - Implemented the client=false path for PaintEventStart and
24122 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24124 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
24125 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
24128 - MaximizeBox, MinimizeBox: Recreate the handle when setting
24130 - CreateParams: Reworked the styles to match MS look'n'feel,
24131 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
24132 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
24134 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24136 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
24137 window is not mapped, since otherwise every form that's being
24138 created is considered minimized, which is wrong.
24139 * Form.cs: Catching the exception and returning our internal value
24142 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
24144 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
24145 SetWindowMinMax() to have means to tell the driver about the minimum,
24146 maximum and maximized state window sizes. (Part of the fix for #76485)
24148 - Implemented tracking of minimum and maximum window size, now calling
24149 new SetWindowMinMax() driver method to tell the driver (Part of the
24151 - Finished handling of WM_GETMINMAXINFO method, now setting all values
24152 (Completes fix for #76485)
24153 - Calling new SetWindowMinMax driver method when the handle for a
24154 form is created, to make sure the driver knows about it even if
24155 the values have been set before the window was created
24156 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
24157 to avoid messing up our anchoring calculations (partial fix
24159 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
24161 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
24162 - Improved GetWindowState() to detect 'Minimized' state on Metacity
24163 (and presumably other freedesktop.org compliant WMs). Left the
24164 assumption unmapped=minimized, needed for SetVisible to work.
24165 - Now setting the window state when creating windows
24166 - Fixed SetVisible to consider/set the window state when mapping
24167 a Form. We cannot set the state before it's mapped, and we cannot
24168 use Form.WindowState once it's mapped (since it would ask the
24169 driver and get 'normal'. Therefore, we grab the state before
24170 mapping, map, and then set state.
24171 - Implmemented SetWindowMinMax method; Metacity does not seem to
24172 honor the ZoomHints, though.
24174 - Removed MINMAXINFO (moved to XplatUIStructs)
24175 - Added SetWindowMinMax stub (on Win32 the only way to set that
24176 information is in response to the WM_GETMINMAXINFO message, which
24177 is handled in Form.cs)
24178 - Added logic to SetVisible to set the proper window state when a
24179 form is made visible (fixes #75720)
24181 2006-01-26 Jackson Harper <jackson@ximian.com>
24183 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
24184 same way we handle them with Invoke.
24186 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
24189 - Added tracking of window state so CreateParams can return
24190 the appropriate style
24191 - Moved setting of WS_CAPTION style in CreateParams to allow
24192 styles without caption
24193 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
24194 control if the TextBox property is accessed. Fixes #77345
24196 - get_Created: now uses is_disposed and is_created to determine
24197 return value (suggested by Jackson)
24198 - CreateHandle: No longer exits if the handle is being recreated
24199 - RecreateHandle: If the handle is not yet created call the
24200 appropriate method to create either control or handle. If the
24201 control is already created CreateHandle will simply exit instead
24202 of just creating the handle
24203 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
24204 now SendMessage WM_DESTROY directly to the control when DestroyWindow
24207 - When DestroyWindow is called, instead of waiting for the
24208 DestroyNotification from X11, we directly post it to the WndProc
24209 and immediately dispose the hwnd object.
24210 Same applies to DestroyChildWindows, and this obsoletes the
24211 expose_pending tracking. Contrary to Win32 behaviour we destroy our
24212 child windows before our own, to avoid X11 errors.
24213 - Removed the direct sending of WM_PAINT on UpdateWindow
24215 - Reworked DoEvents and GetMessage to allow access to internal queue
24216 even when trying non-blocking access to the queue. Fixes #77335.
24217 Based on a patch suggestion by Don Edvalson. The new private
24218 GetMessage can now also be used as a backend for a PeekMessage
24220 * XplatUI.cs: Improved debug output for CreateWindow
24222 2006-01-25 Jackson Harper <jackson@ximian.com>
24224 * Help.cs: Allow param to be null. Patch by Don Edvalson.
24226 2006-01-24 Jackson Harper <jackson@ximian.com>
24228 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
24229 when we have a MaxDropItems lower then the selected index.
24231 2006-01-24 Jackson Harper <jackson@ximian.com>
24233 * Control.cs: Don't allow selection of non visible controls, allow
24234 selection of controls without parents.
24236 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
24238 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
24239 * DataGridDrawingLogic.cs: Add editing row only when is necessary
24241 2006-01-23 Jackson Harper <jackson@ximian.com>
24243 * UpDownBase.cs: Make the textbox handle all the selection and
24244 tabbing. This fixes tabing to updown controls.
24246 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
24248 * TextBoxBase.cs: fixes exception thown the object was null
24250 2006-01-23 Jackson Harper <jackson@ximian.com>
24252 * ButtonBase.cs: Just use the base CreateParams. They set
24253 visibility and enabled correctly.
24256 * MonthCalendar.cs: Lets let the base set as much of the
24257 createparams as possible so we don't have duplicate code all over
24260 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
24262 * ThemeGtk.cs: Added TrackBar and some experimental code to
24263 get double buffering back
24265 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
24267 * DataGrid.cs: Allows row number set internally higher than the last
24268 when creating a new row. Restores the editing functionality.
24270 2006-01-20 Mike Kestner <mkestner@novell.com>
24272 * MimeIcon.cs: delay Image creation until the icons are accessed
24273 instead of creating 190 scaled images on GnomeHandler startup.
24275 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
24277 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
24278 first call base before processing the event. Fixes #77279
24280 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
24282 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
24283 that the stride for the GDI bitmap would match the stride of
24286 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
24288 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
24290 2006-01-19 Jackson Harper <jackson@ximian.com>
24292 * ComboBox.cs: Hookup the text controls keydown event so we get
24293 those when the text control has the focus.
24295 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24297 * Label.cs: Now using the base events instead of defining new ones;
24298 this allows us to just call the base properties without having to
24299 duplicate all base property logic
24301 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24303 * Label.cs: A label by default is not a tabstop (Fixes one of our
24304 failing nunit tests)
24306 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24308 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
24309 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
24311 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
24313 * Cursor.cs: Reimplemented creating cursor bitmaps without using
24314 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
24317 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
24318 constructor creates images that can't be saved. Part of the fix
24320 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
24321 - SetWindowState: Switched ShowWindow flags (part of an upcoming
24322 bug fix for handling window state in forms properly)
24324 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24326 * ThemeGtk.cs: Simplify ScrollBar drawing
24328 2006-01-18 Jackson Harper <jackson@ximian.com>
24330 * Splitter.cs: Set the default dock style for the splitter control
24331 in the constructor.
24333 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24335 * ThemeGtk.cs: Corrected StateType and ShadowType for
24338 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24340 * Control.cs: Make use of Theme.DoubleBufferingSupported
24342 - Added drawing for flat style buttons
24343 - Added ScrollBar drawing
24345 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
24347 * ThemeClearlooks.cs: Removed some unneeded code.
24348 * ThemeGtk.cs: First part of ThemeGtk enhancements.
24350 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
24352 * LinkLabel.cs: We need to update the hover drawing when
24353 leaving the control as well.
24355 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
24357 * DataGrid.cs: Clicking on non empty areas in the columns
24358 area was giving an exception
24360 2006-01-17 Jackson Harper <jackson@ximian.com>
24362 * ThemeWin32Classic.cs:
24363 * ListView.cs: Do not draw/clip the headers when the header style
24366 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
24368 * DataGrid.cs: Fixes 77260
24370 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
24372 * DataGrid.cs: Clicking on a column on a empty grid was giving
24375 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
24377 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
24378 or any keypress will crash the grid.
24380 2006-01-17 Mike Kestner <mkestner@novell.com>
24382 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
24383 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
24384 invisible/previously-visible items.
24387 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
24389 * ThemeClearlooks.cs:
24390 - Added CL_Draw_Button method; now other theme controls that are
24391 not derived from button or do not have a button can draw buttons
24393 - Updated ComboBox drawing
24394 - Beautified RadioButton drawing
24395 - Corrected drawing of bottom and left tabs
24396 - Beautified DateTimePicker and MonthCalendar
24397 - Added CPDrawButton and CPDrawRadioButton
24399 2006-01-16 Jackson Harper <jackson@ximian.com>
24401 * ComboBox.cs: Set the initial value of the scrollbar to the
24402 current index. Reduce the numbers of refreshs and IndexOfs called.
24404 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
24406 * FileDialog.cs: When the file listview is focused hitting the
24407 backspace key moves the fileview to the parent directory
24409 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24412 - Added RecreateHandle call when changing taskbar visibility to
24413 trigger reparenting in Win32 driver (Fixes #75719)
24414 - If a window has minimize or maximize buttons, it cannot have
24417 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
24418 the toplevel form with FosterParent (A toolwindow not on the
24419 taskbar) (Fixes #75719)
24420 - Made FosterParent a toolwindow
24422 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24424 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
24426 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24428 * ToolTip.cs: If SetToolTip is called from a control and the mouse
24429 is currently over that control, make sure that tooltip_window.Text
24432 2006-01-13 Mike Kestner <mkestner@novell.com>
24434 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
24436 2006-01-13 Jackson Harper <jackson@ximian.com>
24438 * TreeView.cs: On MS GetNodeAt never actually factors in the X
24439 value passed. Also redraw the selected node when we recieve
24440 focus, so tabbing between trees works correctly.
24442 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
24444 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
24445 ~/.gconf/%gconf-tree.xml, so use
24446 .gconf/desktop/gnome/interface/%gconf.xml
24448 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24450 * TextControl.cs: Draw text in gray if control is disabled
24452 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24454 * TreeView.cs: Draw the focus rectangle outside the highlight, to
24455 make sure it's always visible. Fixes #76680.
24457 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
24459 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
24461 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
24463 * PageSetupDialog.cs: Added.
24464 * PrintDialog.cs: Attributes.
24465 * PrintPreviewControl.cs: Updates.
24466 * PrintPreviewDialog.cs: Updates.
24468 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24470 * Control.cs: Undid my selection check fix, since it's not needed
24472 - Now considering the presence of hscroll/vscroll when sizing
24473 vscroll/hscroll respectively. Fixed bug #77077
24474 - Added Left/Up/Down/Right to IsInputKey list to prevent
24475 ContainerControl from stealing them. This fixes what I broke
24476 with my last checkin.
24478 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24480 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
24481 I finally understand how the property can be set without a setter :-)
24483 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24486 - Switched RunLoop to use static Message.Create to create a
24488 - Added PreProcessMessage call in runloop for keyboard events; this
24489 is part of the fix for #77219, I overlooked this originally in the
24490 MSDN doc for PreProcessMessage
24492 - Removed call to PreProcessMessage from handling of keyboard
24493 messages; it's supposed to be done in the message pump
24494 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
24495 per MSDN documentation.
24496 - IsInputChar: All chars are input chars by default; removed the
24497 parent calling chain, MS does not document that
24498 - PreProcessMessage: If IsInputChar is true, we want to return false
24499 to allow dispatching of the message
24500 - When selecting the next control, now also check that we're not
24501 selecting ourselves again and therefore return a false positive.
24503 - Tried to match return values for IsInputKey and ProcessDialogKey
24504 to what MS returns; moved processing of our special keys outside
24505 ProcessDialogKey since MS does not seem to return true on those.
24506 - Moved code that previously was in ProcessDialogKey into new private
24507 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
24508 - Reworked handling of WM_CHAR to not have to duplicate code from
24509 Control.cs anymore, instead we simply call down to base.
24511 2006-01-12 Jackson Harper <jackson@ximian.com>
24513 * ComboBox.cs: We always need to refresh the text area when
24514 EndUpdate is called. Fixes the combobox in the file dialog.
24515 * Control.cs: Don't create the creator_thread until the controls
24516 handle is created. Also in InvokeRequired we check if the
24517 creator_thread is null. This gives the effect of InvokeRequired
24518 returning true if the controls handle is not created yet, and
24521 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24524 - Added StartLoop() driver method. This is used to allow drivers to
24525 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
24526 loop for a particular thread
24527 - Added EndLoop() driver method. This is called once the message
24528 pump for the thread is shut down
24529 - Added SupportsTransparency method to allow the driver to indicate
24530 opacity support for windows
24532 - Removed TODO attribute, completed AllowTransparency property
24533 - Added documented logic to Opacity
24534 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
24535 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
24536 versions of CompatibleTextRendering
24537 * X11Structs.cs: Added opacity atom to our atom enumeration
24538 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
24539 of a form might be set before it's reparented by the WM, and we need
24540 the opacity value without calling up to Form)
24541 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
24542 SupportsTransparency() driver methods
24543 * Application.cs: Now calling StartLoop and EndLoop driver methods
24545 - Added opacity atom registration
24546 - Added StartLoop()/EndLoop() methods. They're empty right now but
24547 will need to get implemented when we switch to a per-thread queue
24548 - Implemented SupportsTransparency() method
24549 - Implemented SetWindowTransparency() method
24550 - Added support for setting the opacity value when a window is
24551 reparented (since the opacity needs to be set on the WM frame)
24552 * XplatUIOSX.cs, XplatUIWin32.cs:
24553 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
24555 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24557 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
24559 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
24561 * FileDialog.cs: Added ToolTip for MWFFileView
24562 * MimeIcon.cs: Rewrote GnomeHandler.
24563 - Get currently used gnome icon theme from
24564 ($HOME)/.gconf/%gconf-tree.xml
24565 - Make use of inherited icon themes
24566 - Support SVG icon themes like Tango via librsvg
24568 2006-01-12 Miguel de Icaza <miguel@novell.com>
24570 Revert's Jackson's revert which broke 2.0 builds. Fix both
24573 * Application.cs: Move the use_compatible_text_rendering outside
24574 the NET_2_0 define. If we ever need to use the
24575 use_compatible_text_rendering on the individual controls they will
24576 access the variable from the common shared code paths.
24578 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
24581 - Added more granular debug options
24582 - Added method to print both window text and id
24583 - Switched debug output to use new Window() debug method
24584 - Added IsEnabled() driver method
24585 - Added EnableWindow() driver method
24587 - Removed end_modal; no longer needed, new loop handles termination
24588 via 'closing' variable
24589 - If form is modal, setting DialogResult will now initiate loop
24590 termination via 'closing' variable
24591 - Added support for is_enabled/WS_DISABLED to CreateParams
24592 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
24594 - Removed code that's now in RunLoop from ShowDialog()
24595 - Added various documented sanity checks to ShowDialog()
24596 - Added handling of WM_DESTROY message; we set 'closing' on getting
24597 the message to indicate the message pump to terminate
24598 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
24599 send by the Application.ExitThread method. (We send the message
24600 to destroy the window after all other events have been
24601 processed through the queue, instead of destroying the handle
24603 - Moved code from Close() method to WM_CLOSE handler; added logic
24604 to only send close-related events if the form is not displayed
24606 * Splitter.cs (..ctor): Fixed typo in resource name
24608 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
24610 - set_Cursor: Now only setting calling into XplatUI if the handle for
24611 the control is already created; this avoids implict handle creation
24612 or crashes if it's not created
24613 - set_Enabled: Now setting the enabled state via the new driver method
24614 instead of just tracking it
24615 - CreateParams: Added logic to set WS_DISABLED based on enabled state
24616 - CreateControl: Reordered event firing and method calls to more
24617 closely fire events in the order MS does. Now setting the
24618 enabled state in the driver when creating the control.
24619 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
24621 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
24622 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
24623 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
24625 - Added tracking of window enabled state (get_Enabled/set_Enabled)
24626 - Added EnabledHwnd property to easily allow a driver to find the
24627 handle of the first enabled window in the parent chain (this is
24628 used by drivers to pass up input events of disabled windows)
24629 * XplatUIDriver.cs: Added IsEnabled() method
24631 - Removed crude and obsolete exiting tracking variable
24632 - Removed internal ModalRun(); replaced by RunLoop()
24633 - Implemented private CloseForms() method to allow closing all
24634 windows owned by a particular (or all) threads
24635 - Exit() now properly closes all windows without forcing the message
24637 - Removed obsolete InternalExit() method
24638 - Changed Run() methods to use new RunLoop() message pump
24639 - Implemented new RunLoop() method for both modal and non-modal forms
24641 - get_CreateParams: Added setting of WS_DISABLED
24642 - Simplified ShowDialog(); now all the work is done in RunLoop(),
24643 invoked via Form.ShowDialog()
24644 * NativeWindow.cs: We don't remove the window from the collection when
24645 the handle is destroyed; there might still be messages for it in the
24646 queue (mainly the resulting WM_DESTROY); instead it will be removed
24647 when Control calls InvalidateHandle in the WM_DESTROY handler
24649 - CreateWindow: Added logic to handle the WS_DISABLED window style
24650 - EnableWindow: Implemented based on Hwnd.Enabled
24651 - GetMessage: Reset PostQuitState so the method can be called again
24652 - Implemented support for disabled windows (passing messages to the
24653 first enabled parent) in handling all input messages
24654 - Added optimizations for handling Expose events
24655 - Implemeted new driver method IsEnabled()
24656 - Now always resetting paint pending tracking vars when we start paint
24657 - Re-implemented UpdateWindow via just sending a WM_PAINT message
24658 * XplatUIOSX.cs: Added IsEnabled method stub
24659 * XplatUIWin32.cs: Implemented new IsEnabled() method
24661 2006-01-11 Jackson Harper <jackson@ximian.com>
24663 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24664 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
24665 variables a little.
24666 * ColorDialog.cs: Clear out the old form before adding the new
24669 2006-01-11 Jackson Harper <jackson@ximian.com>
24671 * X11Dnd.cs: Make sure to add all the text formats when adding
24672 strings to the data object.
24673 * TreeNodeCollection.cs: When adding to a sorted tree we need to
24674 do some redrawing too. Also change the UpdateNode to an
24675 UpdateBelow so the newly added node gets painted.
24677 2006-01-11 Miguel de Icaza <miguel@novell.com>
24679 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24680 LinkLabel.cs, PropertyGrid.cs: Implement the
24681 UseCompatibleTextRendering property for 2.x
24683 * Application.cs (SetCompatibleTextRenderingDefault): Add.
24685 2006-01-11 Jackson Harper <jackson@ximian.com>
24687 * TreeView.cs: Use the property for setting the selected node so
24688 the correct events get raised.
24689 * TreeNode.cs: Update the tree when the fore/back colours of a
24692 2006-01-10 Jackson Harper <jackson@ximian.com>
24694 * TreeView.cs: Allow setting SelectedNode to null.
24696 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24698 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
24700 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24702 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
24704 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24706 * PrintDialog.cs: Added attributes and set default property values.
24708 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24710 * PrintControllerWithStatusDialog.cs:
24711 Added PrintControllerWithStatusDialog.
24713 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24715 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24716 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
24718 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
24720 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
24722 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
24724 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
24725 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
24727 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24729 * MimeIcon.cs: Added internal class SVGUtil.
24731 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
24733 * FileDialog.cs: Don't crash if there are two files with the
24734 same name but different locations.
24736 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
24738 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
24739 dates across multiple month grids. Used to not highlight entire
24740 month, but does now.
24742 2006-01-06 Jackson Harper <jackson@ximian.com>
24744 * MonthCalendar.cs: Removed DoEvents call to prevent a running
24745 message loop. Change timer intervals to numbers that seem more
24748 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
24750 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
24751 object for location info since screen object is now implemented.
24753 2006-01-05 Jackson Harper <jackson@ximian.com>
24755 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
24756 * AsyncMethodResult.cs: We no longer use a WeakReference for the
24757 AsyncMethodResult, this is because we ALWAYS want the
24758 ManualResetEvent to get set.
24759 * Control.cs: When disposing use an async invoke to call shutdown
24760 code, so that thigns don't block on the finalizer thread. Also
24761 check if we even have a message loop before trying to send
24762 messages, if we don't then don't bother sending messages.
24763 - No more weak references for async methods
24764 * XplatUIDriver.cs: No more weak references for async methods.
24766 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24768 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
24769 returns two FontFamily with the same name
24771 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24773 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
24774 drawing disabled text. Instead using the ColorGrayText color
24776 2006-01-04 Jackson Harper <jackson@ximian.com>
24778 * TreeNode.cs: redraw the node when its image index is changed.
24780 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
24782 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
24783 time I checked there are no others like it.
24785 2006-01-04 Jackson Harper <jackson@ximian.com>
24787 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
24788 this gives the behavoir I was looking for.
24789 * Control.cs: Special case Invoking EventHandlers, this matches MS
24790 and fixes part of bug #76326.
24792 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24794 * ThemeClearlooks.cs, FileDialog.cs:
24795 - Reflect the latest Theme class changes
24796 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
24799 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
24801 * Theme.cs: Cache UI resource images and resize them if needed
24803 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24805 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
24806 is called. This fixes the crash in Nexxia when setting the font
24807 attributes in the chat. [However, RTF needs a look-over to make sure
24808 that all SelectionXXX methods handle the special case that selection
24809 is empty and therefore the change must be applied to all text starting
24810 at the cursor/selection start]
24812 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24814 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24815 XplatUIOSX.cs: Added SendMessage and PostMessage methods
24816 * X11Keyboard.cs: Switched to new way of calling PostMessage
24818 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
24820 * Theme.cs: Added theme interface for images to allow the theme to
24821 control what images are used for things like FileDialog, MessageBox
24823 * MessageBox.cs: Now uses the new Theme icon/image interfaces
24825 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
24828 - Removed some dead code
24829 - Opening a recently used file does work now
24830 - Small UI enhancements
24833 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24835 * FileDialog.cs: Forgot too add __MonoCS__
24837 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
24839 * FileDialog.cs: We are able to read recently used files now let's
24840 go on and write them.
24842 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
24844 * FileDialog.cs: Breathe some life into "last open"/"recently used"
24846 * MimeIcon.cs: Do a check for the top level media type also
24848 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24850 * ThemeClearlooks.cs:
24851 - Added CPDrawStringDisabled
24852 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
24853 some chars if the text doesn't fit into text_rect
24854 - DrawListViewItem: If View = View.LargeIcon center the image;
24855 rewrote the drawing of ListViewItem.Text if View =
24858 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
24860 * MimeIcon.cs: Use default KDE icon theme if there is no
24861 "48x48" directory for the current icon theme, fixes #77114
24862 * Mime.cs: Disable not working and actually not used code.
24863 * ThemeWin32Classic.cs:
24864 - Replace "new SolidBrush" in GetControlBackBrush and
24865 GetControlForeBrush with ResPool.GetSolidBrush
24866 - Changed DrawListViewItem from private to protected virtual
24868 - Added form.MaximizeBox = true
24869 - Don't throw an exception if there is a broken symbolic link
24871 2005-12-23 Jackson Harper <jackson@ximian.com>
24873 * TabControl.cs: Give the panels focus, keyboard navigation is
24874 fixed so this works correctly now.
24875 - We need these key events also.
24876 * ToolBar.cs: Remove some of the poor mans double buffering.
24878 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
24880 * ComboBox.cs: The internal TextBox now returns the focus.
24882 2005-12-23 Jackson Harper <jackson@ximian.com>
24884 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
24886 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24888 * Control.cs: Removed debug code
24889 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24892 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24894 * Control.cs: When creating the control, update the Z-order after
24895 all it's children are created, too. (Fixes nexxia not showing
24898 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24900 * Control.cs: Do not update the anchoring distances if layout is
24901 suspended, instead do it once layout is resumed
24903 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24906 - After many hours of debugging, for both Jackson and
24907 myself, it turns out that it helps to set the parent of a control
24908 if you want to actually see it onscreen. In the spirit of that
24909 discovery, we're now setting the parent of the control and
24910 it's children when the control's handle is created. This fix
24911 will make Lutz Roeder's Reflector run happily.
24912 - now just creating the handle instead of the whole control when
24913 getting a graphics context for the control.
24915 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24917 * ScrollableControl.cs: When calculating the canvas, don't consider
24918 the scrollbar widths. Instead, predict if horizontal scrollbar
24919 will affect canvas when deciding on vertical display and vice versa.
24921 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24923 * RichTextBox.cs: Set default RTF font for documents that don't
24924 have a font table (Fixes #77076)
24926 2005-12-22 Jackson Harper <jackson@ximian.com>
24928 * TextBoxBase.cs: It's difficult to do, but you can have an empty
24929 clipboard. This prevents a NullRef in that case.
24930 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24931 clipboard. PRIMARY is for the currently selected text only. (We
24932 should implement PRIMARY at some point.
24934 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24936 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24937 a Unicode function with a structure that was defined in Ansi way.
24940 2005-12-21 Jackson Harper <jackson@ximian.com>
24942 * StatusBar.cs: Statusbar handles its fore/back colours on it's
24943 on. Because thats how it rolls. (and this avoids it using ambient
24945 * ThemeWin32Classic.cs: Use the proper back color for filling.
24946 * Menu.cs: Use the system menu bar color for drawing menu
24947 bars. Using the window back color will bring ambient colours into
24950 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
24952 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24953 Bitmaps were created and not disposed.
24955 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24957 * Control.cs (CreateControl): Don't do anything if the control is
24958 already created, otherwise we'd fire the OnCreated event more than
24961 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24963 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24964 will always match. Instead return -1. Fixes #76464.
24966 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24968 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24969 neither the beginning nor the end of the line (Fixes bug #76479)
24971 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24974 - ControlNativeWindow.ControlFromHandle(): Now handling situation
24975 where handle is invalid
24976 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24977 instead of slower linear search
24978 * NativeWindow.cs: Don't remove the window from the hashtable until
24979 after the driver has destroyed it (since the driver might use
24980 Control.FromHandle to lookup the control object
24981 * Hwnd.cs: Added DestroyPending property to track if a window is
24982 already destroyed as far as the driver is concerned and only hasn't
24983 yet notified the control
24985 - Activate(): Check if the window is still valid before using the
24987 - Implemented DestroyChildWindow() method to mark child windows as
24988 destroyed when a window is destroyed. This prevents situations
24989 where we might call an X method based on queued events for a
24990 window that already has been destroyed but we haven't yet pulled
24991 the destroy method from the queue.
24992 - Added a call to the new DestroyChildWindow() method to the drivers
24993 DestroyWindow code. Also now marking the destroyed window itself
24996 2005-12-20 Jackson Harper <jackson@ximian.com>
24999 * StatusBarPanel.cs: Don't calculate panel sizes on draw
25000 anymore. Just do them when needed, also track the rects of panels
25001 so that we can optimize refreshing more in the future.
25003 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
25005 * ColorDialog.cs: Fixed focus drawing in small color controls
25007 2005-12-19 Jackson Harper <jackson@ximian.com>
25009 * InternalWindowManager.cs:
25010 * MdiWindowManager.cs: Cleanup some coordinate system changes so
25011 moving windows works properly.
25013 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
25016 - Removed call to InitLayout() from SetBoundsCore(); doc says
25017 it's only called when a control is added to a container
25018 - Split InitLayout logic, moved to separate UpdateDistances() method
25019 since we need to perform those calculations more often than just
25020 when adding the control to a container. (Needed to fix #77022)
25021 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25022 - Reduced the OnBindingContextChanged events count, don't send them
25023 unless the control is created, we still aren't totally matching
25024 MS, but I can't quite figure out some of their rules
25026 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25028 * ThemeClearlooks.cs: Corrected distance between ProgressBar
25031 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25033 * ThemeClearlooks.cs:
25034 - Updated ProgressBar drawing
25035 - Corrected drawing of ScrollBars and scroll buttons
25036 - Some temporary fixes for minor pixel artefacts
25038 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
25041 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
25042 cause events to be sent in the same order as MS does.
25043 - Added ChangeParent() method to trigger various OnXXXChanged events
25044 that need to be fired when a parent changes (This is a reworking
25045 of the patch from r54254, with the X11 errors fixed)
25046 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
25047 since on MS we get OnLayoutChanged events when calling Clear()
25048 - Changed Enabled property to consider parent state as well, if a
25049 parent is not enabled, the control will not be either
25050 - Changed Parent property to simply call Controls.Add() since that
25051 now does all the work required, this way we avoid code duplication
25052 - Threw in a few OnBindingsContextChanged calls to try and match
25053 when MS sends them. We seem to send a few too many, though.
25054 - Added call to CreateControl when adding the control to a parent.
25055 We were never calling CreateControl. Still needs some work, in
25056 some places we treat HandleCreated and ControlCreated as equal,
25058 - Removed obsolete commented out code from UpdateZOrder()
25060 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25062 * ThemeClearlooks.cs: Updated TrackBar drawing.
25064 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25066 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
25068 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25070 * FileDialog.cs: Add the Help button and the open readonly
25071 checkbox only if needed
25073 2005-12-16 Jackson Harper <jackson@ximian.com>
25075 * Control.cs: Make sure we have an active menu before trying to
25076 process commands on it. Prevents menu-less forms from crashing
25077 when Alt is pressed.
25078 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
25080 * RichTextBox.cs: Expand statement to help out gmcs and fix the
25083 2005-12-16 Jackson Harper <jackson@ximian.com>
25085 * InternalWindowManager.cs: Don't translate tool windows screen
25086 coordinates. This fixes windows 'bouncing' around when being moved.
25088 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
25091 - MaxLength now treats 2^31-1 equal to unlimited length (this is
25092 not quite MS compatible, MS uses that number only for single line
25093 and 2^32-1 for multi-line, but I figure it won't hurt keeping
25095 - Now enforcing the MaxLength limit when entering characters
25096 - Added argument to internal Paste() method to track if it's called
25097 from programatically or via keyboard, since keyboard driven pastes
25098 need to enforce max-length
25099 - Added logic to Paste to only paste as many chars as MaxLength
25101 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
25103 - Added Length property to return number of characters in document
25104 - Added private CharCount property which only tracks actual chars
25105 in the document (no linefeeds) and fires event when CharCount
25107 - Added tracking of character count to all methods that alter it
25108 - Added LengthChanged event to allow applications to subscribe
25109 to any changes to the document
25111 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
25114 - Removed local password_char field (moved to TextBoxBase)
25115 - Now setting the document's password var when password is
25118 - Added password_char field (needed here so MultiLine can
25120 - Added logic to MultiLine property setter to set the document's
25121 variable when password display is allowed
25122 - Removed debug code and made some debug code conditional
25124 - Added RecalculatePasswordLine() method to handle special password
25126 - Added PasswordChar property, also added related tracking vars
25127 - Draw() method now uses local text var for grabbing text to draw,
25128 this var is set to line.text unless we're doing password display,
25129 then it is set to the pre-generated all-password-chars line
25130 - Added calling RecalculatePasswordLine() method for password lines
25132 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
25135 - Added Reparented property to allow tracking of Window Manager
25136 reparenting actions (which affect X/Y calculations of toplevel
25138 - Made ToString() print window handles in hex
25140 - AddConfigureNotify(): Now uses reparented state off Hwnd to
25141 determine if X/Y needs offsetting
25142 - AddConfigureNotify(): Fixed offset calculations
25143 - Now adds ReparentNotify messages into the queue
25144 - Now processes ReparentNotify messages and causes a
25145 WM_WINDOWPOSCHANGED message to be sent upstream if a window
25146 is reparented (as most likely it's X/Y coordinates are changed
25149 2005-12-14 Jackson Harper <jackson@ximian.com>
25151 * XplatUIX11.cs: Tool windows still need to respek focus.
25153 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
25155 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
25156 have a working release
25158 2005-12-13 Jackson Harper <jackson@ximian.com>
25160 * Form.cs: Update styles after setting the border style regardless
25161 of whether or not the window is using a window manager.
25163 2005-12-13 Jackson Harper <jackson@ximian.com>
25165 * Form.cs: We now hook into an internal window manager instead of just an
25166 MDI subsystem, this is so we can have properly behaving tool windows.
25167 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
25168 * InternalWindowManager.cs: New internal class that acts as a
25169 window manager for tool windows and as a base for mdi windows.
25170 * MdiWindowManager.cs: New class that acts as a window manager for
25173 2005-12-12 Jackson Harper <jackson@ximian.com>
25175 * Control.cs: Updates so we match behavoir for for implicit
25176 controls. Fixes explosions in MDI.
25178 2005-12-12 Jackson Harper <jackson@ximian.com>
25180 * Control.cs: Implement Invalidate (Region).
25182 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
25185 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
25186 the same events as MS does. MS fires events for each property
25187 except, for unknown reasons, Cursor, when the control is reparented.
25188 I can't seem to totally match add/remove since MS also fires some
25189 VisibleChanged events, which makes no sense. Consolidated the
25190 parenting code into a separate method so it can be called from
25191 both Add and Remove. set_Parent no longer needs any special logic
25192 as it calls the parent's add method which implicitly fires
25194 - Removed some obsolete code and debug output
25195 - Enabled state is inherited from parents, if this is enabled
25197 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
25199 * Form.cs: Removed commented out code
25201 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
25204 - Added internal version of Invoke, with additional argument
25205 indicating if we're calling it from a Dispose() handler. That
25206 way we can avoid BeginInvoke throwing an exception if we're
25207 calling for an already destroyed window.
25208 - Added a dispose argument to BeginInvokeInternal, and made the
25209 check if a valid window handle chain exists conditional on
25210 it not being a dispose call
25211 - Removed code in DestroyHandle to destroy our children. Since we
25212 now handle the WM_DESTROY message we will catch all our children
25214 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
25216 - Added a field to track the application context of the form.
25217 - No need to set closing variable as response to WM_CLOSE, instead
25218 we destroy the window. We also call PostQuitMessage if the form
25219 has an application context (which makes it the main app form,
25220 which, when closed terminates the app)
25222 - Dropped Exit() method, it's naming was confusing
25223 - Added PostQuitMessage() which causes GetMessage to return false
25224 once the message queue is empty
25225 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
25227 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
25228 no longer a valid XplatUI method, but left it in since it's used
25229 internally. Added empty PostQuitMessage() method.
25230 * MenuAPI.cs: Replaced call to Exit() with call to
25231 PostQuitMessage, even though this is probably no longer needed.
25232 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
25233 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
25235 - Replaced call to XplatUI.Exit() with PostQuitMessage()
25236 - Removed old debug code that would call XplatUI for exception
25237 display, enabled standard exception handling (Still not enabled
25238 though, until NativeWindow's ExternalExceptionHandler define
25241 - Added internal method to allow control to update NativeWindow
25242 after a window has been destroyed
25243 - Added handling of already destroyed windows when calling i
25245 - Added removal of handle from list on ReleaseHandle
25247 - Dropped GetMessageResult var and related code
25248 - Added PostQuitState to field to track if PostQuitMessage has been
25250 - Dropped Exit() method
25251 - Added PostQuitMessage() method
25252 - GetMessage now will return false if PostQuitState is set and no
25253 more messages are in the queue.
25254 - Expose handler will no longer generate WM_PAINT messages if we are
25255 in PostQuitState since it's very likely any windows have already
25256 been destroyed, and since Hwnd won't get updated until we have
25257 processed the DestroyNotify we'd be causing X errors.
25259 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25261 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
25262 Thanks to Mike for pointing out the err of my ways.
25264 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25266 * Control.cs(PreProcessMessage): Moved menu handling back, but
25267 after all other key handling, to match MS (who handles Menu in
25269 * Menu.cs (WndProc): Removed my brainfart
25271 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25273 * Control.cs(PreProcessMessage): Removed special menu handling
25274 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
25276 2005-12-07 Mike Kestner <mkestner@novell.com>
25278 * Control.cs : special case SYSKEYUP so that we can adjust keynav
25279 state according in tracker.
25280 * Menu.cs : promote tracker field to base class and provide a tracker
25281 lookup capability. Add/Remove shortcuts dynamically if the top menu
25282 has a tracker. Unparent items that are removed from the collection.
25283 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
25284 * Theme*.cs: add always_show_hotkeys field to support configurability
25285 of mnemonic display. win32 doesn't show mnemonics until Alt is
25288 2005-12-07 Jackson Harper <jackson@ximian.com>
25290 * MdiChildContext.cs: Use Control.ResetCursor.
25291 * Control.cs: ResetCursor needs to set the property so that the
25292 correct XplatUI call gets made.
25294 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25296 * Control.cs: More fixes to make our key events match MS. We
25297 were not setting the modifier state on KeyData, and we were
25298 not generating any events when Alt was pressed with a key
25299 since handling of WM_SYSxxx was missing for the OnKey methods.
25301 2005-12-07 Jackson Harper <jackson@ximian.com>
25303 * MdiChildContext.cs: reenable the sizing code.
25304 - When the mouse leaves a window reset its cursor.
25306 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
25308 * ThemeClearlooks.cs: Reflect latest Hwnd changes
25310 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
25312 * Hwnd.cs: Now using the theme 3d bordersize to calculate
25313 widths of Fixed3D borders
25315 2005-12-07 Jackson Harper <jackson@ximian.com>
25317 * MdiClient.cs: Fix warnings. Earn Mike's love.
25319 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
25321 * ThemeClearlooks.cs:
25322 - Adjusted mouse over button color
25323 - Added first parts of CheckBox drawing
25324 - Added correct color for selected text background
25325 - Fixed ComboBox drawing
25326 - Added CPDrawBorder3D and CPDrawBorder
25328 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25330 * XplatUIX11.cs: Added call to XBell for AudibleAlert
25332 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25334 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25335 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
25336 alert users via sound. We could add an enum arg with different
25337 types of alerts in the future
25339 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
25341 * Control.cs: Fix behaviour problems pointed out by Mike
25343 2005-12-05 Mike Kestner <mkestner@novell.com>
25345 * StatusBarPanel.cs: add Invalidate method and hook it into all the
25346 prop setters. Calls parent.Refresh for now, but could be maybe be
25347 optimized with an internal method on StatusBar at some point.
25350 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
25352 * RichTextBox.cs: Implemented get_SelectionColor
25354 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
25356 * ThemeClearlooks.cs:
25357 - Removed dead code
25358 - Draw black button border only if button is Form.AcceptButton
25359 - Draw correct button color for pressed RadioButton if the mouse
25360 has entered the button
25361 - Updated ProgressBar drawing!
25362 - Updated CPDrawSizeGrip drawing
25363 - Updated StatusBarPanel drawing
25365 2005-12-05 Mike Kestner <mkestner@novell.com>
25367 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
25368 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
25370 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
25372 * ThemeClearlooks.cs: Initial check-in, activate with
25373 export MONO_THEME=clearlooks
25374 * ThemeEngine.cs: Added ThemeClearlooks
25376 2005-12-03 Mike Kestner <mkestner@novell.com>
25378 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
25381 2005-12-02 Jackson Harper <jackson@ximian.com>
25383 * Form.cs: If the child form has no menu the default main menu is
25384 used as the active menu.
25386 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25388 * ListBox.cs: Check if any items exist before trying to resolve
25389 coordinates into items
25391 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25393 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
25394 as the second color for the background hatch
25396 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
25398 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
25399 * RichTextBox.cs: FormatText position arguments are 1-based, now making
25400 sure that what we pass to FormatText is always 1-based. Fixes #76885
25402 2005-11-29 Miguel de Icaza <miguel@novell.com>
25404 * NumericUpDown.cs (EndInit): When we are done initializing,
25405 reflect any updates on the UI.
25407 2005-12-02 Jackson Harper <jackson@ximian.com>
25409 * ImplicitHScrollBar.cs:
25410 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
25411 their container controls.
25412 * TreeView.cs: Use the new implicit scrollbars.
25414 2005-12-02 Jackson Harper <jackson@ximian.com>
25416 * TreeView.cs: Make top_node internal so the TreeNodeCollections
25418 * TreeNodeCollection.cs: If we remove the topnode we need to
25419 update topnode to the next node in line.
25420 - When clearing nodes go through the same process as removing
25421 them, so they get depareneted and checked if they are top node.
25423 2005-12-01 Jackson Harper <jackson@ximian.com>
25425 * TreeView.cs: When imagelists are used the image area is
25426 selectable as well as the text.
25427 - If there are no selected nodes select the first one.
25428 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
25429 so don't do it more then we need to.
25431 2005-12-01 Jackson Harper <jackson@ximian.com>
25433 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
25434 that arrows can be scaled.
25436 2005-12-01 Jackson Harper <jackson@ximian.com>
25438 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
25439 fail. Patch by Dieter Bremes
25441 2005-11-30 Jackson Harper <jackson@ximian.com>
25443 * Form.cs: Property is 2.0 only
25444 * PrintDialog.cs: Signature fix.
25446 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25449 - No longer artificially moves text 2 pixels down (now that we have
25450 borders this is no longer needed)
25451 - Added calcs for left, hanging and right indent
25453 2005-11-23 Mike Kestner <mkestner@novell.com>
25455 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
25457 2005-11-30 Jackson Harper <jackson@ximian.com>
25459 * MdiChildContext.cs: Set the cloned menus forms, as these don't
25460 get cloned as part of CloneMenu ().
25461 * Menu.cs: Make sure the parent of the items get set correctly
25462 when they are added. And the owners are notified of the changes.
25463 * Form.cs: Create an ActiveMenu property, so that when MDI is used
25464 we can change the menu being displayed/handled by the form without
25465 changing the menu assosciated with the form.
25466 - Don't let Mdi children draw/handle menus.
25468 2005-11-30 Jackson Harper <jackson@ximian.com>
25470 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
25471 a MenuChanged event. Just to make the API a little more
25474 * MenuItem.cs: Use the new OnMenuChanged
25475 * MdiChildContext.cs: Handle menu merging.
25476 * Form.cs: Implement MergedMenu.
25478 2005-11-30 Jackson Harper <jackson@ximian.com>
25480 * Menu.cs: We were misusing Add. Add goes behind the specified
25481 index according to the docs, and does not replace the specified
25482 index. So I added an Insert method.
25484 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
25486 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
25487 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
25489 * RichTextBox.cs: Added calls to base for DnD events
25491 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
25494 - Fixed drag-selection related crash; style fixes
25495 - Implemented undo class
25496 o Implemented method to capture document state for specified
25497 range in document tree
25498 o Implemented method to restore captured document state
25499 o Implemented cursor tracking
25500 o Implemented basic undo stack
25501 - Added undo cursor tracking to methods altering cursor location
25502 - Added undo tracking to selection deletion (still missing
25503 other text-altering hookups)
25505 - Added SelectionLength property
25506 - Implemented CanPaste()
25507 - Implemented Paste()
25508 - Added missing protected methods
25509 - Fixed RTF->Document conversion; now uses font index 0 and color
25510 index 0 as the default font for the parsed text
25511 - Fixed RTF<->Document font size translation
25512 - Fixed RTF generation, now properly handles cross-tag boundaries
25513 for single line selection
25514 - No longer always appends blank line to generated RTF
25516 - Added missing attributes
25517 - Hooked up undo-related methods
25519 - Implemented Copy()
25520 - Implemented Paste()
25521 - Implemented Cut()
25522 - Fixed caret mis-behaviour on backspace across line-boundaries
25524 2005-11-29 Jackson Harper <jackson@ximian.com>
25526 * MdiClient.cs: Add a method for activating mdi children. Very
25527 basic right now. I imagine someday it might need more girth.
25528 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
25529 children windows names are added to the menu item.
25530 * ThemeWin32Classic.cs: Draw the arrow if the item is an
25531 mdilist. This happens regardless of whether or not there are any
25532 mdi windows to see in the list, and according to my tests happens
25533 before the items are even added. Also happens if there isn't even
25534 an mdi client to get windows from.
25536 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
25538 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
25539 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
25541 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
25543 * DataGridTableStyle.cs:
25544 - Create always the styles for the missing columns even if they are
25545 provided by the user (not default table style)
25548 - Fixes SetDataBinding (always re-attach source)
25549 - Fixes SetNewDataSource (only clear styles if they are not for
25551 - Expands OnTableStylesCollectionChanged to handle style refresh
25552 and remove properly
25554 2005-11-29 Jackson Harper <jackson@ximian.com>
25556 * FileDialog.cs: Implement missing bits, remove some dead
25558 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
25559 creation of the panel so that the options set on the dialog are
25560 seen when the panel is created.
25561 * TreeView.cs: raise a click when items are clicked.
25563 2005-11-29 Jackson Harper <jackson@ximian.com>
25565 * MdiClient.cs: Pass some signature methods through to base.
25567 2005-11-28 Jackson Harper <jackson@ximian.com>
25569 * ListView.cs: Raise the click event when items are clicked.
25571 2005-11-28 Jackson Harper <jackson@ximian.com>
25573 * MdiClient.cs: Make this algorithm even more beautiful. And fix
25576 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
25578 * ThemeNice.cs: - Removed 1 pixel bitmaps
25579 - Use SmoothingMode.AntiAlias where it makes sense
25580 (ScrollButton arrow for example)
25581 - Enhanced Button focus drawing
25582 - Fixed ComboBox drawing (no artefacts anymore, focus
25583 rectangle is back again, reduced size of ComboButton, etc.)
25584 - Fixed RadioButton focus drawing for Appearence.Button
25585 - Slight ScrollButton redesign
25586 - Some LinearGradientBrush size fixes
25587 - GroupBoxes have now rounded edges
25588 - Fixed StatusBar drawing
25590 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
25592 * ThemeNice.cs: - Remove dead code
25593 - use correct background colors for menus, etc.
25594 - Fake pixel drawing with 1 pixel bitmaps
25596 2005-11-24 Jackson Harper <jackson@ximian.com>
25598 * MdiClient.cs: Size the scrollbars when resizing the window.
25599 - Resize the maximized windows when the client is resized
25600 * Form.cs: Make the child context available
25602 2005-11-23 Jackson Harper <jackson@ximian.com>
25604 * MdiChildContext.cs: Don't size windows if they are maximized.
25606 2005-11-23 Mike Kestner <mkestner@novell.com>
25608 * ContextMenu.cs: use MenuTracker.
25609 * Control.cs: remove menu handle usage.
25610 * Form.cs: remove menu handle usage.
25611 * Hwnd.cs: remove menu handle usage.
25612 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
25613 motion and clicks to the new Tracker handlers.
25614 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
25616 * MenuAPI.cs: refactored to combine popup and menubar event handling.
25617 Killed the MENU and MENUITEM data types and associated collections
25618 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
25619 MenuTracker class that exposes the leftovers from the old MenuAPI
25620 static methods. Restructured Capture handling so that only one grab is
25621 done for the entire menu hierarchy instead of handing off grabs to
25622 submenus. Tracker now has an invisible control to Capture when active.
25623 * MenuItem.cs: add sizing accessors, kill Create
25625 * Theme.cs: remove menu handle and MENU(ITEM) usage.
25626 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
25627 MENU(ITEM). remove menu handle usage, use Menu directly.
25628 * XplatUIDriver.cs: remove menu handle usage.
25629 * XplatUIOSX.cs: remove menu handle usage.
25630 * XplatUIWin32.cs: remove menu handle usage.
25631 * XplatUIX11.cs: remove menu handle usage.
25633 2005-11-22 Jackson Harper <jackson@ximian.com>
25635 * Hwnd.cs: Don't compute the menu size for
25636 DefaultClientRectangle.
25637 - Reenable menu sizes being computed for GetClienRectangle.
25638 * Form.cs: Remove comment of trechery
25640 2005-11-22 Jackson Harper <jackson@ximian.com>
25642 * Hwnd.cs: The adjustments for the menu bar are made when it is
25643 attached to the form.
25645 2005-11-19 Jackson Harper <jackson@ximian.com>
25647 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
25648 (just like on windows).
25650 2005-11-19 Jackson Harper <jackson@ximian.com>
25652 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
25653 use real buttons anymore because they are in non client area. The
25654 one TODO here is that I need to somehow invalidate a section of
25655 the non client area.
25657 2005-11-18 Jackson Harper <jackson@ximian.com>
25659 * Control.cs: Put the enum check back in now that MDI doesnt have
25660 to use this to set border styles.
25661 * Form.cs: Only set mdi child windows borders if the handle has
25663 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
25664 this directly on to the driver.
25665 - Get the move start position before adjusting for the titlebar
25666 height, this fixes the windows "skipping" when they are first
25669 2005-11-18 Jackson Harper <jackson@ximian.com>
25671 * XplatUIX11.cs: Just compute the mdi borders separately as they
25672 don't totally match up with normal form borders.
25674 2005-11-18 Jackson Harper <jackson@ximian.com>
25676 * Control.cs: Set WS_ styles for borders, so that the driver does
25677 not have to retrieve the control instance to figure out what kind
25678 of borders it should have.
25679 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
25680 driver can know its an mdi child easily.
25681 * XplatUIX11.cs: Get the border styles and whether the window is
25682 MDI from the Styles and ExStyles params instead of having to get a
25683 control. This prevents a chicken and egg problem.
25685 2005-11-18 Jackson Harper <jackson@ximian.com>
25687 * MdiClient.cs: Fix typo so scrollbars show up correctly.
25689 2005-11-18 Jackson Harper <jackson@ximian.com>
25691 * MdiClient.cs: Calculate when to add and remove scrollbars
25693 * MdiChildContext.cs: Adjust the y position to take the titlebar
25695 - No height for FormBorderStyle.None
25697 2005-11-18 Jackson Harper <jackson@ximian.com>
25699 * Control.cs: Allow non enum values to be used for
25700 InternalBorderStyle. MDI does this to set a special border style.
25701 - New utility methods for converting points to/from client coords
25702 - Add the newly created control to the Controls collection before
25703 updating its style. This way UpdateStyle can walk the control
25704 heirarchy to find the control if needed.
25705 so I don't need to create a new Point object all the time.
25706 * Form.cs: Let MDI windows handle their border styles.
25707 - Set styles on MDI windows so the correct title style is derived.
25708 * MdiChildContext.cs: Move all the painting and window handling
25709 into the non client area.
25710 - Use correct sizing and put correct buttons on frames based on
25711 the FormBorderStyle.
25712 - Notify the mdi client about scrolling
25713 - Need to handle the buttons ourselves now, because they are all
25714 in non client areas and we can't add controls there.
25715 * MdiClient.cs: Halfway to scrolling, this implementation is
25716 somewhat broken though, we need to check to make sure other
25717 windows aren't causing scrolling before removing the bars. Also
25718 the bars need to be drawn on top, maybe I can switch implicit
25719 controls to be on top.
25720 * Hwnd.cs: caption_height and tool_caption_height are now
25721 properties of an hwnd, this way they can be set by the driver
25722 based on the type of window they are. In X11 the window manager
25723 handles the decorations so caption_height is zero unless its an
25725 - Add 3 pixel borders for MDI windows (0xFFFF).
25726 - Get rid of some code duplication, have DefaultClientRectanle
25727 just call GetClientRectangle.
25728 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
25730 - Set border styles differently for mdi windows.
25731 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
25734 2005-11-15 Mike Kestner <mkestner@novell.com>
25736 * Menu.cs: when adding an item to the collection, if item is already
25737 parented, remove it from the parent.
25739 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
25741 * X11DesktopColors.cs: Added KDE support
25743 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
25746 - Clipboard methods now can translate Rtf format
25747 - No longer removes clipboard contents whenever a new format is added
25748 to allow placing multiple formats on the clipboard
25749 * Clipboard.cs: Clipboard now supports getting a IDataObject and
25750 will place all formats contained in it onto the clipboard. Also
25751 now cleans the clipboard before placing a new object onto it
25753 - Implemented set_Rtf
25754 - Implemented set_SelectedRtf
25755 - Created InsertRTFFromStream() method to allow single code base
25756 for all properties and methods that insert RTF into document
25757 - Removed debug output
25759 - Fixed Delete(int) to fix up line numbers
25760 - Fixed ReplaceSelection to combine start and end line
25761 - Fixed serious DeleteChars bug that would leave the document tree
25763 - Improved DumpTree with several logic checks to detect broken
25765 - Removed debug lines
25766 - Fixed Caret.WordForward/WordBack moving code, now always also
25767 updates caret.tag (fixes crash when word-selecting across tag
25768 boundaries via keyboard)
25769 - Added Insert() method for inserting multiline text into documents
25770 - Fixed DeleteChars() calculation errors that would cause a broken
25771 tag chain with multiple tag lines
25772 - DeleteChars() no longer crashes on multi-tag lines if not all tags
25773 - Split() no longer moves caret if split is at caret location
25774 - ReplaceSelection() now updates the cursor and re-displays it
25775 - ReplaceSelection() now uses new Insert() method to avoid code
25777 - FormatText() can now handle formatting partial lines
25779 - Append now uses new TextControl.Insert() method (this avoids
25781 - Implemented Ctrl-X (Cut) (
25782 - Implemented Ctrl-C (Copy)
25783 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
25784 regeneration when pasting text; roundtripping Copy&Paste within
25785 edit control still fails due to some calculation bugs in GenerateRTF)
25786 - The Delete key will now remove the current selection if it is visible
25787 * TextBox.cs: Removed debug lines
25788 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
25789 driver to be initialized and can't therefore be done via a static ctor)
25791 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
25793 * TextControl.cs: Added backend code for finding char arrays and strings
25795 - Added mouse wheel scroll support
25796 - Added support for VScroll and HScroll events
25798 - Implemented all seven Find() variants
25799 - Implemented GetCharFromPosition()
25800 - Implemented GetCharIndexFromPosition()
25801 - Implemented GetLineFromIndex()
25802 - Implemented GetPositionFromCharIndex();
25803 - Implemented SaveFile for PlainText and UnicodeText
25804 - Fixed set_Font, now setting a new font applies that font to
25806 - Implemented generic Document to RTF converter
25807 - Implemented SaveFile for RichText format (still missing unicode
25808 conversion for non-ansi chars)
25809 - Implemented get_Rtf
25810 - Implemented get_SelectedRtf
25812 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
25814 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
25815 to allow any captures to be released before triggering OnClick. This
25816 way a click handler may capture the mouse without interference.
25817 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
25818 This way we send them even though X may not allow a grab (if the window
25819 isn't visible, for example)
25821 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
25823 * DataGridViewRowEventArgs.cs: DataGridView implementation
25824 * DataGridViewElement.cs: DataGridView implementation
25825 * DataGridViewComboBoxCell.cs: DataGridView implementation
25826 * DataGridViewDataErrorContexts.cs: DataGridView implementation
25827 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
25828 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
25829 * ImageLayout.cs: DataGridView implementation
25830 * DataGridViewComboBoxColumn.cs: DataGridView implementation
25831 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
25832 * DataGridViewSelectionMode.cs: DataGridView implementation
25833 * IDataGridViewEditingControl.cs: DataGridView implementation
25834 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
25835 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
25836 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
25837 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
25838 * DataGridViewColumnSortMode.cs: DataGridView implementation
25839 * DataGridView.cs: DataGridView implementation
25840 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
25841 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
25842 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
25843 * Padding.cs: DataGridView implementation
25844 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
25845 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
25846 * DataGridViewRowEventHandler.cs: DataGridView implementation
25847 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
25848 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
25849 * DataGridViewButtonCell.cs: DataGridView implementation
25850 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
25851 * DataGridViewEditMode.cs: DataGridView implementation
25852 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
25853 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
25854 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
25855 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
25856 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
25857 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
25858 * DataGridViewCellEventHandler.cs: DataGridView implementation
25859 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
25860 * DataGridViewCellStyleConverter.cs: DataGridView implementation
25861 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
25862 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
25863 * DataGridViewColumnEventArgs.cs: DataGridView implementation
25864 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25865 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25866 * QuestionEventArgs.cs: DataGridView implementation
25867 * IDataGridViewEditingCell.cs: DataGridView implementation
25868 * DataGridViewTriState.cs: DataGridView implementation
25869 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25870 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25871 * DataGridViewColumnCollection.cs: DataGridView implementation
25872 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25873 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25874 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25875 * DataGridViewColumn.cs: DataGridView implementation
25876 * DataGridViewCellBorderStyle.cs: DataGridView implementation
25877 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25878 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25879 * DataGridViewRow.cs: DataGridView implementation
25880 * DataGridViewImageCellLayout.cs: DataGridView implementation
25881 * DataGridViewImageCell.cs: DataGridView implementation
25882 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25883 * DataGridViewCheckBoxCell.cs: DataGridView implementation
25884 * DataGridViewHeaderCell.cs: DataGridView implementation
25885 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25886 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25887 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25888 * DataGridViewTextBoxColumn.cs: DataGridView implementation
25889 * QuestionEventHandler.cs: DataGridView implementation
25890 * DataGridViewCellStyleScopes.cs: DataGridView implementation
25891 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25892 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25893 * DataGridViewCell.cs: DataGridView implementation
25894 * DataGridViewCellEventArgs.cs: DataGridView implementation
25895 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25896 * DataGridViewCellStyle.cs: DataGridView implementation
25897 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25898 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25899 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25900 * TextFormatFlags.cs: DataGridView implementation
25901 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25902 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25903 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25904 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25905 * DataGridViewButtonColumn.cs: DataGridView implementation
25906 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25907 * HandledMouseEventArgs.cs: DataGridView implementation
25908 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25909 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25910 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25911 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25912 * DataGridViewRowCollection.cs: DataGridView implementation
25913 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25914 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25915 * DataGridViewHitTestType.cs: DataGridView implementation
25916 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25917 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25918 * DataGridViewColumnEventHandler.cs: DataGridView implementation
25919 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25920 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25921 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25922 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25923 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25924 * DataGridViewContentAlignment.cs: DataGridView implementation
25925 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25926 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25927 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25928 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25929 * DataGridViewPaintParts.cs: DataGridView implementation
25930 * DataGridViewCellCollection.cs: DataGridView implementation
25931 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25932 * DataGridViewImageColumn.cs: DataGridView implementation
25933 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25934 * DataGridViewElementStates.cs: DataGridView implementation
25935 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25936 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25937 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25938 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25939 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25940 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25941 * DataGridViewRowHeaderCell.cs: DataGridView implementation
25942 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25943 * DataGridViewTextBoxCell.cs: DataGridView implementation
25944 * DataGridViewBand.cs: DataGridView implementation
25945 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25946 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25947 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25948 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25949 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25950 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25951 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25952 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25953 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25954 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25955 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25957 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
25959 * ThemeWin32Classic.cs:
25960 - Draw the outside focus rectangle around buttons
25961 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25962 doesn't use end caps for every dash of a line anymore. This
25963 workaround ignores the forecolor.
25965 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
25967 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25970 2005-11-07 Jackson Harper <jackson@ximian.com>
25972 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25974 2005-11-07 Jackson Harper <jackson@ximian.com>
25976 * ScrollableControl.cs: Calculate the maximum and change vars
25977 (more) correctly so that scrollbars appear as a sensible size.
25979 2005-11-04 Jackson Harper <jackson@ximian.com>
25981 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25983 * TreeView.cs: When the tree is sorted null out the top_node so
25984 that it is recalculated.
25985 - Use dotted lines instead of dashed lines to match MS better.
25987 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
25990 - Implements key search for items. Useful when browsing files with FileDialog
25991 - When changing view mode or when clear the items reset scrollbar positions
25993 2005-11-04 Jackson Harper <jackson@ximian.com>
25995 * CurrencyManager.cs: Implement the MetaDataChanged event, the
25996 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25997 as to what the method may do as there is no real way of creating a
25998 derived CurrencyManager and calling the method.
26000 2005-11-03 Jackson Harper <jackson@ximian.com>
26002 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26003 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26004 method which seems to just be used internally to refresh the tabs.
26006 2005-11-03 Jackson Harper <jackson@ximian.com>
26008 * TabControl.cs: Implement the remove method. Fix some broken
26011 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26013 * DateTimePicker.cs:
26014 - Added missing DateTimePickerAccessibleObject class
26015 - Added missing events
26016 - Added OnFontChanged method
26017 * Form.cs: Added missing attributes
26018 * TreeView.cs: Added missing attributes
26020 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26022 * GridItemCollection.cs: Fix signatures
26024 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26026 * XplatUI.cs: Updated build rev/date
26027 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
26028 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26029 * Application.cs: Trigger context-specific ExitThread events
26031 2005-11-03 Jackson Harper <jackson@ximian.com>
26035 * GridTableStylesCollection.cs:
26040 * MonthCalendar.cs: Signature fixes
26042 2005-11-03 Jackson Harper <jackson@ximian.com>
26044 * TreeNodeCollection.cs: Remove should not be virtual.
26045 * TreeView.cs: Implement the last of the missing methods.
26047 2005-11-03 Jackson Harper <jackson@ximian.com>
26049 * TreeNodeConverter.cs: Implement to get off my class-status back.
26051 2005-11-03 Jackson Harper <jackson@ximian.com>
26053 * TreeView.cs: Hookup the bits for drag and drop.
26054 * TreeNode.cs: Don't cache the tree_view or index anymore, now
26055 that nodes can be moved from tree to tree easily this just causes
26056 all sorts of problems.
26057 * TreeNodeCollection: Don't need to give treenodes an index and
26058 treeview anymore when they are added, these are computed on the
26059 fly. Also make sure to remove a node before its added.
26061 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26064 - Added CaretSelection enum
26065 - Added comparison methods to Marker struct, makes selection code
26067 - Added SelectionStart and SelectionEnd as 'moveable' location for
26068 the CaretDirection enum and handler
26069 - Added selection_prev variable to track optimized invalidation for
26070 word and line selection
26071 - Added SelectionVisible property (returns true if there is a valid
26073 - Switched CaretHasFocus to only display the caret if there is no
26075 - Avoiding StringBuilder.ToString to retrieve a single char, instead
26076 using the direct character index; should be much faster
26077 - Added various conditional debug statements
26078 - Fixed invalidation calculation for selection ranges
26079 - Added ExpandSelection() method to support word and line selection
26080 - Switched SetSelectionToCaret to use new Marker compare overloads
26081 - Added central IsWordSeparator() method to determine word
26082 separators/whitespace and FindWordSeparator() to streamline common
26083 usage of IsWordSeparator()
26085 - Removed unneeded grabbed variable, it was just mirroring
26087 - No longer firing OnTextChanged event when Text setter is called,
26088 since the base will fire the event for us
26089 - Added handling of Ctrl-Up/Down selection
26090 - Added handling of Shift-Cursorkey selection
26091 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
26093 - Added handling of Shift and Ctrl-Shift-Home/End selection
26094 - Removed some debug output
26095 - Added handling for single/double/tripple-click to place caret/
26096 select word/select line respectively (Fixes bug #76031)
26097 - Added support for drag expansion of word/line selection
26098 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
26101 2005-11-02 Jackson Harper <jackson@ximian.com>
26103 * X11Dnd.cs: If the drag is going to and from a MWF window just
26104 copy the data instead of sending it out through the X Selection
26107 2005-11-02 Jackson Harper <jackson@ximian.com>
26110 * XplatUIX11.cs: When in a drag we don't want motion notify
26111 messages to get passed on to the other controls. This prevents
26112 mouse move messages from showing up in the drag source.
26114 2005-11-02 Jackson Harper <jackson@ximian.com>
26116 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
26117 the correct button is release to end a drag.
26118 * XplatUIX11.cs: Make the button state internal so the drag system
26119 can access it. Dragging needs to know about all button releases,
26120 not just left button.
26122 2005-11-02 Miguel de Icaza <miguel@novell.com>
26124 * Form.cs (Icon): If the icon is null, reset the icon to the
26127 * Cursor.cs: When writing the AND-mask bitmap do not include the
26128 number of colors, but hardcode those to two (black and white),
26129 fixes the loading of color cursors (Paint Dot Net).
26131 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
26132 turn off autoscaling.
26134 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
26136 2005-11-02 Jackson Harper <jackson@ximian.com>
26138 * X11Dnd.cs: Make sure to send a status message if the pointer
26139 enters a control that can not accept a drop, otherwise the cursor
26140 isn't updated correctly. Also tried to compress the lines of code
26143 2005-11-02 Jackson Harper <jackson@ximian.com>
26145 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
26146 set actions correctly. This isn't perfect as XDND and win32 have
26147 some differences on how you allow actions. I'll clear this up by
26148 adding a path for drag from MWF to MWF windows.
26149 * XplatUIX11.cs: Hook into the dnd system.
26151 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
26153 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
26154 previously shown but they are no longer need it. Very obvious when
26155 browsing files with FileDialog.
26157 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
26159 * Control.cs: We always need to call OnPaintBackground. We pretty much
26160 ignore AllPaintingInWmPaint and always do the painting there, whether
26161 it's set or not, since we always ignore the WM_ERASEBKGND message
26162 (which we don't generate on X11). This fixes #76616.
26163 * Panel.cs: Removed unneeded background painting. This happens properly
26164 in Control.cs already
26166 2005-10-31 Mike Kestner <mkestner@novell.com>
26168 * Menu.cs: Add items to collection before setting their index.
26169 * MenuItem.cs : add range checking with ArgumentException like MS.
26172 2005-10-31 Jackson Harper <jackson@ximian.com>
26174 * ListBox.cs: Invalidate if the area is visible at all not just
26175 contained in the visible rect. Fixes unselection of semi visible
26178 2005-10-31 Jackson Harper <jackson@ximian.com>
26180 * Control.cs: Consistently name the dnd methods. Make them
26181 internal so we can override them to match some MS behavoir
26183 * Win32DnD.cs: Use the new consistent names.
26185 2005-10-31 Jackson Harper <jackson@ximian.com>
26187 * TreeView.cs: Don't draw the selected node when we lose focus.
26189 2005-10-31 Jackson Harper <jackson@ximian.com>
26191 * X11Dnd.cs: We still need to reset the state even though a full
26192 reset isn't being done, otherwise status's still get sent all over
26195 2005-10-31 Jackson Harper <jackson@ximian.com>
26197 * Control.cs: Make the dnd_aware flag internal so the dnd
26198 subsystem can check it. Catch exceptions thrown in dnd handlers to
26200 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
26201 * X11Dnd.cs: Handle null data in the converters. Set the XDND
26202 version when sending a XdndEnter. Use the control/hwnd dnd_aware
26203 flags to reduce the number of dnd enters/status's sent.
26205 2005-10-31 Jackson Harper <jackson@ximian.com>
26207 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
26209 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
26211 * PictureBox.cs: Fixes 76512
26213 2005-10-28 Jackson Harper <jackson@ximian.com>
26215 * X11Dnd.cs: Early implementation to support winforms being a drag
26216 source for data on X11. Also restructured the converters so they
26217 can go both ways now.
26218 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
26220 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
26222 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
26225 2005-10-27 Jackson Harper <jackson@ximian.com>
26227 * TreeNode.cs: Implement serialization so my DnD examples will work.
26229 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
26231 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
26232 TreeView.cs: Don't dispose objects that are not owned.
26234 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
26236 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
26237 should retrieve the current cursor and report that, but XplatUI
26238 doesn't (yet) have an interface for that (and I'm not sure I even
26240 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
26241 until any message loop processing is done (and the WM_SETCURSOR
26242 replaces the cursor to the proper one)
26244 - Fixed override behaviour, we can't set the cursor globally on X11,
26245 just for our windows.
26246 - Invalidating the System.Drawing X11 display handle when we are
26248 * Control.cs: Fix to make csc happy
26250 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
26253 - get_Text: Add last line (without trailing newline) to returned
26254 value (Fixes 76212)
26255 - get_TextLength: Count last line in returned length
26256 - ToString: Call Text property instead of duplicating code
26258 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
26260 * ImageList.cs: Dispose ImageAttributes objects.
26262 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
26264 * ImageList.cs: Use attribute constructors with less arguments where
26267 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
26269 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
26270 Use typeof instead of strings when assembly is referenced. Added
26271 some more comments.
26273 2005-10-21 Jackson Harper <jackson@ximian.com>
26275 * ListView.cs: Raise a double click event. Also tried to somewhat
26276 fix when the selectedindexchanged event is raised. Its still
26279 2005-10-21 Jackson Harper <jackson@ximian.com>
26281 * TreeView.cs: New method to invalidate the plus minus area of a
26282 node without invalidating the whole node (maybe this can be used
26283 in some more places).
26284 * TreeNodeCollection.cs: When adding to an empty node we need to
26285 invalidate its plus minus area so the little block shows up.
26287 2005-10-21 Jackson Harper <jackson@ximian.com>
26289 * TreeView.cs: Make sure that when we invalidate a node the bounds
26290 are big enough to cover the selected box and the focus
26291 rectangle. Use a different colour for the lines connecting nodes
26292 so they show up with all themes.
26294 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26296 * NativeWindow.cs: Don't call anything that could call into the driver,
26297 we might be on a different thread.
26299 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26301 * Control.cs(Dispose): Since Dispose might run on a different thread,
26302 make sure that we call methods that could call into the driver via
26303 invoke, to avoid thread issues
26305 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
26307 * XplatUI.cs: Removed finalizer
26308 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
26309 not allowing to be called on the finalizer thread.
26311 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
26314 - Reverted r51889 and r51891.
26315 - Added ImageListItem class that stores unmodified image items and image
26316 properties required to create list images until handle is created.
26317 - Added AddItem and moved image creation logic to AddItemInternal.
26318 - Added CreateHandle method that creates images based on unmodified items.
26319 - Added DestroyHandle that changes state to store unmodified items.
26320 - Add and AddStrip methods no more create handle.
26321 - ReduceColorDepth has no return value.
26322 - Dispose destroys handle.
26323 - Modified other methods to reflect the above changes.
26324 - Implemented key support.
26325 - Added profile 2.0 members and attributes.
26326 - Added private Reset and ShouldSerialize methods that provide the same
26327 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
26328 them as they are private.
26329 - Added some more comments about implementation details.
26331 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26333 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
26335 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26337 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
26339 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
26341 * DataGridDrawingLogic.cs: Fixes column hit calcultation
26342 * DataGridColumnStyle.cs: Remove debug message
26344 2005-10-20 Jackson Harper <jackson@ximian.com>
26346 * TreeView.cs: We can always get input keys regardless of whether
26347 or not editing is enabled. They are used for navigation.
26349 2005-10-20 Jackson Harper <jackson@ximian.com>
26351 * TreeNode.cs: Use the viewport rect for determining if a node
26352 needs to be moved for visibility. Don't use Begin/End edit. This
26353 calls a full refresh when its done.
26354 * TreeView.cs: New SetBottom works correctly. Make the viewport
26355 rect property internal so the treenodes can see it. When clicking
26356 on a node we need to ensure that its visible because it might just
26357 be partly visible when clicked.
26359 2005-10-20 Jackson Harper <jackson@ximian.com>
26361 * TreeNodeCollection.cs: Remove debug code.
26363 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
26365 * Datagrid.cs: Implements column sorting in Datagrid
26366 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
26368 2005-10-20 Jackson Harper <jackson@ximian.com>
26370 * TreeNodeCollection.cs: Remove items properly. Update the correct
26371 area after removing them.
26373 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
26375 * Datagrid.cs: Should not call base.OnPaintBackground
26377 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26379 * XplatUIX11.cs (GetMessage):
26380 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
26381 window instead of client window
26382 - Now properly calculates NC_xBUTTONUP message coordinates
26383 - ScreenToMenu now properly calculates it's coordinates of whole
26384 window, since menus are in the whole window, not in the client
26386 - Added WholeToScreen coordinate translation method
26388 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26390 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
26391 want to return a message, loop back to the beginning of the function
26392 and grab the next real message to process instead.
26394 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
26396 * Splitter.cs: Properly set limits if no filler control is used
26398 2005-10-19 Jackson Harper <jackson@ximian.com>
26400 * ColorDialog.cs: Don't show the help button if it is not enabled
26401 instead of disabling it (this is what MS does). Don't create the
26402 panel until the dialog is run, otherwise the vars (such as
26403 ShowHelp) are not set yet.
26405 2005-10-19 Jackson Harper <jackson@ximian.com>
26407 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
26408 are reduced when adding nodes.
26410 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
26413 2005-10-19 Jackson Harper <jackson@ximian.com>
26415 * FolderBrowserDialog.cs: End editing our treeview so the window
26416 actually gets refreshed.
26418 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26420 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
26421 Obsoleted handling of WM_ERASEBKGND, now always draws our background
26424 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26426 * MenuAPI.cs: Returns after Hidding window
26427 * XplatUIX11.cs: Added TODO found while debugging menu issues
26429 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
26431 * XplatUIX11.cs: Do not re-map the whole window when it's size
26432 becomes non-zero unless it's supposed to be actually visible
26434 2005-10-18 Jackson Harper <jackson@ximian.com>
26436 * TreeView.cs: We don't need to keep a count anymore.
26437 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
26438 use the Grow method.
26440 2005-10-18 Jackson Harper <jackson@ximian.com>
26442 * TreeNodeCollection.cs: Insert is not supported on arrays, so
26443 implement it manually here.
26445 2005-10-18 Jackson Harper <jackson@ximian.com>
26447 * ImageList.cs: Dont kill the list when the colour depth is
26448 changed, just change the colour depth of all the images.
26449 - Same goes for setting the image size. Just resize them all
26450 instead of killing the list softly.
26452 2005-10-18 Jackson Harper <jackson@ximian.com>
26454 * Control.cs: Don't invalidate empty rectangles.
26456 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26459 - Adds checked item to the Checked/Item lists (where empty before)
26460 - Do not add items to the Selected lists if they are already present
26462 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
26463 - When deleting items make sure that we delete them for the Selected
26464 and Checked list also.
26466 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
26468 * Label.cs: Dispose objects no longer used
26469 * ThemeWin32Classic.cs: Dispose objects no longer used
26471 2005-10-18 Jackson Harper <jackson@ximian.com>
26473 * TabControl.cs: Don't refresh the whole control when the tabs are
26474 scrolled, we just need to refresh the tab area.
26476 2005-10-17 Jackson Harper <jackson@ximian.com>
26478 * XplatUIX11.cs: Compress code a little bit. Only calculate the
26479 after handle when we need it.
26481 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26483 * Control.cs: When the parent size changes, recalculate anchor
26484 positions. Partial fix for #76462
26486 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
26488 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
26489 drawn. Fixes #76462
26491 2005-10-17 Jackson Harper <jackson@ximian.com>
26493 * MonthCalendar.cs: Don't create the numeric up down until our
26494 handle is created. Otherwise our handle is created in the
26495 constructor and we don't know if we are a WS_CHILD or WS_POPUP
26498 2005-10-17 Jackson Harper <jackson@ximian.com>
26500 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
26503 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26504 * TreeNode.cs : small logical fix (was using local var instead of field)
26506 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26508 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
26510 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
26512 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
26514 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
26517 - Re-implemented anchoring code. My first version was really broken.
26518 This fixes bug #76033. Unlike the previous implementation we will
26519 no longer have round errors since all numbers are calculated from
26520 scratch every time. Removed various anchor-related obsolete vars.
26521 - InitLayout no longer causes layout event firing and layout to be
26524 2005-10-16 Jackson Harper <jackson@ximian.com>
26526 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
26529 2005-10-16 Jackson Harper <jackson@ximian.com>
26531 * TabControl.cs: Remove debug code.
26533 2005-10-16 Jackson Harper <jackson@ximian.com>
26535 * XEventQueue.cs: Increase the default queue size (very simple
26536 apps needed to grow the queue).
26537 * Hwnd.cs: No finalizer so we don't need to suppress
26538 finalization. Compute the invalid area manually so a new rectangle
26539 does not newto be created.
26540 * ScrollableControl.cs: Don't set any params (otherwise visibility
26541 isn't set correctly).
26542 * MdiChildContext.cs: New constructor takes the mdi parent so it
26543 doesn't have to be computed and avoids a crash on windows. Draw
26544 the window icon properly, and allow the text to be seen.
26545 * Form.cs: Use new MdiChildContext constructor. Make sure the
26546 child context isn't null in wndproc.
26547 * TabControl.cs: Don't set focus, this is muddling keyboard
26548 behavoir. Expand the tab rows when a window size increase will
26549 allow extra tabs to be seen. Don't allow tabs smaller than the
26550 width of a window to be scrolled out of view.
26552 * TreeView.cs: Use measure string to calculate a nodes width, the
26553 width is cached and only updated when the text or the font is
26554 changed. Don't check for expand/collapse clicks on the first level
26555 nodes if root lines are disabled.
26557 2005-10-16 Ritvik Mayank <mritvik@novell.com>
26559 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
26561 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26563 * DataGridBoolColumn.cs: fixes warning
26565 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
26567 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
26568 to match more to match more precisely the MS Net behavior
26570 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26572 * Hwnd.cs: Added field to track if window is mapped
26574 - Unmap windows if they become 0-size, re-map when
26575 they are >0 again; fixes #76035
26576 - Re-set our error handler after initializing X11Desktop
26577 to override any error handlers Gtk or whatever was called
26580 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26582 * CheckedListBox.cs: Removed unused vars
26583 * ListView.cs: Fixed signatures
26584 * RichTextBox.cs: Removed unused vars
26585 * TextBoxBase.cs: Removed unused vars
26586 * XplatUIWin32.cs: Removed unused vars
26587 * XplatUIX11.cs: Removed unused vars
26588 * XplatUI.cs: Updated version and date to latest published
26590 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26592 * Cursor.cs: Added private .ctor to work around a bug in
26593 resourceset (Thanks to Geoff Norton for the help on this)
26594 * SplitterEventArgs.cs: Made fields accessible so we don't
26595 waste boatloads of objects and can reuse the same one
26597 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
26598 any captions and borders when generating screen coordinates
26599 * Splitter.cs: Reimplemented control, now fully complete, uses
26600 rubberband drawing, supports and obeys all properties, has
26603 2005-10-13 Miguel de Icaza <miguel@novell.com>
26605 * Form.cs (Form): Setup default values for autoscale and
26606 autoscale_base_size; Make these instance variables, not static
26609 (OnLoad): on the first load, adjust the size of the form.
26611 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
26613 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
26614 width argument to DrawReversibleRectangle()
26615 * XplatUIWin32.cs, XplatUIX11.cs:
26616 - Implemented width for DrawReversibleRectangle()
26617 - Added logic to DrawReversibleRectangle that recognizes a zero
26618 width or height and only draws a line in that situation
26620 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26622 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
26623 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
26624 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
26625 method (it uses our FosterParent window to get a graphics context)
26627 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
26629 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
26630 and SetWindowBackground methods
26632 - Setting proper ControlStyles
26633 - We no longer call XplatUI.SetWindowBackground and XplatUI.
26634 EraseWindowBackground, instead we draw the window background
26635 ourselves in PaintControlBackground. This behaviour is
26636 required to match MS, where, when OnPaintBackground is not
26637 called, the background is not drawn.
26638 - Removed unneeded Refresh() in set_Text
26639 * Hwnd.cs: Dropped the ErasePending support. No longer needed
26641 - Created DeriveStyles method to translate from CreateParams to
26642 FormBorderStyle and TitleStyle, also handles BorderStyle (which
26643 matches FormBorderStyle enum values)
26644 - Consolidated SetHwndStyles and CalculateWindowRect border/title
26645 style calculations into single DeriveStyles method
26646 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
26647 from redrawing the whole window on any resize or expose.
26648 - Fixed CreateWindow usage of SetWindowValuemask. Before not
26649 all styles were applied to our whole/client window appropriately
26650 - Removed EraseWindowBackground() and SetWindowBackground() methods
26651 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
26652 no longer clear/redraw the background through X
26653 - Removed handling of erase_pending bit, we have no use for it (or
26656 - Removed generation and handling of WM_ERASEBKGND message
26657 - Removed EraseWindowBackground() and SetWindowBackground() methods
26658 - Removed handling of hwnd.ErasePending flag
26660 - Removed EraseWindowBackground() and SetWindowBackground() methods
26661 - We no longer call EraseWindowBackground on PaintEventStart, we
26662 ignore the fErase flag, erasing is handled in Control in the
26664 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
26665 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
26666 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
26667 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
26668 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
26669 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
26670 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
26672 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
26674 * PropertyGrids.cs: Get sub properties
26675 * PropertyGridView.cs: Fix drawing code
26677 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26679 * ListBox.cs: Fixes 76383
26681 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26683 * DataGridTextBoxColumn.cs: Sets location and size before attachment
26684 * ThemeWin32Classic.cs: Fixes border drawing and calculations
26685 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
26688 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26690 * ComboBox.cs: Fixes border drawing
26692 2005-10-10 Miguel de Icaza <miguel@novell.com>
26694 * MimeIcon.cs: Ignore errors if the file can not be read.
26696 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
26698 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
26699 - Fixed border calculations
26700 - Fixed horizontal scrolling in single column listboxes
26701 - Fixed drawing issues
26703 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
26705 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
26706 FormBorderStyle enum
26707 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
26708 code to determine FormBorderStyles from CreateParams
26710 - Fixed bug where we'd set the wrong window styles if we were
26711 not creating an MDI window
26712 - Added call to XplatUI.SetBorderStyle when form borders are set
26713 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
26715 - Removed obsolete edge style
26716 - Switched from BorderStyle to FormBorderStyle
26718 2005-10-10 Jackson Harper <jackson@ximian.com>
26720 * Form.cs: Use the property to get the window handle instead of
26721 accessing it directly. Prevents a null reference exception.
26723 2005-10-10 Jackson Harper <jackson@ximian.com>
26725 * TreeView.cs: Don't adjust the rect given to DrawString now that
26726 our libgdiplus draws correctly.
26728 2005-10-08 Jackson Harper <jackson@ximian.com>
26730 * TreeView.cs: Don't try to find the clicked on node if there are
26731 no nodes in the tree.
26733 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26739 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
26741 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
26742 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
26744 Use ResPool for brushes and dispose System.Drawing objects that
26745 are not used anymore.
26747 2005-10-07 Jackson Harper <jackson@ximian.com>
26749 * MdiChildContext.cs: Use the new borders instead of drawing them
26752 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26754 * Calling UpdateBounds after changing the window's BorderStyle
26755 since the style can change the ClientSize
26757 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26759 * Control.cs: Made PaintControlBackground virtual
26760 * Panel.cs: Overriding PaintControlBackground instead of using paint
26761 event; paint event method was interfering with 'real' users of the
26764 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
26766 * ThemeWin32Classic.cs: remove border drawing since it is handled
26767 by the base control class now and was causing double border drawing.
26769 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26771 * Panel.cs: Redraw our background on paint. Not a pretty solution,
26772 but it does seem to match MS behaviour. This fixes bug #75324
26774 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26776 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
26777 somewhat hackish looking
26779 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26782 - We now accept Enter even if AcceptEnter is false, if the containing
26783 form does not have an AcceptButton configured (fixes bug #76355)
26784 - Calculations are now fixed to no longer use Width/Height, but
26785 ClientSize.Width/Height, since we now support borders (this was
26786 a result of fixing borders and therefore bug #76166)
26787 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
26788 true (fixes bug #76354)
26790 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26793 - Defaulting BorderStyle and setting it in XplatUI when our window
26795 - Added enum check to InternalBorderStyle setter
26797 - Added drawing of window borders
26798 - Now properly calculates WM decorations offset for toplevel
26799 windows (fixes bug #74763)
26801 - Implemented BorderStyles for windows (we're letting win32 draw
26803 - Fixed the signature for SetWindowLong
26804 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
26805 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
26807 * UpDownBase.cs: Remove drawing of borders, this is handled by
26808 the driver, outside the client area
26809 * ListView.cs: Removed bogus border calculations. The control should
26810 be oblivious to borders, since those are not part of the client
26812 * X11DesktopColors.cs: Commented out (currently) unneeded variables
26813 * ThemeWin32Classic.cs: Removed border calculations from ListView
26816 2005-10-06 Jackson Harper <jackson@ximian.com>
26818 * MdiChildContext.cs: Clear out the old virtual position remove
26819 all the unneeded calls to CreateGraphics.
26821 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26823 * TextControl.cs: Use proper color for highlighted text; fixes #76350
26825 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26828 - Added loading and setting of our new default icon
26829 - Only set icon if window is already created
26831 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
26834 - Do not explicitly set the foreground and background colors, to
26835 allow inheriting from parents (fixes #76302)
26836 - Use Control's InternalBorderStyle property to deal with borders
26838 2005-10-06 Jackson Harper <jackson@ximian.com>
26840 * MdiChildContext.cs: Use the new xplatui function to draw a
26843 2005-10-06 Jackson Harper <jackson@ximian.com>
26845 * Form.cs: Add the parent before creating the child context cause
26846 we need the parent when setting up the child.
26848 2005-10-06 Jackson Harper <jackson@ximian.com>
26850 * FolderBrowserDialog.cs: redo the tree population code so a
26851 second thread isn't used. Should be a lot faster and more stable
26854 2005-10-05 Jackson Harper <jackson@ximian.com>
26856 * TreeView.cs: There are no expand/collapse boxes if the node has
26859 2005-10-05 Jackson Harper <jackson@ximian.com>
26861 * X11DesktopColors.cs: Get menu colours for the gtk theme.
26863 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
26865 * FileDialog.cs: Fix InitialDirectory
26867 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26870 - Fixes changing between styles
26871 - Fixes simple mode
26872 - Fixes last item crashing when navigating with keyboard
26874 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26876 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26878 2005-10-05 Jackson Harper <jackson@ximian.com>
26880 * TreeView.cs: If updating the root node do a full refresh.
26881 * TreeNode.cs: The root node should be expanded by default. Also
26882 added a utility prop to tell if we are the root node.
26883 * TreeNodeCollection.cs: Only refresh if the node we are being
26884 added to is expanded. Also added a comment on a potential
26887 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
26889 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
26890 in dispose method. Fixes #76330
26892 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
26894 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26896 - Implements vertical and horizontal scrolling using XplatUI
26897 - Fixes keyboard navagation
26898 - Fixes EnsureVisible
26900 - Handles and draws focus properly
26903 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
26905 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26906 Create handle. NET_2_0: Destroy handle when value is null.
26908 2005-10-03 Jackson Harper <jackson@ximian.com>
26910 * ScrollBar.cs: My last scrollbar patch was broken. This is a
26911 revert and a new patch to prevent the thumb from refreshing so
26914 2005-10-02 Jackson Harper <jackson@ximian.com>
26916 * ScrollBar.cs: Don't update position if it hasn't actually
26917 changed. This occurs when you hold down the increment/decrement
26918 buttons and the thumb gets to the max/min.
26920 2005-10-01 Jackson Harper <jackson@ximian.com>
26923 * MdiChildContext.cs:
26924 * MdiClient.cs: Implement ActiveMdiChild in Form.
26926 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
26928 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26930 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
26932 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26935 2005-09-30 Jackson Harper <jackson@ximian.com>
26937 * ListBox.cs: Don't do a full refresh unless some data has
26940 2005-09-30 Jackson Harper <jackson@ximian.com>
26942 * TreeView.cs: Make sure that the checkboxes size is factored in
26943 even when not visible.
26945 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26947 * FileDialog.cs: Fix Jordi's build break
26949 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26952 - Use standard the Windows colours for the combobox as espected
26953 - Dispose objects that use resouces when no longer need them
26955 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26957 * X11DesktopColors.cs: Initial incomplete implementation
26958 * XplatUIX11.cs: Added call to initialize X11DesktopColors
26960 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26963 - Switched Theme color names to match the names defined in
26964 System.Drawing.KnownColors. Life's hard enough, no need to make
26966 - Added setters to all theme color properties so themes can set
26967 their color schemes. The setters also propagate the color changes
26968 to System.Drawing.KnownColors via reflection
26969 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26970 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26971 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26972 use the new, more logical theme color names
26973 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26975 * ThemeWin32Classic.cs:
26976 - Removed code to set the old classic Windows colors. Instead it
26977 now relies on the colors returned by System.Drawing.KnownColors
26978 which will be either modern static colors (Unix) or colors
26979 read from the user's configuration (Win32)
26980 - Updated to use the new, more logical theme color names
26981 - Switched DataGrid drawing code to use only Theme colors instead of
26982 a mix of System.Drawing.KnownColors and Theme colors
26983 - DrawFrameControl(): Removed code that fills the button area, the
26984 fill would overwrite any previous fill done by a control. This
26986 - Added DrawReversibleRectangle() stub
26987 * ScrollableControl.cs: Set visible state to false when scrollbars
26988 are removed (pdn fix)
26989 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
26990 DrawReversibleRectangle() method to allow drawing primitive
26992 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26994 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26996 * ImageList.cs: Add(Icon): Create handle.
26998 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
27001 * ThemeWin32Classic.cs:
27002 - Fixes detail mode
27004 - Issues with drawing
27006 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27008 * ImageList.cs: Moved RecreateHandle back to ImageList as event
27009 source has to be the ImageList.
27011 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27013 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27015 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27017 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27019 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27021 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27023 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
27024 * GridItem.cs: Fixed TODOs
27025 * GridItemCollection.cs: Added ICollection interface
27027 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27029 * ImageList.cs: Resize icons when needed.
27031 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
27034 - Fixes GetBounds and returns on screen rects
27036 - Fixes vertical and horzintal scrolling of items
27037 * ThemeWin32Classic.cs:
27040 2005-09-29 Raja R Harinath <harinath@gmail.com>
27042 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
27044 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
27046 * ImageList.cs: Added comments about handle creation. Moved Handle,
27047 HandleCreated and OnRecreateHandle implementations to ImageCollection.
27048 Handle is created in Add methods.
27050 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27052 * DataGridDrawingLogic.cs:
27053 - Takes rows into account on Colum calculations
27054 - Returns the column when clickig
27056 - Fixes default HitTestInfo values
27057 - Fixes HitTestInfo.ToString
27058 - Fixes ResetBackColor
27060 2005-09-28 Jackson Harper <jackson@ximian.com>
27062 * MdiChildContext.cs: Obey rules for fixed sized windows (no
27063 sizing or cursor changes). Also added some temp code to draw the
27064 titlebars text (Makes dev a little easier).
27066 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27068 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
27070 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27072 * ListBox.cs: Fixes bug 76253
27074 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27076 * ImageList.cs: Added comments about the current implementation. Added
27077 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
27078 Format32bppArgb to preserve transparency and can use Graphics.FromImage
27079 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
27080 with Bitmap.LockBits for better performance. Revised the whole file to
27081 match MS.NET behaviour and provide better performance. Non-public
27082 interface members are calling public members even when they throw
27083 NotSupportedException for better maintainability. Moved ColorDepth,
27084 ImageSize, ImageStream and TransparentColor implementations to
27085 ImageCollection for better performance as these properties are not used
27087 * ImageListStreamer.cs: Added a new internal constructor that takes an
27088 ImageList.ImageCollection and serializes Images based on
27089 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
27090 match ImageList property name.
27092 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
27094 * ListBox.cs: Fixes IndexFromPoint for last item
27096 2005-09-27 Jackson Harper <jackson@ximian.com>
27098 * Form.cs: Set the position of new mdi children correctly.
27100 2005-09-27 Jackson Harper <jackson@ximian.com>
27102 * MdiClient.cs: New mdi children need to be added to the back of
27103 the controls collection so the zorder is set correctly. Also add a
27104 count of all the child windows that have been created.
27106 2005-09-27 Jackson Harper <jackson@ximian.com>
27108 * Form.cs (CreateParams): Setup MDI forms correctly.
27110 2005-09-27 Jackson Harper <jackson@ximian.com>
27112 * MdiChildContext.cs:
27113 * MonthCalendar.cs:
27119 * ScrollableControl.cs:
27120 * ComboBox.cs: Add implicit controls using the new implict control
27121 functionality in ControlCollection. Also try to block multiple
27122 control add in a suspend/resume layout to save some cycles.
27124 2005-09-27 Jackson Harper <jackson@ximian.com>
27126 * Control.cs: Add functionality to the controls collection to add
27127 'implicit controls' these are controls that are created by the
27128 containing control but should not be exposed to the user. Such as
27129 scrollbars in the treeview.
27130 * Form.cs: The list var of the ControlsCollection is no longer
27131 available because of the potential of implicit controls getting
27132 ignored by someone accessing the list directly.
27134 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
27136 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
27137 loose it's parent. (Fixed bug introduced in r49103 when we added
27138 setting the child parent to null on Remove)
27140 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
27142 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
27143 * Splitter.cs: Added missing attributes for BorderStyle property.
27144 * TextBoxBase.cs: Marked Calculate* methods internal.
27145 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
27148 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
27150 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
27152 2005-09-25 Jackson Harper <jackson@ximian.com>
27154 * TreeView.cs: Update the node bounds correctly regardless of
27155 whether the node is visible.
27157 2005-09-25 Jackson Harper <jackson@ximian.com>
27159 * ImageList.cs: Don't dispose the image after it is added to the
27160 image list. Only reformat images that need to be resized.
27162 2005-09-25 Jackson Harper <jackson@ximian.com>
27164 * ImageList.cs: Don't set the format when changing the image.
27166 2005-09-25 Jackson Harper <jackson@ximian.com>
27168 * TreeView.cs: We can't just assume the node has a font. Use the
27169 treeviews font if no node font is available.
27171 2005-09-25 Jackson Harper <jackson@ximian.com>
27173 * TreeView.cs: Allow the scrollbars to be reset with negative
27175 - Don't add scrollbars to negative sized windows.
27177 2005-09-23 Jackson Harper <jackson@ximian.com>
27179 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
27180 old Mono.Posix. Also remove some stray code that shouldn't have
27183 2005-09-23 Jackson Harper <jackson@ximian.com>
27185 * TreeView.cs: Attempt at proper sizing of the horizontal
27186 scrollbar. Also don't resize the scrollbars unless they are
27189 2005-09-23 Jackson Harper <jackson@ximian.com>
27191 * TreeView.cs: We don't need to expand the invalid area when the
27192 selection changes, as this is all drawn in the node's bounding
27193 box. The area needs to be expanded (previous typo was contracting
27194 it) when the focus rect moves.
27196 2005-09-23 Jackson Harper <jackson@ximian.com>
27198 * TreeView.cs: Display the selection box under the correct
27199 circumstances. We were rendering white text with no selection box
27202 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
27204 * TextControl.cs(Split): Now updates selection start/end if it points
27205 into a line that's being split. Fixes a FIXME and bug #75258
27207 2005-09-23 Jackson Harper <jackson@ximian.com>
27210 * ListControl.cs: Don't use the path when retrieving binding
27211 managers from the binding context. My bat sense tells me that the
27212 path is only used on insertion.
27214 2005-09-22 Jackson Harper <jackson@ximian.com>
27216 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
27218 2005-09-22 Jackson Harper <jackson@ximian.com>
27220 * Splitter.cs: There are special cursors used for splitting.
27221 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
27223 2005-09-22 Jackson Harper <jackson@ximian.com>
27225 * Splitter.cs: Change the cursor appropriately when the splitter
27226 is moused over, so the user actually knows there is a splitter
27229 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27231 * Label.cs : Fix ToString method to give same output as MS.NET
27233 2005-09-22 Jackson Harper <jackson@ximian.com>
27235 * TreeView.cs: Create the scrollbars when the handle is created
27236 and add them right away, just make them invisble. Also account for
27237 the window being shrunk vertically to the point that the vert
27238 scrollbar needs to be added.
27239 - Remove some 0.5 adjustments to get around anti aliasing issues.
27241 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
27243 * MainMenu.cs: Fixes default value
27244 * MenuItem.cs: Fixes default value
27246 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
27248 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
27250 2005-09-21 Jackson Harper <jackson@ximian.com>
27252 * Control.cs: Don't try to set the border style on the window if
27253 it hasn't been created. When the window is created the border
27254 style will be used.
27256 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27258 * Control.cs (Update): Don't call XplatUI if we don't have a
27261 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27263 * ContainerControl.cs: Instead of throwing an exception, print
27264 a one-time warning about Validate not being implemented
27265 * XplatUIWin32.cs: Removed debug output
27267 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27269 * Control.cs: Only set XplatUI background if we expect the windowing
27270 system to handle the background. This stops controls that draw their
27271 own background from flickering
27273 * XplatUIX11.cs: Support custom visuals and colormaps for window
27274 creation. This allows, amongst other things, using MWF X11 windows
27277 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
27279 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
27280 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
27281 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
27282 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
27283 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
27284 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
27285 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
27286 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
27287 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
27288 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
27289 GridColumnStylesCollection.cs,
27290 IDataGridColumnStyleEditingNotificationService.cs,
27291 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
27292 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
27293 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
27294 TreeNodeCollection.cs, AmbientProperties.cs,
27295 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27296 DataObject.cs, ErrorProvider.cs, Splitter.cs,
27297 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
27298 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
27299 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
27300 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
27301 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
27302 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
27303 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
27304 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
27305 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
27306 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
27307 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
27308 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
27309 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
27310 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
27311 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
27312 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
27313 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
27314 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
27315 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
27316 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
27317 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
27318 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
27319 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
27320 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
27321 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
27322 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
27323 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
27324 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
27325 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
27326 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
27327 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
27328 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
27329 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
27330 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
27331 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
27333 2005-09-21 Jackson Harper <jackson@ximian.com>
27335 * TreeNode.cs: Call Before/After Expand not Collapse when
27338 2005-09-20 Jackson Harper <jackson@ximian.com>
27340 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
27342 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
27346 - Fixes proper storing of subitems
27347 - Fixes not updated items
27349 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
27351 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
27352 things if our window handle isn't created yet. Also disabled
27353 debug for TextBoxBase
27355 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
27357 * MenuAPI.cs: Remove filtering of events to allow menu usage
27359 2005-09-20 Miguel de Icaza <miguel@novell.com>
27361 * Cursor.cs: Allow null to be passed to Cursor.Current.
27363 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
27365 * ThemeWin32Classic.cs:
27366 - Change some private methods/fields to protected virtual so that
27367 they can be accessed and overriden in derived classes
27368 - First refactoring of some methods. Derived themes now don't
27369 need to duplicate the complete code from ThemeWin32Classic
27371 - Added nice StatusBar
27372 - Derive from ThemeWin32Classic and not Theme
27373 - Removed duplicate ThemeWin32Classic code
27375 2005-09-20 Miguel de Icaza <miguel@novell.com>
27377 * Control.cs (ControlCollection.Add): If the value null is passed
27378 the control is ignored.
27380 Optimize this loop.
27382 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
27384 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
27385 PostQuitMessage state.
27386 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
27388 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
27390 * Application.cs: Our constructor will never get called, move
27391 initialization to fields; fixes bug #75933
27393 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27396 - Allow files to be selected properly using file name
27398 - Add ability to change diretory (absolute / relative)
27399 using file name combo box.
27401 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
27404 - Fixes Multicolumn listboxes item wrong calculations
27405 - Allows to click when only one item is in the listbox
27406 - Fixes crash when no items using keyboard navigation
27408 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
27410 * ComboBox.cs: Reverted almost everything from the latest patch which
27413 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
27416 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
27418 - When DropDownStyle is Simple, it does not show scrollbar
27419 to the last item of the list.
27420 - When DropDownStyle is Simple, it crashed when the list was
27421 scrolled down with the down cursor key.
27422 - Fixed a bug that when DropDownStyle is DropDownList, the
27423 selected item was not shown.
27424 - The position of the selected item was not preserved when
27425 the next dropdown happened.
27426 * ThemeWin32Classic.cs:
27427 - Items were wrapped at the right end.
27428 * CheckedListBox.cs:
27431 - Items should be fully shown.
27432 - When resizing and vertical scrollbar disappeared, the item
27433 of index 0 should be on the top of the list.
27434 - GetItemRectangle should consider the size of ver. scrollbar
27436 - SizingGrip area should not be allocated when it is not
27438 - Now it reflects MinWidth of the containing panel and
27439 fixed a crash that happens when its width becomes so small.
27441 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27443 * CheckedListBox.cs: Fixes bug 76028
27444 * ListBox.cs: Fixes bug 76028
27446 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
27448 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
27449 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
27451 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
27453 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
27455 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27457 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
27459 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27461 * IRootGridEntry.cs: Added
27462 * PropertyGridCommands.cs: Added
27463 * PropertiesTab.cs: Added missing methods and property
27464 * PropertyGridView.cs: Made class internal
27465 * PropertyGridTextBox.cs: Made class internal
27467 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27469 * MimeIcon.cs: Try to check some other environment variables
27470 if "DESKTOP_SESSION" returns "default"
27472 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27474 * ThemeNice.cs: Corrected background colors (e.g. menus)
27475 * ColorDialog.cs: Use correct background colors for controls
27477 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
27479 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
27481 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
27483 * RichTextBox.cs: Added initial implementation
27484 * lang.cs: Removed. Was accidentally checked in long time ago
27485 * TODO: Removed. Contents were obsolete
27487 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27489 * PropertiesTab.cs : Added
27491 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
27493 * PropertyGrid.cs : Update
27494 * PropertyGridView.cs : Update
27495 * System.Windows.Forms.resx : Added images and strings
27497 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27499 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
27501 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
27503 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
27504 a busy loop right after the Ungrab the X11 display is otherwise
27507 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
27509 * ThemeWin32Classic.cs: Optimise the use of clipping
27511 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
27513 * DataGrid.cs: fixes recursion bug
27515 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
27518 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
27521 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
27523 * ThemeNice.cs: Draw nice ProgressBars
27525 2005-09-01 Miguel de Icaza <miguel@novell.com>
27527 * VScrollBar.cs: Another buglet found by Aaron's tool.
27529 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
27532 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
27535 - Added nicer menu drawing
27539 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27541 * CreateParams.cs (ToString): Made output match MS
27542 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
27543 handle is already created (to avoid forcing window creation)
27544 * XplatUIX11.cs: Set window text to caption after creating window,
27545 in case Text was set before window was created
27546 * Form.cs: Use this.Text instead of a static string as caption
27548 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27550 * NotifyIcon.cs: Don't set the window to visible; this screws
27551 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
27552 OnPaint without a bitmap)
27553 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
27554 happen very often anyway; we could add the check to the WM_PAINT
27555 event generation code
27557 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27559 * NotifyIcon.cs: Fill the icon area with a background color, to
27560 avoid 'residue' when transparent icons are drawn
27562 - Handle whole_window == client_window when destroying windows
27563 - SystrayAdd(): Set client_window to whole_window value to
27564 get mouse and other events passed to NotifyIcon
27566 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
27568 * Form.cs: Set proper default for Opacity property
27570 - ShowSystray(): Don't bother creating telling the OS
27571 about the systray item if no icon is provided
27572 - Now handles WM_NCPAINT message to deal with whole/client window
27574 - Create window as visible to not get caught by Expose optimization
27575 * Hwnd.cs: Removed debug message
27576 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
27577 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
27578 PaintEventStart/End to use new client argument
27580 - Commented out debug messages
27581 - Switched PaintEventStart/End to use new client argument
27582 * XplatUI.cs: Added client window bool to PaintEventStart()/
27583 PaintEventEnd() calls, to support drawing in non-client areas
27584 * XplatUIDriver.cs:
27585 - Added client window bool to PaintEventStart()/PaintEventEnd()
27586 calls, to support drawing in non-client areas
27587 - Added conditional compile to allow using MWF BeginInvoke
27590 - Added some conditional debug output
27591 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
27592 whole/client window split
27593 - Implemented handling of client argument to PaintEventStart()/End()
27595 - Throw exception if BeginInvoke() is called and the window handle
27596 or one of the window's parent handles is not created
27597 - Added conditional compile to allow using MWF BeginInvoke on
27599 - get_Parent(): Only sets parent if handle is created. This avoids
27600 forcing window handle creation when parent is set.
27601 - Now fires Layout and Parent changed events in proper order
27602 - Switched to use Handle instead of window.Handle for Z-Order setting,
27603 the get_Parent() patch above causes us to possibly get null for 'window'
27604 - Implemented handling of client argument to PaintEventStart()/End()
27605 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
27607 - Now sends a Refresh() to all child windows when Refresh() is called
27609 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
27611 * Form.cs: Added (non-functional) Opacity property
27612 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
27614 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
27615 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
27616 use export MONO_THEME=nice to activate it.
27617 Currently supported controls:
27621 - TabControl (TabAlignment.Top only, other will follow)
27622 * ThemeEngine.cs: Add theme nice
27623 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
27626 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27628 * Splitter.cs: Resize docked control and its neighbor.
27630 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27631 -- Making Windows with Menus layout correctly --
27632 * Form.cs : The first leg of the fix
27633 Menu setter - adjust Client Size as needed to make space for the menu
27634 SetClientSizeCore - doesn't call base version to be able to pass the
27635 menu handle to XplatUI.CalculateWindowRect
27636 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
27637 * XplatUIX11.cs: The critical second leg of the fix
27638 GetWindowPos needs to use a recalculated client_rect
27639 so that resizing the window doesn't break layout of child controls.
27640 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
27641 Lots of \t\n killed
27643 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
27645 * Label.cs: Now properly recalculates width and height on Font and Text
27646 changes if AutoSize is set
27648 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27649 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
27651 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
27653 * ImageList.cs: Makes ToString method compatible with MS
27655 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
27657 * MenuAPI.cs: fixes bug 75716
27659 2005-08-11 Umadevi S <sumadevi@novell.com>
27660 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
27662 2005-08-11 Umadevi S <sumadevi@novell.com>
27663 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
27665 2005-08-10 Umadevi S <sumadevi@novell.com>
27666 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
27668 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
27670 * Menu.cs: fixes bug 75700
27671 * MenuAPI.cs: fixes navigation issues
27673 2005-08-09 Umadevi S <sumadevi@novell.com>
27674 * CheckedListBox.cs - simple fix for GetItemChecked.
27676 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
27678 * ComboBox.cs: Serveral fixes
27679 * ListBox.cs: Serveral fixes
27681 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27683 * ComboBox.cs: Fixes FindString methods and GetItemHeight
27684 * ListBox.cs: Fixes FindString methods
27686 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
27688 * DataGrid.cs: fixes bugs exposed by new tests
27690 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
27692 * Mime.cs: Compile Mono assembly references only if compiling
27693 with Mono (Allows to build with VS.Net again)
27695 2005-07-28 Marek Safar <marek.safar@seznam.cz>
27697 * Control.cs (PaintControlBackground): Draw background image
27699 (CheckForIllegalCrossThreadCalls): Stubbed.
27701 * Form.cs (OnCreateControl): Center when should be centered.
27703 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
27705 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
27707 * Binding.cs: Binding to properties should be case unsensitive
27709 2005-07-18 vlindos@nucleusys.com
27711 * DataGrid.cs: fixes setmember order
27713 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
27715 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
27716 * FileDialog.cs: FileDialog is now resizable and uses the new
27719 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
27721 * DataGridTextBoxColumn.cs: default value
27722 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
27723 * GridTableStylesCollection.cs: fixes checking MappingName
27724 * DataGridDrawingLogic.cs: fixes drawing logic issues
27725 * DataSourceHelper.cs: rewritten to make compatible with more data sources
27726 * DataGrid.cs: fixes
27728 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
27730 * MimeGenerated.cs: Use case sensitive comparer for
27731 NameValueCollections
27733 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
27735 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
27736 * ThemeWin32Classic.cs: bug fixes, code refactoring
27737 * DataGridDrawingLogic.cs: bug fixes, code refactoring
27738 * DataGrid.cs: bug fixes, code refactoring
27739 * DataGridTextBox.cs: bug fixes, code refactoring
27740 * DataGridColumnStyle.cs: bug fixes, code refactoring
27741 * Theme.cs: bug fixes, code refactoring
27743 2005-07-01 Peter Bartok <pbartok@novell.com>
27745 * TextControl.cs: Quick fix for the reported crash on ColorDialog
27746 and other text box usage
27748 2005-07-01 Jackson Harper <jackson@ximian.com>
27750 * TabControl.cs: Make sure the bottom of the tab covers the pages
27753 2005-06-30 Peter Bartok <pbartok@novell.com>
27755 * Form.cs (ShowDialog): Assign owner of the dialog
27756 * TextBoxBase.cs: Always refresh caret size when deleting, caret
27757 might have been moved to a tag with different height
27759 2005-06-30 Jackson Harper <jackson@ximian.com>
27761 * Form.cs: Don't create an infinite loop when setting focus
27762 * MenuItem.cs: Don't dirty the parents if we don't have any
27764 2005-06-29 Ben Maurer <bmaurer@ximian.com>
27766 * LibSupport.cs: Rename
27768 2005-06-29 Peter Bartok <pbartok@novell.com>
27770 * TextBoxBase.cs: Re-align caret after deleting a character
27772 - DeleteChars(): Ensure that tag covers the provided position
27773 - StreamLine(): Drop reference for dropped tag
27775 2005-06-29 Peter Bartok <pbartok@novell.com>
27778 - Selections now work properly, anchoring at the initial location
27779 and properly extending in either direction (SetSelectionToCaret(),
27780 SetSelectionStart() and SetSelectionEnd())
27781 - No longer redraws the whole control on selection change, now
27782 calculates delta between previous and new selection and only
27783 invalidates/redraws that area
27784 - Fixed FindPos() math off-by-one errors
27785 - Changed DeleteChars() to verify the provided tag covers the
27786 provided position, selections may have a tag that doesn't cover
27787 the position if the selection is at a tag border
27788 - Fixed off-by-one errors in DeleteChars()
27789 - Added missing streamlining check in DeleteChars() to remove
27791 - Implemented Invalidate() method, now properly calculates exposures
27792 between two given lines/positions
27793 - Implemented SetSelection()
27794 - Obsoleted and removed FixupSelection()
27795 - Improved RecalculateDocument() logic, removing code duplication
27797 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27799 * LibSupport.cs: changes to match different input/output arguments.
27801 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27803 * LibSupport.cs: added libsupport.so init routine.
27805 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
27807 * ControlBindingsCollection.cs
27808 - Throws an exception on null datasource when adding
27809 - Checks for duplicated bindings when adding
27811 2005-06-28 Jackson Harper <jackson@ximian.com>
27813 * TreeView.cs (OnKeyDown): Support left and right properly
27814 (navigates as well as expanding and collapsing.
27815 - Add support for Multiply, this expands all the selected nodes
27817 - Fix some tabbing.
27819 2005-06-28 Jackson Harper <jackson@ximian.com>
27821 * TreeView.cs: Implement keyboard navigation, currently supports,
27822 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
27823 support for toggling checkboxes with the space bar.
27825 2005-06-28 Jackson Harper <jackson@ximian.com>
27827 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
27830 2005-06-28 Jackson Harper <jackson@ximian.com>
27832 * TreeView.cs: Add missing event.
27834 2005-06-27 Peter Bartok <pbartok@novell.com>
27837 - Made line ending size configurable (now allows for counting
27838 lineendings as \n or \r\n)
27839 - Added margin to viewport to keep caret visible on right side
27840 - Fixed translation routines for line/pos to documentpos to consider
27841 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
27842 - Fixed some line-endings to be unix style
27843 - Fixed Document.FormatText to perform it's calculations 1-based
27844 - Added descriptions for a few methods that might otherwise get
27846 - Added NOTE section with some basic conventions to remember at
27847 the top of the file
27848 - Major fixup for RichTextBox selection drawing:
27849 * Fixed crashes when multiple tags on a single line were selected
27850 * fixed selection box drawing not overlaying text
27851 * fixed bogus offset calculation for tags not starting at index 1
27852 * Switched behaviour from using multiple Substrings of a
27853 StringBuilder.ToString() to using multiple
27854 StringBuilder.ToString(start, length) statements, hoping this is
27855 faster (kept original version commented out in the code, in case
27856 original version was faster)
27857 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
27859 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
27862 2005-06-27 Jackson Harper <jackson@ximian.com>
27864 * TabControl.cs: Move to the left and right with the arrow
27865 keys. These keys don't cycle beyond first and last like
27866 tab. Refresh all the tabs when scrolling them to the left or
27869 2005-06-27 Jackson Harper <jackson@ximian.com>
27872 - ToString: Added method
27873 - CreateParams: Remove TODO and comment
27874 - OnKeyDown: Cycle through bounds properly.
27875 - SelectedIndex: Scroll to the right or left if we need to
27876 display the newly selected tab.
27878 2005-06-23 Jackson Harper <jackson@ximian.com>
27880 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27883 2005-06-23 Jackson Harper <jackson@ximian.com>
27885 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27886 CTRL-SHIFT-TAB, and HOME, END are there any others?
27888 2005-06-23 Jackson Harper <jackson@ximian.com>
27890 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27892 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27894 * DataGridTextBoxColumn.cs: fixes and enhancements
27895 * ThemeWin32Classic.cs: fixes and enhancements
27896 * DataGridBoolColumn.cs: fixes and enhancements
27897 * DataGridDrawingLogic.cs: fixes and enhancements
27898 * CurrencyManager.cs: fixes and enhancements
27899 * DataGrid.cs: fixes and enhancements
27900 * DataGridColumnStyle.cs: fixes and enhancements
27902 2005-06-22 Jackson Harper <jackson@ximian.com>
27904 * TabControl.cs: Add some missing methods that just call into the
27905 base. Make the TabPageCollection's IList interface behave in the
27906 same manner as the MS implementation.
27908 2005-06-22 Peter Bartok <pbartok@novell.com>
27910 * TextControl.cs: Added sanity check
27912 - Fixed wrapping behaviour, don't set wrap on single line controls
27913 (this fixes the breakage of colordialog introduced in an earlier
27915 - Added rudimentary support for autoscrolling right-aligned controls
27916 (still needs fixing, also, center alignment scroll is missing)
27918 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27920 * ScrollBar.cs: Fixes thumbpos on Maximum values
27922 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
27924 * PropertyGridView.cs: Pass context information to UITypeEditors
27926 2005-06-21 Peter Bartok <pbartok@novell.com>
27929 - Now calling PositionCaret with absolute space coordinates
27930 - Enabled vertical scrolling
27931 - Better tracking of scrollbar changes, tied into WidthChange
27933 - Improved cursor tracking
27934 - Removed debug output
27936 - PositionCaret coordinates are now works in absolute space, not
27938 - Improved tracking of document size
27939 - Added events for width and height changes
27941 2005-06-21 Peter Bartok <pbartok@novell.com>
27943 * Form.cs: Set focus to active control when form is activated
27945 - Added word-wrap functionality to RecalculateLine()
27946 - Added some short function descriptions for VS.Net to aid in
27947 writing dependent controls
27948 - Added Caret property, returning the current coords of the caret
27949 - Added ViewPortWidth and ViewPortHeight properties
27950 - Added Wrap property
27951 - Added CaretMoved event
27952 - Removed some old debug code
27953 - Split() can now create soft splits
27954 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27955 - Added method to format existing text
27956 - Fixed size/alignment calculations to use viewport
27957 - RecalculateDocument now can handle changing line-numbers while
27961 - Added some wrap logic, we don't wrap if alignment is not left
27962 - Added casts for scrollbar var, base class switched types to
27963 also support RichTextBoxA
27964 - Implemented handling of scrollbar visibility flags
27967 - Switched scrollbars type to RichTextBoxScrollBars to support
27969 - Added tracking of canvas width/height
27970 - Switched scrollbars to be not selectable (to keep focus on text)
27971 - Added central CalculateDocument() method to handle all redraw
27973 - Added ReadOnly support
27974 - Added WordWrap support
27975 - Fixed handling of Enter key (we now treat it as a DialogKey)
27976 - Fixed caret positioning when h or v scroll is not zero
27977 - Fixed placing/generation of vertical scrollbar
27978 - Added CalculateScrollBars() method to allow updating scrollbar
27979 limits and visibility
27980 - Fixed handling of horizontal scroll
27981 - Added handling of vertical scroll
27982 - Implemented auto-'jump' when caret moves to close to a left or
27983 right border and there is text to be scrolled into view (currently
27984 there's the potential for a stack overflow, until a bug in
27985 scrollbar is fixed)
27987 2005-06-21 Geoff Norton <gnorton@customerdna.com>
27989 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27991 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
27995 - return application/x-zerosize for files with size zero
27996 (if no extension pattern matches).
27997 - check matches collection for strings too.
27998 - return only the first mime type if the name value
27999 collection has more than one mime type.
28001 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
28003 * PropertyGrid.cs: Cleaned up some TODOs
28004 * PropertyGridView.cs: Added support for UITypeEditors
28006 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28008 * DataGrid.cs: clears cached value
28010 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28012 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28013 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28014 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28015 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28017 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
28019 * ThemeWin32Classic.cs: fixes colour
28021 2005-06-15 Peter Bartok <pbartok@novell.com>
28023 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28024 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28025 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28026 * Control.cs: Added some MWFCategory and MWFDescription attributes
28027 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28029 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
28031 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28034 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
28036 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
28037 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
28038 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
28039 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
28040 * DataGrid.cs: default datagrid settings for Default Styles, fixes
28041 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
28043 2005-06-13 Jackson Harper <jackson@ximian.com>
28045 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
28046 isn't printed when the user enables dropping. (X11 does accept
28049 2005-06-13 Jackson Harper <jackson@ximian.com>
28051 * TreeView.cs: Remove some TODOS.
28053 2005-06-13 Jackson Harper <jackson@ximian.com>
28055 * Form.cs: Hook into the mdi framework.
28056 * MdiClient.cs: Use the base control collections add method so
28057 parents get setup correctly. Set the default back colour and dock
28059 * MdiChildContext.cs: New class, this bad actor handles an
28060 instance of an MDI window. Right now there is only basic
28061 support. You can drag, close, and resize windows. Minimize and
28062 Maximize are partially implemented.
28064 2005-06-13 Jackson Harper <jackson@ximian.com>
28066 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
28067 freaky when both vals are negative. NOTE: There are probably other
28068 places in XplatUIX11 that this needs to be done.
28070 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
28072 * DataGrid.cs: implement missing methods, move KeyboardNavigation
28073 * DataGridColumnStyle.cs: fixes signature
28075 2005-06-12 Jackson Harper <jackson@ximian.com>
28077 * XplatUIX11.cs: Use sizing cursors similar to the ones on
28080 2005-06-11 Jackson Harper <jackson@ximian.com>
28082 * StatusBarPanel.cs: Signature cleanups. Implement
28085 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
28087 * DataGridTextBoxColumn.cs: Honors aligment
28088 * GridColumnStylesCollection.cs: Contains is case unsensitive
28089 * GridTableStylesCollection.cs: several fixes
28090 * DataGridTableStyle.cs: default column creation
28091 * DataGridDrawingLogic.cs: fixes
28092 * CurrencyManager.cs: ListName property
28093 * DataGrid.cs: multiple styles support
28094 * DataGridColumnStyle.cs: fixes
28097 2005-06-10 Peter Bartok <pbartok@novell.com>
28099 * Control.cs(Select): Moved SetFocus call to avoid potential
28100 loops if controls change the active control when getting focus
28101 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
28102 the up/down buttons
28104 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
28106 * ImageListConverter.cs: Implemented
28108 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
28110 * MonthCalendar.cs: Wired in NumericUpDown control for year
28112 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
28114 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
28115 DoubleClick events, since they are not meant to be fired.
28117 2005-06-09 Peter Bartok <pbartok@novell.com>
28119 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
28120 Jonathan's standalone controls into MWF, implemented missing
28121 events, attributes and methods; added xxxAccessible classes
28122 * AccessibleObject.cs: Made fields internal so other classes
28123 can change them if needed
28125 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
28127 * UpDownBase.cs: Complete implementation
28128 * NumericUpDown.cs: Complete implementation
28129 * DomainUpDown.cs: Complete implementation
28131 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
28133 * DataGridTextBoxColumn.cs: drawing fixes
28134 * DataGridCell.cs: fixes ToString method to match MSNet
28135 * DataGridTableStyle.cs: fixes
28136 * DataGridBoolColumn.cs: fixes, drawing
28137 * DataGridDrawingLogic.cs: fixes, new methods
28138 * DataGridTextBox.cs: Keyboard and fixes
28140 - Keyboard navigation
28142 - Row selection (single, multiple, deletion, etc)
28145 2005-06-07 Jackson Harper <jackson@ximian.com>
28147 * ThemeWin32Classic.cs: Clear the background area when drawing
28150 2005-06-06 Peter Bartok <pbartok@novell.com>
28152 * ImageListStreamer.cs: Fixed signature for GetData
28153 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
28155 - Added missing ChildAccessibleObject class
28156 - Added missing OnXXXFocus overrides, switched to using those
28157 instead of the event handler
28159 - Added Parent property for ControlAccessibleObject
28162 - Added ResetBindings()
28163 * ListBindingConverter.cs: Implemented some methods
28164 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
28165 * ImageList.cs: Implemented basic handle scheme, removed TODOs
28166 * ContainerControl.cs: Fixed signature, now subscribing to the
28167 ControlRemoved event instead of overriding the handler, LAMESPEC
28168 * CurrencyManager.cs: Added missing attribute
28169 * MonthCalendar.cs: Added missing properties
28171 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
28173 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
28175 2005-06-06 Gaurav Vaish and Ankit Jain
28177 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
28178 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
28180 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
28182 * Control.cs: fixes CreateParams Width / Height.
28184 2005-06-05 Peter Bartok <pbartok@novell.com>
28186 * Win32DnD.cs: Removed compilation warnings
28188 2005-06-05 Peter Bartok <pbartok@novell.com>
28190 * Control.cs (CreateParams): Since we don't know if one of the
28191 properties we use is overridden, lets make sure if we fail accessing
28192 we continue with a backup plan
28194 2005-06-05 Peter Bartok <pbartok@novell.com>
28197 - Removed debug output
28198 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
28200 - Plugged resource leak
28201 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
28204 2005-06-05 Peter Bartok <pbartok@novell.com>
28206 * XplatUIWin32.cs: Removed DnD code
28207 * Win32DnD.cs: Implemented drop source and drop target functionality
28209 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28211 * UpDownBase.cs: remove duplicate addition of event, enable some code
28212 that was commented out.
28213 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
28214 Validate input when a key is pressed. It works fine now for every
28215 combination of Hexadecimal. Only missing some drawing love when sharing
28216 space with other controls.
28218 2005-06-04 Peter Bartok <pbartok@novell.com>
28221 - We need to pass a window for DragDrop, so enable callback events
28222 - Added DnD callback events when being a DragSource
28223 * XplatUI.cs (StartDrag): Added window handle argument
28224 * XplatUIDriver.cs (StartDrag): Added window handle argument
28225 * QueryContinueDragEventArgs: Made fields internally accessible so
28226 drivers can set them
28227 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
28230 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
28232 * DataGridTextBoxColumn.cs: column text editing
28233 * DataGridTableStyle.cs: Respect columns styles created by the user
28234 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
28235 * DataGridBoolColumn.cs: bool column editing
28236 * DataGrid.cs: fixes to scrolling, properties, etc
28237 * DataGridTextBox.cs: handle keyboard
28238 * DataGridColumnStyle.cs: fixes
28240 2005-06-02 Jackson Harper <jackson@ximian.com>
28242 * ImageListStreamer.cs: Somewhat broken implementation of
28243 GetObjectData. The RLE needs some work to match MS properly.
28245 2005-06-02 Jackson Harper <jackson@ximian.com>
28247 * X11Dnd.cs: Attempting to keep at least one file in MWF
28250 2005-06-02 Peter Bartok <pbartok@novell.com>
28252 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
28255 2005-06-02 Peter Bartok <pbartok@novell.com>
28257 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
28258 * XplatUI.cs: Added DoDragDrop() method
28259 * XplatUIDriver.cs: Added DoDragDrop() method
28261 2005-06-02 Jackson Harper <jackson@ximian.com>
28263 * Splitter.cs: Implement BorderStyle.
28265 2005-06-02 Jackson Harper <jackson@ximian.com>
28267 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
28268 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
28271 2005-06-02 Peter Bartok <pbartok@novell.com>
28274 - Added Data setter
28275 - Fixed broken insertion code for SetData, now also
28276 overwrites any existing entry of the same format name
28277 * Hwnd.cs: Added list of pointers that automatically gets
28278 freed when the window is disposed
28279 * XplatUI.cs: Call driver initialization method when loading
28282 - OnDragLeave takes EventArgs, not DragEventArgs
28283 - Added setting of WS_EX_ACCEPTFILES style when dropping is
28285 - Forces style update when drop state changes
28286 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
28287 not perfect since we cannot (yet) call the IDataObject.GetData()
28288 method, we keep getting 0x80004005 error, dunno why)
28290 2005-06-02 Peter Bartok <pbartok@novell.com>
28292 * DragEventArgs.cs: Make fields internal so we can cache the
28293 object and re-set the fields from XplatUI
28295 2005-06-02 Jackson Harper <jackson@ximian.com>
28297 * Control.cs: Add some internal methods so the DnD subsystem can
28298 raise DnD events. Also call into the driver when AllowDrop is set.
28300 * XplatUIDriver.cs: New method for setting whether or not a window
28301 is allowed to accept drag and drop messages.
28303 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
28305 * ScrollBar.cs: Make sure that values sent in Scroll events
28306 are always between Maximum and Minimum.
28308 2005-06-01 Marek Safar <marek.safar@seznam.cz>
28310 * Menu.cs: Call MenuChanged when menuitem visibility has been
28312 * MenuItem.cs: Rebuild menu when item is (not) visible.
28313 * MainMenu.cs: MainMenu has special MenuChanged.
28314 * Theme.cs: Caption and FrameBorderSize are not fixed.
28315 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
28316 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
28318 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
28319 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
28321 2005-05-30 Jackson Harper <jackson@ximian.com>
28323 * DataFormat.cs: We can't statically initialize this stuff because
28324 it calls into the xplatui and could create a loop. So we lazy init
28327 2005-05-28 Jackson Harper <jackson@ximian.com>
28329 * Control.cs: Proper implementation of Product(Name/Version).
28331 2005-05-27 Jackson Harper <jackson@ximian.com>
28333 * DataObject.cs: Dont crash if no data is found.
28335 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28336 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
28337 as per status page, guessing it should be set to true
28339 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
28341 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
28342 * DataGridTableStyle.cs: set proper formatting text, def header text
28343 * ThemeWin32Classic.cs: new themable paramaters
28344 * DataGridBoolColumn.cs: paint check box, get data, fixes
28345 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
28346 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
28347 * DataGridColumnStyle.cs: fixes
28348 * Theme.cs: new themable paramaters
28350 2005-05-26 Peter Bartok <pbartok@novell.com>
28352 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
28354 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28355 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
28357 2005-05-24 Peter Bartok <pbartok@novell.com>
28359 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
28360 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
28361 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
28362 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
28363 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
28364 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
28365 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
28366 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
28367 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
28368 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
28369 missing attributes, etc
28370 * DataGridPreferredColumnWidthTypeConverter.cs: Added
28372 2005-05-24 Peter Bartok <pbartok@novell.com>
28374 * Help.cs: Added, implemented trivial functions, throws up MessageBox
28375 when user tries to get help
28376 * DataObject.cs, DataFormats.cs, LinkArea.cs,
28377 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
28378 to suppress warnings
28379 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
28380 avoid unreachable code warning
28382 2005-05-20 Peter Bartok <pbartok@novell.com>
28384 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
28386 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28388 * DataGridTextBoxColumn.cs: Basic painting methods
28389 * DataGridTableStyle.cs: Set table style in the column
28390 * ThemeWin32Classic.cs: Use Theme for colors
28391 * DataGridDrawingLogic.cs: Implement more drawing
28392 * DataGrid.cs: drawing, theming, enhacements, fixes
28393 * DataGridColumnStyle.cs: fixes, drawing
28394 * Theme.cs: theming for Datagrid
28396 2005-05-20 Peter Bartok <pbartok@novell.com>
28398 * Cursor.cs: Implemented GetObjectData() method
28400 2005-05-20 Peter Bartok <pbartok@novell.com>
28402 * Cursors.cs: Added setting of cursor name
28404 - Implemented constructors
28405 - Implemented Draw and DrawStretched
28406 - Implemented Current property
28407 - Implemented == and != operators
28408 - Implemented Dispose()
28409 - Implemented ToString
28410 - Added missing attributes
28412 - Added missing reset for OverrideCursor when DoEvents is called
28413 - Fixed creation of cursor, logic was wrong
28415 - Added missing reset for OverrideCursor when DoEvents is called
28416 - Fixed creation of cursor, bit arrays were swapped
28417 * Clipboard.cs: Removed obsolete MonoTODO attribute
28419 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28421 * ComboBox.cs: fixes OnSelectedItemChanged
28422 * ControlBindingsCollection.cs: fixes item range check
28424 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
28427 - Calc preferred height properly
28428 - Implement missing properties
28430 * NumericUpDown.cs: Implement missing events
28432 2005-05-19 Jackson Harper <jackson@ximian.com>
28434 * TabControl.cs: New method that resizes the tab pages before
28435 redrawing them. This as needed as the control is double buffered
28436 and sizing will not be recalculated unless ResizeTabPages is
28438 * TabPage.cs: Set base.Text instead of Text in the constructor so
28439 that UpdateOwner does not get called. Use the new Redraw method of
28440 TabControl instead of Refresh so the sizing is recalculated.
28441 * ThemeWin32Classic.cs: Draw the text for button tabs.
28443 2005-05-19 Jackson Harper <jackson@ximian.com>
28445 * Control.cs: Paint control background images. Fix typo where
28446 PaintControlBackground was not getting called correctly.
28448 2005-05-19 Peter Bartok <pbartok@novell.com>
28450 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
28451 I can investigate, apparently I broke FileDialog
28453 2005-05-19 Marek Safar <marek.safar@seznam.cz>
28455 * AxHost.cs: Some simple properties.
28456 * Control.cs: window must be accessible after ctor.
28457 * Form.cs: Added TransparencyKey property.
28458 * TextBoxBase.cs: Implemented Clear. Text property can be null.
28459 * XplatUIWin32.cs: SetBorderStyle implemented.
28461 2005-05-18 Peter Bartok <pbartok@novell.com>
28463 * DataObject.cs: Entries are not global but particular to the
28464 DataObject, now it behaves that way
28465 * XplatUIWin32.cs: Implemented Clipboard methods
28466 * Clipboard.cs: Implemented
28467 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
28468 * XplatUIOSX.cs: Updated to final clipboard prototypes
28469 * XplatUIX11.cs: Implemented Clipboard methods
28470 * XplatUIDriver.cs: Updated to final clipboard prototypes
28471 * XplatUIStructs.cs:
28472 - Added BITMAPINFOHEADER struct
28473 - Added ClipboardFormats enum
28475 - Added ClipboardStruct
28476 - Added Atom enum items for clipboard types
28477 - Fixed atom types for Selection event structures
28479 - Added internal properties and methods for drivers to enumerate
28481 - Switched initialization method to allow drivers to assign their
28482 own IDs even for the MS predefined clipboard IDs
28483 * XplatUI.cs: Updated to final clipboard interface
28485 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28486 * PropertyGridView.cs: Fixed compiler warnings.
28488 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28489 * PropertyGrid.cs: Added some event calls
28490 * PropertyGridView.cs: Change drawing code to use double buffering
28491 * PropertyGridTextBox.cs: Changed Text property name
28492 * GridItem.cs: Added Bounds property.
28493 * GridEntry.cs: Added Bounds property.
28495 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
28497 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
28498 since GetType() may not return the correct type if the object is
28501 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
28503 * TreeNodeCollection.cs: fixes get/set item ranges
28505 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28507 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
28509 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
28511 * ComboBox.cs: Fix item range comparation
28512 * ListView.cs: Fix item range comparation
28514 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28517 - Clear example panel when OnPaint is called
28518 - Better solution for displaying the example panel text
28519 - Select default indexes in the ListBoxes
28521 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28523 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
28525 2005-05-11 Peter Bartok <pbartok@novell.com>
28527 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
28528 * SelectionRangeConverter.cs: Implemented
28529 * PropertyGrid.cs: Fixed attribute value
28531 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
28532 - Added Sebastien Pouliot's CAS Stack Propagation fixes
28533 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
28534 that's common to all drivers. First methods to go there are
28535 Sebastien Pouliot's CAS Stack Propagation helper methods
28536 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
28537 Sebastien Pouliot for CAS Stack Propagation
28539 2005-05-11 Geoff Norton <gnorton@customerdna.com>
28542 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
28544 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
28546 * DataGridTextBoxColumn.cs: fixed some members
28547 * GridColumnStylesCollection.cs: indexed column is case insensitive
28548 * DataGridTableStyle.cs: fixes
28549 * ThemeWin32Classic.cs: add new theme parameter
28550 * Theme.cs: add new theme parameter
28551 * DataGridDrawingLogic.cs: Datagrid's drawing logic
28552 * DataGrid.cs: fixes, new internal properties, etc.
28553 * DataGridColumnStyle.cs: allows to set grid value
28556 2005-05-10 Peter Bartok <pbartok@novell.com>
28558 * AccessibleObject.cs:
28559 - Removed MonoTODO attribute on help, method is correct
28560 - Fixed Bounds property
28561 * AxHost.cs: Moved MonoTODO
28562 * ButtonBase.cs: Now setting AccessibleObject properties
28563 * RadioButton.cs: Setting proper AccessibleObject role
28564 * CheckBox.cs: Setting proper AccessibleObject role
28565 * ControlBindingsCollection.cs: Added properties, methods and attributes
28566 * DataFormats.cs: Fixed awkward internal API, and changed to enable
28567 userdefined DataFormats.Format items as well
28568 * ListControl.cs: Removed data_member from the public eye
28569 * OpenFileDialog.cs:
28570 - Made class sealed
28571 - Added missing attributes
28572 * SaveFileDialog.cs: Added missing attributes
28573 * ImageListStreamer.cs: Fixed code that caused warnings
28574 * LinkLabel.cs: Removed unreachable code
28575 * TreeView.cs: Fixed code that caused warnings
28576 * PropertyGridView.cs: Fixed code that caused warnings
28577 * GridColumnStylesCollection.cs: Added missing attributes
28578 * GridTableStylesCollection: Added missing attribute
28579 * PropertyManager: Added .ctor
28580 * SecurityIDType: Added
28581 * DataObject.cs: Implemented class
28582 * LinkArea.cs: Added missing attribute
28584 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
28586 * RadioButton.cs: call base method to allow to fire OnClick event
28587 * UpDownBase.cs: OnMouseUp call base method
28588 * CheckedListBox.cs: call base method before returning
28589 * TrackBar.cs: call base method before returning
28592 2005-05-10 Peter Bartok <pbartok@novell.com>
28594 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
28597 2005-05-10 Peter Bartok <pbartok@novell.com>
28599 * DataFormats.cs: Implemented
28600 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
28601 XplatUIX11.cs: Added Clipboard APIs
28602 * XplatUIWin32.cs: Implemented Clipboard APIs
28603 * FolderBrowserDialog.cs: Added missing event, attributes
28605 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
28607 * CheckBox.cs: call base method to allow to fire OnClick event
28609 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
28611 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
28613 2005-05-06 Peter Bartok <pbartok@novell.com>
28615 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
28616 * Screen.cs: Implemented
28617 * HelpNavigator.cs: Added
28618 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
28620 * HelpProvider.cs: Implemented all we can do until we have a CHM
28621 help library (which means that "What's This" does work now)
28623 2005-05-06 Jackson Harper <jackson@ximian.com>
28625 * XplatUIX11.cs: Fix waking up the main loop.
28627 2005-05-05 Peter Bartok <pbartok@novell.com>
28629 * XplatUI.cs: Updated revision
28630 * Form.cs: Removed enless loop
28631 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
28632 * Label.cs (OnPaint): Added call to base.OnPaint()
28633 * ToolTip.cs: Made ToolTipWindow reusable for other controls
28634 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
28635 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
28637 * ButtonBase.cs: Moved base.OnPaint() call to end of method
28638 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
28639 to ToolTip.ToolTipWindow for drawing and size methods; this allows
28640 reuse of ToolTipWindow by other controls
28641 * SizeGrip.cs: Moved base.OnPaint() call to end of method
28642 * XplatUIX11.cs: Now clipping drawing area (experimental)
28643 * PictureBox.cs: Moved base.OnPaint() call to end of method
28644 * Theme.cs: Fixed ToolTip abstracts to match new format
28645 * ErrorProvider.cs: Implemented
28647 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
28649 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
28653 - Implements LinkBehavior
28654 - Fixes many issues
28656 2005-05-03 Jackson Harper <jackson@ximian.com>
28658 * ListView.cs: Calculate the scrollbar positioning on resize and
28659 paint, so they get put in the correct place.
28661 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
28663 * ColorDialogs.cs: The small color panels are now handled by
28664 SmallColorControl. This fixes drawing of the focus rectangle
28665 and adds a 3D border.
28667 2005-05-03 Peter Bartok <pbartok@novell.com>
28669 * Control.cs: Modified version of Jonathan Chamber's fix for
28672 2005-05-03 Jackson Harper <jackson@ximian.com>
28674 * ListView.cs: Remove redraw variable. Control now handles whether
28675 or not a redraw needs to be done, and will only raise the paint
28676 event if redrawing is needed.
28678 2005-05-03 Jackson Harper <jackson@ximian.com>
28680 * Splitter.cs: No decorations for the splitter form. Cache the
28683 2005-05-03 Jackson Harper <jackson@ximian.com>
28685 * TreeView.cs: Use dashed lines to connect nodes. Use the
28686 ControlPaint method for drawing the focus rect instead of doing
28689 2005-05-02 Peter Bartok <pbartok@novell.com>
28691 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
28693 2005-04-29 Jackson Harper <jackson@ximian.com>
28695 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
28696 entire image buffer. Just clear the clipping rectangle.
28698 2005-04-29 Jackson Harper <jackson@ximian.com>
28700 * ThemeWin32Classic.cs: Don't draw list view items that are
28701 outside the clipping rectangle.
28703 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
28705 * ListBox.cs: added horizontal item scroll
28707 2005-04-29 Jackson Harper <jackson@ximian.com>
28709 * ThemeWin32Classic.cs: Remove some old debug code that was
28710 causing flicker with the new double buffering code.
28712 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
28714 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
28715 behave like combobox and comboboxlist (still not sure if this is
28718 2005-04-28 Jackson Harper <jackson@ximian.com>
28720 * ThemeWin32Classic.cs: Don't fill the middle of progress
28721 bars. This fills areas outside of the clip bounds that don't need
28724 2005-04-28 Jackson Harper <jackson@ximian.com>
28726 * Control.cs: Don't expose functionality to touch the image buffers.
28728 * ListView.cs: We do not need to (and no longer can) manipulate
28729 the image buffers directly. All of this is handled by Control.
28731 2005-04-28 Peter Bartok <pbartok@novell.com>
28733 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28734 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
28735 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
28737 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28740 - Adjust control's height for non-simple comboboxes (bug fix)
28742 * MenuAPI.cs: remove unused var
28743 * ScrollBar.cs: remove unsed var
28745 * ListBox.cs: unselect items when clearing
28747 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
28749 * ListControl.cs: honors OnPositionChanged and default Selected Item
28750 * ListBox.cs: unselect items when clearing
28752 2005-04-27 Jackson Harper <jackson@ximian.com>
28754 * X11Keyboard.cs: Initialize a default keyboard and give a warning
28755 if a "correct" keyboard is not found. This will make us not crash,
28756 but might give some users bad keyboard layouts...seems to be the
28757 same thing rewind does.
28759 2005-04-27 Jackson Harper <jackson@ximian.com>
28761 * BindingManagerBase.cs: Attach the current/position changed
28762 handlers to their respective events.
28764 2005-04-27 Jackson Harper <jackson@ximian.com>
28766 * Control.cs: Make sure that the first WM_PAINT does a full draw,
28768 * ThemeWin32Classic.cs: Don't fill the background for picture
28769 boxes. This could overright user drawing.
28770 * ComboBox.cs: Just fill the clipping rect not the entire client
28771 rect when drawing the background. This prevents pieces of the
28772 image buffer from getting overwritten and is theoretically faster.
28774 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
28776 * ComboBox.cs: Databinding support fixes, fire missing events
28777 * ListControl.cs: implement missing methods and properties, fixes
28778 * ThemeWin32Classic.cs: Databiding support on Drawing
28779 * CheckedListBox.cs: Databinding support fixes, fire missing events
28780 * ListBox.cs: Databinding support fixes, fire missing events
28782 2005-04-25 Peter Bartok <pbartok@novell.com>
28784 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
28786 2005-04-25 Jackson Harper <jackson@ximian.com>
28788 * TreeView.cs: Use the horizontal scrollbars height not width when
28789 determining how much of the client area is available.
28791 2005-04-25 Jackson Harper <jackson@ximian.com>
28793 * Control.cs: Double buffering is handled differently now. As per
28794 the spec, the extra buffer is created in the WM_PAINT message and
28795 passed down to the control's drawing code.
28803 * PropertyGridView.cs:
28815 * DateTimePicker.cs:
28817 * TreeView.cs: Update to new double buffering system.
28818 * MonthCalendar.cs: Uncomment block, as Capture is now
28819 working. Update to new double buffering
28820 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
28821 * PaintEventArgs.cs: New internal method allows us to set the
28822 graphics object. This is used for double buffering.
28823 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
28824 rectangle. The internal paint_area var has been removed from
28825 StatusBar. The clipping rect should be used instead.
28826 * Theme.cs: Give the PictureBox drawing method a clipping rect.
28827 * TabPage.cs: The RefreshTabs method was removed, so just call the
28828 tab controls Refresh method now.
28829 * TabControl.cs: Update to new double buffering. Make sure the
28830 handle is created before sizing the tab pages, otherwise we will
28831 get stuck in a loop.
28833 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
28835 * LinkLabel.cs: Fix typo, bug #74719; patch
28836 from Borja Sanchez Zamorano
28838 2005-04-22 Jackson Harper <jackson@ximian.com>
28840 * TreeNode.cs: Implement Handle stuff.
28841 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
28843 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
28845 * DataGridTextBoxColumn.cs: call base constructors, fixes
28846 * GridColumnStylesCollection.cs: missing events, methods, and functionality
28847 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
28848 * DataGridTableStyle.cs: implements create default column styles
28849 * DataGridBoolColumn.cs: which types can handle
28850 * DataGrid.cs: missing methods, fixes, new functionality
28851 * DataGridColumnStyle.cs: fixes
28853 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
28854 * FolderBrowserDialog.cs:
28855 - Use a thread to fill the TreeView
28856 - Adjusted some sizes
28858 2005-04-19 Peter Bartok <pbartok@novell.com>
28860 * LinkLabel.cs: (Re-)create the pieces when setting the Text
28861 property. Fixes #74360.
28863 2005-04-19 Jackson Harper <jackson@ximian.com>
28865 * XEventQueue.cs: Lock when getting the lockqueue size.
28866 * PictureBox.cs: Call base OnPaint
28868 2005-04-19 Peter Bartok <pbartok@novell.com>
28870 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28871 messages were no longer being processed (this broke BeginInvoke)
28874 2005-04-18 Jackson Harper <jackson@ximian.com>
28876 * TreeView.cs: buglet that caused node images to get drawn
28877 regardless of whether or not they were in the clipping rectangle.
28879 2005-04-18 Jackson Harper <jackson@ximian.com>
28881 * CurrencyManager.cs: There are four rules for GetItemProperties:
28882 - If the type is an array use the element type of the array
28883 - If the type is a typed list, use the type
28884 - If the list contains an Item property that is not an object, use
28886 - use the first element of the list if there are any elements in
28889 2005-04-17 Jackson Harper <jackson@ximian.oom>
28891 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28892 click. This handles offsets for scrolling properly and reduces
28893 memory. Also fixed GetNode to not offset now that TopNode works
28895 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28897 2005-04-17 Jackson Harper <jackson@ximian.com>
28899 * CursorConverter.cs: Initial implementation.
28901 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28903 * ListControl.cs: work towards complex data binding support on ListControl
28904 * CurrencyManager.cs: work towards complex data binding support on ListControl
28905 * ListBox.cs: work towards complex data binding support on ListControl
28908 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28910 * GridTableStylesCollection.cs: fixes name and constructor
28911 * DataGridTableStyle.cs: fixes
28912 * DataGridBoolColumn.cs: fixes names and constructors
28913 * DataGrid.cs: define methods and properties. Some init implementations
28914 * DataGridCell.cs: define methods and properties. Some init implementations
28915 * GridTablesFactory.cs: Define methods and properties
28917 2005-04-15 Geoff Norton <gnorton@customerdna.com>
28919 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
28920 graphics port changes. We still want the coordinates in global screen
28923 2005-04-14 Jackson Harper <jackson@ximian.com>
28925 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28926 check plus minus or checkbox clicks unless those features are enabled.
28928 2005-04-14 Jackson Harper <jackson@ximian.com>
28930 * TreeView.cs: Add methods for setting the top and bottom visible
28931 nodes. TreeNode::EnsureVisible uses these methods.
28932 * TreeNode.cs: Implement EnsureVisible
28934 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
28936 * Form.cs: Pospone menu assignation if the window has not been created yet
28937 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28940 2005-04-12 Jackson Harper <jackson@ximian.com>
28942 * TreeView.cs: Set the TopNode properly when scrolling
28943 occurs. This has the added benifit of reducing the amount of
28944 walking that needs to be done when drawing. Also removed an old
28946 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28948 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
28950 * Timer.cs: fixes interval setting when the timer is already enabled
28952 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
28954 * FolderBrowserDialog.cs: First approach
28956 2005-04-09 Peter Bartok <pbartok@novell.com>
28958 * FolderBrowserDialog: Added
28960 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
28962 * LinkLabel.cs: move drawing code into the theme
28963 * ThemeWin32Classic.cs: drawing code and painting background bugfix
28964 * Theme.cs: define DrawLinkLabel method
28966 2005-04-05 Jackson Harper <jackson@ximian.com>
28968 * BindingContext.cs: Use weak references so these bad actors don't
28969 stay alive longer then they need to.
28971 2005-04-05 Jackson Harper <jackson@ximian.com>
28973 * ListControl.cs: Basic implementation of complex databinding.
28975 * ListBox.cs: Add calls to ListControl databinding methods.
28977 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
28980 - Don't change PopupButtonState to Normal when the
28981 PopupButton gets pressed several times.
28982 - Renamed ButtonPanel to PopupButtonPanel
28984 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
28986 * ColorDialog.cs: Use cached objects instead of creating them
28987 * LinkLabel.cs: Use cached objects instead of creating them
28988 * Splitter.cs: Use cached objects instead of creating them
28989 * FontDialog.cs: Use cached objects instead of creating them
28990 * PropertyGridView.cs: Use cached objects instead of creating them
28991 * MessageBox.cs: Use cached objects instead of creating them
28992 * FileDialog.cs: Use cached objects instead of creating them
28993 * ThemeWin32Classic.cs: Use cached objects instead of creating them
28994 * TreeView.cs: Use cached objects instead of creating them
28996 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
28998 * Control.cs: use Equals to compare the font since no == op
28999 * ScrollBar.cs: use Equals to compare the font since no == op
29001 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
29003 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29005 2005-04-01 Jackson Harper <jackson@ximian.com>
29007 * Binding.cs: Implement IsBinding.
29008 * BindingManagerBase.cs:
29009 * PropertyManager.cs:
29010 * CurrencyManager.cs: Add IsSuspended property.
29012 2005-04-01 Jackson Harper <jackson@ximian.com>
29014 * Binding.cs: Had some IsAssignableFrom calls backwards.
29016 2005-04-01 Jackson Harper <jackson@ximian.com>
29018 * Binding.cs: Handle null data members when pulling data.
29019 * PropertyManager.cs: Handle the data member being a property that
29022 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29024 * DataGridTextBoxColumn.cs: fixes signature
29025 * DataGrid.cs: calls right constructor
29027 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29029 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29030 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29031 * GridTableStylesCollection.cs: implements GridTableStylesCollection
29032 * DataGridTableStyle.cs: implements DataGridTableStyle
29033 * DataGridBoolColumn.cs: implements DataGridBoolColumn
29034 * DataGridTextBox.cs: implements DataGridTextBox
29035 * DataGridColumnStyle.cs: implements DataGridColumnStyle
29037 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
29039 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
29041 2005-03-29 Peter Bartok <pbartok@novell.com>
29044 - Properly implemented CompanyName property
29045 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
29046 returns a path that includes CompanyName, ProductName and
29047 Version (fixes bug #70330)
29049 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
29051 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
29054 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29056 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
29058 - Added ReadOnly CheckBox
29059 - Further refactoring: moved some code from Open-/SaveFileDialog
29062 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29064 * OpenFileDialog.cs: Fixed CheckFileExists
29066 Moved FileView and DirComboBox outside FileDialog class.
29067 They can now be used outside FileDialog
29069 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29071 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
29072 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
29074 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29076 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29077 - Added missing CreatePrompt property in SaveDialog
29078 - Overall SaveDialog handling should be better now
29079 - Added non standard ShowHiddenFiles property
29080 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
29081 - Added InitialDirectory and RestoreDirectory support
29083 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
29085 * FileDialog.cs: Made dirComboBox usable
29087 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
29089 * FileDialog.cs: Added Filter support (case sensitiv)
29091 2005-03-24 Jackson Harper <jackson@ximian.com>
29093 * TabControl.cs: Need a couple more pixels for the lines.
29095 2005-03-23 Jackson Harper <jackson@ximian.com>
29097 * TabControl.cs: Give the tab page focus when it is selected.
29099 2005-03-23 Jackson Harper <jackson@ximian.com>
29101 * TabControl.cs: Account for the drawing of tabs borders when
29102 invalidating. If the slider was clicked dont do click detection on
29105 2005-03-23 Jackson Harper <jackson@ximian.com>
29107 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
29109 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
29111 * CategoryGridEntry.cs: Added
29112 * GridItem.cs: Added helper properties
29113 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
29114 * GridEntry.cs: Updated code for collection
29115 * PropertyGrid.cs: Cleaned up some formatting
29116 * PropertyGridView.cs: Added drop down functionality for enums.
29117 * GridItemCollection.cs: Added enumerator logic
29118 * PropertyGridEntry.cs: Added
29120 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
29123 - Removed unnecessary commented code
29124 - Fixed handling for entering the filename manually in the combobox
29126 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
29128 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
29130 2005-03-18 Peter Bartok <pbartok@novell.com>
29132 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
29133 them being touching the border
29135 2005-03-18 Peter Bartok <pbartok@novell.com>
29137 * TextControl.cs: Quick hack to center text better
29139 2005-03-18 Peter Bartok <pbartok@novell.com>
29142 - Don't throw NotImplemented exceptions, just print a notice once
29143 instead (requested by Miguel). This makes running existing SWF
29146 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
29147 - Added context menu trigger on right click
29148 * Panel.cs: Trigger invalidate on resize
29150 - Removed old double-buffer drawing
29151 - Added ResizeRedraw style to force proper update of statusbar
29153 - Removed debug output
29154 * ThemeWin32Classic.cs:
29155 - Fixed drawing of status bar, now draws Text property if there
29156 are no defined panels
29158 2005-03-18 Jackson Harper <jackson@ximian.com>
29160 * ImageList.cs: When the image stream is set pull all the images
29162 * ImageListStreamer.cs: Implement reading image list streams.
29164 2005-03-18 Peter Bartok <pbartok@novell.com>
29166 * ThemeWin32Classic.cs (DrawPictureBox):
29167 - Fixed calculations for centered drawing
29168 - Fixed drawing for normal mode, not scaling the image on normal
29170 2005-03-18 Peter Bartok <pbartok@novell.com>
29172 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
29175 - Made Open/Save button the accept button for FileDialog
29176 - Tied the cancel button to the IButtonControl cancel button
29177 - Save/Open now properly builds the pathname
29178 - Now handles user-entered text
29179 - Preventing crash on right-click if no item is selected
29180 - Fixed Text property, now uses contents of textbox
29181 - Fixed SelectedText property, now just returns the text part that
29182 is selected in the text box
29184 2005-03-18 Jackson Harper <jackson@ximian.com>
29186 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
29187 rect, make sure to de-adjust the interior rect after drawing the
29190 2005-03-18 Peter Bartok <pbartok@novell.com>
29192 * MenuAPI.cs: Remove menu *before* executing selected action to
29193 prevent the menu from 'hanging around'
29195 2005-03-17 Geoff Norton <gnorton@customerdna.com>
29197 * XplatUIOSX.cs: Implemented WorkingArea property
29199 2005-03-17 Peter Bartok <pbartok@novell.com>
29201 * XplatUIX11.cs: Fixed menu coord calculations
29202 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
29203 for calculating offsets
29205 2005-03-17 Peter Bartok <pbartok@novell.com>
29207 * Hwnd.cs: Do not consider menu presence for default client
29208 rectangle location/size
29209 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29210 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
29211 translation functions
29212 * FileDialog.cs: Fixed (what I presume is a) typo
29214 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
29216 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
29217 X access (avoids X-Async errors)
29219 2005-03-16 Jackson Harper <jackson@ximian.com>
29221 * TabControl.cs: Raise the SelectedIndexChanged event.
29223 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
29225 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29226 - Removed vertical ToolBar and replaced it with a custom panel
29227 (desktop and home button already work)
29228 - Added Help button (some controls get resized or relocated then)
29229 - Draw correct text depending on Open or Save.
29230 - Fixed some typos...
29232 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
29235 - Only change Maximum and Minimum when need it (bug fix)
29237 2005-03-15 Peter Bartok <pbartok@novell.com>
29239 * Form.cs: Use Handle for icon, to trigger creation if
29240 the window does not yet exist
29242 - CanSelect: Slight performance improvement
29243 - Focus(): Preventing possible recursion
29244 - Invalidate(): Removed ControlStyle based clear flag setting
29245 - WM_PAINT: fixed logic for calling OnPaintBackground
29246 - WM_ERASEBKGND: Fixed logic, added call to new driver method
29247 EraseWindowBackground if the control doesn't paint background
29249 - Moved EraseWindowBackground() method to internal methods
29250 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
29251 is sent via SendMessage on BeginPaint call on Win32
29253 - Added EraseWindowBackground() method
29254 - No longer sends WM_ERASEBKGND on .Expose, but on call to
29255 PaintEventStart, which more closely matches Win32 behaviour
29256 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
29257 - Fixed SetFocus() to properly deal with client and whole windows
29258 * Hwnd.cs: Added ErasePending property
29259 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
29260 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
29262 2005-03-12 Geoff Norton <gnorton@customerdna.com>
29265 - Fix hard loop when timers exist.
29266 - Fix bugs with middle and right click for 3 button mice.
29268 2005-03-11 Peter Bartok <pbartok@novell.com>
29271 - get_WorkingArea: Need to call X directly, GetWindowPos only
29272 returns cached data now
29273 - Added sanity check to GetWindowPos hwnd usage
29275 2005-03-11 Jackson Harper <jackson@ximian.com>
29277 * BindingManagerBase.cs: This method isn't used anymore as
29278 PullData now updates the data in the control.
29280 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
29282 * Form.cs: fixes menu drawing on X11
29283 * MenuAPI.cs: fixes menu drawing on X11
29285 2005-03-11 Peter Bartok <pbartok@novell.com>
29287 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
29288 from Jonathan Gilbert; should fix bug #73606
29289 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
29290 in Screen coordinates. Thanks, Jordi.
29291 * Form.cs: Added missing attribute
29293 2005-03-11 Peter Bartok <pbartok@novell.com>
29296 - Rudimentary Mdi support
29297 - Removed outdated FormParent code
29298 - Implemented lots of missing properties and methods, still missing
29299 transparency support
29300 - Added missing attributes
29301 - Implemented support for MaximumBounds
29302 - Added firing of various events
29303 * XplatUI.cs: Added SetIcon() method
29304 * XplatUIDriver.cs: Added SetIcon() abstract
29305 * XplatUIOSX.cs: Stubbed out SetIcon() method
29307 - Implemented SetIcon() support
29308 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
29309 - Switched to unix line endings
29311 - Made POINT internal so for can access it as part of MINMAX
29312 - Implemented SetIcon() support
29313 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
29314 native Mdi support again, might have to go managed)
29315 * Control.cs: Now fires the StyleChanged event
29316 * MdiClient.cs: Added; still mostly empty
29318 2005-03-10 Peter Bartok <pbartok@novell.com>
29320 * SaveFileDialog.cs: Added emtpy file
29322 2005-03-08 Peter Bartok <pbartok@novell.com>
29324 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
29325 in turn triggers OnCreateContro) when creating a handle for the
29327 * TextControl.cs: Fixed endless loop in certain cases when
29328 replacing the current selection
29330 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
29333 - Honors NewValue changes in Scroll events allowing apps to change it
29334 - Adds First and Last Scroll events
29335 - Fixes Thumb events
29337 2005-03-07 Peter Bartok <pbartok@novell.com>
29339 * Hwnd.cs: Added DefaultClientRectangle property
29340 * XplatUI.cs: Now using the X11 driver Where() method, which provides
29341 more detailed debug information
29343 - Fixed size-change feedback loop, where we would pull an old size
29344 off the queue and mistakenly change our window's size to an
29346 - Now compressing ConfigureNotify events, to reduce looping and
29348 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
29351 2005-03-07 Jackson Harper <jackson@ximian.com>
29353 * Binding.cs: Push data pushes from data -> property. Check if the
29354 property is readonly when attempting to set it.
29356 2005-03-07 Jackson Harper <jackson@ximian.com>
29358 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
29359 instead of IsSubclassOf. Pulling data now sets the value on the
29361 * PropertyManager.cs:
29362 * CurrencyManager.cs: Just need to pull data when updating now,
29363 because PullData will set the value on the control.
29365 2005-03-04 Jackson Harper <jackson@ximian.com>
29367 * Binding.cs: Implement data type parsing and converting on pulled
29368 data. TODO: Are there more ways the data can be converted?
29370 2005-03-04 Jackson Harper <jackson@ximian.com>
29372 * Binding.cs: Support <Property>IsNull checks. Also bind to the
29373 controls Validating method so we can repull the data when the
29374 control loses focus.
29376 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
29379 - Fixes null string format
29382 - Adds enum type checks
29383 - Fixes redrawing and recalc need after changing some properties
29384 - Fixes on focus_item set after the event
29385 - Fixes adding columns after the control has been created
29387 * ThemeWin32Classic.cs:
29388 - Fixes CheckBox focus rectangle
29389 - Fixes ColumnHeader drawing
29392 2005-03-03 Jackson Harper <jackson@ximian.com>
29394 * Binding.cs: Bind to <Property>Changed events so we can detect
29395 when properties are changed and update the data.
29397 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
29400 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
29401 - Fixes ImageList constructor with ImageList container
29402 - Fixes image scaling (wrong parameters at DrawImage)
29404 2005-02-02 Jackson Harper <jackson@ximian.com>
29406 * Binding.cs: Make property searches case-insensitive. Eliminate
29407 some duplicated code.
29409 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
29412 - Handle focus event
29413 - Fix scrollbar events
29414 - Discard highlighted item if remove it
29415 - Fixes SelectedItem with strings
29417 2005-03-01 Peter Bartok <pbartok@novell.com>
29420 - Fixed Visible property, now follows (once again) parent chain
29421 to return false if any control in the chain is visible=false
29422 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
29423 - Fixed several places where is_visible instead of Visible was used
29424 - Implemented FIXME related to focus selection when setting focused
29425 control to be invisible
29427 * XplatUIWin32.cs: Now using proper method to find out if window is
29428 visible. Thanks to Jordi for pointing it out
29430 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
29432 * ComboBox.cs: show/hide scrollbar instead of creating it
29434 2005-02-27 Jackson Harper <jackson@ximian.com>
29436 * CurrencyManager.cs: Add PositionChanged stuff.
29438 2005-02-27 Peter Bartok <pbartok@novell.com>
29440 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
29441 * XplatUIOSX.cs: Added GetMenuOrigin() stub
29442 * XplatUIWin32.cs: Implemented GetMenuOrigin()
29444 - Implemented GetMenuDC()
29445 - Implemented GetMenuOrigin()
29446 - Implemented ReleaseMenuDC()
29447 - Implemented generation of WM_NCPAINT message
29448 - Implemented generation and handling of WM_NCCALCSIZE message
29449 * Form.cs: Added debug helper message for Jordi's menu work
29451 - Modified ClientRect property; added setter, fixed getter to handle
29452 setting of ClientRect
29453 - Added MenuOrigin property
29455 2005-02-26 Peter Bartok <pbartok@novell.com>
29458 - Destroys the caret if a window that's being destroyed contains it
29459 - Ignores expose events coming from the X11 queue for windows that
29460 already are destroyed
29461 - Now uses the proper variable for handling DestroyNotify, before we
29462 marked the wrong window as destroyed
29463 - Improved/added some debug output
29465 2005-02-26 Peter Bartok <pbartok@novell.com>
29467 * X11Keyboard.cs: Fixes to work on 64bit systems
29469 2005-02-26 Peter Bartok <pbartok@novell.com>
29472 - Now calling OnHandleDestroyed from DestroyHandle()
29473 instead of Dispose()
29474 - Removed bogus call to controls.Remove() from DestroyHandle()
29476 2005-02-26 Peter Bartok <pbartok@novell.com>
29478 * Control.cs: Properly destroy child windows when our handle is
29481 2005-02-25 Peter Bartok <pbartok@novell.com>
29484 - Added 'DriverDebug' define to allow tracing XplatUI API calls
29485 - Alphabetized Static Methods and Subclasses
29488 - Added XException class to allow custom handling of X11 exceptions
29489 - Created custom X11 error handler, tied into XException class
29490 - Added support for MONO_XEXCEPTIONS env var to allow the user
29491 to either throw an exception on X errors or continue running
29492 after displaying the error
29493 - Added handling of DestroyNotify message
29494 - Added handler for CreateNotify message (still disabled)
29495 - Improved (tried to at least) Where method to provide file and lineno
29497 - Added XErrorHandler delegate
29498 - Added XRequest enumeration (to suppor translation of errors)
29500 2005-02-25 Jackson Harper <jackson@ximian.com>
29502 * PropertyManager.cs: Implement editing features
29503 * CurrencyManager.cs:
29504 * Binding.cs: First attempt at UpdateIsBinding
29505 * BindingManagerBase.cs: Call UpdateIsBinding before
29506 pushing/pulling data.
29508 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
29510 * MenuAPI.cs: Respect disabled items
29511 * ThemeWin32Classic.cs
29512 - Caches ImageAttributes creation for DrawImageDisabled
29513 - Fixes vertical menu line drawing
29514 - Draws disabled arrows in disable menu items
29516 2005-02-24 Peter Bartok <pbartok@novell.com>
29519 - Added UserData property to allow associating arbitrary objects
29521 - Fixed leak; now removing Hwnd references from static windows array
29523 - Fixed Graphics leak in PaintEventEnd
29524 - Removed usage of HandleData, switched over to Hwnd class
29525 * HandleData.cs: Removed, obsoleted by Hwnd.cs
29527 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29529 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
29530 * ScrollBar.cs: Fixes bug
29531 * TrackBar.cs: removes death code, clipping, mimize refreshes,
29532 keyboard navigation enhancements
29534 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
29536 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
29537 * GroupBox.cs: Add control styles
29538 * Label.cs: Add control styles
29539 * UpDownBase.cs: Add control styles
29540 * ListBox.cs: Add control styles
29541 * XplatUIWin32.cs: Fixes wrong parameter order
29544 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
29546 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
29548 2005-02-23 Jackson Harper <jackson@ximian.com>
29550 * PropertyManager.cs: Implement property binding. This doesn't
29551 seem to work yet though as (I think) there are some bugs in
29552 System.ComponentModel.PropertyDescriptor.
29553 * BindingContext.cs: Use new PropertyManager constructor.
29555 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
29557 * ProgressBar.cs: use clip region in ProgressBar
29558 * ThemeWin32Classic.cs: use clip region in ProgressBar
29560 2004-02-22 Jackson Harper <jackson@ximian.com>
29562 * BindingsCollection.cs: Remove some debug code.
29564 2005-02-22 Jackson Harper <jackson@ximian.com>
29566 * BindingContext.cs:
29567 * ControlBindingsCollection.cs:
29568 * CurrencyManager.cs:
29570 * BindingManagerBase.cs: Initial implementation
29571 * BindingsCollection.cs: Add an internal contains method that the
29572 BindingManagerBase uses to ensure bindings aren't added twice to
29574 * PropertyManager.cs: Stubbed out.
29576 * ContainerControl.cs: Hook up databinding
29578 2005-02-22 Geoff Norton <gnorton@customerdna.com>
29581 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
29582 Fixed Invalidate/Update chain.
29583 Fixed tons of other minor bugs (this is almost a complete rewrite).
29585 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
29587 * ComboBox.cs: do subcontrol creation when the control is created
29589 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29591 * Label.cs: fixes image drawing (image and imagelist)
29592 * ThemeWin32Classic.cs: cache brushes
29594 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29596 * Form.cs: Move menu drawing code to Theme class
29597 * ComboBox.cs: Move ComboBox drawing code to Theme class
29598 * MenuItem.cs: Move menu drawing code to Theme class
29599 * MenuAPI.cs: Move menu drawing code to Theme class
29600 * ThemeWin32Classic.cs: New methods
29601 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
29602 * ListBox.cs: Move Listbox drawing code to Theme class
29603 * Theme.cs: New methods
29605 2005-02-20 Peter Bartok <pbartok@novell.com>
29608 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
29609 only process mnemonics on those)
29610 - Fixed event sequence for key handling; first calling
29611 ProcessKeyEventArgs now
29613 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
29614 for processing non-character keys
29615 - Fixed WM_CHAR to generate proper event sequence before processing
29616 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
29619 2005-02-19 Peter Bartok <pbartok@novell.com>
29621 * UserControl.cs: Added TextChanged event; added attributes
29622 * SizeGrip.cs: Implemented resizing and optional display of grip
29623 * Form.cs: Fixed attribute
29624 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
29625 Changed meaning of ScrollWindow bool argument; instead of the
29626 clear attribute (which will be true usually anyway), it gives the
29627 option of moving child controls as well.
29629 - Changed to match new ScrollWindow argument
29630 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
29631 now handles the implicit parent window a WM puts around us
29632 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
29634 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
29635 * TreeView.cs: Adjusted to new ScrollWindow arguments
29637 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
29639 * Form.cs: Menu integration with non-client area
29640 * MenuItem.cs: Menu integration with non-client area
29641 * MenuAPI.cs: Menu integration with non-client area
29643 2005-02-18 Peter Bartok <pbartok@novell.com>
29645 * MethodInvoker.cs: Added
29646 * MdiLayout.cs: Added
29647 * SendKeys.cs: Started implementation
29648 * ErrorIconAlignment.cs: Added
29650 2005-02-18 Peter Bartok <pbartok@novell.com>
29652 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
29653 * Form.cs: Added handling for Menu-related Non-client messages
29655 2005-02-17 Peter Bartok <pbartok@novell.com>
29657 * UpDownBase.cs: Fixed typo, compilation errors
29658 * DomainUpDown.cs: Fixed attribute value
29660 2005-02-16 Miguel de Icaza <miguel@novell.com>
29662 * UpDownBase.cs: Attach entry events.
29664 Add ForeColor property, Focused, InterceptArrowKeys (interception
29665 does not work yet).
29667 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
29670 - Redraw non client are on Setmenu
29671 - Calc proper menu starting point
29673 2005-02-17 Peter Bartok <pbartok@novell.com>
29675 * Application.cs: Fixed message_filter check
29677 2005-02-17 Peter Bartok <pbartok@novell.com>
29679 * Application.cs: Now calls registered message filters
29680 * DockStyle.cs: Fixed attribute
29681 * Form.cs: Fixed attribute
29682 * Menu.cs: Fixed attribute
29683 * ToolTip.cs: Fixed attribute
29684 * TreeNode.cs: Added missing attributes and arranged in regions
29685 * PropertyGrid.cs: Fixed signatures
29686 * TreeNodeCollection.cs: Added attributes
29687 * Splitter.cs: Added missing attributes; arranged into regions
29688 * TabPage.cs: Added missing attributes; arranged into regions
29689 * TextBoxBase.cs: Added missing attributes
29690 * TextBox.cs: Added missing attributes
29691 * ArrangeDirection.cs: Added missing attributes
29692 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
29693 * ToolBarButton.cs: Fixed attributes
29694 * AnchorStyles.cs: Fixed attribute
29695 * TrackBar.cs: Fixed attributes
29696 * TabControl.cs: Added missing attributes and arranged into regions
29697 * ToolBar.cs: Fixed attribute
29698 * StatusBar.cs: Fixed signature, organized into regions and added
29700 * StatusBarPanel.cs: Fixed attributes
29701 * ContentsResizedEventArgs.cs: Implemented
29702 * ContentsResizedEventHandler.cs: Implemented
29703 * DateBoldEventArgs.cs: Implemented
29704 * DateBoldEventHandler.cs: Implemented
29705 * UpDownEventArgs.cs: Implemented
29706 * UpDownEventHandler.cs: Implemented
29708 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
29710 * Form.cs: first Menu NC refactoring
29711 * MenuAPI.cs: first Menu NC refactoring
29713 2005-02-16 Peter Bartok <pbartok@novell.com>
29715 * ImeMode.cs: Added missing attributes
29716 * Menu.cs: Fixed attribute
29717 * GroupBox.cs: Fixed attribute
29718 * Label.cs: Fixed attribute
29719 * ColorDialog.cs (RunDialog): Removed TODO attribute
29720 * ComboBox.cs: Fixed attributes
29721 * ListControl.cs: Added missing attributes
29722 * PropertyGrid.cs: Fixed attributes
29723 * Control.cs: Fixed attributes
29724 * ListViewItem.cs: Added TypeConverter attribute
29725 * NotifyIcon.cs: Fixed attributes
29726 * ListView.cs: Fixed attributes
29727 * ButtonBase.cs: Fixed attribute
29728 * ImageList.cs: Added missing attributes
29729 * ContainerControl.cs: Fixed signature
29730 * CheckedListBox.cs: Fixed attribute; added missing attributes
29731 * Panel.cs: Fixed attributes
29732 * PropertyTabChangedEventArgs.cs: Added missing attribute
29733 * PropertyValueChangedEventArgs.cs: Added missing attribute
29734 * Binding.cs: Fixed attribute
29735 * ListViewItemConverter: Implemented ListViewSubItemConverter class
29736 * ListBox.cs: Fixed attribute; added missing attributes;
29737 * ScrollableControl.cs: Added missing attributes
29738 * PictureBox.cs: Added missing attributes; implemented missing property
29739 * DateTimePicker.cs: Added missing attributes
29740 * Theme.cs (ToolWindowCaptionHeight): Fixed type
29741 * MonthCalendar.cs: Fixed attributes
29742 * StatusBarPanel.cs: Added missing attributes
29743 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
29745 2005-02-16 Peter Bartok <pbartok@novell.com>
29747 * TextBoxBase.cs: The previous method to enforce height yet remember
29748 the requested high was less than ideal, this is an attempt to do
29750 * Control.cs: Added comment about possible problem
29751 * Copyright: Updated format
29752 * GridItemType.cs: Fixed swapped values
29754 2005-02-15 Jackson Harper <jackson@ximian.com>
29756 * BaseCollection.cs: Use property so we never access an
29757 uninitialized list. Also initialize the list in the property.
29759 2005-02-15 Peter Bartok <pbartok@novell.com>
29761 * GroupBox.cs (ProcessMnemonic): Implemented
29762 * Label.cs (ProcessMnemonic): Implemented
29763 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
29766 2005-02-15 Peter Bartok <pbartok@novell.com>
29768 * RadioButton.cs (ProcessMnemonic): Implemented
29769 * CheckBox.cs (ProcessMnemonic): Implemented
29771 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
29773 - Added internal method to allow calling ProcessMnemonic from other
29775 * ContainerControl.cs:
29776 - Started support for handling validation chain handling
29777 - Implemented ProcessMnemonic support
29778 - Added Select() call to Active, to make sure the active control
29780 * Form.cs: Setting toplevel flag for Forms (this was lost in the
29781 FormParent rewrite)
29782 * ThemeWin32Classic.cs:
29783 - DrawCheckBox(): Fixed stringformat to show hotkeys
29784 - DrawRadioButton(): Fixed stringformat to show hotkeys
29785 * CommonDialog.cs: Removed WndProc override, not needed
29787 2005-02-14 Peter Bartok <pbartok@novell.com>
29789 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
29790 missed those in the rewrite
29792 2005-02-14 Miguel de Icaza <miguel@novell.com>
29794 * NumericUpDown.cs (Increment, ToString): Add.
29795 (DecimalPlaces): implement.
29799 * UpDownBase.cs: Add the designer attributes.
29801 2005-02-13 Peter Bartok <pbartok@novell.com>
29803 * Panel.cs: Removed border_style, now in Control
29804 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
29805 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
29807 2005-02-13 Peter Bartok <pbartok@novell.com>
29809 * MouseButtons.cs: Added missing attributes
29810 * XplatUIStructs.cs: Added enumeration for title styles
29811 * LeftRightAlignment.cs: Added missing attributes
29812 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
29813 it compatible with Graphics.FromHwnd()
29814 * SelectedGridItemChangedEventArgs.cs: Fixed property type
29815 * Keys.cs: Added missing attributes
29816 * SelectionRange.cs: Added missing attributes
29817 * SelectionRangeConverter.cs: Added
29819 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
29820 ReleaseMenuDC methods
29821 - Renamed ReleaseWindow to UngrabWindow
29822 - Added proper startup notice to allow version identification
29824 - Added missing attributes
29825 - Removed FormParent concept
29826 * Label.cs: Removed border_style field, now in Control
29827 * RadioButton.cs: Now properly selects RadioButton when focus is
29829 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
29831 - Added missing attributes
29832 - Added borderstyle handling
29833 - Removed FormParent concept support
29834 - Fixed calls to XplatUI to match changed APIs
29835 - Fixed bug that would case us to use disposed Graphics objects
29836 - Removed unneeded internal methods
29837 - PerformLayout(): Fixed to handle DockStyle.Fill properly
29838 - SelectNextControl(): Fixed to properly check common parents
29839 * TextBoxBase.cs: Removed border_style field (now in Control)
29841 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
29842 fixed calculations for form size
29843 - Added support for localized strings and icons
29844 - Improved form size calculations, added border
29845 * ListView.cs: Removed border_style field (now in Control)
29846 * X11Structs.cs: Moved several structs from X11 driver here
29847 * X11Keyboard.cs: Changed debug message
29848 * Application.cs: Removed FormParent concept support
29850 - Resetting end_modal flag
29851 - Removed FormParent concept support
29852 * NativeWindow.cs: Removed FormParent concept support
29853 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
29854 Client area and Non-Client whole window to allow support for WM_NC
29856 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
29857 prevent using it until it supports Hwnd as per Geoff Norton's request
29858 * ToolBar.cs: Fixed drawing, was not doing proper drawing
29859 * PictureBox.cs: Removed border_style field, now in Control
29860 * XplatUIWin32.cs: Added new driver methods
29862 2005-02-12 Peter Bartok <pbartok@novell.com>
29864 * OpacityConverter.cs: Implemented
29865 * Hwnd.cs: Internal class to support drivers that need to emulate
29866 client area/non-client area window behaviour
29868 2005-02-11 Peter Bartok <pbartok@novell.com>
29870 * KeysConverter.cs: Implemented
29872 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
29874 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29875 * LinkLabel: Added missing attributes
29876 * MainMenu.cs: fixes ToString
29877 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29878 * ListBox.cs: fixes event position
29879 * TrackBar.cs: adds missing attributes and events
29881 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
29883 * MenuItem.cs: Use SystemInformation and bug fixes
29884 * MenuAPI.cs: Use SystemInformation and bug fixes
29886 2005-02-09 Jackson Harper <jackson@ximian.com>
29888 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29889 their keystate otherwise things like VK_MENU get stuck "on".
29891 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
29893 * ListBox.cs: Fixes AddRange bug
29895 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
29898 - Add missing attributes
29899 - Add missing method
29901 * CheckedListBox.cs: Added missing attributes
29902 - Add missing attributes
29903 - Remove extra method
29905 * ComboBox.cs: Added missing attributes
29906 * VScrollBar.cs: Added missing attributes
29907 * ScrollBar.cs: Added missing attributes
29908 * ListBox.cs: Fixes signature, add missing consts
29909 * LinkArea.cs: Added missing attributes
29912 2005-02-08 Peter Bartok <pbartok@novell.com>
29914 * Menu.cs: Added missing attributes
29915 * MainMenu.cs: Added missing attributes
29916 * GroupBox.cs: Added missing attributes
29917 * Label.cs: Added missing attributes
29918 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29920 - Added Instance and Options properties
29921 - Added missing attributes
29922 * Cursor.cs: Made Serializable
29923 * NotifyIcon: Added missing attributes
29924 * MenuItem.cs: Added missing attributes
29925 * TextBoxBase.cs: Implemented AppendText() and Select() methods
29926 * Panel.cs: Added Missing attributes
29927 * MonthCalendar.cs: Fixed CreateParams
29929 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29933 - Fixes issues with links
29934 - Adds the class attributes
29936 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29939 - Fixes button when no items available in dropdown
29940 - Fixes repainting problems
29941 - Adds the class attributes
29943 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29945 * XplatUIOSX.cs: Detect the menu bar and title bar height from
29946 the current theme. Cache these on startup.
29948 2005-02-07 Jackson Harper <jackson@ximian.com>
29950 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29951 the scrollbar buttons when they are depressed.
29953 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29955 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29956 Get the display size from the main displayid. We currently dont
29957 support multiple display configurations.
29959 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29961 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29963 2005-02-07 Miguel de Icaza <miguel@novell.com>
29965 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29967 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
29969 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29971 2005-02-04 Jackson Harper <jackson@ximian.com>
29973 * ThemeWin32Classic.cs: Respect the clipping rect when
29974 drawing. Only fill the intersection of clips and rects so there
29975 isn't a lot of large fills.
29976 * ScrollBar.cs: Pass the correct clipping rect to the theme
29977 engine. Remove some debug code.
29979 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
29981 * DateTimePicker.cs:
29982 - Fixed crash on DateTime.Parse, use Constructor instead
29984 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29988 - Owner draw support (MeasureItem and DrawItem)
29990 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29993 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29994 - Fixes MenuItems.Add range
29996 - MergeMenu and Clone and CloneMenu functions
29998 2005-02-03 Jackson Harper <jackson@ximian.com>
30000 * ScrollBar.cs: Make abstract
30001 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30004 2005-02-03 Jackson Harper <jackson@ximian.com>
30006 * ScrollBar.cs: First part of my scrollbar fixups. This removes
30007 all the unneeded refreshes and uses invalidates with properly
30010 2005-02-03 Peter Bartok <pbartok@novell.com>
30012 * ComponentModel.cs: Added
30013 * IDataGridEditingService.cs: Added
30014 * Timer.cs: Added missing attributes
30015 * ToolTip.cs: Added missing attributes
30017 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
30019 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30021 2005-02-03 Peter Bartok <pbartok@novell.com>
30023 * ListBox.cs: Added missing attributes
30025 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
30028 - Fixes font height after font change
30029 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30031 2005-02-02 Peter Bartok <pbartok@novell.com>
30033 * HandleData.cs: Introduced static methods to allow class
30034 to be more self-contained and track it's own HandleData objects
30035 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
30036 HandleData to use new static methods
30038 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
30041 - Fixes default size and PreferredHeight
30043 - ObjectCollection.Insert implementation
30049 - ObjectCollection.Insert implementation
30050 - No selection after clean
30053 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
30055 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
30057 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
30060 - Caches ItemHeight calculation for OwnerDrawVariable
30061 - Handles dropdown properly
30062 - Fixes several minor bugs
30064 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
30067 - Fixes 71946 and 71950
30068 - Fixes changing Multicolumn on the fly
30069 - Fixes keyboard navigation on Multicolumn listboxes
30071 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30073 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
30074 crash reporter log.
30076 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30078 * XplatUIOSX.cs: Allow applications to actually exit.
30080 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30082 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
30083 their parent at creation time rather than lazily later. Fixes a major
30084 regression we were experiencing.
30086 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
30088 * ThemeWin32Classic.cs: more date time picker painting fixes
30089 * DateTimePicker.cs: more monthcalendar drop down fixes
30090 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
30092 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
30095 - When moving the thumb going outside the control should stop the moving
30096 - Adds the firing of missing events
30097 - Fixes no button show if Size is not specified
30098 - End / Home keys for keyboard navigation
30100 2005-01-30 Peter Bartok <pbartok@novell.com>
30102 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
30103 sanity check to prevent theoretical loop
30104 * XplatUIWin32.cs (SetVisible): Removed debug output
30105 * XplatUIX11.cs (SystrayChange): Added sanity check
30106 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
30107 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
30108 behaviour, valid until the X11 client window rewrite is done
30109 * TextBox.cs (ctor): Setting proper default foreground and background
30112 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
30114 * Theme: Added DrawDateTimePicker to interface
30115 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
30116 * DateTimePicker.cs: Created (still needs keys and painting code)
30117 * DateTimePickerFormat.cs: added
30118 * MonthCalendar.cs: fixed CreateParams for popup window mode
30120 2005-01-29 Peter Bartok <pbartok@novell.com>
30122 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
30123 this should also the calculations for ligher/darker
30124 * Theme.cs: Fixed defaults for ScrollBar widths/heights
30126 2005-01-29 Peter Bartok <pbartok@novell.com>
30128 * ArrangeDirection.cs: Added
30129 * ArrangeStartingPositon.cs: Added
30130 * SystemInformation.cs: Implemented
30131 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30132 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
30133 used by SystemInformation class
30134 * X11Strucs.cs: Added XSizeHints structure
30136 - Fixed CreateParams to make sure the menu window is always visible
30137 - TrackPopupMenu: Added check to make sure we don't draw the
30140 2005-01-29 Peter Bartok <pbartok@novell.com>
30142 * HandleData.cs: Added method for altering invalid area
30143 * TextBoxBase.cs: Implemented TextLength
30145 2005-01-28 Peter Bartok <pbartok@novell.com>
30147 * XplatUIX11.cs: Improvement over last patch, not sending
30148 the WM_PAINT directly anymore, instead we scroll any pending
30149 exposed areas and let the system pick out the WM_PAINT later
30151 2005-01-28 Peter Bartok <pbartok@novell.com>
30153 * SWF.csproj: Deleted, no longer used. Instead,
30154 Managed.Windows.Forms/SWF.csproj should be used
30155 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
30156 directly, to avoid a potential race condition with the next
30159 2005-01-28 Peter Bartok <pbartok@novell.com>
30161 * XplatUI.cs: Made class internal
30163 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
30165 * CheckedListBox.cs:
30168 - Missing methods and events
30170 2005-01-27 Peter Bartok <pbartok@novell.com>
30172 * Application.cs (Run): Don't use form if we don't have one
30174 2005-01-27 Peter Bartok <pbartok@novell.com>
30176 * TextBoxBase.cs (get_Lines): Fixed index off by one error
30178 2005-01-27 Peter Bartok <pbartok@novell.com>
30180 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
30181 * GridItem.cs: Added; Patch by Jonathan S. Chambers
30182 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
30183 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
30184 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
30185 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
30186 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30187 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30188 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30189 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30190 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30191 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30193 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
30196 - Draw focus on Simple Combobox
30197 - Fixes drawing issues
30200 2005-01-27 Peter Bartok <pbartok@novell.com>
30203 - Place window in default location, instead of hardcoded 0/0
30204 - Send initial LocationChanged event
30206 - UpdateBounds after creation to find out where the WM placed us
30207 - Make sure that if the ParentForm changes location the Form
30209 * XplatUIX11.cs: XGetGeometry will not return the coords relative
30210 to the root, but to whatever the WM placed around us.
30211 Translate to root coordinates before returning toplevel
30213 * XplatUIWin32.cs: Removed debug output
30214 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
30215 flag to GetWindowPos, to allow translation of coordinates on X11
30217 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
30219 * ListBox.cs: connect LostFocus Event
30221 2005-01-27 Peter Bartok <pbartok@novell.com>
30223 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30224 XplatUIX11.cs: Extended the Systray API
30225 * Form.cs: Removed debug output
30226 * Application.cs: Fixed focus assignment, always need to call
30227 XplatUI.Activate() since Form.Activate() has rules that may
30229 * NotifyIcon.cs: Should be complete now
30230 * ToolTip.cs: Worked around possible timer bug
30232 2005-01-27 Jackson Harper <jackson@ximian.com>
30235 - Only invalidate the effected tabs when the
30236 selected index changes. This reduces drawing and gets rid of some
30238 - Only refresh if the tabs need to be shifted, otherwise only
30239 invalidate the slider button.
30240 - On windows the tabs are not filled to right if the slider is
30243 2005-01-27 Jackson Harper <jackson@ximian.com>
30245 * TabControl.cs: Only refresh on mouseup if we are showing the
30246 slider. Also only invalidate the button whose state has changed.
30248 2005-01-26 Peter Bartok <pbartok@novell.com>
30250 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
30251 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
30252 and SystrayRemove() methods
30253 * XplatUIOSX.cs: Stubbed Systray methods
30255 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
30257 - Fixed broken XChangeProperty calls (marshalling messed up things)
30258 * X11Structs.cs: Added enums and structs required for Size hinting
30259 * NotifyIcon.cs: Added & implemented
30261 2005-01-26 Jackson Harper <jackson@ximian.com>
30263 * TabControl.cs: Space vertically layed out tabs properly.
30265 2005-01-26 Peter Bartok <pbartok@novell.com>
30267 * Form.cs (CreateClientParams): Always set the location to 0,0
30268 since we're a child window.
30270 * Control.cs (SetVisibleCore): Always explicitly setting the location
30271 of a toplevel window, apparently X11 doesn't like to move windows
30272 while they're not mapped.
30274 2005-01-26 Jackson Harper <jackson@ximian.com>
30276 * TabControl.cs: Implement FillToRight size mode with vertically
30279 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
30281 * ControlPaint.cs, ThemeWin32Classic.cs
30282 - Fixes DrawFocusRectangle
30284 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
30287 - MenuBar tracking only starts when item is first clicked
30288 - Fixes menu hidding for multiple subitems
30289 - Unselect item in MenuBar when item Executed
30292 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
30295 - IsInputKey for ListBox
30298 - Shift and Control item selection
30299 - Implement SelectionMode.MultiExtended
30300 - Fixes RightToLeft
30302 - IsInputKey implemented
30303 - Do not generate OnTextChangedEdit on internal txt changes
30305 2005-01-23 Peter Bartok <pbartok@novell.com>
30307 * AccessibleObject.cs: Partially implemented Select()
30308 * MonthCalendar.cs: Added missing attributes and events
30309 * Form.cs: Fixed CreateParams behaviour, now controls derived from
30310 form can properly override CreateParams.
30311 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30312 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
30313 Control performs Invalidate & Update
30314 * NativeWindow (CreateHandle): Added special handling for Form
30315 and Form.FormParent classes to allow overriding of From.CreateParams
30317 - ControlNativeWindow: Renamed 'control' variable to more intuitive
30319 - ControlNativeWindow: Added Owner property
30320 - Removed usage of Refresh() on property changes, changed into
30321 Invalidate(), we need to wait until the queue is processed for
30322 updates, direct calls might cause problems if not all vars for
30323 Paint are initialized
30324 - Added call to UpdateStyles() when creating the window, to set any
30325 styles that CreateWindow might have ignored.
30326 - Added support for Form CreateParent overrides to UpdateStyles()
30327 * MessageBox.cs: Removed no longer needed FormParent override stuff,
30328 CreateParams are now properly overridable
30329 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
30330 CreateParams are now properly overridable
30332 2005-01-23 Miguel de Icaza <miguel@ximian.com>
30334 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
30337 Capture LostFocus and OnTextBoxChanged. The later introduces a
30338 recursive invocation that I have not figured out yet.
30340 Reset the timer when not using (it was accumulating).
30343 (OnTextBoxChanged): Set UserEdit to true here to track whether the
30344 user has made changes that require validation.
30346 Reset changing to avoid loops.
30348 2005-01-22 Miguel de Icaza <miguel@ximian.com>
30350 * NumericUpDown.cs: Display value at startup.
30352 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
30355 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
30356 filled in. Added some basic parsing of text.
30358 Still missing the OnXXX method overrides, and figuring out the
30359 events that must be emitted.
30361 * UpDownBase.cs: Handle UserEdit on the Text property.
30363 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
30366 - Fixes IntegralHeight
30369 2005-01-21 Jackson Harper <jackson@ximian.com>
30371 * TabControl.cs: Set the SelectedIndex property when SelectedTab
30372 is set so that the page visibility is updated and the tabs are
30375 2005-01-21 Jackson Harper <jackson@ximian.com>
30377 * TabControl.cs: Use cliping rectangle for blitting. Give the
30378 theme the clipping rect so we can do clipping while
30379 drawing. Remove some debug code.
30381 2005-01-21 Jackson Harper <jackson@ximian.com>
30383 * TabPage.cs: Add a new method so tab pages can force the tab
30384 control to recalculate the tab page sizes.
30385 * TabControl.cs: UpdateOwner needs to make the tab control recalc
30388 2005-01-20 Jackson Harper <jackson@ximian.com>
30390 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
30392 2005-01-20 Jackson Harper <jackson@ximian.com>
30394 * TreeView.cs: Set the bounds for nodes properly. They were
30395 getting screwed up when checkboxes were not enabled, but images
30398 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
30401 - Owner draw support
30404 2005-01-20 Jackson Harper <jackson@ximian.com>
30406 * XplatUIStructs.cs: More misc keys
30407 * X11Keyboard.cs: Ignore some control keys.
30409 2005-01-20 Jackson Harper <jackson@ximian.com>
30411 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
30412 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
30414 2005-01-19 Peter Bartok <pbartok@novell.com>
30416 * Control.cs: Un-selecting the control when it is loosing focus
30418 2005-01-19 Jackson Harper <jackson@ximian.com>
30420 * TreeView.cs: Hook up to the text controls leave event so we can
30421 end editing when the users clicks outside the text box.
30423 2005-01-19 Jackson Harper <jackson@ximian.com>
30425 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
30426 get set in the conversion array.
30428 2005-01-19 Peter Bartok <pbartok@novell.com>
30430 * Application.cs (ModalRun): Added a call to CreateControl to ensure
30431 focus is properly set
30433 - Added missing attributes
30434 - removed styles, those are already set in the base class
30436 - Added missing attributes
30437 - Added clip window styles
30438 * CheckBox.cs: Added missing attributes
30440 - FormParentWindow.CreateParams: Added required clip styles
30441 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
30442 also filters modifier keys
30444 - Added assignment of Accept and Cancel button to enable Enter
30445 and Esc keys in MessageBox dialogs
30446 - FormParentWindow.CreateParams: Added required clip styles
30447 * RadioButton.cs: Added missing attributes
30448 * TextControl.cs: No longer draws selection if control does not
30451 - Now draws simple rectangle around test area to make it obvious
30452 there's a control. This is a hack until we properly support borders
30453 - A few simple fixes to support selections better, now erases selected
30454 text when typing, and resets selection when using movement keys
30456 2005-01-19 Miguel de Icaza <miguel@ximian.com>
30458 * UpDownBase.cs: Added some new properties.
30460 * DomainUpDown.cs: Implement a lot to get my test working.
30462 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30464 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
30466 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30468 * OSXStructs (WindowAttributes): Fixed csc complaints
30470 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30473 OSXStructs.cs: Initial refactor to move enums and consts into
30474 OSXStructs and use them in the driver for greater readability.
30476 2005-01-19 Geoff Norton <gnorton@customerdna.com>
30478 * XplatUIOSX.cs: Initial support for Standard Cursors.
30479 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
30481 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
30483 * ComboBox.cs: ability to change style when the ctrl is already
30484 created, missing methods and events, bug fixes, signature fixes
30486 2005-01-19 Peter Bartok <pbartok@novell.com>
30488 * Cursors.cs (ctor): Added ctor to fix signature
30490 2005-01-18 Peter Bartok <pbartok@novell.com>
30492 * Button.cs: Implemented DoubleClick event
30494 - Fixed keyboard handling to behave like MS, where the press of
30495 Spacebar is equivalent to a mousedown, and the key release is
30496 equivalent to mouseup. Now a spacebar push will give the same
30497 visual feedback like a mouse click.
30498 - Added missing attributes
30499 - Added ImeModeChanged event
30500 - Added support for generating DoubleClick event for derived classes
30502 - Implemented DoubleClick event
30503 - Added missing attributes
30504 * CommonDialog.cs: Added missing attribute
30505 * ContextMenu.cs: Added missing attributes
30507 - AutoChecked buttons do not allow to be unselected when clicked
30508 (otherwise we might end up with no selected buttons in a group)
30509 - Added missing attributes
30510 - Implemented DoubleClickEvent
30511 * ThreadExceptionDialog.cs: Enabled TextBox code
30513 2005-01-18 Peter Bartok <pbartok@novell.com>
30515 * Form.cs: Removed debug output
30516 * Button.cs: Added support for DoubleClick method
30518 2005-01-18 Peter Bartok <pbartok@novell.com>
30521 - Added method to parent window that allows triggering size
30522 calculations when a menu is added/removed
30523 - set_Menu: Cleaned up mess from early days of Form and Control,
30524 now properly triggers a recalc when a menu is added/removed
30525 - Added case to select form itself as focused form if no child
30527 - Added PerformLayout call when showing dialog, to ensure properly
30530 - Select(): Made internal so Form can access it
30531 - Focus(): Only call Xplat layer if required (avoids loop), and sets
30533 * Application.cs (Run): Removed hack and calls PerformLayout instead
30534 to trigger calculation when Form becomes visible
30536 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
30538 * ComboBox.cs: fixes for ownerdraw
30540 2005-01-18 Peter Bartok <pbartok@novell.com>
30543 - Sentinel is no longer static, each Document gets it's own, this
30544 avoids locking or alternatively overwrite problems when more
30545 than one text control is used simultaneously.
30546 - Switched to use Hilight and HilightText brushes for text selection
30548 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
30550 2005-01-18 Peter Bartok <pbartok@novell.com>
30553 - Hooked up the following events:
30561 o SystemColorsChanged
30562 o ParentFontChanged
30564 - Removed debug output
30565 - Added a call to the current theme's ResetDefaults when a color change
30567 * Form.cs: Now setting the proper ImeMode
30568 * Theme.cs: Defined a method to force recreation of cached resources
30569 and rereading of system defaults (ResetDefaults())
30570 * ThemeWin32Classic.cs: Added ResetDefaults() stub
30572 2005-01-17 Peter Bartok <pbartok@novell.com>
30574 * Control.cs: Added missing attributes
30576 2005-01-17 Jackson Harper <jackson@ximian.com>
30578 * TreeNode.cs: Implement editing. Add missing properties selected
30580 * TreeView.cs: Implement node editing. Also some fixes to use
30581 Invalidate (invalid area) instead of Refresh when selecting.
30583 2005-01-17 Peter Bartok <pbartok@novell.com>
30586 - Implemented InvokeGotFocus() method
30587 - Implemented InvokeLostFocus() method
30588 - Implemented InvokePaint() method
30589 - Implemented InvokePaintBackground() method
30590 - Implemented InvokeClick() method
30591 - Implemented FindForm() method
30592 - Implemented RectangleToClient() method
30593 - Implemented ClientToRectangle() method
30594 - Implemented ResetBackColor() method
30595 - Implemented ResetCursor() method
30596 - Implemented ResetFont() method
30597 - Implemented ResteForeColor() method
30598 - Implemented ResetImeMode() method
30599 - Implemented ResetLeftToRight() method
30600 - Implemented ResetText() method
30601 - Implemented Scale() methods
30602 - Implemented ScaleCore() method
30603 - Implemented Update() method
30604 - Removed unused variables
30605 - Stubbed AccessibilityNotifyClients and
30606 ControlAccessibleObject.NotifyClients() methods (dunno what to do
30608 - Now setting proper default for RightToLeft property
30609 - Fixed bug in SetClientSizeCore that would cause windows to get
30611 - Now sending Click/DoubleClick events
30612 - Now selecting controls when left mouse button is clicked on
30614 * AccessibleEvents.cs: Added
30615 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
30616 * XplatUIOSX.cs: Stubbed UpdateWindow() method
30617 * XplatUIWin32.cs: Implemented UpdateWindow() method
30618 * XplatUIX11.cs: Implemented UpdateWindow() method
30619 * Form.cs: Removed stray semicolon causing CS0162 warning
30620 * ThemeWin32Classic.cs: Fixed unused variable warnings
30621 * ScrollableControl.cs: Now calls base method for ScaleCore
30622 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
30623 style to avoid interference with internal click handler (which is
30624 different than standard Control click handling)
30626 - Now unchecks all sibling radio buttons when control is
30627 selected (Fixes #68756)
30628 - Removed internal tabstop variable, using the one inherited from
30631 2005-01-17 Jackson Harper <jackson@ximian.com>
30633 * NavigateEventArgs.cs: Fix base type.
30634 * LinkLabel.cs: Sig fix
30636 2005-01-17 Jackson Harper <jackson@ximian.com>
30638 * TreeView.cs: Only invalidate the effected nodes bounds when
30641 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30643 * XplatUIWin32.cs: fixes Win32 marshaling
30644 * XplatUIX11.cs: fixes method signature
30646 2005-01-17 Peter Bartok <pbartok@novell.com>
30648 * XplatUIX11.cs: Clean up resources when we no longer need them
30650 2005-01-17 Peter Bartok <pbartok@novell.com>
30652 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
30653 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
30654 and DestroyCursor() methods.
30655 * Cursor.cs: Partially implemented, now supports standard cursors;
30656 still contains some debug code
30657 * Cursors.cs: Implemented class
30659 - WndProc(): Added handling of WM_SETCURSOR message, setting the
30661 - Implemented Cursor property
30662 - Replaced break; with return; more straightforwar and possibly
30664 - Now properly setting the result for WM_HELP
30665 * X11Structs.cs: Added CursorFontShape enum
30666 * XplatUIStructs.cs:
30667 - Added StdCursor enum (to support DefineStdCursor() method)
30668 - Added HitTest enum (to support sending WM_SETCURSOR message)
30670 - Now sends the WM_SETCURSOR message
30671 - Implemented new cursor methods
30672 * XplatUIOSX.cs: Stubbed new cursor methods
30674 - Implemented new cursor methods
30675 - Added GetSystemMetrics function and associated enumeration
30677 2005-01-15 Peter Bartok <pbartok@novell.com>
30680 - WndProc(): Now handles EnableNotifyMessage
30681 - SelectNextControl(): Fixed bug where if no child or sibling
30682 controls exist we looped endlessly
30684 2005-01-14 Jackson Harper <jackson@ximian.com>
30686 * TreeView.cs: Recalculate the tab pages when a new one is added
30687 so that the proper bounding rects are created.
30689 2005-01-14 Jackson Harper <jackson@ximian.com>
30691 * TreeView.cs: Draw a gray box instead of a grip in the lower
30692 right hand corner when there are both horizontal and vertical
30695 2005-01-14 Jackson Harper <jackson@ximian.com>
30697 * Control.cs: When erasing backgrounds use FromHwnd instead of
30698 FromHdc when there is a NULL wparam. This occurs on the X driver.
30699 * XplatUIX11.cs: Set the wparam to NULL.
30701 2005-01-13 Jackson Harper <jackson@ximian.com>
30703 * PictureBox.cs: Implement missing methods (except ToString, need
30704 to test that on windows) and events. When visibility is changed we
30705 need to redraw the image because the buffers are killed. When size
30706 is changed refresh if the sizemode needs it.
30708 2005-01-13 Peter Bartok <pbartok@novell.com>
30710 * Control.cs (SelectNextControl): Was using wrong method to select
30713 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30715 * ComboBox.cs: fixes dropstyle
30717 2005-01-13 Peter Bartok <pbartok@novell.com>
30720 - Implemented Select() override
30721 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
30722 - Now sets keyboard focus on startup
30723 * Control.cs (SelectNextControl): Now properly handles directed=true
30725 - WndProc: Now passes tab key on to base if AcceptTabChar=false
30726 - Added (really bad) focus rectangle (mostly for testing)
30727 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
30728 to enforce redraw on focus changes
30729 * ContainerControl.cs:
30730 - Fixed detection of Shift-Tab key presses
30731 - Fixed traversal with arrow keys
30732 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
30733 gonna keep this or if it's complete yet
30735 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
30737 * ComboBox.cs: missing properties, fixes
30739 2005-01-13 Peter Bartok <pbartok@novell.com>
30741 * Panel.cs (ctor): Setting Selectable window style to off
30742 * Splitter.cs (ctor): Setting Selectable window style to off
30743 * GroupBox.cs (ctor): Setting Selectable window style to off
30744 * Label.cs (ctor): Setting Selectable window style to off
30746 2005-01-12 Miguel de Icaza <miguel@ximian.com>
30748 * UpDownBase.cs (InitTimer): If the timer has been already
30749 created, enable it.
30751 Use a TextBox instead of a Label.
30753 2005-01-12 Jackson Harper <jackson@ximian.com>
30755 * TreeView.cs: Refresh the tree after sorting the nodes. Always
30756 draw the connecting node lines (when ShowLines is true).
30757 * TreeNode.cs: The nodes index can now be updated. This is used
30758 when a node collection is sorted.
30759 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
30760 insert or an existing unsorted node collection can be sorted.
30762 2005-01-12 Peter Bartok <pbartok@novell.com>
30764 * ContainerControl.cs: Implemented ProcessDialogKeys()
30766 2005-01-12 Peter Bartok <pbartok@novell.com>
30769 - Implemented SelectNextControl() method
30770 - Several focus related bug fixes
30771 - Fixed Docking calculations to match MS documentation and
30774 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
30776 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
30779 2005-01-12 Peter Bartok <pbartok@novell.com>
30782 - Fixed broken Contains() method
30783 - Implemented GetNextControl() method. Finally. This is the pre-
30784 requisite for focus handling.
30786 2005-01-12 Peter Bartok <pbartok@novell.com>
30788 * OSXStrucs.cs: Added
30790 2005-01-12 Peter Bartok <pbartok@novell.com>
30793 - Removed PeekMessageFlags
30794 - Implemented SetWindowStyle() method
30795 * XplatUIStructs.cs: Added PeekMessageFlags
30796 * X11Structs: Added missing border_width field to XWindowChanges struct
30798 - PeekMessage: Now throws exception if flags which are not yet
30799 supported are passed
30800 - Implemented SetWindowStyle() method
30801 - Fixed SetZOrder to handle AfterHwnd properly
30802 * XplatUI.cs: Added SetWindowStyle() method
30803 * XplatUIDriver.cs: Added SetWindowStyle() abstract
30805 - Implemented UpdateStyles() method
30806 - Implemented UpdateZOrder() method
30807 * XplatUIOSX.cs: Added SetWindowStyle() stub
30809 2005-01-12 Geoff Norton <gnorton@customerdna.com>
30811 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
30815 2005-01-11 Jackson Harper <jackson@ximian.com>
30817 * TreeView.cs: Still need to draw lines to siblings even if out of
30818 the current node is out of the clip.
30820 2005-01-11 Jackson Harper <jackson@ximian.com>
30822 * TreeView.cs: When setting the hbar/vbar/grip position use
30823 SetBounds so that perform layout is only called once. Also suspend
30824 and resume layout so layout is only done once for all controls.
30825 - Removed some debug fluff
30826 * SizeGrip.cs: Call base implmentation in overriding methods.
30827 - When visibility is changed the drawing buffers are killed so we
30830 2005-01-11 Jackson Harper <jackson@ximian.com>
30832 * TreeView.cs: Calculate the open node count while drawing. This
30833 saves us an entire tree traversal for every paint operation. Use
30834 a member var for the open node count so less vars are passed around.
30836 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
30838 * MonthCalendar.cs:
30839 - fixed selection to use mousemove, not mouse polling on timer
30840 * ThemeWin32Classic.cs
30841 - removed redundant unused variable "no_more_content"
30843 2005-01-11 Peter Bartok <pbartok@novell.com>
30845 * XplatUIX11.cs (DoEvents): Needs to return when no more events
30846 are pending, so it now calls PeekMessage instead of GetMessage;
30847 implemented a incomplete version of PeekMessage
30849 2005-01-11 Peter Bartok <pbartok@novell.com>
30851 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
30853 * TextBoxBase.cs: Added sending of TextChanged event
30855 2005-01-10 Jackson Harper <jackson@ximian.com>
30857 * TreeView.cs: Try not to draw outside the clipping rectangle on
30860 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
30862 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
30864 2005-01-10 Jackson Harper <jackson@ximian.com>
30867 - Implement fast scrolling. Now only the newly
30868 exposed nodes are drawn and the old image is moved using the
30869 XplatUI::ScrollWindow method.
30870 - Factor in height of nodes when calculating whether or not the
30871 node is in the clipping rect.
30873 2005-01-10 Jackson Harper <jackson@ximian.com>
30875 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30877 2005-01-10 Peter Bartok <pbartok@novell.com>
30879 * Application.cs: Added temporary hack to resolve all our resize
30880 required issues on startup. This will get fixed properly at
30881 some point in the future
30883 2005-01-10 Jackson Harper <jackson@ximian.com>
30885 * SizeGrip.cs: New internal class that is used as a sizing
30886 grip control...hence the name.
30888 2005-01-10 Peter Bartok <pbartok@novell.com>
30890 * Control.cs: Implemented proper TabIndex handling, now assigning
30891 a tabindex when a control is added to a container
30892 * GroupBox.cs (ctor): Now sets the Container style bit, required
30893 for Control.GetNextControl()
30895 2005-01-09 Jackson Harper <jackson@ximian.com>
30897 * TextBoxBase.cs: Clear window when scrolling (fixes build).
30899 2005-01-09 Peter Bartok <pbartok@novell.com>
30901 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30902 XplatUIX11.cs: Added ability to control ScrollWindow expose and
30903 an overload for ScrollWindow to allow only scrolling a rectangle
30905 2005-01-09 Peter Bartok <pbartok@novell.com>
30908 - Implemented SetDesktopBounds method
30909 - Implemented SetDesktopLocation method
30911 2005-01-08 Jackson Harper <jackson@ximian.com>
30913 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30914 the node count has changed, this removes to VScroll::Refresh calls
30917 2005-01-08 Geoff Norton <gnorton@customerdna.com>
30919 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30921 2005-01-07 Jackson Harper <jackson@ximian.com>
30923 * TreeNode.cs: Just update the single node when it is
30924 checked. Don't refresh after toggling, the Expand/Collapse already
30926 * TreeView.cs: Respect clipping a little more when drawing. Try
30927 not to redraw things that don't need to be redrawn. Just hide the
30928 scrollbars when they are no longer needed instead of removing
30929 them, so they don't have to be created again and again.
30931 2005-01-07 Geoff Norton <gnorton@customerdna.com>
30933 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
30934 coordinates to window space to place the caret properly, FIXED.
30935 Implement GetWindowState & SetWindowState
30937 2005-01-06 Peter Bartok <pbartok@novell.com>
30940 - Implemented ClientSize property
30941 - Implemented DesktopBounds property
30942 - Implemented DesktopLocation property
30943 - Implemented IsRestrictedWindow property
30944 - Implemented Size property
30945 - Implemented TopLevel property
30946 - Implemented FormWindowState property
30948 - Implemented GetTopLevel() method
30949 - Implemented SetTopLevel() method
30950 * X11Structs.cs (Atom):
30951 - Added AnyPropertyType definition
30952 - Added MapState definiton and updated XWindowAttribute struct
30953 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30954 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30955 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30957 - Implemented GetWindowState() and SetWindowState() methods
30958 - Fixed Win32GetWindowLong return type
30960 - Introduced central function for sending NET_WM messages
30961 - Implemented GetWindowState() and SetWindowState() methods
30962 * TextBoxBase.cs (set_Lines):
30963 - Now uses Foreground color for text added via Text property (Duh!)
30964 - Added code to remember programmatically requested size (fixes
30965 behaviour when Multiline is set after Size)
30966 - Added AutoSize logic
30968 2005-01-06 Jackson Harper <jackson@ximian.com>
30970 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30972 2005-01-06 Jackson Harper <jackson@ximian.com>
30974 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30975 set to less then 0.
30977 2005-01-06 Jackson Harper <jackson@ximian.com>
30979 * ScrollableControl.cs: Lazy init the scrollbars.
30981 2005-01-06 Jackson Harper <jackson@ximian.com>
30983 * Theme.cs: Speed up getting pens and solid brushes, by using
30984 their ARGB as a hash instead of tostring and not calling Contains.
30986 2005-01-06 Peter Bartok <pbartok@novell.com>
30989 - Implemented OnActivated and OnDeactivate event trigger
30990 - Implemented Activate() method
30991 - Fixed ShowDialog() to activate the form that was active before
30992 the dialog was shown
30994 - Added global active_window var that tracks the currently active
30996 - Now always grabs Property changes from the root window to always
30997 catch changes on the active window property
30998 - Added code to PropertyNotify handler to send Active/Inactive
30999 messages when state changes. This puts X11 and Win32 en par on
31000 WM_ACTIVATE notifications (except for double notifications when
31001 the user clicks away from our modal window to another one of our
31004 2005-01-05 Jackson Harper <jackson@ximian.com>
31006 * ImageList.cs: Implment ctor
31008 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31010 * XplatUIOSX.cs: Implement Activate/SetTopmost
31012 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31014 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31016 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31018 * XplatUIOSX.cs: Implement GetActive/SetFocus.
31020 2005-01-05 Peter Bartok <pbartok@novell.com>
31022 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31023 XplatUIOSX.cs: Added GetActive method to return the currently
31024 active window for the application (or null, if none is active)
31026 - Implemented ActiveForm
31027 - Commented out owner assignment for modal dialogs (causes problems
31028 on Win32, since the owner will be disabled)
31029 - Reworked some Active/Focus handling (still incomplete)
31030 * CommonDialog.cs: Commented out owner assignment for modal dialogs
31031 (causes problems on Win32, since the owner will be disabled)
31032 * IWin32Window: Added ComVisible attribute
31034 2005-01-05 Peter Bartok <pbartok@novell.com>
31036 * ToolTip.cs (WndProc): Enable setting focus now that we have the
31037 required XplatUI functions.
31039 2005-01-05 Peter Bartok <pbartok@novell.com>
31041 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
31042 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
31043 to implement focus and activation handling; still incomplete and
31046 2005-01-04 Peter Bartok <pbartok@novell.com>
31048 * TextBoxBase.cs: Changed access level for Document property to
31049 match switch to internal for TextControl
31051 2005-01-04 Peter Bartok <pbartok@novell.com>
31053 * AccessibleObject: Added ComVisible attribute
31055 2005-01-04 Jackson Harper <jackson@ximian.com>
31057 * X11Keyboard.cs: Remove unneeded var.
31059 2005-01-04 Jackson Harper <jackson@ximian.com>
31061 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
31063 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
31064 ClientMessage. This makes apps exit cleanly (more often).
31066 2005-01-04 Jackson Harper <jackson@ximian.com>
31068 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
31069 handling focus, return correct colors and fonts,
31070 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
31071 handle selection, horizontal scrolling, and mouse interaction.
31073 2005-01-04 Peter Bartok <pbartok@novell.com>
31075 * ICommandExecutor.cs: Added
31076 * IDataGridColumnStyleEditingNotificationService.cs: Added
31077 * IFeatureSupport.cs: Added
31078 * IFileReaderService.cs: Added
31079 * IDataObject.cs: Added ComVisible attribute
31080 * AmbientProperties.cs: Added
31081 * BaseCollection.cs: Added missing attributes
31082 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
31083 * BaseCollection.cs: Added missing attributes
31084 * Binding.cs: Added TypeConverter attribute
31085 * BindingContext.cs: Added DefaultEvent attribute
31086 * BindingsCollection.cs: Added DefaultEvent attribute
31087 * Button.cs: Added DefaultValue attribute
31088 * DragEventArgs.cs: Added ComVisible attribute
31089 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
31090 * KeyEventArgs.cs: Added ComVisible attribute
31091 * KeyPressEventArgs.cs: Added ComVisible attribute
31092 * MouseEventArgs.cs: Added ComVisible attribute
31093 * NavigateEventArgs.cs: Added
31094 * NavigateEventHandler.cs: Added
31095 * FeatureSupport.cs: Added
31096 * OSFeature.cs: Added
31097 * Theme.cs: Added abstract Version property to support OSFeature
31098 * ThemeWin32Classic.cs: Added Version property to
31099 support OSFeature.Themes
31100 * ProgressBar.cs: Removed OnPaintBackground override, not required since
31101 the proper styles to avoid background drawing are set, also doesn't
31103 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
31104 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
31105 * ScrollEventArgs.cs: Added ComVisible attribute
31106 * SplitterEventArgs.cs: Added ComVisible attribute
31107 * AccessibleSelection.cs: Added Flags attribute
31108 * Appearance.cs: Added ComVisible attribute
31109 * Border3DSide.cs: Added ComVisible attribute
31110 * Border3DStyle.cs: Added ComVisible attribute
31111 * BorderStyle.cs: Added ComVisible attribute
31112 * DragAction.cs: Added ComVisible attribute
31113 * ErrorBlinkStyle.cs: Added
31114 * ScrollEventType.cs: Added ComVisible attribute
31115 * AnchorStyles.cs: Added Editor attribute
31116 * DockStyle.cs: Added Editor attribute
31117 * HorizontalAlignment.cs: Added ComVisible attribute
31118 * HelpEventArgs.cs: Added ComVisible attribute
31119 * PaintEventArgs.cs: Added IDisposable
31121 2005-01-04 Peter Bartok <pbartok@novell.com>
31123 * TextControl.cs: Switched Line, LineTag and Document classes to
31126 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
31128 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
31129 Simple mode, fixes, IntegralHeight, etc.
31131 2005-01-04 Peter Bartok <pbartok@novell.com>
31133 * TextBoxBase.cs: Using proper font variable now
31135 2005-01-04 Peter Bartok <pbartok@novell.com>
31137 * Form.cs (ShowDialog): Set parent to owner, if provided
31138 * GroupBox.cs: Removed unused vars
31140 - Added GetHashCode() for Document and LineTag classes
31141 - Removed unused variables
31142 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
31143 to allow translation between continuous char position and line/pos
31144 * CheckBox.cs: Removed vars that are provided by base class
31145 * RadioButton.cs: Removed vars that are provided by base class, added
31146 new keyword where required
31147 * LinkLabel.cs: Added new keyword where required
31148 * Control.cs (WndProc): Removed unused variable
31150 - Finished SelectionLength property
31151 - Implemented SelectionStart property
31152 - Implemented Text property
31153 - Removed unused vars
31154 * MessageBox.cs: Added new keyword where required
31155 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
31157 * MenuAPI.cs: Added new keyword where required
31158 * ButtonBase.cs: Removed vars that are provided by base class, added
31159 new keyword where required
31160 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
31161 argument to double, to allow compiling with csc 2.0 (Atsushi ran
31163 * Application.cs (Run): Now triggers the ThreadExit event
31164 * CommonDialog.cs: Added new keyword where required; now properly sets
31165 parent (owner) for dialog
31166 * XplatUIX11.cs: Commented out unused vars
31167 * StatusBar.cs: Fixed signature for Text property
31168 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
31170 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
31172 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
31173 TrackBar.cs, MonthCalendar.cs: remove unused vars
31175 2005-01-03 Jackson Harper <jackson@ximian.com>
31177 * ThemeWin32Classic.cs:
31178 * X11Keyboard.cs: Remove unused vars.
31180 2005-01-03 Peter Bartok <pbartok@novell.com>
31183 - set_Text: Tied into TextControl
31184 - set_TextAlignment: Tied into TextControl
31186 - Added alignment properties and implemented alignment handling
31187 and drawing (still has a bug, not generating proper expose events)
31188 - Added new Line() constructor to allow passing the line alignment
31189 - Fixed selection setting, properly handling end<start now
31190 - Added aligment considerations to RecalculateDocument()
31192 - Now properly enforces control height for single line controls
31193 - Added support for CharacterCasing
31194 - Added IsInputKey override
31195 - Fixed Keys.Enter logic
31196 - Added SetBoundsCore override
31197 - Fixed mouse selection handling
31199 2005-01-03 Jackson Harper <jackson@ximian.com>
31202 - Collapse and uncheck all nodes when CheckBoxes is disabled.
31203 - Checkboxes are always aligned to the bottom of the node,
31204 regardless of item height.
31205 - Use the node bounds to draw the text so we can center it when
31206 the item height is greater then the font height.
31207 - Node::Bounds are only the text part of the node.
31208 * TreeNode.cs: New method to combine collapsing and unchecking all
31211 2005-01-02 Jackson Harper <jackson@ximian.com>
31213 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
31214 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
31215 tree when a check is changed. TODO: Only refresh the checked node.
31217 2004-12-30 Jackson Harper <jackson@ximian.com>
31219 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
31220 * TreeNode.cs: When collapsing make sure to never collapse the
31223 2004-12-29 Jackson Harper <jackson@ximian.com>
31225 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
31227 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
31229 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
31231 2004-12-28 Peter Bartok <pbartok@novell.com>
31233 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
31236 2004-12-28 Peter Bartok <pbartok@novell.com>
31238 * Control.cs (WndProc): Added WM_HELP handler, now generates
31239 HelpRequested event
31240 * Form.cs: Added HelpButton property and required support code
31241 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
31243 2004-12-28 Peter Bartok <pbartok@novell.com>
31246 - Made DialogForm.owner variable internal
31247 - Added check to ensure owner form is set before setting
31248 owner properties in CreateParams
31250 2004-12-28 Geoff Norton <gnorton@customerdna.com>
31252 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
31253 swizzling. Implement ClientToScreen and ScreenToClient. Implement
31254 GetCursorPos. Fix major visibility issues. Rework the windowing
31255 system to support borderless/titleless windows (implements menus).
31256 Fix GetWindowPos. Implement initial background color support for
31259 2004-12-28 Peter Bartok <pbartok@novell.com>
31261 * Form.cs (get_CreateParams): Make sure we have an owner before using
31262 the owner variable. Implement proper default if no owner exists
31264 2004-12-28 Peter Bartok <pbartok@novell.com>
31266 * In preparation for making Managed.Windows.Forms the default build target
31267 for System.Windows.Forms, the following stubbed files were added.
31268 Dialogs are currently being implemented by contributors and are only
31269 short-term place holders.
31270 * ColorDialog.cs: Initial check-in (minmal stub)
31271 * DataGrid.cs: Initial check-in (minimal stub)
31272 * DataGridLineStyle.cs: Initial check-in (minimal stub)
31273 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
31274 * DataGridTableStyle.cs: Initial check-in (minimal stub)
31275 * FontDialog.cs: Initial check-in (minimal stub)
31276 * FileDialog.cs: Initial check-in (minimal stub)
31277 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
31278 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
31279 * OpenFileDialog: Initial check-in (minimal stub)
31280 * IComponentEditorPageSite.cs: Initial check-in
31281 * Splitter.cs: Initial check-in (for Jackson)
31282 * SplitterEventArgs.cs: Initial check-in (for Jackson)
31283 * SplitterEventHandler.cs: Initial check-in (for Jackson)
31284 * TextBox.cs: Initial check-in; still needs some wiring to
31285 TextControl backend
31286 * Form.cs: Implemented ControlBox property
31287 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
31288 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
31289 * TextControl.cs: Added selection functionality; added todo header
31291 - Implemented Lines property
31292 - Implemented TextHeight property
31293 - Implemented SelectedText property
31294 - Implemented SelectionLength property
31295 - Implemented SelectAll method
31296 - Implemented ToString method
31297 - Removed and cleaned up some debug code
31298 - Implemented (still buggy) mouse text selection
31300 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
31302 * ComboBox.cs: Complete DropDownList implementation, fixes.
31304 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
31306 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
31307 * ComboBoxStyle.cs: ComboBoxStyle enum
31308 * ComboBox.cs: Initial work on ComboBox control
31310 2004-12-21 Peter Bartok <pbartok@novell.com>
31312 * Control.cs (ctor, CreateParams): Moved setting of is_visible
31313 forward so that anything that creates a window gets the default,
31314 also no longer uses Visible property in CreateParams to avoid
31315 walking up the parent chain and possibly get the wrong visible
31316 status. Fixed IsVisible to no longer walk up to the parent.
31318 2004-12-21 Peter Bartok <pbartok@novell.com>
31320 * Form.cs (ShowDialog): Unset modality for the proper window
31322 2004-12-20 Peter Bartok <pbartok@novell.com>
31324 * CommonDialog.cs: Initial check-in
31326 2004-12-20 Peter Bartok <pbartok@novell.com>
31328 * Control.cs (Visible): Now uses the parent window instead of the
31329 client area window for the property
31332 - ShowDialog(): Now uses the proper window for modality
31333 - The default visibility state for the form parent is now false. This
31334 will prevent the user from seeing all the changes to the form and
31335 its controls before the application hits Application.Run()
31336 - Removed some stale commented out code
31339 - Added FindWindow() method to have a method to check for existence
31341 - Added ability to override default exception handling (for example
31342 when debugging with VS.Net; to do this the ExternalExceptionHandler
31344 - Removed some useless debug output
31347 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
31348 not working as expected
31349 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
31350 property to allow switching back to the modal window if focus is
31351 given to another one of our windows (Application Modal)
31352 - Now only sets override_redirect if we create a window
31354 - Moved EventMask selection before mapping of newly created window
31355 so we can catch the map event as well
31356 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
31357 - Added various Atom related DllImports
31358 - Implemented Exit() method
31359 - .ctor() : No longer shows window if WS_VISIBLE is not defined
31360 in the CreateParams
31362 * MessageBox.cs: Now properly deals with the FormParent window by
31363 providing an override the FormParent CreateParams property to
31364 set as POPUP instead of OVERLAPPED window.
31366 2004-12-19 Geoff Norton <gnorton@customerdna.com>
31368 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
31369 Minor code cleanup.
31371 2004-12-19 Geoff Norton <gnorton@customerdna.com>
31373 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
31375 2004-12-18 Peter Bartok <pbartok@novell.com>
31377 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
31378 implementing SetModal() method
31380 2004-12-18 Peter Bartok <pbartok@novell.com>
31382 * X11Structs.cs (XGCValues): Fixed type of function element
31383 * XplatUI.cs: Added ScrollWindow() method
31384 * XplatUIDriver.cs: Added ScrollWindow() abstract
31385 * XplatUIWin32.cs: Implemented ScrollWindow() method
31386 * XplatUIX11.cs: Implemented ScrollWindow() method
31387 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
31389 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31391 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
31392 Some more keyboard support (INCOMPLETE)
31394 2004-12-17 Peter Bartok <pbartok@novell.com>
31397 - Added color attribute to line tags.
31398 - Added color argument to all functions dealing with tags
31399 - Added color argument support to various functions
31400 - Fixed miss-calculation of baseline/shift in certain circumstances
31402 * TextBoxBase.cs: Added new color option to test code
31404 2004-12-17 Jackson Harper <jackson@ximian.com>
31407 * MonthCalendar.cs: Signature fixes
31409 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31411 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
31412 keyboard event moved it. Create a new graphics context for each paint resolves this
31414 2004-12-17 Geoff Norton <gnorton@customerdna.com>
31416 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
31417 Make caret exist and go blink blink. Initial keyboard support.
31418 Fix exception handler, Add Invalidate support. Change way RefreshWindow
31421 2004-12-17 Jackson Harper <jackson@ximian.com>
31423 * XplatUIStructs.cs: Updated set of virtual keycodes.
31424 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
31426 2004-12-17 Jackson Harper <jackson@ximian.com>
31428 * XplatUIX11.cs: Prune old keyboard code.
31430 2004-12-17 Jackson Harper <jackson@ximian.com>
31432 * XplatUIX11.cs: When generating mouse wparams get the modifier
31433 keys from the ModifierKeys property.
31435 2004-12-17 Jackson Harper <jackson@ximian.com>
31437 * X11Keyboard.cs: Send up/down input when generating
31438 messages. Remove some unused vars.
31440 2004-12-17 Jackson Harper <jackson@ximian.com>
31443 * TreeView.cs: get rid of warnings.
31445 2004-12-17 Jackson Harper <jackson@ximian.com>
31447 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
31449 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
31451 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
31452 CheckedListBox.cs: Implementation
31454 2004-12-17 Peter Bartok <pbartok@novell.com>
31456 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
31458 2004-12-16 Peter Bartok <pbartok@novell.com>
31461 - InsertCharAtCaret(): Fixed start pos fixup
31462 - CaretLine_get: No longer derives the line from the tag, the tag
31463 could be stale if lines in the document have been added or deleted
31464 - RebalanceAfterDelete(): Fixed bug in balancing code
31465 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
31466 - Line.Streamline(): Now can also elminate leading empty tags
31467 - DumpTree(): Added a few more tests and prevented exception on
31469 - Added Debug section for Combining lines
31470 - Delete(): Now copies all remaining properties of a line
31473 - Left mousebutton now sets the caret (and middle button still acts
31474 as formatting tester, which must go away soon)
31475 - Added Debug section for Deleting/Combining lines
31476 - Fixed calculations for UpdateView after Combining lines
31478 2004-12-16 Peter Bartok <pbartok@novell.com>
31480 * TextControl.cs: Now properly aligns text on a baseline, using the
31481 new XplatUI.GetFontMetrics() method. Simplified several calculations
31482 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
31485 2004-12-16 Peter Bartok <pbartok@novell.com>
31487 * XplatUI.cs: Added GetFontMetrics() method
31488 * XplatUIDriver.cs: Added GetFontMetrics() abstract
31489 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
31490 into libgdiplus, our private GetFontMetrics function
31491 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
31492 * XplatUIWin32.cs: Implemented GetFontMetrics() method
31494 2004-12-16 Jackson Harper <jackson@ximain.com>
31496 * XplatUIStruct.cs: Add enum for dead keys
31497 * X11Keyboard.cs: Map and unmap dead keys.
31499 2004-12-16 Jackson Harper <jackson@ximian.com>
31501 * X11Keyboard.cs: Detect and use the num lock mask.
31503 2004-12-16 Peter Bartok <pbartok@novell.com>
31505 * Control.cs (CreateGraphics): Added check to make sure the
31506 handle of the window exists before calling Graphics.FromHwnd()
31508 2004-12-16 Peter Bartok <pbartok@novell.com>
31510 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
31511 contains a lot of code that's not supposed to be there for the
31512 real thing, but required for developing/testing the textbox
31515 2004-12-16 Peter Bartok <pbartok@novell.com>
31518 - Fixed Streamline method
31519 - Added FindTag method to Line
31520 - Added DumpTree method for debugging
31521 - Added DecrementLines() method for deleting lines
31522 - Fixed UpdateView to update the cursor to end-of-line on single-line
31524 - Added PositionCaret() method
31525 - Fixed MoveCaret(LineDown) to move into the last line, too
31526 - Added InsertChar overload
31527 - Fixed InsertChar tag offset calculations
31528 - Added DeleteChar() method
31529 - Added Combine() method for folding lines
31530 - Fixed Delete() method, no longer allocates wasted Line object and
31531 now copies all properties when swapping nodes
31532 - Delete() method now updates document line counter
31534 2004-12-15 Jackson Harper <jackson@ximian.com>
31536 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
31537 * X11Keyboard.cs: Expose the currently selected modifier keys
31538 through a property.
31540 2004-12-15 Peter Bartok <pbartok@novell.com>
31542 * TextControl.cs: Initial check-in. Still incomplete
31544 2004-12-15 Jackson Harper <jackson@ximian.com>
31547 * TreeView.cs: Fix build on csc (second time today ;-))
31549 2004-12-15 Jackson Harper <jackson@ximian.com>
31551 * TreeView.cs: Store the treenodes plus/minus box bounds when it
31552 is calculated and use this for click testing.
31553 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
31555 2004-12-15 Jackson Harper <jackson@ximian.com>
31557 * TreeView.cs: Pass the nodes image index to the image list when
31558 drawing that image.
31560 2004-12-15 Jackson Harper <jackson@ximian.com>
31562 * X11Keyboard.cs: Set messages hwnd.
31563 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
31564 post_message calls.
31566 2004-12-15 Jackson Harper <jackson@ximian.com>
31568 * X11Keyboard.cs: Fix to compile with csc.
31570 2004-12-15 Jackson Harper <jackson@ximian.com>
31572 * X11Structs.cs: Add key mask values
31573 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
31574 * X11Keyboard.cs: New file - Extrapolates and interpolates key
31575 down/up foo into WM_CHAR foo
31576 * KeyboardLayouts.cs: Common keyboard layouts
31577 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
31578 post messages into the main queue.
31580 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
31582 * Button.cs: implement ProcessMnemonic
31583 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
31585 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
31586 * ButtonBase.cs: Show HotkeyPrefix (not the &)
31588 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
31590 * MonthCalendar.cs: Implemented click-hold for next/previous month
31593 2004-12-11 Peter Bartok <pbartok@novell.com>
31596 - Added XKeyboardState (moved from XplatUIX11.cs)
31597 - Added XCreateGC related enums and structures
31598 - Added GXFunction for XSetFunction
31600 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
31602 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
31603 CaretVisible() calls
31605 * ToolTip.cs: Added code to prevent stealing focus from app windows
31607 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
31608 DestroyCaret, SetCaretPos and CaretVisible)
31611 - Added implementation for caret functions
31612 - Moved hover variables into a struct, to make it a bit easier
31613 on the eyes and to debug
31614 - Removed XKeyboardState (moved to XplatUIX11.cs)
31615 - Moved Keyboard properties into the properties region
31617 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
31618 call to get a graphics context for our control
31620 * XplatUIOSX.cs: Added empty overrides for the new caret functions
31622 * TreeView.cs: Fixed bug. No matter what color was set it would always
31623 return SystemColors.Window
31625 * XplatUIWin32.cs: Implemented caret overrides
31627 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
31629 * ListBox.cs: fire events, implement missing methods and properties,
31632 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
31634 * MonthCalendar.cs: invalidation bug fixing
31635 * ThemeWin32Classic.cs: paint fixing
31637 2004-12-09 Geoff Norton <gnorton@customerdna.com>
31639 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
31640 prepare the CGContextRef there now.
31642 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
31644 * MonthCalendar.cs:
31645 - optimisationL only invalidate areas that have changed
31646 * ThemeWin32Classic.cs:
31647 - only paint parts that intersect with clip_area
31649 2004-12-09 Peter Bartok <pbartok@novell.com>
31651 * Application.cs: Undid changes from r37004 which cause problems
31654 2004-12-09 Ravindra <rkumar@novell.com>
31656 * ToolBar.cs: Added support for displaying ContextMenu
31657 attached to a button on ToolBar.
31658 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
31661 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31663 * Label.cs: autosize works in text change and removes unnecessary
31666 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
31668 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31671 2004-12-08 Geoff Norton <gnorton@customerdna.com>
31673 * XplatUIOSX.cs: Added mouse move/click/grab support
31674 Remove some debugging WriteLines not needed anymore.
31675 Add window resizing/positioning.
31676 Fix visibility on reparenting.
31678 2004-12-08 Peter Bartok <pbartok@novell.com>
31680 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
31682 2004-12-07 Geoff Norton <gnorton@customerdna.com>
31684 * XplatUIOSX.cs: Initial checkin
31685 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
31687 2004-12-03 Ravindra <rkumar@novell.com>
31689 * ListView.cs: Added some keybindings and fixed scrolling.
31690 ScrollBars listen to ValueChanged event instead of Scroll
31691 Event. This would let us take care of all changes being
31692 done in the scrollbars' values programmatically or manually.
31693 * ListView.cs (CanMultiselect): Added a check for shift key.
31694 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
31695 * ListViewItem.cs (Clone): Fixed. We need to make a copy
31696 of ListViewSubItemCollection as well.
31698 2004-12-06 Peter Bartok <pbartok@novell.com>
31700 * Control.cs (Parent): Added check and exception to prevent
31703 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
31705 * ListBox.cs: implemented clipping, selection single and multiple,
31708 2004-12-03 Ravindra <rkumar@novell.com>
31710 * ListView.cs (ListView_KeyDown):
31711 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
31712 when CTRL key is pressed.
31713 * ListViewItem.cs (Selected): Fixed setting the property.
31715 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31717 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
31719 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
31720 MinimizeBox, ShowInTaskbar, TopMost properties.
31722 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
31723 will be implemented).
31725 2004-12-03 Marek Safar <marek.safar@seznam.cz>
31727 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
31729 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
31732 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
31734 * TreeView.cs: BackColor is Colors.Window.
31736 2004-12-01 Jackson Harper <jackson@ximian.com>
31738 * TreeView.cs: When resizing the tree if the user is making it
31739 smaller we don't get expose events, so we need to handle adding
31740 the horizontal scrollbar in the size changed handler as well as
31741 the expose handler.
31743 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
31745 * DrawItemState.cs: fixes wrong enum values
31747 2004-12-01 Jackson Harper <jackson@ximian.com>
31749 * TreeView.cs: Resize the hbar as well as the vbar on resize.
31751 2004-12-01 Jackson Harper <jackson@ximian.com>
31753 * NodeLabelEditEventArgs.cs:
31754 * NodeLabelEditEventHandler.cs:
31755 * OpenTreeNodeEnumerator.cs:
31757 * TreeNodeCollection.cs:
31759 * TreeViewAction.cs:
31760 * TreeViewCancelEventArgs.cs:
31761 * TreeViewCancelEventHandler.cs:
31762 * TreeViewEventArgs.cs:
31763 * TreeViewEventHandler.cs: Initial implementation.
31765 2004-12-01 Ravindra <rkumar@novell.com>
31767 * ListView.cs (CalculateListView): Fixed scrolling related
31768 calculations. Also, removed some debug statements from other
31770 * ListViewItem.cs: Changed access to 'selected' instance variable
31771 from private to internal.
31772 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
31774 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
31776 * ThemeWin32Classic.cs: remove cache of brush and pens for
31777 specific controls and use the global system, fixes scrollbutton
31778 bugs (for small sizes, disabled, etc)
31780 * ScrollBar.cs: does not show the thumb for very small controls
31781 (as MS) and allow smaller buttons that the regular size
31783 2004-12-01 Miguel de Icaza <miguel@ximian.com>
31785 * UpDownBase.cs: Add abstract methods for the interface.
31786 Add new virtual methods (need to be hooked up to TextEntry when it
31788 Add override methods for most features.
31789 Computes the size, forces the height of the text entry.
31791 * NumericUpDown.cs: Put here the current testing code.
31793 * Set eol-style property on all files that do not have mixed line
31794 endings, to minimize the future problems. There are still a few
31795 files with mixed endings, and someone should choose whether they
31796 want to move it or not.
31798 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
31800 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
31803 2004-11-30 Ravindra <rkumar@novell.com>
31805 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
31806 drawing and replaced use of SystemColors by theme colors.
31807 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
31808 * ListView.cs (ListViewItemCollection.Add): Throw exception when
31809 same ListViewItem is being added more than once.
31811 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
31813 * MonthCalendar.cs:
31814 - ControlStyles love to make the control not flicker
31816 2004-11-30 Peter Bartok <pbartok@novell.com>
31818 * CharacterCasing.cs: Added
31820 2004-11-29 Peter Bartok <pbartok@novell.com>
31822 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31823 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
31824 I am removing these files as they conflict with already completed
31825 work. While it is fantastic to get contributions to MWF, I
31826 respectfully ask that everyone please coordinate their contributions
31827 through mono-winforms-list or #mono-winforms at this time. We're
31828 explicitly avoiding stubbing and don't want controls that don't have
31829 their basic functionality implemented in svn. Please also see
31830 http://www.mono-project.com/contributing/winforms.html
31833 2004-11-29 Marek Safar <marek.safar@seznam.cz>
31835 * Application.cs (ModalRun): Don't hang after exit.
31837 * Theme.cs: New TreeViewDefaultSize property.
31839 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
31840 with less hardcoded SystemColors constant.
31841 Implemented TreeViewDefaultSize.
31843 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31844 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
31847 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
31849 * MonthCalendar.cs:
31850 - Fix NextMonthDate and PrevMonthDate click moving calendar
31852 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31854 * MonthCalendar.cs:
31855 - Fix usage of ScrollChange Property when scrolling months
31857 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
31859 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
31860 - Fixes menu destroying
31861 - Support adding and removing items on already created menus
31863 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31865 * MonthCalendar.cs:
31866 - Re-worked all bolded dates handling to match win32
31867 * ThemeWin32Classic.cs:
31868 - Fixed rendering with bolded dates
31870 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
31872 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31873 - Horizontal scroolbar
31878 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
31880 * MonthCalendar.cs:
31881 - Fix Usage of MaxSelectionCount from SelectionRange
31882 - Fixed Shift + Cursor Selection
31883 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31884 - Fixed normal cursor selection to be compat with win32
31885 - Fixed Shift + Mouse Click selection
31887 2004-11-24 Peter Bartok <pbartok@novell.com>
31889 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31890 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31892 - CreatedKeyBoardMsg now updates keystate with Alt key
31893 - Added workaround for timer crash to CheckTimers, Jackson will
31894 develop a proper fix and check in later
31895 - Implemented DispatchMessage
31896 - Removed calling the native window proc from GetMessage (call
31897 now moved to DispatchMessage)
31899 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31900 the keydata (Fixes bug #69831)
31903 - (DispatchMessage): Switched to return IntPtr
31904 - Added DllImport for SetFocus
31906 2004-11-24 Ravindra <rkumar@novell.com>
31908 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31909 background drawing.
31910 * ListViewItem.cs: Fixed various properties, calculations
31911 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31912 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31913 and some internal properties. Fixed MouseDown handler and Paint
31916 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31918 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31920 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31922 * ContainerControl.cs: correct accidental check in of local changes
31924 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31926 * ThemeWin32Classic.cs:
31927 - Fixed Drawing Last month in grid (sometimes not showing)
31928 * MonthCalendar.cs:
31929 - Fixed title width calculation bug (makeing title small)
31931 2004-11-23 Peter Bartok <pbartok@novell.com>
31934 - Added generation of WM_MOUSEHOVER event
31935 - Added missing assignment of async_method atom
31936 - Fixed WM_ERASEBKGND; now only redraws the exposed area
31938 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31940 * ThemeWin32Classic.cs:
31941 - Fixed Drawing of today circle when showtodaycircle not set
31942 - fixed drawing of first and last month in the grid (gay dates)
31943 * MonthCalendar.cs:
31944 - Fixed Drawing of today circle
31945 - Fixed drawing of grady dates
31946 - Fixed HitTest for today link when ShowToday set to false
31947 - Fixed DefaultSize to obey ShowToday
31949 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31951 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31952 * System.Windows.Forms/Theme.cs
31953 * MonthCalendar.cs: added for MonthCalendar
31954 * SelectionRange.cs: added for MonthCalendar
31955 * Day.cs: added for MonthCalendar: added for MonthCalendar
31956 * DateRangeEventArgs.cs: added for MonthCalendar
31957 * DateRangeEventHandler.cs: added for MonthCalendar
31959 2004-11-22 Ravindra <rkumar@novell.com>
31961 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31964 2004-11-22 Miguel de Icaza <miguel@ximian.com>
31966 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31969 * NumericUpDown.cs: Added new implementation.
31970 * UpDownBase.cs: Added new implementation.
31972 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31975 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31978 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31981 2004-11-21 Miguel de Icaza <miguel@ximian.com>
31983 * Timer.cs (Dispose): Should call the base dispose when
31986 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31988 * ScrollBar.cs: updates thumb position when max, min or increment
31991 2004-11-21 Ravindra <rkumar@novell.com>
31993 * ListView.cs: Implemented item selection, activation and
31994 column header style. Fixed properties to do a redraw, if
31995 required. Added support for MouseHover, DoubleClick, KeyDown
31996 and KeyUp event handling and some minor fixes.
31997 * ListViewItem.cs: Fixed constructor.
31998 * ThemeWin32Classic.cs: Improved drawing for ListView.
32000 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
32002 * ThemeWin32Classic.cs: initial listbox drawing code
32003 * DrawMode.cs: new enumerator
32004 * ListControl.cs: stubbed class
32005 * ListBox.cs: initial implementation
32006 * Theme.cs: new methods definitions
32007 * SelectionMode.cs: new enumerator
32009 2004-11-17 Peter Bartok <pbartok@novell.com>
32011 * XplatUIWin32.cs: Added double-click events to the class style
32012 * Control.cs (WndProc):
32013 - Added handling of click-count to MouseDown/ MouseUp events.
32014 - Added handling of middle and right mouse buttons
32015 - Removed old debug code
32017 2004-11-17 Jackson Harper <jackson@ximian.com>
32019 * XplatUIX11.cs: Use the new Mono.Unix namespace.
32021 2004-11-17 Ravindra <rkumar@novell.com>
32023 * ListView.cs: Added event handling for MouseMove/Up/Down.
32024 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32025 * ThemeWin32Classic.cs: We need to clear the graphics context and
32026 draw column header in a proper state.
32029 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
32031 * Menu.cs: fixes signature
32033 2004-11-16 Peter Bartok <pbartok@novell.com>
32035 * XplatUIX11.cs (GetMessage): Implemented generation of
32036 double click mouse messages
32038 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
32040 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
32043 2004-11-11 Peter Bartok <pbartok@novell.com>
32045 * HandleData.cs: Added Visible property
32046 * XplatUIX11.cs (IsVisible): Now uses Visible property from
32048 * XplatUIX11.cs: Removed old debug leftovers
32049 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
32050 * Control.cs (WndProc): Removed old debug leftovers,
32051 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
32052 needed WM_SIZE handling
32054 2004-11-11 Jackson Harper <jackson@ximian.com>
32056 * OwnerDrawPropertyBag.cs:
32057 * TreeViewImageIndexConverter.cs: Initial implementation
32059 2004-11-10 Jackson Harper <jackson@ximian.com>
32061 * ThemeWin32Classic.cs:
32062 * TabControl.cs: instead of moving tabs by the slider pos just
32063 start drawing at the tab that is offset by the slider. This way
32064 scrolling always moves by exactly one tab.
32066 2004-11-10 Jackson Harper <jackson@ximian.com>
32068 * TabControl.cs: You can only scroll left when the slider has
32069 already ben moved right.
32071 2004-11-10 Jackson Harper <jackson@ximian.com>
32073 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
32076 2004-11-10 Jackson Harper <jackson@ximian.com>
32078 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
32081 2004-11-09 Jackson Harper <jackson@ximian.com>
32083 * TabControl.cs (CalcXPos): New helper method so we can determine
32084 the proper place to start drawing vertical tabs.
32085 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
32087 2004-11-09 Jackson Harper <jackson@ximian.com>
32089 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
32090 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
32091 and Bottom, left and right are illegal values for this and
32092 multiline is enabled when the alignment is set to left or right.
32093 (DrawTab): Each alignment block should draw the text itself now
32094 because Left requires special love. Also add rendering for Left
32097 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
32099 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
32100 does not destroy the windows, removes debugging messages
32102 2004-11-09 jba <jba-mono@optusnet.com.au>
32104 * ThemeWin32Classic.cs
32105 (DrawButtonBase): Fix verticle text rect clipping in windows
32106 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32107 rendering and incorrect text rect clipping
32108 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32109 rendering and incorrect text rect clipping
32111 2004-11-08 Jackson Harper <jackson@ximian.com>
32113 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
32114 bottom when they are bottom aligned so the bottoms of the tabs get
32116 * TabControl.cs (DropRow): Move rows up instead of down when the
32117 tab control is bottom aligned.
32119 2004-11-08 13:59 pbartok
32122 - Added handling for various window styles
32123 - Added handling for popup windows
32124 - Added SetTopmost handling
32126 2004-11-08 13:55 pbartok
32129 - Added argument to SetTopmost method
32130 - Fixed broken ClientToScreen function
32132 2004-11-08 13:53 pbartok
32134 * XplatUIStructs.cs:
32135 - Added missing WS_EX styles
32137 2004-11-08 13:53 pbartok
32139 * XplatUI.cs, XplatUIDriver.cs:
32140 - Added argument to SetTopmost
32142 2004-11-08 13:52 pbartok
32145 - Added XSetWindowAttributes structure
32146 - Improved XWindowAttributes structure
32147 - Added SetWindowValuemask enum
32148 - Added window creation arguments enum
32149 - Added gravity enum
32150 - Added Motif hints structure
32151 - Added various Motif flags and enums
32152 - Added PropertyMode enum for property functions
32154 2004-11-08 13:50 pbartok
32157 - Fixed arguments for updated SetTopmost method
32159 2004-11-08 13:49 pbartok
32162 - Fixed arguments for updated SetTopmost function
32163 - Fixed usage of PointToClient
32165 2004-11-08 13:44 pbartok
32168 - Added Clipping of children and siblings
32170 2004-11-08 13:41 pbartok
32173 - Removed SetMenuBarWindow call. We do this in Form.cs
32175 2004-11-08 13:40 jackson
32177 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
32178 scrolling jimmi in the correct location with bottom aligned tabs
32180 2004-11-08 13:36 pbartok
32182 * ContainerControl.cs:
32183 - Implemented BindingContext
32184 - Implemented ParentForm
32186 2004-11-08 12:46 jackson
32188 * TabControl.cs: Put bottom rendered tabs in the right location
32190 2004-11-08 07:15 jordi
32192 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
32195 2004-11-05 17:30 jackson
32197 * TabControl.cs: When selected tabs are expanded make sure they
32198 don't go beyond the edges of the tab control
32200 2004-11-05 14:57 jackson
32202 * TabControl.cs: Reset show_slider so if the control is resized to
32203 a size where it is no longer needed it's not displayed anymore
32205 2004-11-05 13:16 jackson
32207 * TabControl.cs: Make tab pages non visible when added to the
32210 2004-11-05 12:42 jackson
32212 * TabControl.cs: Implement SizeMode.FillToRight
32214 2004-11-05 12:16 jackson
32216 * Control.cs: Do not call CreateHandle if the handle is already
32219 2004-11-05 11:46 jackson
32221 * TabControl.cs: Remove superflous call to CalcTabRows
32223 2004-11-05 09:07 jackson
32225 * XplatUIX11.cs: Update for Mono.Posix changes
32227 2004-11-05 07:00 ravindra
32229 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
32232 2004-11-04 22:47 jba
32234 * ThemeWin32Classic.cs:
32235 - Fix Button rendering for FlatStyle = Flat or Popup
32236 - Fix RadioButton and CheckBox rendering when Appearance = Button
32237 (normal and flatstyle).
32238 - Correct outer rectangle color when drawing focus rectangle
32239 - Adjust button bounds to be 1 px smaller when focused
32240 - Make button not draw sunken 3d border when pushed (windows compat)
32241 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
32242 - Offset the text in RadioButton and Checkbox when being rendered as
32244 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
32246 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
32247 - Fixed disabled text rendering for normally rendered radiobuttons
32249 2004-11-04 10:26 jackson
32251 * TabControl.cs: Recalculate tab rows when resizing
32253 2004-11-04 07:47 jordi
32255 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
32256 collection completion, drawing issues, missing features
32258 2004-11-04 05:03 ravindra
32261 - We need to recalculate the Thumb area when
32262 LargeChange/maximum/minimum values are changed.
32263 - We set the 'pos' in UpdatePos() method to minimum, if it's less
32264 than minimum. This is required to handle the case if large_change is
32265 more than max, and use LargeChange property instead of large_change
32267 - We return max+1 when large_change is more than max, like MS does.
32269 2004-11-04 04:29 ravindra
32271 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
32272 - Changed default value signatures (prefixed all with ListView).
32273 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
32275 - Fixed calculations for ListViewItem and implemented Clone()
32278 2004-11-04 04:26 ravindra
32280 * Theme.cs, ThemeWin32Classic.cs:
32281 - Changed default ListView values signatures (prefixed all with
32283 - Fixed default size values for VScrollBar and HScrollBar.
32284 - Fixed DrawListViewItem method.
32286 2004-11-04 04:05 ravindra
32288 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
32290 2004-11-04 04:04 ravindra
32292 * ImageList.cs: Implemented the missing overload for Draw method.
32294 2004-11-03 19:29 jackson
32296 * TabControl.cs: Handle dropping rows on selection properly
32298 2004-11-03 11:59 jackson
32300 * TabControl.cs: remove debug code
32302 2004-11-03 11:52 jackson
32304 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
32305 the scrolly widgerywoo
32307 2004-11-02 13:52 jackson
32309 * TabControl.cs: Resize the tab pages and tabs when the tab control
32312 2004-11-02 13:40 jackson
32314 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
32315 selected tab to the bottom
32317 2004-11-02 13:39 jackson
32319 * TabPage.cs: Store the tab pages row
32321 2004-11-02 12:33 jordi
32323 * MenuItem.cs: fixes handle creation
32325 2004-11-02 11:42 jackson
32327 * TabControl.cs: signature fix
32329 2004-11-02 08:56 jackson
32331 * TabControl.cs: Calculate whether the tab is on an edge properly.
32332 Remove top secret debugging code
32334 2004-11-01 19:57 jackson
32336 * TabControl.cs: Add click handling, and proper sizing
32338 2004-11-01 19:47 jackson
32340 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
32343 2004-11-01 19:39 jackson
32345 * TabPage.cs: add internal property to store the bounds of a tab
32348 2004-10-30 04:23 ravindra
32350 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
32353 2004-10-30 04:21 ravindra
32355 * ListView.cs, ListViewItem.cs: Added support for scrolling and
32356 fixed calculations.
32358 2004-10-30 03:06 pbartok
32361 - Removed extension of DllImported libs
32363 2004-10-29 09:55 jordi
32365 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
32366 navigation, itemcollection completion, menu fixes
32368 2004-10-27 22:58 pbartok
32371 - Now throws a nice error message when no X display could be opened
32373 2004-10-26 13:51 jordi
32375 * ListView.cs: removes warning
32377 2004-10-26 03:55 ravindra
32379 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
32380 ThemeWin32Classic.cs: Some formatting for my last checkins.
32382 2004-10-26 03:36 ravindra
32384 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
32385 control and default values.
32387 2004-10-26 03:35 ravindra
32389 * Theme.cs: Added some default values for ListView control.
32391 2004-10-26 03:33 ravindra
32393 * ToolBar.cs: ToolBar should use the user specified button size, if
32394 there is any. Added a size_specified flag for the same.
32396 2004-10-26 03:33 ravindra
32398 * ColumnHeader.cs: Added some internal members and calculations for
32401 2004-10-26 03:32 ravindra
32403 * ListViewItem.cs: Calculations for ListViewItem.
32405 2004-10-26 03:31 ravindra
32407 * ListView.cs: Added some internal members and calculations for
32410 2004-10-22 13:31 jordi
32412 * MenuAPI.cs: speedup menus drawing
32414 2004-10-22 13:16 jackson
32416 * XplatUIX11.cs: Make sure to update exposed regions when adding an
32419 2004-10-22 11:49 jackson
32423 2004-10-22 11:41 jackson
32425 * Control.cs: Check to see if the window should have its background
32426 repainted by X when drawing.
32428 2004-10-22 11:31 jackson
32430 * XplatUIX11.cs: When invalidating areas only use XClearArea if
32431 clear is true, this way we do not get flicker from X repainting the
32434 2004-10-22 11:28 jackson
32436 * XEventQueue.cs: Queue properly
32438 2004-10-21 09:38 jackson
32440 * XEventQueue.cs: Fix access modifier
32442 2004-10-21 09:36 jackson
32444 * XEventQueue.cs: Don't loose messages
32446 2004-10-21 09:22 jackson
32448 * XEventQueue.cs: Don't loose messages
32450 2004-10-20 04:15 jordi
32452 * BootMode.cs: enum need it by SystemInfo
32454 2004-10-19 21:58 pbartok
32457 - Small sanity check
32459 2004-10-19 21:56 pbartok
32462 - Added private FormParentWindow class which acts as the container
32463 for our form and as the non-client area where menus are drawn
32464 - Added/Moved required tie-ins to Jordi's menus
32465 - Fixed/Implemented the FormStartPosition functionality
32467 2004-10-19 21:52 pbartok
32470 - Removed unneeded locals
32471 - Added code to all size and location properties to understand and
32472 deal with the parent container of Form
32474 2004-10-19 21:33 pbartok
32477 - Fixed to deal with new Form subclasses for menus
32479 2004-10-19 17:48 jackson
32481 * XEventQueue.cs: commit correct version of file
32483 2004-10-19 16:50 jackson
32485 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
32487 2004-10-19 16:15 jordi
32489 * MenuAPI.cs: MenuBarCalcSize returns the height
32491 2004-10-19 08:31 pbartok
32494 - Added missing call to PreProcessMessage before calling OnXXXKey
32497 2004-10-19 00:04 ravindra
32499 * ToolTip.cs: Fixed constructor.
32501 2004-10-18 09:31 jordi
32503 * MenuAPI.cs: menuitems in menubars do not have shortcuts
32505 2004-10-18 09:26 jordi
32507 * MenuItem.cs: fixes MenuItem class signature
32509 2004-10-18 08:56 jordi
32511 * MenuAPI.cs: prevents windows from showing in the taskbar
32513 2004-10-18 00:28 ravindra
32515 * ToolTip.cs: Suppressed a warning message.
32517 2004-10-18 00:27 ravindra
32519 * Control.cs: Default value of visible property must be true.
32521 2004-10-17 23:19 pbartok
32524 - Complete implementation
32526 2004-10-17 23:19 pbartok
32529 - Added EnableWindow method
32530 - Added SetModal stub
32531 - Added generation of WM_ACTIVATE message (still needs testing)
32532 - Added SetTopMost stub
32533 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
32535 2004-10-17 23:17 pbartok
32538 - Removed VirtualKeys to XplatUIStructs
32539 - Implemented SetTopMost method
32540 - Implemented EnableWindow method
32541 - Bugfix in ScreenToClient()
32542 - Bugfixes in ClientToScreen()
32544 2004-10-17 22:51 pbartok
32546 * XplatUIStructs.cs:
32547 - Added WS_EX styles to WindowStyles enumeration
32549 2004-10-17 22:50 pbartok
32551 * XplatUI.cs, XplatUIDriver.cs:
32552 - Added method for enabling/disabling windows
32553 - Added method for setting window modality
32554 - Added method for setting topmost window
32556 2004-10-17 22:49 pbartok
32558 * ThemeWin32Classic.cs:
32559 - Added ToolTip drawing code
32561 2004-10-17 22:49 pbartok
32564 - Added ToolTip abstracts
32566 2004-10-17 22:47 pbartok
32569 - Fixed Form.ControlCollection to handle owner relations
32570 - Added Owner/OwnedForms handling
32571 - Implemented Z-Ordering for owned forms
32572 - Removed unneeded private overload of ShowDialog
32573 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
32575 - Fixed Close(), had wrong default
32576 - Added firing of OnLoad event
32577 - Added some commented out debug code for Ownership handling
32579 2004-10-17 22:16 pbartok
32582 - Fixed/implemented flat list of controls
32584 2004-10-17 22:14 pbartok
32587 - Added code to simulate modal dialogs on Win32
32589 2004-10-17 16:11 jordi
32591 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
32594 2004-10-17 13:39 jordi
32596 * MenuAPI.cs: menu drawing fixes
32598 2004-10-15 09:10 ravindra
32600 * StructFormat.cs: General Enum.
32602 2004-10-15 09:09 ravindra
32604 * SizeGripStyle.cs: Enum for Form.
32606 2004-10-15 09:08 ravindra
32608 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
32609 in Theme for ListView.
32611 2004-10-15 09:06 ravindra
32613 * ColumnHeader.cs: Flushing some formatting changes.
32615 2004-10-15 09:05 ravindra
32617 * ListViewItem.cs: Implemented GetBounds method and fixed coding
32620 2004-10-15 09:03 ravindra
32622 * ListView.cs: Implemented Paint method and fixed coding style.
32624 2004-10-15 07:34 jordi
32626 * MenuAPI.cs: fix for X11
32628 2004-10-15 07:32 ravindra
32630 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
32631 - Renamed Paint() method to Draw() for clarity. Also, moved
32632 DrawImage() to OnPaint().
32634 2004-10-15 07:25 ravindra
32636 * CheckBox.cs, RadioButton.cs:
32637 - Removed Redraw (), we get it from ButtonBase.
32638 - Implemented Paint (), to do class specific painting.
32640 2004-10-15 07:16 ravindra
32643 - Redraw () is not virtual now.
32644 - Added an internal virtual method Paint (), so that
32645 derived classes can do their painting on their own.
32646 - Modified OnPaint () to call Paint ().
32648 2004-10-15 06:43 jordi
32650 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
32651 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
32653 2004-10-15 00:30 ravindra
32656 - MessageBox on windows does not have min/max buttons.
32657 This change in CreateParams fixes this on Windows. We
32658 still need to implement this windowstyle behavior in
32661 2004-10-14 05:14 ravindra
32664 - Changed Redraw () to do a Refresh () always.
32665 - Fixed the MouseMove event handling when mouse is pressed,
32666 ie drag event handling.
32667 - Replaced the usage of ToolBarButton.Pressed property to
32668 ToolBarButton.pressed internal variable.
32670 2004-10-14 05:10 ravindra
32672 * ToolBarButton.cs:
32673 - Added an internal member 'inside' to handle mouse move
32674 with mouse pressed ie mouse drag event.
32675 - Changed 'Pressed' property to return true only when
32676 'inside' and 'pressed' are both true.
32677 - Some coding style love.
32679 2004-10-14 00:17 ravindra
32681 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
32684 2004-10-14 00:15 ravindra
32686 * ButtonBase.cs: Redraw () related improvements.
32688 2004-10-14 00:14 ravindra
32690 * MessageBox.cs: Moved InitFormSize () out of Paint method and
32691 removed unnecessary calls to Button.Show () method.
32693 2004-10-13 17:50 pbartok
32697 - Removed destroying of window until we solve the problem of X
32698 destroying the window before us on shutdown
32700 2004-10-13 16:32 pbartok
32703 - Now Redraws on MouseUp for FlatStyle Flat and Popup
32705 2004-10-13 14:18 pbartok
32708 - Added code to destroy the X window
32710 2004-10-13 14:18 pbartok
32713 - Added code to destroy a window
32715 2004-10-13 14:12 pbartok
32718 - Added the Redraw on Resize that got dropped in the last rev
32720 2004-10-13 09:06 pbartok
32722 * ThemeWin32Classic.cs:
32723 - Path from John BouAntoun:
32724 * Fix check rendering (centre correctly for normal style, offset
32725 correctly for FlatStyle).
32726 * Fix border color usage (use backcolor) for FlatStyle.Popup
32727 * Use checkbox.Capture instead of checkbox.is_pressed when
32728 rendering flatstyle states.
32730 2004-10-12 21:48 pbartok
32732 * ThemeWin32Classic.cs:
32733 - Removed all occurences of SystemColors and replaced them with the
32734 matching theme color
32736 2004-10-12 21:41 pbartok
32738 * ThemeWin32Classic.cs:
32739 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
32740 him using the function for flatstyle drawing
32741 - Changed functions to use the new version of CPDrawBorder3D
32743 2004-10-12 21:15 pbartok
32746 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
32747 match MS documentation. They need to return defined colors if the
32748 passed color matches the configured control color. Thanks to John
32749 BouAntoun for pointing this out.
32751 2004-10-12 20:57 pbartok
32754 - Fix from John BouAntoun: Raise ForeColorChanged event when text
32757 2004-10-12 20:46 pbartok
32760 - Fix from John BouAntoun: Now properly sets the Appearance property
32762 2004-10-12 20:45 pbartok
32764 * ThemeWin32Classic.cs:
32765 - Fixes from John BouAntoun: now handles forecolors and backcolors
32766 for flatstyle rendered controls much better; It also fixes normal
32767 checkbox rendering when pushed or disabled.
32769 2004-10-08 02:50 jordi
32771 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
32774 2004-10-07 08:56 jordi
32776 * ThemeWin32Classic.cs: Removes deletion of cached brushes
32778 2004-10-06 03:59 jordi
32780 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
32781 XplatUIWin32.cs: removes warnings from compilation
32783 2004-10-05 12:23 jackson
32785 * RadioButton.cs: Fix ctor
32787 2004-10-05 11:10 pbartok
32790 - Partial implementation by Benjamin Dasnois
32792 2004-10-05 10:15 jackson
32794 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
32797 2004-10-05 03:07 ravindra
32800 - Removed a private method, Draw ().
32801 - Fixed the ButtonDropDown event handling.
32802 - Fixed MouseMove event handling.
32804 2004-10-05 03:04 ravindra
32806 * ThemeWin32Classic.cs:
32807 - Added DrawListView method and ListViewDefaultSize property.
32808 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
32809 - Changed DOS style CRLF to Unix format (dos2unix).
32811 2004-10-05 03:03 ravindra
32814 - Added DrawListView method and ListViewDefaultSize property.
32816 2004-10-05 02:42 ravindra
32818 * ToolBarButton.cs: Added an internal member dd_pressed to handle
32819 clicks on DropDown arrow.
32821 2004-10-04 22:56 jackson
32823 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
32824 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
32825 Control handle the buffers, derived classes should not have to
32826 CreateBuffers themselves.
32828 2004-10-04 21:20 jackson
32830 * StatusBar.cs: The control handles resizing the buffers now.
32832 2004-10-04 21:18 jackson
32834 * Control.cs: When resizing the buffers should be invalidated. This
32835 should be handled in Control not in derived classes.
32837 2004-10-04 14:45 jackson
32841 2004-10-04 02:14 pbartok
32843 * LeftRightAlignment.cs:
32846 2004-10-04 01:09 jordi
32848 * ThemeWin32Classic.cs: fixes right button position causing right
32849 button not showing on horizontal scrollbars
32851 2004-10-02 13:12 pbartok
32854 - Simplified the Invalidate method by using an X call instead of
32855 generating the expose ourselves
32856 - Added an expose when the window background is changed
32857 - Implemented ClientToScreen method
32859 2004-10-02 13:08 pbartok
32862 - Added Win32EnableWindow method (test for implementing modal
32864 - Added ClientToScreen method and imports
32866 2004-10-02 13:07 pbartok
32868 * XplatUI.cs, XplatUIDriver.cs:
32869 - Added ClientToScreen coordinate translation method
32871 2004-10-02 13:06 pbartok
32873 * KeyPressEventArgs.cs:
32874 - Fixed access level for constructor
32876 2004-10-02 13:06 pbartok
32879 - Changed access level for the window_collection hash table
32881 2004-10-02 13:05 pbartok
32884 - Added KeyPreview property
32885 - Added Menu property (still incomplete, pending Jordi's menu work)
32886 - Implemented ProcessCmdKey
32887 - Implemented ProcessDialogKey
32888 - Implemented ProcessKeyPreview
32890 2004-10-02 13:02 pbartok
32893 - Added private method to get the Control object from the window
32895 - Implemented ContextMenu property
32896 - Implemented PointToScreen
32897 - Implemented PreProcessMessage
32898 - Implemented IsInputChar
32899 - Implemented IsInputKey
32900 - Implemented ProcessCmdKey
32901 - Completed ProcessKeyEventArgs
32902 - Fixed message loop to call the proper chain of functions on key
32904 - Implemented ProcessDialogChar
32905 - Implemented ProcessDialogKey
32906 - Implemented ProcessKeyMessage
32907 - Implemented ProcessKeyPreview
32908 - Added RaiseDragEvent stub (MS internal method)
32909 - Added RaiseKeyEvent stub (MS internal method)
32910 - Added RaiseMouseEvent stub (MS Internal method)
32911 - Added RaisePaintEvent stub (MS Internal method)
32912 - Added ResetMouseEventArgs stub (MS Internal method)
32913 - Implemented RtlTranslateAlignment
32914 - Implemented RtlTranslateContent
32915 - Implemented RtlTranslateHorizontal
32916 - Implemented RtlTranslateLeftRight
32917 - Added generation of KeyPress event
32919 2004-10-02 05:57 ravindra
32921 * ListViewItem.cs: Added attributes.
32923 2004-10-02 05:32 ravindra
32925 * ListView.cs: Added attributes.
32927 2004-10-01 11:53 jackson
32929 * Form.cs: Implement the Close method so work on MessageBox can
32932 2004-09-30 14:06 pbartok
32937 2004-09-30 11:34 jackson
32939 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32941 2004-09-30 07:26 ravindra
32943 * ListViewItemConverter.cs: Converter for ListViewItem.
32945 2004-09-30 07:26 ravindra
32947 * SortOrder.cs: Enum for ListView control.
32949 2004-09-30 07:25 ravindra
32951 * ColumnHeader.cs: Supporting class for ListView control.
32953 2004-09-30 07:24 ravindra
32955 * ListView.cs, ListViewItem.cs: Initial implementation.
32957 2004-09-30 07:20 ravindra
32959 * ItemActivation.cs: Enum for ListView Control.
32961 2004-09-29 20:29 pbartok
32964 - Added lookup of pixel value for background color; tries to get a
32965 color 'close' to the requested color, it avoids having to create a
32966 colormap. Depending on the display this could mean the used color
32967 is slightly off the desired color. Might have to change it to a more
32968 resource intensive colormap approach, but it will work as a
32969 workaround to avoid red screens.
32971 2004-09-29 14:27 jackson
32973 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32975 2004-09-28 12:44 pbartok
32977 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32978 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32979 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32980 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32981 TrackBar.cs, VScrollBar.cs:
32982 - Streamlined Theme interfaces:
32983 * Each DrawXXX method for a control now is passed the object for
32984 the control to be drawn in order to allow accessing any state the
32985 theme might require
32987 * ControlPaint methods for the theme now have a CP prefix to avoid
32988 name clashes with the Draw methods for controls
32990 * Every control now retrieves it's DefaultSize from the current
32993 2004-09-28 12:17 jackson
32995 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32998 2004-09-24 14:57 jackson
33000 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33001 Gives us a nice little performance boost.
33003 2004-09-24 12:02 jackson
33005 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33006 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33007 Control and supporting classes. Initial checkin
33009 2004-09-23 13:08 jackson
33011 * Form.cs: Temp build fixage
33013 2004-09-23 01:39 ravindra
33015 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33016 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33017 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33018 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33019 EventHandlers needed by ListView Control.
33021 2004-09-22 14:12 pbartok
33023 * ScrollableControl.cs:
33024 - Implemented DockPadding property
33025 - Implemented AutoScroll property
33026 - Implemented AutoScrollMargin property
33027 - Implemented AutoScrollMinSize property
33028 - Implemented AutoScrollPosition property
33029 - Implemented DisplayRectangle property (still incomplete)
33030 - Implemented CreateParams property
33031 - Implemented HScroll property
33032 - Implemented VScroll property
33033 - Implemented OnVisibleChanged property
33035 2004-09-22 14:09 pbartok
33038 - Added Form.ControllCollection class
33039 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
33040 RemoveOwnedForm (still incomplete, missing on-top and common
33041 minimize/maximize behaviour)
33042 - Added StartPosition property (still incomplete, does not use when
33044 - Added ShowDialog() methods (still incomplete, missing forcing the
33047 2004-09-22 14:05 pbartok
33050 - Added message loop for modal dialogs
33052 2004-09-22 14:02 pbartok
33055 - Fixed wrong types for events
33057 2004-09-22 14:00 pbartok
33059 * Shortcut.cs, FormWindowState.cs:
33060 - Fixed wrong values
33062 2004-09-22 12:01 jackson
33064 * Control.cs: Text is never null
33066 2004-09-20 22:14 pbartok
33069 - Fixed accessibility level for Idle handler
33071 2004-09-20 18:54 jackson
33073 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33074 XplatUIX11.cs: New message loop that uses poll so we don't get a
33077 2004-09-17 10:43 pbartok
33080 - Fixed behaviour of arrow buttons. Now properly behaves like
33081 Buttons (and like Microsoft's scrollbar arrow buttons)
33083 2004-09-17 10:14 pbartok
33086 - Added missing release of keyboard/mouse capture
33088 2004-09-17 06:18 jordi
33090 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
33091 Theme.cs: Very early menu support
33093 2004-09-16 17:45 pbartok
33096 - Fixed sending a window to the front
33097 - Added overload for SetWindowPos to avoid casting
33099 2004-09-16 17:44 pbartok
33102 - Added SendToBack and BringToFront methods
33104 2004-09-16 07:00 ravindra
33106 * Copyright: Added Novell URL.
33108 2004-09-16 07:00 ravindra
33110 * ToolBar.cs: Invalidate should be done before redrawing.
33112 2004-09-15 21:19 ravindra
33114 * ColumnHeaderStyle.cs: Enum for ListView Control.
33116 2004-09-15 21:18 ravindra
33118 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
33121 2004-09-13 18:26 jackson
33123 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
33126 2004-09-13 18:13 jackson
33128 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
33129 a second thread and post messages into the main threads message
33130 queue. This makes timing much more consistent. Both win2K and XP
33131 have a minimum timer value of 15 milliseconds, so we now do this
33134 2004-09-13 15:18 pbartok
33136 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33138 - Added Z-Ordering methods
33140 2004-09-13 10:56 pbartok
33143 - Fixed #region names
33144 - Moved properties and methods into their proper #regions
33146 2004-09-13 10:51 pbartok
33149 - Added Accept and CancelButton properties
33150 - Added ProcessDialogKey() method
33152 2004-09-13 08:18 pbartok
33154 * IWindowTarget.cs:
33157 2004-09-10 21:50 pbartok
33160 - Added DoDragDrop() [incomplete]
33161 - Properly implemented 'Visible' handling
33162 - Added SetVisibleCore()
33163 - Implemented FindChildAtPoint()
33164 - Implemented GetContainerControl()
33165 - Implemented Hide()
33167 2004-09-10 19:28 pbartok
33170 - Moved methods into their appropriate #regions
33171 - Reordered methods within regions alphabetically
33173 2004-09-10 18:57 pbartok
33175 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33176 - Added method to retrieve text from window
33178 2004-09-10 18:56 pbartok
33181 - Moved some internal functions into the internal region
33182 - Implemented FontHeight
33183 - Implemented RenderRightToLeft
33184 - Implemented ResizeRedraw
33185 - Implemented ShowFocusCues
33186 - Implemented ShowKeyboardCues
33187 - Implemented FromChildHandle
33188 - Implemented FromHandle
33189 - Implemented IsMnemonic
33190 - Implemented ReflectMessage
33191 - All public and protected Static Methods are now complete
33193 2004-09-10 16:54 pbartok
33196 - Implemented remaining missing public instance properties
33197 - Alphabetized some out of order properties
33199 2004-09-10 05:51 ravindra
33201 * PictureBox.cs: Added a check for null image.
33203 2004-09-10 00:59 jordi
33205 * GroupBox.cs: remove cvs tag
33207 2004-09-09 05:25 ravindra
33209 * ToolBar.cs: Make redraw accessible from ToolBarButton.
33211 2004-09-09 05:23 ravindra
33213 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
33216 2004-09-09 02:28 pbartok
33218 * ThemeWin32Classic.cs:
33219 - Improve disabled string look
33221 2004-09-09 01:15 jordi
33223 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
33226 2004-09-08 23:56 ravindra
33228 * ItemBoundsPortion.cs: It's enum, not a class!
33230 2004-09-08 23:47 ravindra
33232 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
33235 2004-09-08 21:13 ravindra
33237 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
33240 2004-09-08 21:03 ravindra
33242 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
33245 2004-09-08 21:01 ravindra
33247 * ScrollableControl.cs: Removed unreachable code.
33249 2004-09-08 06:45 jordi
33251 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
33253 2004-09-08 01:00 jackson
33255 * XplatUIX11.cs: Only run the timers when updating the message
33256 queue. This effectively gives X messages a higher priority then
33257 timer messages. Timers still need love though
33259 2004-09-07 14:01 jackson
33261 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
33262 this for us and the handle is no longer valid.
33264 2004-09-07 13:59 jackson
33266 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
33267 loop that manages to not crash. TODO: Add poll and cleanup timers
33269 2004-09-07 11:12 jordi
33271 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
33273 2004-09-07 03:40 jordi
33275 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
33276 fixes, methods, multiple links
33278 2004-09-06 06:55 jordi
33280 * Control.cs: Caches ClientRectangle rectangle value
33282 2004-09-05 02:03 jordi
33284 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
33287 2004-09-04 11:10 jordi
33289 * Label.cs: Refresh when font changed
33291 2004-09-02 16:24 pbartok
33294 - Added sanity check to creation of double buffer bitmap
33296 2004-09-02 16:24 pbartok
33299 - Fixed selection of text color
33300 - Fixed handling of resize event; now properly recreates double
33302 - Added missing assignment of TextAlignment
33303 - Added proper default for TextAlignment
33305 2004-09-02 14:26 pbartok
33308 - Added missing RadioButton.RadioButtonAccessibleObject class
33310 2004-09-02 14:26 pbartok
33313 - Added missing Control.ControlAccessibleObject class
33314 - Started to implement Select()ion mechanisms, still very incomplete
33316 2004-09-02 14:25 pbartok
33318 * AccessibleObject.cs:
33319 - Added missing methods
33321 2004-09-02 14:23 pbartok
33323 * AccessibleNavigation.cs, AccessibleSelection.cs:
33326 2004-09-02 10:32 jordi
33328 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
33329 pool for pens, brushes, and hatchbruses
33331 2004-09-01 15:30 jackson
33333 * StatusBar.cs: Fix typo
33335 2004-09-01 14:44 pbartok
33340 2004-09-01 14:39 pbartok
33342 * Button.cs, RadioButton.cs:
33343 - Functional initial check-in
33345 2004-09-01 14:01 pbartok
33348 - Added missing default
33349 - Added missing region mark
33351 2004-09-01 09:10 jordi
33353 * Label.cs: fixes method signatures, new methods, events, fixes
33356 2004-09-01 07:19 jordi
33358 * Control.cs: Init string variables with an empty object
33360 2004-09-01 04:20 jordi
33362 * Control.cs: fires OnFontChanged event
33364 2004-08-31 20:07 pbartok
33367 - Enabled display of strings
33369 2004-08-31 20:05 pbartok
33372 - Added (partial) implementation of DialogResult; rest needs to be
33373 implemented when the modal loop code is done
33375 2004-08-31 19:55 pbartok
33378 - Fixed to match the removal of the needs_redraw concept
33380 2004-08-31 19:55 pbartok
33383 - Removed the rather odd split between 'needs redraw' and redrawing
33384 - Now handles the events that require regeneration (ambient
33385 properties and size)
33387 2004-08-31 19:41 pbartok
33390 - Added firing of BackColorChanged event
33391 - Added TopLevelControl property
33392 - Fixed handling of WM_ERASEBKGRND message
33394 2004-08-31 12:49 pbartok
33400 2004-08-31 12:48 pbartok
33403 - Finished (famous last words)
33405 2004-08-31 04:35 jordi
33407 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
33408 scrolling bugs, adds new methods
33410 2004-08-30 14:42 pbartok
33413 - Implemented CheckBox drawing code
33415 2004-08-30 14:42 pbartok
33418 - Made Redraw() and CheckRedraw() virtual
33419 - Improved mouse up/down/move logic to properly track buttons
33421 2004-08-30 09:44 pbartok
33424 - Updated to fix broken build. Not complete yet.
33426 2004-08-30 09:28 pbartok
33431 2004-08-30 09:17 pbartok
33436 2004-08-27 16:12 ravindra
33438 * ToolBarButton.cs: Added TypeConverter attribute.
33440 2004-08-27 16:07 ravindra
33442 * ImageIndexConverter.cs: Implemented.
33444 2004-08-27 14:17 pbartok
33447 - Removed unneeded stack vars
33448 - First attempt to fix sizing issues when layout is suspended
33450 2004-08-25 15:35 jordi
33452 * ScrollBar.cs: more fixes to scrollbar
33454 2004-08-25 14:04 ravindra
33456 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
33457 Added the missing divider code and grip for ToolBar Control.
33459 2004-08-25 13:20 pbartok
33462 - Control now properly passes the ambient background color to child
33465 2004-08-25 13:20 jordi
33467 * ScrollBar.cs: small bug fix regarding bar position
33469 2004-08-25 12:33 pbartok
33472 - Now only calls SetTimer or KillTimer if the enabled state has
33475 2004-08-25 12:33 pbartok
33478 - Fixed timer handling, now seems to work
33479 - Improved error message for window creation
33481 2004-08-25 12:32 pbartok
33484 - Fixed generation of MouseUp message
33486 2004-08-25 12:29 jordi
33488 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
33489 and fixes for progressbar
33491 2004-08-24 18:43 ravindra
33493 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
33494 in ToolBar control.
33496 2004-08-24 17:15 pbartok
33500 - Added missing events
33503 2004-08-24 17:14 pbartok
33505 * StatusBar.cs, PictureBox.cs:
33506 - Now uses Control's CreateParams
33508 2004-08-24 16:36 pbartok
33511 - Fixed background color handling
33512 - Fixed sending of enter/leave events on a grab
33514 2004-08-24 16:35 pbartok
33517 - Refined definitions for CrossingEvent
33519 2004-08-24 12:37 jordi
33521 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
33522 formmating, methods signature, and adds missing events
33524 2004-08-24 12:24 jordi
33526 * Control.cs: fire OnEnabledChanged event
33528 2004-08-24 11:17 pbartok
33531 - Implemented SetTimer() and KillTimer()
33533 2004-08-24 11:16 pbartok
33536 - Now uses Remove instead of Add to kill the timer
33538 2004-08-24 10:16 jackson
33540 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
33541 picture boxes in the theme now. Draw picture box borders and obey
33544 2004-08-24 05:49 jackson
33546 * Timer.cs: Remove top secret debugging code
33548 2004-08-24 05:34 jackson
33550 * PictureBox.cs: Temp hack to make picture boxes draw their full
33553 2004-08-24 05:29 jackson
33555 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33556 XplatUIX11.cs: Move timers to the driver level. On X they are
33557 queued by the driver and checked on idle.
33559 2004-08-24 01:07 jackson
33561 * XplatUIX11.cs: Use a queue for async messages instead of passing
33562 them as ClientMessages since that was totally broken. Also simply
33563 check for events and return an idle message if none are found. This
33564 gives us an idle handler, and prevents deadlocking when no messages
33567 2004-08-23 18:19 ravindra
33569 * XplatUIWin32.cs: Removed the unwanted destructor.
33571 2004-08-23 17:27 pbartok
33574 - Finishing touches. Works now, just needs some optimizations.
33576 2004-08-23 16:53 jordi
33578 * ScrollBar.cs: small fix
33580 2004-08-23 16:45 pbartok
33583 - Removed debug output
33586 2004-08-23 16:43 jordi
33588 * ScrollBar.cs: [no log message]
33590 2004-08-23 16:10 pbartok
33593 - Fixed handling of WM_CLOSE message
33594 - Removed debug output
33596 2004-08-23 16:09 pbartok
33599 - Added handling of Idle event
33600 - Added handling of form closing
33601 - Fixed reporting of MessageLoop property
33602 - Removed some unneeded code, should provide a bit of a speedup
33604 2004-08-23 15:22 pbartok
33607 - Added InitLayout() method
33608 - Added code to properly perform layout when Anchor or Dock property
33610 - Changed 'interpretation' of ResumeLayout. MS seems to have a
33611 LAMESPEC, tried to do it in a way that makes sense
33613 2004-08-23 14:10 jordi
33615 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
33616 properties and methods
33618 2004-08-23 13:55 pbartok
33621 - Properly fixed Jordi's last fix
33622 - Now uses Cursor's Position property instead of calling XplatUI
33625 2004-08-23 13:44 jordi
33627 * PaintEventHandler.cs: Adding missing attribute
33629 2004-08-23 13:39 pbartok
33632 - Implemented Position property
33634 2004-08-23 13:39 pbartok
33636 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33637 - Added method to move mouse cursor
33639 2004-08-23 13:39 pbartok
33642 - Fixed setting of background color
33643 - Added method to move mouse cursor
33645 2004-08-23 13:16 jordi
33647 * Control.cs: avoids null exception
33649 2004-08-22 17:46 jackson
33651 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
33654 2004-08-22 17:40 jackson
33656 * XplatUIX11.cs: Add some missing locks
33658 2004-08-22 15:10 pbartok
33660 * Control.cs, Form.cs:
33661 - Removed OverlappedWindow style from Control, instead it's default
33663 - Made form windows OverlappedWindow by default
33665 2004-08-22 13:34 jackson
33667 * ScrollBar.cs: Update the position through the Value property so
33668 the OnValueChanged event is raised.
33670 2004-08-22 12:04 pbartok
33673 - Added Cursor.cs and UserControl.cs
33675 2004-08-22 12:03 pbartok
33678 - Started implementation, not usable yet
33680 2004-08-22 12:00 pbartok
33683 - Implemented UserControl (complete)
33685 2004-08-21 19:20 ravindra
33687 * ToolBar.cs: Correcting the formatting mess of VS.NET.
33689 2004-08-21 18:49 ravindra
33691 * ToolBar.cs: Probably this completes the missing attributes in
33694 2004-08-21 18:03 ravindra
33696 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
33697 Fixed toolbar control signatures.
33699 2004-08-21 16:32 pbartok
33704 2004-08-21 16:30 pbartok
33709 2004-08-21 16:19 pbartok
33711 * Control.cs, Label.cs:
33714 2004-08-21 15:57 pbartok
33717 - Added loads of debug output for development
33718 - Fixed typo in method name
33720 2004-08-21 15:52 pbartok
33722 * ToolBarButtonClickEventArgs.cs:
33723 - Added missing base class
33725 2004-08-21 14:53 pbartok
33728 - Updated to match new GrabWindow signature
33730 2004-08-21 14:51 pbartok
33732 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33733 - Added method to get default display size
33735 2004-08-21 14:23 pbartok
33737 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33738 - Added method to query current grab state
33739 - Added argument to allow confining a grab to a window
33741 2004-08-21 14:22 pbartok
33744 - Added [Flags] attribute so that modifiers can be used in bitwise
33747 2004-08-21 14:21 pbartok
33749 * TrackBar.cs, ScrollBar.cs:
33750 - Replaced direct XplatUI calls with their Control counterpart
33752 2004-08-21 13:32 pbartok
33755 - Implemented Created property
33757 2004-08-21 13:28 pbartok
33760 - Implemented ContainsFocus
33762 2004-08-21 13:26 pbartok
33765 - Implemented CausesValidation
33767 2004-08-21 13:21 pbartok
33770 - Implemented CanFocus
33771 - Implemented CanSelect
33772 - Implemented Capture
33774 2004-08-21 12:35 pbartok
33777 - Fixed bug with Async message handling
33778 - Implemented getting the ModifierKeys
33780 2004-08-21 12:32 jackson
33782 * AsyncMethodResult.cs: Make sure we have the mutex before we
33783 release it. Fixes BeginInvoke on windows
33785 2004-08-21 11:31 pbartok
33787 * XplatUIWin32.cs, XplatUIX11.cs:
33788 - Drivers now return proper mouse state
33790 2004-08-21 10:54 jackson
33792 * Control.cs: Implement EndInvoke
33794 2004-08-21 10:48 jackson
33796 * Timer.cs: Remove unneeded finalizer
33798 2004-08-20 19:52 ravindra
33800 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
33801 in mouse event handling in the ToolBar control.
33803 2004-08-20 19:50 ravindra
33805 * ImageList.cs: Changed draw method to use the arguments passed in
33808 2004-08-20 18:58 pbartok
33810 * XplatUIStructs.cs:
33811 - Added private message for async communication
33813 2004-08-20 17:38 ravindra
33815 * Control.cs: Made RightToLeft property virtual and removed a
33818 2004-08-20 14:39 jordi
33820 * ThemeGtk.cs: use style_attach
33822 2004-08-20 14:39 pbartok
33825 - Added jackson's Async code from X11 to Win32
33827 2004-08-20 14:09 pbartok
33830 - Added all new files
33832 2004-08-20 14:09 pbartok
33835 - Added call to set window background color
33837 2004-08-20 14:03 pbartok
33839 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33840 - Added method for setting the window background
33842 2004-08-20 14:02 pbartok
33845 - Added method for setting the background color
33846 - Added handling for erasing the window background
33848 2004-08-20 13:45 jordi
33850 * TrackBar.cs: fixes timer, new properties and methods
33852 2004-08-20 13:34 jackson
33854 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
33857 2004-08-20 13:22 jackson
33859 * Timer.cs: Timer Tick events are now handed through Controls Async
33860 mechanism so the callbacks are executed in the same thread as X
33862 2004-08-20 13:19 jackson
33864 * XplatUIDriver.cs: Expose functionality to send async messages
33867 2004-08-20 13:18 jackson
33869 * Control.cs: Implement Begininvoke
33871 2004-08-20 13:14 jackson
33873 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33874 messages through the driver
33876 2004-08-20 13:12 jackson
33878 * XplatUIX11.cs: Lock before all X operations. Also added Async
33879 method functionality through XSendEvent
33881 2004-08-20 13:11 jackson
33883 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33884 This will screw up on 64 bit systems)
33886 2004-08-20 13:10 jackson
33888 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33889 Async messages through X/Win32
33891 2004-08-19 19:39 pbartok
33894 - Updated code to match new HandleData.DeviceContext type
33896 2004-08-19 19:38 pbartok
33899 - Made DeviceContext a generic object to allow usage from various
33901 - Added support for queueing Windows messages
33903 2004-08-19 19:37 pbartok
33906 - Added generation of MouseEnter, MouseLeave and MouseHover events
33907 - Added cleanup on EndPaint
33909 2004-08-19 19:17 pbartok
33912 - Added handling of WM_MOUSEHOVER
33913 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33916 2004-08-19 18:55 jordi
33918 * ThemeGtk.cs: fixes button order
33920 2004-08-19 18:12 jordi
33922 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33924 2004-08-19 17:09 pbartok
33927 - Added Right property
33928 - Added RightToLeft property
33930 2004-08-19 16:27 jordi
33932 * ThemeGtk.cs: experimental GTK theme support
33934 2004-08-19 16:26 jordi
33936 * ITheme.cs, Theme.cs: move themes from an interface to a class
33938 2004-08-19 16:25 jordi
33940 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33943 2004-08-19 16:04 pbartok
33946 - Added colormap basics
33947 - Added a way to re-initialize with a different display handle
33948 - Fixed setting of the window background color
33949 - Added various X11 imports related to colors and colormaps
33951 2004-08-19 15:51 pbartok
33954 - Removed packing hints (Paolo suggested this a while back)
33955 - fixed colormap type
33956 - Added default Atom types
33957 - Added Screen and color structs and enums
33959 2004-08-19 15:39 pbartok
33962 - Added missing Draw() method
33963 - Added missing RecreateHandle event
33965 2004-08-19 15:30 pbartok
33968 - Added handling of WM_CLOSE
33970 2004-08-18 13:16 jordi
33972 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33975 2004-08-18 09:56 jordi
33977 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33979 2004-08-17 15:31 ravindra
33981 * SWF.csproj: Updated project.
33983 2004-08-17 15:25 pbartok
33986 - Drawing improvement; don't call UpdateBounds if we are not visible
33987 (or have been minimized)
33989 2004-08-17 15:24 pbartok
33992 - Finished IsVisible
33993 - Added Win32GetWindowPlacement
33995 2004-08-17 15:08 jackson
33997 * Panel.cs: Initial checkin of the Panel
33999 2004-08-17 14:25 pbartok
34002 - Fixed broken handling of default window sizes
34004 2004-08-17 13:29 jackson
34006 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34007 has a large startup time.
34009 2004-08-17 10:25 jackson
34011 * HandleData.cs: union areas properly
34013 2004-08-17 10:12 jackson
34015 * HandleData.cs: union areas properly
34017 2004-08-16 20:00 ravindra
34019 * ToolBar.cs, ToolBarButton.cs: Added attributes.
34021 2004-08-16 18:48 ravindra
34023 * ToolBar.cs: Added attributes.
34025 2004-08-16 17:17 ravindra
34027 * SWF.csproj: Updated project.
34029 2004-08-16 17:16 jackson
34031 * XplatUIX11.cs: Check for more expose events before sending a
34032 WM_PAINT so they can all be grouped together. This makes dragging a
34033 window across another window redraw in a sane way.
34035 2004-08-16 15:47 pbartok
34038 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
34039 support OnMouseEnter/Leave()
34040 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
34043 2004-08-16 15:46 pbartok
34045 * XplatUIStructs.cs, XplatUIX11.cs:
34046 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
34047 OnMouseEnter/Leave()
34049 2004-08-16 15:34 jackson
34051 * XplatUIX11.cs: Group multiple expose events in HandleData, make
34052 sure messages get the message field set to WM_NULL if they are not
34055 2004-08-16 15:24 jackson
34057 * HandleData.cs: HandleData is used for storing message information
34060 2004-08-15 17:23 ravindra
34062 * ColorDepth.cs: Added attribute.
34064 2004-08-15 17:23 ravindra
34066 * SWF.csproj: Updated project for ToolBar Control.
34068 2004-08-15 17:20 ravindra
34070 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
34071 control and also dos2unix format.
34073 2004-08-15 17:13 ravindra
34075 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
34076 ToolBarButtonClickEventArgs.cs,
34077 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
34078 ToolBarTextAlign.cs: First Implementation of ToolBar control.
34080 2004-08-15 15:31 pbartok
34083 - First (mostly) working version
34085 2004-08-13 16:15 pbartok
34088 - Fixed Anchor default
34090 2004-08-13 15:43 pbartok
34093 - Changed GetCursorPos signature
34095 2004-08-13 15:42 pbartok
34097 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34098 - Changed signature for GetCursorPos
34100 2004-08-13 15:25 pbartok
34104 - Fixed resizing/exposure handling
34106 2004-08-13 15:22 jordi
34108 * ThemeWin32Classic.cs: removes redundant code and fixes issues
34111 2004-08-13 14:55 jordi
34113 * TrackBar.cs: change from wndproc to events
34115 2004-08-13 13:00 jordi
34117 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34118 XplatUIX11.cs: implements PointToClient (ScreenToClient)
34120 2004-08-13 12:53 pbartok
34123 - Changed GetWindowPos to also provide client area size
34124 - Fixed broken prototypes for several win32 functions
34126 2004-08-13 12:53 pbartok
34128 * XplatUI.cs, XplatUIDriver.cs:
34129 - Changed GetWindowPos to also provide client area size
34131 2004-08-13 12:52 pbartok
34134 - Added generation of WM_POSCHANGED
34135 - Changed GetWindowPos to also provide client area size
34137 2004-08-13 12:52 pbartok
34140 - Added Dispose() and destructor
34141 - Fixed resizing and bounds calculation
34143 - Added memory savings for invisible windows
34145 2004-08-13 12:46 jordi
34147 * TrackBar.cs: adds timer and grap window
34149 2004-08-13 10:25 jackson
34151 * Timer.cs: SWF Timer
34153 2004-08-12 16:59 pbartok
34155 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34156 - Implemented method to get current mouse position
34158 2004-08-12 14:29 jordi
34160 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
34161 enhancement, fix mouse problems, highli thumb, etc
34163 2004-08-12 13:31 pbartok
34166 - Fixed Anchoring bugs
34168 2004-08-12 13:01 jackson
34170 * StatusBar.cs: Don't forget things
34172 2004-08-12 12:54 jackson
34174 * ThemeWin32Classic.cs: Handle owner draw status bars
34176 2004-08-12 12:54 jackson
34178 * StatusBar.cs: Implement missing properties, events, and methods.
34179 Handle mouse clicking
34181 2004-08-12 10:19 jackson
34183 * StatusBarPanelClickEventArgs.cs,
34184 StatusBarPanelClickEventHandler.cs: Classes for handling status
34185 bar panel click events
34187 2004-08-12 10:10 jackson
34189 * Control.cs: Add missing properties
34191 2004-08-12 09:46 pbartok
34193 * BindingsManagerBase.cs:
34194 - Name changed to BindingManagerBase.cs
34196 2004-08-12 09:25 jordi
34198 * ScrollableControl.cs: calls ctrlbase instead of exeception
34200 2004-08-11 16:28 pbartok
34202 * InputLanguageChangingEventArgs.cs:
34203 - Never check in before compiling. Fixes the last check-in
34205 2004-08-11 16:26 pbartok
34207 * InputLanguageChangingEventArgs.cs:
34208 - More signature fixes
34210 2004-08-11 16:20 pbartok
34212 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
34213 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
34214 ImageListStreamer.cs, InputLanguage.cs,
34215 InputLanguageChangedEventArgs.cs,
34216 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
34217 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
34218 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
34219 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34222 2004-08-11 16:16 pbartok
34226 - Added .Net 1.1 method
34228 2004-08-11 15:25 pbartok
34231 - Fixed BindingManagerBase.cs filename
34233 2004-08-11 15:22 pbartok
34235 * BindingManagerBase.cs:
34236 - Was checked in with wrong filename
34238 2004-08-11 14:50 pbartok
34243 2004-08-11 13:41 jordi
34245 * XplatUIWin32.cs: Fixes ClientRect
34247 2004-08-11 13:19 pbartok
34249 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34251 - We had SetWindowPos and MoveWindow to set window positions and
34252 size, removed MoveWindow. We have GetWindowPos, so it made sense to
34253 keep SetWindowPos as matching counterpart
34254 - Added some X11 sanity checking
34256 2004-08-11 12:59 pbartok
34259 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
34260 (It seems that SetBounds is just a front for SetBoundsCore and
34261 SetBoundsCore updates the underlying window system and
34262 UpdateBounds is responsible for updating the variables associated
34263 with the Control and sending the events)
34264 - Major cleanup of Size handling; we now have two sizes, client_size
34265 and bounds. Bounds defines the window with decorations, client_size
34268 2004-08-11 12:55 pbartok
34270 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34271 - Added method to calculate difference between decorated window and
34274 2004-08-11 12:54 pbartok
34277 - Forcing redraw on resize
34279 2004-08-11 11:43 pbartok
34282 - Removed disposing of the actual images when the list is disposed
34284 2004-08-11 09:13 pbartok
34287 - Now properly reparents windows
34289 2004-08-11 08:37 pbartok
34294 2004-08-11 07:47 pbartok
34297 - Rewrote the collection stuff. Might not be as fast now, not
34298 keeping the number of children around and accessible directly, but
34299 it's more straightforward
34301 2004-08-11 07:44 pbartok
34303 * AccessibleObject.cs:
34304 - Fixed to match ControlCollection rewrite
34306 2004-08-11 07:43 pbartok
34309 - Added missing creation of the collection list
34311 2004-08-10 20:08 jackson
34313 * StatusBar.cs: Get the paint message from WndProc
34315 2004-08-10 19:31 jackson
34317 * ThemeWin32Classic.cs: Create Brushes as little as possible
34319 2004-08-10 19:20 jackson
34321 * UICues.cs: Add Flags attribute
34323 2004-08-10 19:19 jackson
34325 * StatusBarPanel.cs: Signature cleanup
34327 2004-08-10 19:10 jackson
34329 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
34330 Initial implementation of status bar item drawing
34332 2004-08-10 17:27 jordi
34334 * TrackBar.cs: add missing methods, properties, and restructure to
34337 2004-08-10 16:24 jackson
34339 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
34340 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
34343 2004-08-10 13:21 jordi
34345 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
34346 enhancements and standarize on win colors defaults
34348 2004-08-10 12:52 jackson
34350 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
34351 ThemeWin32Classic.cs: Implement DrawItem functionality
34353 2004-08-10 12:47 jordi
34355 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
34357 2004-08-10 12:32 jordi
34359 * Control.cs: throw ontextchange event
34361 2004-08-10 11:43 pbartok
34364 - Added more to the still unfinished Dock/Anchor layout code
34366 2004-08-10 11:39 pbartok
34368 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34369 - Added GetWindowPos method
34371 2004-08-10 11:36 pbartok
34374 - Implemented several methods
34376 2004-08-10 09:47 jackson
34378 * TrackBar.cs: Allow control to handle buffering
34380 2004-08-10 09:41 jackson
34382 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
34384 2004-08-10 09:24 jackson
34386 * Label.cs, LinkLabel.cs: Let Control handle buffering.
34388 2004-08-10 09:09 jackson
34390 * StatusBar.cs: Let Control handle all the buffering.
34392 2004-08-10 09:08 jackson
34394 * Control.cs: Control will now handle the buffering code, so each
34395 control does not have to implement this.
34397 2004-08-10 08:34 jackson
34399 * XplatUIDriver.cs: Use default colors from the theme
34401 2004-08-09 17:12 pbartok
34404 - Fixed several bugs Ravindra pointed out
34406 2004-08-09 16:11 pbartok
34409 - Added incomplete dock layout code
34410 - Added support for mouse wheel
34412 2004-08-09 16:09 pbartok
34415 - Added handling for middle and right mousebutton
34416 - Added handling for mouse wheel
34417 - Added handling for key state and mouse state and position
34418 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
34421 2004-08-09 15:40 jackson
34423 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
34424 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
34427 2004-08-09 15:37 jackson
34429 * StatusBar.cs: Initial implementation of StatusBar
34431 2004-08-09 15:36 jackson
34433 * ITheme.cs: Add support for drawing status bar and getting status
34436 2004-08-09 15:35 pbartok
34441 2004-08-09 15:34 jackson
34443 * ThemeWin32Classic.cs: Add support for drawing status bar and get
34444 status bar item sizes
34446 2004-08-09 15:21 jackson
34448 * ThemeWin32Classic.cs: Use known colors for default control
34451 2004-08-09 15:12 jackson
34453 * ThemeWin32Classic.cs: Make the default font static, it is static
34454 in control so this doesn't change functionality and creating fonts
34457 2004-08-09 14:56 pbartok
34460 - Added GrabMode enum
34462 2004-08-09 14:55 pbartok
34464 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34465 - Removed Run method, was only required for initial development
34467 2004-08-09 14:51 pbartok
34469 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34470 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
34473 2004-08-09 13:48 pbartok
34476 - Fixed default sizing for child windows
34478 2004-08-09 12:56 pbartok
34481 - Added generation of WM_DESTROY message
34482 - Added handling of window manager induced shutdown
34484 2004-08-09 11:31 jackson
34486 * ThemeWin32Classic.cs: New names for control properties
34488 2004-08-09 11:25 jackson
34490 * Control.cs: Use new color names
34492 2004-08-09 11:02 jackson
34494 * XplatUI.cs: Get default window properties from the theme
34496 2004-08-09 11:01 jackson
34498 * ITheme.cs: The theme engine now controls default window
34501 2004-08-09 11:00 jackson
34503 * ThemeWin32Classic.cs: Add default window color properties
34505 2004-08-09 10:17 jackson
34507 * ThemeWin32Classic.cs: Use correct default back color
34509 2004-08-09 10:05 jackson
34511 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
34514 2004-08-09 09:56 jackson
34516 * XplatUI.cs: Remove defaults, these are handled by the theme now.
34518 2004-08-09 09:54 jackson
34520 * Control.cs: Get default properties from the theme.
34522 2004-08-09 09:53 jackson
34524 * ITheme.cs: Themes now handle default control properties
34526 2004-08-09 09:53 jackson
34528 * ThemeWin32Classic.cs: Themes now handle default control
34529 properties so coloring will be consistent
34531 2004-08-08 16:54 jordi
34533 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
34535 2004-08-08 15:08 jordi
34537 * XplatUIX11.cs: fixes keyboard crash
34539 2004-08-08 13:47 jordi
34541 * Label.cs: add cvs header info
34543 2004-08-08 12:09 jackson
34545 * ThemeWin32Classic.cs: Add pen_buttonface
34547 2004-08-08 11:52 jordi
34549 * Label.cs, LinkLabel.cs: [no log message]
34551 2004-08-08 11:34 jordi
34553 * ThemeWin32Classic.cs: Use Windows Standard Colours
34555 2004-08-07 17:32 jordi
34557 * TrackBar.cs: throw exceptions of invalid enums values
34559 2004-08-07 17:31 jordi
34561 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
34564 2004-08-07 16:56 jackson
34566 * HorizontalAlignment.cs: Initial checkin
34568 2004-08-07 13:16 jordi
34570 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
34573 2004-08-07 13:05 jordi
34575 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
34576 GetSysColor defines
34578 2004-08-06 18:01 pbartok
34580 * ThemeWin32Classic.cs:
34581 - Fixed some rounding issues with float/int
34583 2004-08-06 18:00 jackson
34585 * DockStyle.cs, AnchorStyles.cs:
34587 Add flags and serializable attributes.
34589 2004-08-06 17:46 pbartok
34592 - Implemented GetParent
34594 2004-08-06 17:18 pbartok
34597 - Fixed some rounding issues with float/int
34599 2004-08-06 17:17 pbartok
34601 * X11Structs.cs, XplatUIX11.cs:
34602 - Fixed Refresh and Invalidate
34604 2004-08-06 15:30 pbartok
34606 * Control.cs, X11Structs.cs, XplatUIX11.cs:
34607 - Fixed recursive loop when resizing
34608 - Improved/fixed redrawing on expose messages
34610 2004-08-06 09:53 jordi
34612 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
34613 keyboard navigation
34615 2004-08-06 08:02 pbartok
34617 * X11Structs.cs, XplatUIX11.cs:
34618 - Fixed reparenting
34619 - Fixed window border creation
34621 2004-08-05 15:38 pbartok
34624 - Attempted fix for reparenting problems
34626 2004-08-04 15:14 pbartok
34629 - Fixed Invalidation bug (calculated wrong client area)
34630 - Added ClientSize setter
34632 2004-08-04 15:13 pbartok
34635 - Added AutoScale properties
34637 2004-08-04 15:13 pbartok
34640 - Added latest files
34642 2004-08-04 14:11 pbartok
34644 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34646 - Added Invalidate handling
34648 2004-08-03 17:09 jordi
34650 * XplatUIDriver.cs: fixes spelling mistake
34652 2004-07-27 09:53 jordi
34654 * TrackBar.cs: fixes trackbar events, def classname, methods
34657 2004-07-27 09:29 jordi
34659 * ScrollBar.cs: fixes scrollbar events
34661 2004-07-27 04:38 jordi
34663 * Control.cs: changes to be able to run winforms samples
34665 2004-07-26 11:42 jordi
34667 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
34668 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
34670 2004-07-26 05:41 jordi
34672 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
34673 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
34676 2004-07-22 09:22 jordi
34678 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
34679 check link overlapping, implement events, and fixes
34681 2004-07-21 10:28 jordi
34683 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
34685 2004-07-21 10:19 jordi
34687 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
34688 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
34689 LinkLabelLinkClickedEventArgs.cs,
34690 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
34691 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
34694 2004-07-19 13:09 jordi
34696 * Control.cs, Label.cs: label control re-written: added missing
34697 functionlity, events, and properties
34699 2004-07-19 10:49 jordi
34701 * Control.cs: fixes SetBounds logic
34703 2004-07-19 01:29 jordi
34705 * Control.cs: Call RefreshWindow only if the window has created
34707 2004-07-15 14:05 pbartok
34709 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
34710 - Implemented ImageList and ImageList.ImageCollection classes
34711 - Added ColorDepth enumeration
34712 - Updated SWF VS.Net project
34714 2004-07-15 11:06 jordi
34716 * XplatUIStructs.cs: added MsgButons enum
34718 2004-07-15 11:03 jordi
34720 * Control.cs: added basic mouse handeling events
34722 2004-07-15 03:38 jordi
34724 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
34725 Vertical TrackBar control implementation
34727 2004-07-13 09:33 jordi
34729 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
34731 2004-07-13 09:31 jordi
34733 * Control.cs, Form.cs: commit: new properties and fixes form size
34736 2004-07-09 14:13 miguel
34738 * ProgressBar.cs: Spelling
34740 2004-07-09 11:25 pbartok
34743 - Removed usage of Rectangle for drawing. Miguel pointed out it's
34746 2004-07-09 11:17 miguel
34748 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
34750 * ProgressBar.cs: Fixed spelling for `block'
34752 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
34755 Avoid using the += on rect.X, that exposed a bug in the compiler.
34757 2004-07-08 23:21 pbartok
34759 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
34760 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
34761 BaseCollection.cs, Binding.cs, BindingContext.cs,
34762 BindingMemberInfo.cs, BindingsCollection.cs,
34763 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
34764 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
34765 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
34766 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
34767 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
34768 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
34769 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
34770 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
34771 FrameStyle.cs, GiveFeedbackEventArgs.cs,
34772 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
34773 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
34774 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
34775 InputLanguageChangedEventArgs.cs,
34776 InputLanguageChangedEventHandler.cs,
34777 InputLanguageChangingEventArgs.cs,
34778 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
34779 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
34780 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
34781 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
34782 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
34783 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
34784 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
34785 QueryAccessibilityHelpEventArgs.cs,
34786 QueryAccessibilityHelpEventHandler.cs,
34787 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
34788 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
34789 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
34790 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
34791 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
34792 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
34793 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
34794 XplatUIX11.cs, lang.cs: