1 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
4 AddNew to fix some navigation for empty datasets. [Fixes #323053]
6 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
8 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
9 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
10 border and fixes some drawing issues when resize form.
12 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
14 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
16 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
19 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
21 * TextBoxBase.cs: For standard textbox the scrollbars are always
22 visible if Multiline is true.
25 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
27 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
30 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
32 [Fixes most od DBNull and HeadersVisible problems]
35 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
36 returns the value that we need.
37 - Fixed FromPixelToColumn method that return zero for first column and for
38 row header cell, now it returns -1 for row header cell.
39 - Fixed HitTest to check row header cell in column header area, it now
40 returns HitTestType.None. [Fixes #322864]
41 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
42 checks for RowHeadersVisible and other things.
43 - If an exception occurs when setting CurrentCell and user type 'yes' in
44 message dialog, invalidade current and new cell and set setting_current_cell
45 to false to prevent future errors. [Partially fixes #323050]
47 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
48 value (SetColumnValueAtRow), it must be done by grid to properly show
49 messages. [Fixes #323050]
51 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
52 better draw column and row header. Also dont draw anything when column
53 headers is not visible.
55 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
57 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
60 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
62 * TreeView.cs: Don't start editing a node on right click, only
65 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
67 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
68 disabled over a year ago.
69 * Form.cs: Wrap calling Load in a try/catch because it can happen
70 before the catch-all one in NativeWindow.
73 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
75 * ToolStripDropDownMenu.cs: Calculate the connected area better
76 to take into account when the drop down is not directly under the
78 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
80 2008-09-16 Mario Carrion <mcarrion@novell.com>
82 * ScrollBar.cs: New event added: UIAValueChanged, generated when
83 LargeChange, SmallChange, Maximum or Minimum values are changed.
86 2008-09-16 Mario Carrion <mcarrion@novell.com>
88 * ErrorProvider.cs: Component enabled to support accessibility.
89 * Application.cs: Updated to Initialize UIA in ErrorProvider.
92 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
94 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
95 so we don't highlight on first focus.
98 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
100 * TextControl.cs: Correctly calculate the height of the area we
101 need to invalidate when we have started scrolling and viewport_y
102 is used. [Fixes bug #387608]
104 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
106 * TextControl.cs: When getting the SelectedText, don't add in
107 NewLine characters, as they are already contained in the lines.
110 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
112 * TextBoxBase.cs: Replace the buggy Lines setter with one that
113 simply concats the lines and send it to the Text setter.
114 [Fixes issue #2 and #3 of 388115]
116 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
118 * Binding.cs: The default value of DataSourceNullValue should be
119 Convert.DBNull actually. Also, the NullValue should only be used *if*
120 itself is not null, and use the null/Convert.DBNull value instead.
122 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
124 * TextControl.cs: Add a method to convert a string newline to the
126 * TextBoxBase.cs: When the user hits enter, insert a native newline.
127 [Fixes part 1 of bug #388115]
129 2008-09-15 Mario Carrion <mcarrion@novell.com>
131 * ToolTip.cs: UnPopup event set to internal to match public API.
133 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
135 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
136 have to remove the Ctrl in order for the focus moving code to kick in.
139 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
141 * CheckedListBox.cs: Return the real item index from Add. It may not be
142 the last item if the list is sorted. The user can change the NewValue in
143 the ItemCheck event, we need to use that value if so.
144 * ListBox.cs: Return the real item index from a sorted Add.
147 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
149 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
150 happen that the icons from the theme is missing or the particular size
154 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
156 * Binding.cs: When assigning null or DBNull depending on value/ref type,
157 use IsValueType instead to get the precise desired value.
160 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
162 * TreeNodeCollection.cs: When adding a new node to an opened node,
163 we have to invalidate everything below the parent node because
164 every node scoots down and we have to repaint them.
167 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
169 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
170 property into account when drawing.
173 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
175 * ListBox.cs: When calling Items.Clear(), call
176 SelectedIndexCollection.ClearCore instead of normal Clear method, to
177 not fire any Selected*Changed event - this is done to match .net and
178 don't have invalid values when changing the DataSourceProperty.
181 2008-09-12 Mario Carrion <mcarrion@novell.com>
183 * HelpProvider.cs: Control enabled to support accessibility.
184 * Application.cs: Updated to Initialize UIA in HelpProvider.
187 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
189 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
190 make the dialog TopMost as well.
193 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
195 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
196 clipboard data better.
199 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
201 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
202 TextChanged and SelectionChanged events fire in the same order as .Net.
205 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
207 * DataGridView.cs: When sorting a column, if it only contains numbers,
208 do a numeric sort instead of a string sort.
211 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
213 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
214 against NRE's when the settings have a null panel.
215 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
219 2008-09-11 Mario Carrion <mcarrion@novell.com>
221 * ToolTip.cs: Control enabled to support accessibility.
222 * Application.cs: Updated to Initialize UIA in ToolTip.
225 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
227 * Control.cs: Make the custom Enumerator internal to fix build.
229 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
231 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
232 already in edit mode, begin edit mode. Generally edit mode isn't
233 started until the second click, but CheckBoxes are special.
235 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
237 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
238 since that can be set to anything. Always add them to the Control's
239 parent. [Fixes bug #416058]
241 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
243 * ListView.cs: Use a custom enumerator for ListViewItemCollection
244 so items can be deleted in a foreach.
247 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
249 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
250 Store the user set explicit height so that the row can be AutoSized
251 and then when AutoSize is turned off, it can get its original size back.
252 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
253 duplicating the logic. When setting AutoSizeRowsMode to None, reset
254 rows' heights back to their explicit values.
257 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
259 * DateTimePicker.cs: When getting focus, select the checkbox if we are
260 already showing it. Also, don't change its value when pressing space
261 if the checkbox is not visible (ShowCheckBox as false). Finally, the
262 checkbox should remain selected as long as Checked is false, and the
263 other parts are disabled.
266 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
268 * MessageBox.cs: Handle shortcut keys to dialog buttons.
271 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
273 * Binding.cs: When the value retrieved from the control property is
274 null, don't return Convert.DBNull for Nullable instances, since they
275 can *actually* get a null value.
278 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
280 * Control.cs: Add an internal field to force doublebuffering regardless
281 of what the public mechanisms are set to. This is because MS's native
282 controls are doublebuffered even though their .Net bits are set to false.
283 * ProgressBar.cs: Set force_double_buffer to true.
286 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
288 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
290 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
291 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
292 without EditingControls, paint background selection for types without
293 EditingControls, reset the EditingCellValueChanged flag when the
294 cell's value is committed.
295 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
296 have EditingControls, remove a double call to a cell's OnContentClickInternal,
297 don't do cell changing logic in OnMouseDown if the cell didn't change.
300 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
302 * DateTimePicker.cs: Fix the edition of am/pm specifier.
304 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
306 * TextControl.cs: Add "&" to the list of valid characters in a URL.
308 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
310 * DateTimePicker.cs: Before incrementing or decrementing any part in
311 the textbox, end any current edit. Also when ending the current edit
312 use the editing_part_index field instead of the current selected
313 value, since they can be out of synch, and we really need to work on
314 the *real* current edit part. Finally when PartData.Selected changes,
315 always try to end any ongoing edit.
316 This should fix some small errors handling mouse navigation and
317 increase/decrease operations.
319 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
321 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
322 respectively) should handled different, since the 12 hours format
323 needs the value typed by the user to be adjusted depending on the
324 a.m/p.m value, so it is preserved, and only changed when the value
325 reaches the 12 value (when it changes from a.m to p.m).
326 Fixes part of #416555.
328 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
330 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
331 * ToolStripDropDownItem.cs: Don't fire events and such again if
332 ShowDropDown is called on an already dropped down item.
333 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
334 subitems, the user may add some in the DropDownOpening event.
337 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
339 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
342 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
344 * MdiClient.cs: When looking for menustrips on a child form to merge,
345 look inside ToolStripContainers.
348 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
350 * ErrorProvider.cs: Unbreak my previous commit.
352 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
354 * ErrorProvider.cs: Icon should always be 16x16.
357 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
359 * GridEntry.cs: Invalidate the child items cache when the property
362 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
364 * GridEntry.cs, PropertyGridView.cs:
365 - Update the ReadOnly detection and rendering to finally hopefully
366 match the one of MSFT.
367 - Niceify and move the debug CWLS.
370 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
372 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
373 since we are already calling Invalidate for the entire control when
374 needed - and call Redraw() when size changes, since we need to paint
375 there by ourselved and not anymore from the mentioned method.
376 This should improve the layout process. Also clean some not needed calls
379 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
381 * MenuAPI.cs: Add a null check to the Alt-F4 code.
384 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
386 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
389 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
391 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
392 PropertyGridView.sc: Implement lazy/delayed propertygrid population
393 on item expansion. Improves performance and fixes bug #417955.
396 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
398 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
401 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
403 * TextControl.cs: Add "_" to the list of valid characters in a URL.
406 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
408 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
412 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
414 * FontDialog.cs: When storing our font size from the starting font,
415 use SizeInPoints instead of Size in case Size is a different unit
419 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
421 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
422 don't use it for anything else, check if a directory is highlighted.
423 If it is, navigate into it.
426 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
428 * Binding.cs: When acquiring a BindingManagerBase for the first time,
429 check that the specified property actually exists in the data source,
430 and throw an ArgumentException if that's not the case - this is only
431 done for this scenario, since for later cases (such Position changes)
432 we throw different exceptions (match .Net).
434 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
436 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
437 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
438 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
439 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
440 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
441 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
445 2008-09-03 Neville Gao <nevillegao@gmail.com>
447 * StatusBar.cs: Control enabled to support accessibility.
450 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
452 * Binding.cs: When connecting the event handler for the "Changed"
453 event for the property, only do it for PropertyManager, and not for
454 CurrencyManager - this is exactly what does .Net, totally ignoring any
455 change in the property of the elements of a list.
458 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
460 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
461 to Windows when creating a window, as we fake MDI stuffs.
464 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
466 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
469 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
471 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
474 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
476 * DataGridView.cs: Raise CellContentClick event.
477 [Fixes part of bug #420351]
479 2008-08-27 Mario Carrion <mcarrion@novell.com>
481 * ScrollBar.cs: Control enabled to support accessibility.
484 2008-08-27 Mario Carrion <mcarrion@novell.com>
486 * ComboBox.cs: Control enabled to support accessibility.
489 2008-08-27 Mario Carrion <mcarrion@novell.com>
491 * ListBox.cs: Control enabled to support accessibility.
494 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
496 * ComboBox.cs: Don't suppress the TextChanged event when changing
498 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
502 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
504 * ErrorProvider.cs: Fix a regression NRE when setting properties
505 for a control before it has a parent.
508 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
510 * Binding.cs: Use the BindingManagerBase.Current value to obtain
511 connect the property "Changed" event, instead of using the data
512 sources - this is useful when the property specifies actually a
513 multiple objects path.
514 Fixes part of #417973.
516 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
518 * RelatedPropertyManager.cs: PropertyManager instances associated to a
519 nested properties should return not the properties of the data source
520 itself, but the properties of the type of a specific property in the
521 data source - match .net.
523 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
525 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
526 AddRange overloads into AddItems method, and added missing NULL check.
527 Added extra argument check to RemoveAt for compatibility with MS.
528 Modified IList implementation of Add, Contains, IndexOf and Remove to
529 throw an ArgumentException if item is not an int. Modified IList.Insert
530 to throw a NotSupportException instead of an Exception. Implemented
532 (ObjectCollection): To avoid duplication, use AddItems method from
533 AddRange overloads. On 1.0 profile, first perform NULL check on items
536 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
538 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
541 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
543 * X11Keyboard.cs : comment out some Console.WriteLine().
545 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
547 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
548 even if premises are not filled. Also XLookupString() was not
549 receiving correct input, which blocked precise input handling
552 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
554 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
555 type of delegate, instead of EventHandler - this was causing a type
556 cast exception in all apps handling this event.
559 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
561 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
562 ShowDropDown to give the user a chance to dynamically add
563 drop down items. [Step 1 of fixing bug #417877]
565 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
567 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
568 had any mouse motion since the call to StartDrag, to match the dnd
570 Fixes part of #381876.
572 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
574 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
575 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
576 Also, if we are actually moving into a different window after
577 grabbing, generate a LeaveNotify event for the previous window, since
578 we need to fire the leave events until the grab ends, not when
579 actually moving outside of the control.
581 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
583 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
584 events only for client windows was wrong - we need to compare the
585 client window against the window receiving the EnterNotify event, not
586 against zero (since client window is never Zero, btw).
587 This prevents having unnecessary handling of EnterNotify events for
588 non-client windows when a gran begins.
590 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
592 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
593 MouseMove/MotionNotify events at all (which should only happen after
594 MouseUp/ButtonRelease, as .Net does).
595 This avoids firing an extra and unnecessary MouseMove event just after
596 every MouseDown event.
598 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
600 * LinkLabel.cs: Always clear any previous links when LinkArea
601 is set. [Fixes bug #410709]
603 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
605 * ToolStripProfessionalRenderer.cs: Revert last change.
606 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
607 for ToolStripDropDownBackground.
609 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
611 * ToolStripProfessionalRenderer.cs: Use Window color for the
612 background of dropdowns to match .Net when the user is not
613 using the default white. [Fixes bug #418108]
615 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
617 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
618 it caused timer registration twice. Fixed bug #418107.
620 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
622 [Correction: This is the actual change to X11Dnd issue, not the
623 previous one, which was actually a different issue.]
625 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
626 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
627 when the pointer is actually in motion, but only when the pointer
628 seems to stop (as .net does).
629 Fixes part of #381876.
632 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
634 * ListBox.cs: Fix CopyTo implementation.
637 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
639 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
640 drawing a ComboBox's background. Fixes bad disabled rendering when
641 the control is not at 0,0.
644 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
646 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
647 ComponentModel layer, which will properly prioritize the attributes.
648 Avoids wrong prioritization of duplicate attributes when retrieving
649 the converter and editor.
652 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
654 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
655 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
656 when the pointer is actually in motion, but only when the pointer
657 seems to stop (as .net does).
658 Fixes part of #381876.
660 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
662 * GridEntry.cs: Perform stricter check for the ParentEntry's
663 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
667 2008-08-14 Geoff Norton <gnorton@novell.com>
669 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
670 Fixes #396983. Properly fix ActiveWindow trackin and do not
671 prematurely show POPUP windows.
673 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
675 * XplatUIX11.cs: Handle the obscured regions while scrolling using
676 GraphicsExpose event, processing it just after we copy the scrolled
677 area. This ensures that the next calls to ScrollWindow will copy
678 regions already updated, and the scrolling will be smooth. Also remove
679 the code that was trying to detect the obscured regions, since we are
680 not using it anymore (too slow).
682 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
684 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
685 MultiExtended mode, by separating some logic between the ctrl/shift
686 handling. Also ignore any MouseMove events generated together with
687 MouseDown events - we are only interested in the real motion event.
688 Fixes part of #414963.
690 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
692 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
693 is selected. [Fixes bug #414143]
695 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
697 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
698 and not the parent one (the propertyowner). Fixes the behavior of
699 GetConverter/GetEditor.
702 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
704 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
705 [Fixes part of bug #415452]
707 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
709 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
710 GridEntry, not the current.
713 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
715 * TextBoxBase.cs: De-internalize max_length field.
716 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
717 share the same logic.
720 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
722 * ListBox.cs: Selection changes made in the MouseDown handler should
723 use the *Core versions of selection in SelectedIndices collection,
724 since the SelectedIndexChanged/SelectedValueChanged events are fired
725 until we get a MouseUp event, and thus we need to separate the logic
726 from the events, as done in the keyboard navigation. Also, fire those
727 selection events from keyboard navigation in SelectionMode.None, even
728 if we don't have a selection, as .Net does.
730 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
732 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
733 last change introduced when an item is clicked but isn't on a toolstrip.
735 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
737 * ListBindingHelper.cs: When looking for an object's properties, check
738 if it implements ICustomTypeDescriptor, in which case we should
739 resolve the propertu based on its GetProperties method, not in its
740 actual properties. This is what .Net seems to do.
741 Fixes a UsingWebBrowser problem during initialization.
743 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
745 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
746 sitting on a MenuStrip.
748 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
750 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
751 no children with the keyboard, we need to release the keyboard capture.
754 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
756 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
757 no children with the keyboard, we need to release the keyboard capture.
760 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
762 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
763 the GTK+-based implementation of VisualStyles.
764 * ThemeWin32Classic.cs: Exposed various layout values for use in the
765 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
766 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
767 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
768 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
769 TrackBarHorizontalTrackHeight.
771 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
773 * TabControl.cs: Added hot style handling for the scroll buttons.
774 right_slider_state, left_slider_state are now of type PushButtonState to
775 allow for a hot state. Added tracking of the mouse button being held down
776 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
777 LeftScrollButtonArea.
778 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
779 TabControlGetRightScrollRect.
781 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
783 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
786 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
788 * Form.cs: Ensure that we reset the shown_raised flag after
789 the form is closed, so that we raise the show events the next
790 time the form is shown.
793 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
795 * Form.cs: Ensure closing events are raised only once.
798 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
800 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
801 so that we can successfully generate the LParam in-place instead of
802 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
803 navigation for menus.
805 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
807 * MenuAPI.cs: When montion don't set the keyboard navigation state to
808 'navigating'. Fixes bug #411356.
810 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
812 [Fixed remaining issues of #406773 (#1)]
813 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
815 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
816 MainMenu (already done) and ContextMenu creation.
818 * ContextMenu.cs: Create tracker on construction.
820 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
822 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
823 possible to instantiate MenuTracker without GrabControl.
825 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
827 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
829 * MainMenu.cs: Set GrabControl on SetForm using current form.
831 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
833 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
835 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
837 * MenuAPI.cs: Check if menu is activated before deactivate it in
840 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
842 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
844 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
845 - One style instance can only participate in a single style collection.
846 - Styles can request their owner to layout whenever their properties
848 [Fixes bugs #412583 and #412582]
850 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
852 * X11Keyboard.cs: Implement the generation of the LParam for
853 all keyboard messages.
856 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
858 * ListBox.cs: Don't let the user set TopIndex so high that it
859 scrolls up far enough to show empty items.
862 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
865 (I'm an idiot and forgot to commit the actual changes, as well as
866 specify the right file, which is this one, not ListView.cs).
868 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * ListView.cs: Don't draw ListViewSubItem instances from
871 DrawListViewItem - we need to reuse the main item's drawing for the
872 first sub item in case owner draw is true, but wants the system to
873 do the default draw for the first sub item, without incurring in a
877 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
879 * ToolStripButton.cs: Update Checked for CheckOnClick before
880 raising the Click event. [Fixes bug #412505]
882 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
884 * Form.cs: Remove some seems leftover code for non-TopLevel's
885 CreateParams, which is breaking ClientSize sizing, because it
886 removes the border window styles.
888 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
890 * PropertyGrid.cs: Invalidate the View when the PropertyTab
893 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
895 * WebBrowser.cs: Removed debug output.
897 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
899 * FileDialog.cs: Apply patch from Ernesto to clean up some
902 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
904 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
905 that the change has an immediate effect.
907 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
909 * ScrollableControl.cs: Update PerformLayout calls to include
910 provide the name of the property that changed.
912 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
914 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
915 location. Fixes drawing of border and cell borders if scrollable.
917 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
919 * ScrollableControl.cs: Perform layouting after the AutoScroll
920 properties have changed, so that the changes have immediate
924 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
926 * XplatUIX11.cs: Non Client area is actually Client such in the
927 case of NotifyIcon, so double check WholeWindow == ClientWindow
928 when adding an expose.
929 [Fixes bugs #324237 and #357022]
931 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
933 * TableLayoutPanel.cs: Invalidate after layouting, so that we
934 repaint the cell borders.
936 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
938 * PropertyGridTextBox.cs: Stop filtering messages prior to our
939 disposal to avoid unexpected ObjectDisposedExceptions.
941 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
943 * TableLayoutPanel.cs: Layout on Row/Column count change.
945 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
947 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
949 * PictureBox.cs: When ImageLocation is set to null or an empty string,
950 only set image to null if it was previously initialized from an url
951 (or using ImageLocation). In ImageLocation, load specified image
952 asynchronously if WaitOnLoad is false. Added support for local file
953 paths to LoadAsync, and added missing argument check.
955 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
958 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
959 order to set the value as required (which means: when selection
960 changes for a part being edited, and not before that if not needed).
961 Also use an enum to describe which part are we using, and use the
962 selection as a property in PartData, in order to notify the
963 DateTimePicker owner that we need to end the current edit.
966 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
968 * PropertyGridTextBox.cs: Validation should be performed only if we
969 are focused. We can lose focus for example if the Return key is used
970 to set the entry and there is an error. When the message box is
971 displayed we would have validate on click in the message box.
973 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
975 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
976 in order to determine that we are expandable is wrong. There was a bug,
977 now fixed, in TypeDescriptor that was causing the wrong converter to be
978 returned which caused GetPropertiesSupported == false in most cases.
981 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
983 * ImageList.cs: Fix ICollection.CopyTo implementation for
984 ImageListCollection. [Fixes bug #409169]
986 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
988 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
989 WorkingArea so that menus can appear on the second monitor
990 when one has dual monitors.
992 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
994 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
997 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
999 * TextBox.cs: Implement navigation support for auto complete in
1000 TextBox, as well as refactor the code to show the auto complete window
1001 when receiving a WM_CHAR message, instead of TextChanged, since
1002 autocomplete itself should be able to set the Text a lot of times and
1003 finally only typing should show it, not changes from code.
1005 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1007 * TabControl.cs: When expanding the selected tab, don't adjust the
1008 width if alignment is Right, since it has a different offset than 0,
1009 as opposed to the other alignments.
1010 Fixes the selected tab not being painted at all with alignment = Right
1011 and using FillToRight size mode.
1013 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1015 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
1017 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1019 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1020 values from the textbox to the boundary values. [Fixes bug #409026]
1022 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1024 * TreeNodeCollection.cs: We were copying one too many elements when
1025 doing our array copy. Fixes a crash when RemoveAt is called.
1028 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1030 * TabControl.cs: When doing the layout and need to call FillRow -using
1031 FillToRight size mode-, use the overload receiving a bool param
1032 indicating whether we need to do a vertical or horizontal calculation.
1033 Fixes part of #399583.
1035 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1037 * TextBox.cs: When painting, use the value returned by
1038 GetLastVisibleItem instead of using the cached last_item field, since
1039 there could be a desynchronization between the layout and the
1040 painting. Fixes a AOOR exception in auto complete mode.
1042 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
1044 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1045 NonClientAreaEnabled until our VisualStyles is modified to allow it.
1047 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
1049 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1051 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1053 * TextBox.cs: When focus is lost, if the auto complete listbox is
1056 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1058 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1059 tracking size for tool windows.
1060 * Theme.cs, ThemeWin32Classic.cs : Extracted
1061 ManagedWindowSpacingAfterLastTitleButton.
1063 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1065 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
1066 They are bit-rotted and have always been listed as "unsupported".
1068 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1070 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
1072 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1074 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
1076 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1078 * ListBox.cs: Make sure last_item_visible gets reset before we try
1079 to do a layout due to scrollbars appearing or disappearing.
1082 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1084 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
1085 for different window themes. [Fixes bug #339140]
1087 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1089 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
1090 in ManagedWindowBorderWidth.
1092 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1094 * InternalWindowManager.cs: Change MouseMove to take a point, so
1095 we can use the same point later on.
1096 * MdiWindowManager.cs: Store point sent to MouseMove so we can
1097 later reset to it. On Windows, the Cursor.Position had already
1098 changed by the time we were resetting to it.
1101 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1103 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
1105 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
1109 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1111 * MdiWindowManager.cs: Double-clicking on the title bar should not
1112 maximize a MDI form if MaximizeBox = false.
1114 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1116 * ThemeVisualStyles.cs: Fixed a warning.
1118 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1120 * ThemeVisualStyles.cs: Fixed warnings and formatted.
1122 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1124 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
1125 implementation produces a better result.
1127 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1129 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
1132 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1134 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
1135 cannot be used from the ThemeEngine constructor.
1136 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
1137 Application.VisualStylesEnabled because it does not work on X11.
1139 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
1141 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
1142 that we did not always check for, as well as fixes to the IList
1143 implementations. [Fixes bug #402703]
1145 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1147 * IDeviceContext.cs: Added Dispose.
1149 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1151 * Control.cs: Added OnSizeInitializedOrChanged.
1152 * Form.cs: OnLoadInternal: Added a call to
1153 Control.OnSizeInitializedOrChanged.
1154 * InternalWindowManager.cs:
1155 * HandleTitleBarMouseMove: No longer invalidates the parent window.
1156 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
1157 * TitleButton: Added Entered.
1158 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
1159 * MdiWindowManager.cs:
1160 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
1161 move over the maximized title buttons causes a change.
1162 * IsActive: Can now be called before the window is added to a MDI parent.
1163 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
1164 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1165 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
1166 * ThemeWin32Classic.cs:
1167 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
1168 * DrawTitleButton takes a new form parameter.
1169 * Added ManagedWindowTitleButtonHasHotElementStyle,
1170 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1172 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1174 * ThemeEngine.cs: ThemeVisualStyles is now selected if
1175 Application.EnableVisualStyles has been called, even if the current system
1176 configuration does not support rendering with Visual Styles.
1177 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1178 Styles should not be used.
1180 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
1182 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
1183 ComboBox in FormsTest.
1185 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
1187 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
1188 for fixed toolwindows.
1190 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
1192 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1194 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1196 * Control.cs: CreateControl just returns if the Control is diposed
1197 and doesn't throw ObjectDisposedException.
1200 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1202 * Control.cs: Do not create the control if the parent isn't created
1203 yet, e.g in the case of a parented form on which .Show is called.
1204 It will be created when the parent is made visible/created.
1207 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1209 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
1210 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1213 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1215 * Form.cs: When disposed set owner to null. Improves #402446.
1217 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1219 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
1220 use children's PreferredSize if in AutoSize mode and ExplicitBounds
1222 * Form.cs: Take the Padding into account for the PreferredSize.
1225 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1227 * TabControl.cs: Since we don't support more than one direction in
1228 TabControl rows alignment (this is, the row becomes the
1229 bottom row when selected), make Direction return always 1. This way
1230 the layout doesn't get confused about a bad calculation.
1233 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1235 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
1236 so that the wparam is properly set.
1237 Fixes form moving in the test case in bug 402446.
1239 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
1241 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1242 the full tree instead of nothing. [Improves bug #406584]
1244 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1246 * ThemeWin32Classic.cs: Adjusted minimized window painting.
1248 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1250 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1253 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
1255 * TreeView.cs: Add a null check when using CollapseAll on an
1256 empty tree. [Fixes bug #406449]
1258 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1260 * Form.cs: Make OnMenuComplete internal so we can call it.
1261 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1264 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1266 * TabControl.cs: Handle Up and Down keys when TabControl is in
1270 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1272 * TabControl.cs: Invalidate when we remove a tab. Guard against
1273 an AOORE when trying to remove a tabpage that is not owned by the
1277 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1279 * ScrollBar.cs: Change the LargeChange calculation to be correct.
1280 Ensure we are using LargeChange instead of large_change so we our
1281 calculations are correct.
1284 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1286 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1287 we need to ensure the ColumnCount/RowCount gets set.
1290 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1292 * ListBox.cs: When handling item navigation, if selection mode is
1293 None, call EnsureVisible, since scrolling is normally handled by
1294 selection, that we are not calling in this case.
1297 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1299 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1300 a null check to our focus walking code. [Fixes bug #394332]
1302 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
1304 * ComboBox.cs: Case missed in bug 379596 "Support item
1305 navigation by entering text": On _close_ drop-down select
1306 the first item matching the text in the textbox. [Fixes bug #397265]
1308 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1310 * DataGridView.cs: Fix a crash when sorting by column headers,
1311 mentioned in bug #404841. Remove some dead switch cases.
1313 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1316 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1317 uses the AutoComplete support in the internal TextBox. Also TextBox
1318 can store a reference to ComboBox, in case AutoCompleteSource is set
1319 to ListItems (this is, ComboBox's items, and we don't want to pass an
1320 additional collection).
1322 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1324 * ListViewItem.cs: Restore the initial value of bounds rect to
1325 Rectangle.Empty, and is this value for Layout detection in virtual
1326 mode. Fixes the tests.
1328 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
1330 * XPlatUI.cs: Remove references to "new" X11 backend.
1332 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1334 * Control.cs: Add an internal virtual OnDragDropEnd method
1335 to allow controls such as ListBox, which depend on a sequence
1336 of MouseDown+Move+End events, to handle the lack of a MouseUp
1337 when a DnD operation is started in MouseDown.
1338 * ListBox.cs: If a DnD operation is started in MouseDown we won't
1339 get a MouseUp, so reset our state whenever a DnD operation ends.
1341 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1343 * PropertyGrid.cs: Clear the root griditem first thing when
1344 new object/s is/are selected. Fixes some rare cases where
1345 the View will get a paint request and won't know that the
1346 grid is in the process of repopulating.
1348 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1350 * XplatUIX11.cs, InternalWindowManager.cs:
1351 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
1352 doesn't automagically update the FormBorderStyle, so we must
1353 double check the CreateParams explicitly to determine if the
1354 window is a toolwindow.
1355 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
1356 instead of doing custom checks.
1358 Fixes toolwindows for the test case in bug #402446
1360 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1362 * Control.cs: Visibility of the control should be false
1363 when the handle is destroyed in WmDestroy and not immediately
1364 in Dispose(). This is effectively where the disposing process
1365 ends even though the control is marked as Disposed immediately
1366 after calling Dispose().
1369 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1371 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
1372 when the textbox gets focus.
1375 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1377 * PropertyGridTextBox.cs, PropertyGridView.cs:
1378 - Alt + Down should show the drop down editor.
1379 - Focus the editor when showing it
1382 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
1384 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1385 that are not the first panel.
1386 * StatusBar.cs: Ensure that the X coordinate of panels is always
1387 stored. Fix IList implementation of StatusBarPanelCollection to
1388 call the regular methods.
1389 [Fixes bug #403599, #402165]
1391 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
1393 * ThemeWin32Classic.cs: Fix position calculation for centered
1394 text on status bar panels. [Fixes bug #402165]
1396 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1398 * Splitter.cs: Fix Splitter to:
1399 - Work for arbitrary splitter size
1400 - Handle MinSize and MinExtra properly
1401 - Get rid of absolute positioning during drag and use relative
1402 - Multiple other fixes
1405 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1407 * Cursor.cs: Show shouldn't hide the cursor.
1409 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1411 * ListViewItem.cs: When invalidating, add some extra space to bounds,
1412 since focus rectangle and selection can add some space and need to
1413 take into account those small offsets - specially in Details view.
1414 * ListView.cs: Instead of invalidate using item Bounds directly, call
1415 item.Invalidate, to have the code centralized.
1416 Fixes focused/selection garbage when selecting and deselecting items
1419 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1421 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1422 mode we can check whether we have to force a Layout or not, and can
1423 cache based on this, instead of avoiding caching all the the time. Do
1424 this check in GetBounds and TextBounds.
1425 Fixes selection in Details view.
1427 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1429 * ListView.cs: Make HeaderControl internal, thus the theme engine can
1430 get its *real* height instead of trying to infere it.
1431 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1432 get the position of them, since it's in general a bad idea in general,
1433 and because we can't do that in virtual mode. Instead get the first
1434 visible item as well as item height, and draw them.
1437 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
1439 * ToolStripSplitButton.cs: We can't add in extra width if
1440 the button is not AutoSize. [Fixes bug #401279]
1442 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
1444 * PaddingConverter.cs:
1445 - Implement conversion to InstanceDescriptor
1446 - Handle "All" in CreateInstance by using the supplied
1447 ITypeDescriptorContext.
1448 [Fixes bugs #396076 and #396078]
1450 Patch by Andy Hume <andyhume32@yahoo.co.uk>
1451 Code contributed under MIT/X11 license.
1453 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
1455 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
1457 Add Category attributes.
1458 Code is contributed under the MIT/X11 license.
1460 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
1463 - Fix a NRE when unparenting a form.
1464 - Do not recreate or destroy a parented form when
1467 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1469 * TextBox.cs: Implement basic support for AutComplete with custom
1472 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
1474 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1475 DropDownButtonBounds should be from the origin of the button, not the
1476 ToolStrip. [Fixes bug #401279]
1478 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
1480 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1481 running gtk_init_check. This prevents GAIL from loading
1482 unnecessarily, which was breaking UIA support. Initial fix for bug
1484 * Application.cs: Add UIA support to Winforms. New static constructor
1485 uses reflection to initialize UIAutomationWinforms assembly. Added
1486 PreRun event so UIA can initialize before the mainloop starts, and
1487 FormAdded event so UIA can provide a11y support for new Forms in an
1490 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
1492 * DataGridView.cs: When binding to a dataset, subscribe to table
1493 and column change events. Unsubscribe to these when we clear bindings.
1496 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
1498 [DataGrid drawing refactory]
1500 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1502 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1503 must be handle by Theme, now it call DataGridPaintColumnHeader.
1505 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1506 test cases must be also fixed because it checks for wrong size.
1508 * ThemeWin32Classic.cs:
1509 - Draw the bottom line of grid caption.
1510 - Prevent to draw caption text when it is empty.
1511 - Use CPDrawBorder3D for 3D efects to simplify code.
1512 - Uses 3D (when not flat) to paint corner shared between row and column
1514 - Fix header drawing issues on win32, now borders are drawing.
1515 - Fix column header paint issues to mimic win32.
1516 - Adjust header drawing for last column, like first one it must be draw
1518 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1520 - DataGridPaintColumnHeader created to draw column headers, it also
1521 paint stuff right on Win32.
1522 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
1526 - DataGridPaintRowHeaderStar method added.
1527 - DataGridPaintColumnHeader method added.
1529 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
1531 * Control.cs: Don't reset to Dock style layout if DockStyle is
1532 set to none. [Fixes bug #399316]
1534 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
1536 * Win32DnD.cs: Fix the check for control not equal null.
1537 Fixes bug #341420 and #381886.
1539 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1541 * DataGridViewRowCollection.cs: Update the indexes of rows after
1542 one has been removed.
1543 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1544 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1545 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1546 rows for the Rows collection, or deleting rows from the bound DataSet.
1548 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1550 * DataGridView.cs: Listen to a DataSet's changed event even
1551 when autogeneratecolumns is false. Refactor the changed event's
1552 add row code to use the same as the existing add row code.
1555 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1557 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1558 much any time the caret moves and there is text, not just when
1559 the selection changes as one would think.
1560 * RichTextBox.cs: Override RaiseSelectionChanged and fire
1564 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1566 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1567 instead of trying to duplicate the code.
1568 * ListBox.cs: Make method internal so we can send keyboard events.
1571 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1573 * TextBoxBase.cs: When pasting and checking the max length,
1574 subtract the selected text length (the text we will be replacing) from
1575 the document length.
1576 * TextControl.cs: Ensure every character insertion is reflected in
1577 charcount, so max length will work properly.
1580 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1582 * ListBox.cs: Ensure scrollbars are updated when a single
1583 column listbox with an already set top-index is created.
1586 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1588 * FontDialog.cs: Typing in the font/style textboxes should search
1589 the list boxes case-insensitively. [Fixes bug #398343]
1591 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
1593 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1594 widths of icon and buttons instead of hard coded values.
1596 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1598 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1599 as well as generating a SelectedIndexChanged event, just like .Net does
1603 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1605 * ListBox.cs: When navigating items visually, use FocusedItem as the
1606 reference point instead of SelectedIndex, since even in
1607 SelectionMode.None we need to support navigation, and in that case we
1608 just can't use SelectedIndex.
1609 Fixes part of #398345.
1611 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
1613 * Control.cs: Make a SetBoundsInternal that avoids the new
1615 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1616 SetBoundsInternal instead of SetBoundsCoreInternal.
1618 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
1620 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
1621 SetBounds for the scrollbars.
1623 2008-06-10 Andreia Gaita <avidigal@novell.com>
1625 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1626 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1627 OnMouseMove, OnMouseOver, OnMouseUp
1628 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1629 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1630 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1631 to the WebControl object to pass to new collection objects
1632 * HtmlHistory.cs: Implement support for individual window histories.
1633 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1634 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1635 GotFocus, LostFocus, OnLoad, OnUnload
1636 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1638 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1639 security level changes and context menu event support.
1641 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1643 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1644 as happens with Esc, patch my Andy Hume.
1647 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1649 * MdiWindowManager.cs: DrawMaximizedButtons now uses
1650 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1651 * Theme.cs: Made MenuButtonSize platform dependent. Added
1652 ManagedWindowButtonSize.
1653 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1654 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1656 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1658 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1659 Added support for rendering with VisualStyles.
1661 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1663 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1664 support for rendering the border with VisualStyles.
1666 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1668 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1669 the icon is not shown.
1670 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1673 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1675 * InternalWindowManager.cs: Draw minimized windows even if they don't have
1678 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1680 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1682 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1684 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1687 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1689 * ComboBox.cs: When snaping height -because of IntegralHeight set to
1690 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1691 if the requested height leaves the listbox area with *less* than the
1692 required are to see one item. We were setting it to PreferredHeight
1693 even for values matching the height for a single item.
1696 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1698 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1700 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1702 * DataGridViewCell.cs: Use property instead of field.
1704 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1706 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1709 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1711 * Theme.cs: Added #region around the managed window code. Made the managed
1712 window methods abstract.
1713 * ThemeWin32Classic.cs: Added #region around the managed window code.
1715 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1717 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1719 * ThemeWin32Classic.cs: Removed HasBorders checks in
1720 DrawManagedWindowDecorations.
1722 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1724 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1725 Extracted ManagedWindowGetTitleBarIconArea.
1727 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1729 * DataGridViewCellStyle.cs: Don't clone the font.
1731 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1733 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1735 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1737 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1738 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1741 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1743 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1744 Use Format/FormatProvider before trying converters.
1745 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1746 are 'set'. Change constructor to not use ApplyStyle since it wants
1747 everything applied. Clone the Font.
1748 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1749 ApplyStyle the rest.
1751 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1753 * ListView.cs: We need to calculate the scrollbars even if the handle
1754 hasn't been created - this is needed when methods using scrollbars
1755 info, such EnsureVisible, are called before control has been created.
1758 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
1760 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1761 only if the elements are defined.
1763 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1765 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1766 section. Also, when setting bounds, snap height as well as save the
1767 requested height if Dock has any value affecting the height: Left,
1768 Right and Bottom - important if using IntegralHeight as true.
1770 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1772 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1773 passed to SetBounds to reflect the new adjusted height (Integral-wise),
1774 instead of doing that only in our SetBoundsCore override, since the
1775 bounds cached can be the same as saved one and we could not get the
1779 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1781 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1782 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1783 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1784 ToolWindowCaptionButtonSize.
1785 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1787 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1789 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1791 * Theme.cs: Made DoubleClickTime plaform dependent.
1793 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1795 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1796 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1797 ToolWindowCaptionHeight.
1799 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1801 * InternalWindowManager.cs: The adjustment to ensure positive client area
1802 sizes is now platform dependent (disabled on Windows).
1803 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1804 RequiresPositiveClientAreaSize.
1806 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1808 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1810 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1812 * InternalWindowManager.cs: Changed IconicSize to use
1813 SystemInformation.MinimizedWindowSize.
1814 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1815 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1817 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1819 * ComboBox.cs: If the combobox is anchored both on top and bottom,
1820 adjust height if IntegralHeight is true when calling SetBoundsCore (as
1821 likely the height was modified even if Height wasn't specified in
1822 BoundsSpecified parameter).
1823 Fixes part of #396297.
1825 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1827 * InternalWindowsManager.cs: Changed minimum window size while resizing to
1828 SystemInformation.MinWindowTrackSize.
1829 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1830 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1832 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1834 * MenuItem.cs: Fixed Dispose.
1836 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1838 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1839 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1840 EnteredHeaderCell, PressedHeaderCell: Added.
1841 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1842 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1843 theme a chance to override default painting.
1844 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1845 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1846 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1847 ListView and DataGridView header rendering.
1849 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1851 * RichTextBox.cs: GetPositionFromCharIndex should return the
1852 visual position of the character relative to the viewport.
1853 [Fixes part of bug #396664]
1855 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1857 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
1858 and not just for the existance of an UITypeEditor. In some cases
1859 there is an editor associated just to do PaintValue, but which
1860 doesn't actually support editing.
1863 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1865 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1866 if needed, instead of 0 - this should help us in the corner case where
1867 we have more than one item but we are only partially showing 1 item.
1868 Fixes part of #374713.
1870 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1872 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1873 control, return immediately if the any parent control's handle hasn't
1874 been created or isn't visible, as well as avoiding creating the parent
1875 Form if the handle hasn't been previously created.
1878 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1880 * TableLayoutPanel.cs: Use border sizes when calculating the
1881 panel's preferred size. [Fixes part of bug #396433]
1883 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1885 * SplitContainer.cs:
1886 - Fix SplitterDistance to update only if needed.
1887 - Make it force min and max validation.
1888 - Handle properly mouse moves outside the resizeable area.
1891 2008-06-02 Andreia Gaita <avidigal@novell.com>
1893 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1894 (which also suppresses all popup dialogs). Throw NotSupported
1895 exceptions for activex getters/setters.
1896 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1897 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1898 StatusText, Version, GoSearch
1899 * HtmlDocument.cs: Add DocType support
1901 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
1903 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1906 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1908 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1910 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1912 * TableLayoutPanel.cs: When calculating preferred size, use the
1913 actual number of columns and rows, not what the user set them to.
1916 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
1918 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1921 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1923 * XplatUIX11.cs: When detecting areas obscured in a control by other
1924 toplevel windows while scrolling, return if the control hasn't a
1928 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1930 * XplatUIX11.cs: Properly detect the visible area of a control being
1931 scrolled (obscured by other winforms controls and any X toplevel
1932 windows), to mark as invalid the requested area to be scrolled that
1933 isn't visible and thus can't be copied.
1936 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1938 * ListBox.cs: Compute the precise amount to vertically scroll when
1939 using DrawMode.OwnerDrawVariable.
1940 Patch by jkeymer (j.keymer@gmx.net).
1942 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1944 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
1945 to avoid setting an invalid value for the verticall scrollbar
1946 when navigating items. And, duh, also remove my silly debug messages
1947 from previous commits.
1950 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1952 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
1953 make it MS compatible.
1955 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1957 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
1958 - Allow the editing of entries even if their parent is read-only.
1959 - Do not render expandable properties read-only.
1960 - Refactor expansion checks form PropertyGrid into PropertyGrid.
1962 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
1964 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1965 support for the hover style.
1967 2008-05-29 Andreia Gaita <avidigal@novell.com>
1969 * ContainerControl.cs: Check for null dead-end when traversing the tree
1972 [Fixes #394332, patch by Ernesto Carrea]
1974 2008-05-29 Geoff Norton <gnorton@novell.com>
1976 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1977 constant that it is. Fixes #393981
1979 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1981 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1982 that the user probably doesn't want to set this.
1984 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1986 * ThemeWin32Classic.cs: Don't let the text size be bigger than
1987 the control size for CheckBox/RadioBox.
1988 [Fixes part of bug #394645]
1990 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1992 * PropertyGrid.cs: Update the state of the sorting buttons in
1993 the toolbar if PropertySort is set programatically.
1995 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1997 * GridItemCollection.cs: Add multiple items with conflicting names
1998 support and also preserve name ordering.
2001 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2003 * GridItemCollection.cs: Revert my multiple items with same
2006 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2008 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2010 Fixes part of #393908.
2012 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
2014 * ToolStripDrowDown.cs: When using the Show () methods that have a
2015 Control parameter, set the menu owner to that Control.
2018 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
2020 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2023 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2025 * GridItemCollection.cs: Refactor to support multiple items with the
2029 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
2031 * Control.cs: The 2.0 check for illegal cross thread calls in
2032 Control.Handle were throwing an exception when we were getting
2033 the Handle in order to invoke correctly. Created a private
2034 version that does not contain this check.
2037 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2039 * PropertyGrid.cs: Respect DefaultTabType.
2041 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2043 * ListView.cs: SPACE selects an item.
2046 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2048 * ListView.cs: Reset the search string whenever the items are
2052 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2054 * ListControl.cs: For the first added item PositionChanged is fired
2055 _before_ ItemChanged, which leave us in a temporary invalid state - so
2056 we need to set the selected index from ItemChanged handler *if* we
2057 know that the first item has just been added *and* the items have been
2058 actually added to the ListControl.
2061 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2063 * TabControl.cs: Only clicks with the left button should be
2067 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071 * TextBox.cs: Expose an internal method in TextBox to restore the
2072 original context menu, and call it from ComboBox to re-use it in the
2073 combobox containing the file name in FileDialog.cs.
2074 Fixes part of #393775.
2076 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2078 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
2081 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2083 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
2086 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2088 * ComboBox.cs: Minor correction to previous patch: PageDown should
2089 also *try* to move by one item if the computed offset is negative,
2090 just like the PageUp case.
2092 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2094 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
2095 should be done for at least 1 item, and not stay at the same item.
2096 Fixes part of #374713.
2098 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
2100 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
2101 directories. [Fixes bug #393931]
2103 2008-05-22 Andreia Gaita <avidigal@novell.com>
2105 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
2106 Don't fire events until the initial about:blank page has finished
2107 loading. Clean up events.
2109 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2111 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
2112 FocusIn() too. This should fix the issue on switching
2115 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2117 * X11Keyboard.cs : set XIM font size to somewhat reasonable
2118 number (ideally the input textbox size, but that could be
2121 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
2123 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
2124 the ToolStripItem's TextChanged. [Fixes bug #393597]
2126 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2128 * TabControl.cs: When invalidating in SelectedIndex and we need to
2129 inflate to take into account the border of the tabs, make sure that
2130 the invalidated rect doesn't overflow the control bounds, since that
2131 would avoid updating at all.
2133 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2135 * TabControl.cs: Don't substract scroller width from the row width,
2136 since we need to take into account the total width of the control when
2137 calculating the position of the tabs. This avoids showing scroller
2138 when it is actually not needed.
2139 Fixes part of #322325.
2141 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2143 * ThemeVisualStyles.cs: Added support for TextBoxBase.
2145 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2147 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2148 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2150 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2152 * DataGridView.cs: Only paint the top left header cell if there
2155 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2157 * DataGridView.cs: When binding to a BindingSource, get the underlying
2158 list to bind to. [Fixes bug #345483]
2160 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2162 * DataGridView.cs: Do not bind to collection properties.
2165 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2167 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2169 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2171 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2174 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2176 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2178 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2180 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2183 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2185 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2187 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2189 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2192 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2194 * TabControl.cs: Extended to handle the hot style.
2196 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2198 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2199 Extended UpDownBase code to handle hot and disabled styles.
2201 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2203 * DataGridView.cs: Handle databinding to generic list type things.
2206 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2208 * DataGridViewCellCollection.cs: Add a method to find the cell
2209 with the given DataPropertyName.
2210 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2211 * DataGridViewColumnCollection.cs: Add a method to clear all
2212 autogenerated columns.
2213 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2217 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2219 * DataGridView.cs: Don't try to update the RowTemplate with
2220 a null CellTemplate.
2222 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2224 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2225 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2226 * DataGridView.cs: Lots of fixes/enhancements to databinding to
2229 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2231 * Control.cs: Remove invalidating implicit child controls when
2232 control is invalidated. It was causing too many redraws on
2233 controls with implicit scrollbars.
2234 * ListView.cs: Listen to the Invalidated event and invalidate
2237 2008-05-20 Andreia Gaita <avidigal@novell.com>
2239 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2240 * HtmlDocument.cs: Check for nulls
2242 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2244 * Control.cs: In ControlCollection.RemoveInternal, remove the
2245 internal control before calling PerformLayout and OnControlRemoved,
2246 which was leaving us in an invalid state and causing a X error (bad
2247 match). Observe that Remove () call has the same order.
2248 Fixes an X error changing ComboBoxStyle.DropDownStyle.
2250 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2252 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2253 being fired if ControlStyles.UserPaint style is activated.
2256 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2258 * GridEntry.cs: Don't be so strict when setting the value -
2259 do not check if what we set is what we get.
2262 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2264 * XplatUIX11.cs: If there are no timers timeout should be 0
2267 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2269 * Control.cs: As a followup to invalidating implicit children when
2270 a control is invalidated, only invalidate them if they are in the
2273 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2275 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2277 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2279 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2281 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2283 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2284 * XplatUIWin32.cs: Made Win32DeleteObject public.
2286 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2288 * GridEntry.cs: Determine HasDefaultValue more strictly by using
2289 PropertyDescriptor.ShouldSerializeValue.
2292 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2294 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2295 in the classic theme.
2297 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2299 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2301 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2302 ScrollBarHasPressedThumbStyle.
2304 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2306 * TextRenderer.cs: Included some methods in the 1.1 profile.
2308 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2310 * Control.cs: When we make a control visible, it may have been
2311 previously visible and while it wasn't visible, the z-order of
2312 things may have been shuffled, so the control needs to have its
2313 z-order updated just in case. [Fixes bug #391518]
2315 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2317 * ThemeVisualStyles.cs: Added support for GroupBox.
2319 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2321 * GroupBoxRenderer.cs: Included in the 1.1 profile.
2323 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
2325 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2326 bug #389996; XSelectInput() behaved as mouse handler robber,
2327 so remove extra call to it.
2329 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2331 * Control.cs: Simplify ControlCollection.Contains method.
2333 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2335 * DataGridViewRow.cs: Implement GetPreferredSize.
2337 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2339 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
2341 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2343 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2344 painting and edit control fixes.
2346 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2348 * DataGridView.cs, DataGridViewCell.cs: Work around some external
2349 checks to make sure we are in an actual row/col for top left header cell.
2350 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2352 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2354 * Control.cs: Use long instead of int when handling WParam from
2355 mousewheel scrolling. Int was overflowing on Win64.
2357 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2359 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2360 flow panel without scrolling first, and then calculate the
2361 scrolling based on the new layout. [Fixes bug #390149]
2363 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2365 * ListBox.cs: Invalidate after scrolling up when selected index
2366 changes. [Fixes bug #390151]
2368 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2370 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2371 set, default height to 150. I tried first with DefaultSize, but this
2372 is not generating a SetBoundsCore call before handle creation time, so
2373 we can take it into account. This is just what .net does.
2375 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2377 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2378 as it broke some stuff. Calberto is filing a bug for eno to
2381 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2383 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2384 to 0 is the current value is -1, and if style is not Simple, just
2385 return, like .net does.
2386 Fixes part of #374713.
2388 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2390 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2391 progress bar stuffs, use doubles instead of ints to prevent
2392 overflow. [Fixes bug #389798]
2394 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2396 * XplatUIX11.cs, X11Keyboard.cs :
2397 Significant refactoring on XIM support. Now IM engine UI
2398 should show up, at mostly-correct preedit position.
2399 - Eliminated use of FocusWindow, as it is never mapped
2400 and hence blocks correct preedit position. XIC is now
2401 created per window, and it must be destroyed too when
2402 the window is destroyed.
2403 - WM_QUIT messages should not be filtered even when hwnd
2404 is zombie. Filtering it could cause endless loop.
2405 - Preedit position must move only when the window is alive.
2406 - Make it IDisposable and make sure to release XIM/XICs.
2408 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2410 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2411 XplatUIX11.cs, XplatUIWin32.cs :
2412 fix for bug #325033 and #387693;
2413 - WM_QUIT should not be sent when no running application
2415 - SetTimer/KillTimer (especially on win32) should be
2416 invoked for the window that the timer is/will_be attached.
2417 - There could be unattached timers to a window when it's
2418 started. For those timers, hold pending timers and when
2419 a window is mapped, attach them to it.
2420 - WaitForHwndMessage() could run into loop when
2421 WM_SHOWWINDOW is handled before this method is called.
2422 So, strictly check wm_showwindow state.
2423 - Tick handler should not be invoked while one Tick handler
2424 call is still running (introduced Busy state).
2426 2008-05-13 Andreia Gaita <avidigal@novell.com>
2428 * WebBrowserBase.cs: Override Internal alternative methods for
2429 SetBoundsCore and OnResize instead of the protected ones.
2430 * Control.cs: Move SetBoundsCore and OnResize implementations to
2431 SetBoundsCoreInternal and OnResizeInternal, so they can be
2432 overriden internally (WebBrowserBase needs to catch them but can't
2433 override the protected methods without api compat problems)
2435 2008-05-13 Andreia Gaita <avidigal@novell.com>
2437 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2439 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2442 * ListView.cs: Remove debug messages.
2444 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2446 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2447 area is empty. Also calculate scrollbars in Simple mode based in area
2448 height and total number of items, not in MaxDropDownItems.
2449 Fixes part of #371991.
2451 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2453 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
2455 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2457 * BindingSource.cs: GetListSortDescription is not public.
2459 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2461 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2463 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2465 * HtmlElement.cs: Fix parameter names to match MS.
2466 * HtmlWindowCollection.cs: Should not be sealed.
2468 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2470 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2471 button, because the thumb button will not get drawn if the scrollbar
2472 is disabled. [Fixes bug #389262]
2474 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2476 * ListBox.cs: Handle End key for multi-column listboxen.
2479 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2481 * ListBox.cs: Fix algorithm to determine which column our item is in.
2484 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2486 * ListBox.cs: Invalidate when the listbox is resized.
2489 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2491 * ListBox.cs: There is always at least one row in the ListBox (if
2492 we are doing these calculations.) [Fixes bug #389253]
2494 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2496 * ListBox.cs: There is always at least one column in the ListBox.
2499 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2501 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2502 ensure in Simple mode that the height is exactly the requested one.
2503 Also add the ComboBoxListControl to the controls collection in Simple
2504 mode even if handle hasn't been created.
2505 Fixes part of #371991.
2507 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2509 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2510 our ComboBox owner instead of giving it back to the previous control (
2511 as done in other controls). Also remove the empty override of Select
2512 method, since we want to be selected *and* give focus to our owner.
2513 This should let the user do keys-navigation in Simple mode.
2515 2008-05-10 Geoff Norton <gnorton@novell.com>
2517 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2518 problems with rapid scrolling of treeviews. Fixes #381084
2520 2008-05-10 Geoff Norton <gnorton@novell.com>
2522 * XplatUICarbon.cs: Deactivate the active window before
2523 activating the desired window. Completes fixing #386504
2525 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2527 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2528 SmallChange to the item size width plus the padding, to match .net.
2530 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2532 * FileDialog.cs: Apply the custom filter typed by the user in the file
2533 name combobox as much as possible while navigating in the file dialog.
2536 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2538 * Binding.cs: Actually use NullValue if the retrieved value of
2539 data source is null or DBNull. Makes a test pass.
2541 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
2543 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2544 * MimeIcon.cs: Provide a way to get icons from resources.
2546 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2548 * Binding.cs: When the value retrieved from the control to be assigned
2549 to the data source is null, actually use the 2.0 DataSourceNullValue
2550 value. Make pass a data binding test.
2552 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2554 * Control.cs: We need to invalidate implicit children even when
2555 invalidate is called with invalidatechildren = false. (Implicit
2556 children are really part of the parent.)
2557 * ListView.cs: Double-buffer internal child controls for less
2559 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2560 owner ListView subitems for greatly increased performance.
2563 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2565 * FileDialog.cs: When the user types a wildcard character in the
2566 filename combobox, update the contents of the folder using the text as
2568 Fixes part of #385261.
2570 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2572 * ListBox.cs: Various fixes for MultiColumn listboxen.
2575 2008-05-08 Andreia Gaita <avidigal@novell.com>
2577 * HtmlElement.cs: Implement Style property
2579 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2581 * ListBox.cs: Respect checkboxes when measuring item size.
2582 * ThemeWin32Classis.cs: When drawing list items, don't draw
2583 text outside of the item's bounds to prevent overlapping.
2584 (.Net actually overlaps, but that's just silly.)
2587 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
2589 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2590 Gert Driesen. Fixes bug #324830.
2592 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
2594 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2597 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2599 * BindingSource.cs: When calling IsSynchronized, return the value of
2600 the related IList list.
2602 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2604 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2607 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2609 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
2610 navigation to scroll the grid if the current cell is not visible.
2612 2008-05-07 Andreia Gaita <avidigal@novell.com>
2614 * HtmlElement.cs: Implement TabIndex
2616 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2618 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2619 properties, even when there are no items.
2622 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
2624 * NativeWindow.cs: Add support for multiple handles per window.
2625 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
2626 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
2627 directly - use FromHandle instead.
2630 2008-05-07 Andreia Gaita <avidigal@novell.com>
2632 * HtmlElement.cs: Implement InnerHTML setter
2634 2008-05-07 Andreia Gaita <avidigal@novell.com>
2636 * HtmlDocument.cs: Implement Focused
2638 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2640 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2641 methods, as well as add messages to the exceptions.
2643 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2645 * BindingSource.cs: Setting DataSource should only reset DataMember if
2646 the previous value was null (make pass a not working test).
2648 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2650 * BindingSource.cs: When EndInit call is postponed and is called until
2651 DataSource.EndInit is called, remove the handler for data source.
2653 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2655 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2657 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2659 * ToolStripManager.cs: Store references to toolstrips as
2660 weak references so they do not prevent forms from getting collected.
2663 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2665 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2666 on .Net. So do the same thing in WndProc.
2668 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2670 * TrackBar.cs: Commit patch from Andy Hume that corrects
2671 the clickable areas to better match .Net.
2674 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2676 * TrackBar.cs: Commit patch from Andy Hume that adds the
2677 ResizeRedraw control flag so the track bar repaints itself
2678 when it is resized. [Fixes bug #387072]
2680 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2682 * TrackBar.cs: Commit patch from Andy Hume that adds better
2683 support for keyboard navigation when the TrackBar is vertical.
2686 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2688 * BindingSource.cs: Implement ISupportInitializeNotification support.
2690 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2692 * ThemeVisualStyles.cs: Added support for ToolBar.
2694 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2696 * ToolBar.cs: Made the Vertical property internal.
2698 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2700 * ThemeVisualStyles.cs: Added support for TrackBar.
2702 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2704 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2705 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2706 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2707 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2708 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2709 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2711 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2713 * ThemeVisualStyles.cs: Added support for UpDownBase.
2715 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2717 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2718 Extracted Theme.UpDownBaseDrawButton.
2720 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2722 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2723 removed from the static toolstrips collection in ToolStripManager
2724 when they are disposed. Provides a workaround for bug #386483.
2726 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
2728 * GridEntry.cs: Read-only properties with Editor with
2729 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2732 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2734 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2735 the menu key and there are no items on the menu.
2738 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
2740 * Control.cs: Avoid calling ToString on a string.
2741 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2742 * GroupBox.cs: In FlatStyle property throw, not just create, the
2743 exception. Avoid calling ToString on a string.
2744 * ProgressBar.cs: Avoid calling ToString on a string.
2745 * ScrollBar.cs: Avoid calling ToString on a string.
2746 [All issues were found using Gendarme]
2748 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2750 * NotifyIcon.cs: Prevent click events to be trigger after double click
2751 events. Fixes remaining issues of bug #324832.
2753 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2755 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2756 to mimic win32 behavior. Partially fixes bug #324832.
2758 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2760 * BindingSource.cs: Implement Find methods.
2762 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2764 * BindingSource.cs: Implement Sort, ApplySort overloads, and
2767 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2769 * ListBindingHelper.cs: When calling GetListItemProperties and the
2770 passed object is ITypedList, return the result of
2771 ITypedList.GetItemProperties instead.
2773 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2775 * LinkLabel.cs: Set default value of name on constructor of Link class
2776 only for 2.0 profile.
2778 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2780 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2781 Fixes remaining issues of bug #346154.
2783 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2785 * LinkLabel.cs: Set a default value for name on internal contructor of
2786 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2788 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2790 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2791 and refer all instances to owner.links. Partially fixes #346154.
2793 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2795 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
2796 length equal zero. Also called CreateLinkPieces in constructor. It fixes
2797 the LinkLabel test 'TestLinkArea'.
2799 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2801 * Form.cs: Remove menu before close form to prevent form to be not gaced.
2804 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2806 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2809 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2811 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2814 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2816 * MenuAPI.cs: Remove unused ProcessCmdKey method.
2818 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2820 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
2823 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2825 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2828 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2830 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2831 sometimes we open a conext menu on mouse down of some controls and the mouse
2832 up is dispatched to menu and dont need to. It fix remaining issues of
2833 #363711 and other problems related to menu mouse click events.
2835 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2837 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2838 some var names to better fit changes, now we have month_menu and today_menu
2839 vars. Fixes bug #363711.
2841 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2843 * MonthCalendar.cs: Handle every right mouse click to open context menu,
2844 right now the default month menu but it will be change to have "Go to today"
2847 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2849 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2851 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2853 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2855 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2857 * ThemeVisualStyles.cs: Added support for TreeView.
2859 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2861 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2862 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2864 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2866 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2868 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2870 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2871 Implement 2.0 SP1 stuffs.
2873 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2875 * FileDialog.cs: Implement 2.0 SP1 stuffs.
2877 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2879 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2880 Implement CanEnableIme property. (2.0 SP1)
2882 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2884 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2887 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2889 * Control.cs: Provide an internal way for a control to override
2890 the setting of Height.
2891 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2892 set height using new method.
2894 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2896 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2898 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2900 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2901 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2903 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2905 * ThemeVisualStyles.cs: Added support for StatusBar.
2907 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2909 * DataObject.cs: Add the other IDataObject interface.
2911 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2913 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2914 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2916 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2918 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2919 * ListView.cs: Hide non-public API.
2920 * MaskedTextBox.cs: Remove extra attribute.
2922 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2924 * DataGridViewImageCell.cs: Use formatted value instead of value
2925 to calculate preferred size.
2927 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2929 * ListBox.cs: Move some initialization around so that selected_indices
2930 is not accessed before it is created.
2932 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2934 * InputLanguageCollection.cs: Implement the collection better.
2937 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2939 * ToolStripDropDownItem.cs: Get the correct event object for
2940 DropDownItemClicked.
2941 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2944 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2946 * DataGridViewRowCollection.cs: We don't currently support shared
2947 rows. Should fix test failures caused by previous commit.
2949 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2951 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2952 datagridview gets set. Only paint cells in visible columns.
2953 * DataGridViewCell.cs: Draw border after cell content.
2954 * DataGridView.cs: Invalidate after setting some properties. Only
2955 use visible columns. Fit hit test bug with areas in the col/row header
2956 area but not in a row or col. Implement UpdateCell/Row methods.
2958 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2960 * DataGridViewElement.cs: Don't throw NIEX.
2961 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2962 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2963 * DataGridViewCheckBoxColumn.cs: Implement ToString.
2964 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2965 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2966 if the user filled in the formatting Value, use it.
2968 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2970 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2973 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2975 * BindingSource.cs: Some corrections to Filter property, as well as
2976 setting it for our list when resetting it.
2978 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
2980 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2981 than the maximum. Fixes reopened bug #384182.
2983 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2985 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2986 Fixes remaining issues of #367490.
2988 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2990 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
2991 SystemInformation.WorkingArea to get max_screen value.
2993 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2995 * BindingSource.cs: Implement Filter and RemoveFilter.
2997 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2999 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3001 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3003 * X11Dnd.cs: When trying to convert data and we know we started the
3004 dnd loop, don't try to use the cached data if the loop is not running,
3005 which means that the data has been resetted.
3008 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3010 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3013 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3015 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3016 it to drawn off screen edge. Fixes bug #367490.
3018 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3020 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3021 menu position to have only one assignment of Location var.
3023 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3025 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3026 for this patch. Fixes bug #384115.
3028 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3030 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3031 the same. If LargeChange is zero, set a minimum size for the scroll
3032 thumb grip. [Fixes bug #384182]
3034 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3036 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3039 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3041 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
3043 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3045 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3046 patch from Ernesto).
3048 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3050 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3052 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3054 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3056 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3058 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3060 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3062 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3064 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
3066 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
3068 2008-04-27 Andreia Gaita <avidigal@novell.com>
3070 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
3071 supposed to return a reference to an mshtml interface, which we
3073 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
3074 reference to an mshtml interface, which we don't support). Code
3076 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
3077 DomDocument getter (it's supposed to return a reference to an
3078 mshtml interface, which we don't support). Code formatting cleanup.
3080 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3082 * ListView.cs: Ouch, forgot to commit.
3084 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3087 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
3089 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3091 * ListView.cs: When calculating box selection for virtual mode, don't
3092 look for intersection with item's text, but item bounds, since that
3093 would mean read ListViewItem's text for _every_ item, and that's
3094 something we just can't do in virtual mode (items are only requested
3097 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
3099 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
3100 partial support for managed windows (based on the patch from Ernesto).
3102 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3104 * ListView.cs: When doing a key search use FindItemWithText method
3105 instead of doing the search by ourselves, this way we avoid
3106 duplicating the code and also we handle the special case for virtual
3107 mode. To achieve that make our private overload of FindItemWithText
3108 internal and also have a 'roundtrip' parameter.
3110 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3112 * ListView.cs: When doing the layout don't request the
3113 ListViewItem instance if we are in virtual mode (since we can't request it
3114 until the item is actully drawn).
3116 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3118 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
3121 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3123 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
3124 the patch from Ernesto).
3126 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3128 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
3129 * ThemeVisualStyles.cs: Added.
3131 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3133 * IDeviceContext.cs: Added a missing using.
3135 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3137 * ButtonBase.cs: Made IsDefault protected internal.
3138 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
3140 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3142 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
3143 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
3144 RadioButtonRenderer.cs: Included in the 1.1 profile.
3145 * IDeviceContext.cs: Added.
3146 * TextRenderer.cs: Included a member in the 1.1 profile.
3148 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3150 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
3152 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3154 * ErrorProvider.cs: Make the error icons come after the control
3155 they refer to. It isn't the way the MS does it, but its better
3156 than what we were doing. See bug #368587.
3158 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3160 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
3161 from Eric Albright that lazy loads the input language as ensures
3162 everything gets properly initialized. Fixes bug #373871.
3164 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3166 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
3167 implicit mnemonics. [Fixes bug #383000]
3169 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3171 * X11Dnd.cs: When canceling the operation, automatically restore the
3172 default cursor - normally the default cursor is restored when the
3173 mouse buttons are released, but we should be able to restore it even
3174 if the buttons are still pressed (for example, when pressing ESC to
3178 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3180 * X11Dnd.cs: When starting a new drad and drop operation, set control
3181 field to null, just as the other fields, to avoid calling any
3182 operation on a previous control. Also, when calling DndLeave on a
3183 control, set it to null, thus we don't fire that event multiple times
3187 2008-04-23 Geoff Norton <gnorton@novell.com>
3189 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3190 the whole_window object. Fixes #377084.
3192 2008-04-23 Andreia Gaita <avidigal@novell.com>
3194 * HtmlElement.cs: Implement RaiseEvent (event injection into the
3197 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
3199 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3201 2008-04-23 Andreia Gaita <avidigal@novell.com>
3203 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3206 2008-04-23 Andreia Gaita <avidigal@novell.com>
3208 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3211 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3213 * X11Dnd.cs: When the drop was cancelled, or could just not be
3214 performed, return DragDropEffect.None always (match .net).
3216 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3218 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3220 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3222 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3224 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3226 * DataGridView.cs: Add support for error icon tool tips.
3227 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3228 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3230 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
3232 * X11Structs.cs: Add mouse button masks enum.
3233 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
3234 WM_EXITSIZEMOVE only once at the beginning and at the end of the
3235 form resize/move operation instead of for each step of it.
3236 [Fixes bug #346529 for the x11 backend]
3238 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3240 * DataGridView*: Implement support for drawing error icons.
3242 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3244 * TreeView.cs: Make vbar and hbar internal.
3245 * TreeNode.cs: If collapsing the node removes one of the TreeView's
3246 scrollbars, invalidate the whole thing.
3249 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3251 * TreeView.cs: Calling Sort() sets Sorted = true.
3252 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3253 if the nodes need to be sorted.
3256 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
3258 * Form.cs: Fire SizeChanged for both when the form is minimized and
3260 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
3261 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3263 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3265 * ComboBox.cs: If the combobox is disabled, draw a disabled
3266 background before painting anything else.
3269 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3271 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3272 forget to send a Leave event to the target window - just as .net does
3273 when cancelling dnd operations.
3275 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3277 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3278 soon as possible - this happens when we send the drop message to the
3279 target window. This way we avoid firing any DragOver _after_ drop finished.
3282 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3284 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3285 * Form.cs: Handle form minimization as a special state, where size doesn't
3286 change, but we have to fire SizeChanged.
3287 [Fixes bug #325122 for the win32 and x11 backends]
3289 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3291 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
3292 if the handle is disabled.
3295 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3297 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
3298 for forms with FormBorderStyle.None.
3301 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3303 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
3305 [Fixes bug #346529 for the X11 backend]
3307 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3310 - Send a mouse Enter message after say dragging the mouse with a
3311 button down and then release it in another client.
3312 - Reset the cursor to prevent X11 from remembering it and setting it
3313 before the control gets WM_SETCURSOR.
3314 - Qeueue a mouse move after a mouse enter like win32.
3317 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3319 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
3320 It's sent when the form gets moved, resized, closed.
3321 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3322 [Fixes bug #359193 for X11]
3324 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3326 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
3329 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3331 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
3332 group. Fixes the 1.1 build.
3334 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3336 * ListView.cs: Use display indexes for selection in Details view, as
3337 well as do the proper layout based on display indexes for that view
3340 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3342 * ListView.cs: Focused item information is now stored as a display
3343 index, and display indexes are used all over the place for selection,
3344 instead of ListViewItem.Index values, which doesn't give us enough
3345 information to modify the selection in groups mode, and was broken.
3347 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
3349 * Control.cs: Do not fire MouseDown if validation of the control has
3351 * Form.cs: Validate the form before closing.
3352 [Fixes bugs #330501 and #353310]
3354 2008-04-18 Andreia Gaita <avidigal@novell.com>
3356 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3357 CreateWebBrowserSiteBase implementations
3358 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3359 Style and TabIndex setters
3361 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3363 * ListViewGroup.cs: When returning the actual item count, return the
3364 proper count for default group.
3367 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3370 * ListViewGroup.cs: When calculating groups layout, get the actual
3371 number of items per group, since groups added to the group BUT not
3372 added to the ListView are just ignored, and can cause some nasty
3373 exceptions because of the lack of synchronization. Also for
3374 ListViewGroup don't use lazy initialization for items, since we
3375 the common scenario is to use it always - and it helps us to refactor
3376 and clean the .ctor overloads.
3378 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3380 * ListView.cs: When adding an item to a ListViewItemCollection
3381 belonging to a group (ListViewGroup.Items), don't generate a redraw if
3382 the added item hasn't beeen previously added to the ListView instance
3383 refered by the group, since it will be ignored. This should avoid some
3384 really nasty flickering.
3386 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3388 * ListView.cs: When accessing an item in a specific display
3389 position, use the helper method GetItemAtDisplayIndex, instead of
3390 direct access to the reordered_items_indices array. When doing layout
3391 for groups set the correct Items index for the display position (since
3392 in groups mode items don't have the same position as in Items
3394 * ListViewGroup.cs: Add a field to store the starting item number,
3395 which is later used when calculating the layout.
3399 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
3401 * Application.cs: Fixed ProductVersion to fallback to the assembly
3402 version. Fixes regression for bug #325413.
3404 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3406 * ListView.cs: New helper method to retrieve an item in a _specific
3407 display_ position (the items can be displayed in a different order
3408 than one of Items collection).
3409 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3410 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3411 specific display position (again remember that items can be sorted
3412 different than Items).
3414 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3416 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3417 list and update it when the collection changes. We were recreating
3418 this several times per row paint and for every pixel the mouse moved
3420 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3423 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3425 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3426 list to use generics.
3427 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3428 and remove unneccessay casts.
3430 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3432 * DataGridViewBand.cs: Add internal way to set displayed variable.
3433 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3434 * DataGridView.cs: Make sure we always keep track of Displayed
3435 rows and columns, and only draw things that are displayed.
3437 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
3439 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3440 whether the key events are filtered or not. Introduced
3441 PreFilter() process for this purpose. This fixes atokx3/iiimx
3444 2008-04-16 Andreia Gaita <avidigal@novell.com>
3446 * HtmlHistory.cs: Implement Length property
3448 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
3450 * DataGridView.cs: Call EndEdit when a sort is performed so we take
3451 away the edit textbox. Refactor to reuse column sort code.
3453 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
3455 * MenuAPI.cs: Remove the code that save and restore capture status of
3456 grab_control, this fixes some Menu and Context menu bugs but maybe it can
3457 cause some others, I cant figure the possible problems of this patch but
3458 right now remove the code looks to be better than keep it. This patch fixes
3459 bugs #357638, #378721 and #379570.
3461 2008-04-12 Andreia Gaita <avidigal@novell.com>
3463 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3464 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3465 add missing properties and event handlers.
3467 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
3469 * ListBox.cs: Make sure the LargeChange we are setting is at least
3470 zero, to prevent an IOORE. [Fixes bug #379531]
3472 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
3474 * ComboBox.cs: Support item navigation by entering text. Firstly,
3475 in DropDownList mode, for each key-press select the next item
3476 starting with that letter.
3477 For other modes, when no item selected, on arrow-up/-down and open
3478 drop-down select the first item matching the text in the textbox.
3480 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
3482 * X11Keyboard.cs : Control.FromHandle() could return null
3483 in MoveCurrentCaretPos().
3485 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3487 * ListView.cs: When changing the size in VirtualMode, also Reset the
3489 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3490 changing selection info for VirtualMode.
3493 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3495 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3496 view, don't use LineLimit for the first item - use NoWrap *always*
3497 instead, since ListView.LabelWrap is not used for this view.
3500 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3502 * Binding.cs: Call UpdateIsBinding when setting control - probably
3503 Binding is already usable and we don't need to wait to check the
3504 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3505 Created, just like 2.0 does.
3506 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3508 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3510 * Binding.cs: Just realized we don't need to have a handler for
3511 BindingContextChanged, since this info should be now consumed directly
3512 in the BindingManagerBase. And also, the manager.IsBindingSuspended
3513 state info is checked directly, instead of caching it.
3515 * CurrencyManager.cs: IsSuspended should return always false if Count
3518 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3520 * Binding.cs: When calling PushData, return if manager.Count == 0,
3521 since we just don't have data to be read. Also, when setting the
3522 Control for binding, hook up some events to refresh the IsBinding
3523 state when BindingContext change or control gets created; use
3524 Control.IsHandleCreated instead of Control.Created check to set
3525 IsBinding state - we *actually* need to modify IsBinding when control
3526 is created, but we don't have any Created event, only HandleCreated.
3527 Fixes part of #349364.
3529 2008-04-11 Geoff Norton <gnorton@novell.com>
3531 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
3532 warping a null Caret.
3534 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3536 * DataGridView.cs: Implement row/column autosizing methods. Implement
3538 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3539 * DataGridViewRowCollection.cs: Add an internal sorting method.
3541 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3543 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3544 value in ListView drawing code.
3546 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3548 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3549 is clicked. Respect the user setting Cancel in FileOk.
3551 2008-04-11 Geoff Norton <gnorton@novell.com>
3553 * ListView.cs: Avoid setting and resetting control Width/Heights and
3554 calculate the final value and set it once. Prevents a feedback loop
3557 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3559 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3562 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
3564 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3565 Add some on-the-spot code, but it seems we don't need it.
3567 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3569 * Form.cs: Add method for DataGridView to trigger focus cues
3570 even when it handles the tab keypress.
3572 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3574 * DataGridView.cs: More keyboard handling, tab, esc.
3575 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3576 when at the beginning or end of the text in the text box.
3578 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3580 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3582 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3584 * DataGridView.cs: Some fixups for showing and adding the edit control.
3585 * DataGridViewButtonColumn.cs: Implement ToString.
3586 * DataGridViewCell.cs: Size and position the control simultaneously.
3587 * DataGridViewTextBoxCell.cs: Use base to position control.
3589 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3591 * DataGridViewCell.cs: Fix up some formatting and painting code.
3592 * DataGridViewImageCell.cs: Implement some NIEX methods.
3594 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3596 * ToolStripItemCollection.cs: What moving an item from one owner
3597 to another, remove from source owner before adding to destination.
3600 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3602 * PictureBox.cs: Call Load when ImageLocation is set.
3605 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
3607 * X11Keyboard.cs, XplatUIX11.cs :
3608 Implement over-the-spot mode (with some odd offsets).
3609 - set preedit position when caret is set.
3610 - Wrap XMoveResizeWindow() to move preedit position.
3612 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3614 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3617 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3619 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3620 and ScanTableIndex public, it fix compilations errors when compiling
3621 WinForms to generate keyboard layout resources.
3623 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3625 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
3626 different element count than scan table. It prevents some errors in non
3629 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3631 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3633 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3635 * DataGridView.cs: Call OnContentClick.
3636 * DataGridViewCell.cs: Do a null check on ValueType instead
3638 * DataGridViewCheckBoxCell.cs: Implement.
3640 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3642 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3644 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3646 * X11Keyboard.cs : Check XGetIMValues() return value in
3647 case it does not return input styles in some environment.
3649 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3651 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3653 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3655 * BindingContext.cs: Stub UpdateBinding method.
3657 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
3659 * X11Structs.cs : added couple of structs for XIM support.
3661 Release XIM in case it failed to create XIC.
3662 Use consts for XNblah string.
3663 Add support for IM style customization and XIC creation
3664 for preedit-position and preedit-callback.
3665 Right now use MONO_WINFORMS_XIM_STYLE environment variable
3666 (list of: over-the-spot | on-the-spot | root). Only root
3669 (redoing r99172 with fix.)
3671 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3673 * TreeView.cs: Center the checkbox a little better.
3675 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3677 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3678 Apply very nice patch from Ernesto Carrea that simplifies our
3679 scrollbar drawing. [From bug #376146]
3681 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3683 * TreeView.cs: Correct the location of the root node checkbox when
3684 ShowRootLines = false. Don't draw the root lines for the root node
3685 when ShowRootLines = false. [Fixes bug #377535]
3687 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3689 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3691 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3693 * MaskedTextBox.cs: Added missing attribute. Code formatting.
3694 * PageSetupDialog.cs: Added missing attribute. Code formatting.
3695 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3696 * ImeMode.cs: Added missing field.
3697 * HtmlWindow.cs: Code formatting. Fixed line endings.
3698 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3700 * HtmlHistory.cs: Code formatting. Fixed line endings.
3701 * HtmlDocument.cs: Code formatting. Fixed line endings.
3702 * ToolStripPanel.cs: Added missing IList implementation.
3703 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3705 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3707 * BindingContext.cs: Changed argument names to fix corcompare errors.
3708 * DataGridView.cs: Removed extra explicit interface implementation
3709 of IDropTarget. Code formatting.
3710 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3711 * ComboBox.cs: Changed argument names to fix corcompare errors.
3712 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3714 * GridColumnStylesCollection.cs: Changed argument names to fix
3715 corcompare errors. Removed extra tabs.
3716 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3718 * Control.cs: Changed argument names to fix corcompare errors. Code
3719 formatting. Removed extra explicit IList implementation.
3720 * TextBox.cs: Changed argument names to fix corcompare errors. Code
3721 formatting. Use string.Empty instead of "".
3722 * GridItemCollection.cs: Changed argument names to fix corcompare
3723 errors. Code formatting.
3724 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3725 corcompare errors. Code formatting.
3726 * ImageList.cs: Changed argument names to fix corcompare errors.
3727 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3728 * DataGridViewRowCollection.cs: Changed argument names to fix
3729 corcompare errors. Code formatting.
3730 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3731 * DataGridViewSelectedCellCollection.cs: Changed argument names to
3732 fix corcompare errors. Code formatting.
3733 * DataGridViewComboBoxCell.cs: Changed argument names to fix
3734 corcompare errors. Code formatting.
3735 * LinkLabel.cs: Changed argument names to fix corcompare errors.
3736 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3738 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3740 * BindingSource.cs: Changed argument names to fix corcompare errors.
3741 Removed extra explicit interface implementations.
3742 * DataGridViewSelectedRowCollection.cs: Changed argument names to
3743 fix corcompare errors. Code formatting.
3744 * ToolStripItemCollection.cs: Removed extra explicit interface
3745 implementation of IList.ReadOnly.
3746 * DataGridViewColumnCollection.cs: Changed argument names to fix
3747 corcompare errors. Code formatting.
3748 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3749 * ListView.cs: Changed argument names to fix corcompare errors.
3750 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3752 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3754 * ListBindingHelper.cs: Changed argument names to fix corcompare
3756 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3757 fix corcompare errors. Code formatting.
3758 * ToolStripPanel.cs: Removed extra explicit implementation of
3759 IDropTarget interface.
3760 * ListBox.cs: Changed argument names to fix corcompare errors. Code
3761 formatting. Removed extra tabs and spaces.
3762 * DataGridViewCellCollection.cs: Changed argument names to fix
3764 * Help.cs: Changed argument names to fix corcompare errors. Code
3766 * TabControl.cs: Changed argument names to fix corcompare errors.
3767 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3769 * TableLayoutSettings.cs: Changed argument names to fix corcompare
3772 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3774 * ListBindingHelper.cs: When returning properties, only return those
3775 that are browsable. Also, don't do a linear search of the properties,
3776 but use the indexer of the PropertyDescriptorCollection class.
3778 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3780 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3781 Dictionary containing the related (child) currency managers. Also,
3782 when setting DataSource, add datasource to our List if it is not a list.
3784 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3786 * PropertyGridTextBox.cs: Fix background color of the buttons.
3787 * PropertyGridView.cs: Make the entry less jumpy.
3789 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3791 * PropertyGrid.cs: Fix unused variable warnings.
3793 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3795 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
3796 double-click. It expanded it once in the mouse down and then
3797 again in the double-click handler.
3799 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3801 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
3802 TypeConverter and UITypeEditors.
3804 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3806 * Control.cs: Visibility should be set synchronously,
3807 so we must also redraw once it is and not rely on layouting or
3808 other code to repaint.
3811 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
3813 * DataGridViewCell.cs: Respect DataGridView.GridColor.
3815 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3817 * Control.cs: Invalidate when the alpha channel is less than 255,
3818 not only when control is transparent.
3820 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3822 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3823 Implement some painting convenience methods that threw NIEX.
3825 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3827 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3828 * DataGridViewLinkCell.cs: Implement.
3830 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3832 * GridEntry.cs: Report the conversion exception error description.
3835 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3837 * PropertyGridView.cs: Do not scroll to item on resize.
3840 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3842 * BindingContext.cs: When retrieving a BindingManagerBase, if the
3843 dataSource parameter is ICurrencyManagerProvider, then return
3844 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3845 instead of creating a new one.
3847 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3849 * BindingSource.cs: Implement support for Type instances as
3852 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3854 * DataGridView.cs: Minor cleanups and call CellMouseUp.
3855 * DataGridViewCell.cs: Make some painting routines internally virtual.
3856 * DataGridViewButtonCell.cs: Implement.
3858 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3860 * Control.cs: We always need to invalidate our children with
3861 transparent backgrounds when we are invalidated.
3864 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3867 and CancelCurrentEdit on CurrencyManager respectively. Implement
3868 support for ICancelAddNew too.
3870 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3872 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3873 call EndNew/CancelNew if list is ICancelAddNew.
3875 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3877 * DataGridView.cs: Guard against an exception while painting
3878 if there are no rows.
3880 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3882 * DataGridView.cs: Implement a bunch of keyboard commands.
3884 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
3886 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
3887 isn't set, don't call OnPaint. [Fixes bug #375300]
3889 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3892 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3893 hookup the remaining events related to CurrencyManager, and fire
3894 OnListChanged also for the Clear () method.
3896 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3898 * BindingSource.cs: Use Current and Position implementations in
3899 CurrencyManager instead of using our own routines, since we need
3900 to be in synch with it. Count should NEVER return a -1 value, and
3901 also report ListChanged events for both simple IList data
3902 sources (manually) as well for IBindingList ones (by hooking up an
3903 event handler for it).
3905 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3907 * BindingSource.cs: Make one .ctor call the another, to avoid
3908 duplicate code. Add the CurrencyManager property, and also for AddNew
3909 throw the proper exceptions and show better error messages.
3911 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3913 * ComboBox.cs: Only adjust selectedindex if Handle has been
3914 created. Fixes failing test.
3916 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3918 * ComboBox.cs: Adjust selectedindex if we insert a new item
3919 above the current selectedindex in a sorted ComboBox.
3922 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3924 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3927 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3929 * DataGridViewTextBoxCell.cs: Implement stuffs.
3931 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3933 * TreeView.cs: Create the scrollbars even earlier to be
3934 double dog certain they are created before they are accessed.
3936 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3938 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3940 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3942 * ScrollBar.cs: Create an internal safe Value setter so we
3943 won't crash if we try to set a value outside the min and max.
3944 * TextBoxBase.cs: Use safe value setter to guard against a
3945 potential NRE that is being reported by Reflector.
3947 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3949 * TreeView.cs: Create the scrollbars earlier in the constructor
3950 to attempt to guard against an NRE in SetTop in Reflector.
3952 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3954 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3955 DataGridViewRowCollection.cs: Do not scroll column and row headers,
3956 show messagebox on data format error, use column display index
3957 correctly, make sure HitTest supports new layout stuff,
3958 make sure scrollbars support new layout stuff.
3960 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3962 * XplatUIX11.cs : Patch by Doug Rintoul.
3963 For some IM engines, keypress events need to delay call
3964 to XPending() and XNextEvent() in the loop so that it
3965 does not mess the orders in XIM commit callback.
3966 Some KeyRelease events such as shift keys need to be
3967 processed both in the IM engine and winforms driver
3968 itself since winforms holds its own state check.
3970 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3972 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3974 * X11Keyboard.cs, XplatUIX11.cs :
3975 add primitive support for XIM input support (preedit-
3976 nothing and status-nothing). It requires precise event
3977 capturing (XSelectInput/"filterEvents") and different
3978 call to XFilterEvent against root window.
3979 Get composed string and send dummy WM_IME_COMPOSITION.
3980 Free XIM and XIC instances in finalizer.
3982 (This first patch does not include suggested changes
3983 by Doug Rintoul. It will follow.)
3985 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3987 * DataGridView.cs: When binding to a property, if the property
3988 doesn't have a setter, set the column to readonly.
3991 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3993 * ComboBox.cs: Guard against NRE if an arrow key is hit while
3994 we aren't dropped down. Support Home/End in DropDownList mode.
3997 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3999 * TreeNodeCollection.cs: Don't increment count until we've
4000 saved our index to return.
4003 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4005 * Label.cs: Add padding to the label's AutoSize calculation.
4008 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010 * ListBindingHelper.cs: Actually implement GetListName method.
4012 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4014 * BindingSource.cs: Throw the propert expceptions for some methods, as
4015 well as detect the list item type for Add method if DataSource is null.
4017 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4019 * DataGridViewCell.cs: I don't know why I commented this out,
4020 putting it back for now.
4022 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4024 * DataGridViewCell.cs: Remove storage for owning column, just
4026 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4027 * DataGridViewColumnHeaderCell.cs: If the header text has been
4028 explicitly set, return it.
4031 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4033 * DataGridViewRowCollection.cs: Disable row sharing when
4034 using data binding. Its a great feature, but lets work on
4035 getting DGV usable first before we worry about optimizations.
4037 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4039 * BindingSource.cs: When resetting our internal list, compute list
4040 item type information to be used for indirect list access. Also
4041 implement/tune some properties and methods related to the list access
4043 * ListBindingHelper.cs: Add a stub for GetListName method, used from
4046 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4048 * DataGridView.cs: If RowCount is increased while ColumnCount
4049 is zero, add a column. [Fixes bug #331649]
4051 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4053 * DataGridViewRowCollection.cs: When adding new rows for
4054 databinding, make sure they are place before the add row.
4057 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4059 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4060 instead of Index order.
4062 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4064 * DataGridView.cs: If columns are added by increasing ColumnCount,
4065 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
4068 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4070 * DataGridView.cs: Turn off and on the "new row" when
4071 AllowUserToAddRows is toggled. When the handle is created,
4072 set current cell and selected cell/row/col.
4074 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4076 * ComboBox.cs: When navigating the drop down by keyboard, we
4077 need to scroll the list box if our selection moves out of the
4078 currently shown items. [Fixes bug #371990]
4080 2008-03-24 Luke Page <luke.a.page@gmail.com>
4082 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
4083 on the control. Also now handles unicode compatibility characters and
4084 stores the unicode compatibility length on the stack. Fixes Bugs
4085 #355198 and #366436.
4087 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4089 * BindingSource..cs: Take into account DataMember when re-creating the
4090 List property, and also create a specific kind of list as needed.
4092 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4094 * ListBindingHelper.cs: Add a new case for GetList () method - when we
4095 get an empty IEnumerable, try to detect whether the datamember is
4096 valid or not for that type, if true, return null, and throw exception
4099 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
4101 * ComboBox.cs: Alt-Down should drop down the list, Esc should
4102 retract it. [Fixes bug #371989]
4104 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4106 * PropertyGrid.cs: Initialize the sorting button as pushed.
4108 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4111 - Visually select the PropertyTab.
4112 - Filter Properties by Attributes properly.
4114 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4116 * MenuItem.cs: Remove menu item from parent when disposed.
4119 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4121 * ToolBar.cs: Don't reset layout_type if Dock = None.
4123 2008-03-21 Andreia Gaita <avidigal@novell.com>
4125 * UserControl.cs: Select the first available control when we get focus.
4128 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4130 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
4131 the content if we are in edit mode. [Fixes bug #343964]
4133 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4135 * DataGridViewCell.cs: Fix border painting for column headers.
4137 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4139 * BindingSource.cs: When setting or resetting data source,
4140 use ListBindingHelper.GetList () method, since it will get the list in
4141 case datasource is IListSource.
4143 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4145 * DataGridViewCell.cs: Implement lots more stuffs.
4147 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4149 * PropertyGridView.cs, GridEntry.cs: Implement support for
4150 UITypeEditor.IsDropDownResizable.
4152 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4154 * DataGridViewCell.cs: Remove unused variables, improve how
4155 several of the property getters work.
4156 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
4157 get its size from the parent row/col.
4159 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4161 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
4162 user alters manually the PropertyTabs collection via the
4163 PropertyTabs property.
4165 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4167 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
4168 new tests for them to be sure to be compatible with .net.
4170 2008-03-20 Andreia Gaita <avidigal@novell.com>
4172 * WebBrowserBase.cs: Fix attributes, add events
4173 * WebBrowser.cs: Fix Padding signature
4175 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4177 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4179 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
4181 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4182 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4183 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4184 passes the new suite of tests for it.
4186 2008-03-18 Andreia Gaita <avidigal@novell.com>
4188 * WebBrowser.cs: Add missing attributes, missing Padding and
4189 DefaultSize properties, remove extraneous getters
4191 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4193 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4196 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4198 * ComboBox.cs: Move resetting the selected index to keypress
4199 instead of textchanged. Changing the text programmatically
4200 should not trigger resetting the selected index. Fixes test.
4202 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4204 * ComboBox.cs: When the user types into the textbox, reset
4205 the selected index to -1. [Fixes bug #371672]
4207 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4209 * FileDialog.cs: Support Control-A for selecting everything
4210 in an OpenFileDialog. [Fixes bug #371564]
4212 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
4214 * DataGridView.cs: When row/column visible/height properties
4215 change, invalidate. Take the NIEX out of InvalidateRow/Column
4216 etc. We don't support them yet, but we can just invalidate
4217 everything until we do support them. (Added MonoTODO). Set
4218 proper control styles.
4219 * DataGridViewRow.cs: Don't call PaintHeader if row headers
4222 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4224 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4226 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4228 * DataGridViewRow.cs: Only paint the white background in
4229 cell bounds, the row bounds extends past the cells if the
4230 grid width isn't as wide as the DGV.
4232 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4234 * DataGridView*: Completely revamp the drawing to match the
4235 public API. Our grids now look better, and call all the
4236 appropriate methods and event to allow users to override
4237 the painting and do their own.
4239 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4241 * ListBindingHelper.cs: Implement 2.0 GetList methods.
4243 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4245 * DataGridView.cs: Implement BorderStyle.
4247 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4249 * FileDialog.cs: Apply patch from Andy Hume: Any time we
4250 are comparing attributes, make sure we only look at the
4251 one we are interested. These calls were failing if there
4252 were more than one attribute.
4255 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4257 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4259 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4261 * PageSetupDialog.cs: Stub EnableMetric.
4262 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4263 * PrintPreviewDialog.cs: Add ProcessDialogKey,
4266 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4268 * MonthCalendar.cs: Remove unused variable.
4270 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4272 * DataGridView*.cs: corcompare stuffs.
4274 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4276 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4277 The savings aren't worth the extra code to fix the optimization.
4280 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4282 * ToolBar.cs: Always call base.Dock in the Dock override so that
4283 Control's layout_type gets reset correctly.
4286 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
4288 * X11Dnd.cs: End DnD operation also for the middle mouse button.
4290 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4292 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4293 at the same time we do explicit ones, because we have to give all
4294 other controls on the container a chance to handle explicit ones
4295 first. If no one has an explicit mnemonic, then we can let the
4296 MenuStrip have a shot at implicit mnemonics.
4297 * MenuStrip.cs: Create an implicit mnemonic function.
4298 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4299 mnemonics for MenuStrips.
4302 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4304 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4305 DataGridColumnStyle.cs: corcompare stuffs.
4307 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4309 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4310 Details - This is needed after we added the bits to use any available
4311 column also for List and SmallIcon view.
4313 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4315 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4316 at the proper place, not only when changing SelectedIndex and changing
4317 the selection using keys/mouse, as .net does.
4319 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4321 * ControlBindingsCollection.cs: Implement last 2.0
4322 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4323 in the new 2.0 Add methods.
4325 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4327 * ListBox.cs: When calling SelectedIndexCollection.Clear,
4328 return if no items are previously selected - this is done to avoid
4329 firing OnSelectedIndexChanged without need to do so. Also,
4330 when creating handle ensure that the focused item is visible (as
4333 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4335 * ListBox.cs: Rewrote/refactored most of selection code. We require
4336 the following things in selection: a) keep selection sorted (both
4337 indices and items), b) SelectedIndices automatically detect the
4338 selection mode, c) SelectedIndex should be the first selected item
4339 index, d) Need to Focus/adjust scroll bar when selecting a new item,
4340 not only for SelectedIndex, which is specially important in Multi*
4341 selection modes. To achieve this we are moving the selection core to
4342 SelectedIndexCollection and make depend all selection modifications on
4346 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4348 * ToolStrip.cs: Enable implicit mnemonics for drop down
4349 menu strips. [Fixes part of bug #367692]
4351 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4353 corcompare - fix parameter names [stragglers].
4354 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4355 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4358 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4360 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4361 was a mnemonic pressed as well as Alt. Also, if nothing handles a
4362 mnemonic, let the ToolStripManager have it even if it doesn't
4363 have a matching mnemonic.
4366 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4368 corcompare - fix warning about implicit implementation
4369 * ToolStrip.cs: Add IToolStripData interface.
4370 * IToolStripData.cs: Add.
4372 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4374 corcompare - fix warning about implicit implementation
4375 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4378 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4380 corcompare - fix parameter names [N-Z].
4381 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4382 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4383 PropertyManager.cs, RichTextBox.cs,
4384 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4385 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4386 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4387 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4388 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4389 ToolStripContentPanel.cs, ToolStripDropDown.cs,
4390 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4391 ToolStripPanel.cs, ToolStripSeparator.cs,
4392 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4393 UICuesEventHandler.cs, UpDownBase.cs.
4395 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4397 corcompare - fix parameter names [G-M].
4398 GridColumnStylesCollection.cs, GridItemCollection.cs,
4399 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4400 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4401 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4402 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4403 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4405 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4407 corcompare - fix parameter names [A-F].
4408 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4409 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4410 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4411 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4412 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4413 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4414 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4416 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4418 * GridEntry.cs: Do not convert not only if the types match,
4419 but also if the property type is assigneable from the value's
4423 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4425 * PropertyGridView.cs:
4426 - Subscribe to the listbox only once and not everytime.
4427 - Update the textbox even if SetValue fails.
4428 - Close the listbox before calling TrySetValue just in case.
4431 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
4433 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4435 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4437 * ListView.cs: Implement support for custom column width based on
4438 Columns collection (we were previously using this collection only
4442 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * ListViewItem.cs: For Tile view, always set bounds for the first
4445 subitem (which is the main one), and also don't let Width be larger
4446 than ListView.TileSize.Width. Improve code readibility also.
4447 * ThemeWin32Classic.cs: When painting the ListViewItem instances
4448 in Tile view, _always_ use the NoWrap flag.
4451 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
4453 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
4455 * GridEntry.cs: For MS compitability make all child properties
4456 readonly if the parent is readonly. Ugh.
4457 [Fixes bug #365945 and #365944]
4459 2008-02-29 Andreia Gaita <avidigal@novell.com>
4461 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4462 relative to the history
4464 2008-02-29 Andreia Gaita <avidigal@novell.com>
4466 * HtmlElement.cs: More handlers for mouse and key events
4468 2008-02-28 Andreia Gaita <avidigal@novell.com>
4470 * WebBrowserBase.cs: MouseClick sig changed.
4471 * HtmlHistory.cs: Implement history navigation
4472 * HtmlElement.cs: Add event handlers, and connect them.
4474 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
4477 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4478 so that DisplayNameAttribute doesn't get ignored.
4479 - Check for ParenthesizeNameAttribute and parenthesize the Label.
4480 - Add support for PasswordPropertyTextAttribute
4481 * PropertyGridView.cs: Check if an entry is a password.
4482 [Fixes bugs #365589, #365586, #365588]
4484 2008-02-28 Andreia Gaita <avidigal@novell.com>
4486 * PropertyGridView.cs: Revert the message filtering change, as we
4487 need it to block after all. Remove block parameter, unnecessary.
4489 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
4491 * UserControl.cs: Better implementation of GetPreferredSize.
4492 First step to fixing bug #361441.
4494 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4496 * Binding.cs: Actually implement data binding support for
4497 classes implementing IBindableComponent.
4498 * ControlBindingsCollection.cs: Likewise.
4500 2008-02-26 Andreia Gaita <avidigal@novell.com>
4502 * PropertyGridView.cs: Use a message filter to check when to
4505 2008-02-26 Andreia Gaita <avidigal@novell.com>
4507 * Application.cs: Change the message_filters loop so a filter
4508 can be removed while looping.
4510 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
4512 * GridEntry.cs: Optimization in ToggleValue so that it caches
4514 * PropertyGridView.cs: An optimization so that the property isn't
4515 re-read twice for each StandardValue added to the drop-down menu.
4516 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4520 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
4522 * Application.cs: Apply patch from Justin Cherniak to match
4523 MS better for ProductName, ProductVersion, and CompanyName.
4526 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4528 * Binding.cs: Actually implement 2.0 NullValue property. Also
4529 when changing the formatting related properties, only update the state
4530 if formatting_enabled is true (we don't mind otherwise).
4532 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
4534 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4537 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4539 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
4540 of GetType on the current value as it uses reflection to
4541 determine the type. This fixes the case where the new value is
4544 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4546 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4549 2008-02-24 Luke Page <luke.a.page@gmail.com>
4551 * Line.cs, TextControl.cs: Implement offset x and y so that a
4552 document doesn't have to begin at (0,0) on the viewpoint.
4553 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4554 bars and switches the text alignment (and therefore is now
4555 implemented for textbox). Fixes #321383.
4557 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4559 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4560 properties. Also when changing FormattingEnabled update the control
4561 property -as .Net does-.
4563 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4565 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4566 * Binding.cs: Add stubs for the overloads of the Add method in
4569 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4571 * Binding.cs: PullData () returns a false value if we got an exception.
4572 Also when validating the control and we get an error, instead of
4573 setting the value of the previous one, cancel the event (tested in 1.1
4576 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
4578 * TreeView.cs: Make selected_node and highlighted_node internal.
4579 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4580 to null when Nodes.Clear is called.
4583 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4585 * FontDialog.cs: Ensure that when the Font is set in code,
4586 all the gui pieces are updated accordingly.
4589 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4591 * TextRenderer.cs: Respect proposed size for MeasureString.
4592 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4593 autosize, use a proposed width to force wrapping for long text.
4596 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4598 * TreeView.cs: Factor in checkboxes = false and state images in
4599 to HitTest. [Fixes bug #363360]
4601 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4603 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4604 when drawing the selected range.
4607 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4609 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4610 ResizeRedraw control styles.
4613 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4615 * TreeView.cs: StateImages are basically custom checkboxes, so
4616 factor their size the same as real checkboxes when determining
4620 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4622 * MessageBox.cs: Make the message box wider if the form caption
4623 is longer than the text in the form.
4626 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4628 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4630 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4632 * TreeNode.cs: Guard against an NRE when the parent's
4633 StateImageList hasn't been set.
4636 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4638 * SplitContainer.cs: Add SupportsTransparentBackColor and
4639 OptimizedDoubleBuffering control styles.
4642 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4644 * Application.cs: For the app data paths and the registry key paths,
4645 ensure they are created before returning them to the user.
4648 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4650 * Application.cs: Guard against an NRE in CompanyName and
4653 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4655 * Application.cs: For CompanyName, ProductName, and ProductVersion,
4656 make sure we handle all three cases correctly: attribute is present,
4657 attribute is present but is an empty string, and attribute is not
4660 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4662 * PropertyGridView.cs:
4663 - Fix a NRE that caused a test failure
4664 - Another performance improvement - cache the standard values
4667 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4669 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4672 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
4674 * PropertyGridView.cs: Fix a big performance bug.
4676 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4678 * SelectionRange.cs: Apply patch from Andy Hume to make
4679 constructor behavior more accurate. [Fixes bug #362117]
4681 2008-02-19 Andreia Gaita <avidigal@novell.com>
4683 * Control.cs: Added a new flag is_disposing to track if the
4684 window is currently in the process of being disposed of.
4685 This is used so that, when firing visibility changes triggered
4686 by unparenting controls during Dispose, the control doesn't
4689 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4691 * ComboBox.cs: Set height to preferred height when the handle
4692 is created. [Fixes bug #360862]
4694 2008-02-18 Andreia Gaita <avidigal@novell.com>
4696 * XplatUIX11.cs: Create FosterParent with border width at 0.
4697 With the previous value of 4, everytime a control got reparented
4698 from parent = null, it's location would be shifted right and
4699 down by 4, since these coordinates would be offset by the
4700 FosterParent's border width.
4702 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
4704 * Control.cs: During diposing firstly remove ourselfes from
4705 the parent and *then* destroy our handle, because removing
4706 ourselfes from the parent controls collection causes
4707 VisibilityChange, etc events, which require a handle and end
4708 up recreating the control.
4710 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
4712 * GridEntry.cs: Set expanded state before notifying that the
4713 expansion has taken place.
4714 * PropertyGridView.cs:
4715 - Set the propertygridtextbox text to the selected
4716 StandardValue before proceeding to setting it.
4717 - Scrolling bugfixes.
4719 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4722 - Fix ValueText to not return null.
4723 - Fix conversion error reporting to actually happen.
4724 * PropertyGridView.cs: Set entry only if the text has changed.
4727 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4730 - Fix handling of a null current value.
4731 - Swallow editor exceptions.
4734 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4736 * PropertyGrid.cs: Clear current items first thing before
4737 repopulating subitems.
4739 - Handle null StandardValuesCollection.
4740 - Mark as not editable if there is no PropertyDescriptor and
4741 if the Converter cannot convert from string.
4742 [Part of fix for bugs #360666 and #358332]
4744 2008-02-15 Luke Page <luke.a.page@gmail.com>
4745 * MaskedTextBox.cs: Now skips non editable characters after a
4746 character has been entered and we are progressing to the next
4747 position in the MaskedTextBox.
4749 2008-02-15 Luke Page <luke.a.page@gmail.com>
4750 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4751 that it changes the selection rather than just repositioning the
4752 cursor. Fixes Bug #360873.
4754 2008-02-15 Luke Page <luke.a.page@gmail.com>
4755 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4756 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4757 correctly. See #359330
4759 2008-02-15 Andreia Gaita <avidigal@novell.com>
4761 * XplatUIX11.cs: If the handle is null when posting a message, use the
4762 current thread queue to post instead. Fixes #332409
4764 * SendKeys.cs: Slight optimization
4766 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
4768 * PropertyGrid.cs, PropertyGridView.cs:
4769 Fix multiple scrolling and sizing issues.
4772 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4774 * PropertyGridView.cs: Ensure that drop down editors are shown
4775 in the WorkingArea of the screen.
4778 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4780 * GridEntry.cs: Fail silently when UITypeEditor is missing.
4783 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785 * Binding.cs: Implement 2.0 DataSourceNullValue property.
4787 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4789 * PropertyGridView.cs:
4790 - Clear the controls in the drop down form after it is hidden.
4791 - Fix Width sizing of the dropdown editors to match MSFT.
4793 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4795 * PropertyGridView.cs:
4796 - Fix height for drawing the grid entry
4797 text value, so that it clips multiline text properly.
4798 - Fix unfocusing to match MSFT.
4800 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4802 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4803 Fixes a bug where on repopulation after value changed items become
4806 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4808 * Binding.cs: For the 2.0 profile, look for a
4809 'PropertyChanged' event in the target control, and add checks for
4810 DataSourceUpdateMode property to change -or not- the data source
4811 from validation/control property change.
4813 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
4815 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4816 not compare struct with null in 2.0).
4818 2008-02-10 Luke Page <luke.a.page@gmail.com>
4820 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4821 updates the provider and if not using a provider, uses the internal document
4822 class implementation of password char. Also when showing text, uses display string
4823 from the provider, instead of the actual text.
4825 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4827 * Binding.cs: Ooooops, forgot to take into account the data_source
4828 and binding_member_info null case (it was breaking the Binding tests).
4830 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4832 * Binding.cs: Implement support for data source changes exposed by
4833 'PropertyNameChanged' events, and update the control property as
4836 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4838 * Binding.cs: Implement 2.0 WriteValue method.
4840 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4842 Commit patch from James Purcell for better AutoScale implementation:
4844 * ScaleControl should call GetScaledBounds with the control's total size rather
4845 than client size. GetScaledBounds should handle ignoring the borders in its
4846 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
4847 (for the most part they just call the base code now since that is fixed).
4848 * Added ScaleChildrenInternal to allow controls to disable scaling of children
4849 without having to override ScaleChildren (since none of .NET's controls do).
4850 This is required for most controls in Mono that have scrollbars to prevent the
4851 scrollbars from being moved/resized.
4852 * Nested ContainerControls can have a different scale mode than their parent.
4853 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4854 designer produce different results both of which look incorrect).
4855 * Default AutoScaleMode for ContainerControl should be Inherit.
4856 * Simplified workaround for ComboBox scaling issue.
4857 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
4858 1.0 style auto scaling should scale the whole control's size instead of
4859 ignoring the borders (except for Form) and the rounding is done differently to
4860 preserve control alignment.
4861 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4863 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4864 * CurrentAutoScaleDimensions should round the estimated character width instead
4866 * ListBox's GetScaledBounds should always use the height it was set to instead
4867 of the height that was passed in. This prevents rounding errors from
4868 accumulating quickly with IntegralHeight.
4871 2008-02-08 Andreia Gaita <avidigal@novell.com>
4873 * Form.cs: Add a null check (darn it).
4875 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4877 * MdiClient.cs: Make sure the requesting form actually owns the
4878 control menu items before removing them. Also, use
4879 Suspend/ResumeLayout when adding or removing items so we only
4883 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4885 * Control.cs: Guard against an NRE in ShowFocusCues.
4888 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4890 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4891 property, as well as stubbing DataSourceUpdateMode.
4893 2008-02-08 Andreia Gaita <avidigal@novell.com>
4895 * Form.cs: When closing forms, get focus back to the active control of the
4896 active form. [Fixes #341314, corner case]
4898 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4900 * MdiClient.cs: After we move the scrollbars, invalidate the NC
4901 area, so any old scrollbar artifacts are cleaned up.
4904 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4906 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4907 for our menus, display that control box menu instead of the 1.1
4910 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4912 * MdiControlStrip.cs: Add property to access the mdi form tied to
4914 * MdiClient.cs: Be smarter about removing and adding toolstripitems
4915 to the implicitly merged menu. Every time we clicked the form, items
4916 were getting removed and the re-added, causing the form to jump around
4917 as the menu resized.
4919 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4921 * MdiClient.cs: Make sure the NormalBounds always gets set. It
4922 was being reset by the implicit menu merge for menustrips.
4925 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4927 * Form.cs: Don't do the previous change when WindowState = Normal,
4928 or it messes up where the window is placed. Fixes test failure.
4930 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4932 * Form.cs: When becoming visible, if we are an MDI child, call
4933 SetWindowState with a dummy old_state so that changes will actually
4935 [Fixes the 2nd part of bug #325473]
4937 2008-02-07 Andreia Gaita <avidigal@novell.com>
4939 * Control.cs: Reset properties to their pre parent-change values in case
4940 the new parent == null (in which case we're basically removing the control,
4941 and don't want any events fired due to fake property changes)
4944 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
4946 * PropertyGridView.cs:
4947 - Refactor SetValue to allow setting the value
4948 when a custom editor is used, but the entry is not editable.
4949 - Remove the custom editor control on CloseDropDown.
4952 2008-02-06 Andreia Gaita <avidigal@novell.com>
4954 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4955 reflection only on 1.1, this property is public on system.drawing on 2.0.
4958 2008-02-06 Andreia Gaita <avidigal@novell.com>
4960 * WebBrowser.cs: Do a normal page refresh by default.
4962 2008-02-05 Andreia Gaita <avidigal@novell.com>
4964 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
4965 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4966 platforms. Fixes #359036
4968 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
4969 platform-specific flags.
4971 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4973 * Binding.cs: Add 2.0 BindableComponent property - just return control
4976 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
4978 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4979 Jonathan for this patch. Fixes #358442.
4981 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
4983 * Form.cs: If we change the active MDI child form, let the others
4984 know they need to repaint their title bar so it will appear inactive.
4985 [Fixes part 1 of bug #325473]
4987 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
4989 * PropertyGridView.cs: Do not trucate custom editors' width
4990 and align them to the left.
4991 [Fixes #358353 and #358349]
4993 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4995 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4996 Also fix the arguments passed to CollectionChangeEventArgs in the
4999 2008-02-04 Geoff Norton <gnorton@novell.com>
5001 * Hwnd.cs: The conversion to Quartz coordinates happens in
5002 System.Drawing. Removing this translation from here.
5004 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5006 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5007 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5008 GridItemCollection.cs:
5009 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5011 2008-02-04 Geoff Norton <gnorton@novell.com>
5013 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
5014 SYSKEYUP if any other key has been pressed in the mean time.
5017 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5019 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5020 when the item in current position is different than 0. Also, save the
5021 item index in the beginning of the operation, instead of getting the
5022 index of the item when the event is actually performed. Lastly clean
5023 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5027 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5029 * Form.cs: Alt-Minus for MDI children system menu should work
5030 with both the minus keys on the keyboard.
5033 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5035 * Control.cs: Don't invalidate on region change. The WM should
5036 take care of this automagically. Keeps us out of an infinite
5037 paint loop if someone changes the Region in the OnPaint.
5040 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5042 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5044 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5046 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5047 down the MonthCalendar only on F4, not Alt+F4.
5048 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5051 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5053 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5054 if its part of a DateTimePicker, else, use the back color.
5057 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5059 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5062 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5064 * CurrencyManager.cs: When we get a ListChanged event from our source,
5065 always fire our own ListChanged event, as .Net does.
5067 2008-02-03 Luke Page <luke.a.page@gmail.com>
5069 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
5072 2008-02-03 Luke Page <luke.a.page@gmail.com>
5074 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
5075 property. Removed if for richtext property that was always true.
5076 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
5078 2008-02-03 Luke Page <luke.a.page@gmail.com>
5080 * TextBoxBase.cs - commited patch from James Purcell that
5081 correctly sets the FixedHeight control style when the MultiLine
5082 property is changed on a TextBox control. Fixes bug 358229.
5084 2008-02-02 Luke Page <luke.a.page@gmail.com>
5086 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
5087 Fixes bug 351938 - caret is positioned correctly when drawn
5088 and when calculating textual position of caret, no longer
5089 has a NRE in certain situations.
5091 2008-02-01 Geoff Norton <gnorton@novell.com>
5093 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
5094 get that region removed from the paint event.
5095 * XplatUICarbon.cs: Remove the window mapping after disposing of
5096 window. Prevents a crash with handle reuse. Optimize exposes
5097 only onto visible windows (rare; but possible).
5099 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5101 * UpDownBase.cs: Make sure the internal textbox calls the base's
5102 OnMouseDown and OnMouseUp so the textbox will function correctly.
5103 There were notes saying it doesn't chain up, but its an internal
5104 class, so our implementation may differ.
5107 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5109 * ListBox.cs: Fix a logic error and don't process MouseDown
5110 for mouse buttons other than Left.
5112 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5114 * Control.cs: Remove HeightInternal.
5115 * ListBox.cs: Commit patch from James Purcell that correctly
5116 calculates heights for ListBoxen.
5119 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5121 * Label.cs: Apply patch from James Purcell that corrects the
5122 signature of the AutoSize property.
5125 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5127 * ListBox.cs: Don't throw [Mouse]Click events for buttons
5128 other than the left mouse button.
5130 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
5132 * Control.cs: Remove my awesome optimization as it caused some
5133 regressions with control ordering. :(
5136 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
5138 * PropertyGridView.cs: Fix a NRE on double click when there is no
5141 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5143 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
5145 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
5147 * ListBox.cs: Call MouseClick and MouseDoubleClick.
5150 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5152 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
5153 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
5154 instead of Hwnd.bmp_g.
5156 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5158 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
5159 Use the Hwnd one instead.
5161 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5163 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
5165 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5167 * Form.cs: corcompare for RestoreBounds.
5169 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5171 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5173 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5175 * Form.cs: Handle Alt-Minus for MDI children forms.
5176 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5177 Add mnemonics to the control menu.
5180 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5182 * Binding.cs: Initial implementation bits of FormattingEnabled
5183 property and BindingComplete event (2.0).
5184 * BindingCompleteEventArgs.cs: Internal methods for setting error text
5187 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5189 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5190 table.Location. [Fixes bug #354672]
5192 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5194 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5195 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
5197 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5199 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5200 of doing all the re-bound work, just invalidate and call SetControlText
5201 to set the updated text of selected item to our textbox.
5204 2008-01-28 Andreia Gaita <avidigal@novell.com>
5206 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
5207 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5208 missing properties and methods. Add Load, Unload, Error, GotFocus,
5209 LostFocus, Resize, Scroll events (only load and unload are connected)
5211 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
5213 * AccessibleObject.cs: Modified argument names to match MS.
5214 * Button.cs: Modified argument names to match MS.
5215 * BindingContext.cs: Modified argument names to match MS.
5216 * BindingMemberInfo.cs: Modified argument names to match MS.
5217 * ButtonBase.cs: Modified argument names to match MS.
5218 * ComboBox.cs: Modified argument names to match MS.
5219 * Control.cs: Modified argument names to match MS.
5220 * CheckedListBox.cs: Modified argument names to match MS.
5221 * CommonDialog.cs: Modified argument names to match MS.
5222 * DataGrid.cs: Modified argument names to match MS.
5223 * CursorConverter.cs: Modified argument names to match MS.
5224 * ControlPaint.cs: Modified argument names to match MS.
5225 * CheckBox.cs: Modified argument names to match MS.
5226 * ControlBindingsCollection.cs: Modified argument names to match MS.
5227 * BindingSource.cs: Modified argument names to match MS.
5228 * DataFormats.cs: Modified argument names to match MS.
5229 * ContainerControl.cs: Modified argument names to match MS.
5230 * CurrencyManager.cs: Modified argument names to match MS.
5231 * Application.cs: Modified argument names to match MS.
5232 * ContextMenuStrip.cs: Modified argument names to match MS.
5233 * ContextMenu.cs: Modified argument names to match MS.
5234 * BindingManagerBase.cs: Modified argument names to match MS.
5235 * WindowsFormsSection.cs: Fixed line ending.
5237 2008-01-27 Andreia Gaita <avidigal@novell.com>
5239 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5240 detecting that the dropdown toolwindow is hidden. EndLoop outside the
5243 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
5245 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5246 MS. Code formatting.
5248 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5250 * Binding.cs: Don't avoid the Format event if the control
5251 property type is object. Also, if the value retrieved by
5252 the data source is null _and_ the control proeprty type
5253 is object, return Convert.DBNull (match .Net).
5254 Fixes part of #324286.
5256 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5258 * ListControl.cs: Since we are getting two BinginContextChanged events
5259 for the same binding context instance (when the control is added to
5260 form, and when the form is actually shown), take it into account only the
5261 first time for a given binding context instance.
5262 Fixes part of #324286.
5264 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5266 * PropertryGridView.cs: Ops.
5268 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5270 * PropertyGridView.cs: Close dropdown form if the owner form is
5274 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
5276 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
5277 RootGridEntry.cs, CategoryGridEntry.cs:
5278 PropertyGrid rewrite.
5279 - Rewrite all of the control logic in PropertyGrid.
5280 - Rewrite all of the ComponentModel logic in GridEntry.
5281 - Rewrite all UI work in PropertyGridView.
5282 - Many bugfixes, etc.
5284 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
5286 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5287 when all contained controls are autosize or dock-fill. Also take into
5288 account when the total percentage of column/row sizes is not 100%.
5291 2008-01-24 Andreia Gaita <avidigal@novell.com>
5294 - Save a reference to the IDocument in the instance and
5295 use that one instead of going to WebHost.Document; the document that the
5296 WebHost returns might not be the right one (in case of frames).
5297 - Use the hashcode returned from the IDocument interface.
5298 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
5299 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
5300 LinkColor, Url, VisitedColor, Window
5303 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
5304 set_Attribute, NextSibling, Parent, TagName, AppendChild,
5305 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5306 SetAttribute, Equals, equality operators.
5307 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
5308 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
5310 * HtmlElementCollection.cs: Change implementation to use a generic
5311 collection. Implemented Enumerator and CopyTo
5313 * HtmlHistory.cs: Add constructor, no implementation yet.
5315 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5316 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
5317 Equals, equality operators.
5319 * HtmlWindowCollection.cs: Implemented.
5321 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5322 has been deprecated).
5324 * WebBrowserBase.cs: Use Completed event to track document loading
5325 (Navigated has been deprecated)
5327 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
5329 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
5330 level MenuItems do not respect tabs.
5333 2008-01-23 Geoff Norton <gnorton@novell.com>
5335 * XplatUICarbon.cs: Ensure that windows are created in their initial
5336 FormWindowState. Finished fixing Fullscreen windows on Carbon
5338 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5340 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5341 be used as grab_control. Also save status of capture before show ContextMenu
5342 and restore it after close.
5344 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5346 * Control.cs: Internal FindRootParent method added to return high control
5349 2008-01-23 Geoff Norton <gnorton@novell.com>
5351 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5352 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5353 it work again. Handle HITTEST events.
5355 2008-01-23 Geoff Norton <gnorton@novell.com>
5357 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
5358 a crash in certain cases. Support for fullscreen windows in certain cases.
5360 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
5362 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5365 2008-01-23 Geoff Norton <gnorton@novell.com>
5367 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5369 2008-01-23 Geoff Norton <gnorton@novell.com>
5371 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
5373 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5375 * SplitContainer.cs: Remove unused declarations.
5376 * Binding.cs: Remove unused declarations.
5378 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5380 * Form.cs: Remove unused declaration of 'active' in Activate method.
5381 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
5382 prevent compilation warnings.
5383 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5384 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5385 * Bindings.cs: Remove unused formatting_enabled declaration.
5386 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5388 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5390 * PropertyGridView.cs: Remove usused 'ex' declaration.
5391 * DataGridView.cs: Remove unused declarations.
5393 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5395 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5397 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
5398 to Control class, it makes possible to grab menu to controls that can't
5399 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5400 WmMouseMove removed since it was used only to track menu events.
5403 - Moved all active_tracker stuff from Form.
5404 - ProcessActiveTracker added to prevent code duplicity, now mouse events
5405 can call this method instead of reimplement all necessary code handle for
5407 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5411 - Remove special handle to ToolStripOverflow, now we can grab menu to
5412 controls that can't reach Form using parent tree.
5413 - Change type of grab_control from Form to Control.
5415 2008-01-22 Geoff Norton <gnorton@novell.com>
5417 * TextBoxBase.cs: Split up the sizing of controls and placing of
5418 controls. Fixes a bug where scrollbars in Reflector could be sized
5419 wrong and have non-working thumbers.
5421 2008-01-23 Geoff Norton <gnorton@novell.com>
5423 * XplatUI.cs: Refactor environment variables to default support to the
5424 Carbon driver on the Mac.
5426 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5428 * Label.cs: Uses new LabelPainter for drawing operations.
5429 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5430 * Theme.cs: DrawLabel and LabelDefaultSize removed.
5432 2008-01-22 Geoff Norton <gnorton@novell.com>
5434 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5436 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5438 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5439 through the normal flat button code and don't draw the checkbox glyph.
5440 * Theme.cs: Button->ButtonBase signature change.
5443 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5445 * LinkLabel.cs: Uses new class LinkLabelPainter.
5447 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5449 * MessageBox.cs: Adjust right border space, we don't need to add
5450 "space_border*2" two times.
5452 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5454 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5455 becomes a wrapper around Padding.
5456 [Fixes a part of bug #354676]
5458 2008-01-22 Geoff Norton <gnorton@novell.com>
5460 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
5461 acquired. Also ensure the buffer is large enough to grab the header
5462 we need on linux boxes.
5464 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5466 * Control.cs: Implement a custom enumerator so people can delete
5467 from the Controls collection while in a foreach.
5470 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5472 * PropertyGridView.cs: Fix focusing behavior:
5473 - Tab should focus the grid text box.
5474 - Clicking on the labels shouldn't focus the grid text box.
5476 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5478 * PropertyGridView.cs: IsValueTypeGridItem should return true
5481 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5483 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5484 - Renamed GridEntry.SelectedObjects to TargetObjects to better
5485 reflect the property name role.
5486 - PropertyGrid.GetTarget is not required as the target is known
5488 - Setting values will handle value types as a special case now and
5489 populate them up in the chain.
5492 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
5494 * Hwnd.cs: Create a public property for the Graphics we keep around.
5496 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5498 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
5499 when the current object selection changes.
5500 Fixes failing test SelectedObject_Null2.B5.
5502 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5504 * PropertyGrid.cs: Process Browsable properties with
5505 DesignerSerializationVisibilityAttribute.Content as being expandable.
5506 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5507 will not be expandable. We should be nested components-friendly now.
5509 2008-01-21 Andreia Gaita <avidigal@novell.com>
5511 * WebBrowserBase.cs: Check if control was loaded properly,
5512 don't bind if it wasn't.
5514 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
5515 GetElementFromPoint, equality operators, OpenNew, Write.
5516 Remove extra set_Body
5518 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5520 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5521 that makes our AutoScale* stuff more tolerant to different orders
5522 of being set. [Fixes bug #354669]
5524 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5526 * PropertyGridView.cs, PropertyGridTextBox.cs:
5527 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5528 [Fixes #339005 and #348209]
5530 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5532 * PropertyGridView.cs: Hide the grid text box before adjusting it
5533 for the newly selected GridItem.
5536 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5538 * Form.cs: Give MDI children the opportunity to cancel the parent form
5539 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
5540 properly for both the parent and child.
5541 * Application.cs: Signature of internal method changed, pass the previous
5545 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5547 * PropertyGridView.cs: Set the property value only if it has changed.
5550 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5552 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5553 If the mouse hasn't actually moved, ignore these messages so the currently
5554 highlighted menuitem isn't reset to the one under the mouse.
5557 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5559 * PropertyGridView.cs: When the property changes Invalidate the GridItem
5560 in order for the properties with UITypeEditor.GetPaintValueSupported == true
5561 to reflect the change visually.
5564 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5566 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5567 to 2.0 button drawing.
5568 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
5569 the button text is tall enough for one line. LineLimit says it will
5570 always draw at least one line, but it is a lie.
5573 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
5575 * XplatUIStructs.cs, X11Keyboard.cs :
5576 added some more VK_* keys to be handled.
5578 2008-01-16 Andreia Gaita <avidigal@novell.com>
5580 * Control.cs: Check if there is a container before setting or getting
5581 the validation flag.
5583 2008-01-16 Andreia Gaita <avidigal@novell.com>
5585 * ContainerControl.cs: Add flag to track if a control cancels validation,
5586 so we don't fire click events.
5589 - (HandleClick) Check if validation was cancelled before firing the click
5590 events (doubleclicks are fired, but not clicks)
5591 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
5592 ContainerControl.set_ActiveControl, but in the case of non-selectable
5593 controls, like a Label, activecontrol is not set.
5595 * ButtonBase.cs: Only fire clicks if validation passes.
5599 2008-01-16 Geoff Norton <gnorton@novell.com>
5601 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5604 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
5606 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5607 SelectedPath, just display the default dialog instead of crashing.
5610 2008-01-16 Geoff Norton <gnorton@novell.com>
5612 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
5613 AddExpose instead of trusting apples compositing manager which doesn't
5614 work for our use case. Remove some dead code causing warnings and
5615 redecorate some other code to prevent warnings.
5617 2008-01-16 Geoff Norton <gnorton@novell.com>
5619 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
5620 carbon signals us to redraw. Fixes another portion of the flickering bug
5622 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5624 * Form.cs: Prevent the MdiParent property to be set when value is the same
5625 as value already set. Fixes bug #328019.
5627 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5629 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
5630 it prevents NRE when closing mdi child windows. Fixes bug #325211.
5632 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5634 * InternalWindowManager.cs: Invalidade close button after mouse up when
5635 mdi form is prevented to close.
5637 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5639 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5640 thanks to Andy Hume. Fixes bug #325433.
5642 2008-01-16 Andreia Gaita <avidigal@novell.com>
5644 * LinkLabel.cs: Reset focused_index when resellecting the control.
5647 2008-01-15 Geoff Norton <gnorton@novell.com>
5649 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
5652 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5654 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5657 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5659 * ContainerControl.cs: Setting AutoScaleMode to anything should set
5660 Form.AutoScale to false.
5661 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5662 AutoScaleBaseSize should be changed on Font change unless it has been
5666 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5668 * MenuAPI.cs: On instance of MenuTracker check if source control is
5669 ToolStripOverflow and use properly method to find form.
5672 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5674 [Fixes bug #323241 Transparent toolbar support]
5676 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5679 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5680 defined in control style to mimic win32 behavior.
5682 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
5683 it will be transparent.
5685 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5687 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5688 CreateParams for ToolBar controls.
5690 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5692 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5693 FixedToolWindow, SizeableToolWindow, or None for border styles have
5694 different minimum sizes than regular forms. Implemented to fix
5695 regression in PDN with toolbox being too wide.
5697 2008-01-14 Andreia Gaita <avidigal@novell.com>
5699 * HtmlElementCollection.cs: Implemented
5701 * HtmlElement.cs: Implemented:
5709 * HtmlDocument.cs: Implemented GetElementsByTagName.
5711 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5713 * Screen.cs: Stub BitsPerPixel to always return 32.
5715 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5717 * Form.cs: Implement RestoreBounds.
5719 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5721 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5722 Sebastien and his fabulous magical problem-finding machine:
5723 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
5724 respect the value set.
5726 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5728 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5729 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
5731 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5733 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5734 messages (to match .Net), we need to remove the capture ourselves.
5736 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
5738 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5739 will process the message and close our window.
5742 2008-01-10 Geoff Norton <gnorton@novell.com>
5744 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
5745 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
5748 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5750 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
5753 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5755 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
5756 Linux doesn't care, having a minimum matches MS and keeps the window
5757 from becoming too small to use window decorations.
5760 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5762 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5763 ShowFocusCues. Make focus rectangles fit the text instead of the whole
5764 control. [Fixes bug #325419]
5766 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5768 * ComboBox.cs: Guard against an NRE if the user open a new form from a
5769 SelectedIndexChanged event. This closes the combobox dropdown, and we
5770 were trying to dispose it. [Fixes bug #352830]
5772 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5774 * Control.cs, Form.cs: Implement the necessary semantics for
5775 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
5776 to determine if a focus rectangle should be drawn.
5777 * PropertyGrid.cs: Fix property visibility to match override.
5778 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5780 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5782 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5785 2008-01-09 Geoff Norton <gnorton@novell.com>
5787 * XplatUICarbon.cs: Scroll windows in the correct direction.
5789 2008-01-09 Geoff Norton <gnorton@novell.com>
5791 * XplatUICarbon.cs: Track all created utility windows so we can hide them
5792 when the app is deactivated or spaces is enabled.
5794 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5796 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5797 extra separation pixel for the label rect origin if SmallImageList is
5798 null, and thus we don't need that separation between icon and label
5800 Patch by Ernesto Carrea.
5803 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
5805 * StatusStrip.cs: Invalidate after completing a layout. The base
5806 OnLayout does this, but we don't call the base.
5807 * ToolStripItem.cs: Revert the previous change to invalidate after
5809 [Fixes bug #351341 better.]
5811 2008-01-07 Geoff Norton <gnorton@novell.com>
5813 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
5814 not a notification to exit the application. Listen for WM_QUIT
5817 2008-01-07 Andreia Gaita <avidigal@novell.com>
5819 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5821 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
5823 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5824 so it can repaint at the correct location.
5827 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5829 * ListControl.cs: SelectedValue should return a null value if
5830 SelectedIndex is -1. Also, when setting it, it should throw an
5831 ArgumentNullException if the value is null, as well as taking
5832 into account the String.Empty value, instead of ignoring it (we have
5833 tests for that now).
5834 Fixes part of #324286.
5836 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
5838 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5839 SelectionStart is updated after pressing enter. Fixes bug #351918.
5841 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5843 * TextControl.cs: Revert a piece r92316 that prevented the fix
5844 from working when there were multiple tags in the text box.
5847 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5849 * TextControl.cs: Apply patch from Luke Page that prevents an
5850 NRE when determining the beginning of a paragraph.
5853 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5855 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5856 caret gets moved with clicking away from a selected block of
5857 text. Fixes bug #351885.
5859 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5861 * TextControl.cs: Apply patch from Luke Page that takes line
5862 alignment into account for mouse selection, so that center and
5863 right aligned text can be selected.
5866 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5868 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5869 issues after loading an RTF file by using the correct line feeds.
5872 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5874 * TextControl.cs: When deleting multiple line selections, we need
5875 to invalidate every line beginning at the first line of the selection.
5876 Patch from Luke Page fixes bug #351791.
5878 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5880 * ListControl.cs: When getting a CurrencyManager.PositionChanged
5881 event, don't set SelectedIndex if the number of items is 1. This is
5882 because, for the first item, PositionChanged is fired _before_
5883 ItemChanged (the place where we actually populate the items), and
5884 leave us in a temporary invalid state (since items collection is
5888 2008-01-04 Geoff Norton <gnorton@novell.com>
5890 * XplatUICarbon.cs: Create native toolwindows instead of
5891 the managed drawing ones.
5893 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5895 * LineTag.cs: If the line doesn't have any characters, return
5896 0 for GetCharIndex. Fixes an AOORE exception after certain
5897 caret movements. Fixes bug #351683. Patch by Luke Page.
5899 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5901 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5902 is hit when there is selected text, only the selected text gets
5903 deleted, not the character in front of the selection as well.
5906 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5908 * ComboBox.cs: When the values are displayed, calculate the
5909 ComboListBox scrollbar's LargeChange based on the visible area's
5910 height and the actuall ItemHeight, instead of calculating it
5911 based on MaxDropItems value, since it's not used by our _current_
5915 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5917 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5918 Patch from Luke Page that fixes issues with font colors and styles
5919 not showing up in a readonly RichTextBox. Fixes bug #324354.
5921 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5923 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5924 from Luke Page. This one fixes bug #349926.
5926 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5928 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5929 an item in the IBindingList source changes with
5930 ListChangedType.ItemAdded. Ignore for now firing the event for other
5931 changes, since we want to have tests for those cases as well.
5933 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5935 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5938 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5940 * TextBoxTextRenderer.cs: Implement a cache for measuring each
5941 character. This is effective because the typical usage of a
5942 TextBox is with a limited amount of fonts and characters, and
5943 the current implementation of TextBox measures everything one
5944 character at a time. Another second or two speedup for bug #347238.
5946 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5948 * Control.cs: Rewrite the Font getter to only query the parent's
5949 Font property once instead of twice. Since this operation is
5950 recursive, the queries were growing exponentially as the control
5951 tree got deeper. Another second or two speedup for bug #347238.
5953 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5955 * Control.cs: Avoid setting a parent (and more importantly, updating
5956 the zorder of all its children) if the parent is already correct in
5957 WmShowWindow. Decreases the startup time of the test case on bug
5958 #347238 from 35 seconds to 11 seconds.
5960 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5962 * X11Dnd.cs: When the dnd operation has started and we are
5963 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5964 This is done to match .Net, which doesn't send those messages after
5965 dnd operation was completed/cancelled.
5968 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5970 * ToolStrip.cs: Previous change should be != null, not == null.
5973 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5975 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5976 user may have moved the mouse off the current item during the event.
5978 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5980 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5981 calling GetItemAt for every MouseMove event by also taking into
5982 account whether any mouse button is pressed (probably dragging);
5983 if so, we can call GetItemAt, and if not, try to not call it
5984 (GetItemAt can be quite expensive when used with a large number of items).
5986 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5988 * ListView.cs: Implement -finally- support for dnd, by calling
5989 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5991 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5992 simple calculation of distances for all the items in the owner
5995 2007-12-21 Geoff Norton <gnorton@novell.com>
5997 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
5998 for windows that are originally created as invisible. Fixes missing
5999 main window in paint-mono.
6001 2007-12-21 Geoff Norton <gnorton@novell.com>
6003 * XplatUICarbon.cs: Register our D&D handler. Register our custom
6004 subclass handler for com.novell.mwfview subclassing HIView. Implement
6005 Pasteboard and Dnd methods.
6007 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6009 * ListBox.cs: When we got focus, give focus to first item if there
6010 wasn't any pervious focused item. Also update navigation to depend on
6011 SelectedIndex rather than FocusedItem, just as .Net does.
6014 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6016 * ListBox.cs: Both FindString and FindStringExact methods must do an
6017 case insensitive search, should allow the last valid index to be
6018 passed in the overload taking an initial index, and should also
6019 continue searching from the top back to the specified index when it
6022 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6024 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6025 redraw issue, and allows RichTextBox to draw colored text even while
6026 disabled or readonly.
6028 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6030 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6031 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6032 and doesn't grey text in a disabled RichTextBox.
6034 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6036 * RichTextBox.cs: Apply patch from Luke Page that adds better support
6037 for many RTF commands: quad alignment, separate formatting for blocks
6038 inside groups, and ParDef support. Makes the test case from bug #324589
6041 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6043 * LineTag.cs: Fix an error in the new Draw method that caused
6044 a crash when rendering the document on bug #324589.
6046 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6048 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6049 TextControl.cs: Apply patch from Luke Page that adds support
6050 for URL links in RichTextBox.
6051 [Fixes enhancement #342516]
6053 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
6055 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6056 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6058 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6060 * ListBox.cs: When a key gets pressed, try to find a string
6061 if the key is a character or a digit.
6064 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6066 * TableLayoutPanel.cs: Remove some unused variables.
6068 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6070 * DateTimePicker.cs: Commit patch from Luke Page that ensures
6071 we don't end up at an invalid date when we click the up/down
6072 spinner to change the month or year. Fixes bug #348682.
6074 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6076 * Application.cs: Calling Exit in 2.0 should chain to the
6077 Exit (CancelEventArgs) version so it can be cancelled.
6078 * Form.cs: Create a flag to allow raising the Closing
6079 events to be skipped. We raise them once in Application.Exit
6080 and don't want to raise them again when the Form is actually
6081 closed. [Fixes bug #349073]
6083 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
6085 * ToolStripDropDown.cs: Guard against an NRE when there
6086 hasn't been a mainform set in the application context.
6089 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6091 * ListBox.cs: When SetBoundsCore gets called, besides
6092 calling UpdateScrollBars, update the value of
6093 last_visible_index, since we could need to show more items
6094 than before, and we need to let the paint routines know that.
6097 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6099 * ListView.cs: Add DesignerSerializationVisibility attribute to
6100 InsertionMark property.
6101 * ListViewItem.cs: Add same attribute to Position property.
6103 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6105 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
6108 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
6110 * ThemeWin32Classic.cs: Don't draw the background on a
6111 flat button if there is a background image.
6114 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6116 * ListBox.cs: If we remove the item currently selected,
6117 remove it not only from SelectedItems, but also
6118 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
6119 the items count decreased and focused_item has bigger value than that.
6121 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6123 * Control.cs: Perform our layout after we resize ourselves
6124 if we had to adjust our AutoSize. Missed commit for bug
6127 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6129 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
6130 we can provide an implementation of AutoSize.
6133 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135 * ListBox.cs: Add the internal overload Sort (bool paint),
6136 to indicate whether we actually need a paint or we will
6137 call Refresh ourselves. This way we don't request a paint
6138 _before_ having an updated and valid layout.
6141 2007-12-12 Andreia Gaita <avidigal@novell.com>
6143 * XPlatUIX11.cs: Send paint messages when updating a systray icon
6144 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
6145 properly invalidated.
6148 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6150 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
6151 don't simply assign it to our internal group field, but instead
6152 use our Group property, which should do all the neccessary work
6153 required to support groups. Fixes an issue reported to me (mail) by a
6154 guy using this new feature.
6156 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
6158 * Control.cs: Use Scale instead of ScaleControl to ensure the
6159 whole hierarchy gets scaled.
6162 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6164 * DateTimePicker.cs: Don't set the internal MonthCalendar's
6165 Parent property. Doing this causes the control to be hosted by
6166 the Form instead of being a popup window.
6169 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6171 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6172 at an index higher than Count, just use Add instead of Insert.
6175 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6177 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6178 DrawPictureBox, this is handled by Control.PaintBackground.
6181 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
6183 * MenuAPI.cs: When process menu keys return true by default only if menu is
6184 active. Fixes bug #342892.
6186 2007-12-09 Andreia Gaita <avidigal@novell.com>
6188 * Control.cs: check if windows are actually mapped before
6189 trying to zorder. Fixes #342509, #346955
6191 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6194 * ListViewInsertionMark.cs:
6195 * ThemeWin32Classic.cs: Implement the drawing side of the
6196 new 2.0 ListView.InsertionMark property.
6198 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
6200 * CurrencyManager.cs: Silence some debug spew.
6202 2007-12-07 Geoff Norton <gnorton@novell.com>
6204 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6205 masks for our children as well as siblings to avoid having to query
6206 Quartz for this information.
6207 * XplatUICarbon.cs: Implement a delegate based system to pass
6208 information to System.Drawing. Implement Async methods. Remove
6209 the hack for the resize thumb and imlpement a transparent Grow Box.
6210 Rework the messaging system to proplery create window's and messages,
6213 2007-12-06 Andreia Gaita <avidigal@novell.com>
6215 * X11Keyboard.cs: Use Xutf8LookupString to support international
6216 characters under alternate codepages. Patch from #340878
6218 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6220 * ListView.cs: When doing layout computations, set position in the
6221 ListView instances (we cache the position just as .Net does).
6222 * ListViewItem.cs: New internal setter method for Position. Also set
6223 position field as also available in 1.1, since we are going to use it
6224 now in the common case.
6226 2007-12-06 Andreia Gaita <avidigal@novell.com>
6228 * Control.cs: When removing controls, get the actual container
6229 to notify about active control changes. Fixes 341314.
6231 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6233 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6235 2007-12-05 Andreia Gaita <avidigal@novell.com>
6237 * Control.cs: When updating the zorder, ignore windows that are not
6238 mapped. Fixes #342509
6240 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6242 * ListViewItem.cs: Actually implement serialization on this class.
6244 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
6246 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6247 LinkCollection. Spaces to tabs, and removed extra tabs.
6249 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
6251 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6252 tests to fail (hopefully).
6254 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6256 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6257 the image margin so custom renderers can correctly place it.
6259 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6261 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6262 so custom renderers can correctly place it.
6264 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6266 * Application.cs: Let WM_CHAR messages flow through to controls
6267 hosted in Strips. [Fixes bug #343972]
6269 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6271 * ToolStripManager.cs: Guard against an NRE I ran into.
6273 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6275 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
6276 a Link is manually added to the Links collection, we need to set
6277 its owner, so it can invalidate properly.
6280 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6282 * ListView.cs: When changing ListViewItem.Position (which calls
6283 ListView.ChangeItemLocation), invalidate not only the area
6284 corresponding to the main item, but also to the area occupied
6285 by the items being moved.
6287 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6289 * ListView.cs: When changing the position of a given item,
6290 don't use item bounds, but item areas (which includes the item spacing
6291 between them). Also, use first/last position if the requested
6292 position is outside bounds (as .Net does). Invalidate the previous and
6293 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6294 in a specific position, instead of directly accessing Items collection
6295 (this is done to get the right item - remember an Item can have a
6296 different position in the grid than in the Items collection).
6298 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6300 * MessageBox.cs: Calculate text area instead of just top left, this rect
6301 area will be used in DrawString. Fixes bug #343364.
6303 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6305 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6306 screen width. Partially fixes bug #343364.
6308 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6310 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6311 code inside recalculate, it makes code more simple.
6313 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
6315 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6316 between update or add icon. Fixes bug #324344.
6318 2007-11-21 Andreia Gaita <avidigal@novell.com>
6320 * XPlatUIX11.cs: Do not treat tool windows as if they have no
6321 window manager, since that stretches the drawing area to include
6322 the window decorations, and they get hidden. Reverts r84444 and fixes
6323 #335849 and #342790 (mdi and pdn3 regression)
6325 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6327 * ListView.cs: When setting focused item, try to give focus to the
6328 previous one _only_ if the previous one remains valid.
6331 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
6333 * Application.cs: Revert r89650, as it broke a common case to fix
6334 an obscure case. Fixes bug #342606.
6336 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6338 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6340 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6342 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
6343 alignment. [Fixes #324228]
6345 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6347 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6350 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
6352 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6353 it prevent problems when empty captions. [Fixes #342141]
6355 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6357 * Label.cs: Use Size instead of None. Fixes bug #342077.
6359 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6361 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6363 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6365 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6366 but there isn't a MdiContainer.
6369 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6371 * TextControl.cs: Don't recalculate document if the recalc_start and
6372 recalc_end hasn't changed.
6375 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
6377 * DataGridViewTextBoxCell.cs: Removed CWL.
6379 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6381 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6383 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6385 * TextControl.cs: Missed some code for bug 341534 to trigger a
6386 recalculation when the font changes.
6388 2007-11-16 Andreia Gaita <avidigal@novell.com>
6390 * Control.cs: When updating the zorder, check if the child to update is
6391 the same control that is set to always be on top (i.e., scrollbars), and
6392 just put it on top directly. Fixes BadMatch error on pdn3
6394 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6396 * ListView.cs: Throw the needed exceptions for FindNearestItem.
6398 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6400 * Control.cs: Don't perform a new layout when a label changes its text,
6401 cause label handles its own autosizing.
6404 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6406 * ListView.cs: Implement 2.0 FindNearestItem methods.
6408 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6410 * ToolStripPanel.cs: Make Join at least add the control to the panel,
6411 even if the rest of what Join does isn't supported. Add some more
6412 support for vertical toolbars.
6413 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6414 [Fixes the application breaking parts of bug #341998]
6416 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6418 * ToolStripItem.cs: When determining if we have a check/image margin,
6419 we need to look at ShowCheckMargin as well as ShowImageMargin.
6421 2007-11-15 Geoff Norton <gnorton@novell.com>
6423 * XplatUIOSX.cs: Rename to...
6424 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6425 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
6427 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6429 * KeysConverter.cs: The default values should be an array of Keys, not
6430 strings. Also, the array has more values for 2.0.
6433 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6435 * Application.cs: Change ExecutablePath to use
6436 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6439 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6441 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6442 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6443 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6444 be ignored. Create a new GetLineEnding that can specify which types of
6445 line endings to look for. On Insert, only create new lines for \n and \r\n.
6448 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6450 * TextBoxBase.cs: As we loop through each line changing the font, tell
6451 the document that the line needs to be recalculated. Fixes bug #341534.
6453 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
6454 [Another round of refactoring]
6455 * Line.cs: Add DeleteCharacters.
6456 * LineTag.cs: Add Delete.
6457 * TextBoxBase.cs: Update to use new methods.
6458 * TextControl.cs: Refactor the Delete* methods.
6460 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
6462 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6463 the patch. [Fixes #324856]
6465 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468 * ListViewItem.cs: Add an initial implementation of
6469 2.0 ListViewItem.Position getter.
6471 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6473 * ListView.cs: Add a reordered_items_indices array, to allow us
6474 to have a different sorting than that of Items (the sorting in Items
6475 could not match the actual sorting in screen). This is needed to
6476 implement a pair of 2.0 features.
6477 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6478 actual position in the ListView grid, since it could have a position
6479 different than its Index (position in ListViewItemCollection).
6481 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6483 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
6484 not draw partial lines.
6485 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6486 LineLimit flag from the base is preserved.
6487 Fixes the windows part of bug #338965.
6489 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6491 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6492 so that it can be canceled in KeyPress.
6495 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6497 * ListView.cs: In ItemControl, reset mouse-handling related
6498 fields even if we dont' have items (we still should reset them when
6499 we had items but then called Items.Clear). Partially based in a patch
6503 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
6505 * Application.cs: In ProductVersion first try AssemblyFileVersion
6506 before falling back to assembly version. Fixes bug #339787.
6508 2007-11-08 Andreia Gaita <avidigal@novell.com>
6510 * HtmlElement.cs: Implement InnerText setter.
6511 * WebBrowserBase.cs: Implement Navigated event support.
6512 Add flag to track when the browser "document" is ready to be retrieved.
6513 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6514 Make sure browser document is ready before retrieving it.
6515 Clean up cached objects (document) when moving to a new page through
6516 any of the navigation methods.
6517 Use the new Mono.WebBrowser.INavigation interface to control navigation.
6518 Implement OnNavigated event.
6520 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
6522 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6523 DrawLinkLabel, this is handled by OnPaintBackground.
6524 Fixes bug #339565, part II.
6526 2007-11-07 Andreia Gaita <avidigal@novell.com>
6528 * Control.cs: Revert r88915. Selecting text on a textbox depends on
6529 getting a Select call on click, so this call needs to be here for now.
6532 2007-11-07 Geoff Norton <gnorton@novell.com>
6534 * OSXStructs.cs: Add the kEventClassApplication constants.
6535 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
6536 application is deactivated otherwise Menu overlays linger on top of
6537 other application windows.
6539 2007-11-07 Geoff Norton <gnorton@novell.com>
6541 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6542 dont support cursors yet anyways. This allows Reflector to run.
6544 2007-11-07 Geoff Norton <gnorton@novell.com>
6546 * XplatUIOSX.cs: Implement DragSize.
6548 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6550 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6551 ItemControl, request the focus, as .Net does. This is needed after
6552 Control does not request focus anymore when it receives a
6555 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
6557 * Label.cs: Make DrawImage internal so it can be called from Theme code.
6558 Remove the DrawImage call from OnPaint.
6559 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6560 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6561 but before we draw the text for DrawLabel and DrawLinkLabel.
6564 2007-11-05 Andreia Gaita <avidigal@novell.com>
6566 * Control.cs: Remove select call on click. Fixes #325809
6568 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6570 * ListViewItem.cs: Add 2.0 Position property getter.
6572 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6574 * ListView.cs: Add 2.0 BackgroundImageTiled property.
6575 Also, to make it work properly, change item's BackColor and
6576 BackgroundImageLayout as needed.
6577 * ThemeWin32Classic.cs: Don't fill any background rectangle
6578 in ListView.ItemControl when drawing items; just let the Control
6579 base implementation fill it.
6581 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6583 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6584 as well as adding a custom 'dummy' Converter, as .net does.
6586 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6588 * PropertyGridView.cs: When clicking drop-down button,
6589 select an index in the listbox only if our standard values collection
6590 has one or more items.
6592 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6594 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6597 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6599 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6600 the value is not changed. This ensure a pushed button remains in that
6601 state when clicked again. When switching the value of PropertySort
6602 between Categorized and CategorizedAlphabetical, do not update the
6603 grid items and do not fire a PropertyChangedEvent. When clicking the
6604 sorting buttons, do not modify the PropertySort value when switching
6605 between Categorized and CategorizedAlphabetical but only update the
6608 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6610 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6612 * PropertyGrid.cs: Also put Categorized button in pushed state when
6613 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6614 for help description label.
6616 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6618 * ListView.cs: When calculating the biggest item for a given column,
6619 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6622 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
6624 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6625 value for PropertySort on 1.0 profile. PropertySortChanged event
6626 should only be fired on 2.0 profile. Fixed NullReferenceException
6627 in UpdateSortLayout when PropertyGrid contains no items.
6629 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
6631 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6634 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6636 * ListViewItem.cs: Implement 2.0 IndentCount property.
6638 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6640 * X11Dnd.cs: When sending status in a dnd operation, compare current
6641 effect with the 'allowed' field instead of 'drag_data.Allowed', since
6642 the later is only created when a Winforms application is both the
6643 source and the target, but not when we are the target only.
6644 Fixes part of #324251.
6646 2007-11-01 Geoff Norton <gnorton@novell.com>
6648 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6650 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
6651 children out of the drawing view on mac.
6652 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
6653 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6655 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6657 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6658 on the non-hosted-control part of it shouldn't do anything.
6659 Fixes part of bug #327498.
6661 2007-11-01 Andreia Gaita <avidigal@novell.com>
6663 * WebBrowserBase.cs: revert previous change, resize can be called anytime
6665 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6667 * Application.cs: When a toolstrip has the keyboard input loop, let messages
6668 it does not use flow through to controls that are hosted in menus.
6669 Same with mouse clicks.
6670 * Form.cs: Don't close all menus on click if the click is on a
6671 control hosted in a menu.
6672 Fixes part of bug #327498, and part of bug #325969.
6674 2007-10-31 Andreia Gaita <avidigal@novell.com>
6676 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6678 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
6680 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6681 Addresses an issue raised in bug #336218.
6683 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
6685 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6686 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
6688 2007-10-30 Andreia Gaita <avidigal@novell.com>
6690 * ContainerControl.cs: Check if the active control is a
6691 child of a removed control and update active_control accordingly.
6694 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6696 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6697 or the MaxDate. Fixed bug #337693.
6699 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6701 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6702 after calling SetWindowLong for a form, to force an immediate NC refresh.
6703 Fixes first part of bug #325150.
6705 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6707 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6708 simple. Fixes the last part of bug #322668.
6710 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6712 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6713 needs to be TopMost as well, or else the MessageBox is under the form.
6714 Patch by George fixes bug #325300.
6716 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6718 * X11Dnd.cs: When starting a new drag operation, reset the static
6719 'dropped' field to false (previously the implementation didn't reset
6720 it and got confused after the first drag).
6723 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6725 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6726 items instead of re-creating them all. For this purpose we now cache
6727 both CategoryGridEntry items and the GridEntries for the main object's
6729 * GridItem.cs: Make SetParent method abstract.
6730 * GridEntry.cs: Override the SetParent method (already there, but now
6734 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6736 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6737 depending on its depth (as .Net does). Update the needed values in
6738 MouseDown handler. Also draw the plus/minus rect after the label,
6739 so we don't draw on top of it.
6741 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
6743 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6744 processed by forms or controls when menu is active. [Fixes #333548]
6746 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6748 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6749 parent doesn't have focus. This was causing ToolStripTextBoxes to take
6750 focus on mouse over.
6752 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6754 * TextControl.cs: Code cleaning, simplifying.
6756 2007-10-24 Geoff Norton <gnorton@novell.com>
6758 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6759 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6761 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6763 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6764 the cap is maxvalue, not actually 0. [Fixes bug #336218]
6766 2007-10-24 Andreia Gaita <avidigal@novell.com>
6768 * SendKeys.cs: apply jpobst's patch to bug #332409
6770 2007-10-23 Andreia Gaita <avidigal@novell.com>
6772 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
6773 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6776 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6778 * PropertyGridView.cs: If a property has an UIEditor available,
6779 make the drop-down/editor button available only if the property
6782 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6784 * PropertyGridView.cs: Don't make the grid item textbox
6785 editable when a drop-down control is available, but
6786 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6787 true. The same bur the color of the grid item value's label.
6789 2007-10-22 Geoff Norton <gnorton@novell.com>
6791 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6792 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6793 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
6794 driver. Padd the bottom of all real windows so the resize thumb doesn't
6795 obscure scroll/status bars.
6797 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
6799 * WindowsFormsSection.cs: Implement.
6801 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6803 * MdiClient.cs: Maximize new active mdi child when a maximized child is
6804 closed see #325434 patch.
6806 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6808 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6811 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6813 * PropertyGridView.cs: When showing the textbox for a grid item,
6814 have two local variables to store the read-only and non-editable
6815 status of a grid item (we were previously using just one variable
6816 to do this, when actually they are slightly different).
6817 Fixes part of #325023.
6819 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6821 * PropertyGridView.cs: When showing a drop-down list, try to get the
6822 values using TypeConverter.ConvertTo (to convert to a string). Fixes
6825 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6827 * PropertyGrid.cs: When updating a property and populating sub grid
6828 items, remove the previous ones, and invalidate the specific area.
6829 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6830 area behind a grid item.
6831 * GridItemCollection.cs: Add an internal Clear method, to allow us to
6832 clean the items if needed (specially for controls implementing
6833 ICustomTypeDescriptor and returning a variable number of properties).
6836 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
6838 * TextControl.cs: Clean up and document the Insert function.
6840 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6842 * TextControl.cs: Make sure we know our start point for updating the view
6843 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
6846 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6848 * ListView: Couple of corcompare fixes.
6850 2007-10-17 Geoff Norton <gnorton@novell.com>
6852 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
6853 the title caption of real window.
6855 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6857 * ErrorProvider.cs: Add the error provider's internal window to a
6858 containercontrol when the parent changes. [Fixes bug #329714]
6860 2007-10-17 Geoff Norton <gnorton@novell.com>
6862 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
6863 When we make a new window; restore the old active window - fixes dialogs.
6865 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6867 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6868 when modifying a property, and if found then invalidate as
6870 Fixes part of #324865.
6872 2007-10-17 Geoff Norton <gnorton@novell.com>
6874 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
6875 highly experimental. Fixed coordinate translation. Fixed window locations.
6876 Initial support for clipping. Implemented NC areas and menus. Support for
6877 launching from command line from Will Johansson (wjohansson@atacomm.com).
6878 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6879 wjohansson@atacomm.com)
6880 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6881 Hwnds now track the existence of all of their children for Mac clipping.
6882 * XplatUI.cs: Re-enabled the native driver on the Mac.
6884 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6886 * Line.cs: Move the InsertString function to here.
6887 * TextControl.cs: Cleanup some duplicate code, move some InsertString
6888 functionality to Line.
6890 2007-10-17 Geoff Norton <gnorton@novell.com>
6892 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
6894 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
6896 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6897 always setting value to true.
6898 * Form.cs: When changing AcceptButton, notify new and original button.
6900 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
6902 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6903 a custom control that implements IButtonControl instead of an actual
6904 button. [Fixes bug #334244]
6906 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6908 * Form.cs: Change SelectActiveControl to internal, we need to call it in
6911 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6912 active control when activate a new mdi window.
6916 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6918 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6922 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6924 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6925 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
6926 so we always recalculate the whole document instead of just the new part.
6929 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6931 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6932 when the mouse was to the left of the first character in the line.
6934 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6936 * TextBox.cs, TextBoxBase.cs: When setting the document's password
6937 character, use the property instead of the variable so that the
6938 UseSystemPasswordChar property is taken into account.
6941 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6943 * FolderBrowserDialog.cs: When a node is right clicked and the "New
6944 folder" contex menu appears, actually add the new folder to it, even
6945 if the node is not currently selected. Still use SelectedNode in case
6946 there wasn't found a node under the pointer.
6949 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6951 * ListViewItem.cs: When retrieving the focused state, the index check
6952 should be done only when ListView is in virtualmode, as it is an
6953 expensive check for normal mode.
6955 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6957 * ListViewItem.cs: Make the focus state information be stored
6958 in the ListView, not in the items. This is done to match the MS
6959 behaviour for items that are not yet part of a ListView control;
6960 besides that, since just one item can be focused at the same time,
6961 we save a little space in our items.
6962 Fixes part of #331643.
6964 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6966 * ComboBox.cs: When focus is lost, deselect the text. When setting
6967 text of control, select all text. Do not hide selection when control
6968 does not have focus. Fixes bug #333663.
6970 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6972 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6973 instead of ArgumentException when SelectionLength is set to negative
6974 value. Added same check to SelectionStart. Code formatting.
6976 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6978 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6979 or SelectionStart. Code formatting.
6981 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6983 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6984 indicating that there was not a previous drag-and-drop operation going
6986 Fixes part of #325071.
6988 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6990 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6991 AllowedEffect, don't let the drop operation happen.
6994 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6996 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6998 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7000 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7003 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7005 * Line.cs: Add a method that finds the tag that contains an x-coord.
7006 * LineTag.cs: Add a method that finds the character at an x-coord using
7007 a binary search, the old way was a linear search.
7008 * TextControl.cs: Change FindCursor to use the above new methods.
7010 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7012 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7013 value different than AllowedEffect). This should be possible to
7014 indicate that dragging is not possible in some control/area.
7016 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
7018 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
7019 descent internally when font changes instead of outside code being responsible
7021 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7022 instead of accessing internal variables.
7024 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
7026 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7027 remove special treatment for ArrangeIcons since it is already arranged.
7029 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7031 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7032 the Win32 backend uses Color.
7033 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7034 Refactor to store a Color instead of a Brush for Color.
7036 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7038 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7039 away. I didn't realize I needed this when I refactored these earlier.
7041 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7043 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7044 store a Color structure and use the ResPool for back color instead of
7045 holding onto brushes.
7047 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7049 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7052 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7054 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7055 to recalculate its size. Fixes a part of bug #331052.
7057 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7059 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7060 button. Fixes a part of bug #331052.
7062 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7064 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
7066 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
7070 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7072 * TextBoxTextRenderer.cs: Don't make this a static class, as static
7073 doesn't exist in 1.1. (Thanks jb!)
7075 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7077 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
7078 class to allow us to use different backends on different platforms.
7079 Linux uses the current [Draw|Measure]String backend. Windows uses
7080 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
7081 of GDI+. This leads to better looking text and more accurate measurements
7082 on Windows, fixing many of the reported issues.
7083 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
7085 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7087 * FolderBrowserDialog.cs: When running on Windows,
7088 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
7089 since we must match both "C:" and "C:\" forms. A little hackish, but
7093 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7095 * ListView.cs: When calling EndEdit (after editing an item),
7096 create a new instance of LabelEditEventArgs to keep clean the fields
7097 in case we get a new call to BeginEdit; also do Application.DoEvents
7098 to have focus in synch. This is a fix similar to TreeView's #325244.
7100 2007-10-07 Andreia Gaita <avidigal@novell.com>
7102 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
7103 * WebBrowserBase.cs: Added dialog support, calling the
7104 WebBrowserDialogs classes for each specific dialog type.
7106 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7108 * ListView.cs: When the last item is focused and is removed,
7109 move the focus to the previous item (in Items order). This is what MS
7113 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7115 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
7116 instead of the opposite (RemoveAt call Remove). This is a better
7117 approach since we don't need to to a pair of traversals when using
7120 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7122 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
7123 check that the node actually has nodes, and if not, move to the
7124 parent node instead.
7127 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7129 * TreeView.cs: Move the previous change to the general case (to
7130 call Application.DoEvents in cases where the method was called by
7133 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7135 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
7136 call Application.DoEvents. This is neccessary when we get a call to
7137 BeginEdit from an AfterLabelEdit handler, because the focus always
7138 goes to the TreeView, even if we try to give it to our
7139 LabelEditTextBox. The call do Application.DoEvents seems to
7140 synchronize the focus, basically.
7143 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7145 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
7146 should be false. This also removes some nasty recursive paths. Fixes
7149 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
7151 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
7152 state to normal. Also resize window when cascading. Fixes #325433.
7154 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7156 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
7157 DefaultForeColor, as drawing empty colored lines isn't very useful.
7158 [Fixes the not drawn lines part of bug #324358]
7160 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7162 * TextControl.cs: Move Line and LineTag classes into separate files to
7163 make things easier to find.
7164 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
7165 * RichTextBox.cs: Capitalize LineTag.Length property access.
7166 - This is purely an organizational/formatting change, no logic changed. -
7168 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7170 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7173 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7175 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7178 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7180 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7181 prevent calling of OnBackColorChanged. Fixes #325321.
7183 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7185 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7186 because control can be disabled because owner is disabled.
7188 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7190 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7191 string.Empty, test failed from previous change.
7193 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7195 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7196 is null, not String.Empty. See bug #323038.
7198 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
7200 * TextControl.cs: Change the margins to match MS a little better.
7201 Still not perfect for X11 due to some DrawString differences, but
7202 is still an improvement over the old stuff.
7203 Partially fixes #324467.
7205 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7207 * FolderBrowserDialog.cs: When using MyComputer as
7208 RootFolder, let absolute paths be considered as valid ones. Also, use
7209 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7210 for Windows compatibility.
7211 Partially fixes #325247.
7213 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7215 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7216 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7217 method, since it causes the dialog to not select folders directly
7218 under the root path (when setting SelectedPath property).
7220 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7222 * TreeNode.cs: When calling Expand/Collapse and need to call
7223 ExpandBelow/CollapseBelow respectively, take into account
7224 partially visible nodes (previously Expanding/Collapsing
7225 a partially visible node in the bottom was not updating its +- sign).
7227 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7229 * TreeView.cs: When calling Expand on a TreeNode, and we need to
7230 expand nodes below (ExpandBelow), scroll the entire Viewport
7231 area if the node is above it and not visible (instead of scrolling
7232 the area from node's Bottom, which applies only when the node is
7236 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7238 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7239 node in the bottom area (as .Net does). This is done to preserve the
7240 scroll position when ExpandAll is called before handle is created for
7241 the 1.1 profile (bottom area, as opposed to top area in 2.0).
7244 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7246 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
7247 bottom area if we are in fact not using the vertical scroll bar.
7250 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7252 * Control.cs: Comment out a double buffering optimization that doesn't
7253 take into account invalidates created in OnPaint, causing the control
7254 to never be redrawn. It would take quite a bit of work to work around
7255 this, but I left it commented with an explanation for later possible
7259 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7261 * Control.cs: Ask parent to perform a layout if control is AutoSize and
7263 * RadioButton.cs: Implement GetPreferredSizeCore.
7266 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7268 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7271 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7273 * Application.cs: Move the sync context stuff to Run instead of RunLoop
7274 so that it doesn't get uninstalled on modal forms.
7275 * Control.cs: Install a sync context when a control is created.
7276 * WindowsFormsSyncronizationContext.cs: Create a private static control
7277 to invoke on. This is easier than trying to find a created control we
7281 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
7283 * Application.cs: Install a WindowsFormsSynchronizationContext in the
7284 run loop, and uninstall it when done.
7285 * WindowsFormsSynchronizationContext.cs: Implement.
7286 [Fixes the common case in bug #327608]
7288 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
7290 * DataGridViewCellCollection.cs: Added argument checks for indexers.
7291 Use case-insensitive lookup of column name in indexer. Code
7294 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7296 * TreeNode.cs: When collapsing or expanding a node, check whether its
7297 change will affect the visible area (we were previously doing a
7298 IsVisible check, but that check is not enough since children nodes
7299 could be still visible). Fixes part of #325266.
7301 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7303 * TreeView.cs: Always select the first node when the TreeView gets
7304 focus if there is no currently selected node.
7307 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7309 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7310 node being selected is null.
7311 [Patch from Yves Bastide fixes bug #326858]
7313 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7315 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7316 whether all the parent nodes are expanded.
7317 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7318 call RecalculateVisibleOrder if all previous nodes are expanded.
7319 Before that we were doing a IsVisible check, but sometimes the node
7320 is not in the visible area, but _should_already be ready, because of
7321 all previous nodes are expanded. Fixes #325259.
7323 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7325 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7326 portion of the item is clicked.
7328 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7330 * TextControl.cs: Do not tell the system to move the cursor if the
7331 textbox isn't focused. Fixes part of bug #322668.
7333 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7335 * ComboBox.cs: When there are no items, do not show the dropdown if
7336 the down arrow is clicked. Fixes part of bug #322668.
7338 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7340 * ToolStripComboBox.cs: Manually set the size of this control in the
7341 constructor, as it doesn't seem to be the same as DefaultSize.
7342 Fixes a failing monobuild test.
7344 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7346 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7347 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
7349 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7351 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7352 Desktop. This lets it work for people who have moved their desktops
7353 from the default location on windows. For people who have not, both
7354 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
7356 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7358 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7359 but when the base constructor sets this, the control is null. Set it
7360 again in the constructor. Fixes a failing monobuild test.
7362 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7364 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7366 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7369 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7371 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7372 will handle it themselves.
7373 * ToolStripItem.cs: When deciding what the text of a tooltip should
7374 be, use the Text property instead of the text field.
7375 * ToolStripTextBox.cs: Handle tooltips.
7376 [Fixes bugs #325417 and #325973]
7378 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7380 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7381 left click. Fixes the easy part of bug #325969.
7383 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7385 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7386 bug #325406, but set a minimum for StatusStrip to 22 to keep
7387 bug #325390 fixed. I think this minimum would have been figured
7388 up automatically if the grip was actually a ToolStripItem, but it
7391 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7393 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7394 as this is apparently the actual value used by .Net. Also apply
7395 ItemPadding in Details view only, and decrease the general width padding,
7396 to have only the needed. This should fix #324340 in Windows too.
7398 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7400 * ListViewItem.cs: Don't Invalidate item if parent is inside
7401 a BeginUpdate/EndUpdate block. This prevents to have differences
7402 between the ListView and items state, as well as avoid some exceptions
7404 * ListView.cs: Make 'updating' field internal.
7406 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7408 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7409 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7410 size if appropriate.
7411 Fixes reopened bug #325414.
7413 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7415 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7416 * ToolStripItem.cs: Invalidate before and after our new autosize when
7418 Fixes reopened bug #325390.
7420 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7422 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7423 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
7426 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7428 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
7430 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7432 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7433 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7436 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7438 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
7439 item to select when the ToolStrip is selected.
7440 * ToolStripControlHost: Realign the control when the bounds or visibility
7442 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7443 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7445 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7446 base.OnPaint. Was causing text not to be drawn.
7448 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7450 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7452 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7454 * TreeView.cs: When creating the label edit text box,
7455 set is initially to Visible = false. This is done to
7456 prevent a confusion in the layout which makes it to lose
7457 focus when shown the first time. Fixes part of #82592.
7459 2007-09-13 Andreia Gaita <avidigal@novell.com>
7461 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7463 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7465 * ToolStrip.cs: Take Margin into account when calculating preferred
7466 size. Also, allow preferred size to get smaller than the explicit
7468 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7469 First step towards fixing bug #82747.
7471 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7473 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7474 full row select background over the plus/minus glyph. Also, turn
7475 off the focus rectangle for full row select since MS doesn't seem
7476 to ever paint it. [Fixes bug #81839]
7478 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7480 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7481 This was causing keyboard opened dropdowns to lose focus.
7484 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7486 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7487 ClientRectangle instead. [Fixes bug #82838]
7489 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7491 * SplitContainer.cs: We can't reset Visible on every layout because
7492 someone may have set Visible = false explicitly on a SplitterPanel.
7493 Make sure when we switch orientation the SplitterDistance does not
7494 change. Fixes two failing tests.
7496 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7498 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7499 TextRenderer, since the latter is only available in 2.0.
7501 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
7503 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7504 * SplitContainer.cs: Implement FixedPanel layouting.
7506 2007-09-12 Andreia Gaita <avidigal@novell.com>
7508 * WebBrowserBase.cs: setup shutdown routine
7510 2007-09-12 Andreia Gaita <avidigal@novell.com>
7512 * Application.cs: Let keyboard events that are targetted
7513 to non-mwf windows hosted inside mwf (as in, webbrowser),
7514 propagate properly. Fixes keyboard handling on the webbrowser.
7516 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518 * ListView.cs: When handling MouseUp event and we are
7519 highligting a node with the mouse right button, don't trigger
7520 Before/AfterSelecting event, since we are not actually selecting
7523 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7525 * TreeView.cs: When editing a node, modify the edit text box
7526 depending on the text length (as you are typing), like MS does.
7528 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7530 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
7531 Override GetPreferredSizeCore to perform calculations. Remove custom
7532 autosize logic. [Fixes bug #82739]
7534 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7536 * TextBoxBase.cs: Modified should default to false.
7538 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7540 * Control.cs: Update the anchoring distances even when layout is supspended.
7541 Patch provided by George fixes bug #82805.
7543 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7545 * Control.cs: Provide a setter for ExplicitHeight.
7546 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7547 remove the hacks in here for requested_height.
7550 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7552 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7553 Maximum to lower that its current Value caused an ArgumentException by setting
7554 the Value to the new Maximum.
7556 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7558 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
7559 handle moves to the closest tick when it is being dragged.
7562 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7564 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7565 can't let them count as real items when calculating where to merge in the
7566 user's items. [Fixed bug #82786]
7568 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7570 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7571 who want to add a menu item directly onto a toolstrip.
7572 [Fixes bug #82775, part II]
7574 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7576 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7577 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7578 don't set it to available.
7579 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7580 [Fixes bug #82727, part II]
7582 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7584 * StatusStrip.cs: Change item placement to None if not visible.
7585 * ToolStripItem.cs: Invalidate when InternalVisible changes.
7586 These should have been committed to fix 82723, but I missed them.
7588 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7590 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7591 Click, and that it is only called once.
7592 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7593 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7597 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7599 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7601 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7602 instead of 8, just like above. Partially fixes #82734.
7604 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7606 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
7609 * ListView.cs: Remove extra space between rows in Details view (match
7611 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7614 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
7616 * Application.cs: Modified ProductVersion to return value of
7617 AssemblyInformationVersion if available, and fallback to assembly
7618 version. Fixes bug #82746. Code formatting.
7619 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7622 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7624 * Control.cs: When updating ZOrder for a child control,
7625 take into account the implicit ones (we need it in our controls
7626 using them). Fixes #82642.
7628 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7630 * ToolStripItem.cs: Add support for animated images.
7633 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7635 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
7636 visible. [Fixes bug #82727]
7638 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7640 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7641 so we repaint using the new size. [Fixes bug #82723]
7643 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7645 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7646 option. [Fixes bug #81779]
7648 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7650 * TreeView.cs: Override HandleClick because the StandardClick style is
7651 set to false. According to MSDN (and testing), the click events should
7652 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
7654 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7656 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7657 the border will disappear. Fixes reopened #82653.
7659 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7661 * Control.cs: If the control is autosize, and its preferred size changes
7662 when it lays out its children, tell its parent so it can be re-layed out.
7663 Fixing some of the fallout from r85433.
7665 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7667 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7668 and CheckBox share some code.
7670 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7672 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7673 the TrackBar, not every mouse move. [Fixed bug #82718]
7675 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7677 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7678 under 2.0 rendering. [Fixes bug #82657]
7680 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7682 * TreeView.cs: If we found a TreeNode to display a context menu, but
7683 it doesn't have one to show, let the TreeView display its menu
7684 instead. [Fixes bug #82680]
7686 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7688 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7689 OnPaintInternal instead. Give the internal TextBox a Border property
7690 so it can draw itself more correctly. [Fixes bug #82653]
7692 2007-09-06 Zoltan Varga <vargaz@gmail.com>
7694 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7696 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7698 * ComboBox.cs: Adjust combobox button state to reflect current state when
7699 back to enabled = true. Fixes first issue of #82654.
7701 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7703 * Control.cs: Fix last patch regression, prevent forms to update zorder when
7704 setting visible property.
7706 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7708 * Control.cs: Update zorder after control creation in SetVisibleCore, it
7709 fix zorder for controls initially created as non visible. Fixes #82667.
7711 2007-09-04 Everaldo Canuto <everaldo@simios.org>
7713 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7714 mimic win32 look. Fixes #82656.
7716 2007-09-01 Zoltan Varga <vargaz@gmail.com>
7718 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
7719 Stubs for new net 3.5 classes.
7721 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7723 * ListViewItem.cs: In ListViewItemCollection operations calculate
7724 Layout for owner as well as invalidate it. Fixes part of #82642.
7726 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
7728 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7729 when returning Enabled. [Fixes bug #82651]
7731 2007-08-30 Everaldo Canuto <everaldo@simios.org>
7733 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7735 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7737 * ListView.cs: Put item padding info in a single place
7738 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7740 * ThemeWin32Classic.cs:
7741 * Theme.cs: Likewise.
7743 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7745 * ListView.cs: When a ListViewSubItem instance is invalidated,
7746 invoke Invalidate on parent ListViewItem, not parent ListView.
7749 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7751 * ListView.cs, ListViewItem.cs: corcompare stuffs.
7753 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7755 * BindingMemberInfo.cs: Implement == and != operators.
7757 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7759 * HtmlElementEventArgs.cs: Implement properties.
7761 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7763 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7765 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7767 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7768 Add (string,string,string) to implement the imagekey. It turns out, we
7769 use the requested imagekey whereas .Net does not. So I broke ours to match
7772 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7774 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7776 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7778 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7780 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
7782 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7783 up-to-date. Fixes bug #82618.
7785 2007-08-29 Everaldo Canuto <everaldo@simios.org>
7787 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7788 reflect document changes. Fixes #82367.
7790 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7792 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7793 as well as add new ones. This should make work the BackgroundImage
7794 property for ListView again.
7796 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7798 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7799 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7800 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7802 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7804 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7807 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7809 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7810 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7812 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7814 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
7815 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7817 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7819 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7821 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7823 * GridEntry.cs: Implement GetService.
7825 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
7827 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7828 for label editting, make sure we focus back on the TreeView.
7831 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7833 * ListView.cs: Add some 2.0 overrides.
7835 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7837 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7838 because getter dont returns right value before handle creation. Thanks
7839 to George. Fixes #82569.
7841 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7843 * Theme.cs: Revert last patch, it causes error under win32.
7845 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7847 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
7848 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
7849 logical Desktop rather than the physical file system location. Fixes #82603.
7851 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
7853 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7854 for the patch. Fixes #82568.
7856 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7858 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7861 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7863 * ListViewInsertionMark.cs: New stubbed class.
7865 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7867 * FolderBrowserDialog.cs: When adding folder, immediately create the
7868 directory with temporary name and rename the directory when editing
7869 finishes. This matches MS. Ensure the node for the new folder is
7870 selected and LabelEdit is disabled, when editing is either finished
7873 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7875 * TreeView.cs: When editing label of node, ensure node is visible.
7877 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
7879 * PropertyGridView.cs: Set the value only if it has changed.
7881 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7883 * ListView.cs: Some more code refactoring to add support sorting
7884 with groups (now for Details view). Remove unused code also.
7886 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7888 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7889 Not a big fan of reacting immediately to a field in an EventArg, but that's
7890 the way it's done. (This is part of the previous commit that got left out.)
7892 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7894 * FolderBrowserDialog.cs: Removed need for separate description field.
7895 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7896 has focus when dialog box is displayed again, regardless of what
7897 button was pressed the previous time. Set RootFolder and SelectedPath
7898 each time dialog box is displayed. This ensures the treeview is
7899 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7900 when it does not have focus. Added support for more special folders.
7902 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7904 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
7905 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
7906 it resets the edit_args.
7907 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7910 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
7912 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7913 button to match MS. Provide more meaningful exception message for
7914 invalid RootFolder value. Use zero-length string when SelectedPath
7915 is set to null. Allow non-rooted paths in SelectedPath, but ignore
7916 them in FolderBrowserTreeView. Allow folders to be created in
7917 RootFolder. Fixes bug #82576.
7919 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7921 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7922 since we need to take into account the group headers and the margin
7924 * ListViewGroup.cs: Add a rows field to store the number of rows per
7927 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7929 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7930 Anyways, let's just follow the lead.
7932 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7934 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7935 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
7936 controls in GetPreferredSizeCore.
7937 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7940 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7942 * PrintDialog.cs: Need to instantiate the form variable here too.
7944 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7946 * ListView.cs: Do some reorganization to support sorting in groups,
7947 by doing the layout sequentially in ListView.Items. Also add support
7948 for the Default Group, which should be available for items with no
7950 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7951 for storing layout info also.
7952 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7953 collection, as well as providing internal members to do a traversal
7954 including the default group (needed when doing layout/drawing).
7955 * ThemeWin32Classic.cs: When drawing group headers use internal
7956 ListViewGroupCollection members to take into account the default
7959 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
7961 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
7963 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7965 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7966 been created. If handle is created, we want arror keys. If we are editing
7967 a node, we want things like enter, esc, home, end, page up, page down.
7968 Allows Esc to work for FolderBrowserDialog.
7970 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7972 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7973 they close when ESC is pressed. Thanks Andy!
7975 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7977 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7978 This way we can tell if this is a CommonDialog provided with mono, or one
7979 that is being implemented outside by a developer. If it is an external one,
7980 the developer is responsible for showing their own form. We were showing
7981 our blank form after the developer showed his.
7982 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7983 PageSetupDialog.cs: Instantiate form variable in our constructor.
7986 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7988 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7989 and always return true. [Fixes bug #81616]
7991 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7993 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7994 TextBox. [Fixes bug #82549]
7996 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
7998 * FileDialog.cs: When Save/Open is clicked and no filename is selected
7999 or entered then do not close the dialog. Fixes bug #82539. Removed
8002 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
8004 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8005 code to this method. It is calling every time filter changes. This method
8006 will help to fix the bug #80887.
8008 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8010 * CheckBox.cs: Implement AutoSize calculation.
8012 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8014 * CheckBox.cs: Use new 2.0 rendering for 2.0.
8015 * Theme.cs: Method declarations for 2.0 rendering path.
8016 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8018 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8020 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8022 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8024 * ListViewGroupCollection.cs: Implement AddRange the right way, to
8025 only call Redraw on the parent one time.
8027 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8029 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8030 GetClipboardContent.
8031 * DataGridViewCell.cs: Implemented GetClipboardContent,
8032 GetEditedFormattedValue, GetFormattedValue.
8033 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8035 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8037 * TableLayoutStyleCollection.cs: corcompare fix.
8039 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8041 * DataObject.cs: Implemented retrieval of convertible / not convertible
8044 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8046 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8047 ourselves. This ensures the entire old bounds are repainted, in case our new
8048 size is smaller. [Fixes bug #82518]
8050 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
8052 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8053 flag to make fast handle of mouse events, without this the mouse move is
8054 handled in some manner, whether it is a mouse move or not. Fixes #81588.
8056 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8058 * ListView.cs: When doing layout calculations don't use a ref
8059 param to keep the current item; instead use its Index value (this
8060 is specially important when doing the layout with Groups
8061 and Items being sparse). Also don't take into account items added to
8062 the Group but not yet added to the main ListView.Items collection.
8064 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8066 * ListViewGroupCollection.cs: Forgot to mimic an issue
8067 in the indexer (don't assign the ListView owner for new values).
8069 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8071 * ListViewGroupCollection.cs: Make the string indexer use
8072 the int based indexer to re-use code, instead of duplicate the code.
8073 Also Redraw as needed and take into account null values.
8075 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8077 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
8080 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8082 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
8083 when other buttons are clicked or navigated to.
8085 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8087 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
8088 it's XplatUIX11 that attaches them.
8090 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8092 * DataGridView.cs: If a column has been added, recreate the editing row.
8095 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8097 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
8098 of the tag to draw. Makes disappearing text show up again.
8100 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8102 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
8103 Contents. Fixes #82487.
8105 2007-08-19 Andreia Gaita <avidigal@novell.com>
8107 * Added HtmlElement.cs, HtmlElementCollection.cs,
8108 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
8110 2007-08-19 Andreia Gaita <avidigal@novell.com>
8112 * BindingSource.cs: Implement this, dispose and getenumerator.
8113 * DataGridViewRowCollection.cs: Move the InvalidOperationException
8114 out of AddInternal, throw it only on public Add calls. The
8115 UsingWebBrowser sample was blowing up with this when setting the
8116 DataSource after adding DataBindings, so it's likely that .net
8117 only throws this exception when Add is called directly.
8119 * ToolStripControlHost.cs: Return the hosted control's text
8120 property, and not the ToolStripItem one (it would always return
8123 * HtmlDocument.cs: Implement GetElementById and All
8124 * WebBrowser.cs: Remove exception on set_DocumentStream.
8126 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8128 * Form.cs: Fix the max and min value for opacity (0~1).
8130 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8133 * DataGridTableStyle.cs: Default header font is now null, on getter it
8134 returns datagrid font when is null. On setter permits null.
8137 - When ResetHeaderFont set header font to null.
8138 - On EndInit set grid_style.DataGrid.
8140 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8142 * TabControl.cs: Fix regression in default padding x.
8144 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8146 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
8148 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8150 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
8151 not 2. Fixes #82229.
8153 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8155 * TabControl.cs: Fix tab size when image height is less than text height.
8156 Partially fixes #81837.
8158 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8160 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
8161 "alt + tab". It works only for Win32, for X11 theres no way to remove window
8162 from taskbar and keep it on "alt_tab". Fixes #81722.
8164 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8166 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
8167 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
8168 Fixes #80877 and #79418.
8170 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8172 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
8173 between position and one of the screen borders. Fixes #82349.
8175 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8177 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8178 the MessageBox in the taskbar. Fixes #82457.
8180 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8182 * MessageBox.cs: Fix form size when icon is set and text height is bigger
8183 than icon. Fixes #82468.
8185 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8187 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8188 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8189 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8190 Refactored HandleNCCalcSize somewhat to avoid code duplication.
8191 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8192 FormBorderStyle to decide if we're calculating a new size from the
8193 client size or not. CreateParams: Don't fake tool windows, only the X11
8194 backend manages toolwindows manually.
8196 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8198 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8199 ObjectDisposedException.
8201 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8203 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
8204 in OnLoad should not have any effect. [Fixes bug #82470]
8206 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8208 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8209 paint for controls that create their own ToolTipWindow instead of
8210 going through ToolTip.
8212 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8214 * ToolTip.cs: Make Hide internal instead of public to match MS API.
8216 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8218 * ListViewGroupCollection.cs: Use generic List instead of an
8219 ArrayList, since this collection is 2.0 only.
8221 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
8223 * ToolTip.cs (Hide): Made public to make the build work (should
8224 this not be public?).
8226 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8228 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8230 * ToolTip.cs: Add an internal Visible property to facilitate transition.
8232 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8234 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8235 PopupEventHandler.cs: Make these internal for 1.1.
8236 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8237 use ToolTipWindow internals.
8238 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
8239 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8241 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8243 * X11Dnd.cs: Add a null check.
8245 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8247 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8248 nothing else succeeds. Fixes #82453.
8250 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8252 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8253 rectangle if we're painting to another window than the one the paint
8254 message was generated on. Simplify the code somewhat, which makes
8255 PaintEventEnd also simpler.
8257 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8259 * Control.cs: When changing parent of a form, let the form decide whether
8260 XplatUI.SetParent should be called or not.
8261 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8262 recreating the handle. If the new parent's handle isn't created, don't
8263 recreate our handle, just destroy it. CreateParams: Check if the
8264 parent's handle is created before fetching it.
8266 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8268 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8269 Update calls to PaintEventStart/End to take a Message argument.
8270 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8271 take a Message argument.
8272 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8273 Message argument, and handle the case where we don't paint to the window
8274 for which the paint message was generated.
8276 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8278 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8279 Marshal.GetLastWin32Error. Plug nasty memory leak in
8280 PaintEventStart/End, we were creating a DC we weren't releasing.
8282 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8284 * ListView.cs: Add Groups support in Details view. Also have a small
8285 method to do the layout of the group header. Don't use a separate
8286 method to do the groups calculation in Icons view, since our methods
8287 are now a little simpler.
8288 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8290 * ThemeWin32Classic.cs: Likewise.
8292 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8294 * Application.cs: Add FilterMessage method and rework our message loop
8297 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8299 * Application.cs: Add some methods and stub a few methods that are
8300 pretty much never used.
8302 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
8304 * TreeNode.cs: Add some serialization methods.
8306 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8308 * ListView.cs: In ListViewItemCollection have a
8309 'is_main_collection' field to not modify ListViewItem.ListView
8310 when using it as ListViewGroup.Items (and not ListView.Items)
8311 and also don't modify selection state (.Net behaviour).
8312 Instead, set group for items contained in a ListViewGroup.Items collection.
8313 * ListViewItem.cs: Simplify some code in Group setter.
8314 * ListViewGroup.cs: use the new .ctor to pass the current instance
8315 to the ItemsCollection.
8316 * ListViewGroup.cs: Set the ListView property for ListViewGroup
8317 instances when adding/removing. Also make Remove use RemoveAt, which
8318 should perform better.
8320 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8322 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8323 that crept into the 1.1 profile.
8325 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8327 * ToolBarButton.cs: Implement ImageKey.
8329 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8331 * ToolBar.cs: Implement ScaleControl/ScaleCore.
8333 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8335 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8336 created, it might have gotten destroyed since we last checked. Fixes
8339 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
8341 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8342 tooltip will hide when mouse is moved off the control.
8345 2007-08-11 Andreia Gaita <avidigal@novell.com>
8347 * WebBrowserBase.cs, WebBrowser.cs: add implementation
8348 using Mono.Mozilla for loading and navigating webcontrol
8350 The initial implementation was done on
8351 /trunk/mozembed/tests/browser , and copied here.
8353 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
8355 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8356 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8358 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8360 * DataGridView.cs: Add support for an editing row. Fixes #82226.
8361 RowTemplateFull: throw an exception if a column doesn't have a template.
8362 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8363 add the row just before it.
8364 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8366 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8367 DataGridView field to be able to reach the grid's editing row.
8369 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8371 * ToolTip.cs: If the control's handle hasn't been created when it has a
8372 tooltip set on it, don't check to see if we need to show the tooltip. This
8373 check was causing the control's handle to be created.
8376 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8378 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8380 Handle Not Created -1 0
8384 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8386 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8389 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8391 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8392 * ToolTip.cs: Implement some properties and owner draw.
8394 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8396 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8397 show them again, since setting visibility causes a paint, causing an
8398 endless loop (instead use a temporary and set it all when it's known if
8399 they should be shown or not). Fixes #79265.
8401 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8403 * DataGridView.cs: Only do a full column/row selection if a header was
8404 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8405 isn't pressed, deselect everything before selecting something.
8407 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8409 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8410 behaviour according to bug #81075 - they are returned in the order they
8411 are selected. Fix HitTest to check if the point is within any of the
8412 headers. Allow for row/column selection when in ColumnHeader or
8413 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8414 the row and column to call when their selected state changes, and
8415 updated selected_[rows|columns] whenever SetSelected* is called.
8416 * DataGridViewBand.cs: Initialize isRow correctly. Call
8417 SetSelected[Row|Column]CoreInternal when the selected state changes, and
8418 add a SelectedInternal to avoid StackOverflows.
8419 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8420 ReadOnly no matter what.
8421 * DataGridViewSelectedColumnCollection.cs,
8422 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8423 the items in reverse order (just as MS does...)
8425 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8427 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8428 itself, not part of a mnemonic. [Fixes bug #82378]
8430 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8432 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8433 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8434 the DGV, the column, the row, or the cell itself is readonly.
8436 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8438 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8440 * FileDialog.cs: Same.
8441 * TextRendered.cs: Same.
8442 * FolderBrowserDialog.cs: Same.
8443 * TextBoxBase.cs: Same.
8444 * Application.cs: Same.
8446 * ThemeClearLooks.cs: Same.
8448 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8450 * XplatUI.cs: Added RunningOnUnix property to be used by controls
8451 instead of duplicating these checks everywhere.
8452 * FileDialog.cs: Use case-insensitive comparison for populating the
8453 DirComboBox when not running on unix. Fixes bug #82385.
8454 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
8457 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8459 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8460 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8461 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8462 cell and column selection with ctrl and shift pressed. Call the correct
8463 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8464 the corresponding virtual method (PaintBackground to paint background,
8466 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8467 either the column, row or the cell itself is selected.
8468 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8470 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8471 here. When the row is selected, don't select all cells. Each cell now
8472 queries the row to see if the row is selected.
8474 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8476 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8479 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8481 * ListView.cs: In ListViewItemsCollection check that owner is
8482 not null before trying to access it (this happens quite often
8483 using Groups). Also don't duplicate calls by calling CollectionChanged
8486 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8488 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
8489 when we are dismissed to clear keyboard mnemonics.
8490 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
8491 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8492 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8493 was activated by keyboard or the OS tells us to always draw them.
8494 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8495 [Fixes bugs #82376, #82377]
8497 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8499 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
8500 shot at having it because Alt was pressed.
8501 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8502 the first real menu item.
8503 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8504 a mnemonic if Text is null.
8507 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8509 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8510 search do check whether the item is already contained in the
8511 collection or not; instead check if the owner of the item is the same
8512 as ours. Also, remove a redundant check in the same method.
8514 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8516 * Control.cs: Allow the clip region to be set back to null.
8517 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8518 [Fixes button still showing up in bug #82370 when Show Through is turned off]
8520 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8522 * GridEntry.cs: Add a null check.
8523 * PropertyGrid.cs: When checking for existing grid entries, ignore category
8524 entries. Fixes #82297.
8526 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8528 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8531 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8533 * ListBox.cs: Implement ScaleControl.
8535 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8537 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8539 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8540 parent has a menu strip. Fixes #81689.
8542 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8544 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8545 moments, so apply some fuzzy logic to determine if the mouse is still
8546 inside a control or not. Fixes #82288 (for the third time).
8548 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8550 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8551 Don't create the child if it has been disposed already (may happen if
8552 the user closes the form the Load event).
8554 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8556 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8559 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8561 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8562 might call us after we've been destroyed, in which case our own private
8563 parent field is null. Fixes #82326.
8565 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8567 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8568 check for setting the dropdown's owner.
8570 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8572 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8573 before removing system menu items.
8575 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
8577 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8579 * MdiControlStrip.cs: Added. These are the menu items used in mdi
8581 * ToolStrip.cs: Add a null check to mnemonics.
8582 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8584 [Fixes most of bug #81689]
8586 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8588 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8590 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8592 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8594 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8596 * DataGridViewCell.cs: EditType: returns
8597 DataGridViewTextBoxEditingControl always.
8599 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
8601 * TextRenderer.cs: Remove the LineLimit string format flag from the
8602 DrawString fallback method so that things like buttons that aren't
8603 tall enough to draw a full line will still draw part of the text.
8604 [Fixes part of bug #82272]
8606 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8608 * DataGridView.cs: Implemented AutoResizeColumn(s).
8609 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8610 according to the Alignment.
8611 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8612 Implement alignment and padding when painting.
8613 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8615 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8617 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8620 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8622 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8625 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8627 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8628 hide GetPreferredSize from public API.
8629 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8630 * ToolStripItem.cs: Stub out drag and drop methods and events.
8631 * ToolStripManager.cs: Stub out Save/LoadSettings.
8632 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8633 * ToolStripPanel.cs: Fix corcompare error.
8634 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8635 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8636 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8638 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8640 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8641 bounds height instead of PreferredHeight. Puts things back the way
8642 they were for height while still fixing the width. Fixes broken unit
8645 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8647 * Binding.cs: Implement 2.0 constructors and add a null check.
8649 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8651 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8652 and fix row index (off by one).
8654 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8656 * PropertyGridView.cs: Remove debug output.
8658 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8660 * Control.cs: We need to reset the is_created flags when the handle is
8661 destroyed. Fixes #82187.
8662 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8663 client coordinates if the window doesn't have a parent.
8664 Win32GetParent returns the parent or the owner, and for top-level
8665 windows with no parent (but with an owner) we were calculating the
8666 location from the location of the owner.
8667 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8668 form has been disposed.
8669 * MdiClient.cs: Add a null-check.
8671 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8673 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8674 actually do auto-sizing. Override the internal GetPreferredSizeCore
8675 so we can provide an implementation that returns the current width
8676 and preferred height. Allows anchor = right to work with TextBox 2.0.
8679 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8681 * ListView.cs: Add support for navigating items in Groups mode, by
8682 creating a big matrix containing all rows and cols of all groups. When
8683 are in other mode than Details, pressing Up should have a similar
8684 behaviour as that one of Down (moving to the next available column if
8685 current one doesn't have an item in the requested row). Also, don't
8686 proceed to use groups if ShowGroups is false.
8687 * ListViewGroup.cs: Add an internal int field to store the starting
8688 row of the group (used by the big matrix used for navigating the
8690 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8693 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8695 * ToolStripDropDown.cs: When we do Show, start with the
8696 DefaultDropDownDirection, but if our popup menu is going to off-screen,
8697 modify the direction to keep it on screen. [Fixes bug #82210]
8699 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
8701 * FileDialog.cs: Accept any FilterIndex value, and store it
8702 unmodified. When FilterIndex is less than 1, or greater than number
8703 of filters, then default to first filter. Only add filter extension to
8704 file if user did not specifiy an extension. When type of dialog is
8705 OpenFileDialog and DefaultExt is set, then only use filter extension
8706 if: CheckFileExists is true and no file wih the default extension
8707 exists, or CheckFileExists is false, and user specified file does not
8708 exist. When CheckFileExists is true, then add first extension of
8709 selected filter that matches existing file. Perform checks for
8710 existing file, overwrite and create after extension has been added to
8711 file name. When CheckFileExists is true and type is SaveFileDialog,
8712 then only consider first filter extension if DefaultExt is set.
8713 When CheckFileExists is true, then ignore DefaultExt if file with that
8714 extension does not exist. Also perform check for existing file when
8715 type is SaveFileDialog. Changed some field to constants.
8717 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8719 * ListView.cs: Take into account the region used by header
8720 control when doing the vertical scroll (this way we invalidate
8721 the precise area, and don't get any dirty one).
8723 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
8725 * FileDialog.cs: Check for valid filterIndex on button open/save.
8728 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8730 * ListView.cs: Update some layout calculations in details view
8731 and clean the code in a pair of assignations.
8733 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8735 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8736 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8737 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8738 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8740 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8742 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8743 performance of thread-safe Graphic methods. (Thanks rolf!)
8745 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8747 * ListView.cs: When doing the layout calculations, don't calculate
8748 scroll bars before handle is created. This is unnecessary and also
8749 calculating them before handle creation item causes a number of random
8750 bugs (which begin to appear after Chris' big patch for handle creation
8753 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8755 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8756 for things that don't have a Graphics object. Currently, things just use
8757 the static Hwnd.bmp_g which is not thread safe.
8759 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8761 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8762 dialog. Fixes #82187.
8764 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8766 * DataGridViewElement.cs: Initialize state.
8767 * DataGridView.cs: Forward a few Mouse events to cells. Add
8768 GetRowInternal and GetCellInternal that doesn't unshare rows.
8769 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8770 don't use the index, but look it up. Add
8771 DataGridViewControlCollection.RemoveInternal to remove controls
8772 that Remove won't remove (scrollbars, edit control).
8773 * DataGridViewColumn.cs: Initialize State correctly.
8774 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8775 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8777 * DataGridViewRowCollection.cs: Implemented shared rows.
8778 * DataGridViewRow.cs: Throw exceptions as MS do.
8779 * DataGridViewCell.cs: A few properties are implemented by a
8780 Get<Property> method, so move implementation there and remove the
8781 NIEX in the method. Add a bunch of OnXInternal that DataGridView
8782 calls when necessary.
8783 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8784 complicates matters.
8785 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8788 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8790 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8791 the children controls. Instead, we will just set up the proper docking for the
8792 children controls so we don't have to worry about it. [Fixes bug #82188]
8794 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8796 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8797 canceling and correct Before/AfterLabelEdit properties as layed out in bug
8798 81847. [Fixes bug #81847]
8800 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8802 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8803 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
8804 an explicit size based on the design-time size of the text. Since our fonts
8805 may not match this explicit size, we tend to cut off the ends of people's labels.
8807 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
8809 * Menu.cs: Add some missing methods to MenuItemCollection.
8811 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8813 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8814 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8815 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8816 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8817 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8818 * DataGridViewElement.cs: State defaults to Visible.
8819 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8820 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8822 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8824 * Control.cs: Minor 1.1 corcompare fix.
8826 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8828 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8829 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8831 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8833 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8834 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8835 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8836 DataGridViewSelectedColumnCollection.cs,
8837 DataGridViewSelectedRowCollection.cs: Corcompare work.
8839 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8841 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
8842 it is autoset by VS2005 designer and the effect is barely noticeable.
8844 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8846 * TreeView.cs: Implement HitTest.
8848 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8850 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8851 manually adding and removing the control from the Controls
8853 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8854 EditingControlInternal property that tracks the editing control.
8855 Always keeping the scrollbars in the Controls collection, as MS
8856 testing confirms is the right behaviour.
8858 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8860 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8861 according to MSDN and new test.
8863 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8865 * TreeNode.cs: Implement ToolTipText.
8866 * TreeView.cs: Implement tooltips, NodeMouse* events.
8868 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8870 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8872 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8874 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8875 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8877 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
8879 * Control.cs, Form.cs, ContainerControl.cs,
8880 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
8881 for misc properties.
8883 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8885 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8886 * TreeView.cs: Implement StateImageList.
8888 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8890 * Form.cs: Don't check if the current form is the active form before
8891 activating it. Fixes #81904.
8893 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8895 * Form.cs: Don't check if the current form is the active form before
8896 activating it. Fixes #81904.
8898 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8900 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8902 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8904 * Form.cs: Don't try to position the form after loading if the form was
8905 disposed. Fixes #81969.
8907 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8909 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8910 properties. Had to change ToolBar into ToolStrip, which required a
8913 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8915 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8916 resized, fixes part of #79829 (vertical lines in toolbar).
8917 PropertyGrid: Refactored Populate* to something that's easier to
8918 follow at least for me, as well as splitting it up into several new
8919 methods, required to update only subitems when something has
8920 changed by a popup editor or listbox. Don't use events to check
8921 when any values are changed, since the events are unreliable (we're
8922 changing the objects the events are registered with, and if the
8923 event handling requires the objects to be immutable (objects stored
8924 in hashtables for instance), the events will never be raised).
8925 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8926 everytime we change a value, since events are unreliable.
8927 DropDownButtonClicked: For the same reason don't compare objects to
8928 check if it has changed or not, it would require all objects to
8929 derive Equals. Fix dialog location on windows, MS is doing weird
8930 things when creating parented forms.
8931 * GridEntry.cs: Add a SelectedObject setter.
8933 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8935 * TreeNode.cs: Add some corcompare attributes.
8936 * TreeNodeCollection.cs: Implement 2.0 stuffs.
8937 * TreeView.cs: Implement some 2.0 stuffs.
8939 2007-07-18 Andreia Gaita <avidigal@novell.com>
8941 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8944 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8946 * ListBox.cs: Implement custom tab offsets.
8948 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8950 * ToolStripContentPanel.cs: Support System renderer.
8951 * ToolStripControlHost.cs: Set RightToLeft to default to No.
8953 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8955 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8957 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8959 * CheckBox.cs: Chain TextAlign to base implementation instead of
8960 maintaining another one.
8962 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8964 * ButtonBase.cs: Fix an incorrect string constant.
8966 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8968 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8969 of creating one for measuring strings.
8971 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8973 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
8974 Implement MaxItemSize.
8976 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8978 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8979 for DeviceContext. Instead, use the static one available in Hwnd.
8980 Informal tests show this saves about 500k on formtest.exe.
8982 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8984 * ContainerControl.cs: Implement 2.0 AutoScaling.
8986 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8988 * ComboBox.cs: Work around bug #82120 (bug in mcs).
8990 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8992 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8993 Darken the focus color.
8995 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8997 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8999 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9000 X, Y instead of a rect for drawing text.
9001 - For ControlPaint.DrawCheckBox, center the check a little better when the
9002 checkbox is odd width. When drawing a flat checkbox, use a white background
9003 when state != inactive.
9004 [Fixes bugs #82097, 82100]
9006 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
9008 * ListControl.cs: When changing CurrencyManager, disconnect event
9009 handlers from previous one. Fixes bug #81771. Code formatting.
9011 2007-07-15 Andreia Gaita <avidigal@novell.com>
9013 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9014 full preview invalidation from layout invalidation, and only invalidate
9015 the layout when setting zoom or other properties. Invalidation should
9016 always be done even when resetting properties with the same values as
9017 what is there. Fixes #81744 and #79830.
9019 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9021 * ListView.cs: Implement initial support for Groups. Split some of the
9022 LayoutIcons code to render a partial list of the items (needed by
9023 items contained in ListViewGroup instances). Let the
9024 ListViewItemsCollection.ListView property be modifiable (needed when
9026 * ListViewGroup.cs: Use a Bounds property rather than a Location
9027 one. Also invalidate the bounds when they get changed.
9028 * ThemeWin32Classic.cs: When drawing items, also draw the group header
9029 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9032 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9034 * ListView.cs: When space gets pressed and CheckBoxes is true,
9035 don't invoke the Begin and EndUpdate methods. We are generating
9036 a redraw of the entire control without need to do so.
9038 2007-07-13 William Holmes <billholmes54@gmail.com>
9040 * Control.cs: Changing logic in FindFlatForward and
9041 FindFlatBackward to handle multiple Controls with
9043 This fixes bug 81687.
9045 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
9047 * OSFeature.cs: Enable IsPresent.
9049 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9051 * Control.cs: Don't do anything in WmShowWindow if the control has been
9052 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9053 control is created, put on a form, the control is disposed (the
9054 form is never shown), and then we get a MapNotify, triggering a
9056 * Form.cs: Exclude the current form when sending Deactivate to all
9058 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9059 there was a race condition because assigning the handle raises
9060 events, we can get more messages, therefore trying to assign the
9061 handle again, which would fail if any of those event handlers
9062 closed/disposed the control.
9064 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9066 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
9068 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9070 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
9071 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
9073 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9075 * DateTimePicker.cs: If there's no part format specifier, return an
9078 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9080 * FlatButtonAppearance.cs: Throw NotSupportedException for a
9081 Transparent BorderColor.
9083 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9085 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
9086 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
9087 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
9088 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
9089 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
9090 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
9091 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
9093 * X11Structs.cs: Remove warnings, add ToString implementations.
9095 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9097 * XplatUIX11.cs: Translate min/max size according to the actual min/max
9098 size, and not the current size. Fixes #81798.
9100 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9102 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
9103 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
9104 to the control yet).
9106 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9108 * PropertyGridTextBox.cs: Add a method that sends any forwarded
9109 mousedowns to the contained textbox.
9110 * X11Structs.cs: More ToString implementation.
9111 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
9114 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9116 * PropertyGridView.cs: Add a null-check, fixes a few tests.
9118 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9120 * TableLayoutPanelCellPosition.cs: TypeConverter.
9122 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9126 * PropertyGridTextBox.cs: Propagate any color changes to all contained
9128 * PropertyGridView.cs: A few color fixes.
9130 2007-07-10 Jackson Harper <jackson@ximian.com>
9132 * TextControl.cs: Remove some old unused text formatting stuff.
9134 2007-07-10 Jackson Harper <jackson@ximian.com>
9136 * TreeView.cs: Update full row select invalidation to match the
9137 newer DrawSelection... method.
9138 - Make sure to invalidate the entire width when selecting a new
9139 node, if we have full row selection enabled.
9141 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9143 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
9144 display of properties again.
9146 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9148 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
9149 to existing collections.
9151 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9153 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
9154 that changed between 1.1 and 2.0.
9156 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9158 * PowerStatus.cs: Added. This is just a data class, it is filled
9159 in by SystemInformation.
9161 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9163 * Message.cs: Add op_Equality and op_Inequality.
9165 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9167 * MenuStrip.cs: Finish corcompare work.
9169 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9171 * LinkArea.cs: Add op_Equality and op_Inequality.
9173 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9175 * Application.cs: Add MessageLoopCallback delegate.
9177 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9179 * ListBox.cs: First set of 2.0 stuffs.
9181 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9183 * Control.cs: Make an internal Height property we can override
9184 without messing up the public API.
9185 * ListBox.cs: Override HeightInternal to always return the size
9186 the user set. [Fixes bug #80466]
9188 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
9190 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9191 paint cell borders if we haven't calculated where they go yet.
9192 [Fixes bugs #82040 and #82041]
9194 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9196 * ListView.cs: In Details view, set the location of item_control
9197 in the (0,0) position (and the header_control is thus on the
9198 item_control). This way the Bounds of the Items are relative to the
9199 ListView control (before this, they had a Bounds value without the
9200 header_control offset, which wasn't matching .Net). Fixes #82004.
9202 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9204 * ListControl.cs: When DataSource is set to null, pass an empty
9205 array of object to SetItemsCore. This is done to clean the items
9206 in the ListContol children. Fixes #81788.
9208 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9210 * ListControl.cs: Add 2.0 stuffs.
9212 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9214 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
9215 Refresh is overkill for just about every repaint request.
9217 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9219 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9220 so remove my custom Get method and fix the property getter.
9222 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9224 * Label.cs: DefaultMargin for 2.0.
9226 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9228 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
9229 reported issue where other controls with mnemonics would steal strokes
9230 from a selected ComboBox.
9232 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9234 * ScrollOrientation.cs: Make internal for 1.1.
9235 * ScrollEventArgs.cs: Add 2.0 stuffs.
9237 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
9239 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9240 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9241 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9243 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9245 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9247 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9249 * ListView.cs: Implement the so-incredibly broken 2.0
9250 VirtualItemsSelectionRangeChanged event.
9252 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9254 * ListView.cs: When enter is pressed and selection is non empty,
9255 an OnItemActivate event must be fired.
9257 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9259 * ListView.cs: Store the FocusedItem information as an
9260 int instead of a ListViewItem (needed by VirtualMode).
9261 Update the calls to SetFocusedItem to pass an index instead of
9263 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9264 the Focused state from the owner ListView.
9266 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9268 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9269 property. Also, invalidate previous focused item in the mentioned
9270 property (match .Net).
9272 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9274 * ListView.cs: Implement 2.0 FocusedItem property setter.
9276 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9278 * ListView.cs: Implement 2.0 TopItem property setter.
9280 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
9282 * StatusStrip.cs: The default renderer is System.
9283 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
9284 if the user specifies it.
9285 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9286 if we are ManagerRenderMode.
9287 * ToolStripMenuItem.cs: Calculate our text color better.
9288 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9289 from Professional to the base class based off working with the System renderer.
9290 * ToolStripSystemRenderer.cs: Added.
9292 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9294 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9296 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
9298 * ToolTip.cs: Implement 2.0 Tag property.
9300 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9302 * ListView.cs: Implement 2.0 HitTest methods.
9304 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9306 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9307 item is under the pointer or not (sugar). Also remove the TODO
9308 regarding to the cursor changes in OneClick activation.
9309 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9310 the subitems use the parent's HotFont if UseItemStyleForSubItems is
9311 true; otherwise don't show the underline style.
9313 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9315 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9316 the code to retrieve the item at position only one time. Also
9317 change cursor when Activation is ItemActivation.OneClick as well
9318 as invalidate the item if HotTracking is true (to show/hide the
9319 underline style). Add an internal HotItemIndex property to retrieve
9320 the current hot item's index.
9321 * ListViewItem.cs: Add an internal HotFont property to cache the
9322 font used when HotTracking is true and the pointer moves within the
9324 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9325 HotFont depending on the hot state of the item.
9327 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9329 * ListView.cs: Implement 2.0 HotTracking property.
9331 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9333 * ToolStripControlHost.cs: If our hosted control never got created,
9334 don't try to dispose it. [Fixes bug #81909]
9336 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9338 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9340 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9342 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
9344 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9346 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
9348 * DrawListViewColumnHeaderEventArgs.cs:
9349 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9350 using the DrawText () methods.
9352 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
9354 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9355 background which got erased in my changes yesterday.
9357 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9359 * ListViewItem.cs: Actually set bounds for subitems in Details view
9361 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9362 can invoke from the owner draw routines if we need it. Also, add
9363 support for Owner draw in Details view.
9365 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9367 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9368 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9369 ShowImageMargin setting, properly align text in a ToolStripLabel
9370 hosted on a ToolStripDropDown.
9372 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9374 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9375 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9377 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9379 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9381 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9383 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9384 location to match ToolStripMenuItems.
9386 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9388 * DrawListViewColumnHeaderEventArgs.cs:
9389 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9390 column headers in ListView.
9392 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9394 * UserControl.cs: Implement AutoSize.
9396 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9398 * DrawListViewItemEventArgs.cs:
9400 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9403 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9405 * ToolStripDropDownItemAccessibleObject.cs: Added.
9406 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9407 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9408 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9409 ToolStripTextBox.cs: corcompare work.
9411 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9413 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9414 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9415 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9418 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9420 * OSFeature.cs: Add IsPresent.
9421 * PrintPreviewControl.cs: Add RightToLeft.
9422 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9423 * SplitterPanel.cs: Add AutoSizeMode.
9425 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9427 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9428 * MdiClient.cs: Add 2.0 ScaleControl.
9429 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9430 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9432 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9434 * Form.cs: Implement some scaling methods, stub some RTL methods,
9437 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9439 * Control.cs: corcompare work.
9440 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9442 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9444 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9445 ControlPaint 2.0 stuffs.
9447 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9449 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9451 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9453 * UpDownBase.cs: Add 2.0 stuffs.
9455 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9457 * NumericUpDown.cs: Add 2.0 stuffs.
9459 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9461 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9463 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9465 * ErrorProvider.cs: Implement 2.0 stuffs.
9467 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9469 * DomainUpDown.cs: Implement 2.0 stuffs.
9471 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9473 * CheckedListBox.cs: Fix RefreshItems signature.
9475 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9477 * PictureBox.cs: Implement 2.0 stuffs.
9479 2007-06-12 Andreia Gaita <avidigal@novell.com>
9481 * TabControl.cs: Check if there are tabpages before checking
9482 the selected index - fix #81802 (font changes raise a ResizeTabs
9483 call on controls.add, which blew up nicely with no tabpages)
9485 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9488 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9490 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493 * ListViewItem.cs: In VirtualMode the selection information
9494 resides in the ListView, rather than in the Items. Also, throw
9495 InvalidOperationExceptions when VirtualMode is being used and
9496 CheckedItemCollection is accessed.
9498 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9500 * ComboBox.cs: Add ScaleControl.
9502 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9504 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9506 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9508 * GroupBox.cs: Add 2.0 stuffs.
9510 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9512 * Panel.cs: Add autosize properties/event.
9514 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9517 - When we remove a control, remove it from the collection before performing the layout.
9518 - Setup an internal property for explicit_bounds.
9519 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9520 - Perform a layout when we set a new AutoSizeMode.
9522 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9524 * ScrollableControl.cs: Add 2.0 stuffs.
9526 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9528 * ScrollBar.cs: Add 2.0 stuffs.
9530 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9532 * Splitter.cs: Add 2.0 stuffs.
9534 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9536 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9537 to have BindingContext simply use base implementation.
9539 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9541 * ColumnHeader.cs: corcompare fix.
9543 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9545 * Button.cs: corcompare fixes.
9546 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9548 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9550 * Button.cs: Override GetPreferredSizeCore.
9551 * ButtonBase.cs: PerformLayout after changing properties that can affect
9552 AutoSize. Simplify some mouse/keyboard code.
9553 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9554 * MouseEventArgs.cs: Make Location internal for 1.1.
9555 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9556 * Theme.cs: Add CalculateButtonAutoSize.
9557 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9559 2007-06-05 Miguel de Icaza <miguel@novell.com>
9561 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9563 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9565 * ListViewItem.cs: We can't cache Bounds in VirtualMode
9566 since we can get different item instances every time we retrieve it.
9568 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9570 * ListView.cs: Work around for #81602, since an unkown an pretty
9571 infrequent condition appears only in some systems (old linux boxes, it
9574 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9576 * Button.cs: Completely reformat and a little refactor to bring
9577 this closer to Mono circa 2007.
9579 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9581 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9582 to be ButtonBase.Invalidate.
9584 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9586 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
9588 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9590 * ButtonBase.cs: Completely reformat and a little refactor to bring
9591 this closer to Mono circa 2007.
9593 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
9595 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9596 values for autosize. Fixes #80137.
9598 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9600 * Control.cs: Don't perform layout when AutoSize changes.
9601 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
9602 directly when autosizing, use SetBounds with BoundsSpecified.None.
9603 Fixes unit tests my last commit broke.
9605 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9607 * Control.cs: Perform layout when AutoSize changes.
9608 * Form.cs: Implement AutoSizing.
9610 2007-06-01 Chris Toshok <toshok@ximian.com>
9612 * DataGrid.cs: remove the XXX'ed check at the top of
9613 ProcessGridKey. fixes #80464.
9615 2007-06-01 Chris Toshok <toshok@ximian.com>
9617 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9618 adding idempotent (add/remove in Edit()), and also make sure we
9619 don't add it until after we set the text, so it's not tripped in
9620 Edit(). Fixes unit test regression.
9622 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9624 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9625 change is user explicit, not when the layout engine moves stuff. Fixes
9626 anchoring to bottom and right. [Fixes bug #81790]
9628 2007-06-01 Andreia Gaita <avidigal@novell.com>
9630 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9632 2007-06-01 Andreia Gaita <avidigal@novell.com>
9634 * ContainerControl.cs:
9635 Fire enter event for common ancestor if it is not a ContainerControl.
9636 Send focus to the active_control and not the 'value', the active
9637 control might have been changed in one of the events fired.
9638 Definitely fixes #80159.
9640 2007-06-01 Andreia Gaita <avidigal@novell.com>
9642 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9644 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9646 * PropertyGrid.cs: Anchor the help description to the bottom of the
9647 help panel and refactor SelectGridItem into a
9648 SelectGridItemInternal that can be set to null (and update it to
9649 clear the help texts when it is set to null). Set root item to null
9650 when there's no SelectedObject. Fixes #80438.
9651 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9652 when we're recalculating after a resize (only).
9654 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9656 * ListView.cs: Implement 2.0 RedrawItems method.
9658 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9660 * ListControl.cs: Disconnect PositionChanged and ItemChanged
9661 handlers from previous data manager when DataSource is set to
9664 2007-05-31 Jackson Harper <jackson@ximian.com>
9666 * TextBoxBase.cs: These seem to be the correct values.
9668 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
9670 * FileDialog.cs: When close dialog with ok set filterindex using combobox
9671 value. Fixes #81784.
9673 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
9675 * Control.cs: Implement 2.0 scaling methods.
9677 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9679 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9680 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9683 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9685 * ProgressBar.cs: Implemented missing 2.0 members.
9687 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9689 * Control.cs: Corcompare issues.
9690 * MessageBox.cs: Implemented missing 2.0 functions.
9692 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9694 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9695 Implemented more 2.0 members.
9697 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9699 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9700 null (strange, but it seems to happen when running unit tests).
9702 2007-05-30 Andreia Gaita <avidigal@novell.com>
9704 * ContainerControl.cs: Set active_control even earlier, before
9705 firing any events, and undo it if validation returns false.
9707 2007-05-30 Andreia Gaita <avidigal@novell.com>
9709 * ContainerControl.cs: Raise Validation and Enter/Leave events
9710 even if there is no Form and set active_control earlier, just
9711 before firing Enter events (toshok's patches). Fixes #80647.
9713 2007-05-30 Jackson Harper <jackson@ximian.com>
9715 * TextControl.cs: Redid the pageup/pagedown a little to simplify
9716 things and fix bug #81311.
9718 2007-05-30 Jackson Harper <jackson@ximian.com>
9720 * X11Dnd.cs: Now that we have our own event loop, we need to
9721 cancel when we get a mouseup but it won't be accepted.
9723 2007-05-30 Chris Toshok <toshok@ximian.com>
9725 * DataGrid.cs (set_CurrentCell): guard against negative
9728 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9729 array index syntax instead of looping over the property names.
9731 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9732 and set IsInEditOrNavigateMode to false there.
9734 2007-05-30 Jackson Harper <jackson@ximian.com>
9736 * TreeView.cs: Make sure we don't get a bad visible order when
9737 setting to the top node. Fixes some misc crashing in
9740 2007-05-30 Andreia Gaita <avidigal@novell.com>
9742 * UserControl.cs: Add 2.0 AutoSizeMode
9744 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9746 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9748 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9750 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9751 lines. Fixes #80285.
9753 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9755 * DataGridColumnStyle.cs: Add char trimming column header text format.
9757 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9759 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
9762 2007-05-29 Jackson Harper <jackson@ximian.com>
9764 * TreeNode.cs: Fix off by one on calculating whether or not a node
9767 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
9769 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9770 * ScrollableControl.cs: Force an UpdateDistances when we move the
9774 2007-05-29 Andreia Gaita <avidigal@novell.com>
9776 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9777 update the page setup screen.
9779 2007-05-29 Andreia Gaita <avidigal@novell.com>
9781 * PageSetupDialog.cs: Fix landscape mode.
9783 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9785 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9786 IconSizeHorizontalSpacing.
9788 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9790 * ListView.cs: The declaration of prev_tooltip_item should be inside
9791 a NET_2_0 conditional (avoid a warning).
9793 2007-05-28 Andreia Gaita <avidigal@novell.com>
9795 * PageSetupDialog.cs: Implement PrintPreview control to display
9796 the preview thumbnail. Change unit conversion to use
9797 PrinterUnitConvert methods.
9799 Note: there is a huge bug in ms.net where the default margins are
9800 interpreted as centimeters (?), when in fact they are set in inches. When
9801 loading the page setup dialog initially (ms.net), the default margins
9802 are set to 1 inch, and the dialog shows them with value 10, when in fact
9803 it should be 25 (properly converted). Our dialog doesn't have this bug.
9805 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
9807 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9809 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9812 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9815 2007-05-28 Andreia Gaita <avidigal@novell.com>
9817 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9818 an IntPtr on csc (it builds fine on mcs, could it be a compiler
9819 bug?), convert the ptr to Int32 first.
9821 2007-05-28 Jackson Harper <jackson@ximian.com>
9823 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9824 recieved, we will exit the dnd tracking loop.
9826 2007-05-28 Jackson Harper <jackson@ximian.com>
9828 * X11Dnd.cs: Keep tracking until the xdnd finished event is
9829 recieved. TODO: I should probably stick a timer on the dropped
9830 event, and finish the drag if the XDND Finished event never shows
9831 (because some apps don't seem to send it).
9833 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
9835 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9838 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9840 * MonthCalendar.cs: Only mark the keypresses we actually handle as
9843 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9845 * MonthCalendar.cs: Set the size after initializing all the relevant
9846 variables. Fixes #81742.
9848 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9850 * KeyEventArgs.cs: Fix typo.
9852 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
9854 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9855 to match MS. Fixed MinDate to only accept value less than or equal
9856 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9857 Removed TODO's that are now verified by unit tests.
9859 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
9861 * TreeNodeCollection.cs: Minor corrections to exceptions to match
9864 2007-05-25 Jackson Harper <jackson@ximian.com>
9866 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9867 it's own message loop.
9868 * XplatUIX11.cs: Remove some of the dnd hooks
9870 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
9872 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9873 instead of MinimizedWindowSize.
9875 2007-05-25 Jackson Harper <jackson@ximian.com>
9877 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9879 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9881 * KeyEventArgs.cs: Added SuppressKeyPress.
9882 * Control.cs: Added support for SuppressKeyPress.
9884 2007-05-24 Andreia Gaita <avidigal@novell.com>
9886 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9887 problems with PieChart. suppress_validation should not be a counter,
9888 if there are several BeginInit calls, the first EndInit will
9889 activate validation. Fix exceptions thrown by set_Value.
9890 * UpDownBase.cs: ValidateText only if it's the user editing it.
9892 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9894 * ListControl.cs: FilterItemOnProperty should return the filtered
9895 item proeprty even if DataSource is null. The same applies for
9896 GetItemText. Fixes #80427.
9898 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9900 * Control.cs: If a control doesn't have a parent when it's Dock is
9901 set, but it has children, it needs to do a layout. Fixes some nested
9902 controls issues. [Fixes bug #81199]
9904 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9906 * ComboBox.cs: If there are few items in the drop down list, make it
9907 the exact size the items need, no bigger. Fixes #81612.
9909 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9911 * Application.cs: When we have captured the keyboard for a menu,
9912 check for mouse down events in case we need to close the menu.
9913 * Control.cs, Form.cs: Remove mouse down checks for menus.
9915 2007-05-24 Jackson Harper <jackson@ximian.com>
9917 * TextControl.cs: Handle tabs in non multiline mode a little
9920 2007-05-24 Jackson Harper <jackson@ximian.com>
9922 * TextControl.cs: We need to manually break apart tabbed text and
9923 move the tabs, since the system.drawing tabbing mechanism relies
9925 * TextBoxBase.cs: Move the caret properly when the user enters a
9928 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9930 * ContainerControl.cs: Don't check CanSelect before calling
9932 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
9933 release a KeyboardActive on click if it's not ours.
9935 2007-05-23 Andreia Gaita <avidigal@novell.com>
9937 * ColumnHeader.cs: Add TypeConverter
9939 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9941 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9943 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9945 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9947 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9949 * LinkLabel.cs: Implement public Padding property.
9951 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9953 * LinkLabel.cs: Implement public FlatStyle.
9955 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
9957 * Control.cs: Apply patch from George to call parent.PerformLayout
9958 when Visible is changed. [Fixes bugs #81118, 81718]
9960 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9962 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9964 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9966 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9968 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9970 * ContextMenu.cs: Implement Collapse.
9972 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9974 * ToolBarButton.cs: Implement Name.
9976 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9978 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9979 use current_item, it prevents some NRE. Fixes #81675.
9981 2007-05-22 Andreia Gaita <avidigal@novell.com>
9983 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9984 without updating the text.
9986 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9988 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9989 without calling DeleteObject. [Should fix bug #81709]
9991 2007-05-22 Jackson Harper <jackson@ximian.com>
9993 * RichTextBox.cs: Set the line endings correctly, when flushing
9996 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
9998 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10001 2007-05-22 Jackson Harper <jackson@ximian.com>
10003 * TreeView.cs: Setting top with a null node should set to the very
10006 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10008 * Form.cs: ShowDialog: destroy the handle when message loop is
10009 finished, matches MS behaviour. Refactor parts of WmClose into
10010 RaiseCloseEvents, that only raises events if they haven't already
10011 been raised. Fixes #81688 and #81521.
10012 * Application.cs: Don't call close on the form when exiting a modal
10013 loop, it will raise all the (Form)Closed/Closing events again if
10014 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10015 which doesn'r raise any events it they have been raised before.
10017 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10019 * Control.cs: Add OnPrint.
10020 * ToolStrip.cs: Add GetChildAtPoint.
10021 * ToolStripContainer.cs: Add OnRightToLeftChanged.
10022 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10024 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10026 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
10028 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10030 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10031 isn't visible anymore. Fixes #81651.
10033 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10035 * Control.cs: WmShowWindow: Update children's z-order after setting
10036 their parent. SetParent may show the window, thereby corrupting
10037 z-order, since the window will be shown on top.
10038 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10039 multiple (and redundant) WM_SHOWWINDOW messages.
10040 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10041 event has already been raised.
10042 * Form.cs: Change is_changing_visible_state to a counter, since
10043 SetVisibleCore can be called recursively. CreateHandle: when
10044 creating mdi children, send (De)Activated events.
10045 * MdiClient.cs: Update use of is_changing_visible_state.
10046 * Application.cs: OnThreadException: Surround exception handling with
10047 try/finally to ensure we always reset the error-handling state
10050 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10052 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10055 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10057 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10058 SmallIcon views, now that we have a standarized horizontal spacing.
10060 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10061 4, just like the other views (Match .Net).
10063 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
10065 * Control.cs: Delay calculating anchor distances until we actually layout.
10066 Always query the WM for the actual size and location it put us at instead of
10067 only when we send negative values.
10068 [Fixes bugs #81694, 81695]
10070 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10072 * Application.cs: Avoid a possible stack overflow when trying to exit
10075 2007-05-19 Marek Safar <marek.safar@gmail.com>
10077 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
10080 2007-05-19 Andreia Gaita <avidigal@novell.com>
10082 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
10083 * NumericUpDownAcceleration.cs,
10084 NumericUpDownAccelerationCollection.cs: Added 2.0
10087 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
10089 * RichTextBox.cs: Recalculate the document after the ScrollBars
10090 property is changed. Fixes bug #81681.
10092 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10094 * DataObject.cs: Implement 2.0 methods.
10096 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10098 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
10099 in the center of the checkbox, not in the left-top corner.
10102 2007-05-18 Jackson Harper <jackson@ximian.com>
10104 * RichTextBox.cs: Recalculate the document after the scrollbars
10105 property is changed.
10106 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
10109 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10111 * CreateParams.cs: Make HasWindowManager marginally faster.
10112 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
10113 into Hwnd so that other drivers can use it as well.
10114 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
10115 the default location from Hwnd. Fixes MDI client windows always
10116 showing up at (0,0) in Windows (Win32 won't set the default
10117 location since the window styles aren't correct).
10119 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
10121 * TreeView.cs: Modified DoubleBuffered to just use the base
10124 2007-05-18 Jackson Harper <jackson@ximian.com>
10126 * TreeView.cs: Set the top node to the last child node when
10128 - When we get focus, if there is no selected node, use the top
10131 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10133 * KeysConverter.cs: Add CanConvertTo.
10134 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
10135 * LinkConverter.cs: Added.
10137 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10139 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
10140 it prevents error when file dont have write access. Fixes #81669 and #81667.
10142 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10144 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
10145 button text. Fixes #79640.
10147 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10149 * Control.cs: According to MSDN controls created in the designer theres
10150 keyboard accelerators visible by default. So included check for design
10151 in ShowKeyboardCuesInternal.
10153 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10155 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
10156 text. Fixes #81621.
10158 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10160 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
10161 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
10163 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10165 * Control.cs: Finish implementation of UI State using WmChangeUIState
10166 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
10167 in some controls to check for show_keyboard_cues to draw accell keys "_".
10169 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10171 * ListBox.cs: When calculating the horizontal scrollbar
10172 in single column mode, don't use values less than 0 for
10173 Maximum. Fixes #81474.
10175 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10177 * ListBox.cs: Throw the some missing exceptions in
10178 ListBox.ObjectCollection methods.
10180 2007-05-17 Jackson Harper <jackson@ximian.com>
10182 * TextBoxBase.cs: Recalculate the document when the word wrap
10183 value has changed. This fixes 81488.
10185 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10187 * Clipboard.cs: Implement missing GetText overload.
10189 2007-05-17 Chris Toshok <toshok@ximian.com>
10191 * Control.cs (CheckDataBindings): remove the binding_context arg
10194 * CurrencyManager.cs (OnItemChanged): fix this now that
10195 BindingManagerBase is fixed. also remove the comment telling where
10196 the fix should go. We set transfering_data to true/false around
10197 the call to PushData to keep UpdateIsBinding from being called.
10198 (ListChangedHandler): remove the extra OnMetaDataChanged call for
10199 PropertyDescriptorAdded in the 1.1 case. The extra call is
10200 actually generated by System.Data generating 2 metadata changed
10201 events of its own per column add. The fix should go there. Add a
10202 comment to that affect in our test's Assert.Ignore.
10204 * BindingManagerBase.cs: Rework PullData and PushData slightly.
10205 we keep a boolean flag (transfering_data) that keeps us from
10206 calling UpdateIsBinding multiple times if we re-enter either of
10209 * ControlBindingsCollection.cs (AddCore): remove the
10210 binding_context arg to binding.Check.
10212 * Binding.cs (IsBinding): don't check if we're binding here, just
10213 return our cached value. we update it in UpdateIsBinding.
10214 (Check): don't take the binding_context arg, we'll just use our
10215 control's. Also, for some reason MS doesn't use the data member
10216 field when getting the bindingmanager for this binding. it just
10217 uses the datasource. Make this method callable multiple times,
10218 and only do the is_null_desc stuff if manager.Position != -1 (so
10219 we don't get an exception accessing manager.Current).
10220 (UpdateIsBinding): move the code from IsBinding here.
10221 (PositionChangedHandler): call Check here to we can initialize
10222 things that require a non- -1 position.
10224 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10226 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10229 2007-05-17 Andreia Gaita <avidigal@novell.com>
10231 * TabControl.cs: Add 2.0 methods and events, including
10232 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10233 * TabPage.cs: Add 2.0 methods
10235 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10237 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10238 keyboard_cues is properly handled by message method.
10240 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10242 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10244 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10246 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10248 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
10251 - WmUpdateUIState added to handle state changes, it make call to
10252 OnChangeUICues event.
10253 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10256 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
10258 * ImageKeyConverter.cs: Added.
10259 * TreeViewImageKeyConverter.cs: Added.
10261 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10263 * ToolTips.cs: Update Text if SetToolTip is called for a control
10264 already showing the tooltip, as well as restarting its timer; show
10265 tooltip if we are inside the control bounds by the time of calling
10266 SetToolTip. Inside ShowTooltip remove the check to not show the
10267 tooltip again for the active control (it is allowed by .Net to
10268 show the tooltip on the same control multiple times).
10270 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10272 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10274 2007-05-16 Andreia Gaita <avidigal@novell.com>
10276 * ContainerControl.cs: only process tab key if there are no
10277 modifier keys present, otherwise the control does the
10278 tab processing, if it needs to. Fixes #81622
10279 * TabControl.cs: Fixes calculation for which tab to select on
10282 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10284 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10286 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
10288 * Control.cs: Make IsInputCharInternal to allow controls to
10289 override it and still match MS API.
10290 * TextBoxBase.cs: Override IsInputCharInternal and always
10294 2007-05-15 Jackson Harper <jackson@ximian.com>
10296 * TextBox.cs: Disable some of the menu options when using a
10299 2007-05-15 Jackson Harper <jackson@ximian.com>
10303 * RichTextBox.cs: Some new 2.0 methods
10305 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
10307 * FileDialog.cs: On 1.0 profile, do not support multidotted
10310 2007-05-14 Jackson Harper <jackson@ximian.com>
10312 * TextBoxBase.cs: Implement some of the new 2.0 methods.
10313 * RichTextBox.cs: We need to override these methods on 2.0.
10314 * MaskedTextBox.cs: These are implemented now
10315 * TextControl.cs: This was off by one.
10317 2007-05-14 Jackson Harper <jackson@ximian.com>
10319 * TextControl.cs: Because the line endings are including in the
10320 text, we don't need to add them in anymore.
10322 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10324 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10325 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10327 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10329 * ToolBar.cs: Adjust size to default size when button theres no text and
10330 image, it fixes remaining issues from #81524.
10332 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10335 - When not flat call redraw to recalculate sizes on creare handle to match
10337 - Revert 77220 because it causes some regressions in toobar
10340 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10342 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10343 now actually enters a usable state.
10345 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10347 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10348 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10351 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10353 * ToolBar.cs: Save default_size on create handle to use later for buttons
10354 without text, needed to mimic win32 behavior.
10356 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10358 * ToolBar.cs: Fix button layour to best fit width or height according to
10359 vertical or not. Fixes #81524.
10361 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10363 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10364 toolbar size info because different styles theres different sizes.
10367 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10369 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10370 if we are using checkboxes, checked is true, and we have less
10371 than two images in StateImageList; for the 1.1 in the same scenario
10372 draw the first image if we have at least one image in StateImageList.
10373 Fixes part of #81191.
10375 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10377 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10378 the owner's Items collection on merge.
10380 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10382 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10383 * ToolStripItemCollection.cs: Lots of fixes to when events get called
10384 and parent/owner gets changed based on gert's unit tests.
10386 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10388 * MaskedTextBox.cs: Started implementing parts of it.
10390 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10392 * ListView.cs: When clicking the checkbox on the items
10393 take into account the double clicks even if we have only
10394 one image in StateImageList (only for 1.0/1.1). Also
10395 generate an extra change of checked state when we receive
10396 the second click on checkbox (match .Net behaviour).
10397 Fixes part of #81191.
10399 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10401 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10403 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10405 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10406 even if OnLoad is overriden and base.OnLoad is not called.
10409 2007-05-10 Andreia Gaita <avidigal@novell.com>
10411 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
10412 shame. (I blame my ever-persisting and annoying cold)
10414 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10416 * ListView.cs: Don't eat navigation keys. Let them flow through to
10417 KeyDown/KeyPress routines. [Fixes bug #81569]
10419 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10421 * ListView.cs: When handling keys for selecting the item based off
10422 keyboard input, do not consider keys pressed with Alt or Control. Also,
10423 correctly handle keys when the Shift key is down. [Fixes bug #81578]
10425 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10427 * Control.cs: When using UseWaitCursor, we have to store the requested
10428 Cursor to use when UseWaitCursor is turned off.
10430 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10432 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
10434 * Application.cs: Use PreProcessControlMessage instead of
10436 * PreProcessControlMessage.cs: Make internal for 1.1.
10438 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10440 * Control.cs: Add InternalContains focus property, which hast the same
10441 functionality of ContainsFocus, but also including implicit controls.
10442 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10443 since we need to know if the focus is contained in our implicit
10444 ItemControl when calculating Layout. Fixes part of #80888.
10446 2007-05-08 Everaldo Canuto <everaldo@simios.org>
10448 * ToolTip.cs: Remove center form string alignment as it must be align to
10451 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
10453 * ToolStripItemCollection.cs: Set the new item's parent and owner
10454 in Insert like we do in Add. [Fixes bug #81568]
10456 2007-05-08 Jackson Harper <jackson@ximian.com>
10458 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10459 - Off by one error in SetTop
10460 - Disable DoubeBuffering
10462 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10464 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10465 control as much as necessary in order to make it entirely visible,
10466 instead of centering the control in the container (matches MS
10467 behaviour). CalculateCanvasSize: we need to take the current scroll
10468 position into account when calculating the maximum canvas,
10469 otherwise the following scenario will fail: resize so that the
10470 scrollbars appear, use the scrollbars to scroll, resize again
10471 smaller, and now the canvas size is too small. Recalculate: when
10472 showing scrollbars make sure they start off at 0, and try to scroll
10473 the active control into view. Fixes #79540. HandleScrollBar: don't
10474 scroll anywhere if the scrollbar isn't visible.
10476 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10478 * ListView.cs: When focus changed, call Layout/Invalidate
10479 in the focused item to update the selected state (should show
10480 entire label when ListView is focused, and a part of it if is not).
10481 * ListViewItem.cs: When doing layout for LargeIcon, take into account
10482 for displaying the entire label not only the Focused state of the
10483 item, but also the Focused state of the ListView (match .Net
10486 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10488 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10489 Implement UseWaitCursor.
10491 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10492 Applying contributed patch from Sergey Volk.
10494 * Clipboard.cs: Implement SetDataObject retry logic and new overload
10496 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10498 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10500 * Control.cs: Implement DrawToBitmap.
10502 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10503 Applying contributed patch from Stefan Noack.
10505 * Control.cs: Add [Get|Set]AutoSizeMode.
10507 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10509 * MdiClient.cs: Unmerge menus when the last child is closed.
10511 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10513 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10514 * ToolStripManager.cs: Call Merge on DropDowns.
10517 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10519 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10521 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10522 visibility. We can't create forms visible, since we have to set the
10523 owner before making the form visible (otherwise Win32 will do
10524 strange things with task bar icons). The problem is that we set the
10525 internal is_visible to true before creating the control, so
10526 is_changing_visible_state is the only way of determining if we're
10527 in the process of creating the form due to setting Visible=true -
10528 this works because SetVisibleCore explicitly makes the form
10529 visibile afterwards anyways. Fixes #80775.
10531 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10533 * ThemeWin32Classic.cs: When drawing ListViewItems,
10534 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10535 or LargeIcon _and_ item is not focused (match .Net behaviour).
10537 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10539 * Control.cs, Form.cs: Fix some obsolete method warnings.
10541 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10543 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10544 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10546 2007-05-04 Andreia Gaita <avidigal@novell.com>
10548 * ContainerControl.cs: Fix active_control attribution when going
10549 up the parent chain so that the first parent container gets the control
10550 and the rest of the parent containers get the child containers (skips
10551 non-containers). Fixes #80729
10553 2007-05-04 Randolph Chung <tausq@debian.org>
10555 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10558 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10560 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10561 takes a size parameter, since the CreateParam's size isn't true for
10562 minimized forms. Fixes #81518,
10564 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10566 * Form.cs: Add OnDeactivateInternal.
10567 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10569 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10571 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10572 accessing the parent. Fixes #81508.
10574 2007-05-03 Chris Toshok <toshok@ximian.com>
10576 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10577 2.0 block, pass listposition + 1 to ChangeRecordState when a row
10578 was added before the current listposition. Fixes the
10579 TestInsertRowBeforeCurrent unit test.
10581 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
10583 * Application.cs: Add RaiseIdle.
10584 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10585 XplatUIX11.cs: Implement RaiseIdle.
10587 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
10588 corcompare work: N - Z
10592 * ScrollableControl.cs
10593 * SplitContainer.cs
10596 * SystemInformation.cs
10598 * TableLayoutControlCollection.cs
10599 * TableLayoutPanel.cs
10604 * ToolStripComboBox.cs
10605 * ToolStripContainer.cs
10606 * ToolStripContentPanel.cs
10607 * ToolStripDropDown.cs
10608 * ToolStripDropDownItem.cs
10609 * ToolStripDropDownMenu.cs
10611 * ToolStripItemCollection.cs
10612 * ToolStripMenuItem.cs
10613 * ToolStripPanel.cs
10614 * ToolStripSplitButton.cs
10617 * TreeNodeCollection.cs
10618 * TreeNodeMouseHoverEventArgs.cs
10621 2007-05-01 Everaldo Canuto <everaldo@simios.org>
10623 * ContextMenu.cs: Add public method Show with alignment property to 2.0
10624 stuff. Thanks aatdark for the patch.
10626 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10628 * GridItem.cs: Implement 2.0 Tag property.
10630 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
10632 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10633 count instead of Nodes.Length. [Fixes bug #81448]
10635 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10637 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10640 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10641 corcompare work: A - M
10642 * BindingNavigator.cs
10647 * FlowLayoutPanel.cs
10653 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10655 * Application.cs: Give toolstrips a chance to process mnemonics.
10656 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10657 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10658 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10660 2007-05-01 Jackson Harper <jackson@ximian.com>
10662 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10664 - Don't set the BoundsSpecified
10666 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10668 * Application.cs: When using the toolstrip shortcut mechanism, allow the
10669 message to pass through to a regular control if it hosted by a toolstrip.
10670 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10671 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10673 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10675 * TextRenderer.cs: Use the flags argument when using the MeasureString
10676 fallback algorithm.
10678 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10680 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10681 the MDI menu item. [Fixes bug #81483]
10683 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
10685 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10686 string. When setting Name to null, use zero-length string instead.
10688 2007-04-29 Andreia Gaita <avidigal@novell.com>
10690 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
10691 DeselectTab). Implement missing 2.0 TabPageCollection methods
10692 (Add, ContainsKey, RemoveByKey, IndexOfKey)
10694 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
10696 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10698 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
10700 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10701 Fixes bug #81479. Include details of exception when LoadFile fails.
10703 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
10705 * DrawListViewSubItemEventArgs.cs: Added missing setter
10707 2007-04-27 Andreia Gaita <avidigal@novell.com>
10709 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
10710 Hide methods (not complete). Implement missing 2.0 OnPopup event.
10712 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10714 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10715 removed in ly last commit (it was breaking the Label edit feature).
10717 * ThemeWin32Classic.cs: When drawing a ListViewItem use
10718 StringAlignment.Near for LineAlignment (match .Net).
10720 2007-04-27 Andreia Gaita <avidigal@novell.com>
10722 * TabControl.cs: Change SetTab so it adds the tabpage to the list
10723 of controls if it isn't already there - was blowing up when doing
10724 tabcontrol.TabPages[i]=new TabPage().
10725 SetTab now does a replace by removing the page at the index.
10726 Add a new InsertTab method that inserts a page in a given index
10727 instead of replacing.
10728 Implements TabPageCollection.Insert(int, TabPage).
10730 2007-04-27 Chris Toshok <toshok@ximian.com>
10732 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10733 internal handler that can be invoked from our subclasses.) Also,
10734 add a comment to PushData about how we need to fix it.
10736 * CurrencyManager.cs: tons of changes here. trying to get things
10737 matching the behavior of .net wrt event orders (ItemChanged,
10738 CurrentChanged, PositionChanged.) I've implemented a private .net
10739 symbol (ChangeRecordState) that appears in stack traces because
10740 it's actually easier to do this than to effective inline all its
10741 various behaviors at every call site.
10743 * RelatedPropertyManager.cs: guard against an exception here by
10744 not using parent.Current if the position is set to -1 (if the
10745 parent datasource is cleared, for instance).
10747 * Binding.cs: don't parse data in PushData (this might be wrong,
10748 but it jives with MS's behavior.) Also, don't call PushData when
10749 we get a CurrentChanged event.
10751 2007-04-27 Andreia Gaita <avidigal@novell.com>
10755 WebBrowserSiteBase.cs,
10756 HtmlDocument.cs: Added stubbed out classes, no real implementations
10759 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10761 * MainMenu.cs: In draw method without parameters call draw method with
10762 PaintEvent, another one (just rect) adjust rectangle and we dont need it
10763 as Rect property is already adjusted. Fixes #80694.
10765 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
10767 * Application.cs: Need to handle keyboard menu deselection here.
10768 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10769 navigation, allowing keyboard to work on X11.
10770 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10772 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10774 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10775 menu bar. It fixes some drawing issues in menu bar.
10777 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10779 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
10780 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10781 when <alt> key is pressed.
10783 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10785 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
10786 example just set visible to false and make this prevent from other problems.
10787 In SystrayAdd always remove pending expose. Fixes #81072.
10789 2007-04-26 Marek Safar <marek.safar@gmail.com>
10791 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10794 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10796 * ListView.cs: Added three missing 2.0 events and corresponding
10797 EventHandlers. Added the OwnerDraw property.
10798 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10800 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10802 * DrawListViewItemEventArgs.cs
10803 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10805 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10807 * TextControl.cs: Fixed typo in constructor
10809 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
10811 * Application.cs: Create a shortcut path so that currently selected
10812 MenuStrips can intercept keyboard events without having focus.
10813 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10814 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10815 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10816 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
10817 generate WM_SYSCOMMAND message in X11 for other platforms.
10818 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10819 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10820 * ToolStripSplitButton.cs: Add DefaultItem property.
10822 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10824 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10825 fixes some menu draw problem on Windows with border diferent from default
10826 it also fixes #81403.
10828 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10830 * Form.cs: Refactor WndProc into separate methods, just like Control is
10833 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10835 * Control.cs: set_Text: move the call to the driver into a seperate
10836 virtual method so that Form can override it.
10837 * MaskedTextBox.cs: Corcompare fixes.
10838 * Form.cs: Override UpdateWindowText and only update the styles if the
10839 form has been shown (fixes #81405).
10841 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10843 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10844 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10845 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
10846 the form lost focus or another control was clicked.
10848 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
10850 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10853 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10855 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10856 DrawListViewItemEventHandler.cs,
10857 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10859 * X11Structs.cs: More ToString implementation.
10861 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10863 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10864 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10866 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10868 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10870 * FormCollection.cs: Don't add a form if it's already in the
10872 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10873 according to behaviour and MSDN. The ownerWin32 is the active
10874 window at the moment when we call ShowDialog, not the context's
10875 main form (the context's main form may open another form that opens
10876 a form with ShowDialog, the win32 owner is the second form). Add
10877 and remove forms to the Application.OpenForms in other places to
10878 better match MS behaviour. Add an IsActive property that raises
10879 On(de)Activated only if the active state has changed (we were
10880 raising OnDeactivated before OnActivated while creating forms).
10881 * Application.cs: Refactor Enabling/Disabling of windows for modal
10882 dialog loops out to separate methods, and restore the thread
10883 context when we quit the method. Fixes #81407.
10885 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10887 * ListView.cs: In ItemControl.HandleClicks, also fire
10888 2.0 MouseClick or MouseDoubleClick events on the parent,
10889 not only the Click/DoubleClick events.
10891 2007-04-24 Andreia Gaita <avidigal@novell.com>
10893 * TableLayoutSettings.cs:
10894 - Added a GetControls method and a support structure to help the
10895 TypeConverter to enumerate the controls for serialization.
10896 - Added a new serialization constructor.
10897 - Added a isSerialized flag initialized to true on the
10898 serialization constructor so that the TableLayoutPanel.LayoutSettings
10899 setter does not throw the designed NotSupportedOperation exception
10900 when the object is built through deserialization.
10901 - Implemented GetObjectData
10903 * TableLayoutPanel.cs: Added check on LayoutSettings.
10905 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10907 * ListView.cs: Report Click and DoubleClick events to the parent
10908 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10909 from breaking the click count state when using dialog forms (Control
10910 reports the clicks in a similar fashion). In the previous behaviour
10911 the last WM_LBUTTONUP message in a double click was sent to the
10912 ListView's form, instead of the ListView, which was breaking the click
10913 count for it. Fixes #80387.
10915 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10917 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10919 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10921 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
10922 us from created dropdowns for menu items that do not have subitems.
10923 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10924 Check HasDropDownItems before calling DropDown so a dropdown will not be
10925 created if it isn't needed.
10927 2007-04-24 Jackson Harper <jackson@ximian.com>
10929 * TreeView.cs: Set the first node to the selected node when we get
10930 focus if there is no selected node.
10932 2007-04-24 Andreia Gaita <avidigal@novell.com>
10934 * MimeIcon.cs: remove using blocks so that image streams are
10935 not disposed of. Fixes #80151
10937 2007-04-24 Jackson Harper <jackson@ximian.com>
10939 * TextBoxBase.cs: Fixup the height of textboxes when the control
10942 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10944 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
10945 for each ToolStripItem when the parent's RightToLeftChanged is called.
10947 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10949 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10951 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10952 property, so that the setter can be overriden too.
10953 * TextBox.cs: Change GetContextMenuInternal() to use
10954 ContextMenuInternal.
10956 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10958 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10961 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10963 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10966 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10968 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10969 avoid duplicate work. Mostily skeleton code, it's not working at
10972 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
10974 * NotifyIcon.cs : stub for MouseClick event
10975 * Application.cs: stub for SetUnhandledExceptionMode
10977 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10979 * BindingNavigator.cs : Initial (partial) implementation
10981 2007-04-23 Jackson Harper <jackson@ximian.com>
10983 * TreeView.cs: Do not create the treeview's handle when setting
10984 the scroll position.
10985 - ExpandAll needs to compute the scrollbars so it knows which
10986 position to set the bar too.
10988 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10990 2007-04-23 Jackson Harper <jackson@ximian.com>
10992 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10995 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
10997 * ToolStripItem.cs: Make GetImageSize internal.
10998 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10999 need to draw an item. Fixes a reported issue where images on menus
11000 that were not 16x16 were drawing incorrectly.
11002 2007-04-21 Miguel de Icaza <miguel@novell.com>
11004 * Padding.cs: Use the converter, fixes the resgen2 issue with
11007 2007-04-21 Jackson Harper <jackson@ximian.com>
11009 * TreeView.cs: Dont try to unhighlight the selected node if there
11010 isn't a selected node.
11012 2007-04-21 Jackson Harper <jackson@ximian.com>
11018 * TreeView.cs: Use the InternalBorderStyle property to set the
11019 initial border style, this forces the client rectangle to be sized
11022 2007-04-20 Jackson Harper <jackson@ximian.com>
11024 * TreeView.cs: Simplify scrolling to the last node after expanding
11026 - Fix some off by ones with setting the bottom.
11028 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11030 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11031 that. We were incorrectly doing it the other way around. Also,
11032 update ClientSize if we change the BorderStyle before the control
11035 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11037 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11038 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11039 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11040 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11041 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11042 Caption to CaptionHeight.
11043 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11044 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11045 and FixedFrameBorderSize to return value from current XplatUI driver.
11046 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11047 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11048 and FixedFrameBorderSize using win32 API. Renamed Caption to
11050 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11051 * SystemInformation.cs: Fixed typo in BorderSize.
11053 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11055 * XplatUI.cs: Added MenuAccessKeysUnderlined.
11056 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11057 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11059 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11060 value from XplatUI driver.
11061 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11062 SystemParametersInfo.
11063 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
11065 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
11068 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11070 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
11072 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11074 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
11076 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11078 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
11079 MenuStrips that contain ToolStripSeparators.
11081 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11083 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
11084 DefineStdCursorBitmap.
11085 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
11086 has been created off a standard cursor. This is used to get a
11087 bitmap of the standard cursor when Draw or DrawStretched is called
11088 in order to draw the cursor.
11089 * X11Structs.cs: Added XcursorImage and XcursorImages.
11090 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
11091 DefineStdCursorBitmap.
11092 * Cursors.cs: Update all relevant creations of Cursor to use the new
11093 internal constructor.
11095 2007-04-19 Jackson Harper <jackson@ximian.com>
11097 * TextBox.cs: Move the has_been_focused into the base control, so
11098 some of the text adding methods can manipulate it (probably time
11099 for a better name for this flag too).
11100 - Call a new version of selectall that doesn't scroll
11101 * TextBoxBase.cs: When we append text, if the document is empty,
11102 don't scroll. If the document has text already, we scroll to the
11103 end of the appended text.
11104 - When the text is changed, we reset the has_been_focused, so the
11105 next time the control gets focused, all the text is selected.
11107 2007-04-19 Jackson Harper <jackson@ximian.com>
11109 * TextControl.cs: Move the margins to the document, add a method
11110 so the margin sizes can be updated.
11111 * TextBoxBase.cs: When the border style is changed, update the
11114 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
11116 * Control.cs: Respect DefaultPadding.
11117 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
11118 padding into account.
11119 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
11121 2007-04-19 Jackson Harper <jackson@ximian.com>
11123 * TextControl.cs: Oops, we need to use the ClientRect not the
11126 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11128 * ListView.cs: In ItemControl.ItemsMouseDown, take into
11129 account the double clicks when CheckBoxes are used and
11130 the pointer is inside the checkbox. Fixes part of #81191.
11132 2007-04-18 Jackson Harper <jackson@ximian.com>
11134 * TextControl.cs: Pressing the end key shouldn't move the caret
11135 past the line ending.
11136 * TextBoxBase.cs: We can still delete if we are in the line
11137 ending and the combine will just kill the existing line ending.
11139 2007-04-18 Jackson Harper <jackson@ximian.com>
11141 * TextControl.cs: We can't move lines, then invalidate their
11142 bounds, we need to get the old bounds and combine that with the
11144 * TextBoxBase.cs: Before combining two lines for a delete, we need
11145 to invalidate the area of the old line, since that will be moved
11146 in the combine operation.
11148 2007-04-18 Everaldo Canuto <everaldo@simios.org>
11150 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
11151 with transparent background. Fixes #80482.
11153 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
11155 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
11156 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
11159 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11161 * CreateParams.cs: Add a couple of helper methods and do a less string
11162 concatenation in ToString.
11163 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
11164 overload that takes a Control parameter, since this method may be
11165 called before a control is assigned to the hwnd (from
11166 CreateWindow), and update CreateWindow to use the new overload. In
11167 GetMenuOrigin subtract the title bar from the y position if the
11168 form has a window manager (since we're painting it and not X).
11169 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
11170 CreateParams to calculate the origin (since border sizes may vary).
11171 In ScreenToMenu only subtract the title height if we actually have
11173 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11174 mdi children never have menus of themselves.
11175 * InternalWindowManager.cs: Implement menu handling like form does.
11176 Added GetMenuOrigin to calculate the menu origin, can't use the
11177 CreateParams from the form like normally since it's lying.
11178 * Hwnd.cs: Implement GetBorderSize better (in the sense more
11179 windows-like) and add Inflate and comparison operators to the
11180 Borders type. When calculating MenuOrigin and it's a form with a
11181 window manager, use the window manager to calculate it.
11183 2007-04-17 Chris Toshok <toshok@ximian.com>
11185 * Control.cs (CreateControl): turns out in 2.0 we don't need this
11186 OnBindingContextChanged thing here. It's only generated from
11187 ContainerControl.OnCreateControl. Fixes a newly written unit test
11188 - BindingTest.BindingContextChangedTest4.
11190 2007-04-17 Jackson Harper <jackson@ximian.com>
11192 * ScrollBar.cs: When setting values, make sure the current
11193 position stays within the new values range.
11195 2007-04-17 Chris Toshok <toshok@ximian.com>
11197 * Control.cs (CreateControl): talk about a bizarre corner case.
11198 Don't emit OnBindingContextChanged here if we're a parentless
11199 control (i.e. if we're a form.). Fixes
11200 BindingTest.BindingContextChangedTest2.
11202 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11204 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
11205 from win32. Fixes #81255.
11207 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11209 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11210 already present in CalculateButtonTextAndImageLayout.
11212 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11214 * XplatUIX11.cs: When setting min/max size for a window we need to
11215 translate the coordinates to x coordinates. Create an overload of
11216 SetWindowMinMax that takes a CreateParams handling this, and change
11217 SetWMStyles to call this function (can't use Control.FromHandle in
11218 the SetWindowMinMax to get the control/CreateParams from the handle
11219 because the handle might not have been assigned to the control
11220 yet). Fixes #81371.
11222 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11224 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11225 if StateImageList is non-null and it has less than two items (match MS
11226 behaviour). Also, in HandleNavKeys handle the Space key, calling
11227 the new ToggleItemsCheckState method, which tries to change the
11228 checked state of the selected items. Fixes part of #81191.
11230 2007-04-16 Jackson Harper <jackson@ximian.com>
11232 * RichTextBox.cs: namespace cleanup.
11234 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11236 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11238 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11241 * Control.cs: Call invalidate in set_Region.
11243 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11244 it dont works here.
11246 2007-04-16 Jackson Harper <jackson@ximian.com>
11248 * TextBoxBase.cs: When enter is pressed, we need to update all
11249 lines below the current.
11251 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
11253 * MdiClient.cs: Implement implicit menu merging for MDI
11254 children. When a child form is active, if it has a menustrip
11255 and the parent form has a MainMenuStrip, automatically merge
11258 2007-04-15 Andreia Gaita <avidigal@novell.com>
11260 * TabControl.cs: Refactored sizing methods to not repeat
11261 code all over the place. Tab bounds are now calculated
11262 as if alignment is top and single line, and only when
11263 setting the bounds are the positions adjusted according
11264 to alignment. Replaced hardcoded positions, spacings and
11265 paddings by getting the values the ThemeEngine.
11268 * Theme.cs: Change TabControl properties and methods so
11269 that all start with TabControl*. Added more properties
11270 to help remove hardcoded values on tabcontrol.
11271 Add CPDrawBorder3D declaration so the Theming classes
11274 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11276 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11277 on the Theming namespace, and call the appropriate methods here.
11278 Change CPDrawBorder3D to public.
11280 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11282 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11283 the control after firing the OnMouseUp event, instead of sending
11284 the message before the mentioned event. This is so we can match the
11285 MS behaviour. Fixes part of #80385.
11287 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11289 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11290 RightToLeft property.
11292 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11294 * ToolStrip.cs: Add properties and internal methods to support merging.
11295 * ToolStripItem.cs: Add MergeAction and MergeIndex.
11296 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11297 not trigger reparenting or layouts.
11298 * ToolStripManager.cs: Add Merge and RevertMerge methods.
11299 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11300 is hosting the overflow menu.
11302 2007-04-13 Jackson Harper <jackson@ximian.com>
11304 * TextControl.cs: Set the line ending correctly for the first
11307 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
11309 * Theme.cs: Update GetMethod to get the new definition for
11310 KnownColors.Update (and fix theme color updates).
11312 2007-04-12 Everaldo Canuto <everaldo@simios.org>
11314 * MessageBox.cs: Fix some test and button position.
11316 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11318 * Form.cs: Consider the implicit controls in
11319 GetRealChildAtPoint. We need it since this method
11320 is called on Form when handling the some messages in
11321 WndProc, and need to consider those implicit ones too.
11324 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
11326 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11327 if there are no ShortcutKeys set.
11328 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11329 set, use it when painting.
11331 2007-04-12 Jackson Harper <jackson@ximian.com>
11333 * TextControl.cs: Fix some off-by-one issues in line duplication
11334 and insertion in the undo manager. Also, overwrite the first tag
11335 of a line on insert, if it is just a zero lengthed tag. This
11336 prevents us from getting an extra stranded tag at the beginning of
11339 2007-04-11 Everaldo Canuto <everaldo@simios.org>
11341 * Label.cs: Remove check for handle created in CalcAutoSize, we need
11342 to calculated proper size including when handle was not created yet.
11344 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11346 * MdiWindowManager.cs: When moving a form, allow the form to be moved
11347 when the mouse is outside of it's parent's client rectangle. Fixes
11348 #79982 (take 3, part 2).
11350 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11352 * X11Structs.cs: Add a few ToString() overrides.
11353 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11354 the window location in a window-manager independent way. Reworked
11355 FrameExtents, it now actually works. Reworked AddConfigureNotify
11356 and ReparentNotify handling to use GetTopLevelWindowLocation
11357 instead of the earlier, more hacky solution. Reworked SetWMStyles,
11358 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11359 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11360 for all other windows (fixes #81281 part 1), a toolwindow is hidden
11361 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11362 and generally refactored to do as few calculations as possible
11365 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
11367 * Theme.cs: Change "reflective-contract" between MWF and SD to
11368 minimize # of calls, avoid Color serialization and avoid updating
11369 every "known colors" each time a single one is updated.
11371 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11373 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11374 when not readonly and the text is explicitly set. Code style updates.
11375 * DataGridTableStyle.cs: Removed extra line.
11376 * DataGrid.cs: Code style updates. Removed extra whitespace.
11377 * DataGridColumnStyle.cs: Code style updates. Removed extra
11380 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11382 * XplatUIX11.cs: Added comment that "fixes" #80021.
11384 2007-04-09 Jackson Harper <jackson@ximian.com>
11386 * TextControl.cs: We don't need this -1 on the line count anymore.
11388 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11390 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11391 entered value to underlying type, and convert it back to a string to
11392 apply formatting. Modified GetFormattedValue to use TypeConverter
11395 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
11397 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11398 Use SubItems property when we want to ensure there's at least one
11399 subitem. Modified SubItems property to ensure there's always at least
11400 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11401 the NRE's reported by MS.
11403 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
11405 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11406 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11407 Spaces to tabs. Removed extra tabs.
11409 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
11411 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11412 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
11414 2007-04-06 Jackson Harper <jackson@ximian.com>
11416 * TextBoxBase.cs: When a delete removes a line, recalculate all
11417 lines below that line (they need to get offsets setup correctly)
11420 2007-04-05 Jackson Harper <jackson@ximian.com>
11422 * TextControl.cs: We need to invalidate across the width of the
11423 document when we are invalidating multiple lines.
11424 * TextBoxBase.cs: Don't delete into the line ending.
11426 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11428 * ListView.cs: Restore the check for the MouseHover event
11429 in ListView. It looks like the ListView fires more than one MouseHover
11430 event when HoverSelection is true _only_ in weird-corner scenarios, but
11431 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11434 2007-04-05 Mike Kestner <mkestner@novell.com>
11436 * ListView.cs : raise MouseDown before updating selection.
11437 [Fixes #80373 tab 1&3]
11439 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11441 * ToolStripRenderer.cs: Add static method to mirror image.
11442 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11443 and RightToLeftAutoMirrorImage.
11444 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11446 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11448 * ToolStripSplitStackLayout.cs: Support Alignment property.
11449 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11451 2007-04-05 Jackson Harper <jackson@ximian.com>
11453 * TextControl.cs: Move around the line endings when crossing line
11455 - When combining lines, strip the ending text off the first line.
11457 2007-04-05 Jackson Harper <jackson@ximian.com>
11460 * TextBoxBase.cs: Try to never move the cursor into the line
11463 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11465 * ToolStripItem.cs: Make sure we aren't firing mouse events when
11466 the item is disabled. Also add a few missing methods.
11468 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11470 * ListView.cs: We don't need the MouseEnter/MouseLeave check
11471 to fire just one MouseHover event when HoverSelection is true, since
11472 .Net does fire more than one MouseHover event in that scenario. Also,
11473 fix the selection in HoverSelection, by invoking UpdateMultiSelect
11474 if MultiSelect is true, instead of only setting ListViewItem.Selected.
11475 Finally, we need to reset the Hover logic in MouseMove, even when we
11476 don't have a selected item.
11478 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11480 * ToolStrip.cs: Add several missing methods, properties, and events.
11482 2007-04-04 Chris Toshok <toshok@ximian.com>
11484 * DataGridTextBoxColumn.cs: set the bounds of the text box to
11485 (0,0,0,0) in Commit, as MS does.
11487 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11488 make sure we set CurrentRow on a row header click *before* calling
11489 Select. This moves the current cell (and the textbox) to the new
11490 row. The call to Select then hides the textbox, giving us the
11491 correct behavior. Fixes #80362.
11493 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11494 (ListChangedHandler): reorder the position/current changed events,
11495 and call UpdateIsBinding in the ItemAdded case.
11497 * GridColumnStylesCollection.cs: add some columns events, one of
11498 which raises the CollectionChanged event.
11500 2007-04-04 Jackson Harper <jackson@ximian.com>
11502 * TextControl.cs: When we delete multiple selection lines
11503 invalidate the selection area, don't need to do that for single
11504 lines because the final update view will handle it.
11506 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11508 * Control.cs: When we CreateControl, we need to also create all of the
11509 control's children. The child's OnLoad must also fire before the parent's
11510 OnLoad. Fixes the toolbox size in PDN.
11512 2007-04-04 Jackson Harper <jackson@ximian.com>
11514 * TextBoxBase.cs: When the user presses enter, insert a line
11515 ending into the text. (Maybe this would be a good spot for
11516 Environment.NewLine).
11517 * TextControl.cs: Remove undo manager hack, line endings get
11518 inserted properly now.
11520 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11523 - Remove unneeded parameters in UpdateCursor.
11524 - Fix UpdateCursor to check if menu is active.
11525 - Call UpdateCursor when menu deactivate my click.
11526 [Fixes remaining issues from #80410]
11528 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11530 * Control.cs: GetRealChildAtPoint method added, it make an
11531 recursive child control search for the point.
11533 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11536 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11538 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11540 * Form.cs: Fix mouse position when send back mouse event after closes
11543 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11545 * Form.cs: Simplify the BUTTONDOWN for active tracker.
11547 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11549 * Control.cs: Fix an issue where if a user resized a control inside
11550 a sizing method like OnResize, we would overwrite their explicit
11551 value. Also, only call DefaultSize once in the constructor instead
11552 of 4 times. Also, do not call SetBoundsCore from SetBounds if
11553 nothing actually changed.
11555 2007-04-03 Jackson Harper <jackson@ximian.com>
11557 * TextControl.cs: Don't attempt to copy text for lines with no
11558 text in them (technically this shouldn't happen, but we aren't
11559 always inserting line endings when we should be).
11561 2007-04-03 Jackson Harper <jackson@ximian.com>
11563 * TextBoxBase.cs: Calculate the scrollbars before calculating the
11564 document, because this sets some of the document size properties
11567 2007-04-03 Jackson Harper <jackson@ximian.com>
11569 * TextBoxBase.cs: We need to calculate maximums even if this is
11570 not a multiline control, because the maxs are used for scrolling.
11571 - Display the caret after doing a page up/down, we need to
11572 manually display it because a proper CaretMoved event isn't
11573 triggered (this is because of the way the math is done to
11574 determine how far to scroll).
11576 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11578 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11579 (ToolBar was relying on SetBoundsCore to default the values sent
11580 base off of BoundsSpecified.)
11582 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11584 * DateTimePicker.cs: Change Text so that when a null value or empty
11585 string is assigned to the test we always raise ValueChanged and
11586 TextChanged (earlier implementation would only raise ValueChanged
11587 if the current date value was different from DateTime.Now).
11589 2007-04-03 Andreia Gaita <avidigal@novell.com>
11591 * ButtonBase: Call update after invalidation, fixes #80194
11593 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11595 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11598 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11600 * XplatUIX11.cs: SetWMStyles: If the control is a form with
11601 FormBorderStyle = None, don't give the window any decorations.
11604 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11606 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11607 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11608 to check for is a mix of several styles (such as WS_CAPTION for
11610 * Control.cs: Don't paint an area bigger than the client area when
11611 painting the background colour. Add an internal GetCreateParams.
11612 Update calls to XplatUI.CalculateWindowRect due to API change.
11613 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11614 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11615 the size if it hasn't been handled by any windows. When creating
11616 and moving windows, X wants the location of the entire window, but
11617 the size of the client window, so add
11618 TranslateClientRectangleToXClientRectangle,
11619 TranslateWindowSizeToXWindowSIze and
11620 TranslatedXWindowSizeToWindowSize to cope with this, and call them
11621 before every window creation and move. Update CalculateWIndowRect
11622 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11623 In AddConfigureNotify don't do anything if the hwnd is a zombie
11624 (fixes the BadWindow we were getting while running the tests),
11625 always calculate the offsets when it's a parentless window, not
11626 only when reparented, and translate the window size, since we're
11627 getting the client size of the whole window, excluding entire
11629 * Theme.cs: Added BorderSizableSize.
11630 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11631 anymore. Update calls to XplatUI.CalculateWindowRect due to API
11633 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11634 change. Fake the window styles here instead of in XplatUIWin32 so
11635 that all back-ends get the same window styles (and it's Form that's
11636 deciding when to use wm, not the Win32 backend anyways)
11637 * Hwnd.cs: Completely reworked GetWindowRectangle and
11638 GetClientRectangle - they are now passed a CreateParams and they
11639 only use Style and ExStyle to determine the rectangles (they should
11640 now work just like Win32AdjustWindowRectEx - though quite a few
11641 special cases are probably missing). They should also be 100%
11642 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11643 == rect), and all numbers (borders, menu sizes) are taken from the
11644 current theme. Added a GetBorders helper function that will return
11645 the borders for any given CreateParams (including captions and
11646 menus), and GetBorderSize that returns the given border size only.
11647 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11648 Hwnd.GetClientRectangle.
11650 2007-04-02 Chris Toshok <toshok@ximian.com>
11652 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11653 logic between the values we present to the user and the values
11654 which are stored in the column's property. Also, don't call
11655 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11657 2007-04-02 Jackson Harper <jackson@ximian.com>
11659 * TextBoxBase.cs: Scroll faster!
11661 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11663 * StatusStrip.cs: Layout fixes for PDN.
11664 * ToolStrip.cs: Set item's available to true, and placement to main when
11666 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11667 changing in setter before doing any work, add InternalVisible.
11668 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11669 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11672 2007-04-02 Jackson Harper <jackson@ximian.com>
11674 * TextBox.cs: LBUTTON does not make the textbox select all of it's
11677 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11679 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11680 Makes ToolStripComboBoxes show up again.
11682 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11684 * ListView.cs: Add a hover_pending field in ListView
11685 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11686 cycle (we are resetting the MouseHover logic in XplatUI
11687 to handle HoverSelection). Fixes #80429.
11689 2007-04-02 Jackson Harper <jackson@ximian.com>
11691 * TextControl.cs: Make sure the attributes get set on the last
11693 - Still have to do the end tag if we have stepped all the ways to
11696 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
11698 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11699 on an internal libgdiplus call when the information is already
11700 available via the public API.
11702 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11704 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11705 control is removed from a control collecftion.
11706 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11707 Fixes FormPropertyTest (failed on rare occasions).
11708 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11709 of Win32SetParent (when changing from no parent to a parent it
11710 might add the new parent's location in screen coordinates to this
11711 window's location).
11712 * Form.cs: Rework ChangingParent once again, now the handle is
11713 recreated whenever a FormWindowManager is added or removed (that is
11714 whenever a normal form is parented or abandoned). Also change
11715 CreateParams so that all non-toplevel windows always get the
11716 specified sice (StartupPosition is never considered for
11717 non-TopLevel forms).
11718 * ContainerControl.cs: Add ChildControlRemoved, the container control
11719 needs to be notified when a control is removed from it's
11720 collection, in the case the removed control is the active control.
11722 2007-04-02 Jackson Harper <jackson@ximian.com>
11724 * RichTextBox.cs: Use the new methods for setting the font and
11725 color, these methods set the specified attribute without
11726 overriding the other attributes.
11728 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11730 * ToolStripPanel.cs: Fixes for better layouts in PDN.
11732 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
11734 * TextBox.cs: Added internal ChangeBackColor method to special-case
11735 Color.Empty. Added check for invalid ScrollBars value.
11736 * TextBoxBase.cs: Added internal ChangeBackColor method.
11737 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11738 internal ChangeBackColor method to special-case Color.Empty. Added
11739 check for invalid ScrollBars value.
11741 2007-03-30 Everaldo Canuto <everaldo@simios.org>
11743 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11745 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11747 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11748 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11749 [Based on submitted patch from Olivier Duff.]
11751 2007-03-30 Jackson Harper <jackson@ximian.com>
11753 * TextBox.cs: Only select all on initial focus if the user has not
11754 specified a selection area.
11756 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11758 * UserControl.cs: Override CreateParams.
11760 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11764 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11765 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11766 check for is a mix of several styles (such as WS_CAPTION for instance).
11767 * Control.cs: Don't paint an area bigger than the client area when painting
11768 the background colour. Add an internal GetCreateParams. Update calls to
11769 XplatUI.CalculateWindowRect due to API change.
11770 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11771 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11772 hasn't been handled by any windows. When creating and moving windows, X
11773 wants the location of the entire window, but the size of the client
11774 window, so add TranslateClientRectangleToXClientRectangle,
11775 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11776 to cope with this, and call them before every window creation and move.
11777 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11778 removing DeriveStyles). In AddConfigureNotify don't do anything if the
11779 hwnd is a zombie (fixes the BadWindow we were getting while running the
11780 tests), always calculate the offsets when it's a parentless window, not
11781 only when reparented, and translate the window size, since we're getting
11782 the client size of the whole window, excluding entire window.
11783 * Theme.cs: Added BorderSizableSize.
11784 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11785 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11786 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11787 Fake the window styles here instead of in XplatUIWin32 so that all
11788 back-ends get the same window styles (and it's Form that's deciding when
11789 to use wm, not the Win32 backend anyways)
11790 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11791 they are now passed a CreateParams and they only use Style and ExStyle
11792 to determine the rectangles (they should now work just like
11793 Win32AdjustWindowRectEx - though quite a few special cases are probably
11794 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11795 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11796 sizes) are taken from the current theme. Added a GetBorders helper
11797 function that will return the borders for any given CreateParams
11798 (including captions and menus), and GetBorderSize that returns the given
11800 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11801 Hwnd.GetClientRectangle.
11803 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11805 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11806 layout of the mdi children is handled by CreateParams. Fixes
11809 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11811 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11814 * Form.cs: When active tracker mouse down is not processed, send event
11815 back to control inside mouse position. [Fixes #81227]
11817 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11819 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11820 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11821 stealing focus from the active form on Windows. (Control will be made
11822 visible in ShowWindow.)
11824 2007-03-29 Mike Kestner <mkestner@novell.com>
11826 * ImageList.cs : add internal Changed event.
11827 * ListView.cs : hook up to StateImageList.Changed to perform
11828 invalidations when the the state icon list changes. [Fixes #81191]
11830 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11832 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11833 to prevent tooltips from stealing focus from the active form on Windows.
11835 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11837 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
11839 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11841 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11843 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11846 2007-03-29 Jackson Harper <jackson@ximian.com>
11848 * TextControl.cs: When deleting text from non multiline textboxes,
11849 we need to update the entire document, because line offsets will
11852 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11854 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11855 added to theme, now we can create themes that uses diferent notify engines
11856 like notification-daemon from galago project or growl for Mac OS.
11858 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11860 * NotifyIcon.cs: Prevent Balloon to show in task bar.
11862 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11864 * XplatUIX11.cs: Prevent system to open more than one balloon.
11866 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11867 some compiler warning messages.
11869 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11873 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11875 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
11876 implemented, this methods is used by NotifyIcon.BalloonWindow class.
11878 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
11881 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11883 * ListViewItem.cs: Forgot to make Invalidate internal.
11885 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11887 * ListView.cs: Add a InvalidateSelection method to
11888 invalidate methods which are currently selected, and call
11889 it when setting FullRowSelect and HideSelection, instead of
11892 2007-03-28 Chris Toshok <toshok@ximian.com>
11894 * XplatUIX11.cs (UnmapWindow): reindent this block.
11896 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11897 the selection_start if we're moving the selection (that is, not
11898 extending it). Fixes bug #80461.
11900 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11902 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11903 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11904 create private ControlCollection.
11906 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11908 * Control.cs: We need to call OnVisibleChanged for our implicit
11909 children as well as our normal children. Fixes scrollbars in
11910 comboboxes not showing up.
11912 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11914 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11915 the check for IsHandleCreated first. The check in CreateHandle is not
11916 good enough because CreateHandle can be overriden, and the override
11917 should not be called if the handle is already created.
11919 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11921 * ToolStrip.cs: Remove MonoTODO for tooltips.
11922 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11923 * ToolStripContainer.cs: Add custom ControlCollection class.
11924 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11925 * ToolStripDropDown.cs: Add some missing properties/methods.
11926 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11927 * ToolStripItem.cs: Remove MonoTODO for tooltips.
11928 * ToolStripManager.cs: Add IsShortcutDefined.
11929 * ToolStripOverflow.cs: Override LayoutEngine.
11930 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11931 * ToolStripSeparator.cs: Add ImageKey.
11933 2007-03-28 Jackson Harper <jackson@ximian.com>
11935 * TextControl.cs: If a char delete removes a line ending, we need
11936 to update the ending style.
11937 - Make sure the line ending calcs get called.
11939 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11941 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11942 it was making the new code not work. Fixed a typo in the new code
11943 as well. Fixes #79826.
11945 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11948 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11949 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11950 - SystrayBalloon method implemented.
11951 [Add support for notifyicon balloon on win32, #79149]
11953 2007-03-27 Mike Kestner <mkestner@novell.com>
11955 * ThemeWin32Classic.cs : update StateImageList selection to mirror
11956 the ms behavior when only one image is added to the list.
11959 2007-03-27 Jackson Harper <jackson@ximian.com>
11961 * TextControl.cs: Improvements to non multiline line ending
11964 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11966 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
11968 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11971 - Balloon message handling added.
11972 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
11974 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11975 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
11976 to SystrayBalloon to me like other Systray method, also a
11977 handle parameter added.
11979 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11981 * ListView.cs: Show scrollbars even when items.Count == 0
11982 but the columns Width is bigger than the ListView.Width.
11983 Also, when columns.Count == 0 set layout_wd and layout_ht
11984 to the ClientRectangle values, so we don't show any scrollbar
11987 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11989 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11991 2007-03-27 Jackson Harper <jackson@ximian.com>
11993 * RichTextBox.cs: The RTF library decodes the text properly for us
11996 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11998 * ListView.cs: Display HeaderControl even when columns.Count == 0.
11999 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12000 ListView header (HeaderControl), instead of Control.BackColor.
12002 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12004 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12005 Fixes tab control issues where controls would not show up because they
12006 never received their OnVisibleChanged call.
12008 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12010 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12013 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12015 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12016 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12017 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12018 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
12019 the handle. Fix WindowState by using the internal variable until we are
12020 sure that we've been shown.
12021 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12025 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12027 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12028 (at least borders). Fixes #79386 on Linux (with a small difference
12029 in behaviour: when trying to resize a caption-less window metacity
12030 shows the sysmenu. Resizing is still possible though).
12031 * XplatUIWin32.cs: When setting window styles send request an extra
12032 WM_NCCALCSIZE when it's a form without title (due to no text and no
12033 caption), since Win32 seems to calculate it wrong the first time we
12034 get the message, though the second time things work as they should.
12035 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12036 newly reparented window might show up unparented. Update
12037 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12038 there's no title text. Fixes #79386.
12040 2007-03-27 Mike Kestner <mkestner@novell.com>
12042 * ListBox.cs : don't perform invalidations if the handle hasn't been
12043 created. [Fixes #80753]
12045 2007-03-27 Mike Kestner <mkestner@novell.com>
12047 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12050 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12052 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
12053 needed to implement Balloon.
12055 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12057 * ListViewItem.cs: In the constructors that take
12058 an array of strings, don't use ListViewSubItemCollection.AddRange
12059 method to add items, since we need to have a different behaviour (in
12060 the constructors we add an item for each null string, opposed to
12061 the behaviour of AddRange, which adds nothing).
12063 2007-03-26 Andreia Gaita <avidigal@novell.com>
12065 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
12067 2007-03-26 Jackson Harper <jackson@ximian.com>
12069 * TextControl.cs: Draw and measure line endings when in non
12071 - When searching the text, count the end of the last line as a
12074 2007-03-26 Jackson Harper <jackson@ximian.com>
12076 * RichTextBox.cs: The selection_start and selection_end don't
12077 really track the correct tags for the selection. So we'll manually
12078 compute the correct tag here.
12080 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12082 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
12083 and Continuous styles. Fixes #79469.
12085 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12087 * ToolStrip.cs: Implement Tooltips.
12088 * ToolStripItem.cs: Create internal method for determining tooltip.
12090 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12092 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
12094 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12096 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
12097 it prevents a problem thak keeps icon visible after application
12100 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12102 * NotifyIcon.cs: Balloon properties and methods created.
12104 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12105 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
12107 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
12109 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
12111 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12113 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
12114 parameter indicates which aspects were explicit/user-set.
12115 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
12117 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12119 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
12120 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
12121 SmallChange, and Value (2.0).
12122 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
12124 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12126 * ListView.cs: Always set item_control.Width in LayoutDetails
12127 if View is Details. Setting it later in CalculateScrollBars
12128 in a not-so-corner scenario (the sum of columns width is
12129 not bigger than the ListView width when handle is created, and then
12130 that sum gets bigger by increasing the width of the columns)
12131 causes a very weird recursion path (which shouldn't be happening,
12132 since header_control sets it in CalculateScrollBars too). This bug
12133 appeared after Chris' fixes for handle created issues, so probably
12134 it's related to some handle-creation time.
12136 2007-03-23 Chris Toshok <toshok@ximian.com>
12138 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
12139 case where there's an add row, just so we don't end up in a case
12140 where it's not displayed (this happens when the row is partially
12141 obscured). Fixes bug #79574.
12143 2007-03-23 Jackson Harper <jackson@ximian.com>
12147 * RichTextBox.cs: Preserve line endings in the lines text buffer,
12148 also added an enum that represents the line ending type.
12150 2007-03-23 Andreia Gaita <avidigal@novell.com>
12152 * NumericUpDown.cs: Fix logic so Text and Value properties are not
12153 messed with in every method call, but only from DownButton,
12154 UpButton, UpdateEditText() and ValidateText. Fixes #80346
12156 2007-03-23 Chris Toshok <toshok@ximian.com>
12158 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
12159 format objects if the format spec is "". Fixes bug #80889.
12161 2007-03-22 Miguel de Icaza <miguel@novell.com>
12163 * ToolStripPanel.cs (Join): added stubs to build PDN3
12165 * Control.cs (AutoScrollOffset): Add.
12167 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
12168 property, its only implemented for Win32, on X11 it defaults to
12169 some hardcoded value.
12171 * ToolStripItem.cs (AllowDrop): Add property
12173 2007-03-22 Mike Kestner <mkestner@novell.com>
12175 * ListView.cs : in FullRowSelect Details mode, only enable box
12176 selection if the user clicks over the "item" column outside of the
12177 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
12179 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12181 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12182 handle is not created yet.
12183 * Form.cs: Select: Don't call CreateHandle if the handle is already
12184 created, avoids a stack overflow on Windows when we are recreating
12186 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12187 they are made visible, and override AfterTopMostControl to keep
12188 them on top when other controls are brought to front.
12189 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12190 or force_*scroll_visible is true (old implementation always shows
12191 scrollbars when needed, no matter what auto_scroll was set to).
12192 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12193 IsHandleCreated check.
12195 2007-03-22 Andreia Gaita <avidigal@novell.com>
12197 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12198 row or col separator.
12199 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12201 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12203 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12205 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12207 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12208 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
12209 every time. Fixes #80410.
12211 2007-03-22 Chris Toshok <toshok@ximian.com>
12213 * BindingSource.cs (AddNew): partially implement.
12215 remove a couple of NotImplementedException's
12216 to get bug #81148 closed.
12218 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12223 - UpdateCursor method added to update the screen cursor.
12224 - GetAvailableCursor method added to return cursor for enabled tree,
12225 it searches for cursor on control and it's parent's for enabled control.
12226 - Call UpdateCursor method on setter of Cursor property.
12227 - On setter of Enabled call UpdateCursor when it is false, we need to
12228 change cursor to normal (or to this parent cursor) because cursor
12229 setting theres no effect to disabled controls.
12230 - Some minor source changes to follow the coding style guidelines.
12232 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
12235 2007-03-22 Chris Toshok <toshok@ximian.com>
12237 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12240 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12242 * XplatUIX11.cs: Implement default locations for forms.
12243 * Form.cs: Completely rework startup location for forms. Fixes #79964.
12244 * Hwnd.cs: Add previous_child_startup_location (to track the current
12245 startup location for any child forms of the current form) and
12246 previous_main_startup_location (to track the startup location for
12247 the current toplevel form).
12249 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12251 * Control.cs: Don't trigger a layout if an implicit control is added
12252 that isn't visible. Also, don't notify the owner when an implicit control
12253 is added. (Owners shouldn't even know about their implicit controls.)
12255 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12257 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12258 to save some re-layouts.
12260 2007-03-21 Everaldo Canuto <everaldo@simios.org>
12262 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12265 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12267 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12268 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12270 2007-03-21 Mike Kestner <mkestner@novell.com>
12272 * ListView.cs : disable selection update for non-left button clicks
12273 with mods and over selected items. [Fixes #80524]
12275 2007-03-20 Jackson Harper <jackson@ximian.com>
12278 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12281 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12283 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12284 very probably a more complicated calculation there. Update the
12285 textbox' ForeColor and BackColor when the ComboBox' colors are
12286 changed. Change the border change in LayoutComboBox to only affect
12287 the textbox, not all the calculations there. Seems to fix most of
12290 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12292 * ComboBox.cs: Handle Home and End keys as well as all combinations of
12293 modifiers + navigation keys as input keys, enables advanced text
12294 selection in the combobox (like Shift+Left Arrow for instance).
12295 ComboTextBox now overrides Focused and returns whatever
12296 ComboBox.Focused returns, since it really should be focused
12297 whenever the ComboBox is. Fixes #80795. Also make the border around
12298 the text box one pixel bigger, as mentioned in #79436.
12300 2007-03-20 Jackson Harper <jackson@ximian.com>
12302 * TreeView.cs: Don't offset the images, this was causing some
12303 artifacts when expanding/collapsing with images that were the
12304 exact height of the treenode.
12306 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12308 * TrackBar.cs: Query the theme for the correct value when the mouse
12309 moves and the thumb is pressed.
12310 * Theme.cs: Added TrackBarValueFromMousePosition
12311 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12312 implementation was updating the trackbar value when drawing, now
12313 the drawing methods only draw. Fixes #80900. Refactored the
12314 calculations out to TrackBarValueFromMousePosition and
12315 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12316 according to the mouse position whenever it wants to. Changed the
12317 light coloured pen when drawing the thumb from ControlLight to
12318 ControlLightLight, because the ControlLight is the same colour as
12319 the background so the 3D effect is lost.
12321 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12323 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12324 defined. Fixes #80784.
12326 2007-03-20 Marek Habersack <mhabersack@novell.com>
12328 * ContextMenuStrip.cs: align with the change introduced in
12331 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12333 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
12334 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
12337 2007-03-19 Chris Toshok <toshok@ximian.com>
12339 * Control.cs (WmPaint): don't make use of the Handle property
12340 after an event is emitted, as the user could have closed the
12341 form/destroyed the control. Store the Handle in a local variable
12342 and make use of that. Fixes bug #80768.
12344 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12346 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12347 behavior in X11 environments.
12349 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12351 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12352 because on setter of topmost we dont call SetTopmost when handle is not
12355 2007-03-20 Jackson Harper <jackson@ximian.com>
12357 * TextControl.cs: Need to use SelectionLength () not
12358 selection_length, since that var is reset to -1.
12359 - Draw the caret when we don't have focus.
12360 * TextBox.cs: The selectall actually doesn't occur until the first
12362 * TextBoxBase.cs: Need to update the caret position after a
12365 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12367 * ListView.cs: Enable scrolling when using Tile view.
12369 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12373 * XplatUIDriver.cs: Abstract SetOwner method created.
12375 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
12376 must be implemented and was masked as todo.
12378 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
12381 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
12382 cheking for null owner to remove transient. The SetTopmost will be change
12385 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12386 SetTopmost. Now owned forms will work properly in win32 and X11.
12388 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12390 * MdiWindowManager.cs: Update function name.
12391 * Form.cs: After closing a form MdiParent is always null.
12392 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12393 better what it should do: necessary book-keeping when the form is
12394 closed, it should not close the form itself.
12396 2007-03-19 Andreia Gaita <avidigal@novell.com>
12398 * ListViewItem.cs: Fix back and fore color. The subitems only
12399 use their own colors if they are set, otherwise use the listview's
12400 colors. Don't set default colors on constructor for subitem.
12403 2007-03-19 Mike Kestner <mkestner@novell.com>
12405 * ListView.cs : make box selection for Details views with
12406 FullRowSelect conform to MS behavior when clicking in the "item"
12407 column and clicking outside the defined columns.
12408 [Fixes case 5-6 of #80374]
12410 2007-03-19 Chris Toshok <toshok@ximian.com>
12412 * ScrollableControl.cs: create the controls from within the ctor,
12413 but don't actually add them until our handle is created. this
12414 fixes a NRE possibility jpobst found (if you override OnLayout in
12415 a subclass, it's called before your ctor). Also, add a
12416 IsHandleCreated guard to UpdateSizeGripVisibility as well.
12418 2007-03-19 Jackson Harper <jackson@ximian.com>
12420 * TextBox.cs: Reduce the amount of invalidation we do.
12421 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12422 some of them are true by default on MS.
12423 - Add some functions to reduce the amount of invalidates we do.
12424 * TextControl.cs: Less invalidation.
12426 2007-03-19 Chris Toshok <toshok@ximian.com>
12428 [ Fixes #81773, and *seems* to fix #81553 as well ]
12430 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12431 AccumulateDestroyedHandles. We need to do it *after* we send
12432 WM_DESTROY, as the user's code can access Control.Handle in
12433 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
12434 move the WM_DESTROY/zombie handling to before the call to
12435 XDestroyWindow. For some reason without this ordering
12436 FormTest.RecreateHandle hangs. This ordering is semantically
12437 equivalent, however, as XDestroyWindow is async anyway.
12439 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
12441 * RichTextBox.cs: Reset backcolor_set after setting default.
12443 2007-03-19 Chris Toshok <toshok@ximian.com>
12445 * ScrollableControl.cs: the scroll position should not effect the
12446 canvas size. commit patch from georgegiolfan@yahoo.com, which
12447 fixes some really bizarre behavior on resizing. Fixes bug #80778.
12449 2007-03-19 Chris Toshok <toshok@ximian.com>
12451 * ScrollableControl.cs: clean this up a bit. create the
12452 scrollbars in the ctor and just show/hide them as needed. Also,
12453 make hscroll_visible/vscroll_visible internal to Recalculate, and
12454 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12455 everywhere else. This seems to fix the scrollbars appearing
12456 beneath the content for me (i have *no* idea why that is,
12459 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12461 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
12462 some redundacy for stuff in Anchor and Dock that base will take care of.
12465 2007-03-19 Mike Kestner <mkestner@novell.com>
12467 * ListView.cs : make box selection for Details views without
12468 FullRowSelect dependent on the text bounds, not item bounds.
12469 * ListViewItem.cs : add an internal property to obtain the TextBounds
12470 in Details view. [Fixes case 1-4 of #80374]
12472 2007-03-19 Andreia Gaita <avidigal@novell.com>
12474 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12475 we're < 2.0. #78448 && #80316
12477 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12479 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12480 have the same style available as the previously selected one. Also,
12481 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
12483 2007-03-19 Jackson Harper <jackson@ximian.com>
12485 * TextControl.cs: Add an alignment property that all new lines
12487 - Make sure to use the align shift when calculating the line's X
12489 * TextBox.cs: Set the alignment on the document as well as on all
12490 the document lines.
12492 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12494 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12495 throw if setting the parent of an mdichild that already has an
12496 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12497 AssemblyProductAttribute in the assembly, use the type's namespace (as
12498 MS seems to do). CreateControl: don't create the handle if the control
12499 is not visible (according to MS behaviour and spec). SetTopLevel: Only
12500 create handle if the control is not a form. Change FocusInternal to
12501 virtual so that it can be overriden by Form.
12502 * TextBox.cs: Update call to FocusInternal.
12503 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12504 form is not a toplevel form when it's a mdi child, so update is_toplevel
12505 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12506 hasn't been created. Show (IWin32Window): Don't allow this overload for
12507 toplevel windows. CenterToParent/CenterToScreen/Select: create the
12508 handle as MS does. SetVisibleCore: if called on a MdiChild and the
12509 parent isn't visible yet, save the visibility and restore it when the
12510 parent is made visible.
12511 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12512 methods, since the visibility of the scrollbars can be changed from
12513 several places, not only from AutoScroll.
12516 2007-03-19 Jackson Harper <jackson@ximian.com>
12518 * RichTextBox.cs: Enable shortcuts by default.
12519 * TextBoxBase.cs: Add conditional shortcuts.
12521 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12523 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
12525 2007-03-19 Chris Toshok <toshok@ximian.com>
12527 [ Fixes bug #80604]
12529 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12530 swallow the message we're waiting on, instead of delivering it, as
12531 this is only used for the WM_SHOWWINDOW raised from
12532 MapWindow/UnmapWindow, and the message needs to be generated
12533 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12534 before doing the Map/Unmap. Also make sure that the Hwnd is still
12535 alive after the message has been handled.
12537 *before* the window is shown.
12539 * Control.cs (CreateControl): guard a few more things inside the
12540 if (!is_created) block, as we might end up being called again -
12542 (WmShowWindow): call CreateControl if we're showing the control.
12544 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12546 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12547 controls without a handle if they have any parent with a handle. In
12548 Dispose add a check whether the handle is created or not before
12549 calling BeginInvoke, this removes the need of the extra disposing
12550 parameter (which was bogus anyway since it didn't prevent the
12551 invoke from happening, it only skipped the check for an existing
12552 handle, meaning that the invoke would call on an inexistent
12555 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12557 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12558 appears in taskbar.
12560 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12563 - Fixed a problem that dont show help button for messages with 3 buttons.
12564 - Refactory button size and position calculations, now dont use fixed
12565 values, also fixed button sizes (#80043) and form's border space.
12566 - AddButton method created, now all other AddButton methods call this one.
12567 - Some other source code cosmetic changes.
12569 2007-03-18 Jackson Harper <jackson@ximian.com>
12571 * RichTextBox.cs: Don't do this all fonts must match check if
12572 there is only one char selected.
12574 2007-03-18 Jackson Harper <jackson@ximian.com>
12576 * TreeView.cs: ScrollWindow works properly now, so we don't need
12577 to screw around with the scroll area. This fixes some artifacts
12578 when expanding and collapsing.
12580 2007-03-18 Jackson Harper <jackson@ximian.com>
12582 * TextBoxBase.cs: Allow updating the selection position when the
12583 cursor is outside the textarea, but we have a capture.
12584 * TextControl.cs: A special case for when the cursor is outside
12585 the bounds of the TB.
12587 2007-03-18 Jackson Harper <jackson@ximian.com>
12589 * TextBoxBase.cs: Remove image pasting code for now. There is no
12590 way to get an image on the clipboard right now anyways.
12592 * RichTextBox.cs: Use the new RTF Picture class for pictures.
12594 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12597 - Set window properties in constructor intead of on CreateParams.
12598 - Remove topmost from Window ExStyle.
12599 - Set ShowInTaskbar to false.
12600 - Set form border to FixedDialog.
12601 - Some cosmetic changes and remove unneeded comments.
12602 - It fixes itens 2,3 and 4 of bug #80043.
12604 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
12606 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12607 none was explicitly set. Fixes part of bug #79949.
12609 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12611 * ToolStripComboBox.cs: Add AutoComplete*.
12613 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12615 * ToolStripComboBox.cs: Add FlatStyle.
12617 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12619 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12620 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12622 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12624 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12625 CheckBox.cs, RadioButton.cs, BindingSource.cs,
12626 DataGridColumnStyle.cs: Remove warnings.
12628 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12630 * Menu.cs: MergeMenu: Check menu argument for null before looping over
12632 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12633 visibility of mdi child forms. FormSizeChangedHandler: update the
12634 maximized size if size has changed while maximized.
12635 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12636 creating the handle.
12637 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12638 avoid creating the handle if not created.
12639 * XplatUI.cs: Update debug output.
12640 * XplatUIStructs.cs: Added ToString's for a couple of structs.
12642 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12644 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12646 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
12647 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12648 Implement keyboard shortcuts.
12650 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12652 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12653 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
12654 ColorDialog and all derived classes.
12656 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12658 [ Fixes bug #79828 ]
12661 - Rename ToolBarButtonInfor to ToolBarItem.
12662 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12663 - Maintain an array of ToolBarItem, used instead of ToolBarButton
12664 collection to be able add same button more than one time on a toolbar.
12665 - Refactory all properties and methods to use ToolBarItem.
12667 * ToolBarButton.cs:
12668 - Remove all propeties and methods that is now in ToolBarItem.
12669 - Rectangle propery now gets the rectangle from first ToolBarItem to
12670 mimic win32 behavior.
12671 - Size calculation and layout methods also removed.
12673 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12674 ToolBarItem instead of ToolBarButton to right drawing buttons when
12675 same button/separator was added more than one time to ToolBar.
12677 * ThemeNice.cs: Same as above.
12679 2007-03-15 Andreia Gaita <avidigal@novell.com>
12681 * XplatUIX11.cs: Fire extra MouseMove events right after
12682 MouseDown and MouseUp, emulating win32's <censored> behaviour
12683 for apps that rely on it.
12685 2007-03-15 Jackson Harper <jackson@ximian.com>
12688 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12689 it is drawn on the controls client window and there is no NC
12691 - Set the background color to gray on 2.0 when we are readonly.
12693 2007-03-15 Chris Toshok <toshok@ximian.com>
12695 [ Fixes bug #81144 ]
12697 * XplatUIX11.cs: implement VirtualScreen independently of
12698 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12701 2007-03-15 Chris Toshok <toshok@ximian.com>
12703 * Hwnd.cs: add an internal field for the cached_window_state.
12705 * XplatUIX11.cs: cache the window state, invalidating the cache
12706 (and thus re-querying the X server) only when we see an update to
12707 the _NET_WM_STATE property.
12709 2007-03-15 Chris Toshok <toshok@ximian.com>
12711 * BindingSource.cs: get a lot of the unit tests working.
12713 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12715 * Control.cs: Modify UpdateStyles to store distances when bounds >=
12716 0 instead of just bounds > 0. [Fixes bug #80912]
12718 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12720 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12723 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
12725 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12726 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12727 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12728 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12730 2007-03-15 Chris Toshok <toshok@ximian.com>
12734 * Control.cs: add Ivan's fix for 81101, with a slight modification
12735 - you can set control.Target to null.
12737 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
12739 * ToolStripItem.cs: If our OwnerItem is null, we can't use
12740 HideDropDown, use Hide instead to prevent an NRE.
12743 2007-03-14 Jackson Harper <jackson@ximian.com>
12745 * TextBoxBase.cs: Mess with the creation stuff a little. We need
12746 to calculate the document before the handle is created, in some
12747 cases. (Actually just one case).
12749 2007-03-14 Jackson Harper <jackson@ximian.com>
12751 * TextBoxBase.cs: Need to display the caret after letting the base
12752 wndproc handle the focus methods, because the caret display
12753 methods check the focus state.
12754 - Try to display the caret after updating it's position with SelectWord.
12755 - Don't need to do an immediate update on this recalc, since there
12756 will be an invalidate anyways.
12758 2007-03-14 Jackson Harper <jackson@ximian.com>
12760 * TreeView.cs: Some workarounds so that we can match event order a
12763 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
12765 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12766 #80803. Avoid NullReferenceException when Control does not have
12767 parent. Fixed different blinkstyle issues. Only subscribe to Tick
12768 event a single time. Only draw error icon when control is created and
12769 visible. Fixes failing unit tests.
12771 2007-03-14 Andreia Gaita <avidigal@novell.com>
12773 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12774 Selecting events. Fire Leave and Enter events when changing tabs.
12776 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
12778 * TreeView.cs: Add TreeViewNodeSorter.
12779 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12781 2007-03-14 Chris Toshok <toshok@ximian.com>
12783 * Form.cs: go ahead and remove the RecreateHandles that jpobst
12784 removed earlier and I had him add back it. It turns out metacity
12785 *does* in fact handle the MOTIF_WM_HINTS property changing, it
12786 just doesn't redraw the window titlebar until you resize the
12787 window. This also means we aren't recreating the entire window
12788 hierarchy on X when you change this property. And it looks better
12791 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12794 * ListView.cs: Collecting selection information
12795 is now done in SelectedIndexCollection rather than in
12796 SelectedListViewItemCollection. This is done so we can
12797 have the selection information code in one single place
12798 (virtual mode selection information entirely depends on
12799 SelectedIndexCollection).
12801 2007-03-13 Miguel de Icaza <miguel@novell.com>
12803 * ErrorProvider.cs: Add stubs for ISupportInitialize
12805 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12807 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12808 in the right order with the right values, from the Checked property,
12809 just as MS does (instead of triggering them from ListView).
12811 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12813 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12815 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
12816 the correct handler in OnItemCheck method (ItemCheckEventHandler
12817 instead of EventHandler). This used to throw an InvalidCastException.
12819 2007-03-13 Jackson Harper <jackson@ximian.com>
12821 * TextBoxBase.cs: Calculate the document before the handle is
12822 created, so there isn't an extra invalidate called.
12824 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
12826 * Form.cs: Don't set owner in ShowDialog until we are sure
12827 that we aren't going to throw an exception. [Fixes bug #80773]
12829 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
12831 * TreeView.cs: Make it compile.
12833 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12835 * Control.cs: Another place we don't call SizeFromClientSize.
12836 * Form.cs: Another place we don't call SizeFromClientSize.
12839 2007-03-12 Jackson Harper <jackson@ximian.com>
12841 * TreeView.cs: Basically emulating some strangness here with
12842 exanding nodes and setting node positions when windows aren't
12844 - Also attempting to walk the node tree less than previously, and
12845 just use visible order calculations for determining offsets.
12846 - oops made scrolling backwards.
12847 * TreeNode.cs: We need to start nodes with a zero visible order,
12848 because the order calcs are based on the first nodes order.
12850 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12852 * Form.cs: Don't exit the program if RecreateHandle is called on
12855 2007-03-12 Chris Toshok <toshok@ximian.com>
12857 * XEventQueue.cs: remove the use of PostQuitState.
12859 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
12860 WM_QUIT message in GetMessage, return false (and if we're in the
12861 nested WaitForHwndMessage, repost the WM_QUIT message).
12863 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12865 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12866 or the MaximizeBox properties. [Part of bug #80640]
12868 2007-03-12 Everaldo Canuto <everaldo@simios.org>
12870 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12873 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12875 * ToolStripItem.cs: Fix some tests I broke by checking Visible
12876 instead of visible.
12878 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
12880 * FileDialog.cs: Use text of File name combobox to determine what
12881 files the user selected. Added tokenizer to parse the file names.
12884 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12886 * Control.cs: We can't call SizeFromClientSize in the constructor,
12887 but we still need to do the same work, so make an internal version.
12890 2007-03-12 Jackson Harper <jackson@ximian.com>
12894 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12897 2007-03-12 Jackson Harper <jackson@ximian.com>
12899 * TextBoxBase.cs: Now that the handles are being created a little
12900 later, we need to make sure that the document is recalculated when
12901 the handle is created.
12903 2007-03-11 Everaldo Canuto <everaldo@simios.org>
12905 * Theme.cs: GetLinkFont abstract method added.
12908 - Remove CalcTrimRectangle, no longer needed.
12909 - Factor also remove, position issues must be fixed in libgdiplus.
12910 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12911 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
12912 care about font used to draw links.
12913 - Set TabStop to true when control is "Selectable", control is selectable
12914 when have one or more links. Fixes #80501 (test case is also added).
12915 - Set the LinkArea values after links change, LinkArea values must be
12916 based in first link position and size, a test case was created.
12917 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
12918 the attribute must be true LinkArea.Length > 0. The same was applied to
12921 * ThemeWin32Classic.cs:
12922 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
12924 - Use CPDrawStringDisabled to draw disabled text instead of hard code
12926 - Draw focus rectangle for every parts focused, including parts that
12927 is on another line, its because regions returns various rectangles
12928 and not only one. Needed to mimic W32 look.
12929 - Uses Graphics.Clip to delimite region painted, it mean that now
12930 complete text is passed to DrawString, with this we solve layout
12931 issues without create another text renderer.
12932 - Uses Region.Intersect to fix some flickers problems, now only needed
12933 parts will redrawed.
12934 - This changes fixes #79614 and some other unreported issues, on Linux
12935 some layout problems still remain, the problem is under
12936 MeasureCharacterRanges but it is an libgdiplus bug.
12938 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
12940 * TextBox.cs: Set for foreground color.
12941 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12942 this is already done in Control.
12944 2007-03-10 Jackson Harper <jackson@ximian.com>
12946 * TextBox.cs: Set the background color, but reset the
12947 backcolor_set flag which is just for the user setting the
12950 2007-03-09 Chris Toshok <toshok@ximian.com>
12952 * Control.cs: really remove the call to XplatUI.SetVisible from
12953 CreateHandle(), like I said I did when I merged the branch.
12955 * BindingSource.cs: implement some more of this stuff.
12957 2007-03-09 Jackson Harper <jackson@ximian.com>
12959 * TextBox.cs: Don't explicitly set our background colors.
12961 * TextBoxBase.cs: Draw readonly text.
12962 - Need to invalidate when backcolor or readonly are changed.
12964 2007-03-09 Jackson Harper <jackson@ximian.com>
12966 * TextBoxBase.cs: Don't set the forecolor until the handle is
12968 - Do not raise OnPaint, and removed some old debug code.
12970 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
12972 * ScrollableControl.cs: Fix mouse wheel scrolling.
12974 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12976 * Control.cs: Wire up MouseDoubleClick event.
12978 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12980 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12982 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12983 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12984 item is added. This logic was moved to ToolStrip.OnItemAdded.
12987 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12989 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12991 2007-03-08 Jackson Harper <jackson@ximian.com>
12993 * TreeView.cs: Show the correct image for selected node (this used
12994 to work, not sure how the code got deleted). Also implemented 2.0 feature
12997 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13000 * ListViewItem.cs: Cache index in items when retrieving them
13003 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13005 * ToolStripItem.cs: Don't return the explicit_size if we are using
13006 AutoSize. Fixes invalidation issue when user has explicitly set a
13007 size and has AutoSize = true.
13009 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13011 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13013 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13015 * DataGridView.cs: Remove event handler from DataView when a
13016 DataTable is used as DataSource.
13018 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13020 * Control.cs: Create internal setter for client_size to allow it to be
13021 set without triggering resizing code.
13022 * Form.cs: Calculate client_size in constructor, only change client_size
13023 in FormBorderStyle property if Handle has been created.
13024 [Fixes #80574, #80791]
13026 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
13028 * SystemInformation.cs: Add TerminalServerSession.
13030 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13032 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13035 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13037 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13038 Handle before we were supposed to. Now checks ActivateOnShow property
13040 * Control.cs: Add internal ActivateOnShow property.
13041 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13042 for ActivateOnShow.
13043 * Hwnd.cs Remove no longer needed no_activate field.
13045 2007-03-07 Jackson Harper <jackson@ximian.com>
13047 * TreeView.cs: Implement owner draw tree nodes. And a couple more
13049 * DrawTreeNodeEventHandler.cs: Add
13050 * DrawTreeNodeEventArgs.cs: Correct default value.
13052 2007-03-07 Chris Toshok <toshok@ximian.com>
13054 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13055 to be called before NativeWindow.WndProc. Put the HwndCreating
13056 magic there to hook up our Hwnd's to handles.
13058 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
13060 * DataGridView.cs: Comment out debug code.
13062 2007-03-07 Chris Toshok <toshok@ximian.com>
13064 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
13065 to make the rest of the world happy]
13067 * Control.cs (CreateHandle): there's no need to call
13068 XplatUI.SetVisible here, it's effectively done by
13069 XplatUI.CreateWindow on X now, and always was on windows.
13071 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
13072 shortcircuit out of the loop if we have a message loop running on
13075 [Changelog from merge]
13077 2007-03-05 Chris Toshok <toshok@ximian.com>
13079 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
13080 causes handle creation.
13082 2007-02-28 Chris Toshok <toshok@ximian.com>
13084 * ApplicationContext.cs: Add a flag to make sure we only raise the
13085 ThreadExit event once (ExitThreadCore can be indirectly called
13086 from a few places.) I don't like the additional flag, but it
13087 makes the event ordering/count correct.
13089 * Application.cs (MWFThread.LoopCount): don't use an enumerator
13090 without locking the collection. An enumerator doesn't give us any
13091 protection from modification anyway. Lock the thread hash and
13092 replace the complicated enumerator loop with a foreach.
13093 (Application.CloseForms): make internal so it can be called from
13094 ApplicationContext. This should probably be moved to MWFThread.
13095 (Application.ExitThread): don't call MWFThread.Current.Exit()
13096 here. just call XplatUI.PostQuitMessage. We'll exit the thread
13097 when the runloop exits (in response to WM_QUIT.)
13098 (Application.RunLoop): add a comment (and check) for
13099 context.MainForm being null after setting context.MainForm.Visible
13100 = true. This is because you're perfectly free to dispose of a
13101 form in VisibilityChanged. Chalk this up to another case where we
13102 need to synchronously generate WM_ACTIVATE from Control.Show.
13103 Also, add handling for WM_QUIT here so we'll exit the loop.
13105 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
13106 fact that we don't wait if we're only unmapping the whole_window
13107 makes me a bit nervous, but it doesn't seem to cause any problems
13110 also, add a comment about the stupid, broken and wrong resetting
13111 of PostQuitState to false in GetMessage().
13113 In PostQuitMessage, we need to add a WM_QUIT message to the
13114 thread's queue. We use the FosterParent to get the right
13117 Lastly, in SetVisible, we need to unmap both windows, since the
13118 waiting only happens when we're unmapping the client window. So
13119 now, the *only* time we unmap just the whole_window is in the hack
13120 for resizing a control to 0,0.
13122 2007-02-21 Chris Toshok <toshok@ximian.com>
13124 * Application.cs (CloseForms): rewrite this so that we don't
13125 modify the list while we're traversing it.
13127 2007-02-20 Chris Toshok <toshok@ximian.com>
13129 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
13130 of OnHandleCreated.
13131 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
13132 handle is created. otherwise we'll create it here.
13133 (VerticalScrollEvent): same here.
13135 * Application.cs (CloseForms): call Form.Dispose, don't post
13138 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
13139 here. Application should Dispose() of the Form's.
13141 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
13142 WM_DESTROY as well.
13143 (MapWindow,UnmapWindow): only actually do the waiting for
13144 SHOWWINDOW if the control we're dealing with is a Form.
13145 (CreateWindow): if the control isn't a form, SendMessage
13146 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
13148 * Control.cs (SetVisibleCore): always use is_visible here, not
13149 value. If we use value, we can end up re-setting something
13150 visible if, for instance, you do Control.Hide() in a delegate
13151 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
13153 2007-02-20 Chris Toshok <toshok@ximian.com>
13155 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
13156 the message we need. PeekMessage returning false should not be a
13157 condition under which we exit the loop.
13159 2007-02-15 Chris Toshok <toshok@ximian.com>
13161 * Control.cs (Refresh): only refresh if we've got a handle and are
13163 (CreateAccessibilityInstance): CreateControl() here.
13164 (UpdateChildrenZOrder): complicate the code loop even more by
13165 taking into account controls that haven't had their handle
13166 created, and those that aren't visible. But on the flip side,
13167 simplify the code by splitting it into two loops. one which
13168 builds up the list of child controls we're interested in, and the
13169 other that sets the z order of those children.
13171 2007-02-14 Chris Toshok <toshok@ximian.com>
13173 * Control.cs: Control.AccessibilityObject causes the control to be
13174 created, not just the handle.
13176 2007-02-14 Chris Toshok <toshok@ximian.com>
13178 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13179 problem on X where a window might have its handle created (and be
13180 visible) while the window is unmapped. calling XConfigureWindow
13181 on an unmapped window is bad, and generates X errors.
13183 2007-02-13 Chris Toshok <toshok@ximian.com>
13185 * Control.cs (CreateHandle): don't loop over our children setting
13186 their parent here. do it when in WndProc when we're shown.
13187 (UpdateChildrenZOrder): make this internal so we can call it from
13189 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13190 creating its handle. Also, remove the calls to PerformLayout from
13191 here. they're done in ScrollableControl.OnVisibleChanged. Also,
13192 OnVisibleChanged only seems to be called directly here for the
13193 toplevel control. It's propagated down the window hierarchy by
13194 calls to child.OnParentVisibleChanged.
13195 (OnVisibleChanged): don't do layout here - it's done (oddly
13196 enough, according to a glance at stack traces on ms.net..) in
13199 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13200 z order of our children before calling PerformLayout.
13202 2007-02-12 Chris Toshok <toshok@ximian.com>
13204 [big change, fixes #80020]
13206 * AccessibleObject.cs: we need to make owner internal again to fix
13207 some of ControlAccessibleObject.
13209 * Control.cs: lots of changes here. add support for WM_CREATE,
13210 for which we generate OnHandleCreated. Remove the OnHandleCreated
13211 call from CreateHandle. Also add support for WM_SHOWWINDOW where
13212 we create child controls. leave the MonoTODO's for the
13213 accessibility calls, but fix the exceptions so the tests pass.
13215 Add the InvalidOperationExceptions to Invoke methods, and remove a
13216 couple of InvokeInternal methods we aren't using.
13218 Also, add a couple of CreateHandle calls in places where we know
13219 the handles are being created but our code doesn't reference
13222 Make SetVisibleCore call OnVisibleChange if the handle isn't
13223 created. If the handle is created, we rely on XplatUI.SetVisible
13224 generating the event synchronously.
13226 Lastly, make sure we don't use this.Handle inside CreateHandle,
13227 because we can call back into client (and that code can dispose of
13230 * XplatUIStructs.cs: misc/cleanup.
13232 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13233 although we don't populate the wParam properly.
13234 (CreateWindow): generate WM_CREATE.
13235 (MapWindow,UnmapWindow): make these calls synchronous, at great
13236 performance expense (particularly in the unmap case), to match
13239 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13241 (set_MdiParent): don't recreate the handle unless it's been
13244 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13247 * NativeWindow.cs: this is probably the weirdest part of the
13248 patch. We need a way to link up the window being created to the
13249 WM_CREATE message. Since we can only be creating one window at a
13250 time on a given thread, we keep track of a per-thread reference so
13251 we can dispatch it properly. We also need to keep track of the
13252 Hwnd currently being created so that the win32 backend doesn't
13255 * XplatUIWin32.cs: a similar change to the one we made in
13258 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13260 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13261 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13262 to draw the menu shortcut string.
13264 2007-03-07 Jackson Harper <jackson@ximian.com>
13266 * TreeNode.cs: Add the 2.0 collapse method.
13268 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13270 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13272 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13274 * DataGridView.cs: Change DataSource will clear column and row
13275 lists. Call Invalidate() to reflect DataSource change.
13277 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13279 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13280 and a new row is added to it.
13282 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13284 * DataGridView.cs: Add columns when DataSource is en empty list but
13285 is a System.Data.DataView (from a System.Data.DataTable).
13287 2007-03-06 Andreia Gaita <avidigal@novell.com>
13289 * Label.cs: Implement AutoEllipsis (2.0)
13291 2007-03-06 Jackson Harper <jackson@ximian.com>
13293 * TreeView.cs: Implement 2.0 TopNode setter property.
13294 - Use a local var instead of the skipped_nodes field for computing
13295 how many nodes to skip. Otherwise we won't scroll because the
13296 valuechanged handler checks if skipped_nodes is equal to the new
13298 - Implement 2.0 Sort method.
13299 - Add useless 2.0 DoubleBuffer property
13300 - Implement 2.0 LineColors property. Lets you change the color of
13301 the lines in the tree. Terribly useful for creating non cohesive
13303 - Implement 2.0 image key feature.
13305 2007-03-06 Jackson Harper <jackson@ximian.com>
13307 * TreeView.cs: We can't get the bounds of the nodes before raising
13308 the AfterSelect event, because that event could change the node's
13309 bounds (scrolling, font change, etc).
13311 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13313 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13314 * Form.cs: Don't recreate handle when creating FormWindowManager, just
13315 update window styles. In CreateParams us VisibleInternal instead of
13316 VIsible to get the actual visible flag set for this form.
13317 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13318 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13319 handle the case when the form is already maximized, in which case
13320 it should be restored. Fixes #81043.
13322 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13324 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13326 2007-03-05 Jackson Harper <jackson@ximian.com>
13328 * TreeViewHitTestInfo.cs: implement.
13330 2007-03-05 Jackson Harper <jackson@ximian.com>
13332 * InternalWindowManager.cs: class status fix.
13334 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13336 * InternalWindowManager.cs: All windows that have a parent
13337 are confined to their parent when they're being moved.
13340 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
13342 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13343 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13345 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13347 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13348 buttons invisible before deciding which ones should be visible
13349 (fixes minimize/maximize buttons showing up in toolwindows). Remove
13350 an unused variable.
13351 * InternalWindowManager.cs: Remove warning.
13353 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13355 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13356 to throw an InvalidOperationException is virtual mode is being used.
13358 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13360 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13361 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13362 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13363 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13364 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13365 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13367 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13369 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13370 driver.KeyboardDelay from XplatUI.KeyboardDelay
13371 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13372 (patch by Sergey Volk)
13374 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13376 * ToolWindowManager.cs: Added, contains logic for
13378 * CreateParams.cs: Add a few helper methods and an
13379 internal variable to know which control the CreateParams belongs
13381 * Control.cs: Call Form.ChangingParent when the
13382 parent is about to be changed.
13383 * XplatUIX11.cs: DeriveStyles (): Set
13384 caption_height for all windows that have captions and are children.
13385 Update to use ToolWindowManager instead of InternalWindowManager
13387 * XplatUIWin32.cs: Set fake window styles for all
13388 windows that have window managers.
13389 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13390 now duplicated for mdi windows when they are
13391 maximized, first for the buttons the window itself has, then for
13392 the buttons that appear in the menu bar. Makes things a little
13393 easier). Updated UpdateWindowDecorations, SetWindowState and the
13394 mouse eventhandlers accordingly.
13395 * Form.cs: Add ChangingParent (), contains the
13396 logic of what should happen when the parent changes. In MdiParent
13397 don't set things that ChangingParent () is doing. When handling
13398 WM_CLOSE, we can close the form if there are any other modal forms
13399 and the current form is a descendent of the modal form.
13400 * InternalWindowManager.cs: A lot of refactoring,
13401 the title buttons are now extracted to a separate container class
13402 that takes care of all button code (clicks, tooltips, etc). Moved
13403 Iconic|Maximized|Normal Bounds properties to this class from
13404 MdiWindowManager, so that the window state logic can succeed for
13405 other than mdi wm's. Implemented general window state change logic.
13406 Moved CreateButtons to ThemeWin32Classic, since the theme might
13407 override which buttons are available when as well as the exact
13409 * FormWindowManager.cs: Added, contains logic for
13411 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13412 which buttons go where (and if they are at all visible).
13413 Removed special handling of maximized windows, since they aren't special.
13414 In DrawManagedWindowDecorations don't try to draw the text if it is
13416 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
13417 use whatever the wm gives us.
13419 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13421 * ButtonBase.cs: Add 2.0 properties.
13422 * Button.cs: Override Draw for 2.0.
13423 * Control.cs: Add Entered and Selected properties.
13424 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13425 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13426 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13428 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13430 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13432 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
13434 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13436 * XplatUIWin32.cs: Register a new class with Windows each time we get
13437 a new ClassStyle. [Fixes bugs #79432, #80817]
13438 * Controls.cs: Set the correct ClassStyle in CreateParams.
13439 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13441 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
13443 * ListView.cs: Add fireEvent argument to ReorderColumn since the
13444 ColumnReordered event must not be signaled when modifying DisplayIndex
13445 of a ColumnHeader. Added internal ReorderColumns method which takes
13446 care of drawing, and updating the internal DisplayIndex of the
13447 ColumnHeader. Added AddColumn method which is invoked from
13448 ColumnHeaderCollection when adding or inserting columns, and which
13449 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13450 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13451 Recalculated dispay indices after removing a ColumnHeader.
13452 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13453 match MS. Allows last display index to be returned after ListView
13454 is disposed. Update actual location of ColumnHeader when DisplayIndex
13457 2007-03-01 Everaldo Canuto <everaldo@simios.org>
13459 * LinkLabel.cs: Improve CalcTrimRectangle.
13461 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13463 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13465 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13466 get rectangle as a result value.
13468 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13470 * LinkLabel.cs: Theres some diferences between rectangle return from
13471 MeasureCharacterRanges and the area used for DrawString to fix this
13472 CalcMeasurementFactor method was created, it calcules the diferences
13473 to be use later to adjust rectangle in draw operations. Fixes #80473.
13475 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13476 to adjust draw rectangle.
13478 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13480 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13481 text and some other changes to reduce and optimize source code.
13483 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13485 * RadioButton.cs: Implement 2.0 event.
13486 * RelatedImageListAttribute.cs: Implement new class.
13488 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13490 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13492 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13494 * CheckBox.cs: Implement 2.0 functionality.
13496 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13498 * ListView.cs: Refactor Add and AddRange methods of
13499 ListViewItemCollection, to not update the ListView
13500 everytime an item is added in AddRange. Also move the update
13501 code to a new CollectionChanged method, and call it
13502 from other methods that need it as well (this should also fix some
13503 bugs when Sorting is used).
13505 2007-02-27 Jackson Harper <jackson@ximian.com>
13507 * TextControl.cs: Try to never let the caret stay in a non-text
13509 * TextBoxBase.cs: Update the caret.
13511 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
13513 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13514 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13515 delete POINT structure, duplicate of one in XplatUIStructs.
13516 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13518 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
13520 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13521 edit box since otherwise the Label would immediately be set (even if
13522 the user did not modify the label). In OnKeyDown set Handled to true
13523 if Return or Escape was pressed. In ColumnHeaderCollection unlink
13524 columns that are to be removed. In ListViewItemCollection unlink items
13525 that are to be removed.
13527 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
13529 * TextRenderer.cs: If we set a GDI clip region, we need to clear
13530 it when we are done. [Fixes bug #80949]
13532 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13534 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13536 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13538 * ListView.cs: I forgot to commit the changes for ListView
13539 in my previous patch.
13541 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13543 * Clipboard.cs: Partially implement an overload of SetDataObject.
13544 * Form.cs: Implement ShowWithoutActivation.
13545 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13547 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13549 This is a first set of changes to make the Virtual mode works,
13550 by avoiding the retrieval of ListViewItem instances until
13553 * ListView.cs: Store item position in the ListView instead of the
13554 ListViewItem, this way we don't request the Bounds property of
13555 ListViewItem inside the ListView calculations, as well as cache the item
13556 size in item_size field. Store indexes instead of ListViewItem
13557 instances in the matrix used by icon view. Add a ItemMatrixLocation
13558 struct to hold the row and col info of the matrix info.
13560 * ListViewItem.cs: Don't store the location anymore, and only cache
13561 the rectangles for GetBounds. Use the ListView.GetItemLocation
13562 method to retrieve the actual location.
13564 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13566 * TextRenderer.cs: Add clipping support, thanks to George.
13569 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13571 * ListViewItem.cs: Cancel label edit when item is removed from
13573 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13574 event before the edit textbox is displayed. Added CancelEdit method
13575 which is used end to editing while ignoring the value set by the
13576 user. In EndEdit, set focus to ListView to avoid losing focus to
13577 other controls. In ListViewItemCollection.Clear, cancel editing of
13578 any of the items. In Remove, cancel editing of item being removed.
13579 Avoid udplicate code by modifing RemoveAt to invoke Remove.
13581 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13583 * FileDialog.cs: Update FSEntry when move is successful. Fixes
13586 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13588 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
13589 compatible with non X11 systems. Fixes #80901.
13591 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13593 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13594 whether the item should be unselected and reselect. We do no want this
13595 when we're starting to edit the label. Do not fire the
13596 SelectedIndexChanged event from ListView when its already been fired
13597 by modifying ListViewItem.Selected. Fixes bug #80943.
13599 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13601 * TextRenderer.cs: Previos commit logic was backwards.
13603 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13605 * TextRenderer.cs: Don't add padding on MeasureText if we were
13606 sent the NoPadding flag.
13608 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13610 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13611 after DrawButton. To prevent image overlaps button borders SetClip and
13612 ResetClip added before and after draw image. Fixes #79129.
13614 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13616 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
13617 window size, it fix problem when you run under win32 that theres
13618 Size diferent than ClientSize. Also fix controls size and positions
13619 to mimic Win32. Fixes #80837.
13621 2007-02-22 Everaldo Canuto <everaldo@simios.org>
13623 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
13624 menu area to fix some problems for non X11 systems. Fixes #80613.
13626 2007-02-22 Jackson Harper <jackson@ximian.com>
13628 * TreeNode.cs: When a node is expanded, set its is_expanded flag
13629 even if it doesn't have any children.
13631 2007-02-22 Jackson Harper <jackson@ximian.com>
13633 * TreeView.cs: Calculate the top node 'on the fly', this
13634 eliminates issues where you need to click on the tree before
13635 scrolling it to get the top node computed correctly.
13636 * TreeNodeCollection.cs: We don't need to mess with the top node
13639 2007-02-22 Jackson Harper <jackson@ximian.com>
13641 * DataGridViewRow.cs: Fix typo so height can actually be set.
13642 Patch by Peter Grimm.
13644 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13646 * FileDialog.cs: Fixed support for renaming files and directories.
13647 * ListView.cs: Do not lose focus when edit is canceled. Process
13648 Escape as regular key (to prevent closing of dialogs).
13650 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13652 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13653 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13655 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13657 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13658 did not modify label.
13659 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13660 modified the text. Reset Label when user presses Escape in edit mode.
13661 Move focus to ListView after having cancelled or finished editing the
13664 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
13666 * ComboBox.cs: Removed unnecessary initializations. Marked items field
13667 private. Clear textbox when Text is set to null and SelectedIndex is
13669 * FileDialog.cs: Removed unnecessary initializations. Removed
13670 workarounds for ComboBox bugs that are now fixed. Modified
13671 DefaultExt, InitialDirectory and Title property to change null to
13672 zero-length string in getters. Avoid directly accessing fields.
13674 2007-02-20 Jackson Harper <jackson@ximian.com>
13676 * TextControl.cs: Remove RecalAlignments call, that was some
13677 debugging leftovers.
13678 - Don't use the line indent when we shouldn't.
13679 * RichTextBox.cs: Add support for paragraph left indents.
13681 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13683 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13684 Seems like the class status pages doesn't catch params differences.
13686 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13688 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13690 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13692 * ComboBox.cs: Setting Text should have no effect if item text of
13693 selected item exactly matches value. First lookup text using
13694 case-sensitive comparison, and fallback to case-insensitive comparison.
13695 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
13696 allow startIndex to be last index. Changed ArgumentOutOfRangeException
13697 paramname to match MS. Restart from first item if string is not found
13698 after startIndex. Fixed paramname of ArgumentNullException that is
13699 thrown for null value in ObjectCollection.Contains.
13701 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13703 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13705 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13707 * ListControl.cs: In SelectedValue use value.Equals to compare for
13708 equality instead of ==, otherwise it will fail for strings.
13711 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13713 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13714 since the caret won't show up unless ShowSelection is true.
13717 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13719 * Application.cs: When disabling all forms but the main form, do not
13720 disable any descendants of the main form (such as mdi children or
13721 other parented forms). Fixes #80822 on Windows.
13722 * Form.cs: If we have a parent, set the WS_CHILD style.
13723 * Control.cs: Update the window styles if the control whose parent has
13724 changed is a form (the WS_CHILD style has to be switched).
13726 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13728 * XplatUIStructs.cs: MsgUIState structure added.
13730 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13732 * FileDialog.cs: Removed need for separate fileName field. On 2.0
13733 profile, do not check filename(s) for illegal character if filename(s)
13734 were set non-interactively but always check on 1.0 profile. Fixed NRE
13735 in DefaultExt and only strip off first leading dot. Improve exception
13736 message when invalid Filter is set. Do not ignore InitialDirectory if
13737 it does no exist. Store specified Title, and if empty use default
13738 title (depending on type of dialog). Added an internal DialogTitle
13739 property for retrieving dialog title. Fixed logic of displayed dir to
13740 more closely match MS. Avoid setting ComboBox.Text to a zero-length
13741 string as its buggy.
13742 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13743 FileName is a zero-length string (it can never be null). Override
13744 DialogTitle property to set default title of dialog box.
13745 * SaveFileDialog.cs: Override DialogTitle property to set default
13746 title of dialog box.
13748 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13750 * FileDialog.cs: Modify default text of filename and filetype labels
13751 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13752 after we've updated the SelectedIndex. Fixes part of bug #80887.
13753 * SaveFileDialog.cs: Set text of filetype label.
13755 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13757 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13758 label field. Needed by latest Jackson's fixes for ListView.
13760 2007-02-16 Andreia Gaita <avidigal@novell.com>
13762 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
13763 print preview images.
13765 2007-02-16 Jackson Harper <jackson@ximian.com>
13767 * ListView.cs: Make AfterLabelEdit work correctly.
13768 * FileDialog.cs: After changing the name of the folder, we have to
13769 make sure that it is created, or that we pop up an error because
13772 2007-02-16 Jackson Harper <jackson@ximian.com>
13774 * X11Dnd.cs: Implement aliases on mime handlers, so things like
13775 System.String are mapped to text.
13776 - Handle dataobjects, getting all the possible formats out of them
13777 - We dont need the drag event args before we give feedback. This
13778 allows feedback cursors to be immediate before selections have
13781 2007-02-16 Jackson Harper <jackson@ximian.com>
13783 * TextBoxBase.cs: Modified the method for inserting images to
13784 taking a line and position instead of tag and position.
13785 * RichTextBox.cs: Handle PngBlip data by inserting the png image
13787 * TextControl.cs: Allow images to be inserted as the first tag of
13789 - Fix some off by one issues when we assume the first tag is a
13790 text tag, not an image tag.
13792 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13794 * ListView.cs: Set focus to ListView when ItemControl gets a
13795 WM_RBUTTONDOWN message, to mimic .Net behaviour.
13796 Fixes part of #80467.
13798 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13800 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13801 validate Text input (if null or empty string reset Value to default
13802 value). Fixes #80830.
13804 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13806 * ListView.cs: Set owner as null for columns and items when
13807 Dispose is invoked. Fixes #80607.
13809 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
13811 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13812 showing DropDowns, don't show a Grip when doing Flow layout.
13813 [This fixes the toolbox in PDN 2.72.]
13814 * ToolStripItem.cs: Add Anchor property and some internal properties to
13815 reduces needed changes to FlowLayout.
13816 * ToolStripOverflow.cs: Remove unused variable.
13817 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13818 use it in the layout calculations.
13820 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13822 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13823 reported in #79640.
13825 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13828 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13830 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
13831 MeasureString format, it can make button very large in some cases, it is
13832 strange but is what win32 do.
13834 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13836 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
13839 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13840 rendering, the value is based on MenuAccessKeysUnderlined.
13842 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13844 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13847 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13849 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13850 and use MenuAccessKeysUnderlined instead.
13852 2007-02-13 Andreia Gaita <avidigal@novell.com>
13854 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13855 A selected control would not get a Focus call if:
13856 - the default active control of the container is the same as
13857 the one that was selected
13858 - we are switching from one container to another
13859 Under these conditions, the container being selected already has
13860 an active_control, which is the same as the one being activated,
13861 so set_ActiveControl would always return and not send the Focus
13862 call. Fix to check if the currently active control of the container
13863 is actually focused.
13865 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
13867 * StatusStrip.cs: Implement the spring layout.
13868 * ToolStripControlHost.cs: Make sure the hosted control's visibility
13869 always matches the host.
13870 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13871 and TextAfterImage.
13873 2007-02-13 Andreia Gaita <avidigal@novell.com>
13875 * Control.cs: Code reorganization only.
13876 - Reorganize the WndProc cases so that each case has it's own handling method,
13877 to help with the no-line-numbering stack traces.
13878 - Formatting changes (it's vstudio's fault, really :p)
13880 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13882 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13883 Thread.CurrentUICulture to match DateTimePicker's (and MS)
13886 2007-02-12 Jackson Harper <jackson@ximian.com>
13889 * TextBox.cs: By default we have a non multiline document
13890 - use the multiline property instead of the internal variable
13891 * TextBoxBase.cs: Treat multiline and non multiline the same in
13893 - Use the documents multiline flag instead of tracking it ourself
13894 * TextControl.cs: Attempt at getting multiline to match MS
13895 behavior. Lines now track an offset, which is either their X or Y
13896 offset depending on whether or not we are in multiline mode.
13897 - Update all the methods to understand that lines have an X value.
13898 - Fix crash in Undo::Duplicate when empty lines are deleted.
13900 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13902 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
13903 code moved to properties PreferredHeight and PreferredWidth. It solve the
13904 all problems when preferred sizes must be recalculated. Fixes #80801.
13906 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13908 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13909 font height when compatible_text_rendering is false. Partially fix #80801.
13911 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13913 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13915 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13917 * Form.cs: Improved exception messages in ShowDialog.
13919 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13921 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13922 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13923 if not set. Fixes bug #80764. Avoid accessing current_settings field
13926 2007-02-08 Everaldo Canuto <everaldo@simios.org>
13928 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13931 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13932 public in 2.0 and for easy maintenance and dont break compatibility it is
13935 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13937 * ToolStripItem.cs: Implement using images from ImageList.
13939 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13941 * DateTimePicker.cs: Change default date-formatting culture from
13942 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13943 seems to be the way MS does it.
13945 2007-02-08 Andreia Gaita <avidigal@novell.com>
13947 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
13948 (the 6 was cut off on the right side)
13950 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13952 * Form.cs: Tell MenuStrips to close when the form is clicked.
13953 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
13954 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13955 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13956 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
13957 support for Overflow, where items that do not fit are automatically
13958 reparented to a drop down menu.
13959 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13960 Also: fixes bug #80747.
13962 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13964 * ComboBox.cs: Remove warning (unused code).
13965 * ScrollableControl.cs: Remove warning for 1.1 profile.
13967 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13969 * Form.cs: Remove a warning.
13971 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13973 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13974 'g' specifier, not documented anywhere, but seems to always show up
13975 as a single space (might have something to do with the DateTime 'g'
13976 specifier, which is the era format, but since DateTimePicker can't
13977 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13978 won't crash if the format has an unmatched quote. Now shows
13979 single-character formats correctly. Fixes #80744.
13981 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13983 * StatusStrip.cs: Stretch property needs to call base.Stretch,
13984 not this.Stretch to fix stack overflow. [Fixes bug #80760]
13986 2007-02-07 Chris Toshok <toshok@ximian.com>
13988 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13989 background color. it overwrites the background image we've
13990 already painted. Fixes #80599.
13992 2007-02-07 Chris Toshok <toshok@ximian.com>
13994 * DataGrid.cs: return immediately from Edit() when there are no
13995 columns. Fixes #80662.
13997 2007-02-07 Chris Toshok <toshok@ximian.com>
13999 * MessageBox.cs: fix #80625. don't always show the Help button in
14000 2.0. use the displayHelpButton parameter to determine if we
14001 should show it. Also, make the internal show_help field private.
14003 2007-02-07 Chris Toshok <toshok@ximian.com>
14005 * Control.cs (SetVisibleCore): check in the proposed patch for
14006 80604, and set is_visible before calling CreateControl.
14008 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
14010 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
14011 MonoInternalNote. This is added automagically by VS2005, so let's not crash
14014 2007-02-06 Everaldo Canuto <everaldo@simios.org>
14016 * MenuAPI.cs: hotkey_active internal field added, it is required because
14017 we need to know when hotkeys must be draw, before this change a keystate
14018 Navigating was used but we can have menu in navigating state without
14019 hotkeys. Fixes #80694.
14021 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14023 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14025 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14026 corresponding events and methods to be internal for 1.1 profile and
14027 public for 2.0 profile (required by SizeGrip).
14028 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14029 implicit control list). Don't set the size nor the location of the
14030 SizeGrip anymore as it's not needed.
14031 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14032 draw directly on the captured control (fixes #80656). Removed
14033 ShowGrip (it wasn't used anywhere), redraw (always true), added
14034 GetDefaultSize and GetDefaultRectangle to calculate defaults.
14035 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14036 be called from SizeGrip.
14038 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14040 * Timer.cs: Throw ArgumentException if Interval <= 0.
14042 2007-02-05 Jackson Harper <jackson@ximian.com>
14044 * TreeView.cs: We need to check scrollbar visibility when window
14045 visibility is updated, because non visible trees don't ever add
14047 * Cursor.cs: We want the override cursor to be reset to NULL when
14048 we set current cursor to the default cursor.
14050 2007-02-05 Jackson Harper <jackson@ximian.com>
14052 * TextControl.cs: Don't have crlfs when we are non multiline.
14053 - Consolidate the line position.
14055 2007-02-05 Jackson Harper <jackson@ximian.com>
14057 * X11Keyboard.cs: BACK+CTRL gets a special char code.
14059 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14061 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14062 handling LeaveNotify->NotifyUngrab in order to send
14063 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
14064 after calling XUngrabPointer, so we call WindowUngrabbed directly
14065 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
14066 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
14067 MouseCaptureChanged correctly. Also create handles if changing
14068 Capture (matches MS behaviour).
14070 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14072 * SizeGrip.cs: Make the last change 2.0 only.
14074 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14076 * SizeGrip.cs: If resizing and the capture is lost, revert any size
14077 changes to initial size (fixes #80597).
14079 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14081 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
14083 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14085 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
14086 background) and only allow dragging if enabled. This way the
14087 sizegrip can be used to fill the open square that otherwise would
14088 have been shown in the bottom right corner of ScrollableControl
14089 when ScrollableControl is not suppose to support sizing.
14090 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
14091 sizegrip is shown and enabled, and hook up with necessary events.
14093 2007-02-01 Chris Toshok <toshok@ximian.com>
14095 * DataGridTextBoxColumn.cs: clean up the
14096 GetFormattedString/GetColumnValueAtRow combination of functions.
14097 Also fix UpdateUI, and the initial state of
14098 IsInEditOrNavigateMode.
14100 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
14101 aren't supposed to scroll the textbox here, we're supposed to
14102 scroll the datagrid.
14104 2007-02-01 Chris Toshok <toshok@ximian.com>
14106 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
14107 setting the position.
14109 2007-02-01 Chris Toshok <toshok@ximian.com>
14111 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
14112 here, since the most recent focus fixes keep us from generating
14113 the Leave event when our textbox gets focus.
14114 (Edit): we should be passing null for the column style's
14115 instantText parameter.
14117 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
14119 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
14120 raised. Fixes menu text/icons not showing up in PDN.
14122 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
14124 * Control.cs: Remove code in constructor that makes every
14125 control with WS_CHILD set have initial location -1, -1.
14127 2007-01-31 Jackson Harper <jackson@ximian.com>
14129 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
14131 * XplatUIX11.cs: Give teh keyboard to teh dnd.
14133 2007-01-31 Jackson Harper <jackson@ximian.com>
14135 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
14136 - Remove some debug code.
14138 2007-01-31 Jackson Harper <jackson@ximian.com>
14140 * XplatUIX11.cs: If you set the override cursor during a grab, it
14141 should actually override the grab cursor. This comes into play
14142 when you are setting custom cursors in a DND feedback method.
14144 2007-01-31 Jackson Harper <jackson@ximian.com>
14146 * X11Dnd.cs: Add support for handling the QueryContinue and
14147 GiveFeedback events.
14148 - Cancel drag and drop actions when the escape key is clicked.
14149 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
14150 can handle the ESCAPE key.
14151 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
14152 done when dnd events are continued after the button is released.
14153 - Add a new helper method so that dnd can translate key events.
14155 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
14157 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
14158 make it more obvious what is happening.
14160 2007-01-30 Jackson Harper <jackson@ximian.com>
14162 * XplatUIX11.cs: Don't break when handling button release in drag
14163 and drop operations. We need that BUTTONUP message to get through
14164 so capture is released.
14165 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
14166 this is handled automatically when the mouse is down.
14168 2007-01-30 Jackson Harper <jackson@ximian.com>
14170 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
14171 is closed, so we need to make sure that we aren't changing the
14172 dialog result when the OK (Open or Save) button has been clicked
14173 and we are closing the window ourselves. Note we don't need to
14174 worry about the cache being written in this case, because it was
14175 already done in the previous FilOk call.
14177 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14179 * DateTimePicker.cs: Remove a warning.
14180 * ComboBox.cs: Remove a couple of warnings.
14182 2007-01-29 Chris Toshok <toshok@ximian.com>
14184 * XplatUIX11.cs: don't crash, and remove the icon if the user has
14185 set one, if SetIcon is passed a null icon.
14187 2007-01-29 Andreia Gaita <avidigal@novell.com>
14189 * TextBox.cs: Redraw when the password characters changes
14190 * TextControl.cs: Check if textbox has a password char and draw
14191 a line of password chars instead of the text in the line. LineTag gets
14192 an extra Draw() method which allows document.Draw to override the text
14193 that will be drawn. Removes 1024 char limitation on length of passworded
14196 2007-01-29 Jackson Harper <jackson@ximian.com>
14198 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
14199 single chars is not.
14201 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
14203 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14204 one pixel. Fix a StackOverflowException caused by an overload wrongly
14207 2007-01-26 Everaldo Canuto <everaldo@simios.org>
14209 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14210 also remove ProcessArrowKey and put the code inside ProcessKeys.
14212 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
14214 * PaddingConverter.cs: Added.
14216 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14218 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14219 ShowPanels is false (fixes #80600). Only draw up to 127 characters
14220 of text (fixes #80601). For panels clip the text to draw to the
14221 panel (fixes #80603).
14223 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14225 * ComboBox.cs: Fixed implementation of ResetText.
14227 2007-01-25 Jackson Harper <jackson@ximian.com>
14229 * TextControl.cs: For the last char of a line we need to use the
14230 line size, not that chars width, since it won't actually be
14231 computed since the right side of a char is based on the start of
14232 the left side of the next char, and the next char does not exist.
14234 2007-01-25 Chris Toshok <toshok@ximian.com>
14236 * Splitter.cs: fix the new unit tests, and reindent some switch
14239 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14241 * ComboBox.cs: Implemented 2.0 methods and events.
14242 * TextBoxBase.cs: Added OnTextUpdate, so that
14243 ComboBox.ComboTextBox can inform ComboBox of it.
14245 2007-01-25 Jackson Harper <jackson@ximian.com>
14247 * TextControl.cs: Respect ShowSelection when deciding whether or
14248 not to display the caret, this allows comboboxes to have carets
14249 when the combotextbox does not have focus.
14251 2007-01-25 Jackson Harper <jackson@ximian.com>
14253 * TextControl.cs: Add a Suspend/Resume for updating, basically the
14254 same as the Suspend/Resume for recalc, except this will do actual
14256 - New Undo manager, works much like the MS version.
14258 * TextBoxBase.cs: The Cut operation is undoable.
14260 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14262 * TextBoxBase.cs: Don't antialias text. Makes it look way better
14263 on Windows (no difference on Linux).
14265 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14267 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14268 we don't want to activate any windows. Fixes #79433.
14270 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
14272 - ButtonBase.cs: Fix capitalization of parameter: disposing.
14275 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
14278 - Move to using System.ComponentModel.EventHandlerList
14279 - Replace Refresh with Invalidate
14280 - Clear the mime filecache on closing
14281 - Some other memory reducing work. After beeing closed FD now uses
14282 only about 300 KB for the fdo mime stuff plus the memory of the
14284 * Mime.cs: Changed coding style and removed unnecessary commented
14285 code. Some more memory memory reducing work.
14287 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14289 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14290 a few other missing 2.0 properties.
14291 * Theme.cs: Added DrawFlatStyleComboBox.
14292 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14294 2007-01-24 Chris Toshok <toshok@ximian.com>
14296 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14297 wake_waiting flag, not just when there's data to be read. if we
14298 don't, then future wakeup's won't reach us and we'll be doomed to
14299 wait for the entire 1 second timeout forever (unless there are X
14302 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14304 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14305 until you pass Items.Count, not Items.Count - 1 like 1.1.
14307 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
14309 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14311 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14313 * ToolStripContainer.cs: The recent Dock fix exposed that I was
14314 adding the panels in the wrong order.
14316 2007-01-24 Jackson Harper <jackson@ximian.com>
14318 * TextBoxBase.cs: When we move the caret we also need to move the
14319 selection, this fixes some random crashing after doing select
14320 text, unselect, delete a char, paste.
14322 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14324 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14326 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14328 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14329 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
14330 * ToolBar.cs: Force redraw in BackgroundImageChanged.
14332 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14335 - Implement support for vertical toolbars. Fixes #80539;
14336 - Call LayoutToolBar when resize, it fix some other problems in layout.
14337 - Rename requested_height to requested_size, as we can have width on it
14338 when toolbar is vertical.
14339 - Create a private property "Vertical" that uses Dock to verify when
14340 toolbar is vertical or not.
14341 - Set ControlStyles when change Dock property.
14342 - Refactory in LayoutToolBar to have better variables names and to support
14344 - Fixes default value for ButtonSize when button count is equal zero, size
14345 must be (39, 36) test case writed.
14347 2007-01-23 Chris Toshok <toshok@ximian.com>
14349 * Control.cs: fix the checks so that they work correctly for mdi
14352 2007-01-23 Chris Toshok <toshok@ximian.com>
14354 * Control.cs: ControlCollection seems to have super-secret
14355 abstraction breaking knowledge of Mdi containers. allow MdiClient
14356 to add toplevel controls.
14358 2007-01-23 Chris Toshok <toshok@ximian.com>
14360 * Control.cs: throw an ArgumentException if a toplevel control is
14361 added to our control collection from ControlCollection.Add, as
14362 well as from ControlCollection.IList.Add. This fixes the
14363 ControlSetTopLevelTest.TestTopLevelAdd unit test.
14365 Also, in ControlCollection.IList.Add, don't through an
14366 ArgumentNullException, throw an ArgumentException, when value ==
14367 null. This matches MS.
14369 2007-01-23 Chris Toshok <toshok@ximian.com>
14371 * BindingSource.cs: initial, incomplete, implementation of
14374 2007-01-23 Jackson Harper <jackson@ximian.com>
14377 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14378 that I can fix a broken unit test (TextBoxTest::ClearUndo)
14380 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14382 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14384 2007-01-23 Andreia Gaita <avidigal@novell.com>
14386 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14387 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14388 IndexOfKey() for 2.0
14390 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14392 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14393 to prevent it from changing z-order.
14394 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14395 leave UI updates in MdiWindowManager.
14396 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14397 1 sized (NC handling goes weird on Linux otherwise).
14398 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14399 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14400 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14401 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14402 and SetWindowState(s) to allow for changing the size of an activated child
14403 before activating it (reduces a lot of flicker).
14405 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14407 * Form.cs: Changing FormBorderStyle has different semantics based
14408 on whether the Form is visible or not. If not visible, don't change
14409 the Size. But InvalidateNC needs to be called to force the window
14410 to pick up the changes and redraw itself. [Fixes bug #80574]
14412 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14415 * ContainerControl.cs: ProcessCmdKey.
14416 * ErrorProvider.cs: new constructor.
14417 * Form.cs: fix AutoValidateEvent compiler warning.
14418 * Label.cs: fix OnAutoSizeChanged compiler warning.
14419 * MenuStrip.cs: fix CanOverflow compiler warning.
14420 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14421 * TextBox.cs: Dispose.
14422 * ToolStrip.cs: CanOverflow, re-enable double buffering.
14423 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14424 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14425 * ToolStripItem.cs: Overflow, RightToLeft properties.
14427 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14429 * Form.cs: Move the layout of the main form to MdiWindowManager.
14430 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14431 do a layout of the main window to update MdiClient's client area to
14432 the right area. Fixes #80533. Remove the calculation of nc size,
14433 it was just wrong and the correct one is the same as for
14434 InternalWindowManager.
14436 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
14438 * Control.cs: Setting Anchor or Dock needs to reset the other
14439 to its default. [Fixes bug #80556]
14441 2007-01-20 Chris Toshok <toshok@ximian.com>
14443 * CheckedListBox.cs: class status changes.
14445 * ScrollableControl.cs: same.
14447 * RichTextBox.cs: same.
14449 * ContainerControl.cs: same.
14451 * ListView.cs: same.
14453 * NotifyIcon.cs: same.
14455 * MenuStrip.cs: same.
14457 * RadioButton.cs: same.
14459 * CheckBox.cs: same.
14461 * PrintPreviewDialog.cs: same.
14465 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
14467 * TreeNode.cs: Apply Alan's patch for Name property.
14469 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14471 * Form.cs: Implemented SizeGripStyle.
14472 * SizeGrip.cs: Check for minimum and maximum size for the
14473 control being resized and only resize if size has actually
14476 2007-01-19 Chris Toshok <toshok@ximian.com>
14478 * DataGridColumnStyle.cs: stop setting _readonly in the
14479 PropertyDescriptor setter. fixes a unit test failure.
14481 also, rename ParentReadOnly to TableStyleReadOnly, and have it
14482 just consult our table style (if we have one). We don't need to
14483 consult the datagrid readonly attribute because that's passed in
14484 as the _ro arg to Edit. this simplifies things a little.
14486 * DataGrid.cs: use CurrentColumn instead of
14487 current_cell.ColumnNumber just to simplify some of the code.
14489 switch the order of some things in the CurrentCell setter to keep
14490 the previous cell from getting a textbox again -
14491 EnsureCellVisibility causes scrolling to happen, which calls Edit.
14492 So we need to set the new cell before calling it.
14494 call Edit in OnEnter, as does Microsoft.
14496 also, make sure the current table style isn't the one we create
14497 initially when checking to see if it's different than the one
14498 we're setting it to in BindColumns (this fixes #80421).
14500 * GridTableStylesCollection.cs: table styles can have "" for a
14501 mapping name. part of the fix for #80421.
14503 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14504 Edit significantly.
14506 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14508 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14509 and less GDI object leaky-er.
14511 2007-01-18 Andreia Gaita <avidigal@novell.com>
14513 * LinkLabel.cs: Add opaque control style
14515 2007-01-18 Jackson Harper <jackson@ximian.com>
14517 * TextControl.cs: Calculate width properly.
14518 - Don't store the tag's X offset, this can be figured out very
14520 - When getting the caret tag make sure to get the last empty tag.
14522 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14524 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14527 * Control.cs: Color.Empty shouldn't count for previous transparent
14530 2007-01-18 Jackson Harper <jackson@ximian.com>
14534 * TextControl.cs: Starting to merge in some pieces of my older
14535 undo work. Basically just some slight cleanup of the undo API.
14537 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14539 * TrackBar.cs: Fix signature of RightToLeftLayout.
14540 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14541 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14542 * Application.cs: Implemented UseWaitCursor.
14544 2007-01-18 Jackson Harper <jackson@ximian.com>
14546 * TextControl.cs: We can't skip tags if any part of the tag is
14549 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14551 * ContainerControl.cs: Override OnLayout.
14553 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14555 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14557 * ContextMenuStrip.cs: Make sure context menu is shown on top of
14560 2007-01-18 Chris Toshok <toshok@ximian.com>
14562 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14563 (leftover from the container_selected days, I'd wager). fixes bug
14566 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14568 * Control.cs: Apply patch from George to fix the new testcase on
14569 bug #80451. We can't just check for Color.Transparent, we need
14570 to check if the back color's alpha channel is < 255.
14572 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14574 * Form.cs: Move setting show_icon = true to before the constructor
14575 so that the base constructor has that information when it calculates
14576 the form's size. Was causing forms to be (6, 6) bigger than they
14577 were supposed to be. Thanks for catching this Rolf!
14579 2007-01-18 Jackson Harper <jackson@ximian.com>
14581 * TextControl.cs: When replacing a selection we need to invalidate
14582 from the initial selection start, because selection start is moved
14583 to the end of the replacement.
14585 2007-01-18 Andreia Gaita <avidigal@novell.com>
14587 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14589 2007-01-18 Chris Toshok <toshok@ximian.com>
14591 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14594 2007-01-17 Everaldo Canuto <everaldo@simios.org>
14596 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
14597 layout methods and properties from ToolBarButton must be available
14598 into ToolBarButtonInfo.
14600 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14602 * Control.cs: If the control has a transparent background, we
14603 need to refresh it when it moves and when it's parent's background
14604 image changes. [Fixes bug #80451]
14606 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14608 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
14610 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14612 * XplatUIWin32.cs: Implement proper double buffering for Windows.
14613 [Fixes bug #80447, and probably speeds up things as well]
14615 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14617 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14618 * XplatUIWin32.cs: We need to recalculate NC size after changing
14619 window style to toolwindow (otherwise the client rectangle will be
14620 3 pixels to small for some reason).
14621 * MdiWindowManager.cs: Revert NC size calculations to match how
14622 they are calculated only based on window styles (to match
14623 Win32AdjustWindowRectEx, since otherwise when setting size or
14624 location, Control will call Win32AdjustWindowRectEx to update client
14625 size, which would provoke a paint, then we'd get a NCCALCSIZE and
14626 calculate a different value of client size causing another paint
14628 * InternalWindowManager.cs: When moving or resizing a window only
14629 update size or location if they actually changed.
14630 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14631 (seems to match Windows behaviour better). Cleaned up
14632 ManagedWindowDecorations to draw what's needed and nothing else
14633 (was drawing borders and lines where they shouldn't be)
14634 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14635 (style = 0xFFFF) and takes into account caption height when
14636 calculating window rectangle.
14638 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14640 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
14641 can be added to toolbar multiple times, we need to maintain a list of
14642 button information for each positions.
14644 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14646 * ToolBar.cs: Some small stetic changes.
14648 2007-01-16 Jackson Harper <jackson@ximian.com>
14650 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14651 that allow us to have nested recalc = false blocks.
14652 - Add paste support for images in the RichTextBox
14653 * RichTextBox.cs: flush the text after the color is changed, so
14654 the change takes effect.
14655 - Use SuspendRecalc
14656 - Some extra debugging info
14657 * TextControl.cs: Tags no longer track their length, it is just
14658 computed from the next tags length, this makes things a little
14659 simpler and reduces places that we have to track length changes.
14660 - Refactored the linetag class a little so we could make it
14661 a base class for different kinds of tags
14662 - Created a image tag, a tag that can have a single image inserted
14664 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14665 that we can call suspend multiple times.
14666 - Add some debugging methods
14668 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14670 * MdiClient.cs: Add ActivatePreviousChild for
14671 mdi child window navigation.
14672 * Form.cs: Use MdiClient.ActivateNextChild/
14673 ActivatePreviousChild instead of Form.SelectNextControl
14674 to select the next/previous child since
14675 SelectNextControl doesn't do it in the same order
14676 as mdi children should do it.
14678 2007-01-16 Chris Toshok <toshok@ximian.com>
14680 * Control.cs: remove container_selected field.
14682 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14684 * MdiClient.cs: Update main form's ActiveChild when
14685 updating keyboard focus for the mdi child.
14687 2007-01-16 Jonathan Pobst <jpobst@novell.com>
14689 * Control.cs: PreferredSize fix.
14691 * Form.cs: Add several 2.0 events, properties, and methods.
14693 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
14695 * Form.cs: Provide meaningful message when MdiParent is assigned a
14696 Form that is not an MdiContainer.
14698 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14700 * MdiClient.cs: Update main form's ActiveChild when
14701 activating a mdi child.
14703 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14705 * MdiWindowManager.cs: Fix NRE when merging menus and main form
14706 doesn't have a menu.
14708 * Form.cs: Request NCRecalc after creating a mdi child window.
14709 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
14710 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14712 * MdiClient.cs: Add new method SendFocusToActiveChild that either
14713 sends keyboard focus to the active child, or to the MdiClient
14714 if there are no child forms.
14716 2007-01-15 Chris Toshok <toshok@ximian.com>
14718 * ListView.cs: drop the *Internal overrides, just do our work in
14719 ItemControl's WndProc instead.
14721 * UpDownBase.cs: a few large changes. Fix up the Selectable state
14722 of the various controls, and forward the events properly (in the
14723 same manner as MS) from the textbox to the UpDown. Also the
14724 ActiveControl of the UpDownBase gets set properly now. Finally,
14725 we don't call UpdateEditText from the ctor. Fixes bug #79957.
14727 * NumericUpDown.cs: set Text in the ctor.
14729 * DomainUpDown.cs: call UpdateEditText in the ctor.
14731 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14732 so even a Selectable = false textbox can be focused if you click
14735 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
14736 just add their handling in their respective WndProc's. Also add
14737 an explicit FocusInternal method that doesn't consult CanFocus
14738 before calling Select(this).
14740 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14741 do our work in WndProc instead.
14743 * TabControl.cs: same.
14745 * ComboBox.cs: same.
14747 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14749 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14752 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14755 * ThemeWin32Classic.cs: Don't draw the item text outside
14756 item bounds in Details view, as well as use trimming.
14759 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14761 * Form.cs: Implement Form.ShowIcon.
14763 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14764 null, which when combined with the DlgModalFrame window style removes
14765 the icon from the title bar.
14767 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14769 * Control.cs: Call OnMouseClick after OnClick. (2.0)
14771 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14773 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14774 menu when mdi child windows theres a menu, uses insert to get icon
14775 at first position. Partially fix #80006.
14777 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14779 * Clipboard.cs: Implement 2.0 methods.
14781 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14783 * Menu.cs: Implement Insert method of MenuItemCollection class
14786 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14788 * ListView.cs: Implement 2.0 FindItemWithText method.
14790 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14792 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14793 to calculate menu bar size. Fixes #80290.
14795 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14797 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14799 2007-01-11 Chris Toshok <toshok@ximian.com>
14801 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14804 2007-01-11 Chris Toshok <toshok@ximian.com>
14806 * LinkLabel.cs: make sure to call base.Select in our Select method
14807 if it turns out we're going to be selected (i.e. if we have a link
14808 that is going to receive focus). That way our container's
14809 ActiveControl is updated properly.
14811 2007-01-11 Chris Toshok <toshok@ximian.com>
14813 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14814 they have 1 or more links. this fixes the crash gert reported.
14816 2007-01-11 Andreia Gaita <avidigal@novell.com>
14818 * ContainerControl.cs: Remove ContainerSelected flag, not needed
14821 * Control.cs (Controls.Add): Check if control to be added to the collection
14822 is a top level control, and throw an ArgumentException if it is.
14823 Remove ContainerSelectedFlag, not needed anymore.
14825 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14826 top most control doesn't activate the form. This fixes a problem in the
14827 MessageBox, where the default button wouldn't get focus because the form
14828 was activated before being Loaded - when the Owner is set, SetTopMost is
14829 called, and it would activate it.
14831 2007-01-11 Jonathan Pobst <jpobst@novell.com>
14833 * Button.cs: When clicked and setting the parent form's DialogResult,
14834 use FindForm instead of Parent, since parent could be a container
14835 control and not the Form. Fixes bug #80495.
14837 2007-01-10 Chris Toshok <toshok@ximian.com>
14839 * Form.cs: move the call to SendControlFocus into the same
14842 2007-01-10 Chris Toshok <toshok@ximian.com>
14844 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14845 It breaks in the face of the new ActiveControl stuff, and should
14848 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14849 activecontrol's focus if it's not already set, after we set
14850 ActiveControl, but before we call OnActivated. Re-fixes #79667
14851 after the previous focus/active control fixes regressed it.
14853 * Control.cs: reindent some code.
14855 2007-01-10 Chris Toshok <toshok@ximian.com>
14857 * Splitter.cs: clearing some outstanding changes from my tree.
14858 Replace all accesses (not writes) to the internal dock_style field
14859 with the Dock property.
14861 2007-01-10 Chris Toshok <toshok@ximian.com>
14863 * Control.cs: make FireEnter, FireLeave, FireValidating, and
14864 FireValidated virtual.
14866 * Form.cs: override and don't chain up calls to FireEnter and
14869 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14871 * ListView.cs: Add more text padding space when using
14872 auto resize for columns (the previous value didn't work fine).
14874 * ThemeWin32Classic.cs: Update text position inside columns,
14875 to match the appeareance of .Net.
14877 * ColumnHeader.cs: When using auto resize, only the Width should
14878 depend on the sub items, not the Height. Also, set width after
14879 auto resizing (the value of Width should never remain as -1 or -2).
14881 2007-01-10 Chris Toshok <toshok@ximian.com>
14883 * Application.cs: fix compilation errors when debug is enabled.
14885 2007-01-10 Chris Toshok <toshok@ximian.com>
14887 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14888 add some nice ascii art pictures and explanation of the process).
14889 (GetMostDeeplyNestedActiveControl): new utility function we need
14890 because our ActiveControl can refer to a child container with its
14893 * Form.cs (OnActivated): remove the call to SelectActiveControl
14894 from here, since you can override this method and not chain up,
14895 and winforms still sets the active control.
14896 (OnCreateControl): also remove the unnecessary SelectActiveControl
14898 (WndProc): it's actually called from the WM_ACTIVATE block, just
14899 before calling OnActivated.
14901 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14902 inside the else. the ActiveControl setter will end up setting
14903 focus on @control. This keeps us from setting it again (and
14904 generating an extra LostFocus/GotFocus pair).
14905 (Select (bool, bool)): reindent.
14907 2007-01-10 Jonathan Pobst <jpobst@novell.com>
14909 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14910 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14911 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14912 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14913 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14914 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14915 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14916 ToolStripTextBox.cs: Another wave of corcompare work.
14918 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14920 * ColumnHeader.cs: Implement 2.0 AutoResize method using
14921 the Width property.
14923 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14924 methods by callling Column.AutoResize method on columns.
14926 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14928 * Control.cs: Provide proper implementations of PreferredSize
14929 and GetPreferredSize (2.0).
14931 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14933 * Form.cs: Remove one character (!) to make my previous OnClosing
14934 stuff work for modal windows like MessageBox.
14936 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14939 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14940 ListView.Columns to get the last displayed column. Fixes #80452.
14942 2007-01-09 Everaldo Canuto <everaldo@simios.org>
14944 * Label.cs, LinkLabel.cs: Source code identation fixes.
14946 2007-01-08 Everaldo Canuto <everaldo@simios.org>
14948 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14949 we dont need to invalidate only borders because when we invalidate four
14950 border lines the invalidate's generates a complete redraw of button,
14951 because it now invalidate a complete rect some other redraws operations
14952 are fixed. Fixes #80196.
14954 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14955 Remove ToolBarInvalidateEntireButton as it is not used.
14957 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14959 * Form.cs: Make sure that both OnClosing and OnFormClosing are
14960 called for 2.0 profile.
14961 * CloseReason.cs: Make class internal for 1.1.
14963 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14965 * ToolStripManager.cs: Implement FindToolStrip functionality.
14966 * ToolStrip.cs: Register and unregister with ToolStripManager.
14968 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14970 * Control.cs: This was messy. 2.0 moves much of ControlCollection
14971 to ArrangedElementCollection. Implemented this with as few #if's as
14972 possible (which is still too many).
14974 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14976 * Control.cs: Implement SizeFromClientSize() [2.0].
14978 2007-01-07 Everaldo Canuto <everaldo@simios.org>
14980 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14981 use Theme.BorderSize to calculate area instead of static value 1,
14982 by the way use new BorderStaticSize instead Border3DSize when
14983 border_static is true. Fixes #79537.
14985 * XplatUIOSX.cs: Fix call to GetClientRectangle.
14987 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14990 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14992 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14994 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14996 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14997 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15000 - border_static field added, it will used to define when a control
15001 theres 3D border but it must be static (thin).
15002 - In GetWindowRectangle use Theme.BorderSize to calculate area
15003 instead of static value 1, by the way use new BorderStaticSize instead
15004 Border3DSize when border_static is true.
15006 * XplatUIX11.cs, XplatUIOSX.cs:
15007 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15009 * Theme.cs: BorderStaticSize field added.
15011 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15013 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15015 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15017 * Control.cs: Under InternalBorderStyle call RecreateHangle to
15018 mimic same behavior than win32 that set border only in CreateParams,
15019 it fix problems under CreateParams overrides. Fix #79442 and partial
15022 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15023 of thi control you must call recreate handle.
15025 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15026 need to do anything as RecreateHangle will take care about borders.
15028 2007-01-05 Mike Kestner <mkestner@novell.com>
15030 * ListView.cs: hack to eliminate Lost/Got focus notifications on
15031 cycles between the ItemControl and parent. Fixes #80388.
15033 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
15035 * Control.cs: Lazy init layout engine. Do not directly use
15036 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15038 2007-01-05 Chris Toshok <toshok@ximian.com>
15040 * DataGrid.cs: don't forceably rebind columns in SetDataSource
15041 unless our list manager has changed (i.e. unless we have reason to
15042 believe our columns have changed). Fixes #80422.
15044 also, disable the call do BindColumns in
15045 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
15046 1.1 the event isn't raised in response to a column addition on a
15049 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15051 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15052 that inheritors can not call it if they choose. Fixes bug #80456.
15054 2007-01-05 Andreia Gaita <avidigal@novell.com>
15056 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
15057 doesn't blow up with a null exception on marshalling.
15059 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15061 * Control.cs: Implement several 2.0 protected properties and methods.
15062 Ensure that all necessary events are being called when properties
15065 2007-01-05 Mike Kestner <mkestner@novell.com>
15067 * ListView.cs: implement PgUp/PgDn for Details view. Also
15068 fixes First/LastVisibleIndex to use the item_control.ClientRect
15069 instead of the parent control. Fixes #80378.
15071 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
15073 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
15074 determine whether to use yard-pound or not (bug #78399).
15076 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15078 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
15079 problems. So it is time to bring back the old popupbutton colors.
15081 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15084 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
15085 property by using the internal information of the
15086 columns order in ListView.
15088 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
15090 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
15091 Add 2.0 Tag properties.
15093 * LinkArea.cs: Add 2.0 ToString method.
15095 2007-01-03 Chris Toshok <toshok@ximian.com>
15097 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
15098 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
15099 when we're editing, which fixes #80047.
15101 2007-01-03 Chris Toshok <toshok@ximian.com>
15103 * Form.cs: apply patch contributed by Dominik Seichter. fixes
15106 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
15108 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
15109 property and implementation.
15111 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
15112 for MdiWindowListItem property.
15114 * ToolStripDropDown.cs: Don't consider hidden menu items while
15115 laying out the menu.
15117 2007-01-03 Andreia Gaita <avidigal@novell.com>
15119 * SendKeys.cs: window handle is not needed in win32, so just
15120 get the active window for X after parsing keys and don't use
15121 it when building the message; it is passed by parameter to the
15122 Xplat method and used there to build the message instead. Also,
15123 wait for events to be processed on SendWait, as opposed to Send,
15124 which doesn't wait :) Playing with threads and Send() completely
15125 hangs on ms.net, only SendWait() works.
15128 X11Display.cs: Check for valid window handle.
15130 2007-01-03 Jackson Harper <jackson@ximian.com>
15132 * TextControl.cs: Need to prevent wrap calculations when replacing
15133 text (this was there before i removed it accidently).
15134 - Don't update the cursor during the positioning, just set it to
15135 selection_start at the end of the operaion.
15137 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15140 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
15142 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15144 * MonthCalendar.cs: Added Click and DoubleClick events again,
15145 but this time they only hide Control's Click and DoubleClick.
15147 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
15149 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
15150 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
15152 2007-01-02 Jackson Harper <jackson@ximian.com>
15154 * TextBoxBase.cs: We move the caret with the split now, so we
15155 don't need to explicitly move the caret after splitting. This
15156 fixes the caret bumping down an extra line on Enter.
15158 2007-01-02 Miguel de Icaza <miguel@novell.com>
15160 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
15163 * ScrollableControl.cs: Add Scroll event.
15165 2007-01-02 Mike Kestner <mkestner@novell.com>
15167 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
15168 to fix all hdr height padding codepaths. Fixes #80207.
15170 2007-01-02 Chris Toshok <toshok@ximian.com>
15172 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15173 setting it to the Control defaults anyway, and it being after the
15174 Dock set was screwing up layout.
15175 (set_Dock): don't short circuit out of setting base.Dock. Also,
15176 no need to call UpdateStatusBar here, as it'll be re-layed out if
15179 2007-01-02 Mike Kestner <mkestner@novell.com>
15181 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15182 to header height for width == -1. Fixes the rest of #80207.
15184 2007-01-02 Mike Kestner <mkestner@novell.com>
15186 * ListView.cs: rework the mouse event forwarding everaldo added
15187 to translate the coordinates to the parent control not
15188 raise the parent events until after we've done our work. Hover
15189 needs more work, in the case where HoverSelection is on, because
15190 the item control receives more than one MouseHover per Enter
15191 event, so we need to ensure only the "first" hover gets forwarded.
15192 Opening a minor bug for that.
15194 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
15196 * CheckedListBox.cs: Fixed SelectionMode to match MS.
15197 * ListControl.cs: Implemented AllowSelection property. Removed extra
15199 * ListBox.cs: Implemented AllowSelection property.
15201 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15203 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15204 SelectedItem, it prevent for errors when you must disable item
15205 before perform click. Fixes #80409.
15207 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15209 * MenuAPI.cs: Prevent second level and beyond submenus to close
15210 until first level when move out side of popup.
15212 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15215 - Down submenu positin in three pixels.
15216 - Closes sub menu when mouse leaves from menu. Fixes #80402.
15218 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15220 * ThemeWin32Classic.cs:
15221 - Fix popup menu size adding one pixel on the top.
15222 - Down menu item border from two to one to mimic Win32.
15223 - Some source identation fixes.
15225 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15227 * ThemeWin32Classic.cs: Use float numbers to calculate size and
15228 position of menu arrows, it fix wrong arrow size.
15230 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15232 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15233 instead of line, it simplify draw operation and fix it using 3D
15234 borders to mimic Win32.
15236 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
15238 * StatusStrip.cs: Add implementation of the sizing grip.
15240 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15241 StatusStrip rendering.
15243 2006-12-31 Chris Toshok <toshok@ximian.com>
15245 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
15246 override the layout style (anchor/dock) of the control. assign to
15247 Dock instead. Fixes bug #80416.
15249 * ToolStrip.cs: same.
15251 2006-12-31 Andreia Gaita <avidigal@novell.com>
15253 * ContainerControl.cs: Use ContainerSelected flag to check if
15254 a Container is directly selected, or if Select is called on a
15255 non-container. If a container is directly selected, focus events
15256 should not be raised.
15257 Apply #80411 patch to throw exception on set_ActiveControl if
15258 control is the same as the current one.
15260 * Control.cs: Use ContainerSelected flag (see above).
15261 Add invalidation check to raise event but not invalidate if
15263 Apply #80411 patch.
15266 2006-12-31 Everaldo Canuto <everaldo@simios.org>
15268 * MenuAPI.cs: After click, dont close popup menu when menu is
15269 ContextMenu. Fixes #80399.
15271 2006-12-30 Chris Toshok <toshok@ximian.com>
15273 * ContainerControl.cs: make sure we throw the exception if the
15274 container control doesn't contain the control we're setting
15277 2006-12-30 Chris Toshok <toshok@ximian.com>
15279 * Control.cs (SetTopLevel): fix the exception raised by
15280 SetTopLevel for child controls.
15281 (set_Anchor): call UpdateDistances when setting the anchor type.
15282 This fixes bug #80336.
15284 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15286 * Theme.cs: For now, revert back to 8pt font.
15288 2006-12-29 Everaldo Canuto <everaldo@simios.org>
15290 * MenuAPI.cs: Set popup as active when open a ContextMenu.
15293 2006-12-29 Chris Toshok <toshok@ximian.com>
15295 * Control.cs: reorder the code in OnResize to give the same event
15298 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
15300 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15301 TileHorizontally and TileVertically.
15303 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
15305 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15306 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15307 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15308 Corrected copyright and email adress.
15310 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15312 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15313 of Exception in FullPath property if no TreeView is associated with
15316 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15318 * Theme.cs: Marked default_font as private, and initialize it in ctor
15319 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15321 * ThemeGtk.cs: Removed default_font intialization.
15322 * ThemeWin32Classic.cs: Removed default_font initialization.
15324 2006-12-28 Chris Toshok <toshok@ximian.com>
15326 * Control.cs: fix a couple of place where we were creating handles
15327 more aggressively than we should be. Fixes ControlRefresh unit
15330 2006-12-28 Chris Toshok <toshok@ximian.com>
15332 * Control.cs: contrary to what the comment said, Control.Dock does
15333 not supercede Control.Anchor - the last one you assign to decides
15334 the layout behavior. so we need to keep track of which was the
15335 last set. Also, fix some of the affected property arguments in
15336 PerformLayout calls, and remove an redundant parent.PerformLayout
15339 Add a VisibleInternal property, which returns is_visible. We
15340 can/should get rid of all the usage of this field elsewhere.
15342 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15344 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15345 control style, not DoubleBuffer. Added UseDoubleBuffering property
15346 that indicates whether doublebuffering is enabled and supported.
15347 (comment from and code based on Gert Driesen's patch in #80324).
15350 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15352 * Control.cs: Fixed a NRE.
15354 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15356 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15359 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15361 * Control.cs: Rewrote double buffering, now a seperate
15362 class handles all the buffering, no Graphics is disposed of
15363 until the painting is finished (earlier implementation
15364 would crash if the control was resized in the OnPaint,
15365 since it would cause the double buffer to be recreated
15366 and the old one disposed), a separate Graphics is
15367 created for every paint (MS behaviour and anyways the state
15368 of the Graphics would have to be saved and restored otherwise)
15370 * XplatUIDriver.cs:
15372 * XplatUI.cs: Added and implemented GetOffscreenGraphics
15373 so that we can get the graphics for the back buffer without
15374 having to create a new one and remove the offscreen_dc parameter
15375 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15377 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15379 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15380 Also make virtual all the key-related methods.
15382 * ListViewItem.cs: Make virtual the key related methods for
15383 ListViewSubItemCollection.
15385 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15389 * ThemeWin32Classic.cs:
15390 * Theme.cs: Initial support for Tile view in ListView,
15391 as well as the implementation of the required bits for it (Item
15394 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15396 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15397 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15398 Provide useful exception messages.
15400 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15402 * TrackBar.cs: Remove a warning.
15403 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15404 when used by DateTimePicker, fixes #80287. This also requires that
15405 MonthCalendar implements it's own drawing for the yearly updown control,
15406 otherwise the Capture tracking would be too complicated. Removed the Click
15407 and DoubleClick events (according to comments they were hiding the base class
15408 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15409 raise these events, not that they cannot be raised. It is possible to raise
15410 them by calling OnClick and OnDoubleClick). Added two internal fields in
15411 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15412 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15413 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15414 event, no longer needed.
15416 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15418 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15419 true if new value differs from current value.
15421 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15423 * Control.cs: ControlCollection.Count must be public. Fixed build of
15426 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15428 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15430 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15432 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15434 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15436 * Control.cs: Invalidates control including when Width and Height is
15437 equal zero or is not visible, only Paint event must be care about
15438 this. Fixes #79913.
15440 2006-12-26 Chris Toshok <toshok@ximian.com>
15442 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15443 more corcompare work.
15445 * DataGridView.cs: fix compiler warning.
15447 * ColumnHeader.cs: some corcompare work, and also take the
15448 opportunity to make the internal fields private.
15450 * ListView.cs: fix the fallout from the above field change.
15452 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15454 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15455 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15456 ToolStripTextBox.cs: Fixes to events and corcompare.
15458 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15460 * ListView.cs: Call owner.OnMousexx event to propagate events from
15461 item to ListView. Fixes #80367.
15463 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15465 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15466 if value is less than one. ItemHeight should not be set to a value
15467 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
15468 Removed extra tabs.
15470 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15472 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15473 * ToolStripStatusLabel.cs: Add Spring for Moma.
15475 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15477 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15478 Fixed code formatting. Removed debug code.
15479 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15481 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15483 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15484 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15485 ArgumentOutOfRangeException if ColumnCount is negative. In
15486 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15487 less than 4 or higher than 32768.
15488 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15489 Fixed FormatProvider to return CurrentCulture unless explicitly set.
15490 Fixed IsFormatProviderDefault to return true if FormatProvider has
15491 not been explicitly set.
15493 2006-12-25 Chris Toshok <toshok@ximian.com>
15495 * Application.cs: add a couple of 2.0 events.
15497 2006-12-25 Chris Toshok <toshok@ximian.com>
15499 * Control.cs: fix compiler warning.
15501 * AxHost.cs: corcompare fixes.
15503 * ApplicationContext.cs: corcompare fixes.
15505 2006-12-25 Chris Toshok <toshok@ximian.com>
15507 * Control.cs: only update dist_right/dist_bottom if the
15508 width/height is > 0. this fixes anchored controls being resized
15509 smaller until they disappear and then resized larger again.
15511 2006-12-25 Chris Toshok <toshok@ximian.com>
15513 * Control.cs: a couple of changes. Remove dist_left and dist_top,
15514 since they're nothing more than X/Left and Y/Top, respectively.
15516 Also, move back to a per-control Bitmap/Graphics for
15517 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15518 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
15521 2006-12-25 Miguel de Icaza <miguel@novell.com>
15523 * MessageBox.cs: Implemented overload that takes a new "bool
15524 displayHelpButton" by adding a new internal field "show_help".
15525 When clicked this will raise the HelpRequested on the owner or the
15528 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15529 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15531 * ListView.cs: Add support ColumnWidthChanged and
15532 ColumnWidthChanging.
15534 Add support for ColumnReordered event.
15535 (ReorderColumn): Add NET_2_0 specific support for cancelling the
15538 Very nice codebase!
15540 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15542 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15544 2006-12-24 Chris Toshok <toshok@ximian.com>
15546 * GridTablesFactory.cs: 2.0 corcompare work.
15548 * ToolStripContainer.cs: add "override" to
15549 ContextMenuStripChanged, and remove the local event object.
15551 * ToolStripDropDown.cs: same with a couple properties.
15553 * ToolStripPanel.cs: same with AutoSizeChanged event.
15555 * TextBoxBase.cs: add "override" to AutoSizeChanged.
15557 * Form.cs: add the remaining 2.0 events, and do some corcompare
15560 * DateTimePicker.cs: add "new" to padding.
15562 * ButtonBase.cs: use Control's use_compatible_text_rendering.
15564 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15566 * DataGridView.cs: PaddingChanged is overridden.
15568 2006-12-24 Chris Toshok <toshok@ximian.com>
15570 * Control.cs: corecompare work here too.
15572 * DataGridViewElement.cs, DataGridView.cs,
15573 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15574 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15575 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15576 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15579 2006-12-24 Miguel de Icaza <miguel@novell.com>
15581 * Control.cs: Switched the error message on the console for a
15582 todo. A review of the code will have to cope with this anyways
15583 (since its a large feature, it is in our radar) and it was
15584 producing too much output when running PDN.
15586 * ToolStripComboBox.cs: Set the text when the SelectedIndex
15587 changes. Applications depend on this (PDN 2.72)
15589 2006-12-23 Chris Toshok <toshok@ximian.com>
15591 * TableLayoutSettings.cs: finish up the corcompare work for this
15594 2006-12-23 Chris Toshok <toshok@ximian.com>
15596 * Control.cs: make SetImplicitBounds internal, do some futzing
15597 with LayoutEngine so that it's available in 1.1, and remove the
15598 entire duplicated code mess from PerformLayout. Use
15599 System.Windows.Forms.Layout.DefaultLayout instead.
15601 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15603 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15605 * Form.cs: Add MainMenuStrip property.
15607 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15609 * Control.cs: Add ContextMenuStrip property and implementation.
15610 Fix ContextMenu implementation to show menu centered on control when
15611 activated using the keyboard instead of showing at screen (0,0).
15613 * ToolStripDropDown.cs: Fix needed overload of Show ().
15615 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15617 * Menu.cs: Name property added for 2.0 profile.
15619 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15621 * Menu.cs: Update information about FindMenuItem, method to be
15624 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15626 * MenuAPI.cs: When deselect items deselect also selected subitems.
15628 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15630 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15631 FindSubItemByCoord to found itens that is not active, also an
15632 cheking added to FindSubItemByCoord to search for items only
15633 in visible popup windows. Fixes #80274.
15635 2006-12-22 Everaldo Canuto <everaldo@simios.org>
15637 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15638 internal property, it be care about change ExStyle.
15640 2006-12-22 Andreia Gaita <avidigal@novell.com>
15642 * ContainerControl.cs: set activeControl for parent forms up the
15643 tree when the new activecontrol is a container.
15644 When validating the active control, if it is a container, also
15645 raise up the validation for it's active control. Fixes #80280
15647 * Control.cs: Add internal property flag and check to prevent
15648 Focus events from getting raised when Select() is called for
15649 a ContainerControl. There are still too many focus events being
15650 raised at the moment though.
15651 Cleaned up the code a bit.
15653 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15655 * Control.cs: Added all missing 2.0 events.and
15656 fixed a couple of corcompare issues.
15657 * TrackBar.cs: Implemented missing 2.0 bits.
15658 * MonthCalendar.cs,
15659 * DateTimePicker.cs,
15660 * MdiClient.cs: Fixed some corcompare issues.
15662 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15664 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15665 SplitterPanel.cs: corecompare work.
15667 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15669 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15670 Clean up warnings for BackgroundImageChanged and PaddingChanged
15671 events now that they are implemented in Control.cs.
15673 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15675 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15677 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15678 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15679 of TableLayoutPanel and supporting cast.
15681 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15684 - GrabWindow now confines the mouse pointer to the confine window.
15685 - Added Win32ClipCursor and Win32GetClipCursor.
15688 - Added CaptureWithConfine to be able to capture and confine
15691 * InternalWindowManager.cs:
15692 - Call CaptureWithConfine instead of Capture if we're an
15693 MdiChild (fixes #79982).
15695 2006-12-21 Chris Toshok <toshok@ximian.com>
15697 * DataGrid.cs: guard against the initial state of selection, where
15698 selection_start == -1. make sure we only select from index >= 0.
15701 2006-12-21 Chris Toshok <toshok@ximian.com>
15703 * Control.cs: we don't need to be so draconian with
15704 UpdateDistances, and we thusly don't need to call it before
15705 calling PerformLayout in ResumeLayout. Fixes bug #80289.
15707 2006-12-21 Daniel Nauck <dna@mono-project.de>
15710 TextBox.cs: Implemented AutoComplete properties.
15712 2006-12-20 Chris Toshok <toshok@ximian.com>
15714 * DataGridView*.cs: some corecompare work.
15716 2006-12-20 Jackson Harper <jackson@ximian.com>
15718 * XplatUIX11.cs: We need to hide the caret when deleting it,
15719 otherwise you get carets left lying around everywhere.
15720 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
15721 prevents getting some weird half drawn caret tracers when
15723 * TextControl.cs: Attempt to reduce the number of times we need to
15724 recreate the caret.
15726 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
15728 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15730 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15732 * DateTimePicker.cs:
15733 - Implemented missing 2.0 bits.
15734 - Changed some default values to match MS.
15736 2006-12-20 Jackson Harper <jackson@ximian.com>
15738 * TextBoxBase.cs: When changing the font across the document we
15739 can't recalculate after changing each line, since that will cahnge
15741 - PreferredHeight is a little different than i thought.
15742 - When backspacing, move the caret before we do the actual char
15743 delete, because when that delete crosses a wrap boundary the
15744 positional information will change.
15746 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15748 * Control.cs: Added some missing 2.0 bits:
15749 BackgroundImageLayout, BackgroundImageLayoutChanged,
15750 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
15751 add IBindableComponent and IDropTarget implementation.
15753 * MonthCalendar.cs:
15754 - Added all missing 2.0 features:
15755 BackgroundImageLayout, RightToLeftLayout,
15756 OnHandleDestroyed, RightToLeftLayoutChanged,
15757 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15759 - Rewrote all the BoldDate code, it was completely broken.
15760 - Fixed all the tests (the tests can now be re-enabled, the
15761 problems were not with the tests, but with the control, it was
15764 * DateTimePicker.cs: Changed the location where the
15765 MonthCalendar is shown.
15767 2006-12-19 Chris Toshok <toshok@ximian.com>
15769 * DataGridView.cs: add IDropTarget implementation.
15771 * ToolStripPanel.cs: add IDropTarget implementation.
15773 2006-12-19 Jackson Harper <jackson@ximian.com>
15775 * TextControl.cs: soft now means something different than what it
15776 used to mean, we want to move the caret regardless of whether or
15777 not this break was soft (would we really have wanted the caret
15778 to not move with the break in the old context?)
15779 * TreeView.cs: Make sure we factor in the vert scrollbar when
15780 calculating the horizontal scrollbar's maximum.
15782 2006-12-19 Andreia Gaita <avidigal@novell.org>
15784 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15785 check for keywords in alternate casing, close bug #80049.
15787 2006-12-19 Chris Toshok <toshok@ximian.com>
15789 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15790 methods (which all do nothing).
15792 * IDropTarget.cs: add the 4 missing methods.
15794 2006-12-19 Chris Toshok <toshok@ximian.com>
15796 * TableLayoutRowStyleCollection.cs: corcompare work.
15798 * TableLayoutSettings.cs: same.
15800 * TableLayoutStyle.cs: same.
15802 * TableLayoutColumnStyleCollection.cs: same.
15804 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
15806 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15807 TableLayoutPanel I've had in my local tree for way too long.
15809 2006-12-19 Miguel de Icaza <miguel@novell.com>
15811 * TableLayoutSettings.cs: Finish the public API (still needs all
15812 the logic to update on changes).
15814 * TableLayoutPanelCellPosition.cs: new file.
15816 * TableLayoutRowStyleCollection.cs,
15817 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15818 TableLayoutSettings.cs: Track the final 2.0 table api.
15820 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15822 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15823 and Image List 2.0 members for ColummnHeader.
15824 * ListView.cs: Add key-related 2.0 methods for
15825 ColumnHeaderCollection.
15827 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15829 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15830 ArgumentNullException if items argument is null. Ignore null item in
15831 arrays. Removed extra tabs.
15833 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15835 * MonthCalendar.cs: Fixed InvalidCastException.
15837 2006-12-19 Jackson Harper <jackson@ximian.com>
15839 * TextControl.cs: Don't increment the position here.
15840 - When calculating char positions only add in the line break size
15841 for hard line breaks.
15843 2006-12-19 Andreia Gaita <avidigal@novell.org>
15845 * SendKeys.cs: Changed some things to match ms.net behaviour
15846 when parsing shifted capital letters.
15848 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
15849 Add window handle as parameter to SendInput. X11 needs the
15850 window handle, and the handle being passed to it in the keys
15851 queue is the active control handle (which windows needs), not
15854 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
15855 to support SendKeys on X.
15857 * X11Keyboard: Implement helper method to lookup a linux keycode
15858 given the virtual keycode. Added table of keycode-2-virtualkey
15859 values to support this.
15861 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15863 * ListView.cs: Add support for SelectedIndexCollection
15864 and SelectedItemCollection 2.0 methods. Implement support
15866 * ListViewItem.cs: Add support for ListViewSubItemCollection
15867 2.0 methods. Also, fix an incorrect behavior of AddRange method
15868 (it shouldn't call Clear).
15869 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15871 2006-12-19 Jackson Harper <jackson@ximian.com>
15874 * TextBoxBase.cs: New args for FormatText
15875 * TextControl.cs: Rewrote the main drawing method, this version
15876 feels a little easier to understand and debug to me. Hopefully it
15877 does to others also
15878 - Fix FormatText to OR in the new formating values. Added
15879 FormatSpecified param, basically this works in the same way as
15880 BoundsSpecified in Control.
15881 - Set the caret properties when the caret is positioned.
15882 - When wrapping text make sure that we calculate the width of the
15884 - when calculating alignments we might have wrapped down to the
15885 next line, so don't search for an individual tag, search for the
15887 - We need to invalidate the selection area when we replace the
15890 2006-12-19 Daniel Nauck <dna@mono-project.de>
15892 * Application.cs: add Restart () 2.0 support
15894 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15896 * MenuItem.cs: Invalidate menu item rectangle after change Enable
15897 property. Fixes #80268.
15899 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15901 * MenuAPI.cs: Dont trigger select event when closes top menu
15902 item. Fixes #80270.
15904 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15906 * MenuAPI.cs: When you click on menuitem only trigger onselect
15907 event for top menu itens. Fixes #80271.
15909 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15911 * MdiWindowManager.cs: Make IconicBounds depend on
15912 the bottom of MdiClient, not the top (fixes #80267)
15914 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15916 * MdiClient.cs: Added missing 2.0 attribute
15918 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15920 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15921 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15923 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15925 * MenuAPI.cs: Fix click when menuitem is not popup,
15926 this regression was caused by last commit (#80272).
15928 2006-12-17 Everaldo Canuto <everaldo@simios.org>
15930 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15931 fire click event or close menu. Fixes #80272.
15933 2006-12-17 Daniel Nauck <dna@mono-project.de>
15935 * ListViewHitTestInfo.cs: add
15937 2006-12-17 Daniel Nauck <dna@mono-project.de>
15939 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15940 * FlatButtonAppearance.cs: add
15941 * DockingAttribute.cs: add
15943 2006-12-17 Chris Toshok <toshok@ximian.com>
15945 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15946 and rebind our columns when it does - this way, if you make
15947 changes to the DataTable (or set the Table attribute on a DataView
15948 after setting it as the DataGrid's DataSource, the changes are
15949 made visible.) Fixes bug #80107.
15951 2006-12-17 Daniel Nauck <dna@mono-project.de>
15953 * ListViewGroup.cs: add internal Location property for layouting.
15954 * Theme.cs: add abstract ListViewGroupHeight function.
15955 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15957 2006-12-16 Andreia Gaita <avidigal@novell.com>
15959 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15960 Added reset of selected index to 0 when adding first tab page.
15963 * NumericUpDown.cs: Fix NET_2_0 check
15965 2006-12-16 Daniel Nauck <dna@mono-project.de>
15967 * ListViewGroup.cs: fixed DefaultValueAttribute value
15969 2006-12-16 Daniel Nauck <dna@mono-project.de>
15971 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15973 2006-12-15 Miguel de Icaza <miguel@novell.com>
15975 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15976 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15977 ScrollableControl.cs: Add a handful of methods that are
15980 2006-12-15 Chris Toshok <toshok@ximian.com>
15982 * XplatUIWin32.cs: initial implementation of the Reversible
15983 drawing functions. there are some problems. DrawReversibleFrame
15984 doesn't seem to work at all for Dashed FrameStyle, and in the
15985 Thick case there are drawing errors at the corners (we probably
15986 need to bind Rectangle instead of doing moveto/lineto's.)
15988 2006-12-16 Andreia Gaita <avidigal@novell.com>
15990 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
15991 to send blocks of key messages. Send accumulates keys to send with Flush,
15992 while SendWait sends all keys immediately.
15994 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15995 XplatUIX11.cs, XplatUIX11-new.cs:
15996 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15997 to Win32 SendInput.
15998 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16000 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
16001 testing for ms.net on this class is very tricky, as the tests run too fast
16002 to allow the hook to release, essentially freezing the keyboard and the
16003 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
16006 2006-12-16 Daniel Nauck <dna@mono-project.de>
16008 * Padding.cs: fixed serialization compability to MS ("_var" field names),
16009 added missing attributes.
16011 2006-12-15 Daniel Nauck <dna@mono-project.de>
16013 * ListViewGroup.cs: Added missing attributes.
16014 * ListViewGroupCollection.cs: Added missing attributes.
16016 2006-12-15 Daniel Nauck <dna@mono-project.de>
16018 * ListViewItem.cs: fixed ListViewSubItem text property.
16020 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16022 * Control.cs: Added missing 2.0 attributes
16024 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16026 * MdiClient.cs: Added missing 2.0 attribute.
16027 * MonthCalendar.cs: Added some missing 2.0 attributes
16030 2006-12-15 Daniel Nauck <dna@mono-project.de>
16032 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16034 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
16036 * MainMenu.cs: Add the new 2.0 constructor to help out people
16037 using the MainMenu in VS2005.
16039 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16041 * MdiChildContext.cs: Removed it, no longer used.
16042 * MdiClient.cs: Added missing 2.0 attributes.
16044 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16046 * InternalWindowManager.cs: Fix a NullRef with previous
16047 changes for toolwindows.
16049 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16052 - Added AfterTopMostControl to allow for certain controls
16053 to always stay on top when normal controls are brought to
16057 - (DrawInversibleRectangle): Get window rectangle from Win32
16058 in stead of from control, since Win32 doesn't calculate
16059 screen coords correctly from control's Location if it
16060 have docked siblings.
16062 * MdiWindowManager.cs:
16063 - Correct the control menu popup location when clicked on
16064 the maximized form icon. (fixes #80223.1)
16065 - Don't show moving rectangle if mouse hasn't moved from
16066 the original clicked point.
16067 - Removed FormGotFocus handler (not used).
16068 - Calculate the control buttons location from the main
16069 window's size and not client size (fixes #79770).
16070 - Form is now closed when the form icon is double-clicked
16072 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
16074 * InternalWindowManager.cs:
16075 - Moved some MDI-only methods to MdiWindowManager.
16076 - Removed unused properties and methods.
16077 - Unified method naming for methods handling wm messages.
16078 - Moved all message handling to seperate methods for
16081 * ThemeWin32Classic.cs:
16082 - DrawManagedWindowDecorations now draws the title bar
16083 with a gradient brush.
16084 - Add a CPDrawButtonInternal that allows us to specify
16085 light, normal and dark colors for the buttons (control
16086 buttons for MDI children were drawn with the same light
16087 color as the background, therefore loosing the 3D effect).
16090 - Add a CapturedControl property that is used to
16091 determine the control to resize (defaults to parent).
16092 Needed for MdiClient, since its SizeGrip's parent is
16093 MdiClient, but the control to resize is the main form.
16096 - Set SizeGrip's CapturedControl to the main form in order
16097 to resize the main form and not the MdiClient.
16098 - Override AfterTopMostControl to leave the scrollbars
16101 2006-12-15 Daniel Nauck <dna@mono-project.de>
16103 * ListView.cs: fixed ListViewItemCollection AddRange and
16104 implemented ListViewItemCollection AddRange 2.0 support.
16106 2006-12-15 Daniel Nauck <dna@mono-project.de>
16108 * ListViewGroup.cs: Add.
16109 * ListViewGroupCollection.cs: Add
16110 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
16111 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
16112 stub for ImageKey 2.0 support.
16114 2006-12-14 Mike Kestner <mkestner@novell.com>
16116 * ListView.cs: add text padding to the autocalculation for columns
16117 of width -2. Fixes #80207.
16119 2006-12-14 Mike Kestner <mkestner@novell.com>
16121 * ListView.cs: add some index guarding for partial row navigation
16122 logic. Fixes #80250.
16124 2006-12-14 Mike Kestner <mkestner@novell.com>
16126 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
16127 are added or inserted to the collection. Fixes #81099.
16129 2006-12-13 Everaldo Canuto <everaldo@simios.org>
16131 * MenuAPI.cs: Closes menu when right click out side of popup
16132 it fix problem in ContextMenu and MainMenu. Fixes #80252.
16134 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16136 * ListViewItem.cs: Fix dumb error.
16138 * ListView.cs: Add Find and ContainsKey methods in
16139 ListViewItemCollection, and also return true for IsReadOnly
16140 and IsFixedSize (changes for 2.0).
16142 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
16144 * Control.cs: Allow Region to be set to null.
16146 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16148 * MdiWindowManager.cs: Remove unused (commented out) code.
16149 * Form.cs: When the MdiChild is maximized, the form needs
16150 WM_NCMOUSELEAVE, so request it.
16151 * InternalWindowManager.cs:
16152 - Added tooltips to control buttons.
16153 - Removed duplicated control button handling code.
16154 - Removed unused (commented out) code.
16156 2006-12-12 Everaldo Canuto <everaldo@simios.org>
16158 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
16159 was used because we must set cursor without trigger ChangeCursor event
16160 and without change Cursor control property. Fixes #79963.
16162 2006-12-12 Andreia Gaita <avidigal@novell.com>
16164 * Control.cs: Check if Region setter value is null, and ignore
16166 2006-12-12 Jackson Harper <jackson@ximian.com>
16168 * TextControl.cs: We were almost always drawing one more line then
16169 needed, since the GetLineByPixel will return the last line found
16170 at that pixel. In most cases though, we were invalidating up to
16171 the junction between two lines.
16172 - Improve debug code.
16174 2006-12-12 Chris Toshok <toshok@ximian.com>
16176 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16177 and FillReversibleRectangle.
16179 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16180 and FillReversibleRectangle.
16182 * XplatUIWin32.cs: add stubs which do nothing for
16183 DrawReversibleFrame, DrawReversibleLine, and
16184 FillReversibleRectangle.
16186 * XplatUIOSX.cs: add stubs which raise NIE for
16187 DrawReversibleFrame, DrawReversibleLine, and
16188 FillReversibleRectangle.
16190 * XplatUIX11.cs: add working implementation for
16191 DrawReversibleFrame, DrawReversibleLine, and
16192 FillReversibleRectangle.
16194 * ControlPaint.cs: implement DrawReversibleFrame,
16195 DrawReversibleLine, and FillReversibleRectangle, by calling into
16196 the appropriate XplatUI method.
16198 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16200 * Form.cs: Make MdiClient have the focus even if it's
16201 not selectable, since it should receive WM_KEY* and WM_MOUSE
16202 messages. Fixes #79907.
16204 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16206 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16207 queried after the window is created.
16209 * XplatUIX11.cs: Added SendParentNotify to implement
16210 WM_PARENTNOTIFY logic. Fixes #79965.
16212 * Control.cs: Added MakeParam.
16214 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16216 * MdiClient.cs: Resume Layout before setting window
16217 states (fixes #80201).
16219 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16221 * MenuAPI.cs: Deselect a menu item after performing
16222 the click (fixes #80197).
16224 2006-12-11 Jackson Harper <jackson@ximian.com>
16226 * TextBoxBase.cs: We need to cap this value, since Maximum -
16227 ViewPortHeight can be less than zero.
16228 - Only do selection with the left mouse button.
16229 * TextBox.cs: Don't tell the world that we have a context menu.
16230 * Control.cs: New method so that we can control whether or not the
16231 context menu is visible outside MWF.
16233 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16235 * ToolBarButton.cs: Fix text positon.
16237 2006-12-11 Miguel de Icaza <miguel@novell.com>
16239 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16241 * Control.cs (DoubleBuffered): Add implementation.
16243 * Application.cs (OpenForms): Add.
16245 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16247 * Form.cs: Use opacity instead of Opactiy to determine if we need
16248 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
16250 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16252 * Control.cs: Fix NRE if Control.Site was set to null.
16254 2006-12-11 Chris Toshok <toshok@ximian.com>
16256 * Control.cs: ControlCollection.Remove should return if the arg is
16257 null, and ControlCollection.SetChildIndex should raise a ANE.
16259 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
16261 * Control.cs: Verify value set for Dock property. Code formatting
16264 2006-12-11 Jackson Harper <jackson@ximian.com>
16266 * TextControl.cs: Draw the caret and the selection when a flag is
16268 * TextBoxBase.cs: We want to draw the caret and the selection for
16269 TextBox but not for TextBoxBase.
16270 - If the window is resized and scrolling is no longer needed (the
16271 whole doc is visible) set the scroll position to zero.
16272 - The default SelectWord (the one TextBox uses) should move the
16273 caret to the end of the word.
16274 - SelectAll moves the caret to the end of the selection.
16275 * TextBox.cs: We don't selectall on focus, we just do it when the
16276 control is created.
16278 2006-12-11 Mike Kestner <mkestner@novell.com>
16280 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16282 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16284 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
16286 * ListViewItem.cs: Add Name 2.0 property.
16288 2006-12-11 Andreia Gaita <avidigal@novell.com>
16290 * TabControl.cs: Set visibility on selected or default tab
16291 when tabcontrol handle is created, so that it's contents
16292 actually show up (duh). Fixes #80193
16293 Don't redraw the control if there is no handle created, as
16294 the selected index might be completely invalid. Added some tests
16297 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16299 * ToolBar.cs: Uses maximun width and height of all buttons as
16300 button rectangle when ButtonSize specified, it looks strange but
16301 is what happens in Win32. Fixes #80189.
16303 2006-12-11 Jackson Harper <jackson@ximian.com>
16305 * TextControl.cs: Need to track undo levels ourself, since
16306 compound actions will mess them up.
16308 2006-12-10 Andreia Gaita <avidigal@novell.com>
16310 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16311 SelectedIndex value is changed (even if it's not valid).
16312 Reset SelectedIndex to 0 when the handle is created and if
16313 the current index is invalid.
16314 Fixes SelectdeIndex unit tests and #80128
16316 2006-12-08 Chris Toshok <toshok@ximian.com>
16318 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16319 calls EndEdit, it needs to be called before we set current_cell to
16320 its new value. Otherwise, we end up committing the value in the
16321 textbox to the new cell as well. Fixes bug #80160.
16323 2006-12-08 Chris Toshok <toshok@ximian.com>
16325 * Form.cs (set_CancelButton): if the button's DialogResult is
16326 None, set it to Cancel. Fixes bug 80180.
16328 2006-12-08 Jackson Harper <jackson@ximian.com>
16330 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16331 to watch ourselves when setting the canvas size and setting the
16334 2006-12-08 Chris Toshok <toshok@ximian.com>
16336 * DataGrid.cs: comment out the two MakeTransparent calls for the
16337 time being so people using trunk (and not 1.2.2) on windows can
16338 actually use the datagrid. This deals with bug #80151.
16340 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16342 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16343 Graphics.DrawImage (image, int, int, int, int) overload instead
16344 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
16345 the dpi difference and was blurring images it drew.
16348 2006-12-08 Chris Toshok <toshok@ximian.com>
16350 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16351 rowcnt is 0 (such as with an empty datasource), and make sure we
16352 initialize not_usedarea.Y to cells.Y, so we don't draw over the
16353 other areas (caption, parent row, etc, etc). Fixes bug #80095.
16355 2006-12-08 Chris Toshok <toshok@ximian.com>
16357 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16360 2006-12-08 Chris Toshok <toshok@ximian.com>
16362 [ Fixes bug #80167 ]
16364 * ThemeWin32Classic.cs: don't draw the image if the button's flat
16365 style is FlatStyle.System.
16367 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16368 ButtonBase.flat_style private, and switch uses of it to the public
16371 2006-12-08 Chris Toshok <toshok@ximian.com>
16373 [ Fixes bug #80121 ]
16375 * ThemeWin32Classic.cs: center the caption text in the datagrid
16378 * DataGrid.cs: lessen the amount we add to the caption height from
16379 6 to 2. 6 was making it huge.
16381 2006-12-08 Andreia Gaita <avidigal@novell.com>
16383 * UpDownBase: Handle MouseWheel call directly instead of capturing
16384 the inner textbox's OnMouseWheel. Fixes #80166
16386 2006-12-08 Jackson Harper <jackson@ximian.com>
16388 * TextControl.cs: We need to invalidate the textbox when we empty
16389 it (how had this not been discovered before?)
16391 2006-12-08 Jackson Harper <jackson@ximian.com>
16393 * TextBoxBase.cs: Reworked the mouse down code so I could get it
16394 to behave like MS, we now ignore the eventargs.Click and just
16395 track state ourself, which we were already doing anyways.
16396 - Constrain the double click handler to the double click size.
16398 2006-12-08 Chris Toshok <toshok@ximian.com>
16400 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16401 direction if that scrollbar isn't shown. fixes bug #80158.
16403 2006-12-08 Andreia Gaita <avidigal@novell.com>
16405 * NumericUpDown.cs: Update value on getter. Fixes #79950
16407 2006-12-08 Chris Toshok <toshok@ximian.com>
16409 * MenuItem.cs: add back in the event cloning code. I didn't know
16410 how to do it in the face of the EventHandlerList work i'd done
16411 last week. Fixes bug #80183.
16413 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16415 * Control.cs: Add an invalidate to the BackgroundImage setter.
16418 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16420 * ToolStrip*: Add some small properties reported by MoMA, fix event
16421 firing and default properties based off of unit tests, and add some
16422 attributes based off of the class status page.
16424 2006-12-07 Jackson Harper <jackson@ximian.com>
16426 * TextBoxBase.cs: Take HideSelection into account when determining
16427 whether or not to show the selection.
16428 * RichTextBox.cs: After inserting the RTF into the document move
16429 the cursor to the beginning of the document.
16431 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16433 * Control.cs: Remove static ArrayList "controls" which maintained
16434 a reference to every control created.
16435 * Application.cs: Create a static FormCollection to maintain a reference
16436 to every form created. Use it in places that formerly enumerated through
16437 the controls one looking for forms.
16438 * Form.cs: Add and remove self from above FormCollection.
16440 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
16442 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16443 not libgdk (though it makes me wonder why I didn't have any
16446 2006-12-07 Chris Toshok <toshok@ximian.com>
16448 [ you had to know this was coming after that last commit...]
16450 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16451 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16452 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16455 2006-12-07 Chris Toshok <toshok@ximian.com>
16457 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16458 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16459 all the behavior we need for double buffering.
16461 * XplatUIDriver.cs: implement the 3 double buffer methods using a
16462 client side Bitmap, just like the old Control-based double buffer
16463 code did. The methods are virtual, so each XplatUI driver
16464 subclass can replace the implementation to use a faster, platform
16467 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16468 double buffer code, and clean things up a bit in the process.
16470 2006-12-06 Chris Toshok <toshok@ximian.com>
16472 * Control.cs: reindent WndProc.
16474 2006-12-06 Chris Toshok <toshok@ximian.com>
16476 [ I wanna be like BenM when I grow up ]
16478 * Hwnd.cs: create a single static Graphics object on the static
16479 Bitmap we create. use this for our text measurements.
16481 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16482 This was causing us to allocate a backbuffer for every control,
16483 even when it wasn't flagged as double buffered. Instead use the
16484 single graphics instance. This might have implications for
16485 multithreaded applications. If we run into problems we can switch
16486 to creating 1 Graphics per control, on the static Hwnd bitmap.
16488 this change nets us a 7M savings in private dirty mappings when
16489 running FormsTest.exe.
16491 2006-12-06 Chris Toshok <toshok@ximian.com>
16493 * ListView.cs: the BackgroundImage override is just to set
16494 attributes. chain up to base.BackgroundImage.
16496 * RichTextBox.cs: same.
16498 * ToolBar.cs: same, but we need to also redraw the toolbar when it
16499 changes, so instead a handler for BackgroundImageChanged.
16501 * Control.cs: make background_image private.
16503 2006-12-06 Chris Toshok <toshok@ximian.com>
16505 * ScrollBar.cs: change the assignment of cursor to Cursor. not
16506 sure we even need this assignment, but roll with it for now.
16508 * Control.cs: make the cursor field private.
16510 2006-12-06 Chris Toshok <toshok@ximian.com>
16512 * Form.cs: we don't need to explicitly set ImeMode to
16513 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16514 behavior in the face of ImeMode.Inherit.
16516 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16517 change the ctor's assignment to use ImeMode instead of ime_mode.
16519 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16520 ImeModeInherit. Only check for the parent's imemode (and return
16521 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16522 This fixes the button unit test, which sets both ImeMode and
16523 DefaultImeMode to ImeMode.Disable.
16525 also make the ime_mode field private.
16527 2006-12-06 Chris Toshok <toshok@ximian.com>
16529 * Control.cs: make control_style private.
16531 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
16532 setting the styles to true, then setting them to false instead of
16533 reverting to their previous values.
16535 also, call SetStyle on the scrollbars instead of using
16536 control_style directly.
16538 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
16540 * FormCollection.cs: Implement. [2.0]
16542 2006-12-06 Chris Toshok <toshok@ximian.com>
16544 * Control.cs: make tab_stop private.
16546 * Label.cs: set TabStop, not tab_stop. reformat some event
16547 add/remove methods to make them more compact.
16549 2006-12-06 Chris Toshok <toshok@ximian.com>
16551 * RadioButton.cs: fix TabStop handling.
16553 2006-12-06 Chris Toshok <toshok@ximian.com>
16555 * TextBox.cs: remove the explicit assignments to has_focus.
16558 * ButtonBase.cs: remove the assignment to has_focus. Control will
16561 2006-12-06 Chris Toshok <toshok@ximian.com>
16563 * ButtonBase.cs: remove all uses of is_enabled from this code.
16564 it's always true when any of the code containing the checks is
16567 2006-12-06 Chris Toshok <toshok@ximian.com>
16569 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16570 with different semantics (some are present in both 1.1 and 2.0
16571 profiles) so that we match MS's behavior in our unit tests.
16573 2006-12-06 Jackson Harper <jackson@ximian.com>
16575 * TextControl.cs: Make this operation undoable.
16576 * TextBoxBase.cs: Factor the border width into the preferred
16578 - implement Modified as per the spec.
16580 2006-12-06 Chris Toshok <toshok@ximian.com>
16582 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16584 2006-12-06 Chris Toshok <toshok@ximian.com>
16586 * Control.cs: make right_to_left and context_menu fields private.
16588 2006-12-06 Chris Toshok <toshok@ximian.com>
16590 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16591 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16592 Control.child_controls private. switch all uses over to
16595 2006-12-06 Chris Toshok <toshok@ximian.com>
16597 * System.Windows.Forms/GroupBox.cs,
16598 System.Windows.Forms/AccessibleObject.cs,
16599 System.Windows.Forms/ErrorProvider.cs,
16600 System.Windows.Forms/Control.cs,
16601 System.Windows.Forms/UpDownBase.cs,
16602 System.Windows.Forms/ScrollBar.cs,
16603 System.Windows.Forms/DateTimePicker.cs,
16604 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16605 System.Windows.Forms/ToolTip.cs,
16606 System.Windows.Forms/RadioButton.cs,
16607 System.Windows.Forms/LinkLabel.cs,
16608 System.Windows.Forms/Splitter.cs,
16609 System.Windows.Forms/TextBoxBase.cs,
16610 System.Windows.Forms/ToolStripTextBox.cs,
16611 System.Windows.Forms/ContainerControl.cs,
16612 System.Windows.Forms/ThemeWin32Classic.cs,
16613 System.Windows.Forms/SizeGrip.cs,
16614 System.Windows.Forms/ToolStripDropDown.cs,
16615 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16616 private. switch all uses over to Control.Parent.
16618 2006-12-06 Chris Toshok <toshok@ximian.com>
16620 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16621 Control does this before calling emitting these events.
16623 * TabControl.cs: same.
16625 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16626 Control.client_rect.
16628 * ButtonBase.cs: use the ClientSize property instead of the
16631 * ScrollableControl.cs: same.
16633 * Control.cs: another pass at making properties private. also,
16634 move the initialization of tab_stop to the ctor.
16636 2006-12-05 Andreia Gaita <avidigal@novell.com>
16638 * TabControl.cs: Let the selected index be set freely if the
16639 control handle is not yet created.
16641 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16643 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
16644 internal until I can rewrite DefaultLayout.
16645 * ToolStrip.cs: Fix build error and some general cleaning.
16646 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16647 Fix build errors caused by making some of Control's fields private.
16649 2006-12-05 Jackson Harper <jackson@ximian.com>
16651 * TextControl.cs: Redo Insert a little so that it use IndexOf
16652 instead of Split, this prevents it from messing up on things like
16653 \n\n\n. Also more effecient since the split array doesn't need to
16655 * TextBoxBase.cs: AppendText doesnt handle multiline and non
16656 multiline text differently, this is the first of many fixes that
16657 will make multiline/non-multiline the same thing as far as the
16658 TextBoxBase is concerned.
16659 - Don't split the text and insert lines, this can lose some line
16660 endings (like is the last line a soft or hard break). Instead use
16662 - Fix an off by one when combining all the lines in the Text
16664 - Remove separate multiline handling from the Text getter/setter.
16666 2006-12-05 Chris Toshok <toshok@ximian.com>
16668 * ButtonBase.cs: a few changes:
16670 - don't reinitialize internal Control fields in the ctor when they
16671 have the same values as Control sets them.
16673 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
16674 this before calling those methods.
16676 - we don't need to call Refresh for anything. use Invalidate
16679 - OnEnabledChanged doesn't need to redraw at all - Control.cs
16680 calls Refresh in its OnEnabledChanged.
16682 - several of the events we were registered for in the ctor to
16683 redraw ourselves already include calls to Invalidate in the
16684 property setters that raise the events. remove the extra
16687 - reformat a switch statement that was 83274658 columns wide.
16689 2006-12-05 Mike Kestner <mkestner@novell.com>
16691 * ComboBox.cs: fix a unit test regression from a TextBox
16692 SelectionLength return of -1 when there's no selection.
16694 2006-12-05 Chris Toshok <toshok@ximian.com>
16696 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16697 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16698 cleaning up some of the internal Control fields being used by
16701 2006-12-05 Mike Kestner <mkestner@novell.com>
16703 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
16704 listbox after AddImplicit calls since it defaults to hidden. Add a
16705 hack to preserve requested heights across DropDownStyle changes.
16707 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16709 * PropertyGrid.cs: Hide FindFirstItem method from public API.
16711 2006-12-05 Chris Toshok <toshok@ximian.com>
16713 * DataGridView.cs: fix compiler warnings.
16715 * PrintControllerWithStatusDialog.cs: same.
16717 * ToolBar.cs: same.
16719 * FolderBrowserDialog.cs: same.
16721 * Splitter.cs: same.
16723 * DataGridViewComboBoxCell.cs: same.
16725 * XplatUIWin32.cs: same.
16727 * PictureBox.cs: same.
16729 * Win32DnD.cs: same.
16731 * PageSetupDialog.cs: same.
16733 * FileDialog.cs: same.
16735 * PrintDialog.cs: same.
16737 * DataGridTextBoxColumn.cs: same.
16739 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16741 2006-12-05 Chris Toshok <toshok@ximian.com>
16743 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16744 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16745 System.ComponentModel.EventHandlerList work.
16747 2006-12-05 Jonathan Chambers <joncham@gmail.com>
16749 * DrawTreeNodeEventArgs.cs: Added.
16751 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16753 * InternalWindowManager.cs: Remove an unused field.
16755 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16757 * InternalWindowManager.cs:
16758 - Save the point where the title bar is clicked.
16760 * MdiWindowManager.cs:
16761 - Only allow moving of the window as long as the
16762 clicked point on the title bar does not get out of
16763 MdiClient's rectangle. Fixes #79982.
16766 - Added Horizontal/VerticalScrollbarVisible.
16767 - Simplified the scrollbar sizing algorithm.
16768 - Cache the difference in scrolled value in
16769 H/VBarValueChanged and move the calculation out
16772 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16774 * Control.cs: Make the Console.WriteLine in WndProc
16777 2006-12-05 Chris Toshok <toshok@ximian.com>
16779 * ToolStripManager.cs, ToolStripButton.cs,
16780 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16781 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16782 ToolStripSplitButton.cs, ToolStripSeparator.cs,
16783 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16784 ToolStripProgressBar.cs, ToolStripContainer.cs,
16785 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16786 to using System.ComponentModel.EventHandlerList.
16788 2006-12-04 Chris Toshok <toshok@ximian.com>
16790 * LinkLabel.cs: fix up compiler warnings.
16792 * TableLayoutSettings.cs: same.
16794 * TreeView.cs: same.
16796 * ToolBar.cs: same.
16798 * TabControl.cs: same.
16800 * RichTextBox.cs: same.
16802 * ListViewItem.cs: same.
16804 * PropertyGrid.cs: same.
16806 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16810 * TextRenderer.cs: fix up compiler warnings.
16814 * Form.cs: corcompare fixes.
16816 * PictureBox.cs: fix up compiler warnings.
16818 * ImageListStreamer.cs: same.
16820 * TrackBar.cs: corcompare fix.
16822 * Control.cs: fix up compiler warnings.
16824 * SplitterPanel.cs: same.
16826 * NumericTextBox.cs: same.
16828 * ImageList.cs: same.
16830 * StatusStrip.cs: same.
16832 * ProgressBar.cs: corcompare fix.
16834 * ToolStripButton.cs: fix up compiler warnings.
16836 * ToolStripStatusLabel.cs: same.
16838 * ToolStripSplitButton.cs: same.
16840 * ToolStripSeparator.cs: same.
16842 * ToolStripProgressBar.cs: same.
16844 * ToolStripDropDownMenu.cs: same
16846 * ToolStripDropDown.cs: same.
16848 * ToolStripDropDownButton.cs: same.
16850 * ToolStrip.cs: same.
16852 * ToolStripControlHost.cs: same.
16854 * ToolStripContentPanel.cs: same.
16856 * ToolStripDropDown.cs: same.
16858 * ToolStripContainer.cs: same.
16860 * ToolStripPanel.cs: same, and add "new" where we need it to work
16861 with the new ArrangedElementCollection.
16863 * ToolStripItemCollection.cs: add "new" where we need it to work
16864 with the new ArrangedElementCollection.
16866 2006-12-04 Andreia Gaita <avidigal@novell.com>
16868 * TabControl.cs: Fix default tab selection to after TabControl
16869 gets focus and not before. Fixes #80128
16871 2006-12-04 Chris Toshok <toshok@ximian.com>
16873 * DataGridTableStyle.cs: remove the gross calling of
16874 datagrid.Refresh from here. It's a broken idea and it doesn't
16877 * DataGrid.cs: instead, just register/unregister from the
16878 DataGridTableStyle events in CurrentTableStyle. we play it
16879 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16880 even though some would most likely not require it. Fixes bug
16881 #80115 (and one portion of #80117 as a side effect).
16883 2006-12-04 Chris Toshok <toshok@ximian.com>
16885 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16886 so the textbox (if any) goes away. Fixes bug #80117.
16888 2006-12-04 Chris Toshok <toshok@ximian.com>
16890 * DataGridColumnStyle.cs: set the column's readonly property
16891 initially based on the property descriptor's IsReadOnly. Fixes
16894 2006-12-04 Chris Toshok <toshok@ximian.com>
16896 * ComboBox.cs: wrap the dropdown style changing work in
16897 SuspendLayout/ResumeLayout. Fixes bug #79968.
16899 2006-12-04 Jackson Harper <jackson@ximian.com>
16901 * TextBoxBase.cs: Fix off by one, since these are one-based.
16902 * TextBox.cs: Select all the text when we get focus. The TextBox
16903 does this but the RTB does not.
16905 2006-12-04 Chris Toshok <toshok@ximian.com>
16907 * DataGridTextBoxColumn.cs: remove some spew.
16909 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16910 but some part of me is saying "it shouldn't be here.." At any
16911 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
16914 2006-12-04 Chris Toshok <toshok@ximian.com>
16916 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16917 to reassign the propertydescriptor.
16919 2006-12-04 Jackson Harper <jackson@ximian.com>
16922 * TextControl.cs: Remove some unused variables. Maybe this will
16923 patch things up between mike and I.
16924 - don't split lines less then one char wide, if the viewport is
16925 that small text won't be visible anyways.
16927 2006-12-04 Jackson Harper <jackson@ximian.com>
16929 * TextBoxBase.cs: Default selection length is -1, need to do some
16930 more testing on windows to see when this is used for the property.
16931 - Redid the Lines [] property to that we properly remove soft line
16933 - added support for preserving carriage returns
16934 - CanUndo is not a variable like 'is undo enabled' it just returns
16935 true if there is undo operations available.
16936 - AppendText doesn't need to grab the last tag itself anymore,
16937 this happens automatically when we move the cursor.
16938 * TextControl.cs: Add CompoundActions to the undo class. This
16939 allows combining the other operations into one big option. ie a
16940 paste will combine { delete old, insert new, move cursor }
16941 - Add InsertString undo operation
16942 - New method for deleting multiline text
16943 - Add carriage returns to lines. So we can preserve carriage
16944 returns when text is 'roundtripped'
16946 2006-12-04 Chris Toshok <toshok@ximian.com>
16948 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16949 minimum 0. Fixes the scrollbar exception in bug #80136.
16951 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16954 * MdiWindowManager: Removed unused fields and methods.
16956 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16958 * StatusBar.cs: Update all panels when a AutoSize=Contents
16959 panel needs updating.
16961 * StatusBarPanel.cs: Remove twidth and only use initialize.
16964 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16966 * Form.cs: When a form's MdiParent is set add it directly
16967 on top of the z-order in stead of relying on MdiClient's
16968 ActivateChild to do it. Fixes #80135.
16971 - Remove original_order, mdi_child_list is already doing
16973 - Create mdi_child_list on construction in
16974 stead of first use (avoids a few null checks).
16976 * MenuItem.cs: Use an already existing list of mdi children
16977 to get the correct order of children and remove the other
16980 2006-12-04 Chris Toshok <toshok@ximian.com>
16982 * PropertyGridView.cs: cached_splitter_location is only used in
16983 !DOUBLEBUFFER code.
16985 * PropertyGrid.cs: implement the ComComponentNameChanged event
16986 using Events, hoping that would fix the warning. Looks like a
16987 compiler bug instead (#80144).
16989 * PropertyManager.cs: remove unused method.
16991 2006-11-04 Everaldo Canuto <everaldo@simios.org>
16993 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
16994 include parentesis to fix expression evaluation. Fixes #79634.
16996 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16999 - Changes to fix behavior in Menu control, some reported in #80097
17000 and other detected during behavior refactory like a select event
17002 - Remove unneded "if's" conditions.
17003 - Created an internal to flag when popup is active in control, we need
17004 it because in .NET you can have menu active but without popup active
17005 when you active menu using popup without visible items.
17006 - Mimic win32 behavior for Select and Popup events.
17007 - Dont open popup menu when you dont have visible subitems.
17008 - Do nothing when click on disabled menu item.
17009 - Some small changes to follow the coding style guidelines.
17010 - Unselect menu only when another control gives focus. Fixes #80097.
17011 - Remove unused code.
17013 * MenuItem.cs: internal VisibleItems method to check if menu
17014 theres visible subitems, it will be usefull to fix some
17015 behavior in Menu control.
17017 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17019 * Timer.cs: Tag property for 2.0 profile.
17021 2006-12-01 Chris Toshok <toshok@ximian.com>
17023 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17025 * Win32DnD.cs: comment out some unused fields.
17027 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17028 some unused properties/methods.
17030 * XplatUIX11.cs: fix MousePosition so we override the base class's
17031 property instead of conflicting with it.
17033 * PictureBox.cs: comment out some unused fields
17035 * OSXStructs.cs: make some struct fields public.
17037 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17038 MousePosition so we override the base class's property instead of
17039 conflicting with it.
17041 * X11Dnd.cs: comment out some unused fields
17043 * X11DesktopColors.cs: fix some struct field visibility to quiet
17046 * X11Dnd.cs: remove some debug code.
17048 * ThemeClearlooks.cs: comment out unused field.
17050 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17052 * ThemeGtk.cs: comment out some unused pinvokes.
17054 * Timer.cs: remove some unused fields.
17056 * ThemeClearlooks.cs: comment out unused field.
17058 * UpDownBase.cs: comment out unused field.
17060 * DataObject.cs: comment out unused field.
17062 * DataGridBoolColumn.cs: reomve unused field.
17064 * DataGrid.cs: remove unused field.
17066 * Cursor.cs: remove old ToBitmap code.
17068 * ControlPaint.cs: remove unused method.
17070 * ScrollBar.cs: remove unused fields.
17072 * ComboBox.cs: remove unused field, and chain up to
17073 AccessibleObject ctor.
17075 * ListBox.cs: remove unused field.
17077 * ButtonBase.cs: wrap a couple fields in NET_2_0.
17079 * GridEntry.cs: remove unused fields.
17081 * Binding.cs: remove unused fields.
17083 * AxHost.cs: remove unused method.
17085 * ContainerControl.cs: remove unused field.
17087 * ScrollableControl.cs: remove unused fields.
17089 2006-12-01 Chris Toshok <toshok@ximian.com>
17091 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
17092 the Where/WhereString stuff. it's easy enough to CWL
17093 Environment.StackTrace.
17095 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
17096 unused private fields.
17098 2006-12-01 Jackson Harper <jackson@ximian.com>
17100 * TextControl.cs: Do not update the view while inserting multiline
17101 text. If we update the view we might wrap lines, before entering
17102 the new lines, which causes the new line insertion calculations to
17103 be totally fubared.
17104 - Remove an old TODO
17105 - Make debug output a little nicer
17107 2006-12-01 Chris Toshok <toshok@ximian.com>
17109 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
17111 2006-12-01 Chris Toshok <toshok@ximian.com>
17113 [ fix the majority of the CS0108 warnings we've been suppressing ]
17115 * TreeView.cs: mark BackgroundImageChanged as 'new'.
17117 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
17118 to "LayoutToolBar" to quiet mcs.
17120 * TabControl.cs: mark our ControlCollection class as 'new'.
17122 * TextBoxBase.cs: mark some events as 'new'.
17124 * Splitter.cs: TabStop is 'new'.
17126 * ControlBindingsCollection.cs: mark a few methods as new since
17127 they change the visibility from protected to public.
17129 * RadioButton.cs: DoubleClick -> base class, and remove unused
17132 * MonthCalendar.cs: ImeMode property -> base class, and mark many
17135 * NumericUpDown.cs: TextChanged -> base class.
17137 * CheckedListBox.cs: mark our ObjectCollection class as new to
17140 * FolderBrowserDialog.cs: make HelpRequest event new and have it
17141 muck with the base class.
17143 * StatusBar.cs: fix some mcs warnings about Update being the same
17144 name as a base class method.
17146 * RichTextBox.cs: mark some events as new, and make them do things
17147 to the base class impl.
17149 * UserControl.cs: mark TextChanged as new, and have it manipulate
17152 * UpDownBase.cs: mark some things new.
17154 * CheckBox.cs: mark DoubleClick "new", and add some text about
17155 what we need to look at.
17157 * Panel.cs: make the events "new", and manipulate the base
17158 version. these are just here for attributes.
17160 * AccessibleObject.cs: make owner private.
17162 * Control.cs: deal with AccessibleObject.owner being private.
17163 cache our own copy if we need it.
17165 * Button.cs: add "new" to the DoubleClickEvent.
17167 * ListBox.cs: no need to track our own has_focus here. let
17168 Control.has_focus do it for us. Also some other work to clear up
17169 warnings about not overriding base class methods of the same name.
17171 * ComboBox.cs: clear up some warnings about not override base
17172 class methods of the same name.
17174 2006-12-01 Chris Toshok <toshok@ximian.com>
17176 * Form.cs: flag a few things as "new" to quiet some of the mcs
17181 * PrintPreviewDialog.cs: same.
17183 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
17184 now DGV isn't so horrible on the class status page. also, move
17185 all events to using System.ComponentModel.EventHandlerList. my
17188 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17190 * MdiWindowManager.cs:
17191 - Set form to active mdi child if shown,
17192 and update the active mdi child to the next
17193 remaining child in the z-order if the form is hidden.
17196 - Track if the form has been visible and if its
17197 visibility is beeing changed, so that the MdiClient
17198 can properly decide the ActiveMdiChild. The MdiClient
17199 cannot track this since the form can change visibility
17200 before MdiClient is created.
17203 - Don't activate anything of the parent form is changing
17205 - Rework ActiveMdiChild to only return visible mdi
17206 children and take into account several other corner
17209 2006-12-01 Chris Toshok <toshok@ximian.com>
17211 * IBindableComponent.cs: new 2.0 interface.
17213 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
17215 * DataGrid.cs: Font for caption area is bold by default.
17217 2006-12-01 Everaldo Canuto <everaldo@simios.org>
17219 * Menu.cs: Tag property for 2.0.
17221 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17223 * ThemeWin32Classic.cs: Adjust menu separator drawing.
17225 2006-12-01 Chris Toshok <toshok@ximian.com>
17227 * TreeView.cs: doh, the Begin* events should be
17228 TreeViewCancelEventHandler.
17230 2006-12-01 Chris Toshok <toshok@ximian.com>
17232 * Form.cs: Form.ControlCollection already stores off the
17233 form_owner field. don't access the base class's internal "owner"
17236 * Control.cs: make all the fields in Control.ControlCollection
17237 private. there's no need for any internal fields here.
17239 2006-12-01 Chris Toshok <toshok@ximian.com>
17241 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17242 OnHandleCreated. Fixes bug #80109.
17244 2006-12-01 Chris Toshok <toshok@ximian.com>
17246 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17247 SplitContainer.cs, Control.cs, StatusStrip.cs,
17248 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17249 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17250 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17251 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17252 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17253 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17254 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17255 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17256 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17257 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17259 do most of the work to convert our code over to use
17260 System.ComponentModel.Component.Events for
17261 adding/removing/dispatching events.
17264 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17266 * DataGridView.cs: Fix an ArgumentNullException reported
17267 twice today in IRC.
17269 2006-11-30 Mike Kestner <mkestner@novell.com>
17271 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
17272 grabbed listbox. Fixes #80036 and #80101.
17274 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17276 * Message.cs: Changed ToString() to match MS.
17278 2006-11-30 Jackson Harper <jackson@ximian.com>
17280 * TextBoxBase.cs: You can still change the selected text on a read
17282 * TextControl.cs: Lower magic number for wrap calculations. This
17283 lets text get closer to the right (far) edge.
17285 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17287 * Control.cs: Tweak 2.0 layout properties.
17288 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17289 * TextRenderer.cs: Add a new overload.
17290 * ToolStrip*: Huge amount of changes and new features.
17292 2006-11-30 Mike Kestner <mkestner@novell.com>
17294 * ComboBox.cs: fixes for LargeChange and Maximum to get the
17295 scroll range correct. Fixes #79994.
17297 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17299 * MdiWindowManager.cs: Update main form's text when
17300 a form is closed. (fixes #80038)
17302 2006-11-30 Everaldo Canuto <everaldo@simios.org>
17305 - Fix an regression in ButtonSize.
17306 - Get ImeMode default value change to "Disable".
17307 - Get ShowTooltips default value change to true, default value is
17308 "false" but after make a test in .NET we get "true" result as default.
17310 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
17312 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17314 2006-11-29 Chris Toshok <toshok@ximian.com>
17316 * XplatUIWin32.cs (GetWindowTransparency): check return value of
17317 GetLayeredWindowAttributes. if it's 0, return 1.0, as
17318 SetWindowTransparency hasn't been called.
17320 2006-11-29 Chris Toshok <toshok@ximian.com>
17322 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17324 (set_AllowTransparency): reorder things a little so that the
17325 WS_EX_LAYERED style is removed properly.
17327 2006-11-29 Chris Toshok <toshok@ximian.com>
17329 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17331 * Form.cs: only call the XplatUI transparency method (get/set) if
17332 SupportsTransparency says it's supported. Otherwise fallback to
17333 doing nothing (in the set case) or returning the instance field we
17334 cache (in the get case).
17336 * XplatUIStructs.cs: add TransparencySupport flag enum.
17338 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17339 change to SupportsTransparency.
17341 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17342 TransparencySupport.None from SupportsTransparency.
17344 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17345 TransparencySupport.Set from SupportsTransparency.
17347 * XplatUIWin32.cs: implement GetWindowTransparency calling
17348 GetLayeredWindowAttributes, and implement SupportsTransparency by
17349 checking whether or not both
17350 GetWindowTransparency/SetWindowTransparency are available
17351 entrypoints. We need to do this since SetWindowTransparency is
17352 available as of win2k, but GetWindowTransparency requires winxp.
17355 * XplatUI.cs: Add GetWindowTransparency, and change
17356 SupportsTransparency to allow for either/both Get/Set.
17358 2006-11-29 Chris Toshok <toshok@ximian.com>
17360 * DataGrid.cs: keep from going into an infinite loop redrawing a
17361 datagrid that has no datasource. Fixes bug #80033.
17363 2006-11-29 Chris Toshok <toshok@ximian.com>
17365 * MenuItem.cs: fix the NRE when we assign text (and therefore call
17366 Invalidate) before the mainmenu has been assigned to a control.
17368 2006-11-29 Chris Toshok <toshok@ximian.com>
17370 * DataGrid.cs: detect when we should be double the double click
17371 row/column autosize stuff, although that codepath has yet to be
17372 written. part of the work for bug #79891.
17374 2006-11-29 Chris Toshok <toshok@ximian.com>
17376 * Binding.cs (SetControl): fix unit test.
17378 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17380 * PageSetupDialog.cs: Validate the margins and set them in
17382 * NumericTextBox.cs: New class to mimic the behavior of the
17383 textboxes used in the printing dialogs.
17385 2006-11-29 Andreia Gaita <avidigal@novell.com>
17387 * Form.cs: Revert previous change (remove call UpdateBounds
17388 from form constructor), because it messes with the handle creation
17389 order, and that one needs lots and lots of love.
17390 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17391 for valid printer and throw InvalidPrinterException if document
17392 is set but printer not valid), adding a MonoTODO. Once
17393 handle creation is done properly, we can put this back in.
17395 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17397 * MenuItem.cs: Create a invalidate method for menu item, to be
17398 calling from set text, it make text changes to imadiate update
17399 on screen. Fixes #80013.
17401 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17403 * ToolBar.cs: Fixes and simplify toolbar button layout, it
17404 fixes bug #80070 and some other problem on toolbar buttons
17407 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17409 * ThemeWin32Classic.cs: Paint toolbar toggle button background
17410 with dotted brush. Fixes #79564
17412 2006-11-28 Andreia Gaita <avidigal@novell.com>
17414 * Form.cs: Removed call to UpdateBounds on Form
17415 constructor, it was causing a call to CreateHandle
17416 before it was supposed to.
17417 * PrintControllerWithStatusDialog: Applied patch
17418 by Chris Toshok to hide controller when there are
17419 no printers available.
17420 PrintDialog.cs: initialize printer settings to
17421 null - correct DefaultValues test #5
17422 * PrintPreviewControl.cs: Move PrintController
17423 initialization to GeneratePreview
17424 * PrintPreviewDialog.cs:
17425 - Remove Preview generation from Document_set(). It is
17427 - Throw InvalidPrinterException on CreateHandle if
17428 a Document is set but there are no printers or
17429 printer is not valid.
17430 * ThemeWin32Classic: don't paint PrintPreviewControl
17431 if there is nothing to paint
17433 2006-11-28 Miguel de Icaza <miguel@novell.com>
17435 * Form.cs: Add another popular method.
17437 * TabPage.cs: ditto.
17439 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17441 * MenuItem.cs: Fixed a warning.
17442 * InternalWindowManager: Fixed a warning.
17444 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17447 - When cloning a menu also clone MdiList and clone the
17448 window menu items properly (as the forms and menuitems
17449 are kept in an internal hashtable, these need updating
17451 - Rewrote the window menu code, menu items are added in the
17452 order the forms were added to their parent, and they are
17453 updated every time the window menu is shown (before the
17454 list was only generated once, in the current order of the
17455 forms, and would never be updated). A checkmark is shown
17456 next to the item corresponding to the active mdi child.
17458 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17460 * XplatUIStructs.cs:
17461 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17464 - Added TME_NONCLIENT to TMEFlags.
17465 - Handles WM_NCMOUSEMOVE in GetMessage to
17466 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17468 * MdiWindowManager:
17469 - Now merges mdi child menu to parent menu when maximized.
17470 - Recalculate NC areas of both mdi child and mdi parent.
17472 on window state and size changes.Fixes #79844 (3).
17473 - Handle WM_NCCALCSIZE to properly calculate borders.
17476 - Add/remove to the mdi containers list of mdi children
17477 in the order they are added.
17478 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
17479 to the maximized mdi child.
17481 * InternalWindowManager.cs:
17482 - Only execute a click on the control buttons on the mouse up,
17483 not on the mouse down. Show the state of the button
17484 (was only showing Normal state, never Pressed state). The
17485 pressed button now follows the mouse (if you click the Close
17486 button and move the mouse over the Maximize button, the
17487 Maximize button will be shown as pressed). Since Win32 does
17488 not generate WM_NCLBUTTONUP if you release the button outside
17489 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17492 * ThemeWin32Classic.cs:
17493 - Draw a missing border around mdi child forms. Fixes #79844 (2).
17496 - Added a list of forms which contains the order the forms are
17497 added to the mdi parent.
17498 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17499 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17500 - If the active form changes set the scrollbars to the top
17501 of the Z order, otherwise the form could hide them.
17502 - Scrollbars are now sized according to ClientSize, not
17503 to Size, and they take into account the other scrollbar
17504 to determine maximum.
17506 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17509 * XplatUIDriver.cs:
17513 - Added RequestAdditionalWM_NCMessages for windows to
17514 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17515 Currently only implemented in XplatUIWin32.
17517 2006-11-27 Chris Toshok <toshok@ximian.com>
17519 * Hwnd.cs: only add the hwnd to the windows hash in
17520 set_WholeWindow and set_ClientWindow if whole_window/client_window
17521 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
17523 2006-11-27 Mike Kestner <mkestner@novell.com>
17525 * ComboBox.cs: remove redundant OnDropDown call. It is called
17526 from the ComboListBox.ShowWindow code. Fixes #79969.
17528 2006-11-27 Chris Toshok <toshok@ximian.com>
17530 * Hwnd.cs: remove the setters for ExposePending and
17531 NCExposePending - noone uses them.
17533 2006-11-27 Jackson Harper <jackson@ximian.com>
17535 * TextControl.cs: new param for ReplaceSelection which determines
17536 whether we select the new selection, or set the cursor to the end
17537 of the new selection.
17538 * TextBoxBase.cs: Use new param for ReplaceSelection. When
17539 pasting, select the new text.
17540 * RichTextBox.cs: Use new param for ReplaceSelection.
17542 2006-11-27 Jackson Harper <jackson@ximian.com>
17544 * TextBoxBase.cs: Set the selection to the caret after the caret
17545 is moved, otherwise they get out of sync.
17547 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17549 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17552 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17554 * ThemeWin32Classic.cs:
17555 - Fix toolbar drop down arrow position.
17556 - Fix drop down appearance when ToolBar.Appearance is normal,
17559 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
17561 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17562 * Control.cs: Same.
17563 * UpDownBase.cs: Same.
17564 * ButtonBase.cs: Same.
17565 * ScrollBar.cs: Same.
17566 * TrackBar.cs: Same.
17567 * PictureBox.cs: Same.
17568 * UserControl.cs: Same.
17570 * ListControl.cs: Same.
17571 * TextBoxBase.cs: Same.
17572 * ListView.cs: Same.
17573 * RichTextBox.cs: Same.
17574 * TreeView.cs: Same.
17576 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
17579 - Text label for where
17580 - Text label comment was not shown
17582 2006-11-23 Everaldo Canuto <everaldo@simios.org>
17584 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17586 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17588 * InternalWindowManager.cs:
17589 - Handle WM_PARENTNOTIFY to activate the form
17590 if any child control is clicked.
17591 - The form is only sizable if not minimized.
17593 * MdiWindowManager.cs:
17594 - Save the IconicBounds if the form is moved.
17595 - Rework SetWindowState, now the window bounds
17596 are stored only if the old window state is Normal.
17599 - In SetWindowStates store the old window state if
17600 the window is maximized and restore window state if
17601 the window looses focus.
17602 - Don't handle any scrollbar value changes if
17603 initializing the scroll bars. Fixes #79771.
17604 - Reworked ArrangeIconicWindows. Current algorithm
17605 tests bounds agains all other minimized windows, if
17606 any intersections create new bounds (going left to
17607 right, bottom to top) and then test again. When
17608 successful the bounds are saved and never computed
17609 again. Fixes #79774.
17611 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17613 * InternalWindowManager.cs: Added HandleTitleBarUp.
17615 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17617 * NumericUpDown.cs: In .NET 1.1, user entered text is still
17618 hexadecimal in ParseUserEdit.
17621 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17623 * MdiWindowManager.cs:
17624 - Handle a click on the form's icon to show the
17625 system menu (when maximized). Fixes #79775.
17626 - Change the existing click handler for the form's
17627 icon when not maximized to show on MouseUp.
17630 * Form.cs: In OnResize only layout the mdi child's
17631 parent if it actually has a parent. Might not if
17632 the window is closing.
17635 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17637 * MdiClient.cs: Ignore active MDI client for text of parent, if
17638 child has no text set.
17640 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17642 * ToolBar.cs: Fixed ToString to match MS.
17644 2006-11-22 Andreia Gaita <avidigal@novell.com>
17647 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
17648 update inner values on set. Fixes #79966.
17649 - Override OnLostFocus to update value on NET 2. Fixes #79950.
17650 - Fix hexadecimal parsing.
17652 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
17653 parent. Fixes #79957
17655 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17657 * Control.cs: After calling SetWindowsPos in SetBoundsCore
17658 the actual size has to be queried, since if height /
17659 width is negative Win32 changes it to 0.
17660 Fixes #79999 on Windows.
17662 * XplatUIX11.cs: Set height / width to 0 if negative
17663 in SetWindowPos. Fixes #79999 on Linux.
17665 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17667 * ThemeWin32Classic.cs: Fix text redenring when button is
17670 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17672 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17673 and later navigate by mouse. Fixes #79528.
17675 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17677 * ToolBar.cs: Set default value for TabStop to false in
17678 constructor, it fixes remaining behavior of bug #79863.
17680 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17682 * MdiWindowManager.cs:
17683 * InternalWindowManager.cs:
17684 - Moved a few methods specific to Mdi from
17685 InternalWindowManager to MdiWindowManager.
17688 2006-11-21 Chris Toshok <toshok@ximian.com>
17690 * XplatUIOSX.cs: stub out InvalidateNC.
17692 * XplatUIWin32.cs: implement InvalidateNC using the call I found
17693 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17695 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17697 * XplatUIDriver.cs: add InvalidateNC abstract method.
17699 * XplatUI.cs: add InvalidateNC.
17701 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17703 * ToolBar.cs: Invalidate complete button area when pressed status
17705 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17706 * ThemeWin32Classic.cs: Increase vertical and horizontal position
17707 by 1 when button is pressed.
17709 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17711 * ToolButton.cs: Invalidate middle of DropDown button when
17712 ToolBar theres DropDownArrows.
17713 * ThemeWin32Classic.cs: Change position of DropDown arrow and
17714 fix DropDown drawing operations.
17716 2006-11-20 Chris Toshok <toshok@ximian.com>
17718 * NativeWindow.cs: fix the formatting of functions ('{' on the
17719 following line), and enable the thread exception dialog.
17721 * Application.cs: remove the duplicate exception catching from
17724 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17726 * Toolbar.cs: Triggers button click event when click on icon
17727 of dropdown ToolBarButton. Fixes #79912.
17729 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17732 * ThemeWin32Classic.cs:
17733 - Added a property WindowBorderFont to enable themeing
17734 of mdi child windows' Text.
17736 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17738 * InternalWindowManager.cs:
17741 * MdiWindowManager.cs:
17742 - If mdi child is maximized, set mdi parent's
17743 text to "Parent - [Child]". Fixes #79770.
17744 - If there is any maximized mdi child windows, only the active
17745 window (and any new windows) is maximized, the rest are normal.
17746 - On a WindowState change only save mdi child's window bounds
17747 if the old window state was normal. Fixes #79774.
17748 - The scroll bars are now calculated on hopefully all
17749 necessary events. Fixed #79771 / #79844->6 / #79906.
17750 - MdiClient.SizeScrollBars() now takes into account docked
17751 controls in the parent when calculating available space.
17752 - InternalWindowManager now always repaints the entire title
17753 area. Fixes #79844->1/4/5.
17754 - Added RequestNCRecalc on mdi child windowstate changes.
17757 2006-11-20 Mike Kestner <mkestner@novell.com>
17759 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17760 in the MouseUp handler of the listbox and move the return handling
17761 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
17763 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17765 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
17767 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17769 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17770 working in 1.2.x anymore. So, updated.
17772 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
17774 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17775 NumberGroupSeparator of current culture instead of assuming en-US.
17778 2006-11-17 Mike Kestner <mkestner@novell.com>
17780 * Control.cs: Add the concept of implicit bounds setting so that
17781 dock/undock round trips preserve explicitly set size/locations.
17784 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17786 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17787 can't handle those filters. (Fixes bug #79961)
17789 2006-11-17 Chris Toshok <toshok@ximian.com>
17791 [ fixes the exit/crashes associated with #79835. it's clearly
17792 suboptimal though, we need to figure out a better way to solve
17795 * PrintPreviewControl.cs: deal with the new invalid printer
17798 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17799 and return false (so CommonDialog.ShowDialog doesn't actually show
17802 * PrintDialog.cs: enable/disable the Ok button depending on
17803 whether or not the printer is valid.
17805 * CommonDialog.cs (ShowDialog): only actually show the form if
17806 RunDialog returns true.
17808 2006-11-17 Jackson Harper <jackson@ximian.com>
17810 * TextControl.cs: When soft splitting a line, mark it as a soft
17811 split line. Also carry over the current line break to the next
17814 2006-11-17 Chris Toshok <toshok@ximian.com>
17816 * XplatUIX11.cs: when scrolling a window with an invalid area, we
17817 only want to shift the part of the invalid area that overlaps the
17818 area we're scrolling. we also don't want to clear the invalid
17819 area unless the invalid area was entirely contained within the
17822 2006-11-16 Chris Toshok <toshok@ximian.com>
17824 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17825 also make sure to free the memory returned by XGetWindowProperty
17828 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17830 2006-11-16 Chris Toshok <toshok@ximian.com>
17832 * XplatUI.cs: add a new super secret way to get at the totally
17833 unsupported X11 backend.
17835 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
17837 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17839 2006-11-16 Jackson Harper <jackson@ximian.com>
17841 * TreeView.cs: Allow more explicit setting of top node position
17842 for scrollbars. Slower algo, but more accurate.
17843 - CollapseAll should maintain the current top node.
17844 * TextBoxBase.cs: When positioning the caret, use the line, pos
17845 method, since the x, y method does not grab the correct tag, and
17846 the caret height never gets set correctly. (Maybe I should just do
17847 away with the caret having its own height, and always use the
17848 carets current tag for height).
17850 2006-11-16 Jonathan Pobst <monkey@jpobst.com
17852 [Fixes 79778, 79923]
17854 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17855 Parent to the FosterParent instead.
17857 2006-11-16 Jackson Harper <jackson@ximian.com>
17859 * TreeView.cs: Need to recalc the topnode when we expand or
17860 collapse. The scrolling methods can't handle this on their own,
17861 since they use differences between the last scroll position, and
17862 those difference get completely messed up since we are expanding
17863 nodes. This problem should probably be fixed in the scrolling
17864 methods, so they can figure out exactly where they are, but this
17865 will slow things down a little.
17866 * ThemeWin32Classic.cs: Special case for groupboxes with empty
17867 strings, makes nunit-gui look a lot nicer.
17869 2006-11-16 Chris Toshok <toshok@ximian.com>
17871 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17872 the broken multithreaded event handling we have in here. File
17873 this entry under "Why we should move to the new X11 backend".
17875 Any thread can make it into UpdateMessageQueue, which gets events
17876 from the X socket - some of which could belong to hwnds being
17877 managed by a different thread. We can also have multiple threads
17878 in UpdateMessageQueue at the same time, with each one reading from
17879 the X socket. This leads to many problems, with the following
17882 We can't use hwnd.Queue.Enqueue anywhere in here and must use
17885 The MotionNotify compression we do can't work across threads
17886 (without locking the entire queue, perhaps) since we call
17887 hwnd.Queue.Peek, so we just punt and don't compress motion events
17888 unless the owning thread is the one which got the X event.
17890 ConfigureNotify is another fun one, since it modifies the hwnd's
17891 bounds and then enqueues the event. We add a lock to Hwnd which
17892 is held when setting configure_pending to true (and enqueuing the
17895 There is a race wrt the wake socket. we need to make sure that
17896 only 1 thread is waiting on that socket, or else a thread could
17897 sleep waiting for data that never comes. It's difficult (but not
17898 impossible) to make happen, because it seems to require something
17899 like the following:
17901 1. Thread 1 polls on wake_receive
17903 2. poll returns saying there's data to be read on
17906 3. Thread 2 polls on wake_receive and immediately returns
17907 saying there's data to be read.
17909 4. Thread 2 reads the wakeup byte from wake_receive
17911 5. Thread 1 attempts to read the wakeup byte from
17914 6. Thread 2 exits (due to a form closing, perhaps).
17916 7. Thread 1 blocks forever.
17920 Fixing the Expose handling isn't done yet, and the races inherent
17921 in that piece of code are responsible for the drawing mistakes you
17922 see when generating expose events in a MT app (like NPlot). This
17923 one is the likely to be the hardest to bandaid, and it doesn't
17924 appear to cause anything but drawing problems. The other issues
17925 caused apps to exit or hang.
17927 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17928 called from a different thread than the one that should be calling
17931 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17933 2006-11-15 Chris Toshok <toshok@ximian.com>
17935 * Application.cs: null out the context's MainForm when we exit
17936 RunLoop. Fixes a newly checked in unit test as well as the last
17937 ODE from bug #79933.
17939 2006-11-15 Chris Toshok <toshok@ximian.com>
17941 * Form.cs (set_Owner): allow a null value so we can clear the
17943 (Dispose): set all our owned_form's Owner properties to null, and
17944 clear the owned_forms collection.
17945 (WM_CLOSE): clean up this a little bit.. still not right though.
17947 * ApplicationContext.cs: OnMainFormClosed should only call
17948 ExitThreadCore if the main form isn't recreating. Fixes unit
17951 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17955 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17957 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17961 * Hwnd.cs: Add a flag to show a window, but not activate it, to
17962 keep popup window types from stealing focus from the main form
17965 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17967 * MenuAPI.cs: Set above flag to true.
17969 2006-11-15 Chris Toshok <toshok@ximian.com>
17971 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17972 the button being released is not in wParam.
17974 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17976 * Form.cs: Add the released button to MouseEventArgs.Button
17977 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
17980 2006-11-15 Chris Toshok <toshok@ximian.com>
17982 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17983 GetText(). untested because it's unused in our implementation.
17984 Control.Text always caches the text, even if
17985 ControlStyles.CacheText is not set.
17989 2006-11-15 Chris Toshok <toshok@ximian.com>
17993 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17994 message. no hiding, no disposing.
17996 in the WM_CLOSE handler, hide the form if it's modal.
17998 2006-11-15 Chris Toshok <toshok@ximian.com>
18000 * XplatUIX11.cs: use AddExpose instead of sending a message.
18001 fixes textbox border drawing.
18003 2006-11-15 Chris Toshok <toshok@ximian.com>
18005 * PropertyGridView.cs: keep from crashing on mouse move/down when
18006 the property grid is empty.
18008 2006-11-14 Jackson Harper <jackson@ximian.com>
18010 * TextControl.cs: Make PageUp and PageDown more like the MS
18012 * TextBoxBase.cs: When we set the text property position the
18013 cursor at the beginning of the document.
18015 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18017 * Form.cs: if a mdi child's WindowState has changed
18018 before it's creation, it would display wrong control
18021 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
18023 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18026 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18028 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
18029 the window gets to paint its borders even if the window is
18032 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
18033 otherwise the old control buttons would still be painted
18034 if the window gets bigger.
18036 * PaintEventArgs.cs: add an internal method so that the clip
18037 rectangle can be changed.
18039 2006-11-13 Chris Toshok <toshok@ximian.com>
18041 [ fixes bug #79745 ]
18043 * NotifyIcon.cs: lots of cleanup.
18045 * X11Structs.cs: add an enum for XEMBED messages.
18047 * XplatUIX11.cs: reindent one of the giant switch statements, it
18048 was taking up an additional tab stop, and this file is already way
18049 too wide for my laptop's screen.
18051 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
18052 we get it, resize the hwnd to the WMNormalHints max_width/height.
18054 2006-11-13 Jackson Harper <jackson@ximian.com>
18056 * TextBoxBase.cs: Compute the value changes for the mouse wheel
18059 2006-11-13 Chris Toshok <toshok@ximian.com>
18061 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18062 #79898. force a reference to the Region to stick around so the
18063 unmanaged object isn't collected (rendering our handle in the MSG
18066 2006-11-13 Chris Toshok <toshok@ximian.com>
18068 * XplatUIX11.cs: fix #79917 for window managers which support
18070 using XStoreName on the raw utf8, and we need to convert to
18071 COMPOUND_TEXT if it's non-latin1.
18073 2006-11-13 Chris Toshok <toshok@ximian.com>
18075 * Form.cs (set_DialogResult): we need to set closing to false if
18076 we're setting our result to None. fixes bug #79908.
18078 2006-11-13 Jackson Harper <jackson@ximian.com>
18080 * TextControl.cs: When formatting text, compute the adjusted tag
18081 lengths correctly, using FindTag for the end tag instead of trying
18082 to figure it out outselves.
18083 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
18084 the item, ItemHeight doesn't work, because trees with large
18085 imagelists use those for their height
18086 * TreeView.cs: ActualItemHeight factors in the image height
18087 - compute left edge of checkboxes correctly
18088 - when expanding/collapsing move the bottom down one pixel, so we
18089 aren't moving part of the node
18091 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18093 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
18094 stack in PaintEventStart so that it won't get disposed by the gc
18095 before reaching PaintEventEnd.
18097 2006-11-13 Jackson Harper <jackson@ximian.com>
18099 * TextBoxBase.cs: Don't select the word if we are on a line with
18101 - We don't need to position the caret on mouse up, since the mouse
18102 move handler should be doing this
18103 - When double clicking a blank line, the caret is advanced to the
18106 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
18108 * TreeNodeCollection.cs: Avoid duplicating indexer code.
18110 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
18112 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
18113 Fixes part of bug #79910.
18115 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
18117 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
18118 (bug #79903). Some minor string updates to match ms.
18120 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18122 * FileDialog.cs: Don't add an extension if the filename
18123 already ends with that extension.
18125 2006-11-10 Jackson Harper <jackson@ximian.com>
18127 * TreeView.cs: Use the currently highlighted node for the
18128 BeforeSelect event.
18129 * TextBoxBase.cs: There is no need to expand selection on
18131 - CanUndo means 'is there any undo operations', not 'is undo
18132 allowed on this textcontrol. Fixed ClearUndo unit test.
18134 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
18136 * Button.cs: only perform click when button is Selectable (so as
18137 not to activate default buttons when they're disabled)
18139 * Control.cs: Rewrite of the SelectNextControl and related
18140 methods. HandleClick now selects next control if the current one
18143 * Form.cs: OnActivated selects next active control only if Load
18144 has already occurred. If Load hasn't run, there's no point in
18145 selecting here, Load might change the state of controls.
18147 * FocusTest.cs: Tests marked as working again for these fixes
18149 2006-11-10 Chris Toshok <toshok@ximian.com>
18151 * XplatUIX11.cs: a couple of fixes.
18153 - use XInternAtoms with almost all the atoms we need to register,
18154 instead of many, many calls to XInternAtom. should help a bit on
18155 startup time, at the expense of making the code look a little
18158 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
18159 isn't reparented (which seems to be a clue that we're running fon
18160 compiz) and they have an Owner form. This fixes the tool windows
18161 in paint.net when running under compiz.
18163 - when setting the opacity of a window, support both the case
18164 where the window has been reparented and also when it hasn't been.
18165 Since compiz/beryl doesn't seem to reparent windows, and these are
18166 the only window managers which support translucency, I'm not sure
18167 why we need the hwnd.reparented case at all.. but leave it in.
18168 now we get translucent windows in paint.net under compiz/beryl.
18170 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18172 * FileDialog.cs: Always return the value for FilterIndex that
18173 was set. Internally convert it to values that make sense.
18175 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18177 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18179 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18181 * Toolbar.cs: Change default value of DropDownArrows to true, the
18182 signature still using false to make it compatible with MS but the
18183 initial value is true. Fixes #79855.
18185 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18187 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18188 only available on Linux.
18190 2006-11-09 Everaldo Canuto <everaldo@simios.org>
18192 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18193 reduce number of calls to redraw method during toolbar creation.
18195 2006-11-09 Mike Kestner <mkestner@novell.com>
18197 * ListView.cs : raise SelectedIndexChanged when an item is selected
18198 programmatically via the Item.Selected property. Gert's nice
18199 ListViewSelectedIndexChanged test fixture now runs clean.
18201 2006-11-09 Mike Kestner <mkestner@novell.com>
18203 * ListView.cs : raise SelectedIndexChanged when a selected item is
18204 removed from the item collection using Remove or RemoveAt.
18206 2006-11-09 Mike Kestner <mkestner@novell.com>
18208 * ListView.cs : raise SelectedIndexChanged once per selected item
18209 for compat with MS. Fixes #79849+.
18211 2006-11-09 Chris Toshok <toshok@ximian.com>
18213 * TabControl.cs: initialize row_count to 0, and set it to 1 when
18214 we need to (if we have any tab pages). Fixes unit test.
18216 2006-11-09 Chris Toshok <toshok@ximian.com>
18218 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18219 width is 0, not 3. Fixes a unit test.
18221 2006-11-09 Mike Kestner <mkestner@novell.com>
18223 * ListView.cs : use Implicit scrollbars so that focus isn't
18224 stolen from the listview when they are clicked. Fixes #79850.
18226 2006-11-09 Chris Toshok <toshok@ximian.com>
18228 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18229 have a root item. Fixes #79879.
18231 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
18235 - An ArgumentException is now thrown if a wrong filter
18236 is applied (matches ms). The previous filter doesn't change
18237 anymore if an exception is thrown.
18238 - Changing the FileName property also affects FileNames
18239 * ColorDialog.cs: The length of the CustomColors array is always
18240 16. It doesn't matter if we use a smaller array or null to update
18241 or change the custom colors property.
18242 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18243 for RootFolder if we get a undefined value.
18245 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18247 * StatusBarPanel.cs:
18248 - Width is set to MinWidth if Width is smaller than
18249 MinWidth. Fixes #79842.
18250 - MinWidth now always overrides Width (MSDN says MinWidth
18251 is set to Width when AutoSize = None, but they do not
18253 - Style has now the the correct default value.
18255 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18258 - The control is completely invalidated on
18259 Got/LostFocus to draw the focus rectangle correctly.
18260 - When AutoSize then height is always 45 (width for
18261 vertical controls).
18263 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18264 on the mouse when moved and it doesn't move when grabbed
18265 until the mouse moves as well. Also fixed some wrong
18266 calculations when clicking on the thumb (control thought
18267 click was outside of thumb and didn't grab it).
18268 Fixes some of the issues in #79718.
18270 2006-11-08 Everaldo Canuto <everaldo@simios.org>
18272 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18274 2006-11-08 Chris Toshok <toshok@ximian.com>
18276 * PropertyGridView.cs: only call ToggleValue if the item is not
18279 2006-11-08 Jackson Harper <jackson@ximian.com>
18281 * TextBoxBase.cs: The RichTextBox and textbox have very different
18282 word selection methods. Implement the textbox's simple word
18283 selection here, and let the RichTextBox override and provide it's
18285 - Don't do extra selection on mouseup
18286 * RichTextBox.cs: Use the documents word selection algorithm, I
18287 think ideally, this function will be pulled into the
18288 RichTextBox.cs code someday.
18290 2006-11-08 Chris Toshok <toshok@ximian.com>
18292 * RootGridEntry.cs: new class to represent GridItemType.Root.
18294 * CategoryGridEntry.cs: reformat, and add boilerplate.
18296 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18297 returns the UI parent anyway, and we need special handling to
18298 implement the GetTarget method in the face of it. Also, implement
18301 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
18302 a root grid item, and use that instead of PropertyGrid.grid_items.
18303 Also, make use of TypeConverters (and add limitted support for
18304 ICustomTypeDescriptors) when initially populating the grid.
18305 Arrays now show up more or less properly.
18307 2006-11-08 Chris Toshok <toshok@ximian.com>
18309 * Application.cs: set the modal dialog to non modal after we close
18310 it. Fixes bug #79866.
18312 2006-11-08 Jackson Harper <jackson@ximian.com>
18314 * TextControl.cs: When combining lines carry over the line end
18315 style from the end line.
18316 - Invalidate the selected area when setting it, if it is visible.
18317 * TextBoxBase.cs: Only rich text box can do full line selects.
18318 - Make sure to set the cursor position when there is a click,
18319 otherwise two clicks in separate areas could cause a large chunk
18322 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18324 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
18327 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18329 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18330 time. Remove tooltips when ToolButton click events. Fixes #79856.
18332 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18334 * MenuAPI.cs: Ignore right click for menu actions and fixes
18335 menu border when clicked. Fixes #79846.
18337 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18339 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18340 MouseState after create wParam for message, this fixes mouse button
18341 equal none in mouse up events.
18343 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
18345 * Control.cs : Focus() now calls Select to set the Container's
18346 Active Control and to give it focus. To avoid infinite recursion
18347 (because ActiveControl also calls Focus at one point), a check
18348 is made in Focus with the help of a new internal variable
18351 2006-11-07 Mike Kestner <mkestner@novell.com>
18353 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18354 if there's a selection. Fixes #79849.
18356 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
18358 * PropertyGrid.cs: Avoid fixed height of help description label.
18359 Fixes part of bug #79829.
18361 2006-11-07 Chris Toshok <toshok@ximian.com>
18363 * XplatUIX11.cs: fix #79790 again, by using the
18364 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18366 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18368 * ToolBar.cs: Fix left click checking.
18370 2006-11-07 Chris Toshok <toshok@ximian.com>
18372 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
18374 2006-11-07 Chris Toshok <toshok@ximian.com>
18376 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
18377 PropertyManager unit tests.
18379 * PropertyManager.cs: make property_name internal.
18381 2006-11-07 Chris Toshok <toshok@ximian.com>
18383 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18384 pass a unit test. Also, don't set image_index to anything in
18385 response to setting the ImageList property.
18387 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18389 * ToolBar.cs: Ignore click events when mouse button is not a
18390 left button, only accepts other button for dropdown menus.
18393 2006-11-07 Chris Toshok <toshok@ximian.com>
18395 * DataGrid.cs: make the back and parent row buttons a little less
18398 2006-11-07 Jackson Harper <jackson@ximian.com>
18400 * TextBoxBase.cs: When converting to Text don't put line breaks in
18401 for soft line breaks.
18402 * TextControl.cs: There is an initial "fake" line in the document,
18403 this is now a soft break line, so that an extra line feed doesn't
18404 get added to the end of documents.
18406 2006-11-07 Chris Toshok <toshok@ximian.com>
18410 * CurrencyManager.cs: if the list is readonly, don't bother
18411 checking if IBindingList.AllowNew is true.
18413 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18414 for non-DataRowView datasources.. or rather, make it not crash.
18415 (DataGridPaintRelationRow): make sure we limit the row painting to
18416 the area not covered by the row header, and make our cell width at
18417 least large enough to cover the relation area. This allows grids
18418 that have relations but no rows to render correctly.
18419 (DataGridPaintRowContents): same type of changes here.
18420 (SetDataSource): move back to always calling
18421 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
18422 navigating back through relations.
18423 (HitTest): handle the case where we have no cells but have
18424 relations. Right now we generate a hit in cell 0 of whatever the
18425 row is, not sure if this is strictly correct, but it works for our
18428 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18429 bother doing anything.
18431 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
18433 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18434 early version of StatusStrip. Not responsible for eaten
18435 application or firstborn children.
18437 2006-11-06 Chris Toshok <toshok@ximian.com>
18439 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18440 call GetTabRect with a -1 index. Fixes #79847.
18442 2006-11-06 Jackson Harper <jackson@ximian.com>
18444 * TreeNodeCollection.cs: Update scrollbars after clearing.
18446 2006-11-06 Chris Toshok <toshok@ximian.com>
18448 * NumericUpDown.cs: fix the ToString method for some unit test
18451 2006-11-06 Chris Toshok <toshok@ximian.com>
18454 - set the initial SelectedGridItem if we can.
18456 - Exclude non-mergable properties only if we're merging > 1
18457 object. Merging 1 object isn't really merging, obviously.
18459 - Handle PropertySort.NoSort just like Alphabetical, which is
18460 wrong of course, but at least gets things on the screen.
18462 * PropertyGridView.cs:
18463 - Add method "FindFirstItem" which finds the first property grid
18464 item, so we can select it by default.
18466 - make use of GridEntry.CanResetValue.
18468 - Don't call RedrawBelowItemOnExpansion here anymore, the
18469 individual GridEntry's will do that.
18471 - Remove the ITypeDescriptorContextImpl internal class.
18474 - this class needs to implement ITypeDescriptorContext, as it's
18475 what MS's PropertyDescriptorGridEntry does, which means we can
18476 remove the ITypeDescriptorContextImpl internal class from
18477 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
18479 - keep a reference to our PropertyGridView, and move the call to
18480 RedrawBelowItemOnExpansion here from PGV. This means
18481 programmaticly setting Expanded actually does something visible.
18483 - add a CanResetValue() function which takes into account our
18484 possibly multiple "selected_objects" in the merged case. Shifting
18485 PropertyGridView to use this method fixes another unreported
18486 crasher found running the test for #79829.
18488 - when Top or Bounds is updated, make sure the PropertyGridTextBox
18489 is updated to reflect this.
18491 * CategoryGridEntry.cs: the ctor takes the PGV now.
18493 2006-11-06 Jackson Harper <jackson@ximian.com>
18495 * TextControl.cs: These are 1 based.
18496 * TextBoxBase.cs: When setting the selected text, don't change the
18497 selected text tags, this is done by ReplaceText, just position the
18498 cursor at the end of the new text.
18500 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18502 * ListView.cs: Allow label edit only when, when LabelEdit is
18505 2006-11-06 Jackson Harper <jackson@ximian.com>
18507 * TextControl.cs: If a suitable wrapping position isn't found,
18508 just wrap right in the middle of a word.
18510 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18512 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18515 2006-11-06 Jackson Harper <jackson@ximian.com>
18517 * TreeView.cs: Can't use the VisibleCount property when setting
18518 scrollbar heights, because this doesn't take into account whether
18519 or not the horz scrollbar just came visible.
18521 2006-11-05 Everaldo Canuto <everaldo@simios.org>
18523 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18524 activated. Fixes #79369, #79832.
18526 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
18528 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18529 had to remove support for links that point to a directory. FileInfo
18530 returns no usefull information (means, the directory they point to)
18531 for such links. Replaced some empty string ("") with String.Empty.
18533 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18535 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
18536 NullReferenceException when attempting to remove node that is not in
18537 collection. Throw NullReferenceException when null is passed to
18538 Remove. Allow first element of the collection to be removed. Fixes
18539 bug #79831. In GetEnumerator ().Current return null if positioned
18540 before the first element of the collection. In GetEnumerator ().Reset,
18541 position before first element of the collection.
18543 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18545 * PropertyGrid.cs: To match MS, remove default title and description
18546 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18549 2006-11-04 Chris Toshok <toshok@ximian.com>
18551 * Theme.cs: add a Clamp method, just for kicks.
18553 * ThemeWin32Classic.cs: clamp all color components to [0..255].
18555 2006-11-04 Chris Toshok <toshok@ximian.com>
18557 * Form.cs: if the form isn't visible, Close() does nothing.
18559 2006-11-03 Chris Toshok <toshok@ximian.com>
18561 * Form.cs (Close): if the form is modal, don't Dispose of it, only
18563 (WndProc): don't Dispose after handling the WM_CLOSE message.
18565 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18566 them as such, instead of using casts from Control to Form. Also,
18567 don't Dispose of the modal dialog when we fall out of the loop -
18568 Close() it instead.
18572 2006-11-03 Chris Toshok <toshok@ximian.com>
18574 * Control.cs (Dispose): only go through the dispose thing if we're
18575 @disposing, and we haven't already been disposed. Fixes bug
18578 * Form.cs: no reason to call "base.Dispose()" here instead of
18581 2006-11-03 Mike Kestner <mkestner@novell.com>
18583 * ComboBox.cs : use ToString instead of casts in AddItem for
18584 sorting functionality. Fixes #79812.
18586 2006-11-03 Chris Toshok <toshok@ximian.com>
18588 * Application.cs: pave the way for actually using the thread
18589 exception dialog. it's ifdefed out at the moment.
18591 2006-11-03 Chris Toshok <toshok@ximian.com>
18593 * ThreadExceptionDialog.cs: until we get a better layout, actually
18594 hide the details textbox and label when we shouldn't see them.
18596 2006-11-03 Jackson Harper <jackson@ximian.com>
18598 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18599 multiline textboxes anymore. This method also determines the
18600 width/height of a textboxes canvas area.
18601 - Sorta a revert of the last patch. For multiline just position
18602 the controls, then bail. This way the scrollbar width won't be
18605 2006-11-03 Everaldo Canuto <everaldo@simios.org>
18607 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18608 it dont need. Fixes #79537.
18610 2006-11-02 Jackson Harper <jackson@ximian.com>
18612 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
18613 send the status after firing the DndOver event.
18615 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18617 * TrackBar.cs: Now orientation only switches height / width if
18618 the control's handle is created (Win32 does it like this). Also
18619 fixed a typo in ToString() for a test to pass, changed the
18620 exception thrown in set_LargeChange and set_SmallChange to
18621 match Win32 behaviour, and added TrackBar tests to the unit
18624 2006-11-02 Chris Toshok <toshok@ximian.com>
18626 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18627 not _NET_WM_STATE_NO_TASKBAR.
18629 2006-11-02 Jackson Harper <jackson@ximian.com>
18631 * TextControl.cs: Increment count by one, since in the update view
18634 2006-11-02 Jackson Harper <jackson@ximian.com>
18636 * TextBoxBase.cs: Use client rectangle not bounds for checking if
18637 the mouse is in the client rectangle (duh).
18639 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18641 * TrackBar.cs: Fixed trackbar jumping around when clicking
18642 on it - the trackbar was not detecting correctly at which
18643 side of the thumb the click was done. (fixes #79718)
18645 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18647 * ListBox.cs: scroll visible area when change SelectedIndex to
18648 a non visible area. Fixes #79481.
18650 2006-11-01 Jackson Harper <jackson@ximian.com>
18652 * TextControl.cs: When replacing the selection move the selection
18653 start/end/anchor to the end of the new text.
18655 2006-11-01 Jackson Harper <jackson@ximian.com>
18657 * XplatUIWin32.cs: When setting the parent change the controls
18658 visibility to it's visibility flag, not to it's old parents
18659 visibility (.Visible walks the parent chain).
18661 2006-11-01 Chris Toshok <toshok@ximian.com>
18663 * XplatUIX11.cs: revert the #79790 fix, as the simple.
18664 XSetTransientForHint fix breaks paint .net's tool windows. more
18665 work needed for that one.
18667 2006-11-01 Chris Toshok <toshok@ximian.com>
18669 * ScrollBar.cs: throw ArgumentException instead of Exception in
18670 LargeChange/SmallChange setters. fixes unit tests.
18672 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18674 * ContainerControl.cs: reverted rev.67183 (which was itself
18675 a reversion of rev.66853... eh).
18677 * Control.cs: Fixes Reflector hang by changing Focus() call
18678 to what it was before rev.66643 (calling Select() here sets
18679 ActiveControl, which in some situations calls back Focus and
18680 eventually does a stack overflow). Temp fix.
18681 Changes to GetNextControl() to not look for children to select when
18682 parent cannot be selectable (so it looks for siblings instead)
18684 2006-10-31 Mike Kestner <mkestner@novell.com>
18686 * CheckedListBox.cs : off by one error in returned index from
18687 ObjectCollection.Add. Fixes #79758.
18689 2006-10-31 Chris Toshok <toshok@ximian.com>
18691 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18692 calls for the textbox/spinner, to keep from recursing to the point
18693 where we crash. Fixes #79760.
18695 2006-10-31 Chris Toshok <toshok@ximian.com>
18697 * ListControl.cs (set_SelectedValue): don't throw exceptions on
18698 null/"" value, just return. matches ms's behavior and fixes some
18701 2006-10-31 Chris Toshok <toshok@ximian.com>
18703 * Control.cs (set_Capture): make a logic a little easier to
18706 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18707 if it's being destroyed. A necessary fix surely, but a bandaid
18708 also, to fix the stuck capture problem in bug #78413.
18710 2006-10-31 Chris Toshok <toshok@ximian.com>
18712 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18713 convention of clearing hwnd.ClientRect when we set the
18714 width/height (so it'll be recalculated by Hwnd).
18716 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18718 * ContainerControl.cs: reversed Contains check from
18719 ActiveControl due to hanging problems. This fix
18720 partly regresses #79667 (button does not have
18721 initial focus), so this might be a symptom for
18722 a larger parenting problem (set_ActiveControl
18723 is being called but the child control does
18724 not have the parent set yet?)
18726 2006-10-31 Mike Kestner <mkestner@novell.com>
18728 * MenuAPI.cs : fix keynav when menu is click activated.
18730 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
18732 * ToolStrip*: Version 0.2.
18734 * MenuStrip.cs: Version 0.1.
18736 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18738 2006-10-30 Chris Toshok <toshok@ximian.com>
18740 [ fixes the oversized notify icon issue in bug #79745 ]
18742 * NotifyIcon.cs: scale the icon down to the size we're given by
18743 the XplatUI layer (this would be faster if we did it once instead
18744 of whenever we paint..) Also, remove the WM_NCPAINT handling,
18745 since it's never invoked.
18747 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18748 pixels high by default, so let's hardcode our systray icon to that
18749 size. The SYSTEM_TRAY protocol should really have a way for
18750 client apps to query for the correct icon size.. but oh well. A
18751 couple of patches to deal with the screwy client_window ==
18752 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18753 instance, and also make sure we don't XSelectInput twice).
18755 2006-10-30 Chris Toshok <toshok@ximian.com>
18757 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18758 recreating forms. Control recreation is the bane of my existence.
18759 Fix it in a way that keeps everyone happy.
18761 2006-10-30 Chris Toshok <toshok@ximian.com>
18763 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18764 just non-CHILD ones. otherwise sometimes scrollbars end up with
18765 client_windows not being resized to the proper size (ReportBuilder
18766 shows this extremely well).
18768 2006-10-30 Chris Toshok <toshok@ximian.com>
18770 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18771 for non-WS_EX_APPWINDOW windows. This is what keeps them from
18772 showing up in the gnome taskbar. Fixes bug #79790.
18774 2006-10-30 Chris Toshok <toshok@ximian.com>
18776 * ApplicationContext.cs: guard against a NRE.
18778 * Application.cs: null out the old MainForm for the context, so we
18779 don't try to use it again once it's disposed. Fixes bug #79783.
18781 2006-10-30 Chris Toshok <toshok@ximian.com>
18783 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18784 BindingContext, set the data source directly, otherwise do the
18785 lazy approach - the actual ListManager will be created when we get
18786 a BindingContext. Fixes bug #79700.
18788 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18790 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18791 XplatUIX11.cs: Remove old 2 parameter SetVisible.
18793 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18795 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18797 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18798 of SetVisible that allows a window to be shown, but not activated.
18799 This is needed on Windows for MenuStrip, and can probably be used
18800 with MainMenu and ComboBox to fix the focus stealing issues on
18803 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18805 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
18807 * PictureBox.cs: Fix the output of the ToString method.
18809 2006-10-29 Chris Toshok <toshok@ximian.com>
18811 * Control.cs (get_TopLevelControl): fix bug #79781.
18813 2006-10-29 Chris Toshok <toshok@ximian.com>
18815 * ListControl.cs (set_DataSource): throw Exception here, not
18816 ArgumentException, to match MS behavior.
18818 2006-10-29 Chris Toshok <toshok@ximian.com>
18820 * Form.cs: remove the try-catch's around calls to GetWindowState.
18821 We can just check the return value.
18823 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18826 * XplatUI.cs: Add note about additional return value for
18829 2006-10-29 Chris Toshok <toshok@ximian.com>
18831 * Control.cs (CreateHandle): when we create our handle, we also
18832 create the handles of our child controls. Fixes one of the
18833 Control unit tests (CH11).
18835 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18837 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18839 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18841 * ThemeClearlooks.cs: A little speedup.
18843 2006-10-27 Chris Toshok <toshok@ximian.com>
18845 * Control.cs: implement Control.FromChildHandle in a way that
18846 matches the docs (and fixes the failed test.)
18848 2006-10-27 Chris Toshok <toshok@ximian.com>
18850 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18853 * DataGrid.cs: implement ResetForeColor such that the tests
18856 2006-10-27 Chris Toshok <toshok@ximian.com>
18858 * ToolBarButton.cs: setting text/tooltiptext to null results in it
18859 being set to "". Fixes bug #79759.
18861 2006-10-27 Jackson Harper <jackson@ximian.com>
18863 * TextControl.cs: We need to clear the entire selection area when
18864 setting the start, otherwise multiline selections are still
18867 2006-10-26 Chris Toshok <toshok@ximian.com>
18869 * PropertyGridView.cs:
18871 - ifdef all the code specific to the double
18872 buffer case, and provide some alternatives in the non-doublebuffer
18873 code, which makes heavy use of XplatUI.ScrollWindow to move things
18874 around without having to invalidate (and cause flicker). There
18875 are still some drawing problems in the non-doublebuffered case, so
18876 DOUBLEBUFFER is defined by default.
18878 - Fix the way dropdowns are handled. now we explicitly watch for
18879 the events which might cause the dropdown to close, and break out
18880 of the nested event loop there. This gets rid of all Capture
18881 code, at the expense of the Msg special casing. Seems to work,
18882 though, and fixes bug #79743.
18884 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18885 * Control.cs: SetIsRecreating now recreates implicitly added
18886 child controls as well. Finally fixes #79629. The flag passed to
18887 SetIsRecreating has also been removed since it wasn't used.
18889 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18891 * PageSetupDialog.cs: Clean some code, fix some bits,
18892 add some checks, and add a printer sub-dialog.
18894 2006-10-26 Chris Toshok <toshok@ximian.com>
18896 * PropertyGrid.cs: make set_SelectedObject call
18897 set_SelectedObjects, and move the duplicate logic to the
18898 SelectedObjects setter. Also, raise SelectedObjectsChanged.
18900 * PropertyGridView.cs: hide the textbox when we get a
18901 SelectedObjectsChanged event.
18905 2006-10-26 Chris Toshok <toshok@ximian.com>
18907 * PropertyGridView.cs: deal with the type converter not supporting
18908 GetStandardValues() or GetStandardValues() returning null, which
18909 is does in the default case. Fixes #79742.
18911 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18913 * CheckedListBox.cs: nunit no longer crashes when selecting
18914 Project/Edit menu option
18916 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18918 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18919 is no menu selected. fixes #79739
18921 2006-10-25 Chris Toshok <toshok@ximian.com>
18923 * PropertyGridView.cs: factor out the splitter invalidation code
18924 into the SplitterPercent setter, and for kicks implement the
18925 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18926 amount in either direction.
18928 2006-10-25 Chris Toshok <toshok@ximian.com>
18930 * PropertyGridView.cs: do some cleanup of the brush used to draw
18931 text - read only fields should be grayed out. not sure how to do
18932 this with the textbox, though. but the textbox's should also be
18933 readonly now at least. Also, hide/show the textbox when resizing
18936 * CursorConverter.cs: use System.Reflection when getting the
18937 properties of Cursors, as TypeDescriptor.GetProperties isn't
18938 returning static properties.
18940 2006-10-25 Chris Toshok <toshok@ximian.com>
18942 * PropertyGridView.cs: factor out the up/down handling, and reuse
18943 it for page up/down. also add End/Home support.
18945 2006-10-25 Chris Toshok <toshok@ximian.com>
18947 * PropertyGridView.cs:
18949 - ensure the selected grid item is visible in the scrolled area,
18952 - fix Keys.Down handling when you're on the last item in the
18955 2006-10-25 Mike Kestner <mkestner@novell.com>
18957 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
18958 clicks too. Fixes #79725.
18960 2006-10-24 Chris Toshok <toshok@ximian.com>
18962 * PropertyGrid.cs: use property.Converter instead of
18963 TypeDescriptor.GetConverter(property.PropertyType), so we catch
18964 TypeConverters declared on the property as well as on the
18965 PropertyType. Fixes bug #79678.
18967 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
18969 * MimeIcon.cs, Mime.cs:
18970 Fallback to the default platform handler if no shared mime info
18971 stuff exists (fixes #79693).
18973 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18974 * ContainerControl.cs: Incorrect contains check in ActiveControl
18975 from previous fix (duh).
18977 2006-10-20 Chris Toshok <toshok@ximian.com>
18979 * PropertyGridView.cs: the dropdown should be MIN(number of items
18980 in list, 15). Fixes #79551.
18982 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18983 Fixes #79384, #79394, #79652, #79667
18986 - Modal windows are now destroyed in the proper order for windows
18988 * ContainerControl.cs:
18990 - ActiveControl setter has more conditions on when to return:
18991 - if we're reselecting the active control, but it actually
18992 didn't have focus (window hidden or some such), it runs
18993 - if the active control being selected doesn't actually
18994 exist in the container, it returns
18998 - The ShowDialog now gets the current form as the owner when
18999 invoking without parameters, and correctly activates the owner
19004 - MessageBox now catches the Escape key to exit
19006 2006-10-20 Chris Toshok <toshok@ximian.com>
19008 * PropertyGridView.cs: fix a number of issues (bug #78565, and
19009 most of bug #79676):
19011 - you can navigate around the property grid with the arrow keys.
19013 - the dropdown is sized properly when the pg has a vertical
19016 - fix the indentation for subentries, and properly select the
19019 - fix the gray bar's drawing (only draw it to the last element,
19020 not for the height of the control. Also make sure we draw that
19021 last horizontal grid line.
19023 - use the same mechanism the datagrid uses wrt the editing textbox
19024 when scrolling/resizing/etc. Namely, we hide it first, do the
19025 operation, then show it again (if it's still visible).
19027 - aggressively remove a lot of unnecessary refreshes (and also
19028 calls to Invalidate(). call more limited variants, and only redraw
19033 - when we're populating the merged collection, fill in the UI
19034 parent with either the passed in item, or the category item we
19037 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19039 * GridItem.cs: drop some fully qualified names.
19041 * GridEntry.cs: add a "UIParent", which is basically the parent
19044 * GridItemCollection.cs: add an IndexOf method.
19046 2006-10-20 Mike Kestner <mkestner@novell.com>
19048 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
19049 a working win32 NC invalidation mechanism, we can't invalidate
19050 menus. [Fixes #79705]
19052 2006-10-20 Mike Kestner <mkestner@novell.com>
19054 * ListBox.cs : don't update the VScrollbar if the list is empty,
19055 just hide it. [Fixes #79692]
19057 2006-10-20 Jackson Harper <jackson@ximian.com>
19059 * RichTextBox.cs: Handle some special chars better, and don't skip
19060 the entire group when we encounter a special char that we don't
19063 2006-10-18 Chris Toshok <toshok@ximian.com>
19065 * PropertyGridView.cs: address a number of issues from bug #79676,
19066 mostly of the cosmetic variety.
19068 - The highlight rectangle for indented items not extends all the
19071 - Indented items aren't indented so much.
19073 - the dropdown is properly sized width-wise if the pg has a
19074 vertical scrollbar.
19076 2006-10-18 Chris Toshok <toshok@ximian.com>
19078 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
19079 systray stuff is rather convoluted to begin with.
19081 systray icons are a single window for some reason (that I haven't
19082 figured out yet), and for them, client_window == whole_window.
19083 Given the way the tests are structured elsewhere to determine
19084 which paints are pending (client vs. nc), that situation will
19085 always yield PAINT, not NCPAINT. So, if we have a pending
19086 nc_expose and no pending expose, remove the hwnd from the paint
19087 queue, and also set nc_expose_pending to false, to keep us from
19088 blocking further expose's adding the hwnd to the paint queue.
19090 phew. like i said, a rather convoluted change. Fixes the
19091 notifyicon repaint issues in bug #79645.
19093 2006-10-18 Chris Toshok <toshok@ximian.com>
19095 * Form.cs: when getting the backcolor of the form, don't get
19096 base.BackColor, as this allows parents to influence the background
19097 color. This breaks mdi forms. Instead, if the background_color
19098 is empty, return the default.
19100 2006-10-18 Chris Toshok <toshok@ximian.com>
19102 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
19103 to being private instead of internal static.
19105 * Control.cs: remove all the stupid ParentWaitingOnRecreation
19106 crap, it wasn't working for more deeply nested controls anyway,
19107 and we already have the is_recreating flag - use that instead.
19108 Before calling DestroyHandle in RecreateHandle, recurse through
19109 the control tree setting it to true. this returns the recreate
19110 code to much of its original simplicity, while now guaranteeing we
19111 actually recreate everything we're supposed to. This change gets
19112 fyireporting actually showing mdi children.
19114 2006-10-17 Chris Toshok <toshok@ximian.com>
19116 * Form.cs: remove some debug spew, and collapse some duplicate
19117 code at the end of SetClientSizeCore.
19120 - add some more debug spew here too wrt Destroy handling.
19121 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
19122 in Control's handling of WM_DESTROY.
19123 - Remove the handling of zombie window DestroyNotifies from the
19124 event loop - we don't need it. Now the only DestroyNotifies we
19125 actually handle are ones generated by X.
19126 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
19127 match gtk's (functioning) handling of this. This keep metacity
19128 from leaving droppings in the form of wm borders with no window
19129 contents all over the place.
19132 - add a bunch of debug spew wrt control recreation.
19133 - fix a bug where we weren't tracking Visible properly on
19135 - fixed the WM_PAINT double buffer handling to support re-entrant
19136 calls (yes, i know it's gross, but it's happening to us).
19138 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19139 * ThemeWin32Classic.cs: changed drawing of selected days
19140 to make them look better.
19142 2006-10-16 Chris Toshok <toshok@ximian.com>
19144 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
19145 drawing_stack. Nuke the ClientDC/NonClientDC properties.
19147 * XplatUIX11.cs: move away from using hwnd.client_dc and
19148 hwnd.non_client_dc and on to a stack of dc's (and in window's
19149 case, PAINTSTRUCT's), so we can deal with nested Paint calls
19150 without puking or not disposing of Graphics objects.
19152 * XplatUIOSX.cs: same.
19154 * XplatUIWin32.cs: same.
19156 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19158 * FileDialog.cs: Don't call on_directory_changed inside
19159 OnSelectedIndexChanged (it changes the SelectedIndex too).
19160 Instead move it to OnSelectionChangeCommitted.
19162 2006-10-13 Chris Toshok <toshok@ximian.com>
19164 * XplatUIX11.cs: more Destroy work. the current code does the
19165 following things, in order:
19167 1. Enumerates all handles of all controls at or below the one
19168 being destroyed, in pre-order. As it is doing this, it marks the
19169 handles as zombie and clears all references to them.
19171 2. calls XDestroyWindow on the window passed in.
19173 3. SendMessage's WM_DESTROY to all he handles in the accumulated
19176 2006-10-13 Chris Toshok <toshok@ximian.com>
19178 * XplatUIX11.cs: set hwnd.zombie to true before calling
19179 SendMessage (WM_DESTROY). this keeps us from marking the new
19180 window a zombie, and also keeps us from calling sendmessage at
19183 2006-10-13 Jackson Harper <jackson@ximian.com>
19185 * TextControl.cs: Do not show the caret and selection at the same
19186 time. Reduces ugliness by 35%.
19188 2006-10-13 Chris Toshok <toshok@ximian.com>
19190 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19191 zombie after we do the recursive call, so we actually do call
19192 SendMessage on the children controls.
19193 (GetMessage): if we find a pending paint event for a zombie hwnd,
19194 remove the hwnd from the paint queue, or else it will always be
19195 there (and we'll effectively loop infinitely)
19197 2006-10-13 Mike Kestner <mkestner@novell.com>
19199 * MenuItem.cs : add Selected format under keynav too.
19202 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
19204 * PropertyGrid.cs: Fixed some NRE's and small difference between our
19205 implementation and that of MS.
19207 2006-10-13 Chris Toshok <toshok@ximian.com>
19209 * Control.cs (OnInvalidated) only futz with the invalid_region if
19210 the control is double buffered. this fixes the apparent hang in
19211 the ListView unit tests. Someone needs to make the
19212 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19214 2006-10-13 Chris Toshok <toshok@ximian.com>
19216 * PropertyGridView.cs:
19218 - do a little refactoring so that only one place calls
19219 dropdown_form.Hide, and that is CloseDropDown. make everywhere
19220 else call that. Also make it Refresh, since there are redraw bugs
19221 otherwise (we should take a look at that...)
19223 - do a little more refactoring work to share the body of code
19224 involved with the drop down. it was duplicated in the code
19225 dealing with the listbox handling and in the code dealing with the
19228 - add a Capture to the dropdown form's control once it's
19229 displayed, and add a MouseDown handler that checks to make sure
19230 the position is inside the control. If it's not, close the
19231 dropdown. This fixes #78190.
19233 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19234 if the value is different than the initial value.
19236 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
19238 * Control.cs: see #78650
19239 - Fixed GetNextControl for several cases:
19240 - Changed FindFlatForward to return
19241 correct sibling control when more than one
19242 control has same TabIndex as the currently
19244 - Changed FindFlatBackward to loop children
19245 from last to first and apply same logic as in
19247 - Changed FindControlForward to search for
19248 children when control is not a container
19249 but has children, or search for siblings if
19250 control is a container...
19251 - Changed FindControlBackward to continue
19252 searching for child controls when hitting
19255 - Fixed Focus method to update ActiveControl
19256 (FocusTest.FocusSetsActive failure)
19259 - Focus rectangle now refreshes when gaining
19261 - Removed grab for Tab key on IsInputKey that
19262 was keeping tab navigation from working (#78650)
19264 2006-10-13 Chris Toshok <toshok@ximian.com>
19266 * PropertyGridView.cs:
19267 - Rewrite SetPropertyValue to loop over SelectedGridItem's
19270 - Deal with GridItem.Value == null a few places.
19273 - replace the PopulateGridItemCollection with a pair of methods
19274 which compute the intersection of all the properties in the
19275 SelectedObjects array. Fixes #79615.
19277 - Throw ArgumentException from set_SelectedObjects if there's a
19280 - Add GetTarget method which can be used to traverse up the
19281 GridItem.Parent chain. It depends on the assumption that
19282 selected_objects for different GridEntries are always in the same
19283 order (a safe assumption). Use this method and loop over all the
19284 selected objects in the entry when calling RemoveValueChanged and
19287 * GridEntry.cs: Make this handle multiple selected objects.
19288 .Value returns null if not all the selected objects share the same
19291 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
19292 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19293 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19294 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19295 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19296 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19297 add additional functionality.
19299 2006-10-12 Mike Kestner <mkestner@novell.com>
19301 * ErrorProvider.cs : new ToolTipWindow ctor sig.
19302 * HelpProvider.cs : new ToolTipWindow ctor sig.
19303 * ToolTip.cs : remove ToolTip param from Window sig since it is
19305 * ToolBar.cs : add tooltip support. Fixes #79565.
19307 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19309 * ComboBox.cs: move the events in set_SelectedIndex to
19310 after the call to HighlightIndex in order to avoid
19311 possible recursion and subsequent problems with the call
19312 to HighlightIndex and include a range check in
19313 set_HighlightIndex. Fixes #79588
19315 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19317 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
19318 to ui thread's settings instead of sunday.
19319 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19321 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19323 * DateTimePicker.cs
19325 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19326 and implement missing functionality (selecting different parts
19327 of the date and edit them individually with the keyboard).
19329 2006-10-11 Chris Toshok <toshok@ximian.com>
19331 * Control.cs (OnInvalidated): fix NRE relating to last change.
19333 2006-10-11 Chris Toshok <toshok@ximian.com>
19335 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19336 atoms in _NET_WM_STATE here if the window is maximized. We need
19337 to do this because we're *replacing* the existing _NET_WM_STATE
19338 property, so those atoms will be lost otherwise, and any further
19339 call to GetWindowState will return Normal for a window which is
19340 actually maximized. Fixes #79338.
19342 2006-10-11 Jackson Harper <jackson@ximian.com>
19344 * TextControl.cs: Special case for setting selection end to
19345 selection start, we basically kill the anchor.
19346 - some todo comments.
19348 2006-10-11 Chris Toshok <toshok@ximian.com>
19350 * Control.cs: switch to using an "invalid_region" to track which
19351 parts of the image buffer need updating. This is more code than
19352 the simple fix from r66532. That version just attempted to always
19353 fill the entire buffer on redraw, which turns out to be
19354 inefficient when invalidating small rectangles. This version
19355 simply adds the invalid rectangle to the invalid region. When we
19356 get any WM_PAINT message we see if it can be filled using the
19357 image buffer, and if it can't (if the paint event's clip rectangle
19358 is visible in the invalid region) we first fill the image buffer.
19359 So, the image buffer is still a cache, we just fill it lazily.
19361 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19362 need it any longer.
19364 2006-10-11 Chris Toshok <toshok@ximian.com>
19366 * XplatUIX11.cs (SetWindowPos): we need to update both position as
19367 well as size after calling XMoveResizeWindow. This keeps us from
19368 ignoring future SetWindowPos calls. Fixes the disappearing
19369 DateTimePicker in the ToolBarDockExample from bug #72499.
19371 2006-10-11 Chris Toshok <toshok@ximian.com>
19373 * TextBoxBase.cs: reorder things a bit when it comes to
19374 resizing-causing-recalculation. we were recalculating the
19375 document when our position was changed, which shouldn't happen.
19376 We only care about size changes. Clear up some more redundant
19377 recalculation calls while I'm at it. This makes the toolbar dock
19378 example snappy when you're just dragging toolbars around (since it
19379 causes a relayout whenever you move one.)
19381 2006-10-11 Chris Toshok <toshok@ximian.com>
19383 * ToolBarButton.cs (get_Rectangle): this only returns
19384 Rectangle.Empty if Visible == false, or Parent == null.
19385 Parent.Visible doesn't matter.
19387 2006-10-10 Chris Toshok <toshok@ximian.com>
19389 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19390 by .net 1.1, so switch to an internal method instead.
19392 2006-10-10 Chris Toshok <toshok@ximian.com>
19394 * Control.cs (WM_PAINT): when a control is double buffered we draw
19395 initially to the ImageBuffer and then copy from there. But when a
19396 parent control which has child controls is double buffered, the
19397 initial drawing doesn't encompass the entire ClientRectangle of
19398 the parent control, so we end up with uninitialized bits (this is
19399 easily seen by dragging the top toolbar in
19400 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
19401 manually set the ClipRectangle of the paint_event (only the one we
19402 use to populate the ImageBuffer) to ClientRectangle. Fixes more
19403 of the nastiness in bug #72499.
19405 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19406 which we use in Control.cs's WM_PAINT handling.
19408 2006-10-10 Jackson Harper <jackson@ximian.com>
19410 * TextBoxBase.cs: Finish off the autoscrolling stuff.
19412 2006-10-10 Chris Toshok <toshok@ximian.com>
19414 * Cursor.cs: Apply a slightly different patch to the one suggested
19417 2006-10-10 Jackson Harper <jackson@ximian.com>
19419 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19420 not the parent form.
19421 * TextControl.cs: use difference in old line count vs new count to
19422 calculate how many lines were added, this takes into account soft
19423 line breaks properly.
19425 2006-10-10 Chris Toshok <toshok@ximian.com>
19427 * LinkLabel.cs: don't call MeasureCharacterRanges against a
19428 rectangle located at 0,0 and the size of the text. Use
19429 ClientRectangle instead. This fixes rendering of non-left aligned
19432 2006-10-10 Jackson Harper <jackson@ximian.com>
19434 * TextBoxBase.cs: When we set the selection start position the
19436 * TextControl.cs: Need to update the caret when we decrement it to
19438 - Make sure that the selection_visible flag gets reset to false if
19439 the selection isn't visible. Before this you could get it set to
19440 visible by changing the selection start, then changing the end to
19443 2006-10-09 Jackson Harper <jackson@ximian.com>
19445 * TreeView.cs: Don't update scrollbars when we aren't visible.
19446 * TreeNodeCollection.cs: Only need to update scrollbars if being
19447 added to an expanded visible node or the root node.
19449 2006-10-09 Chris Toshok <toshok@ximian.com>
19451 * XplatUIX11.cs (SendMessage): fix NRE.
19453 2006-10-09 Jackson Harper <jackson@ximian.com>
19455 * TextBoxBase.cs: Implement horizontal autoscrolling.
19456 * TextControl.cs: Add a movement types that allows moving forward
19457 and backwards without wrapping.
19459 2006-10-09 Mike Kestner <mkestner@novell.com>
19461 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19462 with focus "expansion" of labels. Fixes #79532 and then some.
19463 * ThemeWin32Classic.cs : add LineLimit to ListView label format
19466 2006-10-09 Jackson Harper <jackson@ximian.com>
19468 * TextBoxBase.cs: Set the default max values to MaxValue since
19469 we use the scrollbar for autoscrolling and the default value is
19470 100. If we don't do this the caret won't keep up with typing
19471 after about 18 characters.
19472 * TextControl.cs: Make sure the selection is offset by the
19473 viewport x. This fixes selection when using auto scrolling.
19475 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
19477 * Form.cs: The active control should be selected after the
19478 OnLoad so that any child control initialization that affects
19479 the selection is done. Fixes #79406
19481 2006-10-06 Chris Toshok <toshok@ximian.com>
19483 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19484 to have no evil effects.
19486 - Stop selecting StructureNotifyMask on non-toplevel windows.
19488 The only way children should be resized is by using the SWF api,
19489 and we already send WM_WINDOWPOSCHANGED messages in those cases.
19490 Toplevel windows can be interacted with via the window manager,
19491 and so we keep the input mask there.
19493 The other event StructureNotifyMask gives us (that we care
19494 about) is DestroyNotify. The code is already structured such
19495 that it assumes we won't be getting a DestroyNotify event for
19496 the window we pass to XDestroyWindow (which is what
19497 StructureNotifyMask is supposed to guarantee.) So, that code
19498 shouldn't be affected by this either.
19500 - Stop selecting VisibilityChangeMask altogether.
19502 We weren't doing anything with the resulting events anyway.
19504 This vastly reduces the number of X requests and events we see
19505 when resizing/laying out a large ui.
19507 2006-10-06 Chris Toshok <toshok@ximian.com>
19509 * ScrollableControl.cs (DisplayRectangle): we need to take into
19510 account the DockPadding regardless of whether or not auto_scroll
19511 == true. rework this slightly to this effect, and fix bug #79606,
19512 and part of #72499 (you can now see the drag handles and drag
19515 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
19517 * ListViewItem.cs: Collections of selected and checked items are now
19518 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19519 we mark the collection "dirty".
19520 * ListView.cs: Marked collections readonly. Modified UpdateSelection
19521 to only clear SelectedItems when a new item is selected and MultiSelect
19522 is enabled. CheckedItems and SelectedItems now subscribe to Changed
19523 event of ListViewItemCollection, and mark its list dirty whenever
19524 that event is fire. This allows us to return selected/checked items
19525 in the same order as they are in the Items collection. This matches
19528 2006-10-06 Chris Toshok <toshok@ximian.com>
19530 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19531 right mouse clicks. Fixes bug #79593.
19533 2006-10-06 Chris Toshok <toshok@ximian.com>
19535 * Splitter.cs: doh, fix splitters that don't want to cancel the
19536 movement when you drag them. Also, impose the limits on the
19537 values we send to the SplitterMovingEvent. Fixes #79598.
19539 2006-10-06 Jackson Harper <jackson@ximian.com>
19541 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19542 since we use this for auto scrolling also.
19544 2006-10-05 Chris Toshok <toshok@ximian.com>
19546 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
19547 beginning to think that most datagrid column types don't need this
19548 method. Fixes bug #79392.
19550 2006-10-05 Chris Toshok <toshok@ximian.com>
19552 * DataGrid.cs: move back to a more lazy scheme for creating the
19553 CurrencyManager, so we aren't updating it every time you set
19554 either DataSource or DataMember. Also, don't call
19555 RecreateDataGridRows if the currency manager hasn't changed.
19557 2006-10-05 Chris Toshok <toshok@ximian.com>
19559 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19560 emitted, SelectedIndex should already be updated. Fixes bug
19563 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
19565 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19566 ToolStripTextBox.cs: Initial commit.
19567 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19569 2006-10-05 Jackson Harper <jackson@ximian.com>
19571 * TabControl.cs: We need to invalidate the tab control area when
19572 new ones are added (duh).
19574 2006-10-03 Chris Toshok <toshok@ximian.com>
19576 * Form.cs (ProcessDialogKey): if the focused control is in this
19577 form and is a button, call its PerformClick method here. Fixes
19580 2006-10-04 Jackson Harper <jackson@ximian.com>
19582 * TabPage.cs: Ignore setting of Visible, and add an internal
19583 method for setting the controls visibility. TabPage's Visible
19584 property is a little strange on MS, this seems to make us
19585 compatible, and fixes cases where people set all the tab pages to
19587 * TabControl.cs: Use the new internal setting on tab pages
19590 2006-10-03 Mike Kestner <mkestner@novell.com>
19592 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19594 2006-10-03 Mike Kestner <mkestner@novell.com>
19596 * ListView.cs : use is_visible instead of Visible to check if
19597 scrollbars should be placed/sized. Also some max_wrap_width
19598 love for LargeIcon view. [Fixes #79533]
19600 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
19603 Make set_TextAlign() do actually update the align. Fixed #78403.
19605 2006-10-03 Chris Toshok <toshok@ximian.com>
19607 * DataGrid.cs: fix a crash when switching datasources if the
19608 vertical scrollbar is at someplace other than Value = 0. Also,
19609 reduce the number of recalculation passes we do in SetDataSource
19612 2006-10-03 Jackson Harper <jackson@ximian.com>
19614 * TextBoxBase.cs: Move the if value the same bail check up, we
19615 don't want to empty the document if it is already empty, this
19616 seems to severly mess up the caret. TODO: I should probably fix
19617 the empty statement to update teh caret somehow.
19619 2006-10-03 Chris Toshok <toshok@ximian.com>
19621 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19622 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19623 reflection, an internal row type, properties on said type, etc.)
19624 will work with our datagrid. Fixes #79531.
19626 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19628 * FileDialog.cs: Don't crash if a path is not accessible
19629 (System.UnauthorizedAccessException). Fixes #79569.
19630 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19631 a ':' too. Return unknown icon for those paths/files.
19633 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
19635 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
19636 GetContainerControl returns null.
19638 2006-10-02 Chris Toshok <toshok@ximian.com>
19640 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19641 call to XGetWindowAttributes instead of "handle". fixes an X
19642 error using notifyicon after the NotifyIconWindow to Form base
19645 2006-10-02 Chris Toshok <toshok@ximian.com>
19647 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19648 server grab and looping we need to do to get down to the most
19649 deeply nested child window.
19650 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19651 QueryPointer again after the WarpPointer so we can generate a
19652 proper (fake) MotionNotify event to be enqueued in the destination
19654 (GetCursorPos): call QueryPointer.
19658 2006-10-02 Jackson Harper <jackson@ximian.com>
19660 * NotifyIcon.cs: Derive the notify icon from a form, so things
19661 like FindForm work on it.
19662 - Swallow the WM_CONTEXTMENU message, since that is generated on
19663 mouse down, and context menu is a mouse up kinda guy. I believe
19664 the correct fix here is probably to make the notify icon entirely
19665 NC area, but this seems to work fine for anyone not manipulating
19668 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
19670 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19671 ToolStripItemCollection.cs, ToolStripLabel.cs,
19672 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19673 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19674 Initial implementation.
19675 * TextRenderer.cs: Provide padding to MeasureText.
19677 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
19679 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19680 of ButtonBaseAccessibleObject. Fix bug #79552.
19682 2006-10-02 Jackson Harper <jackson@ximian.com>
19684 * MdiWindowManager.cs: When maximizing use the containers client
19685 rect, not it's bounds, so nc area is accounted correctly.
19686 - Use the parent form's size for the menu position, since the
19687 client isn't always the full form size.
19689 2006-10-01 Chris Toshok <toshok@ximian.com>
19691 * ScrollableControl.cs: make sure neither right_edge or
19692 bottom_edge are < 0, since they're used as LargeChange for the
19693 horiz/vert scrollbars respectively. Fixes #79539.
19695 2006-10-01 Chris Toshok <toshok@ximian.com>
19697 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19698 the xplatuix11 code can cause us to destroy/recreate our handle.
19702 - this code can be invoked many times for the same Hwnd. Make
19703 sure we only destroy the client window once (the first time this
19704 method is called). This fixes bug #79544.
19705 - Remove the call to the improperly bound XSync. why we had two
19706 bindings to this, I will never know, but this call resulted in
19707 events being discarded from the queue(!).
19708 - correct a misunderstanding of _XEMBED_INFO - the second atom is
19709 not our current state but the state we wish to be in. So, 0 if
19710 we don't want to be mapped. Change it to 1.
19711 (SystrayRemove): The XEMBED spec makes mention of the fact that
19712 gtk doesn't support the reparent of client windows away from the
19713 embedder. Looking at gtksocket-x11.c seems to agree with this.
19714 The only avenue we have for removing systray icons is to destroy
19715 them. We don't want the handle to go away for good, though, so
19716 call InternalRecreateHandle on the NotifyIconWindow. Fixes
19719 2006-10-01 Chris Toshok <toshok@ximian.com>
19721 * Form.cs (WndProc): inline the native_enabled variable usage into
19722 the cases in which it's used. Fixes #79536.
19724 2006-09-29 Mike Kestner <mkestner@novell.com>
19726 * ListView.cs : toggle the selection state for ctrl clicks in
19727 multiselect mode. [Fixes #79417]
19729 2006-09-29 Mike Kestner <mkestner@novell.com>
19731 * ListView.cs : kill CanMultiSelect and refactor the selection
19732 code to support multiselection in the absence of mod keys. Steal
19733 arrow/home/end keys by overriding InternalPreProcessMessage to
19734 restore regressed keynav behavior.
19737 2006-09-29 Jackson Harper <jackson@ximian.com>
19739 * MdiClient.cs: Repaint the titlebars when the active window is
19742 2006-09-29 Chris Toshok <toshok@ximian.com>
19744 * Application.cs: when entering a runloop with a modal, make sure
19745 the hwnd is enabled. Fixes #79480.
19747 2006-09-29 Chris Toshok <toshok@ximian.com>
19749 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19750 when ListManager.CanAddRows == false, bump us back one.
19752 * DataGridColumnStyle.cs (ParentReadOnly): remove the
19753 listmanager.CanAddRows check. This makes ArrayLists uneditable
19754 using a datagrid, which is not right.
19755 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19756 is an IEditable, but call property_descriptor.SetValue regardless.
19759 2006-09-29 Chris Toshok <toshok@ximian.com>
19761 * DataGridBoolColumn.cs: we need to test equality in the face of
19762 possible null values (as is the case with the default NullValue).
19763 This patch keeps us from crashing in that case.
19765 2006-09-29 Jackson Harper <jackson@ximian.com>
19767 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19768 here, since it will get called for every node collection in the
19769 tree. This is now done in the treeview once the sorting is
19771 * TreeView.cs: Recalculate the visible order, and update the
19772 scrollbars after sorting, set the top nope to the root so that the
19773 recalc actually works.
19775 2006-09-29 Chris Toshok <toshok@ximian.com>
19777 * LinkLabel.cs: more handling of the default link collection in
19778 the face of LinkArea manipulation. The default link collection
19779 contains 1 element (start=0,length=-1). If the user sets LinkArea
19780 to anything and the links collection is the default, clear it.
19781 Then only add the link if its nonempty. Fixes #79518.
19783 2006-09-29 Chris Toshok <toshok@ximian.com>
19785 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19786 piece correctly when we hit a '\n'. Fixes #79517.
19788 2006-09-29 Chris Toshok <toshok@ximian.com>
19790 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19791 change the binding of gdk_init_check to take two IntPtr's, and
19792 pass IntPtr.Zero for both of them. Fixes #79520.
19794 2006-09-29 Mike Kestner <mkestner@novell.com>
19796 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19799 2006-09-28 Jackson Harper <jackson@ximian.com>
19801 * XplatUIX11.cs: When translating NC messages make sure we go from
19802 whole window to screen, not client window to screen.
19803 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19804 method doesn't exist
19805 - Skip over controls that aren't forms when arranging.
19807 2006-09-28 Jackson Harper <jackson@ximian.com>
19809 * XplatUIWin32.cs: Clip the rect to the parent window.
19810 * XplatUIStructs.cs: Add clipping modes struct.
19811 * InternalWindowManager.cs: New private method that factors title
19812 bar heights in when calculating the pos of an NC mouse message.
19813 - Use SendMessage to force a paint when the form's size is changed
19814 instead of painting the decorations immediately.
19815 - Don't let the NC button click messages get to DefWndProc,
19816 because they will attempt to handle windowing themself, and this
19817 messes up z-order (it will put them in front of the scrollbars).
19818 * XplatUIX11.cs: Make sure that we don't reset window managers if
19819 we already have one (ie the window is an MDI window).
19821 2006-09-28 Chris Toshok <toshok@ximian.com>
19823 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
19824 menu code really needs going over.
19826 2006-09-27 Chris Toshok <toshok@ximian.com>
19828 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
19829 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19830 window is maximizable. So, we need to make sure that even if we
19831 clear the border/wm frame of those functions, they're still
19832 available (basically, we remove the decoration without removing
19833 the function). Half the fix for #79338.
19835 2006-09-27 Chris Toshok <toshok@ximian.com>
19837 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19840 2006-09-27 Chris Toshok <toshok@ximian.com>
19842 * Splitter.cs: reorder things a bit so that we don't actually
19843 draw/move the splitter until after calling OnSplitterMoving. This
19844 lets users cancel/disallow the movement by explicitly setting
19845 event.SplitX/SplitY. Fixes #79372.
19847 2006-09-27 Jackson Harper <jackson@ximian.com>
19849 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19850 because it is most likely on a window being destroyed, and that
19851 will give us an X11 error.
19853 2006-09-27 Chris Toshok <toshok@ximian.com>
19855 * PropertyGridView.cs: half of the fix for #78190. Clicking on
19856 the dropdown button now toggles between showing and hiding the
19857 dropdown. Also, get rid of dropdown_form_showing and just use
19858 dropdown_form.Visible. We still don't do a grab, but I'll leave
19859 that part to someone who has handled Capture-fu before.
19861 2006-09-27 Chris Toshok <toshok@ximian.com>
19863 * DataGrid.cs: return false if alt isn't pressed when '0' is
19864 pressed. this keeps the '0' key from being swallowed, and fixes
19867 2006-09-27 Chris Toshok <toshok@ximian.com>
19869 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19870 Calling Refresh (in response to a scrollbar event) screws up the
19871 scrollbar painting. Fixes bug #78923.
19873 2006-09-27 Chris Toshok <toshok@ximian.com>
19875 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19876 then insert into hashtable" blocks threadsafe.
19878 2006-09-27 Chris Toshok <toshok@ximian.com>
19880 * MessageBox.cs (CreateParams): the styles should be |'ed with our
19881 baseclass's, since otherwise the
19882 ControlBox/MinimizeBox/MaximizeBox assignments above have no
19883 effect. This gets the close button back in messageboxes.
19885 2006-09-27 Chris Toshok <toshok@ximian.com>
19887 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19888 flag, not just != 0. this makes flags that are actually multiple
19889 bits (like WS_CAPTION) work. fixes bug #79508.
19891 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
19893 * PageSetupDialog.cs: add support for getting and settings the
19894 paper size, source and orientation.
19896 2006-09-26 Chris Toshok <toshok@ximian.com>
19898 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19899 and caption == "", we need to remove the resize handles as well as
19902 * Control.cs (set_Text): turns out that setting Text on a form
19903 should change the WM styles on the window, since if ControlBox ==
19904 false, the only way to get a window border is to have a non-""
19905 Text property. check winforms/forms/text.cs for an example. so,
19906 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19907 update both window styles and title. This fixes a lot of dialogs
19908 (including the preferences dialog in MonoCalendar.)
19910 2006-09-26 Chris Toshok <toshok@ximian.com>
19912 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19913 control isn't a Form), call Win32ShowWindow to hide the window,
19914 but don't update the control Visible property. When we reparent
19915 back to a parent control, call SetVisible in order for the
19916 window's visibility to be reinstated.
19918 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19921 * Control.cs (ControlCollection.Remove): remove that value.Hide()
19922 call for good, since it breaks MonoCalendar (and other things I'm
19923 sure.) Also, set all_controls to null *after* the owner calls,
19924 which end up regenerating it.
19925 (ChangeParent): allow new_parent to be == null, passing
19926 IntPtr.Zero down to XplatUI.
19928 this fixes #79294 the right way.
19930 2006-09-26 Mike Kestner <mkestner@novell.com>
19932 * GridEntry.cs : internal SetParent method.
19933 * PropertyGrid.cs : attach to property changed on the proper
19934 target if we have a hierarchical grid with subobjects. Setup
19935 GridItem.Parent for hierarchical items.
19936 * PropertyGridView.cs : Set value on the correct target for
19937 hierarchical grids. [Fixes #78903]
19939 2006-09-26 Chris Toshok <toshok@ximian.com>
19941 * Control.cs (ChildNeedsRecreating): this should return true if
19942 either we're being recreated and the child is in our list, or our
19943 parent is waiting for our recreation.
19945 2006-09-26 Chris Toshok <toshok@ximian.com>
19947 * Control.cs (ControlCollection.Remove): reinstate the
19948 value.Hide() call as suggested in bug #79294.
19950 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
19952 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19953 coordinates (versus a relative move).
19955 2006-09-26 Chris Toshok <toshok@ximian.com>
19957 * Control.cs: rework child recreation a little bit. It turns out
19958 that we race between the DestroyNotify the WM_DESTROY message. If
19959 the parent gets its DestroyNotify before the child gets the
19960 WM_DESTROY message, the child ends up not recreating (since the
19961 parent finishes its recreation on DestroyNotify, and the child
19962 checks ParentIsRecreating.)
19964 So, instead we store off a list of all the child controls which
19965 need to be recreated when the parent control starts to recreate
19966 itself. Then, when child controls get their WM_DESTROY message we
19967 check to see if they're in the parent's pending recreation list,
19968 and if so, we recreate. This removes all dependency on ordering
19969 from the code and fixes the initial MonoCalendar upgrade dialog.
19971 2006-09-26 Jackson Harper <jackson@ximian.com>
19973 * TextControl.cs: Use the Line to get the length of the line,
19974 since soft line breaks can change the end line.
19976 2006-09-26 Chris Toshok <toshok@ximian.com>
19978 * Control.cs (ControlCollection.AddImplicit): don't add the
19979 control again if it's already in one of our lists. This keeps us
19980 from adding controls over and over again for comboboxes when their
19981 handle gets recreated (as the combobox adds implicit controls in
19982 OnHandleCreated). Fixes the X11 errors in bug #79480.
19984 2006-09-26 Jackson Harper <jackson@ximian.com>
19986 * TextControl.cs: When deleting characters make sure that any
19987 orphaned zero lengthed tags get deleted.
19988 - Fix ToString for zero lengthed tags.
19990 2006-09-25 Jackson Harper <jackson@ximian.com>
19992 * TextControl.cs: When getting a tag at the location there can be
19993 multiple tags at the same spot, these are 0-lengthed tags that
19994 appear when extra formatting has been stuck in a location. We
19995 need to pull out the last of these 0 lengthed tags.
19997 2006-09-25 Jackson Harper <jackson@ximian.com>
19999 * TextControl.cs: Fix print out in debug method.
20000 * TextBoxBase.cs: When text is set bail if we are setting to the
20003 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
20005 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20006 It is now possible to change the selected index in a FontXXXListBox
20007 with the up and down arrow keys from the FontXXXTextBoxes.
20008 Also, send the FontXXXTextBox mouse wheel event to the corresponding
20009 FontXXXListBoxes to match ms.
20011 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
20013 * SystemInformation.cs: Return a clone of the theme's MenuFont because
20014 anyone can dispose it, anytime. All other properties returns enums,
20015 structs or basic types so they don't need such tricks.
20017 2006-09-22 Jackson Harper <jackson@ximian.com>
20024 * XplatUIDriver.cs: Update interface to add a primary selection
20025 flag, so the driver can use the primary selection buffer if
20027 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20029 * RichTextBox.cs: We need to supply the data object to paste now
20030 (so we can choose to supply CLIPBOARD or PRIMARY).
20031 * TextBoxBase.cs: Supply data object to paste (see above).
20032 - Middle click uses the primary selection data object.
20034 2006-09-21 Chris Toshok <toshok@ximian.com>
20036 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20037 of SetWMStyles. It's still a rat's nest and is largely
20038 order-dependent which I dislike immensely. This also fixes the X
20039 button disappearing from toplevel forms.
20041 2006-09-21 Mike Kestner <mkestner@novell.com>
20043 * ListBox.cs: move Jordi's click/dblclick raising code to the
20046 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
20048 * ListBox.cs: Fixes 79450
20050 2006-09-21 Mike Kestner <mkestner@novell.com>
20052 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20053 to deal with people updating the TreeNodeCollection after the tree
20054 is disposed. "Fixes" 79330.
20056 2006-09-20 Jackson Harper <jackson@ximian.com>
20058 * TextControl.cs: Push the cursor record onto the undo stack
20059 before the delete action. This fixes 78651.
20061 2006-09-20 Jonathan Chambers <joncham@gmail.com>
20063 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
20064 CreateParams. Fixes 79329.
20066 2006-09-19 Chris Toshok <toshok@ximian.com>
20068 * XplatUIX11.cs: a couple of blanket code massage passes to clean
20069 things up a bit. First, get rid of the NetAtoms array (and the NA
20070 enum), and just embed the atoms as static fields. Also, add a
20071 couple of functions (StyleSet and ExStyleSet) to clean up all the
20072 bitmask testing of styles.
20074 * X11Structs.cs: remove the NA enum, not needed anymore.
20076 2006-09-19 Chris Toshok <toshok@ximian.com>
20078 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
20079 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
20080 added cleanup to get MessageBox titles appearing again, which were
20081 broken by my earlier fix for caption-less/ControlBox-less windows.
20083 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
20085 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
20086 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
20087 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
20088 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
20089 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
20090 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
20091 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
20092 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
20093 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
20094 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
20095 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
20097 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
20098 ToolStripButton.cs: Stubs needed for above.
20099 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
20101 2006-09-15 Chris Toshok <toshok@ximian.com>
20104 - make the MessageQueues hashtable Synchronized.
20106 - SendMessage: if the Hwnd is owned by a different thread, use the
20107 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
20108 thread. Fixes bug #79201.
20110 2006-09-15 Chris Toshok <toshok@ximian.com>
20112 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
20113 ControlBox == false, we disallow maximize/minimize/close. If the
20114 form Caption is "" we also disallow move (and get rid of the Title
20115 decoration). Unfortunately, regardless of how things are set,
20116 we're stuck with the Title and WM menu.
20118 2006-09-15 Chris Toshok <toshok@ximian.com>
20120 * Application.cs: add locking around the static message_filters
20121 ArrayList, part of #79196.
20123 2006-09-15 Chris Toshok <toshok@ximian.com>
20125 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
20126 Form.ControlBox == false, the window has no titlebar nor resize
20127 handles. fixes bug #79368.
20129 2006-09-15 Chris Toshok <toshok@ximian.com>
20131 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
20132 >= 0. Fixes bug #79370.
20134 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
20135 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
20137 Add properties: LayoutEngine, Margin, DefaultMargin.
20138 Add method: GetPreferredSize.
20139 Move layout logic from PerformLayout to layout engines.
20141 2006-09-13 Chris Toshok <toshok@ximian.com>
20143 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
20144 fix for #79326 broke #78718, so this change addresses that.
20146 - in SendWMDestroyMessages remove the call to
20147 CleanupCachedWindows, since we might be recreating the control and
20148 need to maintain the references to right Hwnd handles. Also, set
20149 the zombie flag to true for each of the children in the hierarchy
20150 instead of calling hwnd.Dispose. This will cause GetMessage to
20151 ignore all events for the window except for DestroyNotify.
20153 - In GetMessage, ignore messages except for DestroyNotify for
20156 * Control.cs: revert the is_recreating fix from the last
20157 ChangeLog. It's definitely "right", but it breaks switching from
20158 an MDI form to a non-MDI form. Will need to revisit that.
20160 * Hwnd.cs: add a zombie flag, which means "the
20161 client_window/whole_window handles are invalid, but we're waiting
20162 for the DestroyNotify event to come in for them". Set the flag to
20163 false explicitly if setting WholeWindow/ClientWindow, and also
20166 2006-09-13 Chris Toshok <toshok@ximian.com>
20168 * XplatUIX11.cs: rework window destruction slightly.
20170 - when destroying the windows associated with a control, we don't
20171 need 2 separate XDestroyWindow calls. Just the one for the
20172 whole_window (or for client_window if whole_window is somehow
20173 IntPtr.Zero -- can this happen?) is enough.
20175 - reworked SendWMDestroyMessages slightly, so we always dispose
20176 the child control hwnd's after sending the messages.
20178 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20179 the two places it was used (one was even using hwnd.Handle and the
20180 other hwnd.client_window. ugh), adding another call in
20181 SendWMDestroyMessages. We need this new call because now the
20182 DestroyNotify events in the queue will be ignored for the child
20183 controls (as their hwnd's were disposed, and the window id's
20184 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20186 - this fixes bug #79326.
20188 2006-09-13 Chris Toshok <toshok@ximian.com>
20190 * Control.cs: don't always set is_recreating to false at the end
20191 of RecreateHandle, since sometimes we're not done (and won't be
20192 until WndProc handles the WM_DESTROY message). Also, set
20193 is_recreating to false in the WM_DESTROY handling code. Part of
20194 the fix for bug #79326.
20196 2006-09-13 Miguel de Icaza <miguel@novell.com>
20198 * X11DesktopColors.cs: Start the droppage of debugging messages.
20200 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20202 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
20204 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20206 2006-09-12 Chris Toshok <toshok@ximian.com>
20208 * DataGrid.cs (get_ListManager): if the list_manager is null, try
20209 to create it using SetDataSource. Fixes bug #79151.
20211 2006-09-11 Chris Toshok <toshok@ximian.com>
20213 * XEventQueue.cs: add a DispatchIdle property.
20215 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20216 either the queue is null, or the queue has DispatchIdle set to
20218 (DoEvents): set queue.DispatchIdle to false around the
20219 peek/translate/dispatch message loop in this method. This keeps
20220 Application.Doevents from emitting idle events. Part of the fix
20223 2006-09-11 Chris Toshok <toshok@ximian.com>
20225 * DataGrid.cs (set_DataSource): make this work for both the
20226 winforms/datagrid test and ReportBuilder. It seems as though when
20227 we've created a ListManager (or maybe it's if we have a
20228 BindingContext?), when we set the DataSource it clears the
20229 DataMember to "". otherwise we reuse the datamember. Fixes bug
20232 2006-09-11 Chris Toshok <toshok@ximian.com>
20234 * XplatUIX11.cs: deal with queue being null, which happens in all
20235 the Clipboard functions. Fixes one of the two problems mentioned
20238 2006-09-11 Chris Toshok <toshok@ximian.com>
20240 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20241 button on various spots (including outside the menu) works closer
20242 to MS, and doesn't crash. Fixes #79343.
20244 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
20246 * ListView.cs: Do not initialize item_sorter in init. To match MS,
20247 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20248 and the internal comparer is set. When a new ListViewItemSorter is set,
20249 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20250 was specified. No further processing is necessary if SortOrder is set
20251 to it's current value. If Sorting is modified to None, and View is
20252 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20253 (either custom or our internal ItemComparer) to null, on 1.0 profile
20254 only set item_sorter to null if its our internal IComparer. If Sorting
20255 is modified to Ascending or Descending, then use our internal IComparer
20256 if none is set, and if the current IComparer is our internal one then:
20257 on 2.0 profile always replace it with one for new Sorting, and on 1.0
20258 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20259 Enum.IsDefined to verify whether a valid View value is specified in
20260 its setter. Automatically sort listview items when listview is
20261 created. In Sort, do nothing if ListView is not yet created, or if
20262 no item_sorter is set (no Sorting was set, Sorting was explicitly set
20263 to None or ListViewItemSorter was set to null). Added Sort overload
20264 taking a bool to indicate whether the ListView should be redrawn when
20265 items are sorted (we use this in ListViewItemCollection to avoid double
20266 redraws). Modified our internal IComparer to take the sort order into
20267 account. In Add and AddRange methods of ListViewItemCollection, also
20268 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20269 view), but use overload with noredraw option to avoid double redraw.
20270 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20271 true when View is Tile, and do the same when attempting to set View to
20272 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20273 for selected/checked indices, as it involves overhead when sorting is
20274 done while these collections are not used all that often. Instead
20275 we'll build the indices on demand. Modified IList implementation of
20276 CheckedIndexCollection to use public methods if object is int.
20277 Modified CheckedListViewItemCollection to hide checked items if
20278 ListView.CheckBoxes is false. Removed LAMESPEC remark in
20279 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20280 IList implementation in SelectedIndexCollection to use public methods
20281 if object is int. Modified SelectedListViewItemCollection to hide
20282 selected items if listview is not yet created.
20283 * ListViewItem.cs: CheckedIndices list no longer needs to be
20284 maintained separately (see ListView changes). Also clone font, fixes
20287 2006-09-11 Mike Kestner <mkestner@novell.com>
20289 * ComboBox.cs: if we are updating the contents of the currently
20290 selected index, refresh the control or the textbox selection.
20293 2006-09-11 Mike Kestner <mkestner@novell.com>
20295 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
20296 the 'specified' logic has been moved there. This seems like a bug
20297 in Control.cs, since our current SetBoundsCore completely ignores
20298 the specified parameter. Peter's commit seems to indicate that is
20299 the way the MS control implementation works. [Fixes #79325]
20301 2006-09-10 Jonathan Chambers <joncham@gmail.com>
20303 * XplatUI.cs: Set default_class_name to be composed
20304 of current domain id. This allows MWF to be loaded in multiple
20307 2006-09-09 Miguel de Icaza <miguel@novell.com>
20309 * X11Keyboard.cs: If we are unable to obtain the input method, do
20310 not call CreateXic to create the input context. Should fix
20313 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
20315 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20316 Simplified gnome support by adding more pinvokes to get the
20317 icon for a file or mime type.
20319 2006-09-08 Jackson Harper <jackson@ximian.com>
20321 * MenuAPI.cs: Deslect popup context menu items before closing the
20322 window, so that you don't see the previously selected item
20323 selected when you reopen the menu.
20324 * TextControl.cs: Update the cursor position even if we don't have
20325 focus. This fixes typing in things like the ComboBox. I'm not
20326 totally sure we should always set the visibility if we don't have
20327 focus, but couldn't find any corner cases where the cursor showed
20328 up when it shouldn't.
20330 2006-09-08 Chris Toshok <toshok@ximian.com>
20332 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20333 our arrays are length 256. & 0xff before indexing. Fixes the
20334 crash in bug #78077.
20336 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20338 * ThemeWin32Classic.cs:
20339 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20340 is true. Handle that check box too.
20342 2006-09-07 Chris Toshok <toshok@ximian.com>
20344 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
20347 2006-09-07 Chris Toshok <toshok@ximian.com>
20349 * Control.cs: in set_BackColor only do the work if
20350 background_color != value.
20352 * XplatUIX11.cs: move the clearing of invalid areas (both client
20353 and nc) to the same block of code where we set (nc_)expose_pending
20354 to false. That is, move it from PaintEventEnd to PaintEventStart,
20355 so things that cause invalidates from within OnPaint will trigger
20356 another call to OnPaint. Fixes bug #79262.
20358 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
20360 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20361 * FileDialog.cs: Fix typo
20363 2006-09-07 Jackson Harper <jackson@ximian.com>
20365 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
20366 for tab pages if they have any.
20368 2006-09-06 Mike Kestner <mkestner@novell.com>
20370 * Splitter.cs: use the "current" rect when finishing drag handle
20371 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
20373 2006-09-06 Mike Kestner <mkestner@novell.com>
20375 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20376 support offset splitters. [Fixes #79298]
20378 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
20380 * Mime.cs: Fixed a bug that could override the global mime type
20383 2006-09-05 Jackson Harper <jackson@ximian.com>
20385 * TabControl.cs: Better calculation method for setting the slider
20386 pos. Prevents crashes on really wide tabs.
20387 - Draw Image on tab pages if an image list is used.
20389 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20391 * MonthCalendar.cs: When Font changes, the Size should be
20392 updated to fit the new font's space requirements.
20394 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
20396 * ListBox.cs: If the items are cleared with Items.Clear set
20399 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20401 * MonthCalendar.cs: Handle arrow keys as input keys. Also
20402 fire DateChanged event instead of DateSelected event when
20403 the date was changed by keyboard interaction.
20405 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20407 * DateTimePicker.cs: Handle DateChanged for the associated
20408 month_calendar control, and set month_calendar.Font from
20409 OnFontChanged method, as well as resize the height of the
20410 control when needed. Make PreferredHeight proportional.
20412 2006-09-01 Chris Toshok <toshok@ximian.com>
20414 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20417 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20419 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
20421 * FileDialog.cs: Set ClientSize instead of window size, to allow space
20422 for decorations (Fixes #79219)
20424 2006-09-01 Mike Kestner <mkestner@novell.com>
20426 * ComboBox.cs: first stab at sorting plus some selection handling
20427 fixes to bring us more in line with MS behavior. Also switches back
20428 to index based selection. Alternative patches for index-based
20429 selection were provided by Jackson Harper, Carlos Alberto Cortez,
20430 and latency@gmx.de on bug 78848. I assume they were similar to this
20431 code I've had simmering in my tree forever.
20434 2006-09-01 Chris Toshok <toshok@ximian.com>
20436 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20437 when setting list position guard against ending up with a -1 index
20438 (the other part of the fix for #78812). Should probably make sure
20439 we don't need the analogous fix in the ItemDeleted case.
20442 - in SetDataSource, work around the fact that the way
20443 OnBindingContextChanged is invoked will cause us to re-enter this
20444 method. I'll remove the hack once I investigate
20445 OnBindingContextChanged.
20447 - fix the logic in set_DataSource and set_DataMember (basically
20448 what to do if the other of the two is null.)
20450 - in OnListManagerItemChanged, we need to take into account the
20451 edit row when deciding whether or not to call RecreateDataGridRows
20452 (part of the fix for #78812).
20454 2006-09-01 Jackson Harper <jackson@ximian.com>
20456 * Splitter.cs: Don't do anything if there is no control to affect
20457 (prevents us from crashing in weird tet cases).
20458 * TreeView.cs: Bounding box for the mouse movement reverting
20459 focus/selection back to previously selected node. This matches
20460 MS, and makes the tree a lot more useable.
20461 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20462 use clipping so they are not drawn. This fixes when the control
20463 is set to have a transparent background, or if it was over an
20466 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
20468 * MimeIcon.cs: Improved handling for reading default icons when
20469 using gnome (2.16 made it necessary). Check and read svg icons
20470 first, then 48x48 and then 32x32 icons.
20472 2006-08-31 Chris Toshok <toshok@ximian.com>
20474 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20477 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20478 ProcessKeyPreview. Fixes part of #77806.
20480 * DataGrid.cs: big patch.
20482 - revert the queueing up of DataSource/DataMember if inside
20483 BeginInit/EndInit calls. That's not the way the datagrid achieves
20484 its delayed databinding. Instead, call SetDataSource in
20485 OnBindingContextChanged. This mimic's MS's behavior, and fixes
20488 - Also, it wasn't mentioned in #78811, but the test case exhibits
20489 behavior that was lacking in our datagrid implementation - Columns
20490 that have mapping names that don't exist in the datasource's
20491 properties aren't shown. Yuck. To fix this I added the bound
20492 field to the column style, and basically any calculation to figure
20493 out anything about columns uses a loop to find the bound columns.
20494 still need to investigate if I can cache an array of the bound
20495 columns or if the indices must be the same.
20497 - When setting CurrentCell, we no longer abort if the cell being
20498 edited was in the add row. This fixes the other part of #77806.
20500 - The new code also fixes #78807.
20502 * ThemeWin32Classic.cs: perpetrate the same disgusting
20503 column.bound field hack, and only render bound fields.
20505 2006-08-31 Chris Toshok <toshok@ximian.com>
20507 * DataGridColumnStyle.cs: add bound field. this field is true if
20508 the datasource has a property corresponding to the mapping name.
20510 * DataGridTableStyle.cs: set the bound field on the column styles
20511 depending on whether or not we have a column for that property.
20513 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
20515 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
20516 splitter control (fixes #79228)
20518 2006-08-31 Chris Toshok <toshok@ximian.com>
20520 * DataGridColumnStyle.cs: we need to delay the assignment of
20521 property descriptor until the last possible moment due to the lazy
20522 databinding stuff in the datagrid. Also, fix the exceptions
20523 thrown by CheckValidDataSource to match MS.
20525 2006-08-31 Jackson Harper <jackson@ximian.com>
20527 * Form.cs: When activated select the active control, if there is
20528 no active control, we select the first control.
20529 * XplatUIX11.cs: If there is no focus control when we get a
20530 FocusIn event, find the toplevel form and activate it. This
20531 occurs when you popup a window, it becomes the focus window, then
20532 you close that window, giving focus back to the main window.
20534 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20536 * MonthCalendar.cs:
20537 * ThemeWin32Classic.cs: Cache Font in bold style, as well
20538 as StringFormat with Center alignments in MonthCalendar,
20539 instead of creating new ones when drawing the control.
20540 Also, draw the month name in bold style.
20542 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
20545 - PerformLayout(): It would seem MS performs the fill even if the
20546 control is not visible (part of #79218 fix)
20547 - ResetBackColor(): Use the setter to reset the color, to allow
20548 overriders to catch the change.
20550 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20551 - CreateHandle(): dito (part of $79218 fix)
20552 - Don't set an icon if we have a dialog
20553 * ScrollableControl.cs:
20554 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20555 - ScrollIntoView(): No need to scroll if control is already visible
20556 (resolves fixme and fixes #79218)
20558 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20560 * MonthCalendar.cs: Change proportions in SingleMonthSize
20561 to match the aspect of the original control.
20563 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
20565 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20566 get updated when they get maximized.
20568 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
20570 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20572 2006-08-29 Chris Toshok <toshok@ximian.com>
20574 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20576 2006-08-29 Jackson Harper <jackson@ximian.com>
20578 * TreeView.cs: Need to track selected node and highlighted node,
20579 they aren't always the same thing, when the mouse is down on a
20580 node it is hilighted, but not selected yet.
20581 - Do the HideSelection stuff right
20582 - Need to focus on rbutton mouse down. And redraw selection when
20583 right click is mouse upped.
20585 2006-08-29 Mike Kestner <mkestner@novell.com>
20587 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20588 when SubItems.Count < Columns.Count. [Fixes #79167]
20590 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20592 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20594 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20596 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20597 from X. Only send based on ConfigureNotify if we don't have the
20598 correct location in hwnd (if the window manager moved us)
20600 2006-08-28 Mike Kestner <mkestner@novell.com>
20602 * ListView.cs: remove a TODO.
20603 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20604 [Fixes ListView part of #79166]
20606 2006-08-28 Mike Kestner <mkestner@novell.com>
20608 * ListView.cs: move wheel handler to parent since it is focused
20609 instead of the item_control now. [Fixes #79177]
20611 2006-08-28 Mike Kestner <mkestner@novell.com>
20613 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20614 when the control is focused. [Fixes #79171]
20616 2006-08-28 Mike Kestner <mkestner@novell.com>
20618 * ListView.cs: size the item and header controls for empty and
20619 unscrollable views.
20620 * ThemeWin32Classic.cs: draw disabled backgrounds.
20623 2006-08-28 Chris Toshok <toshok@ximian.com>
20625 * Form.cs: remove unused "active_form" static field.
20627 * Hwnd.cs: lock around accesses to static windows collection.
20629 * Application.cs: lock threads in Exit ().
20631 2006-08-28 Chris Toshok <toshok@ximian.com>
20633 * NativeWindow.cs: lock around accesses to window_collection.
20635 2006-08-28 Chris Toshok <toshok@ximian.com>
20637 * Control.cs: err, fix this the right way, by locking on controls
20638 when using it. not by making it synchronized.
20640 2006-08-28 Chris Toshok <toshok@ximian.com>
20642 * Control.cs: make the static "controls" field synchronized, as it
20643 gets updated from multiple threads.
20645 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20647 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20648 Prevent other threads from exiting when calling thread sets quit state.
20649 * XEventQueue.cs: Added PostQuitState property
20651 2006-08-27 Chris Toshok <toshok@ximian.com>
20653 * AsyncMethodData.cs: add a slot for the window handle.
20655 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20656 window (the destination control's window, not the foster window).
20658 * Control.cs (BeginInvokeInternal): store the window's handle in
20659 the AsyncMethodData.
20662 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20665 - PostQuitMessage: Removed resetting S.D display handle, we might have
20666 another loop started after calling PostQuitMessage (Fixes #79119)
20667 - Created destructor to reset S.D handle
20669 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20671 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20673 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20675 * TextControl.cs (Insert): Update the caret position even if we don't
20676 have a handle yet, just don't call the driver in that case.
20677 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20678 to the end of the new selection text (Fixes #79184)
20680 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20682 * Form.cs (Activate): Only activate if the handle is created)
20684 - Mark window as invisible when it's disposed
20685 - Check if window handle is created when setting window visible,
20686 instead of relying just on the is_created variable
20687 - Check if object is disposed when creating the control (Fixes #79155)
20689 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20691 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20692 when allowing layout again. Otherwise we re-generate the anchoring
20693 distance to the border again and actually alter what the user wanted
20694 This is ugly, it'd be better if we used DisplayRectangle instead of
20695 ClientRectangle for Control.UpdateDistances, but that causes us to
20696 have other problems (initial anchoring positons would be wrong)
20699 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20702 - The size and location setters shouldn't go directly to
20703 SetBoundsCore, but to SetBounds, which triggers layout on the
20704 parent, then calls SetBoundsCore. (Related to fix for #78835)
20705 - SetBounds: Moved actual location update code into this function
20706 from SetBoundsCore, to match MS. Added call to PerformLayout if
20707 we have a parent (to trigger resizing of anchored parents if the
20708 child size has changed (see testcase for #78835)
20709 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
20711 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20713 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20715 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20716 System.Drawing when a toplevel window gets closed; there might
20717 be other toplevel windows belonging to the same app (Fixes #78052)
20719 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
20721 * FileDialog.cs: After reading FileDialog settings from mwf_config
20722 use Desktop prefix only if a real folder doesn't exist anymore.
20723 * FontDialog.cs: Added char sets.
20724 It is now possible to select the font, size or style with the
20727 2006-08-25 Kornél Pál <kornelpal@gmail.com>
20729 * PrintPreviewDialog.cs: Use assembly name constants.
20731 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20733 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20734 scrollbar from whacking it's buttons)
20736 2006-08-24 Chris Toshok <toshok@ximian.com>
20738 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
20739 in this patch (aggregating setting Left/Top/Width/Height to
20740 setting Bounds on the scrollbars), but the crux of the fix is in
20741 Recalculate, where we scroll by the remaining scroll_position if
20742 we're hiding a scrollbar. The 2*$5 reward in the comment is
20745 2006-08-24 Jackson Harper <jackson@ximian.com>
20748 * MdiWindowManager.cs: If the form is made a non-mdi window we
20749 need to remove the form closed event so that closing forms works
20752 2006-08-24 Jackson Harper <jackson@ximian.com>
20754 * Control.cs: Make IsRecreating internal so that the driver can
20756 - Temporarily remove the Hide when controls are removed, its
20757 making a whole bunch of things not work because visibility isn't
20758 getting reset elsewhere correctly
20759 * Form.cs: Need to do a full handle recreation when the mdi parent
20761 * XplatUIX11.cs: If we are recreating handles don't dispose the
20762 HWNDs. What was happening is the handles were being recreated in
20763 SendWMDestroyMessages, but then flow continued on in that method
20764 and destroyed the new handles.
20766 2006-08-23 Jackson Harper <jackson@ximian.com>
20768 * Form.cs: MdiClient is always at the back of the bus
20769 * Control.cs: When the order of items in the collection is changed
20770 we need to reset the all_controls array
20771 - do the same sorta setup thats done when adding a control when a
20772 control is set on the collection.
20774 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20776 * TextBoxBase.cs (get_Text): Return an empty array if our document
20777 is empty (fixes #79052)
20779 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20781 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20782 on WM_SYSCHAR messages (fixes #79053)
20784 2006-08-23 Chris Toshok <toshok@ximian.com>
20786 * DataGrid.cs: fix flickering when scrolling vertically.
20788 2006-08-23 Chris Toshok <toshok@ximian.com>
20790 * DataGrid.cs (EndEdit): only invalidate the row header when we
20793 2006-08-23 Chris Toshok <toshok@ximian.com>
20795 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20796 methods. fixes the flicker when scrolling around.
20798 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20800 * FileDialog.cs: Making sure the control is created before we get a
20801 chance to use it with BeginInvoke (Fixes #79096)
20803 2006-08-23 Chris Toshok <toshok@ximian.com>
20805 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20806 width to use when painting the rows.
20808 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20811 - Throw ArgumentException if a negative value is passed to SelectionLength
20812 - Update the selection end if start is moved. end needs to be always
20813 after start. (Fixes #79095)
20814 - Track selection length; MS keeps the selection length even if start
20815 is changed; reset on all other operations affection selection
20817 2006-08-22 Jackson Harper <jackson@ximian.com>
20819 * TreeView.cs: Make sure both scrollbars get displayed and sized
20820 correctly when the other bar is visible.
20821 - Use the original clip rectangle for checking if the area between
20822 the two scrollbars is visible, not the viewport adjusted clipping
20825 2006-08-22 Jackson Harper <jackson@ximian.com>
20827 * Binding.cs: We don't use IsBinding because it requires the
20828 control to be created, which really shouldn't be necessary just to
20829 set a property on the control.
20831 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20833 * ComboBox.cs: Some CB.ObjectCollection methods must throw
20834 ArgumentNullReferenceException when the argument is null.
20836 2006-08-21 Jackson Harper <jackson@ximian.com>
20838 * Timer.cs: Track the thread that the timer is started in (NOT
20839 CREATED), this way messages for it will only be triggered on its
20841 * XEventQueue.cs: Track the timers here, this makes timers per
20843 * XplatUIX11.cs: The timers are moved to the XEventQueue.
20845 2006-08-19 Chris Toshok <toshok@ximian.com>
20847 * XplatUIX11.cs: after further communication with pdb, we get the
20848 best of both worlds. SetZOrder working for un-Mapped windows, and
20849 no X errors for un-mapped windows.
20851 2006-08-19 Chris Toshok <toshok@ximian.com>
20853 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20854 as it was causing pdn toolbars to not have the correct stacking.
20856 2006-08-18 Mike Kestner <mkestner@novell.com>
20858 * ListView.cs : guard against negative ClientArea.Width in scrollbar
20859 calculation. Not sure why control should ever be setting a negative
20860 width though. Fixes #78931.
20862 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20864 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20865 null items in ObjectCollection class.
20866 * ListBox.cs.: Likewise.
20868 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
20870 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20871 as the base method in ThemeWin32Classic should work fine.
20874 2006-08-18 Jackson Harper <jackson@ximian.com>
20876 * Binding.cs: When validating if the value entered doesn't convert
20877 properly reset to the old value.
20878 * RadioButton.cs: Don't fire click when we get focus.
20880 2006-08-18 Jackson Harper <jackson@ximian.com>
20882 * FileDialog.cs: Paint the selection on the directory combobox the
20885 2006-08-17 Jackson Harper <jackson@ximian.com>
20887 * ErrorProvider.cs: Don't allow the error control to be selected.
20888 * Control.cs: Don't send the SetFocus messages, the control
20889 activation will do this, and if we do it blindly here validation
20892 2006-08-17 Jackson Harper <jackson@ximian.com>
20895 * ContainerControl.cs: Make validation events fire in the correct
20896 order. TODO: For some reason the first validation event is not
20899 2006-08-17 Mike Kestner <mkestner@novell.com>
20901 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20903 2006-08-17 Mike Kestner <mkestner@novell.com>
20905 * ComboBox.cs : implement scroll wheel support for popped-down
20906 state. Fixes #78945.
20908 2006-08-17 Jackson Harper <jackson@ximian.com>
20910 * TreeView.cs: Specify treeview actions (old patch that didn't get
20911 committed for some reason).
20912 - Don't let the mouse wheel scroll us too far. Just want to make
20913 the bottom node visible, not scroll it all the ways to the top.
20915 2006-08-17 Jackson Harper <jackson@ximian.com>
20917 * XplatUIX11.cs: Mouse wheel events go to the focused window.
20919 2006-08-17 Mike Kestner <mkestner@novell.com>
20921 * ComboBox.cs : don't do mouseover selection in simple mode.
20923 2006-08-16 Jackson Harper <jackson@ximian.com>
20925 * Form.cs: Fire the closing events for all the mdi child windows
20926 when a window is closed. If the cancel args are set to true, the
20927 main window still gets the event fired, but it doesn't not close.
20928 * MdiWindowManager.cs: Do this closing cleanup in a Closed
20929 handler, instead of when the button is clicked, so cancelling the
20930 close works correctly.
20931 * ComboBox.cs: Send the mouse down to the scrollbar.
20933 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20935 * ListBox.cs: When passing 'null' to SelectedItem,
20936 set SelectedIndex to -1, to unselect items. This is the
20937 observed behaviour in .Net.
20939 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
20941 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20942 MS flags saying there won't be any. (fixes #78800)
20943 * Control.cs (HandleClick): Made virtual
20945 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
20947 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20948 cultures. Fixed bug #78399.
20950 2006-08-16 Jackson Harper <jackson@ximian.com>
20952 * Form.cs: Use the MdiClients MdiChildren property to access
20953 MdiChildren instead of creating the array from the child controls.
20954 * MdiClient.cs: Maintain a separate array of the mdi children, so
20955 that insertion order is maintained when the Z-order is changed.
20957 2006-08-16 Mike Kestner <mkestner@novell.com>
20959 * ListView.cs : add an ItemComparer and default to it for sorting.
20960 Fixes #79076, but sorting needs a complete overhaul to be compat with
20963 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20965 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20967 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20969 * Hwnd.cs (Mapped): Properly traverse the tree
20971 2006-08-15 Chris Toshok <toshok@ximian.com>
20973 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
20974 pass manager.Current.GetType() to ParseData. It has to be the
20975 property type. So, hold off doing the ParseData until we're in
20976 SetPropertyValue where we know the type. This fixes the crash in
20977 #78821 but the textbox is still empty.
20979 2006-08-15 Chris Toshok <toshok@ximian.com>
20982 - when we're scrolling, only call Edit() again if the
20983 current cell is still unobscured. Fixes bug #78927.
20984 - when handling mousedown on a cell, ensure the cell is visible
20985 before calling Edit.
20986 - remove the properties from DataGridRow, and remove the
20987 DataGridParentRow class altogether.
20990 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20992 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20993 fire OnTextChanged by ourselves. There's no point calling base,
20994 we don't set the base value anywhere else. Fixes #78773.
20996 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20998 * ListBox.cs: Call CollectionChanged when modifying
20999 an item from Items indexer, to update the actual items
21002 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21004 * PrintDialog.cs: Small fixes for focus and a pair of checks,
21005 to match .Net behaviour.
21007 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21009 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21011 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21013 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21015 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21017 * MessageBox.cs: Prevent potential NRE exception.
21018 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21020 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21022 * MessageBox.cs: Calculate the owner of a messagebox, also make
21023 it topmost. Fixes #78753
21025 2006-08-14 Chris Toshok <toshok@ximian.com>
21027 * XplatUIX11.cs: A couple of fixes so that metacity will let us
21028 programmatically move windows. first, set the PPosition hint as
21029 well as the USPosition hint. Second include some code from pdb
21030 that sets the window type to NORMAL when we set the transient for
21031 hint. This is because, in the absence of a window type, metacity
21032 thinks any window with TransientFor set is a dialog, and refuses
21033 to let us move it programmatically. fascists.
21035 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21037 * XplatUIX11.cs: When setting normal hints, take into consideration
21038 an different hints previously set so we don't delete them (fixes #78866)
21040 2006-08-12 Chris Toshok <toshok@ximian.com>
21042 * ToolBarButton.cs: make Layout return a boolean, if something to
21043 do with the button's layout changed.
21046 - add another parameter to Redraw, @force, which all existing
21048 - make the Layout function return a boolean which is true if the
21049 layout has actually changed. Redraw now uses this (and @force)
21050 to determine when to invalidate. At present the only place
21051 where @force can be false is the call from OnResize, when
21052 background_image == null. So, resizing a toolbar when the
21053 layout doesn't change results in no drawing.
21055 2006-08-12 Chris Toshok <toshok@ximian.com>
21057 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
21058 the VScrollBar and HScrollbar reversed. oops.
21060 * DataGrid.cs: fix the logic that assigns sizes to the implicit
21061 scrollbars. we were assigning them twice (once in
21062 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21063 therefore causing two scrollbar resizes (and redraws?) to happen
21066 2006-08-12 Chris Toshok <toshok@ximian.com>
21068 * ToolBarButton.cs: redraw the entire button if the theme tells us
21071 * Theme.cs: add ToolBarInvalidateEntireButton.
21073 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
21074 buttons, just the border.
21076 * ThemeNice.cs: redraw the entire toolbar button since we need to
21077 draw the highlight image.
21079 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
21080 we need to redraw the entire button (not just the border).
21082 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21084 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
21085 for vertical bars. Fixes the mismatches shown by #78513
21087 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
21089 * FileDialog.cs: If a saved/remembered path doesn't exist
21090 anymore, fall back to "Desktop".
21092 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21094 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
21095 parent. It's apparently legal to not have one
21097 - SetZOrder: Don't try to set Z-Order on an unmapped window
21098 - CreateWindow: 0,0 are legal coordinates for a window. don't move
21099 it unless the coordinates are negative
21101 2006-08-10 Mike Kestner <mkestner@novell.com>
21103 * ListControl.cs: allow null for DataSource. Clear DisplayMember
21104 when setting to null per msdn docs. Fixes #78854.
21106 2006-08-10 Chris Toshok <toshok@ximian.com>
21108 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
21109 flickering by setting a clip rectangle on the Graphics when we
21110 need to redraw just a particular menuitem. Also, rename "OnClick"
21111 to "OnMouseDown" to reflect what it actually is.
21113 * Form.cs: track the OnMouseDown change.
21115 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
21117 * CommonDialog.cs: Properly inherit the CreateParams from the form
21118 and only change what we need. Fixes #78865
21120 2006-08-10 Chris Toshok <toshok@ximian.com>
21122 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
21123 flickering in flat mode (and most of the flickering in general) by
21124 only invalidating the button border (and not the entire rectangle)
21125 when the state changes. A couple of cases still flicker:
21126 ToggleButtons, and the dropdown arrow case when the user mouse
21129 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
21131 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
21132 for german keyboards. Numlock state shouldn't affect the behaviour
21133 of the Del key. Fixes bug #78291.
21135 2006-08-10 Chris Toshok <toshok@ximian.com>
21137 * ListControl.cs: remove the items.Clear line from BindDataItems,
21138 as this is the first thing done by both subclasses in their
21139 SetItemsCore overrides. Also, add a ItemChanged handler, and when
21140 passed -1, refresh the list. This gets databinding working when
21141 the datasource is set on the list before the datasource is
21142 populated (as in wf-apps/ReportBuilder.)
21144 * ComboBox.cs: remove the argument to BindDataItems. This call
21145 should really go away, and be initiated by the ListControl code.
21147 * ListBox.cs: same.
21149 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21151 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
21152 if no data is in the document when the control is displayed
21154 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21156 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
21159 - PositionCaret: Allow positioning of caret but don't call methods
21160 requiring a handle if the window isn't created yet
21161 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
21162 - owner_HandleCreated: Don't position the caret, just update it's
21163 location. User might have already set a different position
21165 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21167 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
21168 windows. Screws up the returned coordinates for child windows.
21169 Fixes #78825. I'm hoping this doesn't break something, since the
21170 code was explicitly put in 8 months ago, but no bug was attached.
21171 Menus still seem to work properly.
21173 2006-08-08 Chris Toshok <toshok@ximian.com>
21175 * DataGrid.cs: make BeginInit/EndInit actually do what they're
21176 supposed to do - delay data binding until the EndInit call. Also,
21177 make the table style collection's CollectionChangeAction.Refresh
21180 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21181 (with action = Refresh) when a consituent table's MappingName is
21184 2006-08-08 Chris Toshok <toshok@ximian.com>
21186 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21187 Invalidate, since changing the text can change the size of the all
21190 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21192 * Form.cs (AddOwnedForm): Still need to add the form to our listif
21193 we don't have it yet
21195 2006-08-08 Chris Toshok <toshok@ximian.com>
21197 * PrintControllerWithStatusDialog.cs: don't .Close() the status
21198 dialog, as this causes X errors later on, since we actually
21199 destroy the window. Instead, .Hide() it.
21201 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21203 * ComboBox.cs: Added focus reflection for popup window
21205 - Removed transient setting for non-app windows for now, not sure it
21207 - Fixed logic checking if we have captions when deciding
21208 override_redirect, WS_CAPTION is two bits and a 0 check was not
21210 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21213 - AddOwnedForm: Don't just add the form to the list, call the property
21214 to ensure the driver is informed about the ownership as well
21215 - CreateHandle: Set the TopMost status in the driver if we have an owner
21216 * XplatUI.cs: Fixed debug statement
21218 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
21219 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21220 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21221 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
21222 TrackBarRenderer.cs: Make constructor private.
21223 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21224 * ProfessionalColorTable.cs: Make properties virtual.
21226 2006-08-06 Duncan Mak <duncan@novell.com>
21228 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21231 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21232 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21233 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21234 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21235 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21236 Initial import of new 2.0 classes.
21238 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21239 * Application.cs: Add 2.0 VisualStyles properties.
21241 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21242 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21243 XplatUIX11.cs: Create property to allow access to existing private
21244 variable "themes_enabled"
21246 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21248 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21249 file size, as otherwise our class libraries fail using windows. Fixes
21252 2006-08-04 Jackson Harper <jackson@ximian.com>
21255 * XplatUIX11.cs: Move the toolwindow window manager creation into
21256 the X11 driver, this way on win32 we can let windows create/handle
21259 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21261 * PrintDialog.cs: Remove some redundant checks, add some others,
21262 clean some code, and move the focus to the text boxes when the
21263 values are incorrect.
21265 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
21267 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21269 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21271 * NumericUpDown.cs: Setting the Minimum and Maximum is now
21272 handled correctly. Fixes bug #79001.
21274 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21276 * PrintDialog.cs: The "Copies" numeric up down must have
21277 set the Minimum property to 1; only if the value is bigger
21278 than 1, activate "Collate" check box. This is the behaviour of .Net.
21279 Also modify the Document elements only if it is not null.
21281 2006-08-03 Jackson Harper <jackson@ximian.com>
21283 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21284 length. (We have a larger array then actual node count).
21286 2006-08-03 Jackson Harper <jackson@ximian.com>
21288 * ComboBox.cs: Don't show selection by default.
21289 - The SelectAll isn't needed here, since the focus code should do
21291 - DDL style lists to manual selection drawing, so when they
21292 get/lose focus they have to invalidate.
21294 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
21296 * TextBoxBase.cs: Don't always show all selections by default.
21298 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
21299 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21300 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21301 Fixed various typos.
21303 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21305 * Control.cs: Removing the controls in a ControlCollection with
21306 Clear now hides the controls as expected. Fixes bug #78804.
21308 2006-08-03 Jackson Harper <jackson@ximian.com>
21310 * Control.cs: Revert previous focus patch, it breaks reflector.
21312 2006-08-03 Jackson Harper <jackson@ximian.com>
21314 * ComboBox.cs: Cleanup selection and focus with the combobox.
21315 This also eliminates some duplicated keyboard code, since now
21316 everything is handled by the main class.
21317 - Make list selection work on mouse up instead of down, to match
21320 2006-08-02 Jackson Harper <jackson@ximian.com>
21322 * Control.cs: Setting focus needs to go through the whole
21323 selection mechanism.
21325 2006-08-02 Chris Toshok <toshok@ximian.com>
21327 * PrintPreviewDialog.cs: change MinimumSize to use
21328 base.MinimumSize so it works.
21330 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
21333 - UpdateCaret: Added sanity check in case caret isn't defined yet
21334 - Line.Delete: Now updating selection and caret markers if we're
21335 transfering a node (Properly fixes #78323)
21336 - SetSelectionEnd: Added sanity check
21337 * TextBoxBase.cs: Removed broken attempt to fix #78323
21339 2006-08-01 Chris Toshok <toshok@ximian.com>
21341 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21342 Close() call is handled in Form, not here.
21344 2006-08-01 Chris Toshok <toshok@ximian.com>
21346 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21349 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21350 for sizes < 100% zoom. The code now aggressively attempts to keep
21351 from calling document.Print (), and tries not to use the scaling
21352 g.DrawImage whenever possible (it still does if you scale to >
21353 100%, since usually that involves huge images).
21355 * PrintPreviewControl.cs: hook up the close button.
21357 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
21358 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21359 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21360 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21361 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21362 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21363 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21364 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21365 Removed [Serializable] for 2.0 Event Handlers.
21367 2006-07-31 Jackson Harper <jackson@ximian.com>
21369 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21370 * TextControl.cs: Uncomment out the body of this method.
21372 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
21374 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21377 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21379 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21380 that embed TextBox and need selections visible even if textbox is not
21381 focused to enforce that behaviour.
21382 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21385 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21388 - Added new SetSelectionStart/SetSelectionEnd overloads
21389 - Fixed viewport width assignment to be accurate
21390 - Adjusted alignment line shift calculations to allow cursor on right
21391 aligned lines to be always visible at the right border (like MS)
21393 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21394 - TextBoxBase_SizeChanged: recalculating canvas on size changes
21395 - CalculateScrollBars: Use ViewPort size instead of window size, to
21396 properly consider space occupied by the border and scrollbars
21398 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
21399 calculations; no longer leaves artifacts
21400 - CaretMoved: Adjusted window scrolling to match MS and fixed several
21401 calculation bugs (Still missing right/center align calculations)
21403 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21405 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21406 use of both scroll rect and clip rect, as they do the same.
21408 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21410 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
21411 in the event handler (fixes #78912)
21413 2006-07-31 Chris Toshok <toshok@ximian.com>
21415 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21416 grid.ListManager.Count, since grid.ListManager might be null.
21417 This of course begs the question "why are we drawing rows for a
21418 grid with no list manager (and therefor no rows)?" Fixes the
21419 crash in bug #78929.
21421 2006-07-31 Chris Toshok <toshok@ximian.com>
21423 * RelatedPropertyManager.cs: Don't always chain up to the parent
21424 ctor. instead, call SetDataSource if the parent's position is !=
21425 -1. Fixes the crash in #78822.
21427 2006-07-31 Chris Toshok <toshok@ximian.com>
21429 * DataGrid.cs (get_ListManager): use field instead of property
21430 accessors for datasource and datamember.
21431 (RowsCount): make internal again.
21432 (OnMouseDown): end edits before resizing columns/rows.
21433 (OnMouseUp): restart edits after resizing columns/rows.
21435 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
21437 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21438 This fixes the situation where the last set cursor is displayed
21439 whenever the mouse is over scrollbars.
21441 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21443 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21444 Document properties, as well as initial values.
21446 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
21448 * XplatUIWin32.cs (SetBorderStyle): Setting both border
21449 and ClientEdge results in a 3-pixel border, which is
21452 2006-07-28 Jackson Harper <jackson@ximian.com>
21454 * TreeNodeCollection.cs: Fix the clear method.
21455 - Fix the Shrink also
21457 2006-07-27 Jackson Harper <jackson@ximian.com>
21459 * TreeView.cs: Make sure the visible order is computed when we
21460 attempt to size the scrollbars (for trees that mess with the
21461 scrolling when they shouldn't.
21462 - Make sure to give the scrollbars valid values.
21464 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21466 * XplatUIX11.cs: Move motion compression code to where it
21467 has less performance impact
21469 2006-07-26 Jackson Harper <jackson@ximian.com>
21471 * UpDownBase.cs: When the control is selected make the child
21472 controls non selectable, so that a click on them won't do a
21473 focus/unfocus cycle.
21474 - Don't give focus to the text box when the spinner is selected.
21475 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21477 2006-07-26 Chris Toshok <toshok@ximian.com>
21479 * ThemeWin32Classic.cs: add print preview rendering. I'm not
21480 satisfied with this solution. If the bitmaps are small, we should
21481 just cache them in the PrintPreviewDialog and draw them here.
21482 Also, the layout is broken for the 2-up and 3-up cases.
21484 * Theme.cs: add PrintPReviewControlPaint.
21486 * PrintPreviewDialog.cs: first pass implementation.
21488 * PrintPreviewControl.cs: first pass implementation. No
21491 * PrintDialog.cs: only validate fields if that particular portion
21492 of the UI is enabled. Also, set the document's controller to a
21493 PrintControllerWithStatusDialog wrapping the document's print
21496 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21497 bring up a SaveFileDialog (i hope we don't want to match the
21498 behavior of the crappy windows file entry) and set the
21499 PrinterSettings.PrintFileName accordingly.
21501 2006-07-26 Jackson Harper <jackson@ximian.com>
21503 * ContainerControl.cs: Add a field that disables auto selecting
21504 the next control in a container when the container is activated.
21505 * UpDownBase.cs: Don't select the text box when the up down is
21508 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21510 * XEventQueue.cs: Added methods for peeking (used for compression
21511 of successive events)
21512 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21513 mouse move events (fixes #78732)
21515 2006-07-25 Jackson Harper <jackson@ximian.com>
21517 * UpDownBase.cs: Use an internal class for the textbox so that we
21518 can control focus. the updown control should always have focus,
21519 if either the text area or the buttons are clicked.
21520 - Send the key messages to the textbox, since it never actually
21522 - Activate and decativate the textbox caret.
21524 2006-07-24 Jackson Harper <jackson@ximian.com>
21526 * Control.cs: Use the directed select when selecting a control,
21527 this way the container controls override will get called and the
21528 whole ActiveControl chain will get triggered. TODO: probably need
21529 to make sure this gets done everywhere instead of the old
21531 * ContainerControl.cs: Implement the directed Select method to
21532 find and activate the correct child control.
21534 2006-07-22 Mike Kestner <mkestner@novell.com>
21536 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21537 menu handling code so that clicks without a grab work too.
21540 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
21542 * FileDialog.cs: Enable the BackButton when dirstack has one element.
21543 Added some small optimizations.
21545 2006-07-21 Matt Hargett <matt@use.net>
21547 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21549 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
21551 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
21552 tests pass and match MS in some strange border cases.
21554 2006-07-21 Chris Toshok <toshok@ximian.com>
21556 * ThemeWin32Classic.cs: handle drawing of the relation links and
21557 parent row buttons.
21559 * Theme.cs: change args to DataGridPaintParentRow.
21561 * DataGrid.cs: Don't use controls for the relation links and
21562 parent buttons, so we have to handle all their interactions in
21563 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
21564 when we're navigating through child tables, so we can reinstate
21565 selection, expanded state, current cell, etc.
21567 2006-07-20 Chris Toshok <toshok@ximian.com>
21569 * ToolBar.cs: When we redraw a button, for whatever reason,
21570 there's no reason to redraw the entire toolbar. Also, don't call
21571 Control.Refresh from within Redraw, as it's much heavier than
21572 Invalidate (which is really what we want).
21574 2006-07-20 Chris Toshok <toshok@ximian.com>
21576 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21577 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21578 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21579 traces from within a debug IBindingList datasource
21580 (in mono/winforms/datagrid) for *days*, I've finally gotten things
21581 to work in a similar fashion.
21583 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21585 * ListBox.cs: Don't call Sort () when setting
21586 the Sorted property to false (avoid an unnecessary sort).
21588 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21590 * ListControl.cs: DataSource should throw an ArgumentException
21591 instead of a normal exception when the argument is not of the
21594 2006-07-20 Mike Kestner <mkestner@novell.com>
21596 * Control.cs: add InternalPreProcessMessage to allow us to steal
21597 key events before MWF gets its paws on them. Adapted from a
21599 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
21600 up/down/left/right navigation. Override the new internal control
21601 method to steal the events since they never make it to WndProc.
21602 * ToolBarButton.cs: don't worry about pushed when setting hilight
21603 since the drawing code prefers pushed to hilight. Invalidate on
21604 Hilight changes. Fixes #78547 and #78525.
21606 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21608 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21609 the canvas size. Fixes #78868
21611 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21613 * Splitter.cs: Track requested split position until first layout
21614 is performed. Fixes #78871
21616 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21618 * Application.cs: Removed code that forces 1.x for the version
21619 number if the version started with 0. Not sure why that code was
21620 there and I couldn't find any bugs that indicated we needed it.
21623 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
21625 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21626 ResetDefaults(), just write some output to the console until it's
21627 implemented. Fixes bug #78907 for now. Eliminated two warnings.
21629 2006-07-19 Jonathan Chambers <joncham@gmail.com>
21631 * PropertyGridView.cs: set StartPosition of drop down forms
21632 so they appear in correct initial spot. Fixes #78190.
21634 2006-07-19 Mike Kestner <mkestner@novell.com>
21636 * ThemeWin32Classic.cs: use parent background color when drawing
21637 flat toolbars. Restructure the conditionals to make sure non-flat
21638 non-Divider toolbars are filled too. Fixes #78837.
21640 2006-07-19 Mike Kestner <mkestner@novell.com>
21642 * ListBox.cs: Sort on collection changes even if the handle
21643 isn't created yet. Fixes #78813.
21645 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21647 * ListControl.cs: DisplayMember should never be null,
21648 and now we assign String.Empty when null is passed to it (this
21651 2006-07-17 Mike Kestner <mkestner@novell.com>
21653 * ListViewItem.cs: restructure Font and subitem Font handling
21654 to hold a specific font and refer back to owner on null.
21657 2006-07-17 Mike Kestner <mkestner@novell.com>
21659 * ToolBar.cs: bandaid for side-effect of previous patch which was
21660 discarding explicit heights for non-AutoSize toolbars. Need to
21661 extend my format tester to deal with AutoSize=false. Fixes #78864.
21663 2006-07-15 Jackson Harper <jackson@ximian.com>
21665 * LabelEditTextBox.cs:
21666 * TreeView.cs: Use a new LabelEdit class for node editing, this
21667 class automatically 'closes' itself when it gets the enter key or
21669 - Use the client rectangle when setting the trees scrollbars, so
21670 border style is taken into account.
21672 2006-07-14 Jackson Harper <jackson@ximian.com>
21675 * TreeView.cs: Make the editing work similar to MSs, firing the
21676 events correctly and ending edits correctly.
21678 2006-07-14 Mike Kestner <mkestner@novell.com>
21680 * ToolBarButton.cs:
21681 * ToolBar.cs: layout restructuring and redraw enhancements to support
21682 formatting changes gracefully, like setting TextAlign, ImageList,
21683 ButtonSize, and Appearance. Handles explicit button sizing quirks
21684 of the MS controls. Things like flat toolbars ignoring button size
21685 but becoming constant sized at the largest button's size. Normal
21686 toolbars with an image set cannot be shrunk smaller than the image,
21687 but text can be clipped/ignored.
21688 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21689 is zero. Seems like DrawString should be smart enough to not put
21690 anything on screen though. Also trim labels and ellipsize at the char
21691 boundary, not word.
21692 Fixes #78711 and #78483.
21694 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21696 * FolderBrowserDialog.cs: Disable "New Folder" button and
21697 "New Folder" contextmenu menuitem if a folder like "My Computer"
21700 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21702 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21703 * FolderBrowserDialog.cs:
21704 - Use MWFConfig to store and read size and position settings
21705 - Added code to create a new folder (button or context menu).
21706 Use TreeView labeledit to change the name of the new folder.
21708 2006-07-14 Jackson Harper <jackson@ximian.com>
21710 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
21711 when the tree is scrolled we end editing.
21713 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21715 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21718 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21720 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21721 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21722 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21723 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21724 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21725 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21726 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21727 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21728 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21729 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21730 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21731 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21732 ListViewItemSelectionChangedEventHandler.cs,
21733 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21734 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21735 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21736 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21737 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21738 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21739 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21740 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
21741 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
21742 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21743 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21744 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21745 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21746 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21747 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21748 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21749 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21750 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21751 WebBrowserNavigatingEventHandler.cs,
21752 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21754 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21756 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21757 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21758 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21759 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21760 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21761 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21762 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21763 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21764 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21765 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21766 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21767 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21768 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21769 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21770 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21771 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21772 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21773 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21774 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21775 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21776 ListViewItemStates.cs, MaskFormat.cs: Added
21778 2006-07-13 Jonathan Chambers <joncham@gmail.com>
21780 * PropertyGridView.cs: Fix keyboard navigation of drop down.
21781 Patch from eno for bug 78558.
21783 2006-07-13 Jackson Harper <jackson@ximian.com>
21785 * TreeView.cs: When an edit is finished make sure that the
21786 selected node is visible.
21787 - When setting the top/bottom use the scrollbars is_visible, so
21788 everything will be set correctly even if the tree isn't visible
21791 2006-07-13 Jackson Harper <jackson@ximian.com>
21793 * ComboBox.cs: Revert the item->index part of my previous patch.
21794 * TreeView.cs: Use LostFocus instead of Leave for detecting when
21795 the edit box has lost focus (duh).
21796 - Just make the edit box not visible when we get return, that will
21797 take the focus, which will call EndEdit
21798 * TreeNode.cs When we start editing, notify the treeview.
21800 2006-07-12 Jackson Harper <jackson@ximian.com>
21802 * ComboBox.cs: Clear out old items before setting the item list.
21803 This prevents databound controls from having their items added
21805 - Switch the combobox to use indices whereever possible instead of
21806 using Item's. This allows usto navigate through lists that have
21807 more then one item with the same string value (ie a, b, b, a).
21808 - Scroll the listboxes scrollbar when a non visible item is
21810 - Allow keypress to cycle through all the possible values. For
21811 example if you have b1, b2, b3 and hold down the B key all the
21812 values will be cycled through.
21814 2006-07-12 Jackson Harper <jackson@ximian.com>
21817 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21818 this using the internal methods.
21819 * Control.cs: Add OnGotFocusInternal. A new method that allows
21820 controls to "override" OnGotFocus and change focus behavior if
21822 - Same thing for LostFocus
21823 * ComboBox.cs: Pass off focus to the text control properly.
21825 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
21827 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21828 * FolderBrowserDialog.cs: Almost a complete rewrite.
21829 - Better support for Environment.Specialfolders
21830 - Added support for MWFVFS
21831 - Made setting SelectedPath work
21833 2006-07-12 Jackson Harper <jackson@ximian.com>
21835 * Control.cs: Optimze getting all the controls.
21837 2006-07-11 Jackson Harper <jackson@ximian.com>
21839 * ContainerControl.cs: Override SETFOCUS in the container control,
21840 so that it is not selected on mouse click.
21842 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21844 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
21845 Hopefully we will have a better way once all of focus is complete.
21847 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21849 * ThemeWin32Classic.cs: Commented out some debug code and fixed
21850 a compile error with csc.
21852 2006-07-11 Jackson Harper <jackson@ximian.com>
21854 * Control.cs: When hiding a control only select the next control
21855 if the current control was focused.
21856 - Don't handle enter/leave when setting/killing focus, this is
21857 done by the container control.
21858 - Remove is_selected, it's not needed anymore.
21859 - Add utility methods for selecting a child control, and for
21860 firing the Enter/Leave events.
21861 * ContainerControl.cs: When a control is activated fire the
21862 enter/leave events.
21863 - Don't wrap when processing the tab key, so that focus can be
21864 moved outside of the container.
21865 - Use the correct active control
21867 2006-07-11 Jackson Harper <jackson@ximian.com>
21869 * ComboBox.cs: Remove some debug code that was blinding me.
21870 * UpDownBase.cs: These controls actually aren't implicit, they are
21871 visible to the user.
21873 2006-07-10 Chris Toshok <toshok@ximian.com>
21875 * DataGrid.cs: move back to the is_adding boolean field. god i
21876 hate this is_editing/is_adding/is_changing stuff.
21878 2006-07-10 Chris Toshok <toshok@ximian.com>
21880 * DataGridTableStyle.cs: just check if the property type is bool.
21881 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21882 Don't use CanRenderType.
21884 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21885 if our text == NullText. Remove CanRenderType.
21887 * DataGridBoolColumn.cs: nuke CanRenderType.
21889 * DataGrid.cs: reenable some code to end the current edit inside
21890 of set_CurrentCell. This fixes the other 1.1.16 regression.
21891 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21892 Also, remove the visible_row_count arg from CalcRowHeaders, since
21893 we don't need to worry about the actual height of the area.
21895 2006-07-10 Chris Toshok <toshok@ximian.com>
21897 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21900 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21901 the real sense of the IsInEditOrNavigateMode property (true =
21902 navigate, false = edit). Also, update OnKeyPress to reflect this.
21904 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21905 column style exists, we still need to set its property descriptor
21906 to match up with our list manager.
21908 2006-07-10 Chris Toshok <toshok@ximian.com>
21910 * ThemeWin32Classic.cs: implement the new row/header painting
21911 approach. The parent row painting will likely go away and
21912 replaced with label controls, but the rest seems to work ok (and
21915 * Theme.cs: change the way we draw datagrid rows. we don't draw
21916 the row headers as a block now. Instead we draw them in the
21917 normal draw-row loop. Add some calls for drawing parent rows and
21920 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21921 a default table style. Set the defaults from ThemeEngine.Current,
21922 not SystemColors. Fix lots of misc issues with property setters.
21924 * DataGrid.cs: move loads of style information out of this class
21925 as it's being duplicated with DataGridTableStyle. keep track of a
21926 special DataGridTableStyle for the properties we used to mirror
21927 here. Switch all the style properties to access this table style
21928 instead of instance fields of this class. Also add a internal
21929 class to represent parent rows (more needs to be stored here, like
21930 the selection state from the parent table, as well as the
21931 expansion state.) Also, for datasources with relations, do the
21932 right thing for collapse/expand, and add support for the
21933 navigation/parent row buttons.
21935 Lastly, fix the crash in the 1.1.16 build.
21937 * GridTableStylesCollection.cs: make the explicit interface
21938 implementations call the class's methods as opposed to duplicating
21941 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21942 0 so the text doesn't jump around when we move the cursor.
21944 2006-07-10 Jackson Harper <jackson@ximian.com>
21947 * ListBox.cs: Match MS's ToString (this makes debugging focus
21948 stuff infinitely easier).
21950 2006-07-10 Jackson Harper <jackson@ximian.com>
21952 * Control.cs (SelectNextControl): When checking the control's
21953 parent use this instead of ctrl.parent so that null can be passed
21954 to SelectNextControl. (I have unit tests for this).
21955 - Remove unused var.
21957 2006-07-10 Chris Toshok <toshok@ximian.com>
21959 * CurrencyManager.cs: correct one regression, the removal of the
21960 finalType field. Also, add a MonoTODO on CanAddRows, implement
21961 Refresh() correctly, and fix some event emission in
21962 ListChangedHandler.
21964 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21966 * FileDialog.cs: Don't use brackets for new folders if they exist
21967 under *nix. Instead use -(number of existing folders +1).
21969 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21972 - Fixed really nasty bug #78771
21973 - Don't block the whole GUI when reading directories with a lot of
21974 entries. Use an other thread instead and call BeginInvoke to
21975 update the ListView in MWFFileView
21977 2006-07-07 Chris Toshok <toshok@ximian.com>
21979 * Control.cs (Dispose): release any Capture when disposing.
21981 2006-07-07 Chris Toshok <toshok@ximian.com>
21983 * LinkLabel.cs (Select): if we chain up to the parent, set
21984 focused_index to -1 so we'll search for the first available link
21985 the next time the user tabs into us. Also, if the direction is
21986 backward and focused_index == -1, start the search from the last
21989 2006-07-07 Chris Toshok <toshok@ximian.com>
21991 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21992 is beyond the end of the text, don't do anything.
21993 (CreateLinkPieces): set our ControlStyles.Selectable based on
21994 whether or not we have any links.
21995 (Link.Invalidate): use a loop instead of foreach.
21996 (Link.set_Start): null out owner.sorted_links so it'll be
21997 recreated by CreateLinkPieces.
21999 2006-07-06 Chris Toshok <toshok@ximian.com>
22001 * LinkLabel.cs: revert the SetStyle change.
22003 2006-07-06 Chris Toshok <toshok@ximian.com>
22005 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22006 (OnEnableChanged): s/Refresh/Invalidate
22007 (OnGotFocus): if we have a focused index already, refocus it (so
22008 if we mouse out/in to the window it'll focus the right link).
22009 (OnKeyDown): move the tab handling out of here.
22010 (OnLostFocus): don't set focused_index to -1, so we can refocus it
22011 when we lose focus.
22012 (OnMouseDown): don't Capture here - Control handles it. Also,
22013 focus the active link.
22014 (OnMouseUp): don't deal with Capture.
22015 (OnPaintBackgroundInternal): remove.
22016 (OnTextAlignChanged): CreateLinkPieces before calling the
22017 superclass's method.
22018 (OnTextChanged): call CreateLinkPieces before calling superclass's
22020 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22022 (Select): implement this, moving the selection between different
22023 links, and call parent.SelectNextControl if we don't have another
22024 link to focus in the given direction.
22025 (CreateLinkPieces): call Invalidate instead of Refresh.
22027 2006-07-06 Chris Toshok <toshok@ximian.com>
22029 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22030 new LinkLabel internals.
22032 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
22033 over pieces looking for active/focused/etc links. also, deal with
22034 runs of text (and links) with embedded \n's in them, and use
22035 MeasureCharacterRanges instead of MeasureString to figure out the
22036 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
22039 2006-07-04 Jackson Harper <jackson@ximian.com>
22041 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22042 XKB or key auto repeat, do it manually. Without key auto repeat,
22043 when a key is held down we get key press, key release, key press,
22044 key release, ... with auto repeat we get key press, key press, key
22045 press ..., and then a release when the key is actually released.
22047 2006-07-03 Jackson Harper <jackson@ximian.com>
22050 * ThemeWin32Classic.cs: Tabs do not obey normal background color
22051 rules, they are always control color regardless of the background
22054 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
22056 * FileDialog.cs: Added internal class MWFConfig.
22057 Removed Registry support and replaced it with support for the new
22058 MWFConfig class. See MWFConfig comments for more information.
22060 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
22062 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22063 rectangle. Added some patches from eno from bug #78490 and fixed
22064 the arrow position for small up and down CPDrawScrollButtons.
22066 2006-06-30 Jackson Harper <jackson@ximian.com>
22068 * InternalWindowManager.cs: Remove some debug code.
22069 * Form.cs: When an MdiParent is set to null, the window is
22070 "detatched" and becomes a normal window.
22071 * MdiClient.cs: Don't bring the new child form to the front until
22072 it is activated (setting it as active does this), this makes the
22073 previously active forms titlebar get redrawn as inactive.
22075 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
22077 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
22078 with later controls
22080 2006-06-29 Mike Kestner <mkestner@novell.com>
22082 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
22083 arrow in keynav state. Fixes #78682.
22085 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22087 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
22088 order (fixes #78393)
22090 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
22092 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
22093 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
22094 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
22095 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
22096 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
22097 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
22098 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
22099 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
22100 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
22101 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
22102 enumerations (FlagsAttribute, SerializableAttribute, added/removed
22105 2006-06-28 Mike Kestner <mkestner@novell.com>
22107 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
22109 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22112 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
22113 item lines from other area (It also makes BackColor consistent and
22114 compatible with .NET). Fixed bug #78564.
22116 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
22118 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
22119 Patch from Eno for #78555.
22121 2006-06-27 Chris Toshok <toshok@ximian.com>
22123 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
22125 * DataGridColumnStyle.cs: same.
22127 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
22129 * DataGridDrawingLogic.cs: nuke.
22131 2006-06-27 Chris Toshok <toshok@ximian.com>
22133 * DataGridTableStyle.cs: clean up the constructors, and build the
22134 list of child relations for this table. I have no idea if this is
22135 where we should be doing it (it probably isn't), but since we're
22136 already iterating over the properties..
22138 * DataGrid.cs: add row resizing. for now we add a DataGridRow
22139 struct and array for keeping track of row information, similar to
22140 what's shown in a hack on
22141 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
22143 * Theme.cs: be consistent about the naming of DataGrid methods,
22144 prefering ColumnWidths and RowHeights over columnsWidths and
22147 * ThemeWin32Classic.cs: same, and also add support for variable
22148 sized rows (and the +/- expansion icons for related rows).
22150 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22152 * TextBoxBase.cs: Applied Eno's patch from #78660
22154 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22156 * Form.cs (ScaleCore): We don't want to scale our form if it's
22157 state is minimized or maximized, but we still need to scale our
22158 child windows. Also, added try/finally block to ensure layout
22159 gets reset (Fixes #78697)
22161 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22163 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
22165 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22167 * Form.cs: Fixed c+p error and added check to resize form if minimum
22168 size is bigger than current size (Fixes #78709)
22170 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
22172 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22174 2006-06-26 Mike Kestner <mkestner@novell.com>
22176 * ComboBox.cs: only do Keypress handling in the combo when there
22177 are items in the collection. Fixes #78710.
22179 2006-06-26 Chris Toshok <toshok@ximian.com>
22181 * Binding.cs: make this work bi-directionally. also, clear up
22182 other mixups between Push/Pull Data (e.g. we're supposed to pull
22183 data when validating).
22185 * BindingManagerBase.cs: trim some fully qualified collection
22188 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22190 2006-06-23 Chris Toshok <toshok@ximian.com>
22192 * PropertyManager.cs: It appears (according to the unit tests)
22193 that PropertyManager doesn't use
22194 PropertyDescriptor.AddValueChanged to track propery value changes
22195 in its datasource, but uses the same scheme as Binding, where it
22196 looks for a <Property>Changed event and binds to it.
22198 Also, according to the docs, IsSuspended always returns false for
22199 a property manager with a non-null datasource.
22201 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22203 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22204 need to update the actual DialogResult. (Fixes #78613)
22206 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22208 * Form.cs (ShowDialog): Release any captures before running the
22209 new message pump (fixes #78680)
22211 2006-06-22 Mike Kestner <mkestner@novell.com>
22213 * ListView.cs: Layout column widths properly in details mode even
22214 if HeaderStyle.None is set. Fixes #78691.
22216 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22218 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22220 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22222 * Control.cs (ContainsFocus): Using new driver method to get focused
22223 window, instead of trying to use internal tracking var, which can
22224 recursion issues (Fixes #78685)
22225 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
22226 XplatUIWin32.cs: Added GetFocus method to return focused window
22228 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22230 * ColorDialog.cs: when the mouse button is pressed inside the color
22231 matrix, don't let the cursor move out of it until the button is
22232 released, which is the behavior on windows. Changed 'colours' by
22233 'colors' to use the same word consistently.
22235 2006-06-21 Chris Toshok <toshok@ximian.com>
22237 * DataGrid.cs: add in some basic navigation stuff (navigating to a
22238 child relation and back, using a stack). Also, remove
22239 GetDataSource and the code that calls it - it's not needed. Also,
22240 track CurrencyManager.ListName's removal.
22242 2006-06-21 Chris Toshok <toshok@ximian.com>
22244 * CurrencyManager.cs: push some of the original type checking from
22245 BindingContext.CreateBindingManager to here, and remove some of
22246 the finalType stuff. Need more tests to make sure I've got the
22247 ListName part right, and we might need more in SetDataSource.
22249 * PropertyManager.cs: add a ctor that takes just the datasource,
22250 and no property name. Make SetDataSource work with a null
22251 property_name, and make Current return the data_source if the
22252 property descriptor is null. this makes 'string foo = "hi";
22253 BindingContext[foo].Current' return "hi" as it should.
22255 * RelatedCurrencyManager.cs: make this code more generic - there's
22256 no reason the parent manager has to be CurrencyManager, and
22257 there's no reason to pass the DataRelation. It suffices to use a
22258 BindingManagerBase and PropetyDescriptor.
22260 * RelatedPropertyManager.cs: make a similar change here.
22262 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22263 flower I knew it could be.
22265 2006-06-20 Chris Toshok <toshok@ximian.com>
22267 * PropertyManager.cs: the PropertyChangedHandler is invoked when
22268 data in the source has changed and we need to update the control,
22269 so s/PullData/PushData.
22271 * CurrencyManager.cs: Refresh is meant to update the control from
22272 data in the datasource. So, s/PullData/PushData.
22274 * BindingContext.cs: add more ugliness (we weren't handling the
22275 case where data_source = DataTable and data_member = column_name).
22277 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
22278 from the perspective of the datasource. PullData pulls from the
22279 control, PushData pushes to the control.
22281 2006-06-20 Chris Toshok <toshok@ximian.com>
22283 * BindingContext.cs: rewrite the CreateBindingManager code to
22284 handle navigation paths more or less properly. This could
22285 definitely stand some more work, in particular to push the
22286 recursion up to the toplevel. But that relies on fixes in other
22287 places (System.Data comes to mind).
22289 Also, move to a flat hashtable (and encode the twolevel nature of
22290 the dictionary into the hash key). This lets us implement the
22291 IEnumerable.GetEnumerator method.
22293 * RelatedCurrencyManager.cs: new class. Update our view based on
22294 our relation and our parent CurrencyManager's position.
22296 * CurrencyManager.cs: split out some logic from the ctor into
22297 SetView, so it can be called from the new RelatedCurrencyManager
22300 * RelatedPropertyManager.cs: new class. Update our datasource
22301 based on the position of our parent CurrencyManager.
22303 * PropertyManager.cs: split out some logic from the ctor into
22304 SetDataSource, so it can be called from the new RelatedDataSource
22305 subclass. Also, make the Current getter return the value
22306 of the PropertyDescriptor, not the data_source.
22308 * Binding.cs: no need to duplicate the string splitting code here.
22310 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22313 - set_Enabled: OnEnabledChanged is not called if the inherited state
22314 of the control is not altered, even though we might be changing the
22315 internal state of the control (#78458)
22316 - set_Enabled: (Re)Moved the enabling/disabling of the window to
22317 OnEnabledChanged, to allow easy altering of any child window state
22318 - OnEnabledChanged: Added code to enable/disable driver window state
22319 - OnParentEnabledChanged: Instead of firing the event, call
22320 OnEnabledChanged, which will fire the event and also a) set driver
22321 window state and pass the enabled state to any grandchildren (#78458)
22323 2006-06-19 Jackson Harper <jackson@ximian.com>
22325 * InternalWindowManager.cs: We don't set the cursor explicitly
22326 thats done via the response to NCHITTESTs.
22327 - Don't need to adjust for titlebar heights anymore, the
22328 coordinates are coming in the correct coordinates now (see peters
22332 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22334 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22335 being translated relative to whole window, instead of client window.
22336 That caused broken offsets on mouseclick (and caused gas for our
22337 InternalWindowManager)
22339 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22342 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22343 - Undo(): Added replay of cursor move on DeleteChars action; added
22344 calling Undo() again if a recorded cursor move is invalid (to
22345 ensure that some action is performed on Undo)
22346 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22348 2006-06-16 Jackson Harper <jackson@ximian.com>
22350 * MdiClient.cs: Instead of just sizing maximized windows when
22351 there is a resize we also have to adjust the Y of minimized
22352 windows, so they stay pinned to the bottom of the mdi container.
22353 - Eliminate separate tracking of the active control, we can just
22354 get this from the controls collection.
22355 - Paint the decorations for the newly activated titlebar so we get
22357 * InternalWindowManager.cs:
22358 * ThemeWin32Classic.cs: Minimized windows get all three buttons
22359 even if they are a tool window.
22361 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22363 * TextControl.cs (Undo): Handle non-existent cursor locations in the
22364 undo buffer, these can happen when text was deleted and the cursor
22365 was recorded first. Since we will also have a recorded cursor
22366 after the delete this is not an issue. (Fixes #78651)
22368 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
22370 * AccessibleObject.cs: Remove dependence on Control.is_selected;
22371 instead properly track control states internally (allows us to
22372 remove is_selected from Control)
22374 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22376 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22377 whose width is not a multiple of 8.
22379 2006-06-13 Jackson Harper <jackson@ximian.com>
22381 * MdiClient.cs: Only maximize the next child if the current one
22384 2006-06-13 Chris Toshok <toshok@ximian.com>
22386 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22387 modified. Also, guard against grid or grid_drawing being null in
22390 * DataGrid.cs: Reformat tons of getters/setters. In the
22391 DataMember setter, just call SetNewDataSource instead of
22392 duplicating some of its functionality. In SetNewDataSource, don't
22393 check ListManager for null, since the property getter creates the
22396 * DataGridTableStyle.cs: don't set TableStyle or call
22397 SetDataGridInternal on the column here, it's done in
22398 GridColumnStylesCollection.Add.
22400 * GridColumnStylesCollection.cs: fix all the explicit interface
22401 implementations to just call our methods. Nuke AddInternal() and
22402 move the body of it to Add(). Also, add a call to
22403 column.SetDataGridInternal to Add().
22405 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22406 base()+duplicate code. Also, use the Format property instead of
22407 format to generate an Invalidate ala MS. Lastly, create the
22408 textbox here, unconditionally.
22409 (set_Format): call Invalidate.
22410 (get_TextBox): no need to call EnsureTextBox.
22411 (Commit): remove the message box.
22412 (Edit) remove the call to EnsureTextBox.
22413 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22414 (EnterNullValue): no need to check textbox for null.
22415 (HideEditBox): no need to check textbox for null.
22416 (SetDataGridInColumn): add the textbox to the grid's controls.
22417 (EnsureTextBox): nuke.
22419 2006-06-13 Jackson Harper <jackson@ximian.com>
22421 * MdiWindowManager.cs: Hook up to the maximized menus paint event
22422 and redraw the buttons when needed. Unhook when the window is
22424 * MainMenu.cs: Add an internal Paint event, the mdi window manager
22425 needs this so that it can redraw its buttons when the menu is
22427 * InternalWindowManager.cs:
22428 * Form.cs: The method order has changed for DrawMaximizedButtons,
22429 so that it can be a PaintEventHandler.
22431 2006-06-13 Jackson Harper <jackson@ximian.com>
22433 * MdiClient.cs: When we close a maximized mdi window, the next mdi
22434 window is activated and maximized, even if it wasn't before.
22435 - When a new window is activated repaint the decorations of the
22436 old one, so that it no longer has the Active "look" (the blue
22438 * InternalWindowManager.cs: Open up CreateButtons to base classes
22439 so they can recreate the buttons on state changes.
22440 - If a window is maximized give it all three buttons
22441 * MdiWindowManager.cs: Create the titlebar buttons when the state
22442 is changed, this is needed because a toolwindow will not have all
22443 three buttons until it is maximized.
22445 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
22447 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22450 2006-06-12 Jackson Harper <jackson@ximian.com>
22452 * KeysConverter.cs: Make sure we handle the Ctrl special case
22453 if its the only key.
22455 2006-06-12 Jackson Harper <jackson@ximian.com>
22457 * Theme.cs: Add a method to get the size of a managed window
22459 * InternalWindowManager.cs: Remove the ButtonSize property, this
22460 should be retrieved from the theme.
22461 * MdiWindowManager.cs: Get the button size from the theme
22462 * ThemeWin32Classic.cs: Make the method to get the managed window
22463 titlebar button size public.
22464 - Handle the different button sizes of maximized toolwindows
22465 (should match any maximized window).
22466 - Get the titlebar height from the theme, not the WM (which gets
22467 it from the theme).
22469 2006-06-12 Jackson Harper <jackson@ximian.com>
22471 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22472 event down to the mdi window manager.
22473 - Expose some extra stuff to base classes
22474 - Make sure to end the Capture on an NC Mouse up, so that we can
22475 get double clicks properly, and the sizing doens't stick.
22476 - When doing PointToClient contain it in the workable desktop
22477 area, this prevents windows from changing size when the cursor is
22478 pulled outside of the working area while sizing.
22479 * MdiWindowManager.cs: When we get a double click maximize the
22481 - Reset the cursor after handling mode changes.
22483 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
22485 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
22486 current desktop, instead of just assuming a 0, 0 origin. This
22487 is needed for our internal window manager, to know the top
22488 margin of the desktop
22490 2006-06-12 Chris Toshok <toshok@ximian.com>
22492 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22493 we need this to get rid of the selected background in the bool
22495 (CancelEditing): move the ConcedeFocus call to above the Abort
22496 call. Also, set is_changing to false and invalidate the row
22497 header if we were changing before.
22498 (ProcessKeyPreviewInternal): remove, since noone outside this
22499 class calls it anymore. Roll the code into ProcessKeyPreview.
22500 (EndEdit): remove the internal version.
22501 (InvalidateCurrentRowHeader): make private.
22503 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
22504 Keys.Escape handling (and with it the last call to
22505 DataGrid.EndEdit from outside the class.)
22508 2006-06-12 Chris Toshok <toshok@ximian.com>
22510 * DataGridTextBox.cs (.ctor): isedit defaults to false.
22511 (OnKeyPress): set isedit to true.
22512 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
22513 already handled by the grid.
22515 * DataGrid.cs (set_CurrentCell): more work here. it's still not
22517 (set_DataSource): SetDataSource always returns true, so stop
22518 putting it in an if statement.
22519 (EndEdit): get rid of some {}'s
22520 (ProcessGridKey): return true in case Keys.Escape.
22521 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22522 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22523 PositionChanged, stopped connecting to CurrentChanged.
22524 (GetDataSource): simplify this a bunch.
22525 (SetDataSource): change return type from bool to void.
22526 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22527 to this, and make sure we don't set ListManager.Position inside
22529 (OnListManagerItemChanged): if we're passed an actual index,
22532 * CurrencyManager.cs (set_Position): don't call PullData here.
22534 2006-06-09 Jackson Harper <jackson@ximian.com>
22536 * TreeNode.cs: Recalculate the visible order before doing the
22537 Expand/Collapse Below calls, because those calls generate an
22539 - Reduce calls to the TreeView property, which is mildly expensive
22540 by using a local var.
22541 * Form.cs: Layout the MDI child windows when creating the parent
22543 - Don't use the internal constructor anymore
22544 * MdiClient.cs: use the parent form width/height (if available)
22545 when laying out the child windows, we do this because the
22546 mdiclient isn't docked yet when the initial layout is done.
22547 - Don't need an internal constructor anymore.
22549 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22551 * FileDialog.cs: handle access errors when trying to create a folder
22552 or changing to a directory. No need to initialize out parameters.
22554 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22556 * FileDialog.cs: Append a number when creating a new folder if the
22557 folder already exists (use parenthesis instead of square brackets)
22559 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22562 - Disabled registry support for windows and added better registry
22563 error checking for other systems (need to investigate why it
22564 works perfectly on my system)
22565 - If a folder already exist show an error MessageBox instead of
22566 trying to create an indexed name.
22567 - Fixed a non intentional typo.
22569 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22571 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22573 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22575 * FileDialog.cs: When creating a new folder don't crash if the
22576 folder already exists.
22578 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22580 * FileDialog.cs: Allmost a complete rewrite.
22581 - added a "virtual" file system that handles the differences
22582 between unix and windows file systems (especially the directory
22583 structure). Moved most of the directory and file handling code
22585 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22586 UnixFileSystem and FSEntry.
22587 - Recently used folder/directory, size, location and used file names
22588 (file name ComboBox) are now stored in the registry and get read
22589 before the dialog shows up (fixes part 6 of bug #78446).
22590 - Creation of new folders/directories is now possible (context menu
22591 or ToolBar). Added TextEntryDialog for this that fills in the gap
22592 until ListView.LabelEdit works.
22593 - Fixed cursor handling (bug #78527) and focus handling for
22595 - Various "Search in" ComboBox enhancements. The content of the
22596 dropdown listbox now almost matches ms.
22597 - Changed the behaviour when the user switches to SpecialFolder
22598 Recent to show the ListView in View.Details.
22599 - Beside using the ToolBar to change the View property of the
22600 file ListView it is now possible to use the context menu too.
22602 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22604 * ComboBox.cs: Don't create a new ObjectCollection when an item
22605 gets inserted. Just insert the item in the existing object_items
22608 2006-06-08 Jackson Harper <jackson@ximian.com>
22610 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22611 that the treeview and root node checks are done also, this fixes a
22612 regression i caused in the unit tests.
22614 2006-06-07 Wade Berrier <wberrier@novell.com>
22616 * RichTextBox.cs: More ISO8859-1 -> unicode
22618 2006-06-07 Mike Kestner <mkestner@novell.com>
22620 * ComboBox.cs : use items to hold highlight/selection so that
22621 collection insertions don't require synchronization.
22623 2006-06-07 Jackson Harper <jackson@ximian.com>
22625 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22626 routine. We now always keep the sized edge at the cursor instead
22627 of computing movement and adjusting rects. There is one buglet
22628 with this method though when the cursor is moved over area that
22629 the window can not expand too (such as the toolbars on the desktop).
22631 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22633 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22634 here. Fixes crash on startup in AlbumSurfer.
22636 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
22638 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22641 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22643 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22644 statement to avoid calling XNextEvent which will block if another thread
22645 took the event that we were expecting. Fixes bug #78605.
22647 2006-06-07 Mike Kestner <mkestner@novell.com>
22649 * ListView.cs : isolated checkbox clicking from the selection logic.
22650 Toggle check state on item doubleclicks. Really fixes #78454 part2.
22652 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22654 * Form.cs: Check that the value passed to Form.DialogResult
22655 is a valid enum value.
22657 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22659 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22660 Computer'. Clicking it in the network view goes to 'My Computer'.
22661 Added CIFS filesystem type. Display the mount point of filesystems.
22662 Avoid duplicate mount points (happens for me with CIFS);
22664 2006-06-06 Jackson Harper <jackson@ximian.com>
22666 * InternalWindowManager.cs: Draw the maximized windows buttons
22669 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22671 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22672 all other dialogs. Fixes bug #78585.
22674 2006-06-06 Mike Kestner <mkestner@novell.com>
22676 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22677 Only invalidate checkbox on checkstate changes to avoid flicker.
22678 * ListBox.cs : avoid unselect/select when clicking selected item.
22679 avoid reselection flicker for already multiselected items.
22682 2006-06-06 Jackson Harper <jackson@ximian.com>
22684 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22685 the parent form so that the menu is removed if needed.
22687 2006-06-06 Mike Kestner <mkestner@novell.com>
22689 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
22690 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
22692 2006-06-06 Mike Kestner <mkestner@novell.com>
22694 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
22697 2006-06-06 Jackson Harper <jackson@ximian.com>
22699 * Control.cs: Use the property (instead of the field) to get the
22700 default cursor so it is instantiated correctly.
22701 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22702 resizes so we need to manually repaint the window decorations here.
22703 - Set the titlebar button locations as soon as they are created,
22704 otherwise they are not set correctly on win32.
22706 2006-06-06 Chris Toshok <toshok@ximian.com>
22708 * CurrencyManager.cs (set_Position): call PullData before
22710 (AddNew): after calling IBindingList.AddNew, update our
22711 listposition, and call OnCurrentChanged/OnPositionChanged (without
22713 (OnCurrentChanged): remove the call to PullData from here.
22714 (OnItemChanged): remove the call to PushData from here.
22715 (OnPositionChanged): change the test from == null to != null to
22716 match the other methods.
22717 (ListChangedHandler): the grossest part of the patch. Implement
22718 this such that it passes the unit tests in CurrencyManagerTest and
22719 the output more or less matches that of MS's implementation.
22721 2006-06-06 Mike Kestner <mkestner@novell.com>
22723 * ListView.cs : only update check state on single click.
22724 * ThemeWin32Classic.cs : fix focus drawing for details view without
22725 fullrowselect. Fixes #78454.
22726 * XplatUIX11.cs : fix for double click emission.
22728 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
22730 * PropertyGridView.cs : Applied Atsushi's patch to fix
22731 font dialog bug (#78197).
22733 2006-06-05 Jackson Harper <jackson@ximian.com>
22735 * TreeNode.cs: Compute the next node for expanding/collapsing
22736 correctly. We now factor in nodes without a NextNode
22737 correctly. (Fixes somes cases in nunit-gui).
22738 * InternalWindowManager.cs: Set the bounds when updating the
22739 virtual position of a tool window.
22741 2006-06-05 Chris Toshok <toshok@ximian.com>
22743 * DataGrid.cs: rename cached_currencymgr to list_manager.
22744 (set_CurrentCell): move SetCurrentCell code here, and clean it up
22746 (CurrentRow, CurrentColumn): single accessors so we can make the
22747 cursor movement code a lot easier to understand.
22748 (CurrentRowIndex): implement this in terms of CurrentRow.
22749 (BeginEdit): clean this up a bit.
22750 (CancelEditing): sort out the is_editing/is_changing/is_adding
22752 (EndEdit): minor changes.
22753 (OnKeyDown): add a comment about a (most likely) unnecessary
22755 (OnMouseDown): cancel editing when we click on a row header. And
22756 use the CurrentRow setter, not CurrentCell.
22757 (ProcessDialogKey): directly call ProcessGridKey.
22758 (UpdateSelectionAfterCursorMove): factor out this common block of
22759 code (it's used everywhere that we move the cursor by updating row
22761 (ProcessGridKey): pretty substantial overhaul. Use the
22762 CurrentRow/CurrentColumn properties to make the code a lot more
22763 readable. Only use the CurrentCell property when we have to
22764 modify both row and column at once. Tab behavior is still broken,
22765 and Delete is untested.
22766 (Select): if we have no selected rows, set selection_start to
22768 (EditCurrentCell): rename EditCell this. It was only ever invoked
22769 with CurrentCell as the arg, so drop the arg and rename it.
22771 * DataGridColumnStyle.cs: clean up the constructors a little, and
22772 drop CommonConstructor().
22774 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22775 actually get notified when the user hits it.
22776 (ProcessKeyMessage): *substantially* simplify this method.
22777 There's no reason (that I can see) for the textbox to be making
22778 calls into the datagrid at all. Remove all of them but the ones
22779 for Enter handling. those will take some more work.
22781 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22782 calling HideEditBox.
22783 (HideEditBox): if we have an active textbox, render it invisible
22784 without causing a re-layout of the datagrid.
22786 2006-06-05 Mike Kestner <mkestner@novell.com>
22788 * ListView.cs : fix NRE crasher when focuseditem is cleared by
22789 collection changes by resetting it to Items[0]. Fixes #78587.
22791 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22793 * MessageBox.cs: if the height of the text is larger than the icon_size,
22794 use that. Fixes bug #78575.
22796 2006-06-05 Jackson Harper <jackson@ximian.com>
22798 * TreeView.cs: Fix line drawing when scrolling. To do this each
22799 node is basically responsible for drawing its entire horizontal
22800 area. When drawing a node it draws its parent node lines if
22802 - Adjust the clip area to the viewport rectangle
22803 - Fix Left/Right key handling to match MS. (It expand/collapses
22804 and moves to parents/first child but does not move selection to
22806 - Fix SetTop to work with new bound calculation code
22807 - When scrollbars are no longer needed we need to reset scrolling
22808 vars and recalculate the visible order so the redraw is correct
22809 * TreeNode.cs: We can't expand/collapse nodes with no children.
22811 2006-06-03 John Luke <john.luke@gmail.com>
22813 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22814 so the colors work without dev packages
22816 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
22819 - Select: Implemented to just use activate. Seems to match MS
22820 behaviour closest. Documented to only do actual control walking
22821 based on it's parameters if in a container control so I moved
22823 - Removed selection check logic from our internal Select() method
22824 * ContainerControl.cs:
22825 - Select: Moved selection logic from Control here, since MS documents
22826 that containers obey the bool arguments. No longer calling base
22828 2006-06-02 Jackson Harper <jackson@ximian.com>
22830 * TreeView.cs: If the selected node isn't changed when we get
22831 focus update the previously selected node so that we see the
22834 2006-06-02 Mike Kestner <mkestner@novell.com>
22836 * ComboBox.cs: restructure grab and general mouse event handling.
22837 Make the composite control raise mouse events like it was a single
22838 control for leaves/enters/motion/up/down events. fix dropdown list
22839 coordinate mangling and refactor it into the scrollbar subclass to
22840 reduce code duplication. Fixes #78282 #78361 and #78457.
22842 2006-06-02 Mike Kestner <mkestner@novell.com>
22844 * ScrollBar.cs: remove Capture setting/clearing, as it happens
22845 automatically in the Control.WndProc.
22847 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22849 * FileDialog.cs: fix crash when running SharpChess, which sets the
22850 FilterIndex to 2 with only one Filter.
22852 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22854 * ToolBar.cs: add SizeSpecified property.
22855 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22856 try to figure out our real size, otherwise fallback to what the
22859 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22861 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22862 * Control.cs (WndProc): MS always calls the DefWndProc to pass
22865 2006-06-01 Mike Kestner <mkestner@novell.com>
22867 * ListView.cs: revamp the focus management in ListView. It still
22868 causes churn of LostFocus/GotFocus emissions on clicks, but it's
22869 better than not handling focus at all. Will revisit when pdb feels
22870 the general focus handling is solid. Fixes #78526.
22872 2006-06-01 Jackson Harper <jackson@ximian.com>
22874 * TreeView.cs: Set the default border style in the constructor.
22875 - Move painting to use OnPaintInternal instead of capturing
22876 WM_PAINT, this is the correct way of doing things
22877 - UpdateBelow shouldn't invalidate the scrollbar area
22878 - Cap the top on update below in case the node was above the top
22879 of the viewport rectangle.
22880 - ExpandBelow and Collapse below need to obey Begin/End Update.
22881 * TreeNode.cs: Make is_expanded internal so the treenode
22882 collection can change it without firing the whole event chain.
22883 * TreeNodeCollection.cs: When clearing all the child nodes make
22884 sure to recalc the visible order.
22885 - Improve algo for remove the top node
22887 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22889 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22890 SendMessage directly calling window procedures, which in turn might
22893 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22895 * Control.cs: Don't handle WM_SETFOCUS if the same window already
22896 has focus (works around X11 sending a FocusIn after our SetFocus)
22897 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22899 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
22901 * Mime.cs: Fix for the NET_2_0 build.
22902 NameValueCollection needs StringComparer now.
22904 2006-05-31 Chris Toshok <toshok@ximian.com>
22906 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22907 return (via an out parameter) the starting X of the column.
22908 (UpdateVisibleColumn): track change to FromPixelToColumn.
22909 (HitTest): add a ColumnResize case here.
22910 (DrawResizeLine): new function, probably poorly named.
22912 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
22913 only need to keep one reference.
22914 (set_ListManager): same.
22915 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22916 Also, add support for HitTestType.ColumnResize.
22917 (OnMouseMove): add column resize behavior here, and change the
22918 cursor to the correct one as we move around the datagrid.
22919 (OnMouseUp): terminate the column resize if we're resizing.
22920 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22921 for the current cell.
22922 (ConnectListManagerEvents): use cached_currencymgr.
22923 (DisconnectListManagerEvents): fill this in, using
22924 cached_currencymgr.
22925 (SetCurrentCell): remove cached_currencymgr_events handling.
22926 (SetDataMember): only call DisconnectListManagerEvents if
22927 cached_currencymgr is != null.
22928 (SetDataSource): same.
22929 (OnListManagerCurrentChanged): cached_currencymgr_events ->
22930 cached_currencymgr.
22932 2006-05-31 Jackson Harper <jackson@ximian.com>
22934 * BindingManagerBase.cs: Remove somedebug code that creeped into
22936 * TreeNode.cs: We get the indent level dynamically right now, so
22937 don't track it as a member.
22938 * TreeNodeCollection.cs: Make sure all nodes added to the list
22939 have parents, treeviews/topnodes setup properly.
22940 - Don't attempt to track indent level.
22942 2006-05-30 Jackson Harper <jackson@ximian.com>
22944 * BindingContext.cs: Create the currency manager tables here.
22945 This allows us to more easily create null tables (when bad data
22946 members are used), and more easily create related currency
22948 * CurrencyManager.cs: All the table creation stuff is done by the
22949 binding context now.
22950 - Current should throw an exception if listposition is -1.
22951 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22954 2006-05-30 Mike Kestner <mkestner@novell.com>
22956 * ListView.cs: allow reexpansion of zero-width column headers.
22959 2006-05-28 Chris Toshok <toshok@ximian.com>
22961 * CurrencyManager.cs (get_Current): after the late binding
22962 listposition = -1 fix, we need to guard against it here and return
22963 null, otherwise we raise an exception (which is swallowed
22964 elsewhere, and breaks datagrid databinding.)
22966 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22968 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22969 than WM_SYSKEY, don't throw if get something unexpected (#78507)
22971 2006-05-26 Jackson Harper <jackson@ximian.com>
22974 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22975 values, it's faster and it's all we care about (we don't care if
22976 the names aren't equal).
22977 * KeyboardLayouts.cs: Eliminate some dead code.
22979 * X11Keyboard.cs: Lazy init keyboard detection.
22980 - Cleanup access modifiers a little.
22982 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22984 * XplatUIX11.cs: Once again, attempting to get layout just right.
22986 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22988 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22989 the sizes of each link section, that will result in sizes that
22990 match DrawString's layout (Fixes #78391)
22992 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
22994 * FileDialog.cs: If AddExtension property is true autocomplete the
22995 extensions in SaveFileDialog correctly. Fixes bug #78453.
22996 Set MyNetwork and MyComputer to "C:\" for windows. This should
22997 fix part 8 of bug #78446 for now.
22999 2006-05-26 Chris Toshok <toshok@ximian.com>
23001 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
23002 invalidate the current row header if we need to, but presumably
23003 we'll invalidate the row corrsponding to the bounds or
23005 (GridHScrolled): switch back to this method, as it's part of the
23006 public api. *sigh*.
23007 (GridVScrolled): same.
23008 (OnMouseWheel): hack up something that more or less works. Call
23009 GridHScrolled/GridVScrolled directly, instead of duplicating much
23010 of their code here.
23011 (EnsureCellVisibility): reinstate a bunch of this code, since we
23012 can't just set the scrollbar Value and expect to do all the work
23013 in the ValueChanged handler. Also, Call Update() after scrolling
23014 in one direction so the other XplatX11.ScrollWindow call has the
23015 proper stuff in the proper places.
23016 (EditCell): set is_editing to true before calling .Edit.
23018 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23019 don't bother comparing first.
23020 (OnKeyPress): call grid.ColumnStartedEditing before calling
23021 base.OnKeyPress. this will set is_changing and invalidate the row
23022 header if necessary.
23023 (ProcessKeyMessage): for WM_CHAR messages, call
23024 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
23027 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23028 it's done in the DataGrid.
23029 (NextState): call grid.ColumnStartedEditing, which takes care of
23030 invalidating the row header (and setting is_changing).
23032 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23033 here. it's done in the DataGrid.
23035 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23037 * Control.cs: allow changing the cursor when the mouse position is
23038 out of bounds but Capture is set.
23039 * LinkLabel.cs: handle the case when the mouse button is pressed on the
23040 linklabel but released somewhere else.
23042 2006-05-25 Jackson Harper <jackson@ximian.com>
23044 * TreeView.cs: When we get focus if there is no selected node make
23046 - Remove some uneeded setup code from Draw.
23047 * TreeNodeCollection.cs: If the tree doesn't have a top node when
23048 a new node is inserted make the new node the top.
23050 * Timer.cs: Use Utc time so that no local time zone stuff needs to
23051 be used (should be faster).
23053 2006-05-25 Chris Toshok <toshok@ximian.com>
23055 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23056 problem with the last commit.
23058 2006-05-25 Chris Toshok <toshok@ximian.com>
23060 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23061 need the invalidate call here, while scrolling right-to-left via
23062 the left arrow key (i.e. moving the editing cell while scrolling).
23064 * DataGrid.cs (.ctor): remove the initialization of
23065 ctrl_pressed/shift_pressed. We no longer track them using key
23066 up/down handlers, but by using Control.ModifierKeys. Also, switch
23067 to using ValueChanged handlers on the scrollbars instead of
23068 Scrolled event handlers. This simplifies a bunch of the scrolling
23070 (GridHValueChanged): rename from GridHScrolled, and change it to
23071 work with the new event args.
23072 (GridVValueChanged): same.
23073 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
23074 (OnMouseWheel): actually scroll the datagrid. Don't change the
23076 (ProcessGridKey): correct all the keyboard navigation stuff I
23077 could find. Ctrl up/down/left/right/home/end work now.
23078 (EnsureCellVisibility): correct method name spelling. Also,
23079 simplify this a touch by not explicitly calling the
23080 ScrollToRow/ScrollToColumnInPixels methods. We just set the
23082 (OnKeyUpDG): no need for this method now.
23084 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23086 * LinkLabel.cs: display the OverrideCursor when hovering the label.
23089 2006-05-25 Chris Toshok <toshok@ximian.com>
23091 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
23094 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23096 * Application.cs: Moved setting of is_modal and closing to before
23097 we create the control, to allow the event handlers called as a
23098 result of creation affect closing. Also removed Gonzalo's previous
23099 change to setting DialogResult, the behaviour has been moved to
23102 - ShowDialog(): Removed explicit creation of the form, let RunLoop
23104 - ShowDialog(): If no dialog result is set, we need to return Cancel
23105 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23106 the close is cancelled
23108 2006-05-25 Jackson Harper <jackson@ximian.com>
23110 * StatusBar.cs: We only need to update the sizes of the other
23111 panels when we have auto size contents. Also we are only updating
23112 the contents of the panel, not the borders, so compensate for the
23113 border width (TODO: get this width from the theme somehow).
23114 * TreeView.cs: Scrollable is true by default
23115 - Use invalidate instead of refresh where needed
23116 - Factor the scrollable value into scrollbar updating
23117 - Update the scrollbars if the Scrollable property is altered
23118 - Update the selected node if its ImageIndex is changed
23119 - Handle null nodes in UpdateNode (mainly so we don't have to
23120 check if selected is null when updating it
23121 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
23122 are factored into the visible count
23123 - Use VisibleCount for clarity in the code
23124 - When the font is changed we need to recurse through all the
23125 nodes and invalidate their sizes
23127 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23129 * Application.cs: set the DialogResult to fixed when the main form is
23130 hidden or destroyed while being modal.
23132 2006-05-25 Miguel de Icaza <miguel@novell.com>
23134 * Theme.cs: Use Tangoified messagebox icons.
23136 (GetSizedResourceImage): Also cope with width = 0 and do not
23137 trigger a warning in that case (0 means "give me your icon from
23138 the resouce, no special size needed).
23140 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23142 * Application.cs: Leave runloop if the the main modal form is
23143 hidden (fixes #78484)
23145 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
23147 * BindingContext.cs : reject null datasource in Contains() and
23149 * CurrencyManager.cs : check data_member validity when data_source
23150 is dataset. When it is late binding, the initial position is -1.
23152 2006-05-24 Jackson Harper <jackson@ximian.com>
23154 * TreeNodeCollection.cs: Dont't recalculate the visible order on
23155 inserted nodes that aren't visible. This changes the
23156 max_visible_order which confuses scrollbar settings.
23157 - Use the enumerator to get the prev node instead of duplicating
23159 * TreeView.cs: Use new method for setting scrollbar values
23160 - Don't set the bounds every time the scrollbar is updated
23161 - When updating below the root node use an invalidate instead of a
23162 refresh to prevent the child controls (scrollbars) from being
23163 refreshed. (UpdateBelow still needs to be reworked anyways).
23164 - Reenable SetBottom now that visible orders are set correctly,
23165 added some debug code incase we ever get bad values there again.
23166 - Set the scrollbar max to 2 less then the max value, this
23167 compensates for the max value being one above the node count, and
23168 for scrollbars adding one extra "notch".
23169 - When drawing image nodes if there is an imagelist we draw the
23170 first image in the list if the supplied image index is out of the
23171 image list's bounds.
23173 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23175 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
23176 we receive a size change from the WM (Fixes #78503)
23178 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23180 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
23181 rectangle (Fixes #78501)
23183 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23186 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
23188 - Fixed MouseMove to no longer switch pressed state unless the left
23189 mouse button is pressed. Atsushi provided the original patch (#78485)
23191 2006-05-24 Jackson Harper <jackson@ximian.com>
23193 * ScrollBar.cs: New internal methods that allow us to change a
23194 couple values on the scrollbar (the most common case is maximum
23195 and large change) without getting multiple invalidates.
23197 2006-05-24 Chris Toshok <toshok@ximian.com>
23199 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23200 (Edit): save off the original state in oldState, and set
23201 grid.is_editing to true.
23202 (OnKeyDown): abort editing if escape is pressed. also, call
23203 NextState if space is pressed.
23204 (OnMouseDown): call NextState.
23205 (NextState): factor out shared code from OnKeyDown and OnMouseDown
23206 here. Also, only invalidate the row header once (on the initial
23207 is_changing switch) to save on redraws.
23209 2006-05-24 Chris Toshok <toshok@ximian.com>
23211 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23212 if the value in the cell is different than it was before. This
23213 keeps us from triggering a layout when we move around a datarid
23214 with a highlighted cell.
23215 (Edit): suspend layout when creating/positining the text box, and
23216 resume passing false so we don't ever actually re-layout.
23217 (ReleaseHostedControl): same.
23218 (EnsureTextBox): reformat slightly, and set WordWrap to false.
23220 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23221 control-key sequences should go to the datagrid - remove that
23222 lock. Also, modify the conditions under which we move between
23223 cells when moving the cursor within a cell, and remove the "this"
23224 and "base" from field accesses. We weren't even consistent, given
23225 they all were in the base class.
23227 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
23229 * Binding.cs : (.ctor)
23230 An obvious NRE fix for BindingTest.CtorNullTest().
23232 2006-05-23 Chris Toshok <toshok@ximian.com>
23234 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23235 them between lines. This fixes some quirks editing cells in the
23238 2006-05-23 Jackson Harper <jackson@ximian.com>
23240 * TreeView.cs: Use begin/end update when doing expand/collapse all
23241 so that we don't get flicker on the scrollbar.
23243 2006-05-23 Jackson Harper <jackson@ximian.com>
23245 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
23246 treenode calculations to be independant of the painting code. To
23247 do this nodes track a visible order which is calculated by the
23249 - Call new methods for expanding/collapsing nodes. These methods
23250 use scrollwindow so we don't have to update everything below the
23252 * TreeView.cs: Refactored drawing and scrolling code. We don't
23253 need to update nodes when drawing anymore or calculate scrollbar
23255 - Added new methods for expanding/collapsing nodes. These methods
23256 use ScrollWindow so as to not have to redraw all the nodes below.
23257 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23258 we add/remove nodes or sort.
23259 - Handle removing the selected and the top node properly.
23261 2006-05-23 Chris Toshok <toshok@ximian.com>
23263 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23264 maybe this should actually happen in the datagrid code?
23265 (EndEdit): no need to invalidate anything, given that
23266 ReleaseHostedControl causes the datagrid to relayout, which
23267 invalidates everything anyway.
23269 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23270 in SetCurrentCell).
23271 (set_SelectionBackColor): call InvalidateSelection instead of
23273 (set_SelectionForeColor): same.
23274 (BeginEdit): Flesh this out a bit.
23275 (CancelEditing): only do any of this if we're editing/adding.
23277 (OnMouseDown): there's no need to cancel editing here, it's done
23279 (SetCurrentCell): only invalidate the current row header if it's a
23280 different row than the new one.
23281 (ShiftSelection): fix this to work like MS does.
23282 (ResetSelection): factor out the invalidation of selected_rows to
23283 InvalidateSelection.
23284 (SetDataSource): cancel any editing that's going on.
23286 * DataGridColumnStyle.cs
23287 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23288 call the non-interface version.
23290 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23291 header rectangle with the clip rectangle so we don't redraw the
23292 entire header for just a small area. Gets rid of the last flicker
23293 when horizontally scrolling.
23294 (DataGridPaintRow): same.
23296 2006-05-23 Mike Kestner <mkestner@novell.com>
23298 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23299 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
23300 poorly placed checkbox on the MS control. Fixes Alex's unfiled
23301 Critical bug report.
23303 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23305 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23306 and this fixes #78493
23308 2006-05-23 Miguel de Icaza <miguel@novell.com>
23310 * Theme.cs (GetSizedResourceImage): Scale images if the proper
23313 * FileDialog.cs: Do not change the background for the side bar as
23314 it wont work nicely with the theme, and also reduces the artifacts
23315 in rendering the icons (which I want to fix too).
23317 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23318 resources, not resgen resources.
23320 (PlatformDefaultHandler): Pull images using the new API.
23322 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23324 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23325 a reference to the hwnd and will not remove it unless there are
23326 no pending exposures (fixes #78341)
23327 * XplatUI.cs: Improved debug
23329 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
23331 * MenuAPI.cs : don't handle OnClick event when it was not the left
23332 button. Fixed bug #78487.
23334 2006-05-23 Mike Kestner <mkestner@novell.com>
23336 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23337 prefer submenus to the top menu for item lookup, to avoid popping down
23340 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
23342 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23343 Graphics.FillRectangle as the visual results are really bad (even
23344 on win). We now draw perfect arrows (and perfect shadows when the
23345 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23346 Pen.DashPattern to draw the dots of each line.
23348 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
23350 * FileDialog.cs: Update the filename combobox when navigating through
23351 the ListView with the cursor keys. Fixes part 7 of bug #78446.
23353 2006-05-22 Mike Kestner <mkestner@novell.com>
23355 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23358 2006-05-22 Mike Kestner <mkestner@novell.com>
23360 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23361 requests. Fix a misspelled parameter and a copy paste exception error
23364 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
23366 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23367 to get the same width/height (5/13) on X11 as the default font has on
23368 win32. This means that our DefaultFont emSize is smaller than the
23369 the MS SWF equivalent (even thought the width/height stays the same)
23371 2006-05-20 Jackson Harper <jackson@ximian.com>
23374 * MdiWindowManager.cs:
23375 * InternalWindowManager.cs: Make sure to use the border width from
23378 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
23380 * PrintDialog.cs: Implements printer details
23382 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
23384 * FileDialog.cs: Added focus handling for PopupButtonPanel.
23385 Fixes part 1 and 2 of bug #78446
23387 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
23389 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23390 instead of sticking to the first ever calculated value
23392 2006-05-19 Mike Kestner <mkestner@novell.com>
23394 * ComboBox.cs: fix mouse motion selection to use MousePosition and
23395 PointToClient, since Capture is set. Fixes #78344.
23397 2006-05-19 Mike Kestner <mkestner@novell.com>
23399 * ListView.cs: match MS behavior in Details view where items are not
23400 drawn if Columns.Count == 0.
23401 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23402 Use a separate pen to draw the check, since changing the width affects
23403 the box as well. Fixes #78454.
23405 2006-05-18 Miguel de Icaza <miguel@novell.com>
23407 * ListView.cs: ArgumentOutOfRangeException, single versions of the
23408 exception should throw the name of the invalid argument.
23410 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23411 there are no files listed.
23413 2006-05-18 Jackson Harper <jackson@ximian.com>
23415 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23418 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23420 * Control.cs: Brought back our old UpdateZOrder method as a private
23421 function and switched our calls from UpdateZOrder to the new one.
23422 This fixes the Paint.Net canvas disappearing bug.
23424 2006-05-18 Jackson Harper <jackson@ximian.com>
23427 * ThemeWin32Classic.cs:
23428 * InternalWindowManager.cs: Move the drawing into the theme,
23429 expose everything the theme should need from the window manager.
23431 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23433 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
23434 from the call to NativeWindow to avoid walking up the parent chain
23435 further than needed (speeds up setting cursors and avoids setting
23436 the wrong cursor if a parent has another cursor defined)
23437 * Cursor.cs: When loading an icon as cursor, MS uses the center of
23438 the icon as hotspot, not what's contained as hotspot in the icon
23439 file. This fixes the perceived drawing offset seen with Paint.Net
23441 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23444 - Store the calculated rectangle in Hwnd object and use it when
23445 setting the client size
23446 - Force Toolwindows to always be type Dock, to ensure they're on top
23448 2006-05-18 Mike Kestner <mkestner@novell.com>
23450 * ComboBox.cs: first pass at ComboBox rework. Layout is more
23451 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
23452 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
23453 Substantial refactoring to remove confusing nested classes. Coding
23454 standard and Get+Set->property refactorings. Shift to index based
23455 highlighting in ComboListBox instead of constantly using IndexOf and
23456 Items[]. Add invalidations on resize for DropDownList to fix ugliness
23457 in FileDialog growth. Draw borders manually since Simple mode needs
23458 to look like two independent controls. Make listbox border
23459 conditional to DropDownStyle. Improved OwnerDraw support.
23461 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
23463 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
23464 Don't set the disposed graphics to null, so we can throw the "right"
23465 exception if the graphics is reused later (added a flag to avoid
23466 double disposing). Some behaviours are different under 2.0 and are
23467 filled under bug #78448.
23469 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23471 * Control.cs: When double-buffering is enabled, we need to reset
23472 our graphics context between paint calls. Otherwise, any
23473 transformations and other alterations on the context will
23474 become cumulative (#77734)
23476 2006-05-18 Mike Kestner <mkestner@novell.com>
23478 * ListView.cs: do focused item selection like MS on clicks.
23479 Rework focus handling for ItemControl so LostFocus invalidates as
23481 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23482 the ListView ItemControl has focus.
23484 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
23486 * XplatUIX11.cs: If client_window ends up being width or height zero
23487 due to border settings, move it off window inside whole_window (#78433)
23489 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23491 * Mime.cs: Shrink the mime file cache correctly.
23493 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23495 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23497 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23499 * XplatUIX11.cs (AddExpose): More sanity checks
23501 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23504 - AddExpose: Don't add expose ranges outside the size of our
23506 - Cast opacity values to Int32 to avoid crashes with certain
23508 - Added disabled code paths that protect against illegal cross-
23509 thread painting (Developers.exe)
23511 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23513 * ProgressBar.cs: Invalidate the control when it's resized
23514 since block size is based on control size. (#78388)
23516 2006-05-16 Miguel de Icaza <miguel@novell.com>
23518 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23519 of setting the incoming argument to the "reset" value, we set the
23520 this.datamember to string.empty (before we were invalidating the
23525 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23527 * Form.cs: Only apply transparency settings after the form
23528 is created. (Fixes #77800)
23530 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23532 * ApplicationContext.cs: Grab the HandleDestroyed event so
23533 we know when to fire OnMainFormClosed
23535 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23537 * Application.cs: Introduced sub-class to allow tracking of
23538 threads and centralized triggering of the event mess for
23539 ThreadExit, AppExit, etc.. (#76156)
23541 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
23544 - Do not return a null icon index value for a mime subclass.
23545 Instead try the main mime type class too.
23546 - Seems that some newer distributions don't have a link to some
23547 gnome default icons anymore. So check the default gnome dir too.
23550 2006-05-16 Jackson Harper <jackson@ximian.com>
23552 * MdiClient.cs: Don't paint the parent background image if we have
23553 our own background image.
23555 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23558 - PerformLayout: Do not shrink space filled by DockStyle.Fill
23559 controls, all filled controls are supposed to overlap (#78080)
23560 - UpdateZOrder is supposed to update the control's z-order in the
23561 parent's z-order chain. Fixed to behave like that
23562 - BringToFront: Removed obsolete code
23563 - SendToBack: Simplyfied
23564 - SetChildIndex: Trigger layout calculations when Z-order changes
23565 since layout is done by z-order
23567 2006-05-16 Chris Toshok <toshok@ximian.com>
23569 [ fixes bug #78410 ]
23570 * DataGrid.cs (set_AlternatingBackColor): use
23571 grid_drawing.InvalidateCells instead of Refresh().
23572 (set_BackColor): call grid_drawing.InvalidateCells.
23573 (set_BackgroundColor): use Invalidate instead of Refresh.
23575 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23576 invalidate the cell area.
23578 2006-05-15 Chris Toshok <toshok@ximian.com>
23580 [ fixes bug #78011 ]
23581 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23582 on to DataGridPaintRow.
23583 (DataGridPaintRow): take a clip argument, and only draw the cells
23584 which intersect it. same with the not_usedarea.
23586 * Theme.cs (DataGridPaintRow) add @clip parameter.
23588 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23589 XplatUI.ScrollWindow.
23590 (ScrollToRow): same.
23592 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23593 with last column which was causing a gray swath to appear with the
23594 XplatUI.ScrollWindow code.
23596 2006-05-15 Chris Toshok <toshok@ximian.com>
23598 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23599 use XplatUI.ScrollWindow.
23600 (VerticalScrollEvent): use XplatUI.ScrollWindow.
23602 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23604 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23606 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23608 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23609 file since there are no equivalent X11 cursors
23611 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23613 * MonthCalendar.cs : DateTimePicker should reflect selected date
23614 on mouse*up*, not mouse*down*. Fixed originally reported part of
23617 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23619 * TabControl.cs : When argument index is equal or more than tab
23620 count, just ignore. Fixed bug #78395.
23622 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23624 * Control.cs: Dispose all child controls when control is diposed (#78394)
23626 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23628 * ColorDialog.cs: Finally it is possible to select the color with
23631 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23633 * PrintDialog.cs: Fix typo
23635 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23637 * PrintDialog.cs: PrintDialog is not resizable
23638 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23639 color. Made some ToolBar drawing methods protected virtual.
23641 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
23643 * PrintDialog.cs: Implementation of the PrintDialog
23645 2006-05-12 Chris Toshok <toshok@ximian.com>
23647 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23648 thumb, instead use MoveThumb. This has the side effect of making
23649 most of the other thumb moving machinery use MoveThumb as well.
23650 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23651 need to actually invalidate the rectangle where the new thumb will
23653 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23654 We force an Update() after, so it's not as fast as it could be,
23655 but at least there's zero flicker and no droppings.
23656 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23657 (UpdateThumbPos): add another argument (dirty), which says whether
23658 or not to calculate/add dirty regions which we later invalidate.
23659 For cases where we know we're going to use MoveThumb, we pass
23660 false for this. Otherwise, pass true.
23662 2006-05-12 Jackson Harper <jackson@ximian.com>
23664 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23667 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
23669 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23670 and GetClipRegion methods and UserClipWontExposeParent property.
23671 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23672 overriding UserClipWontExposeParent property, setting to false, since
23673 Win32 handles the required expose messages to draw our clipped parent
23675 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23676 PaintEventStart to set the user clip region if set.
23678 - Now internally tracking the Region for the control since we need to
23679 store it if the handle is not yet created and only set it when it
23680 becomes created. Before setting the region forced handle creation
23681 - Added code to draw the parents underneath a user-clipped region
23682 * Hwnd.cs: Added UserClip property
23684 2006-05-12 Chris Toshok <toshok@ximian.com>
23686 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23687 (set_Maximum): same.
23688 (set_Minimum): same.
23689 (set_SmallChange): same.
23690 (OnMouseUpSB): remove the call to refresh when releasing the
23691 thumb. We shouldn't need it.
23693 2006-05-12 Miguel de Icaza <miguel@novell.com>
23695 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23696 AutoSize set to None, we do not need to relayout everything, we
23697 just need to invalidate the current region.
23699 (Draw): Do not draw the entire ClientArea, just redraw the
23700 clip area being passed.
23702 * MdiClient.cs: Make MdiClient constructor with the Form argument
23705 2006-05-12 Jackson Harper <jackson@ximian.com>
23707 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23708 parents background image, but strangely not their own.
23709 - (DrawStatusBarPanel): Take into account horizontal alignment
23710 when drawing the strings and icons.
23712 2006-05-12 Mike Kestner <mkestner@novell.com>
23714 * ListBox.cs: avoid invalidations for focus when the collection is
23717 2006-05-12 Chris Toshok <toshok@ximian.com>
23719 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23720 invalidate the entire thumb area. Call InvalidateDirty which
23721 limits the redraw to the thumb itself and surrounding pixels.
23723 * XplatUIX11.cs (ScrollWindow): optimize copying.
23725 2006-05-12 Chris Toshok <toshok@ximian.com>
23727 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23728 Figure out the positioning/layout in a single pass instead of
23729 multiple recursive invocations. Speeds up the initial display of
23730 the data grid. Also, make many things private that were
23731 originally public but unused outside this class.
23733 2006-05-11 Jackson Harper <jackson@ximian.com>
23735 * MdiClient.cs: Improved layout code.
23737 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
23739 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23740 not SelectedObject.
23742 2006-05-11 Chris Toshok <toshok@ximian.com>
23744 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23745 union of that will always be {0,0,width,height}.
23747 2006-05-11 Jackson Harper <jackson@ximian.com>
23749 * Form.cs: Match MS's DefaultSize for forms (they must have
23750 changed the size in sp2).
23752 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23754 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23756 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23758 * TextControl.cs : Fixed bug #78109. This incorrect position
23759 comparison caused crash on automatic line split.
23760 * TextBoxBase.cs : reduce duplicate code.
23762 2006-05-10 Jackson Harper <jackson@ximian.com>
23764 * MdiClient.cs: Active form is only sent to the back when using
23765 the Next form functionality, when a form is clicked the current
23766 active shouldn't be sent to the back.
23767 - Layout the mdi windows when the container is first made visible.
23768 * Form.cs: Give the MdiClient a ref to the containing form when we
23771 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23773 * LinkLabel.cs : link_font could be uninitialized, so populate one
23774 before actual use. Fixed bug #78340.
23776 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23778 * XplatUIX11.cs : clipboard format native value is IntPtr.
23781 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23784 - Instead of showing context menus directly we send WM_CONTEXTMENU,
23785 which is passed up the parent chain by DefWndProc
23786 - We now handle WM_CONTEXTMENU to display any menu, or pass it
23787 to DefWndProc (#77956)
23788 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23790 2006-05-10 Jackson Harper <jackson@ximian.com>
23792 * MdiClient.cs: We need to remove the controls from the mdi
23793 collection, when we close the window.
23794 * MdiWindowManager.cs: Special handling of closing mdi windows.
23795 * InternalWindowManager.cs: Make the close method virtual so the
23796 mdi window manager can handle it specially.
23798 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
23801 - Recalculate grid when the data source has changed
23802 - Matches styles provided by user from all data sources types
23803 * DataGridTableStyle.cs: For columns that provided by the user set the
23804 with the preferred value is there was unassigned.
23805 * CurrencyManager.cs: throw OnItemChanged event
23807 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23809 * PictureBox.cs: Don't animate until handle is created. Start animation
23810 when handle is created.
23812 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23814 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23816 * XEventQueue.cs: We don't need to provide the extra info
23818 2006-05-10 Jackson Harper <jackson@ximian.com>
23820 * MdiClient.cs: If the mdi clients parent form has a background
23821 image set, we draw that background image for the mdi area's
23824 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23826 * TextBoxBase.cs: Set IBeam cursor (#78347)
23828 2006-05-10 Mike Kestner <mkestner@novell.com>
23830 * ToolBar.cs: fix some text padding issues with ButtonSize
23831 calculation. Update the default size to match MS documentation.
23832 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23833 button size. Fixes #78296.
23835 2006-05-10 Mike Kestner <mkestner@novell.com>
23837 * ListBox.cs: use is_visible for scrollbar positioning in case the
23838 control isn't on screen yet. Fix off by one with Right vs Width
23839 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23841 2006-05-10 Jackson Harper <jackson@ximian.com>
23843 * X11Dnd.cs: Drop to a control with another control on top of it.
23844 * ToolBar.cs: Work on a copy of the buttons list, so that it can
23845 be modified in click handlers. TODO: Look for similar problems in
23848 2006-05-09 Jackson Harper <jackson@ximian.com>
23850 * Form.cs: Window managers need the old window state when setting
23852 * InternalWindowManager.cs: Allow the base mdi window manager to
23853 handle more of the MDI only stuff (like maximize buttons).
23854 * MdiWindowManager.cs: Fix some snafus in changing the window
23855 state. Add all the menu functionality, for both popup and
23857 * MdiClient.cs: When a new form is selected the currently
23858 activated form is sent to the back, this matches MS.
23859 - Implement a new method to activate the next mdi child window.
23861 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23864 - Added new InternalCapture method to allow controls to prevent
23865 the capture behaviour on the click handlers
23866 - Switched to use InternalCapture
23868 - Using InternalCapture to prevent mouse captures from being released
23869 on mouse button release (Fixes #78100)
23870 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23871 returns Form borders if a caption is present. (Fixes #78310)
23873 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23875 * TreeNode.cs: Changed serialization .ctor to not require every field
23876 to be present. (#78265)
23877 * OwnerDrawPropertyBag.cs: Added serialization .ctor
23879 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
23881 * MimeIcon.cs: for is faster than foreach for strings.
23883 2006-05-05 Mike Kestner <mkestner@novell.com>
23885 * CheckedListBox.cs: update check handling code to not use selected.
23886 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23887 behavior for visual feedback, motion response, shift/ctrl handling,
23888 and properly deal with all 4 selection modes. Updates to bounds
23889 handling logic. Add scroll wheel support. [Fixes #77842]
23891 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23894 - Moved adding of Implicit controls into .ctor. That way, subsequent
23895 creation of the controls will not cause them to think they are
23896 toplevel windows (fixes #78200 header problem)
23897 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23898 - Switched visibility setting of header control to use internal field
23899 to avoid triggering handle creation
23900 - Now checking if handle is created before causing a refresh when items
23901 are added (This makes us now match handle creation time with MS)
23902 * Splitter.cs: Removed loading of private splitter cursor, switched to
23903 Cursors version now that that is loading the right ones
23904 * Cursors.cs: Load proper splitter cursors from resources
23905 * Cursor.cs: Added second method of loading resource cursors for the
23906 VS.Net users amongst us
23908 2006-05-05 Mike Kestner <mkestner@novell.com>
23910 * ListView.cs: give header_control a minimum size based on the
23913 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23915 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23916 window seems to do that with metacity, so set that type. (#78120)
23918 2006-05-05 Mike Kestner <mkestner@novell.com>
23920 * ListViewItem.cs: fix Details mode checkbox layout bug.
23921 * ThemeWin32Classic.cs: draw a ListView column header for unused space
23922 at the end of the header, if it exists. [Fixes for #78200]
23924 2006-05-04 Jackson Harper <jackson@ximian.com>
23926 * MdiClient.cs: Add a helper property to get the container form.
23927 * MdiWindowManager.cs: We have to make sure to use the menu origin
23928 when drawing the icons and buttons, this fixes maximized window
23929 icons/buttons on win32.
23930 * InternalWindowManager.cs: Reset the restore captions when a
23931 window goes from Maximized to Minimized and vice versa. Move the
23932 DrawMaximizedButtons into the MdiWindowManager source, tool
23933 windows can't be maximized. NOTE: This could use a little
23934 refactoring if time ever permits.
23936 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23938 * TextBox.cs: Add MWFCategoryAttributes
23939 * TextBoxBase.cs: Add MWFCategoryAttributes
23940 * Form.cs: Add MWFCategoryAttributes
23942 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23944 * Control.cs: Add MWFCategoryAttributes
23945 * ScrollableControl.cs: Add MWFCategoryAttributes
23947 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
23949 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23950 Divider is true. Fix a little glitch in PropertyToolBar
23953 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
23956 - Dispose: Call base.Dispose, this causes the disposed event
23957 to be fired (and probably other, more important stuff)
23958 - SetVisibleCore: Set is_visible to true after creating the
23959 window so that the window still gets created invisible (if
23960 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23961 to generate a WM_ACTIVE message
23962 * Form.cs: Call Dispose when we want to destroy the window, instead of
23963 just destroying the handle (Dispose will do that for us)
23965 - RootWindow also needs a queue, so we can properly process the
23966 property change events from RootWindow (like Activate)
23967 - Generatic synthetic WM_ACTIVE message when the active window is
23970 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23972 * LinkLabel.cs: Trigger a recalc of our label dimensions when
23975 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23977 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23978 for determining width and height (image might not be assigned if
23979 we're drawing an imagelist)
23981 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23983 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23984 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23986 * Theme.cs: No longer returns hardcoded menu height, instead calls
23988 * Form.cs (OnLoad): Scaling happens before triggering Load events
23991 2006-05-01 Mike Kestner <mkestner@novell.com>
23993 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
23995 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23997 * TextBoxBase.cs: Removed Fixme
23998 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24000 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24003 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24004 the rectangle relative to the parent, considering borders. We
24005 don't really want that.
24006 - ScrollWindow: Fixed warning to be more understandable
24007 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24008 scrollbars and scroll only the visible area
24009 * RichTextBox.cs: Removed debug output
24011 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24013 * NumericUpDown.cs (Text): Just use base
24014 * UpDownBase.cs: Ensure txtView is created before using it
24016 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24018 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24019 casting to IntPtr to avoid 64bit overflow errors
24021 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24024 - AllowDrop: Don't force handle creation.
24025 - CreateHandle: Added call to tell driver if we're allowed to drop
24027 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24029 * FileDialog.cs: Remember the last directory not only for the
24030 current instance but also for new FileDialog instances.
24032 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24034 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24035 broke sending async messages
24037 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24040 - ScrollWindow: Fixed method. We finally generate expose events again
24041 for scrolled areas. This was causing 'garbage' when scrolling
24042 textbox and other controls that used ScrollWindow
24043 - Switched from using the regular queue for paint events to the MS
24044 model of 'generating' paint events when the queue is empty.
24045 We use the new XQueueEvent.Paint subclass to store which windows
24047 - AddExpose now takes the x/y/width/height of the exposed area
24048 and inserts the window into the paint queue if not already there
24049 - InvalidateWholeWindow: Switched to use new AddExpose method
24050 - UpdateMessageQueue: Added which queue to monitor for paint events
24051 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24052 the unlikely case nothing above handles it. We reset the expose
24053 pending states to get them off the queue.
24054 - GetMessage: Now pulls a paint event if no other events are in the
24056 - Invalidate: Switched to new AddExpose method
24057 - PeekMessage: Updated to understand pending paint events
24058 - UpdateWindow: Fixed logic bug. We were only updating if the window
24059 didn't need updating. Also switched to sending WM_PAINT directly,
24061 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24062 and random access Remove(). The random access is needed to handle
24063 UpdateWindow() where a WM_PAINT is sent directly without accessing
24065 * ScrollBar.cs: Added Update() calls to cause immediate updates to
24066 allow for better feedback when scrolling. Scrollbars are small and
24067 the immediate update should make it 'feel' more responsive without
24068 slowing things down. ScrollBar still needs it's invaliate logic
24069 updated to not always invalidate the whole bar on certain changes.
24071 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24074 (BackColor): if the control does not support a transparent background,
24075 return the default backcolor when the parent backcolor is transparent.
24077 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
24079 * Application.cs: Updated to new StartLoop/GetMessage API
24080 * RichTextBox.cs: Provide some output on RTF parsing errors
24081 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
24082 new queue_id argument to GetMessage and PeekMessage to allow faster
24083 handling of per-thread queues in drivers.
24084 * Hwnd.cs: Added Queue tracking and property
24085 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
24086 * XEventQueue.cs: Added thread trackingA
24087 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
24089 - Implemented new per-thread queue
24090 - GetMessage: Fixed return/break behaviour on several cases. We were
24091 returning stale messages in some cases, instead of just processing
24094 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24096 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
24098 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
24100 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
24101 fixed off-by-one comparisons between Width/Height and Right/Bottom.
24103 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24105 * PropertyGridView.cs: Fix drop down width.
24107 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24109 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
24110 a mess in DrawToolBar, so I removed one of them.
24112 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24114 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
24115 needed (clip). Otherwise we get artifacts.
24117 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24119 * FixedSizeTextBox.cs: Added constructor to allow specifying which
24121 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
24122 and switched FixedSizeTextBox to only be fixed vertical (#78116)
24123 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
24124 if it matches the scale base font (avoids unneeded scaling)
24126 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24128 * X11DesktopColors.cs: One gtk_init_check should be enough
24130 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24132 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
24135 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24138 - Generate OnTextChanged for Backspace even if we're only deleting
24139 the current selection
24140 - When setting the Text property, only select all text if the
24141 control does not have focus when it is being set. Otherwise
24142 just place the cursor at the beginning of the control
24144 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24146 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
24147 Added a little helper to draw PropertyGrid ToolBar with a different
24148 border and a different BackColor.
24149 * PropertyGrid.cs: Some background parts didn't get painted with the
24150 correct background color. Added a class that helps us to draw the
24151 correct border for PropertyGridView and a class that helps us to
24152 draw ToolBars with a different backcolor
24153 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
24155 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
24157 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
24158 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
24160 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24162 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
24163 into the palette entries. Also, since we're working on a copy
24164 we needed to copy the palette back onto the bitmap.
24165 * Cursor.cs: Same fix as XplatUIWin32.cs.
24167 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24169 * ImageListStreamer.cs: Need to read the var (or we're off)
24171 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24173 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
24174 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24175 TextBoxBase.cs: Unused var fixes
24176 * AxHost.cs: Small 2.0 fix
24177 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
24178 as it seems that is what at least Metacity expects. This will make
24179 icons show up on 64bit platforms. We still have some 64bit size
24180 issues, though, since the startup app window size still won't match.
24182 2006-04-25 Mike Kestner <mkestner@novell.com>
24184 * *.cs: cleanup newly reported exception var unused warnings.
24186 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24188 * ThemeWin32Classic.cs: Button image alignment now matches exactly
24191 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24193 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24194 image. The image position is always the same, no matter if the
24195 button is pressed or not.
24197 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24199 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24200 selection and set the correct filename for SaveFileDialog.
24201 Patch by Emery Conrad.
24203 2006-04-24 Mike Kestner <mkestner@novell.com>
24205 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24206 check for item.X outside the ClientRect instead of item.Y. Fixes
24209 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24211 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24212 trust that value blindly and do some sanity check. Fixes bug #77814.
24214 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24216 * ImageListStreamer.cs: save the mask as a 1bpp image.
24218 2006-04-21 Mike Kestner <mkestner@novell.com>
24220 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24221 pass Checked and Indeterminate to the Theme Engine. Improve
24222 encapsulation with ListBox.
24223 * ListBox.cs: Keep a StringFormat instead of calculating it every item
24224 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24225 nested types. Move all CheckState functionality to CheckedListBox.
24226 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
24227 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
24228 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24229 single base list. Fix scrollbar sizing and placement to mirror MS.
24230 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24232 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24233 for CheckedListBox by using new DrawItemState info. Center the
24234 checkboxes on the items. Use new StringFormat property.
24236 2006-04-18 Jackson Harper <jackson@ximian.com>
24238 * Form.cs: MdiChildren don't do default locations the same way as
24239 regular forms. This prevents a crash when trying to position the
24242 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
24244 * PropertyGridTextBox.cs: Formatting, copyright
24245 * PropertiesTab.cs: Formatting
24246 * PropertyGrid.cs: Formatting
24247 * PropertyGridView.cs: Formatting, fix drop down, enabled double
24248 click toggling of values
24250 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
24252 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24253 * Control.cs (.ctor): verify_thread_handle is static, don't reset
24254 every time a control is created
24255 * Application.cs: Removed obsolete EnableRTLMirroring method
24257 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
24259 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24260 SelectedIndex to -1. Fixes bug #78121.
24262 2006-04-17 Jackson Harper <jackson@ximian.com>
24264 * Binding.cs: Handle null values for Current and BindingContext.
24265 This occurs when binding is a little delayed.
24266 * CurrencyManager.cs: return null for Current when there are no
24268 - Hookup to the listchanged event on the DataView and update
24269 bindings when the list is changed. This fixes late binding of
24272 2006-04-17 Jackson Harper <jackson@ximian.com>
24275 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24278 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
24280 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24282 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24283 with the correct ButtonState
24285 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
24287 * XplatUIX11.cs: Improved distinguishing between window types to
24288 tell the WM a type closer to what the app wants (Fixes #78107)
24290 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24292 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24295 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24297 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24298 drawing code to reflect the size grip changes
24300 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24302 * ImageListStreamer.cs: fix handling of the mask that follows the main
24303 bitmap when deserializing and serialize it properly. The generated mask
24304 should better be a 1bpp image, but I'll do that later.
24306 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24308 * FileDialog.cs: Show something in the DirComboBox on *nix if the
24309 path doesn't fit into some of our Current.Places
24311 2006-04-13 Jackson Harper <jackson@ximian.com>
24313 * ComboBox.cs: Use borders instead of drawing our own decorations,
24314 try to obey correct rules for heights.
24317 * ThemeClearLooks.cs:
24318 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24319 this is now handled by borders.
24320 - Remove unused DrawListBoxDecorationSize method.
24322 2006-04-13 Mike Kestner <mkestner@novell.com>
24324 * MenuAPI.cs: null guarding for the disbled click check fixes crash
24327 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24329 * ThemeWin32Classic.cs:
24330 - Fixed CPDrawStringDisabled
24331 - Corrected drawing of disabled menu items
24332 - Fixed drawing of disabled radio buttons (bug #78095)
24333 - Draw check in a disabled CheckBox with color ControlDark
24335 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24337 * Form.cs: Use the provided width when calculating the menu size;
24338 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24339 and ClientSize.Width won't be updated yet
24340 * Application.cs: Use Visible instead of Show() to make form visible,
24341 this way we create the handle later and menusize is considered
24343 2006-04-12 Mike Kestner <mkestner@novell.com>
24345 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24348 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24350 * TextBox.cs: Implemented context menu
24352 2006-04-12 Mike Kestner <mkestner@novell.com>
24354 * ListView.cs: implement box selection. fixes #77838.
24355 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24357 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24359 * XplatUIX11.cs: Added setting of window type when transient window
24360 is created (metacity would move it otherwise)
24361 * X11Structs.cs: Added WINDOW_TYPE atoms
24362 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24363 background (the control is Opaque but still wants transparent
24366 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24368 * Control.cs: Added OnPaintBackgroundInternal to allow controls
24369 that set Opaque but don't mean it (like all ButtonBase-derived
24370 controls) to still draw their background
24371 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24374 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24376 * Control.cs (PaintControlBackground): Set the graphics object
24377 on our PaintEvent to null to prevent it from being disposed
24378 when the PaintEvent gets disposed
24380 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
24382 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24383 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24385 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24388 - Added transparency check to BackColor property. Transparent
24389 backgrounds are only allowed if the control styles permit it
24390 - Added recursive painting of parent control background and
24391 foreground if a control with a transparent backcolor is drawn
24392 (Thanks to Tim Ringenback for providing his 'hack' as a base
24393 for this patch) Fixes #77985 and #78026.
24394 - Added Opaque style check before calling OnPaintBackground, no
24395 need to draw the background if the control is opaque
24396 - Removed ControlAccessibleObject owner variable (inherited from
24397 base, no need to define again)
24398 - Added some documentation links explaining the drawing events
24401 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24403 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24404 that the affected control is the located at the left border of our
24405 parent (Fixes #77936)
24407 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24409 * TextBoxBase.cs: When rendering disabled or readonly controls,
24410 draw the background with 'Control' instead of 'Window' color as
24411 long as the user hasn't specifically set a color
24413 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24415 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24416 since that won't be updated if the user types text (only if it's
24417 programatically set)
24419 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24421 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24422 layout changes do to app-triggered resizes will have the proper
24423 display rectangle for layout
24425 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
24427 * ThemeWin32Classic.cs:
24428 - Make use of the SystemBrushes and SystemPens wherever possible
24429 - Corrected some highlight colors
24430 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24432 * Theme.cs: Added Empty field to CPColor struct
24434 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24436 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24437 is displayed when calculating the display rectangle. Thanks to Mike
24438 for teaching me the err of my ways.
24440 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
24442 * ScrollableControl.cs:
24443 - Rewrote DisplayRectangle code, now returning the proper x/y coords
24444 (instead of 0,0) and we now return the real width/height instead of
24445 just the clientrectangle, adjusted for padding. The rectangle is
24446 now cached and created by the new CalculateDisplayRectangle method.
24447 - Created new CalculateDisplayRectange method, which basically does
24448 what get_DisplayRectangle() did originally, but now using the
24449 right edge instead of DisplayRectangle to determine the size of
24451 - get_Canvas(): Fixed it to properly calculate canvas for
24452 right/bottom controls which seem to be placed to the right/bottom
24453 of any controls that have a fixed location
24454 - Removed TODO that's taken care of
24455 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24456 and SetDisplayRectLocation according to new MSDN2 docs
24457 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24458 event when that is called, this is added for compatibility
24459 - ScrollControlIntoView(): Implemented.
24460 - Switched scrollbars to be implicit, they shouldn't be selectable
24461 * ContainerControl: Now that ScrollControlIntoView is implemented, we
24462 call it when the active control is set/changed
24463 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24464 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24465 implicit_control variable (used for native Win32 message generation)
24466 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
24467 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24468 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24469 * XplatUIStructs.cs: Added ScrollBarCommands enum
24471 2006-04-10 Jackson Harper <jackson@ximian.com>
24474 * CheckedListBox.cs:
24481 * PrintPreviewControl.cs:
24487 * UpDownBase.cs: Fixup base event overrides.
24489 2006-04-06 Mike Kestner <mkestner@novell.com>
24491 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24492 all user-initiated value changes to min <= value <= max-thumbsz+1.
24493 (set_Value): check for vert/horiz when calculating new thumb position.
24494 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24496 (OnMouseMoveSB): refactor the thumb dragging code and refine
24497 invalidation logic to reduce flicker.
24498 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24499 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24500 (UpdateThumbPosition): small code readability cleanup
24502 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
24504 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24507 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24509 * ThemeNice.cs: Use a better graphics effect when a button is pressed
24511 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24513 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24514 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24515 This dramatically reduces the number of Pen.Dispose calls.
24516 Where possible call ResPool methods only once instead of calling it
24517 over and over again (for example for the same color).
24519 2006-04-06 Mike Kestner <mkestner@novell.com>
24521 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24522 Also remove an unused private field on the collection. Fixes #77972.
24524 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24526 * ThemeNice.cs: Added ToolBar drawing code
24528 2006-04-06 Mike Kestner <mkestner@novell.com>
24530 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24531 I'm assuming that means we need to look up the toplevel for the
24532 provided control. Fixes the crash trace in #77911 but exposes another
24533 crash in some strange reflection usage in NDocGui.
24535 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24537 * ThemeNice.cs: Gave it a little silver touch and added Images
24539 * FontDialog.cs: FontDialog is not resizable
24540 * FileDialg.cs: Added SizeGripStyle.Show
24542 2006-04-05 Jackson Harper <jackson@ximian.com>
24544 * KeyboardLayouts.cs: Remove warning.
24546 2006-04-05 Jackson Harper <jackson@ximian.com>
24548 * Control.cs: Enable OnPaintInternal so we can use it for drawing
24549 all of our controls instead of Paint +=.
24564 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24565 use OnPaintInternal. Remove Width/Height and Visible checks in
24566 paint handler, this is done at a higher level now.
24567 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24568 * PaintEventArgs.cs: Add a handled flag so controls that don't
24569 want anymore painting after OnPaintInternal can make sure OnPaint
24572 2006-04-05 Mike Kestner <mkestner@novell.com>
24574 * Form.cs: fix the menu WndProc hacks to respect the native enabled
24575 state of the form, so that we don't process events when Modal dialogs
24576 are up. Fixes #77922.
24578 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
24580 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24583 2006-04-05 Mike Kestner <mkestner@novell.com>
24585 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24587 2006-04-05 Mike Kestner <mkestner@novell.com>
24589 * ListView.cs (HeaderMouseMove): null guarding for the over column
24590 when setting up the drag_to_index. Fixes #78015.
24592 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24594 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24595 in the taskbar. Transient windows seem to accomplish that.
24597 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24600 - Re-enabled CreateParams.X/Y code for FormStartPosition
24601 - Added code for manual placement when creating the Control
24602 - Incomplete patch to treat MDI forms differently when
24603 setting the ClientSizeCore. (Still need to figure out handling
24606 - When we're explicitly setting the X/Y position of a non-Child
24607 window, let the WM know. Metacity really wants this.
24609 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24611 * ThemeNice.cs: Added CPDrawButton
24613 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24615 * ThemeNice.cs: Changed the color for focused buttons and activated
24616 the arrows for small scroll buttons.
24618 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24620 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24621 anymore. Changed some method modifiers to protected (virtual)
24622 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24624 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24625 Updated drawing of menus, buttons and progressbars; added
24628 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24630 * ImageListStreamer.cs: implemented serialization/deserialization
24633 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
24635 * ThemeWin32Classic.cs:
24636 - Removed all the DrawFrameControl stuff; CPDrawButton,
24637 CPDrawCheckBox and CPDrawRadioButton are now handled directly
24639 - Updated and corrected the drawing code of CPDrawButton,
24640 CPDrawCheckBox and CPDrawRadioButton to better match ms
24641 - Updated theme checkbox and radiobutton code to use the CP*
24644 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24646 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24649 2006-03-31 Jackson Harper <jackson@ximian.com>
24651 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24653 * UpDownBase.cs: Don't CreateGraphics manually, use a
24654 Refresh. Ideally we would invalidate the correct areas here.
24656 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24659 - We now track the mapping state of windows. If a window (or
24660 one of it's parents) is not mapped we no longer permit
24661 WM_PAINT messages to be generated since we'd otherwise get
24662 lots of BadMatch X errors. Jackson did all the work figuring
24664 - Destroying the caret if the window it's contained in is
24665 destroyed. Can't use regular DestroyCaret method since it
24666 might fall into a drawing function (trying to remove the
24667 caret) and with that generate new BadMatch errors. Again,
24668 Jackson tracked this down.
24669 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24670 make sure we send the messages to all windows. (The old code
24671 would send the WM_DESTROY to the window, and then all child
24672 windows would be 'gone' because the WM_DESTROY handle lookup
24673 would no longer find the destroyed window)
24674 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24675 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24677 2006-03-31 Jackson Harper <jackson@ximian.com>
24679 * ScrollableControl.cs: Dont recalc if we are not visible.
24681 2006-03-31 Mike Kestner <mkestner@novell.com>
24683 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24684 the visibility branch.
24686 2006-03-31 Jackson Harper <jackson@ximian.com>
24688 * ScrollBar.cs: Cap values when incrementing/decrementing.
24690 2006-03-31 Mike Kestner <mkestner@novell.com>
24692 * MenuAPI.cs: setup menu.tracker for popup/context menus.
24693 * ToolTip.cs: guard against timer expirations with no active control.
24694 Not sure why it happened.
24696 2006-03-31 Mike Kestner <mkestner@novell.com>
24698 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24700 * ToolTip.cs: Position the tooltip based on where the cursor is at
24701 popup time, not at MouseEnter time. Add a Down state so that we don't
24702 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24703 positioning offset. Lookup DisplaySize at positioning time, since it
24704 can theoretically change during invocation.
24705 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24706 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24708 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24710 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24711 Fixes behaviour when the Text property of the box is String.Empty
24713 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24715 * XplatUIX11.cs: Only send mouseleave for our client windows, not
24716 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24719 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24721 * FileDialog.cs: Visual enhancement for the popup buttons in
24724 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24726 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24729 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
24731 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24732 highlighted menu items to match ms
24734 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
24736 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24738 2006-03-30 Mike Kestner <mkestner@novell.com>
24740 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24741 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24742 go active to account for HotLight to Selected transition.
24743 * MenuItem.cs: add internal Selected prop. Fill out the Status
24744 property by calculating it from item info. Add HotLight,
24745 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24747 2006-03-30 Mike Kestner <mkestner@novell.com>
24749 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24751 2006-03-29 Jackson Harper <jackson@ximian.com>
24753 * Form.cs: Implement TODO.
24755 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24757 * PrintPreviewDialog.cs: Implemented missing methods and events; still
24758 missing proper dialog setup in the constructor
24760 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24762 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24764 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24765 - Fixed ResetBindings and removed TODO
24766 - Added check for cross-thread calls to get_Handle()
24767 - Added Marshaller attribute for set_Font to satisfy class status
24768 * FontDialog.cs: Removed TODOs that seemed implemented
24769 * UpDownBase.cs: Removed unneeded TODO and Fixme
24770 * MessageBox.cs: Implemented support for Default button and removed TODO
24771 * FileDialog.cs: Removed obsolete TODO
24772 * DomainUpDown.cs: Removed obsolete TODO
24773 * ButtonBase.cs: Removed obsolete TODO
24774 * XplatUIWin32.cs: Removed obsolete TODO
24776 - Removed obsolete TODO
24777 - Calling CheckAcceptButton when the acceptbutton is changed to allow
24778 internal status updates
24779 - Making sure the active control is selected when the control is created
24780 * CurrencyManager.cs: Removed obsolete TODO
24782 2006-03-29 Mike Kestner <mkestner@novell.com>
24784 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24785 of PrintPreviewDialog and RichTextBox.
24787 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24789 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24790 DarkDark, Light and LightLight colors for a specific color
24791 * ThemeWin32Classic.cs:
24792 - Use Button drawing code to draw RadioButtons and CheckBoxes with
24793 Appearance = Button
24794 - Make use of the new ResPool helper CPColor
24795 - Draw ProgressBar and StatusBar with correct 3D borders
24797 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24799 * ColorDialog.cs: Return selected color. Fixes bug #77940.
24801 2006-03-28 Mike Kestner <mkestner@novell.com>
24803 * ListView.cs: fix Icon layout to plan for scrollbar widths when
24804 calculating col/row counts.
24806 2006-03-28 Mike Kestner <mkestner@novell.com>
24812 switch to explicit interface method implementation for some methods
24813 corcompare identifies as inconsistent with MS.
24815 2006-03-28 Mike Kestner <mkestner@novell.com>
24819 add a few missing methods from the class status output.
24821 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
24823 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24826 2006-03-28 Mike Kestner <mkestner@novell.com>
24828 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24830 2006-03-27 Mike Kestner <mkestner@novell.com>
24832 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24833 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24835 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
24837 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24839 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24841 * ThemeWin32Classic.cs:
24842 - GroupBox: Inserted a little gap between the text and the lines
24844 - Made the code in CPDrawBorder3D more readable
24845 - Corrected the drawing location of the up and down arrows in
24848 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24850 * ControlPaint.cs: Corrected line widths in DrawBorder for
24851 ButtonBorderStyle Inset and Outset
24853 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24855 * ThemeWin32Classic.cs:
24856 - Rewrote the totally broken CPDrawBorder3D method. That was
24857 one of the main problems for the terrific ThemeWin32Classic
24859 - Updated and corrected Button drawing
24860 - Correct the dimensions of the SizeGrip to match ms ones
24861 - Removed a small drawing glitch in DrawComboBoxEditDecorations
24862 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24863 Border3DStyle.Sunken to match ms.
24865 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24867 * ThemeWin32Classic.cs: First small part of the "de-uglify
24868 ThemeWin32Classic" effort, SizeGrip
24870 2006-03-24 Jackson Harper <jackson@ximian.com>
24872 * XplatUIX11.cs: Give a max idle time of one second, this matches
24873 MS and forces an Idle event every second when there are no other
24874 events in the queue.
24876 2006-03-24 Mike Kestner <mkestner@novell.com>
24878 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24879 * ListView.Item.cs: fix layout issues with null image lists and images
24880 smaller than checkbox size.
24881 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24882 mode like MS does. It's weird, but consistent. ;-)
24885 2006-03-24 Mike Kestner <mkestner@novell.com>
24887 * ListView.cs: Scroll wheel support for the item control. Fixes
24890 2006-03-23 Jackson Harper <jackson@ximian.com>
24892 * ScrollableControl.cs: Special case negative sized areas, not
24894 * MonthCalendar.cs: Save the rect of the clicked date so we can
24895 use it for invalidation.
24896 - Try to cut down on the number of invalidates
24897 - Invalidate the rect the mouse is over and was over when moving
24898 the mouse, so we get the focus box following the cursor.
24900 2006-03-23 Mike Kestner <mkestner@novell.com>
24902 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24903 focus rectangle drawing. Fixes #77835.
24905 2006-03-23 Mike Kestner <mkestner@novell.com>
24907 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24908 the if and else if and reverting back to the original == check on the
24911 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24913 * FontDialog.cs: Update the example panel if the selected index of
24914 the fontListBox changes.
24916 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24918 * FileDialog.cs: Make FileDialog remember which directory it was in
24919 last in the same execution.
24921 2006-03-22 Mike Kestner <mkestner@novell.com>
24923 * FileDialog.cs: make the DropDownMenu on the toolbar display
24924 RadioChecks since they are mutually exclusive and that's what MS does.
24926 2006-03-22 Mike Kestner <mkestner@novell.com>
24928 * Theme.cs: add Color param to CPDrawMenuGlyph.
24929 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24930 checks and radio marks and arrows are visible on highlighted items.
24931 * ControlPaint.cs: update to use new Theme signature.
24933 2006-03-22 Mike Kestner <mkestner@novell.com>
24935 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24936 is active. Fixes #77870.
24938 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24940 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24941 to be focused/selected after startup
24943 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24946 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24947 CustomColors and ShowHelp properties
24948 - Some internal rewrites to get better results when using the
24951 2006-03-22 Mike Kestner <mkestner@novell.com>
24953 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24954 HoverSelection. Fixes #77836.
24956 2006-03-22 Mike Kestner <mkestner@novell.com>
24958 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
24959 ToggleButtons. (De)Sensitize the Back button around a stack count of
24960 1, not 0. Update ButtonSize based on a pixel count of the win32
24961 control. Adjust the toolbar size/location for new button size.
24963 2006-03-22 Jackson Harper <jackson@ximian.com>
24965 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24967 * ScrollBar.cs: When doing increments and decrements we need to
24968 set the Value property so that ValueChanged gets raised. A
24969 possible optimization here would be to make an internal SetValue
24970 that doesn't invalidate immediately.
24971 * ToolTip.cs: Tooltips get added to their container (when
24972 supplied) so they get disposed when the container is disposed.
24973 - Don't create tooltips for String.Empty. This prevents all these
24974 little 2-3 pixel windows from showing up when running nunit-gui
24975 and driving me mad.
24976 * Form.cs: Don't set topmost when setting the owner if the handles
24977 haven't been created yet. The topmost set will happen when the
24978 handles are created.
24980 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
24983 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24984 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
24985 visible (to allow them to recalculate their sizes)
24987 2006-03-21 Mike Kestner <mkestner@novell.com>
24989 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24990 methods. Removed a ton of redundant code. Still not really happy with
24991 the border rendering, but I think that's mainly because of the
24992 ControlDarkDark being black instead of a dark grey. Depending on how
24993 close we want to be, we might want to revisit those color choices.
24994 Among the new features added during the refactor were DropDownArrow
24995 pressed rendering, Disabled image rendering. Proper flat appearance
24996 boundary rendering. Removed the Divider and Wrapping dividers since I
24997 can't figure out any combination of themes and conditions to make the
24998 MS control draw a horizontal line on a toolbar despite what the
24999 Divider property docs indicate.
25000 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25001 conditions and incorrect layout. Updated to coding standard.
25002 * ToolBarButton.cs: refactored layout and positioning code from
25003 ToolBar to here. Invalidate wherever possible instead of forcing
25004 redraws of the whole toolbar.
25005 (Known remaining issues: explicit ButtonSize smaller than provided
25008 2006-03-21 Mike Kestner <mkestner@novell.com>
25010 * ContextMenu.cs (Show): use the position parameter instead of just
25011 showing at the MousePosition.
25013 2006-03-21 Jackson Harper <jackson@ximian.com>
25015 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25016 control handle this.
25017 * TreeNodeCollection.cs: If we are clearing the root node we need
25018 to reset top_node so calcs can still happen.
25019 * ThemeWin32Classic.cs: This is a Flags so we need to check
25022 2006-03-21 Jackson Harper <jackson@ximian.com>
25024 * DataGrid.cs: Create columns when the binding context has been
25026 * X11Structs.cs: Keysyms are uints.
25027 - Add size to fix build.
25029 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
25031 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25033 - Added ResetMouseHover method to allow controls to retrigger
25034 hovering if they need it more than once
25035 - Implemented MouseHoverTime and MouseHoverSize properties
25036 * Timer.cs: Start() must reset the interval
25037 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25040 2006-03-21 Jackson Harper <jackson@ximian.com>
25042 * X11Keyboard.cs: improved layout detection. Move the nonchar
25043 tables into this file.
25044 * KeyboardLayouts.cs: Move the tables into resource files.
25046 2006-03-21 Mike Kestner <mkestner@novell.com>
25048 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25050 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
25052 * Mime.cs: Various speed optimizations. Looking up mime types
25053 is now 2 times faster than before
25055 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25057 * CreateParams.cs: Added internal menu field
25059 - Switched call order for UpdateBounds; now we always call
25060 the one that also takes ClientSize, and we're calculating the
25061 client size via driver method in the others. The previous
25062 method of tracking client size by difference wasn't working
25063 for forms where even the starting client size wouldn't match
25064 the overall form size (due to borders) (Part of fix for #77729)
25065 - CreateParams(): Do not use parent.Handle unless the handle is
25066 already created. Causes havoc with Nexxia and throws off our
25067 creation of controls
25069 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
25070 - Switched handling of ConfigureNotify over to new PerformNCCalc
25071 method (consolidates code)
25072 - Changed RequestNCRecalc to use new PerformNCCalc method
25073 - Added calls to RequestNCRecalc when menus and borders are changed
25074 to allow app to set NC size. (Part of fix for #77729) This matches
25075 when MS send a WM_NCRECALC on Win32 windows.
25076 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
25077 (Part of fix for #77729). This matches what MS does, they also
25078 send that message when the form is made visible.
25079 - XException.GetMessage: Improved usability of X errors by including
25080 a translation of the window into Hwnd and Control class
25081 - Improved debug info for window creation, reparenting and destruction
25082 - Created helper method WindowIsMapped() [Currently not used]
25083 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
25085 - CreateParams: Now setting our menu on the new internal menu field
25086 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
25087 avoid calculating the same property twice
25089 - Improved usability of ToString() for debugging purposes
25090 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
25091 determine the height of the menu, instead of just the font. This
25092 required to also create a graphics context and to keep a bmp
25093 around (for performance reasons)
25095 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25097 * MenuAPI.cs: Added OnMouseUp method
25099 - Now remembering the requested client size, avoids size errors
25100 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
25101 instead of base if the menu is active. This is required due to
25102 control now capturing and releasing on down/up and it would
25103 prematurely release our menu capture
25105 2006-03-17 Jackson Harper <jackson@ximian.com>
25107 * KeyboardLayouts.cs: Add the czech layouts.
25109 2006-03-16 Jackson Harper <jackson@ximian.com>
25111 * Control.cs: Use the viewport space when sizing not the controls
25112 client size, so things like ScrollableControl that effect the
25113 viewport size (when scrollbars are added) are computed correctly.
25114 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
25116 - Handle creating BindingManagers for null data sources.
25117 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
25118 source, otherwise when rows are added they are added to the 'fake'
25119 datasource and we will crash when trying to set the position in
25121 - Use Implicit scrollbars on the datagrid so they arent
25124 2006-03-16 Jackson Harper <jackson@ximian.com>
25127 * InternalWindowManager.cs:
25128 * MdiWindowManager.cs:
25129 * X11Keyboard.cs: I really want Mike to love me again (fix
25130 compiler warnings).
25132 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25135 - OnMouseDown: Switch to editing mode when clicking on the cell
25136 even if we're clicking on the cell that's currently
25138 - ProcessGridKey: Left/Right now wrap like MS.Net does
25139 - ProcessGridKey: Tab now knows to add a new row when tab is
25140 pressed in the cell of the last column of the
25142 - ProcessGridKey: Enter now adds another row if pressed in the last
25143 row and selectes the new row, same column cell
25144 - ProcessGridKey: Home/End navigate columns, not rows, like
25145 originally implemented
25146 - Broke ProcessKeyPreview code out into an extra Internal method
25147 so it can be called from the edit code
25148 * DataGridTextBox.cs (ProcessKeyMessage):
25149 - Switched to accept Tab keypresses
25150 - Added F2 handling to allow jumping to the end of the edited cell
25151 - Added logic to allow moving caret left/right inside edited cell
25152 and making the edited cell jump when the caret hits cell borders
25153 - Tab and Enter are now passed to the datagrid after being handled
25155 - Removed capture code now that Control handles it
25156 - set_SelectionStart now ensures caret is visible
25158 2006-03-16 Jackson Harper <jackson@ximian.com>
25160 * TrackBar.cs: Debackwards the increment/decrement for handling
25161 mouse clicks on the bar with vertical trackbars.
25162 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
25163 bottom to match MS.
25165 2006-03-16 Mike Kestner <mkestner@novell.com>
25167 * ListView.cs: make shift/ctrl keyboard and mouse selection
25168 consistent with the MS control. Fix a bug in
25169 SelectedListViewItemCollection.Clear that was pissing me off for the
25170 better part of a day because the collection was being altered
25171 underneath us as we walked the list.
25173 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25175 * Control.cs: Not sure how we could miss this so long, but it seems
25176 that MS.Net has Capture set all the way from before calling
25177 OnMouseDown through sending the mouse events until after
25178 OnMouseUp. This will fix DataGrid's selection being set to end
25179 at the location of the MouseUp.
25181 2006-03-15 Jackson Harper <jackson@ximian.com>
25183 * BindingContext.cs: Check the binding after its added so that it
25184 can initialize the binding managers and hookup to events.
25185 * Binding.cs: Data members seem to sometimes include rows/cols in
25186 the format Row.Column we now take this into account.
25187 - Hookup to the position changed event so we can update the
25188 control when the position has changed in the data set.
25189 * CurrencyManager.cs: Take into account the row/col naming
25190 convention when creating dataset tables.
25191 * BindingContext.cs: Using a newer better way of storing
25192 datasource/datamember pairs. Hopefully this better matches MS for
25193 looking up binding managers.
25196 2006-03-15 Jackson Harper <jackson@ximian.com>
25198 * BindingContext.cs: The currency manager needs the data member
25199 name, if the member is a data set we use the name to find the
25201 * CurrencyManager.cs: When creating the list prefer an IList over
25203 - Attempt to create a DataTable from a DataSet (TODO: might need
25204 some better error checking here, although MS doesn't seem to have much)
25205 - If we have a DataTable create a view and use it as our list.
25207 2006-03-15 Mike Kestner <mkestner@novell.com>
25209 * ListView.cs: keep a matrix of the icon mode layout to facilitate
25210 keyboard navigation. Support Up/Down/Left/Right selection correctly
25211 for all 4 View modes.
25212 * ListViewItem.cs: add internal row/col fields for icon layouts.
25214 2006-03-15 Jackson Harper <jackson@ximian.com>
25216 * TabControl.cs: Redraw the tabs when we resize so their newly
25217 calculated sizes are drawn on screen.
25218 * X11Keyboard.cs: Begginnings of XIM support. We also now support
25219 composite characters.
25220 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25221 - filter events so that composite characters can be created
25223 * X11Structs.cs: Add XIMProperties enum.
25225 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25227 * Control.cs (BringToFront, SendToBack): Don't use window or handle
25228 unless it's created
25230 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25232 * Control.cs (PerformLayout): We don't need to consider visiblity
25233 for anchoring, only for docking. This fixes 'whacky' alignment
25234 in listbox and other controls that use implicit scrollbars after
25235 the previous PerformLayout patch
25236 * ListBox.cs: Switched to use implicit scrollbars
25238 2006-03-14 Mike Kestner <mkestner@novell.com>
25242 - chain up the "new event" overrides to base and use
25243 OnEvent to raise them. Part of fix for bug #76509.
25245 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
25247 * FileDialog.cs: Do not select an item in the parent directory
25250 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25252 * Control.cs (PerformLayout): It would seem that we considered
25253 invisible windows for our layout. Not quite the right thing
25254 to do. Now we don't any longer, thereby fixing bug #76889.
25256 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25258 * Control.cs (CanFocus): I goofed. A control can have focus
25259 even though it's not selectable. Made it match MS docs.
25261 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25263 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25264 center by default (fixes #76895)
25265 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
25266 all uses of Border3DSides.All with the explicit ORd together
25267 Left|Right|Top|Bottom because I assume that nobody was aware
25268 that All also implies a center fill. Most places I checked had
25269 a fill right above.
25270 * ProgressBarStyle.cs: Added
25272 2006-03-13 Mike Kestner <mkestner@novell.com>
25274 * ListView.cs: fix breakage in drag shadow header positioning
25275 from Peter's csc compilation fix.
25277 2006-03-13 Mike Kestner <mkestner@novell.com>
25279 * ListView.cs: fix NRE produced by backspacing twice in a focused
25282 2006-03-13 Mike Kestner <mkestner@novell.com>
25284 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25286 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25288 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25290 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25291 the allowed size before making programmatic size changes
25293 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25295 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
25296 set, metacity is broken and will still use the emty sizes in
25297 the struct. (Fix for #77089)
25299 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25301 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
25302 WindowExStyles and marked both enums as Flags
25303 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25304 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25305 to match WindowStyles split
25307 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25308 - Updated to match WindowStyles split
25310 - Fixed FosterParent creation, was using ExStyle on the Style field
25311 (This should help with Popup focus issues)
25312 - Updated to match WindowStyles split
25314 2006-03-13 Jackson Harper <jackson@ximian.com>
25316 * MdiWindowManager.cs: Use the system menu height. Fixes some
25317 strange sizing issues.
25319 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25321 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25323 - Scroll to caret after inserting text (#77672)
25324 - Make scroll range one pixel higher, fixes off-by-one error (and
25325 makes underlines visible on the last line)
25327 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25329 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25330 the keyboard state from being stuck with keys in 'pressed' state when
25331 focus is switched away via keyboard
25332 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25333 reset the keyboard if no X11 KeyUp events are expected to come
25334 * X11Structs.cs: Switched type of Visible to bool to match driver
25336 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25339 - Switched caret to be just 1 pixel wide, matches MS and looks less
25341 - Moved caret display 1 pixel down from the top of the control
25343 - InsertCharAtCharet: Update the selection start if moving the caret
25344 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25345 - No longer always creating the caret when the caret methods are
25346 called. Only the actual ShowCaret/HideCaret will do that now
25347 - Only setting caret visible if the owner control has focus
25348 - UpdateView: Added invalidation-shortcut logic for center and right
25349 aligned text. Previously we'd update all according to the left
25350 logic which caused drawing errors. Also fixed height of invalidated
25351 areas, now properly invalidating the whole area (was off-by-one)
25352 - owner_HandleCreated: Always generate the document when the
25353 handle is created; this ensures that
25355 - Fixed situation where caret would disappear under the right
25356 window border, also improved scrolling behaviour on left-
25358 - Fixed right-aligned textboxes to have a border to the
25359 right instead of the caret being under the right border
25361 - Switched from 'nested' to simple visible/not visible tracking
25362 for caret (part of fix for #77671)
25363 - No longer passing through translated FocusIn/FocusOut messages
25364 since we were notifying too often and the wrong windows. Instead
25365 we just notify our focussed window of receiving or loosing focus
25366 * XplatUIWin32.cs: Switched from 'nested' show/hide
25367 counting for caret to simple visible yes/no behaviour (part of
25370 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25372 * Mime.cs: Remove debug code...
25374 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25376 * MimeGenerated.cs: Removed
25377 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25378 and subclasses) from /usr/(local/)share/mime and
25379 $HOME/.local/share/mime.
25381 2006-03-10 Jackson Harper <jackson@ximian.com>
25383 * MdiWindowManager.cs: Recalc the NC area when a window is
25384 maximized/restored so that the menu area is drawn on forms that
25387 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25389 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25390 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25391 us to force a WM_NCCALCRESIZE message being sent. This is needed
25392 for MDI maximizing.
25394 2006-03-10 Jackson Harper <jackson@ximian.com>
25396 * Form.cs: We need to use the ActiveMenu when calculating menu
25398 - Fix nullref when the window manager hasn't been created yet.
25399 * Control.cs: Fix nullref when we try to bring a control to the
25400 front that has no parent.
25401 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25403 - Add a dummy item to the maximized menu so it always has the
25404 correct height. Otherwise when there are no menus we don't get our
25408 2006-03-10 Jackson Harper <jackson@ximian.com>
25410 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25412 * Form.cs: Make the window_state internal so the window managers
25414 - When an MDI child is maximized let its window manager create the
25415 main menu (so it can add its icon).
25416 - Notify the window managers of state changes
25417 - Let the window manager paint its buttons and handle button
25418 clicks on the menu when it is maximized.
25419 * InternalWindowManager.cs: Move the prev_bounds into the mdi
25420 window manager, since tool windows don't use it, only mdi windows.
25421 - Tell the main form that we don't want it to handle NCPAINT
25422 itself to avoid extra painting.
25423 - Handle clicks on a maximized windows menu.
25424 - Handle window state changes
25425 - Handle minimize/maximize clicks correctly by setting the window state.
25426 * MdiWindowManager.cs: Add an icon menu that (the menu you get
25427 when clicking on the forms icon).
25428 - New method to create a forms maximized menu. This is its normal
25430 - Handle window state changes.
25431 - Handle sizing of maximized windows. Maximized windows are just
25432 drawn bigger then the parent visible area. All controls are still
25433 there, they are just outside the visible area (this matches windows).
25434 * MdiClient.cs: No scrollbars when a child window is maximized.
25435 - Let the children windows figure out how big they should be when
25436 sizing maximized windows.
25437 - Implement a version of ArrangeIconicWindows somewhat similar to
25438 Windows version. There are some little differences, but I don't
25439 think any app will rely on the layout of minimized mdi windows.
25441 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25443 * Padding.cs: Several fixes to allow compiling with csc 2.0
25445 2006-03-09 Jackson Harper <jackson@ximian.com>
25448 * MenuItem.cs: Cheap hack so we can add items to the list without
25449 the events being raised. This allows adding mdi items during
25450 drawing. TODO: Should probably find a better time to add the items.
25452 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25454 * ThemeWin32Classic.cs:
25455 - CheckBox_DrawText: Added logic to not wrap if not enough space
25456 is available (Fix for bug #77727)
25457 - RadioButton_DrawText: Added logic not to wrap if not enough
25458 space is available (Fix for bug #77727). Also removed some
25459 duplicate code, DrawString always drawing the regular text
25460 before hitting the if statement.
25462 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25464 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25466 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25468 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25469 * ContainerControl.cs: Partial implementation of some 2.0 scaling
25470 methods. Moved the new 2.0 properties into alphabetical order with
25471 other properties and added MonoTODO tags
25473 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25475 * AutoScaleMode.cs: Added. Fix build.
25477 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25479 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25480 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25481 and was requiring premature handle creation for calls from above
25482 * Form.cs, Control.cs: Removed handle arguments from calls to
25483 CalculateClientRect()
25485 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25487 * ListView.cs (HeaderMouseMove): Fix csc compilation.
25488 drag_column.column_rect is MarshalByRef and can't be used that way
25490 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25492 * AxHost.cs: Added deserialization constructor for
25493 AxHost+State (fixes 77743)
25495 2006-03-09 Mike Kestner <mkestner@novell.com>
25498 - Added column drag reordering for details view.
25499 - fixed behavior when mouse is dragged off column and
25500 AllowColumnReorder is false.
25501 * ColumnHeader.cs: clone the format too in Clone.
25502 * Theme.cs: add DrawListViewHeaderDragDetails method.
25503 * ThemeWin32Classic.cs:
25504 - impl new method for drawing drag column shadows and targets.
25505 - support column offset for details mode in DrawListViewItem.
25507 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25509 * TextControl.cs: Reset the char_count when the document is cleared
25510 (Fixes bug reported on mono-winforms mailing list)
25512 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25514 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25515 of calling base we simply process the key ourselves, since both
25516 DefWindowProc and the handled method would set m.Result.
25519 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25521 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25522 method also moves the window; instead implemented a copy of
25523 Control.ScaleCore (Part of fix for #77456)
25525 - Created new CreateGraphicsInternal method to allow providing
25526 a graphics context when no handle is created without triggering
25527 handle creation. (Part of fix for #77456)
25528 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25530 - Switched Constructor to require TextBoxBase instead of Control (to
25531 allow uncast access to CreateGraphicsInternal)
25532 - Safeguarded use of owner.Handle property. No longer accessing it
25533 unless the handle is already created.
25534 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25535 - Now triggering a recalc when owning control becomes visible
25536 * TextBox.cs, RichTextBox.cs: Switched to use new internal
25537 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25538 premature handle creation (Part of fix for #77456)
25540 - We now only destroy our double-buffering buffers when the
25541 control is resized or disposed, but not when visibility
25542 changes. (The code even re-created them twice every time)
25543 - Now requiring a redraw of the buffer on visibility changes
25544 (fixes bug 77654 part 2)
25545 - Not passing OnParentVisibleChanged up unless the control
25547 - CanFocus: Fixed to match MS documentation
25548 - Focus: Fixed to return actual focus state and to check if
25549 setting focus is legal before setting it
25551 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
25553 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25554 when to draw focus rectangle by looking at parent focus and
25555 selected state instead. This fixes TabPages on Linux sometimes
25556 having none or multiple focus rectangles.
25557 * XplatUIX11.cs (SetFocus):
25558 - Don't set the focus if the same window already has focus
25559 - Use SendMessage instead of PostMessage (like it's Win32
25560 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25561 to match MS behaviour
25562 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25563 are not selectable.
25565 2006-03-07 Jackson Harper <jackson@ximian.com>
25567 * PictureBox.cs: Revert line I accidently committed last week.
25569 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
25572 - Added new IsRecreating and ParentIsRecreating properties to
25573 allow testing if RecreateHandle has been called on ourselves
25574 or one of our parents
25575 - WndProc(WM_DESTROY): If our control handle is being recreated
25576 we immediately need to create the handle when receiving the
25577 destroy, that way our child windows find a valid parent handle
25578 when they themselves are being recreated upon WM_DESTROY receipt
25579 (fix for bug #77654 part 1)
25581 - DestroyWindow: WM_DESTROY must be sent to our own window before
25582 notifying any child windows. MS documents that child windows
25583 are still valid when WM_DESTROY is received. (Control now relies on
25585 - Added some fine-grain debug options
25587 2006-03-06 Jackson Harper <jackson@ximian.com>
25589 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25590 box and base calculations off this.
25591 * MdiChildContext.cs:
25592 * MdiWindowManager.cs: Don't need to ensure scrollbars here
25595 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
25597 * Splitter.cs: In situations where the affected control is added
25598 to the parent's control list after the splitter, we would not
25599 populate affected. Now we try populating it on mousedown, if
25600 it's not already set, and force it to be re-set whenever our
25603 2006-03-03 Matt Hargett <matt@use.net>
25605 * Control.cs: implement Control.Padding
25606 * Padding.cs: -Padding.All returns -1 when constructing with the
25607 implicit default ctor
25608 -Padding.ToString() matches MS.NET
25609 * ContainerControl.cs: implement
25610 ContainerControl.AutoScaleDimensions
25611 * ListControl.cs: implement ListControl.FormattingEnabled
25612 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25614 * TabPage.cs: Implement UseVisualStyleBackColor.
25615 * PictureBox.cs: Implement PictureBox.InitialImage.
25617 2006-03-03 Mike Kestner <mkestner@novell.com>
25619 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25620 event declarations to proxy to base event.
25621 * ListViewItem.cs: update to use ItemControl.
25622 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25623 * ThemeWin32Classic.cs: update to new ListView theme API and fix
25624 column header label rendering for 0 width columns.
25626 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
25628 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25629 that causes the control to be created. Fixes #77476.
25631 2006-03-02 Jackson Harper <jackson@ximian.com>
25633 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25636 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
25638 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25639 passed in for the EventArgs (fixes #77690)
25641 2006-03-01 Jackson Harper <jackson@ximian.com>
25643 * ScrollBar.cs: Refresh afterbeing resized.
25645 2006-02-28 Mike Kestner <mkestner@novell.com>
25647 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25648 Clean up a tracker compile warning.
25649 * MenuItem.cs: add internal PerformPopup method.
25652 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25654 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25655 implicit expose) when the text is set to null
25657 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25659 * RichTextBox.cs (FlushText): When newline is true, we always
25660 need to split the line, even if no text is on it and we may
25661 never eat newlines. (Fixes #77669)
25663 2006-02-28 Mike Kestner <mkestner@novell.com>
25665 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
25666 and set Selected instead.
25667 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
25670 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25672 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25674 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
25677 - Got rid of the panel. All controls are now directly added to
25679 - It is now possible to set a font with the Font property
25680 - MinSize and MaxSize property do now what they should
25681 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25682 - Searching and selecting a font with the font textbox works now,
25683 the same applies to the style and size textbox
25684 - Draw the correct 3D border in the example panel
25685 - Fixed a little mem leak (unused fonts didn't get disposed)
25686 - Many other internal updates/rewrites...
25689 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25692 - InsertRTFFromStream: Added 'number of characters inserted' argument
25693 - set_SelectedRTF: Now using the number of characters to calculate
25694 the new location for the selection and cursor (x/y cannot be used
25695 due to potentially already wrapped text)
25697 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25699 * TextControl.cs: Added property and implemented means to allow
25700 disabling recalculation of a document (can be used to speed up
25701 multiple inserts and is needed to make RTF inserts predictable, see
25703 * RichTextBox.cs: Using the new NoRecalc property of Document to
25704 keep x/y insert locations predictable. Also makes it faster inserting
25705 large chunks of RTF
25707 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25709 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25710 it's easier for a child control to handle the other messages without
25711 having to duplicate the special functionality
25713 - WndProc: Removed calling base handler for WM_KEYDOWN and added
25714 code to handle processing the key ourselves, in order to get
25715 access to the result of KeyEventArgs.Handled. We now only call
25716 ProcessKey if they key hasn't been handled already. Fixes #77526.
25717 - set_Text: If null or empty string is given, just clear the
25718 document. Fixes part of #77526
25720 2006-02-27 Jackson Harper <jackson@ximian.com>
25722 * SizeGrip.cs: Paint the background color before painting the grip
25723 so things look right.
25724 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25726 2006-02-27 Mike Kestner <mkestner@novell.com>
25729 - Restructure layout and invalidation model to remove a ton of
25730 flicker from the control and speed up performance in general.
25731 - Add manual column resize, flickers like crazy, but I already have
25732 some ideas on how I'll fix that. (#76822)
25733 - Merge the three Icon-based views into a single layout method.
25734 - Move item selection interaction logic from the item since
25735 interaction with the collections is more appropriate to the view.
25736 - Deselection on non-item clicks.
25738 - Encapsulate most of the layout. Add some internal props to trigger
25739 layout. Move to a model where Items invalidate themselves instead
25740 of just invalidating the whole control every time something changes.
25741 - Invalidate on Text/Caption changes.
25742 - switch to an offset based layout model to avoid having to absolute
25743 position every element on item moves.
25744 - correct checkbox layout to conform to MS layout.
25745 * ThemeWin32Classic.cs:
25746 - refactor some column header drawing code.
25747 - fix string justification for column headers (#76821)
25748 - make SmallIcon labels top justified for compat with MS impl.
25749 * ThemeClearlooks.cs:
25750 - adjust to new ListViewItem internal checkbox bounds api.
25752 2006-02-27 Jackson Harper <jackson@ximian.com>
25754 * Control.cs: Change where implicit controls fall in the zorder.
25755 They are now on top of all children.
25756 - Synced AddImplicit code with Add
25757 - Removed unused enumerator.
25758 * SizeGrip.cs: Remove the TODO as its been TODONE.
25760 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25762 * TextControl.cs(Insert): Combine the last lines unless the insertion
25763 string ends with \n\n, otherwise we leave one line too many (Fixes
25764 something I noticed with the testapp for #77526; the bug itself was
25765 already fixed in the previous checkin)
25767 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25770 - SelectionColor and SelectionFont methods no longer set absolute
25771 styles. Instead, the keep font or color respectively (This
25772 resolves a long-standing FIXME in the code)
25773 - When flushing RTF text, the insert code now considers text trailing
25774 behind the insertion point (Fixes the bug where when replacing
25775 the selected text via SelectedRTF the remainder of the line behind
25776 the selection would stay on the first insertion line)
25778 - AppendText now updates the selection points after inserting text
25779 - AppendText now ensures that the last tag (sometimes 0-length) of
25780 the document is used for the style information (Fixes part of
25783 - Created new FontDefiniton class to allow describing partial style
25785 - StreamLine() now takes a lines argument, to allow it to decide
25786 whether an encountered zero-length tag is the last in the document
25787 (which must be kept to not loose the font/color contained in it,
25789 - Created Combine() and Split() methods for Marker structs, to
25790 support marker updates due to reformatted documents (soft line
25792 - Implemented Document.CaretTag setter
25793 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25794 of the last line (Not the cause, but also exposed by bug #77220)
25795 - Added LineTag argument to InsertString method, to allow callers
25796 to force a certain tag to be used (required to force use of the
25797 trailing zero-length tag of a document)
25798 - Now updating markers in Combine(), to avoid stale tag markers
25799 - Added some method descriptions to aid maintenance
25800 - Implemented new FormatText concept, allowing additive/subtractive
25801 formatting by only specifying the components that are to be
25802 changed. This was needed for resolving the RTB.SelectedColor/
25803 RTB.SelectedFont fixmes
25804 - Added Break() support method to allow breaking up linetags (used
25805 for partial formatting)
25806 - Added GenerateTextFormat() method. It is used for partial
25807 formatting and allows to generate a full font/color from given
25808 attributes and an existing tag.
25810 2006-02-26 Jackson Harper <jackson@ximian.com>
25812 * XplatUIX11.cs: Use the correct caption height.
25813 - Translate hittest coordinates to screen coords to match MS.
25814 * XplatUIWin32.cs: When we create MDI windows we need to reset
25815 some of the style flags, so we get a nice blank window, and can
25816 draw all the decorations ourselves.
25817 - Set a clipping rectangle on the non client paint event, the
25818 window manager drawing code needs one.
25819 * Form.cs: The window manager needs to know when the window state
25821 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25822 don't need to factor in border and title sizes in these
25823 methods. TODO: Remove the args and fix the call points.
25824 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25826 - Let the driver set the cursors.
25827 - Improve active window handling
25828 - Correct sizes for title bars and buttons.
25829 - Match MS drawing better
25830 * MdiWindowManager.cs: We don't need to handle border style
25831 updates specially anymore.
25832 - Check for scrollbars when windows are done moving
25833 - Handle Active properly.
25834 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25835 correctly. I am spewing the exception though, so we don't hide the
25838 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
25840 * DataGridViewRowPostPaintEventArgs.cs,
25841 DataGridViewCellPaintingEventArgs.cs,
25842 DataGridViewRowCollection.cs,
25843 DataGridViewRowPrePaintEventArgs.cs,
25844 DataGridViewCell.cs: Clear a few warnings and implement a few
25845 exceptions that should be thrown.
25847 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25849 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25850 'inheriting' our parent's (non-default) cursor. (Part of
25851 the fix for #77479)
25853 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25855 * XplatUIX11.cs: Fixed cast to make csc happy
25857 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25859 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25860 it's for the client area (part of fix for #77479 and needed
25861 for MDI window cursor handling)
25863 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25864 the appropriate default cursors and also passing the message
25865 up the parent chain
25866 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25867 for non-client areas
25869 2006-02-15 Jackson Harper <jackson@ximian.com>
25871 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25872 is a real MDI window
25874 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
25876 * X11DesktopColors.cs: Instead of checking the desktop session
25877 string for "KDE" check if it starts with "KDE"
25879 2006-02-10 Jackson Harper <jackson@ximian.com>
25881 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25884 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25886 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25889 - Got rid of the panel. All controls are now directly added to
25891 - Changed to mono coding style
25893 2006-02-10 Jackson Harper <jackson@ximian.com>
25895 * InternalWindowManager.cs: We don't need the set visibility to
25896 false hack anymore now that peter has written beautiful shutdown
25899 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
25901 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25902 where already explicitly destroyed
25904 2006-02-10 Jackson Harper <jackson@ximian.com>
25906 * MdiClient.cs: Handle the case where windows are too high or to
25907 the left and we need scrollbars.
25909 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25911 * MimeIcon.cs: Added some icons
25914 - Got rid of the panel. All controls are now directly added to
25916 - Changed to mono coding style
25917 - On Linux "My Computer" and "My Network" will now show some
25918 more usefull information. A new class, MasterMount, gathers
25919 this information from /proc/mount. Updated MWFFileView to make
25920 use of this information
25921 - Fixed a bug that caused FileDialog to crash when
25922 ".recently_used" file had a zero size
25923 - FilterIndex does now what it should
25925 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25928 2006-02-09 Jackson Harper <jackson@ximian.com>
25930 * ComboBox.cs: Don't touch if null.
25932 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
25934 * Cursor.cs: 64bit safeness fix
25935 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25937 2006-02-09 Jackson Harper <jackson@ximian.com>
25939 * Form.cs: If a form is made into an MDI form update the styles so
25940 all the props can get set correctly.
25941 - Kill the mdi_container when we dont need it anymore.
25942 * InternalWindowManager.cs: Add missing NOT
25944 2006-02-08 Jackson Harper <jackson@ximian.com>
25946 * InternalWindowManager.cs: Respek clipping when drawing MDi
25949 2006-02-08 Jackson Harper <jackson@ximian.com>
25951 * Hwnd.cs: Add bits to track non client expose events.
25952 * XplatUIX11.cs: Track non client expose events on the hwnd. This
25953 gives us a proper invalid rect and will allow for some nice
25954 optimizations with NC client drawing
25955 - MDI windows are children windows, so move their style handling
25956 into the child window block.
25957 * InternalWindowManager.cs: Remove a state reset that was
25958 getting invoked at the wrong time. Fixes managed windows getting
25959 into a 'stuck' captured state.
25961 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25963 * TextControl.cs (Document.ctor): Now initializing
25964 selection_anchor. Fixes #77493
25966 2006-02-07 Jackson Harper <jackson@ximian.com>
25968 * TrackBar.cs: The increment/decrements were backwards.
25970 2006-02-07 Mike Kestner <mkestner@novell.com>
25972 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25973 to the instance itself.
25975 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25977 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25978 on ulongs and pointers, the size differs between 32bit and 64bit
25981 2006-02-07 Mike Kestner <mkestner@novell.com>
25983 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25984 for 64 bit platforms to work around a metacity bug.
25986 2006-02-07 Jackson Harper <jackson@ximian.com>
25988 * TrackBar.cs: Process the input keys we need, and hookup to
25989 KeyDown instead of using WndProc, so we get key messages.
25991 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25993 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25995 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25996 we need to translate the XdndVersion atoms array before sending it
25998 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26001 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26002 number of bits for the property, not the number of bytes. The
26003 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26004 but would not crash since it specified 8 bits instead of 4 bits)
26005 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26006 defined as XID -> long in the C headers)
26007 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
26008 references since those are now IntPtr to begin with
26009 - Switched all Atom.XXX 'int' casts to IntPtr casts
26010 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26011 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26012 - Added XChangeActivePointerGrab DllImport (for X11DnD)
26014 - Changed 'int' type for Atoms in XEvent structures to IntPtr
26015 - Changed atom in HoverStruct to be IntPtr
26017 - Removed local DllImports, switched code to use those from XplatUIX11
26018 - Removed/fixed casts related to the switch of Atom to be a IntPtr
26020 2006-02-06 Mike Kestner <mkestner@novell.com>
26022 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
26023 method signatures in the import region. There may still be some
26024 lingering struct marshaling issues, as I didn't drill down into those.
26027 2006-02-06 Jackson Harper <jackson@ximian.com>
26029 * ComboBox.cs: Dont manually set the top_item, this is computed
26030 when the scrollbar position is set.
26032 2006-02-06 Mike Kestner <mkestner@novell.com>
26034 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26035 startup crashes on amd64. There's other fixes needed. All pinvoke
26036 usage of Atom needs to be mapped to IntPtr for example. And there are
26037 likely other int/long issues to be addressed.
26039 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
26041 * FileDialog.cs: One more...
26043 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26045 * FileDialog.cs: Next try
26047 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26049 * FileDialog.cs: First part of fix for #77464
26051 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26053 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26054 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26055 AcceptButton border drawing.
26057 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26059 * Form.cs: Moved positioning of form after auto scaling is applied,
26060 otherwise it would possibly use wrong form size.
26062 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26064 * Control.cs (RecreateHandle): No need to re-create any child
26065 controls, the child windows will get destroyed automatically by
26066 the windowing system or driver, and re-created when the handle
26067 is being accessed the first time. Fixes #77456
26068 * Form.cs: No longer setting the form to closing if the handle is
26069 being recreated. This seems like the right thing to do, don't
26070 have a bug or testcase for this, though.
26072 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26074 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
26075 controls to avoid unwanted side effects
26077 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26080 - ScaleCore needs to scale the bounds, not the ClientSize of the
26081 control. Fixes #77416.
26082 - DefaultSize is 0,0 for control
26084 - DefaultSize is 100, 20
26085 - SetBoundsCore: Now enforcing the height, no matter if the provided
26086 height is more or less than the preferred one, as long as AutoSize
26088 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
26090 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26093 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
26094 call unless both performLayout is true *and* we have a pending
26096 - ResumeLayout: MS does not completely nest Suspend and Resume,
26097 they bottom out at 0, fixed our code to match that.
26098 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
26099 SetBoundsCore, we were updating even when we shouldn't. This fixes
26100 swf-anchors mis-anchoring when resizing the app fast and lots.
26101 - UpdateDistances: Now only setting the left and top distance if
26102 we have a parent and are not suspended, this is based on
26103 a suggestion by Don Edvaldson in bug #77355.
26104 - OnVisibleChanged: Fixed logic when to create the control. We may
26105 not create the control if we have no parent or if it's not visible;
26106 switched to using Visible property instead of is_visible field
26107 since the property also considers parent states. This fixes a bug
26108 when starting Paint.Net
26110 2006-02-02 Jackson Harper <jackson@ximian.com>
26112 * Form.cs: If the forms handle hasn't been created yet don't call
26113 into xplatui to make it top most, just set the topmost flag on the
26114 form in CreateParams
26115 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
26117 2006-02-01 Jackson Harper <jackson@ximian.com>
26119 * ScrollableControl.cs: Refactored the Recalculate method a
26120 little, this wasn't handling all the variants of bottom and right
26121 bars needed to be added and added/removed based on their
26122 counterparts being added/removed (which changes the drawable
26123 size). Also we special case client widths and heights of 0 and
26124 don't add the scrollbar for those.
26126 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
26129 - Added method to get AbsoluteGeometry(); currently unused, but might
26130 be used in the future, if we try again to figure out toplevel
26131 coordinates with some more crappy window managers
26132 - Added FrameExtents() method to retrieve the WM set decoration size
26133 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
26134 to deal with at least KDE, FVWM and metacity (Fixes #77092)
26136 - Added whacky_wm tracking var for metacity
26137 - Added logic to have default menu height if the actual menu height
26138 has not yet been calculated (part of fix for #77426)
26139 * Form.cs: Keep track whether client size has been set and re-set
26140 it if a menu is added/removed afterwards (Fixes #77426)
26142 2006-01-31 Jackson Harper <jackson@ximian.com>
26144 * Control.cs: When a new Site is set on the component attempt to
26145 pull the AmbientProperties from it.
26147 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
26149 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
26150 in the background of the owning form. Fixes #77332
26152 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26154 * MimeIcon.cs: Fix for #77409
26156 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26158 * XplatUIX11GTK.cs: Initial import
26160 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
26162 * FixedSizeTextBox: fixes class signature
26164 2006-01-30 Jackson Harper <jackson@ximian.com>
26166 * FixedSizeTextBox.cs: New internal class that represents a
26167 textBox that will not be scaled.
26170 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26173 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26175 * XplatUIX11.cs: Retrieve default screen number instead of
26176 assuming 0. Attempted fix for #77318
26178 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26181 - GetWindowPos: When a window is parented by FosterParent, use
26182 the desktop instead of FosterParent as the base to get coordinates
26183 - CreateWindow: Don't make FosterParent the parent window for Popups
26184 if we don't want a taskbar entry, Popups automatically don't get one
26185 * Hwnd.cs: Need to call remove to actually remove the key from the
26188 2006-01-30 Mike Kestner <mkestner@novell.com>
26190 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26192 2006-01-30 Jackson Harper <jackson@ximian.com>
26195 * TreeNode.cs: Raise events no matter how the treenode is
26196 checked. Patch by Don Edvalson.
26198 2006-01-30 Jackson Harper <jackson@ximian.com>
26200 * TreeNode.cs: Signature fix.
26202 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
26204 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26206 2006-01-20 Mike Kestner <mkestner@novell.com>
26208 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26209 event forwarding when menus are active.
26210 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
26211 Most of the patch is pdb's with a little rework.
26213 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26215 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
26216 Removed GetMenuDC and ReleaseMenuDC methods; replaced
26217 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26218 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26219 * InternalWindowManager.cs: Added use of PaintEventStart/End to
26220 handling of WM_NCPAINT message, now passing the PaintEventArgs to
26221 the PaintWindowDecorations method
26222 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26223 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26224 * MenuAPI.cs: Made tracker window invisible
26226 - Removed GetMenuDC and ReleaseMenuDC methods
26227 - Implemented the client=false path for PaintEventStart and
26230 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26232 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26233 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26236 - MaximizeBox, MinimizeBox: Recreate the handle when setting
26238 - CreateParams: Reworked the styles to match MS look'n'feel,
26239 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26240 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26242 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26244 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
26245 window is not mapped, since otherwise every form that's being
26246 created is considered minimized, which is wrong.
26247 * Form.cs: Catching the exception and returning our internal value
26250 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26252 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26253 SetWindowMinMax() to have means to tell the driver about the minimum,
26254 maximum and maximized state window sizes. (Part of the fix for #76485)
26256 - Implemented tracking of minimum and maximum window size, now calling
26257 new SetWindowMinMax() driver method to tell the driver (Part of the
26259 - Finished handling of WM_GETMINMAXINFO method, now setting all values
26260 (Completes fix for #76485)
26261 - Calling new SetWindowMinMax driver method when the handle for a
26262 form is created, to make sure the driver knows about it even if
26263 the values have been set before the window was created
26264 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26265 to avoid messing up our anchoring calculations (partial fix
26267 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26269 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26270 - Improved GetWindowState() to detect 'Minimized' state on Metacity
26271 (and presumably other freedesktop.org compliant WMs). Left the
26272 assumption unmapped=minimized, needed for SetVisible to work.
26273 - Now setting the window state when creating windows
26274 - Fixed SetVisible to consider/set the window state when mapping
26275 a Form. We cannot set the state before it's mapped, and we cannot
26276 use Form.WindowState once it's mapped (since it would ask the
26277 driver and get 'normal'. Therefore, we grab the state before
26278 mapping, map, and then set state.
26279 - Implmemented SetWindowMinMax method; Metacity does not seem to
26280 honor the ZoomHints, though.
26282 - Removed MINMAXINFO (moved to XplatUIStructs)
26283 - Added SetWindowMinMax stub (on Win32 the only way to set that
26284 information is in response to the WM_GETMINMAXINFO message, which
26285 is handled in Form.cs)
26286 - Added logic to SetVisible to set the proper window state when a
26287 form is made visible (fixes #75720)
26289 2006-01-26 Jackson Harper <jackson@ximian.com>
26291 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26292 same way we handle them with Invoke.
26294 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
26297 - Added tracking of window state so CreateParams can return
26298 the appropriate style
26299 - Moved setting of WS_CAPTION style in CreateParams to allow
26300 styles without caption
26301 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
26302 control if the TextBox property is accessed. Fixes #77345
26304 - get_Created: now uses is_disposed and is_created to determine
26305 return value (suggested by Jackson)
26306 - CreateHandle: No longer exits if the handle is being recreated
26307 - RecreateHandle: If the handle is not yet created call the
26308 appropriate method to create either control or handle. If the
26309 control is already created CreateHandle will simply exit instead
26310 of just creating the handle
26311 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26312 now SendMessage WM_DESTROY directly to the control when DestroyWindow
26315 - When DestroyWindow is called, instead of waiting for the
26316 DestroyNotification from X11, we directly post it to the WndProc
26317 and immediately dispose the hwnd object.
26318 Same applies to DestroyChildWindows, and this obsoletes the
26319 expose_pending tracking. Contrary to Win32 behaviour we destroy our
26320 child windows before our own, to avoid X11 errors.
26321 - Removed the direct sending of WM_PAINT on UpdateWindow
26323 - Reworked DoEvents and GetMessage to allow access to internal queue
26324 even when trying non-blocking access to the queue. Fixes #77335.
26325 Based on a patch suggestion by Don Edvalson. The new private
26326 GetMessage can now also be used as a backend for a PeekMessage
26328 * XplatUI.cs: Improved debug output for CreateWindow
26330 2006-01-25 Jackson Harper <jackson@ximian.com>
26332 * Help.cs: Allow param to be null. Patch by Don Edvalson.
26334 2006-01-24 Jackson Harper <jackson@ximian.com>
26336 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26337 when we have a MaxDropItems lower then the selected index.
26339 2006-01-24 Jackson Harper <jackson@ximian.com>
26341 * Control.cs: Don't allow selection of non visible controls, allow
26342 selection of controls without parents.
26344 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26346 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26347 * DataGridDrawingLogic.cs: Add editing row only when is necessary
26349 2006-01-23 Jackson Harper <jackson@ximian.com>
26351 * UpDownBase.cs: Make the textbox handle all the selection and
26352 tabbing. This fixes tabing to updown controls.
26354 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26356 * TextBoxBase.cs: fixes exception thown the object was null
26358 2006-01-23 Jackson Harper <jackson@ximian.com>
26360 * ButtonBase.cs: Just use the base CreateParams. They set
26361 visibility and enabled correctly.
26364 * MonthCalendar.cs: Lets let the base set as much of the
26365 createparams as possible so we don't have duplicate code all over
26368 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
26370 * ThemeGtk.cs: Added TrackBar and some experimental code to
26371 get double buffering back
26373 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
26375 * DataGrid.cs: Allows row number set internally higher than the last
26376 when creating a new row. Restores the editing functionality.
26378 2006-01-20 Mike Kestner <mkestner@novell.com>
26380 * MimeIcon.cs: delay Image creation until the icons are accessed
26381 instead of creating 190 scaled images on GnomeHandler startup.
26383 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26385 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26386 first call base before processing the event. Fixes #77279
26388 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26390 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26391 that the stride for the GDI bitmap would match the stride of
26394 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
26396 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26398 2006-01-19 Jackson Harper <jackson@ximian.com>
26400 * ComboBox.cs: Hookup the text controls keydown event so we get
26401 those when the text control has the focus.
26403 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26405 * Label.cs: Now using the base events instead of defining new ones;
26406 this allows us to just call the base properties without having to
26407 duplicate all base property logic
26409 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26411 * Label.cs: A label by default is not a tabstop (Fixes one of our
26412 failing nunit tests)
26414 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26416 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26417 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26419 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26421 * Cursor.cs: Reimplemented creating cursor bitmaps without using
26422 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26425 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
26426 constructor creates images that can't be saved. Part of the fix
26428 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26429 - SetWindowState: Switched ShowWindow flags (part of an upcoming
26430 bug fix for handling window state in forms properly)
26432 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26434 * ThemeGtk.cs: Simplify ScrollBar drawing
26436 2006-01-18 Jackson Harper <jackson@ximian.com>
26438 * Splitter.cs: Set the default dock style for the splitter control
26439 in the constructor.
26441 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26443 * ThemeGtk.cs: Corrected StateType and ShadowType for
26446 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26448 * Control.cs: Make use of Theme.DoubleBufferingSupported
26450 - Added drawing for flat style buttons
26451 - Added ScrollBar drawing
26453 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26455 * ThemeClearlooks.cs: Removed some unneeded code.
26456 * ThemeGtk.cs: First part of ThemeGtk enhancements.
26458 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26460 * LinkLabel.cs: We need to update the hover drawing when
26461 leaving the control as well.
26463 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
26465 * DataGrid.cs: Clicking on non empty areas in the columns
26466 area was giving an exception
26468 2006-01-17 Jackson Harper <jackson@ximian.com>
26470 * ThemeWin32Classic.cs:
26471 * ListView.cs: Do not draw/clip the headers when the header style
26474 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26476 * DataGrid.cs: Fixes 77260
26478 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26480 * DataGrid.cs: Clicking on a column on a empty grid was giving
26483 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26485 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26486 or any keypress will crash the grid.
26488 2006-01-17 Mike Kestner <mkestner@novell.com>
26490 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26491 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
26492 invisible/previously-visible items.
26495 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
26497 * ThemeClearlooks.cs:
26498 - Added CL_Draw_Button method; now other theme controls that are
26499 not derived from button or do not have a button can draw buttons
26501 - Updated ComboBox drawing
26502 - Beautified RadioButton drawing
26503 - Corrected drawing of bottom and left tabs
26504 - Beautified DateTimePicker and MonthCalendar
26505 - Added CPDrawButton and CPDrawRadioButton
26507 2006-01-16 Jackson Harper <jackson@ximian.com>
26509 * ComboBox.cs: Set the initial value of the scrollbar to the
26510 current index. Reduce the numbers of refreshs and IndexOfs called.
26512 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
26514 * FileDialog.cs: When the file listview is focused hitting the
26515 backspace key moves the fileview to the parent directory
26517 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26520 - Added RecreateHandle call when changing taskbar visibility to
26521 trigger reparenting in Win32 driver (Fixes #75719)
26522 - If a window has minimize or maximize buttons, it cannot have
26525 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26526 the toplevel form with FosterParent (A toolwindow not on the
26527 taskbar) (Fixes #75719)
26528 - Made FosterParent a toolwindow
26530 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26532 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26534 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26536 * ToolTip.cs: If SetToolTip is called from a control and the mouse
26537 is currently over that control, make sure that tooltip_window.Text
26540 2006-01-13 Mike Kestner <mkestner@novell.com>
26542 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26544 2006-01-13 Jackson Harper <jackson@ximian.com>
26546 * TreeView.cs: On MS GetNodeAt never actually factors in the X
26547 value passed. Also redraw the selected node when we recieve
26548 focus, so tabbing between trees works correctly.
26550 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26552 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26553 ~/.gconf/%gconf-tree.xml, so use
26554 .gconf/desktop/gnome/interface/%gconf.xml
26556 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26558 * TextControl.cs: Draw text in gray if control is disabled
26560 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26562 * TreeView.cs: Draw the focus rectangle outside the highlight, to
26563 make sure it's always visible. Fixes #76680.
26565 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26567 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26569 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
26571 * PageSetupDialog.cs: Added.
26572 * PrintDialog.cs: Attributes.
26573 * PrintPreviewControl.cs: Updates.
26574 * PrintPreviewDialog.cs: Updates.
26576 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26578 * Control.cs: Undid my selection check fix, since it's not needed
26580 - Now considering the presence of hscroll/vscroll when sizing
26581 vscroll/hscroll respectively. Fixed bug #77077
26582 - Added Left/Up/Down/Right to IsInputKey list to prevent
26583 ContainerControl from stealing them. This fixes what I broke
26584 with my last checkin.
26586 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26588 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26589 I finally understand how the property can be set without a setter :-)
26591 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26594 - Switched RunLoop to use static Message.Create to create a
26596 - Added PreProcessMessage call in runloop for keyboard events; this
26597 is part of the fix for #77219, I overlooked this originally in the
26598 MSDN doc for PreProcessMessage
26600 - Removed call to PreProcessMessage from handling of keyboard
26601 messages; it's supposed to be done in the message pump
26602 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26603 per MSDN documentation.
26604 - IsInputChar: All chars are input chars by default; removed the
26605 parent calling chain, MS does not document that
26606 - PreProcessMessage: If IsInputChar is true, we want to return false
26607 to allow dispatching of the message
26608 - When selecting the next control, now also check that we're not
26609 selecting ourselves again and therefore return a false positive.
26611 - Tried to match return values for IsInputKey and ProcessDialogKey
26612 to what MS returns; moved processing of our special keys outside
26613 ProcessDialogKey since MS does not seem to return true on those.
26614 - Moved code that previously was in ProcessDialogKey into new private
26615 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26616 - Reworked handling of WM_CHAR to not have to duplicate code from
26617 Control.cs anymore, instead we simply call down to base.
26619 2006-01-12 Jackson Harper <jackson@ximian.com>
26621 * ComboBox.cs: We always need to refresh the text area when
26622 EndUpdate is called. Fixes the combobox in the file dialog.
26623 * Control.cs: Don't create the creator_thread until the controls
26624 handle is created. Also in InvokeRequired we check if the
26625 creator_thread is null. This gives the effect of InvokeRequired
26626 returning true if the controls handle is not created yet, and
26629 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26632 - Added StartLoop() driver method. This is used to allow drivers to
26633 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26634 loop for a particular thread
26635 - Added EndLoop() driver method. This is called once the message
26636 pump for the thread is shut down
26637 - Added SupportsTransparency method to allow the driver to indicate
26638 opacity support for windows
26640 - Removed TODO attribute, completed AllowTransparency property
26641 - Added documented logic to Opacity
26642 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26643 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26644 versions of CompatibleTextRendering
26645 * X11Structs.cs: Added opacity atom to our atom enumeration
26646 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26647 of a form might be set before it's reparented by the WM, and we need
26648 the opacity value without calling up to Form)
26649 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
26650 SupportsTransparency() driver methods
26651 * Application.cs: Now calling StartLoop and EndLoop driver methods
26653 - Added opacity atom registration
26654 - Added StartLoop()/EndLoop() methods. They're empty right now but
26655 will need to get implemented when we switch to a per-thread queue
26656 - Implemented SupportsTransparency() method
26657 - Implemented SetWindowTransparency() method
26658 - Added support for setting the opacity value when a window is
26659 reparented (since the opacity needs to be set on the WM frame)
26660 * XplatUIOSX.cs, XplatUIWin32.cs:
26661 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26663 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26665 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26667 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26669 * FileDialog.cs: Added ToolTip for MWFFileView
26670 * MimeIcon.cs: Rewrote GnomeHandler.
26671 - Get currently used gnome icon theme from
26672 ($HOME)/.gconf/%gconf-tree.xml
26673 - Make use of inherited icon themes
26674 - Support SVG icon themes like Tango via librsvg
26676 2006-01-12 Miguel de Icaza <miguel@novell.com>
26678 Revert's Jackson's revert which broke 2.0 builds. Fix both
26681 * Application.cs: Move the use_compatible_text_rendering outside
26682 the NET_2_0 define. If we ever need to use the
26683 use_compatible_text_rendering on the individual controls they will
26684 access the variable from the common shared code paths.
26686 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26689 - Added more granular debug options
26690 - Added method to print both window text and id
26691 - Switched debug output to use new Window() debug method
26692 - Added IsEnabled() driver method
26693 - Added EnableWindow() driver method
26695 - Removed end_modal; no longer needed, new loop handles termination
26696 via 'closing' variable
26697 - If form is modal, setting DialogResult will now initiate loop
26698 termination via 'closing' variable
26699 - Added support for is_enabled/WS_DISABLED to CreateParams
26700 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26702 - Removed code that's now in RunLoop from ShowDialog()
26703 - Added various documented sanity checks to ShowDialog()
26704 - Added handling of WM_DESTROY message; we set 'closing' on getting
26705 the message to indicate the message pump to terminate
26706 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26707 send by the Application.ExitThread method. (We send the message
26708 to destroy the window after all other events have been
26709 processed through the queue, instead of destroying the handle
26711 - Moved code from Close() method to WM_CLOSE handler; added logic
26712 to only send close-related events if the form is not displayed
26714 * Splitter.cs (..ctor): Fixed typo in resource name
26716 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26718 - set_Cursor: Now only setting calling into XplatUI if the handle for
26719 the control is already created; this avoids implict handle creation
26720 or crashes if it's not created
26721 - set_Enabled: Now setting the enabled state via the new driver method
26722 instead of just tracking it
26723 - CreateParams: Added logic to set WS_DISABLED based on enabled state
26724 - CreateControl: Reordered event firing and method calls to more
26725 closely fire events in the order MS does. Now setting the
26726 enabled state in the driver when creating the control.
26727 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26729 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26730 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
26731 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26733 - Added tracking of window enabled state (get_Enabled/set_Enabled)
26734 - Added EnabledHwnd property to easily allow a driver to find the
26735 handle of the first enabled window in the parent chain (this is
26736 used by drivers to pass up input events of disabled windows)
26737 * XplatUIDriver.cs: Added IsEnabled() method
26739 - Removed crude and obsolete exiting tracking variable
26740 - Removed internal ModalRun(); replaced by RunLoop()
26741 - Implemented private CloseForms() method to allow closing all
26742 windows owned by a particular (or all) threads
26743 - Exit() now properly closes all windows without forcing the message
26745 - Removed obsolete InternalExit() method
26746 - Changed Run() methods to use new RunLoop() message pump
26747 - Implemented new RunLoop() method for both modal and non-modal forms
26749 - get_CreateParams: Added setting of WS_DISABLED
26750 - Simplified ShowDialog(); now all the work is done in RunLoop(),
26751 invoked via Form.ShowDialog()
26752 * NativeWindow.cs: We don't remove the window from the collection when
26753 the handle is destroyed; there might still be messages for it in the
26754 queue (mainly the resulting WM_DESTROY); instead it will be removed
26755 when Control calls InvalidateHandle in the WM_DESTROY handler
26757 - CreateWindow: Added logic to handle the WS_DISABLED window style
26758 - EnableWindow: Implemented based on Hwnd.Enabled
26759 - GetMessage: Reset PostQuitState so the method can be called again
26760 - Implemented support for disabled windows (passing messages to the
26761 first enabled parent) in handling all input messages
26762 - Added optimizations for handling Expose events
26763 - Implemeted new driver method IsEnabled()
26764 - Now always resetting paint pending tracking vars when we start paint
26765 - Re-implemented UpdateWindow via just sending a WM_PAINT message
26766 * XplatUIOSX.cs: Added IsEnabled method stub
26767 * XplatUIWin32.cs: Implemented new IsEnabled() method
26769 2006-01-11 Jackson Harper <jackson@ximian.com>
26771 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26772 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26773 variables a little.
26774 * ColorDialog.cs: Clear out the old form before adding the new
26777 2006-01-11 Jackson Harper <jackson@ximian.com>
26779 * X11Dnd.cs: Make sure to add all the text formats when adding
26780 strings to the data object.
26781 * TreeNodeCollection.cs: When adding to a sorted tree we need to
26782 do some redrawing too. Also change the UpdateNode to an
26783 UpdateBelow so the newly added node gets painted.
26785 2006-01-11 Miguel de Icaza <miguel@novell.com>
26787 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26788 LinkLabel.cs, PropertyGrid.cs: Implement the
26789 UseCompatibleTextRendering property for 2.x
26791 * Application.cs (SetCompatibleTextRenderingDefault): Add.
26793 2006-01-11 Jackson Harper <jackson@ximian.com>
26795 * TreeView.cs: Use the property for setting the selected node so
26796 the correct events get raised.
26797 * TreeNode.cs: Update the tree when the fore/back colours of a
26800 2006-01-10 Jackson Harper <jackson@ximian.com>
26802 * TreeView.cs: Allow setting SelectedNode to null.
26804 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26806 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26808 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26810 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26812 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26814 * PrintDialog.cs: Added attributes and set default property values.
26816 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26818 * PrintControllerWithStatusDialog.cs:
26819 Added PrintControllerWithStatusDialog.
26821 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26823 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26824 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26826 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26828 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26830 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26832 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26833 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26835 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26837 * MimeIcon.cs: Added internal class SVGUtil.
26839 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26841 * FileDialog.cs: Don't crash if there are two files with the
26842 same name but different locations.
26844 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
26846 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26847 dates across multiple month grids. Used to not highlight entire
26848 month, but does now.
26850 2006-01-06 Jackson Harper <jackson@ximian.com>
26852 * MonthCalendar.cs: Removed DoEvents call to prevent a running
26853 message loop. Change timer intervals to numbers that seem more
26856 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
26858 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26859 object for location info since screen object is now implemented.
26861 2006-01-05 Jackson Harper <jackson@ximian.com>
26863 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26864 * AsyncMethodResult.cs: We no longer use a WeakReference for the
26865 AsyncMethodResult, this is because we ALWAYS want the
26866 ManualResetEvent to get set.
26867 * Control.cs: When disposing use an async invoke to call shutdown
26868 code, so that thigns don't block on the finalizer thread. Also
26869 check if we even have a message loop before trying to send
26870 messages, if we don't then don't bother sending messages.
26871 - No more weak references for async methods
26872 * XplatUIDriver.cs: No more weak references for async methods.
26874 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26876 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26877 returns two FontFamily with the same name
26879 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26881 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
26882 drawing disabled text. Instead using the ColorGrayText color
26884 2006-01-04 Jackson Harper <jackson@ximian.com>
26886 * TreeNode.cs: redraw the node when its image index is changed.
26888 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26890 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26891 time I checked there are no others like it.
26893 2006-01-04 Jackson Harper <jackson@ximian.com>
26895 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26896 this gives the behavoir I was looking for.
26897 * Control.cs: Special case Invoking EventHandlers, this matches MS
26898 and fixes part of bug #76326.
26900 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26902 * ThemeClearlooks.cs, FileDialog.cs:
26903 - Reflect the latest Theme class changes
26904 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
26907 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26909 * Theme.cs: Cache UI resource images and resize them if needed
26911 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26913 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26914 is called. This fixes the crash in Nexxia when setting the font
26915 attributes in the chat. [However, RTF needs a look-over to make sure
26916 that all SelectionXXX methods handle the special case that selection
26917 is empty and therefore the change must be applied to all text starting
26918 at the cursor/selection start]
26920 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26922 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26923 XplatUIOSX.cs: Added SendMessage and PostMessage methods
26924 * X11Keyboard.cs: Switched to new way of calling PostMessage
26926 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26928 * Theme.cs: Added theme interface for images to allow the theme to
26929 control what images are used for things like FileDialog, MessageBox
26931 * MessageBox.cs: Now uses the new Theme icon/image interfaces
26933 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
26936 - Removed some dead code
26937 - Opening a recently used file does work now
26938 - Small UI enhancements
26941 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26943 * FileDialog.cs: Forgot too add __MonoCS__
26945 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26947 * FileDialog.cs: We are able to read recently used files now let's
26948 go on and write them.
26950 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
26952 * FileDialog.cs: Breathe some life into "last open"/"recently used"
26954 * MimeIcon.cs: Do a check for the top level media type also
26956 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26958 * ThemeClearlooks.cs:
26959 - Added CPDrawStringDisabled
26960 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26961 some chars if the text doesn't fit into text_rect
26962 - DrawListViewItem: If View = View.LargeIcon center the image;
26963 rewrote the drawing of ListViewItem.Text if View =
26966 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26968 * MimeIcon.cs: Use default KDE icon theme if there is no
26969 "48x48" directory for the current icon theme, fixes #77114
26970 * Mime.cs: Disable not working and actually not used code.
26971 * ThemeWin32Classic.cs:
26972 - Replace "new SolidBrush" in GetControlBackBrush and
26973 GetControlForeBrush with ResPool.GetSolidBrush
26974 - Changed DrawListViewItem from private to protected virtual
26976 - Added form.MaximizeBox = true
26977 - Don't throw an exception if there is a broken symbolic link
26979 2005-12-23 Jackson Harper <jackson@ximian.com>
26981 * TabControl.cs: Give the panels focus, keyboard navigation is
26982 fixed so this works correctly now.
26983 - We need these key events also.
26984 * ToolBar.cs: Remove some of the poor mans double buffering.
26986 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
26988 * ComboBox.cs: The internal TextBox now returns the focus.
26990 2005-12-23 Jackson Harper <jackson@ximian.com>
26992 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
26994 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26996 * Control.cs: Removed debug code
26997 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27000 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27002 * Control.cs: When creating the control, update the Z-order after
27003 all it's children are created, too. (Fixes nexxia not showing
27006 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27008 * Control.cs: Do not update the anchoring distances if layout is
27009 suspended, instead do it once layout is resumed
27011 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27014 - After many hours of debugging, for both Jackson and
27015 myself, it turns out that it helps to set the parent of a control
27016 if you want to actually see it onscreen. In the spirit of that
27017 discovery, we're now setting the parent of the control and
27018 it's children when the control's handle is created. This fix
27019 will make Lutz Roeder's Reflector run happily.
27020 - now just creating the handle instead of the whole control when
27021 getting a graphics context for the control.
27023 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27025 * ScrollableControl.cs: When calculating the canvas, don't consider
27026 the scrollbar widths. Instead, predict if horizontal scrollbar
27027 will affect canvas when deciding on vertical display and vice versa.
27029 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27031 * RichTextBox.cs: Set default RTF font for documents that don't
27032 have a font table (Fixes #77076)
27034 2005-12-22 Jackson Harper <jackson@ximian.com>
27036 * TextBoxBase.cs: It's difficult to do, but you can have an empty
27037 clipboard. This prevents a NullRef in that case.
27038 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27039 clipboard. PRIMARY is for the currently selected text only. (We
27040 should implement PRIMARY at some point.
27042 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27044 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27045 a Unicode function with a structure that was defined in Ansi way.
27048 2005-12-21 Jackson Harper <jackson@ximian.com>
27050 * StatusBar.cs: Statusbar handles its fore/back colours on it's
27051 on. Because thats how it rolls. (and this avoids it using ambient
27053 * ThemeWin32Classic.cs: Use the proper back color for filling.
27054 * Menu.cs: Use the system menu bar color for drawing menu
27055 bars. Using the window back color will bring ambient colours into
27058 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
27060 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27061 Bitmaps were created and not disposed.
27063 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27065 * Control.cs (CreateControl): Don't do anything if the control is
27066 already created, otherwise we'd fire the OnCreated event more than
27069 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27071 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
27072 will always match. Instead return -1. Fixes #76464.
27074 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27076 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
27077 neither the beginning nor the end of the line (Fixes bug #76479)
27079 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27082 - ControlNativeWindow.ControlFromHandle(): Now handling situation
27083 where handle is invalid
27084 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
27085 instead of slower linear search
27086 * NativeWindow.cs: Don't remove the window from the hashtable until
27087 after the driver has destroyed it (since the driver might use
27088 Control.FromHandle to lookup the control object
27089 * Hwnd.cs: Added DestroyPending property to track if a window is
27090 already destroyed as far as the driver is concerned and only hasn't
27091 yet notified the control
27093 - Activate(): Check if the window is still valid before using the
27095 - Implemented DestroyChildWindow() method to mark child windows as
27096 destroyed when a window is destroyed. This prevents situations
27097 where we might call an X method based on queued events for a
27098 window that already has been destroyed but we haven't yet pulled
27099 the destroy method from the queue.
27100 - Added a call to the new DestroyChildWindow() method to the drivers
27101 DestroyWindow code. Also now marking the destroyed window itself
27104 2005-12-20 Jackson Harper <jackson@ximian.com>
27107 * StatusBarPanel.cs: Don't calculate panel sizes on draw
27108 anymore. Just do them when needed, also track the rects of panels
27109 so that we can optimize refreshing more in the future.
27111 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
27113 * ColorDialog.cs: Fixed focus drawing in small color controls
27115 2005-12-19 Jackson Harper <jackson@ximian.com>
27117 * InternalWindowManager.cs:
27118 * MdiWindowManager.cs: Cleanup some coordinate system changes so
27119 moving windows works properly.
27121 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
27124 - Removed call to InitLayout() from SetBoundsCore(); doc says
27125 it's only called when a control is added to a container
27126 - Split InitLayout logic, moved to separate UpdateDistances() method
27127 since we need to perform those calculations more often than just
27128 when adding the control to a container. (Needed to fix #77022)
27129 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
27130 - Reduced the OnBindingContextChanged events count, don't send them
27131 unless the control is created, we still aren't totally matching
27132 MS, but I can't quite figure out some of their rules
27134 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27136 * ThemeClearlooks.cs: Corrected distance between ProgressBar
27139 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27141 * ThemeClearlooks.cs:
27142 - Updated ProgressBar drawing
27143 - Corrected drawing of ScrollBars and scroll buttons
27144 - Some temporary fixes for minor pixel artefacts
27146 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
27149 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
27150 cause events to be sent in the same order as MS does.
27151 - Added ChangeParent() method to trigger various OnXXXChanged events
27152 that need to be fired when a parent changes (This is a reworking
27153 of the patch from r54254, with the X11 errors fixed)
27154 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
27155 since on MS we get OnLayoutChanged events when calling Clear()
27156 - Changed Enabled property to consider parent state as well, if a
27157 parent is not enabled, the control will not be either
27158 - Changed Parent property to simply call Controls.Add() since that
27159 now does all the work required, this way we avoid code duplication
27160 - Threw in a few OnBindingsContextChanged calls to try and match
27161 when MS sends them. We seem to send a few too many, though.
27162 - Added call to CreateControl when adding the control to a parent.
27163 We were never calling CreateControl. Still needs some work, in
27164 some places we treat HandleCreated and ControlCreated as equal,
27166 - Removed obsolete commented out code from UpdateZOrder()
27168 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27170 * ThemeClearlooks.cs: Updated TrackBar drawing.
27172 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27174 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27176 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27178 * FileDialog.cs: Add the Help button and the open readonly
27179 checkbox only if needed
27181 2005-12-16 Jackson Harper <jackson@ximian.com>
27183 * Control.cs: Make sure we have an active menu before trying to
27184 process commands on it. Prevents menu-less forms from crashing
27185 when Alt is pressed.
27186 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27188 * RichTextBox.cs: Expand statement to help out gmcs and fix the
27191 2005-12-16 Jackson Harper <jackson@ximian.com>
27193 * InternalWindowManager.cs: Don't translate tool windows screen
27194 coordinates. This fixes windows 'bouncing' around when being moved.
27196 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27199 - MaxLength now treats 2^31-1 equal to unlimited length (this is
27200 not quite MS compatible, MS uses that number only for single line
27201 and 2^32-1 for multi-line, but I figure it won't hurt keeping
27203 - Now enforcing the MaxLength limit when entering characters
27204 - Added argument to internal Paste() method to track if it's called
27205 from programatically or via keyboard, since keyboard driven pastes
27206 need to enforce max-length
27207 - Added logic to Paste to only paste as many chars as MaxLength
27209 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27211 - Added Length property to return number of characters in document
27212 - Added private CharCount property which only tracks actual chars
27213 in the document (no linefeeds) and fires event when CharCount
27215 - Added tracking of character count to all methods that alter it
27216 - Added LengthChanged event to allow applications to subscribe
27217 to any changes to the document
27219 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27222 - Removed local password_char field (moved to TextBoxBase)
27223 - Now setting the document's password var when password is
27226 - Added password_char field (needed here so MultiLine can
27228 - Added logic to MultiLine property setter to set the document's
27229 variable when password display is allowed
27230 - Removed debug code and made some debug code conditional
27232 - Added RecalculatePasswordLine() method to handle special password
27234 - Added PasswordChar property, also added related tracking vars
27235 - Draw() method now uses local text var for grabbing text to draw,
27236 this var is set to line.text unless we're doing password display,
27237 then it is set to the pre-generated all-password-chars line
27238 - Added calling RecalculatePasswordLine() method for password lines
27240 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27243 - Added Reparented property to allow tracking of Window Manager
27244 reparenting actions (which affect X/Y calculations of toplevel
27246 - Made ToString() print window handles in hex
27248 - AddConfigureNotify(): Now uses reparented state off Hwnd to
27249 determine if X/Y needs offsetting
27250 - AddConfigureNotify(): Fixed offset calculations
27251 - Now adds ReparentNotify messages into the queue
27252 - Now processes ReparentNotify messages and causes a
27253 WM_WINDOWPOSCHANGED message to be sent upstream if a window
27254 is reparented (as most likely it's X/Y coordinates are changed
27257 2005-12-14 Jackson Harper <jackson@ximian.com>
27259 * XplatUIX11.cs: Tool windows still need to respek focus.
27261 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27263 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27264 have a working release
27266 2005-12-13 Jackson Harper <jackson@ximian.com>
27268 * Form.cs: Update styles after setting the border style regardless
27269 of whether or not the window is using a window manager.
27271 2005-12-13 Jackson Harper <jackson@ximian.com>
27273 * Form.cs: We now hook into an internal window manager instead of just an
27274 MDI subsystem, this is so we can have properly behaving tool windows.
27275 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27276 * InternalWindowManager.cs: New internal class that acts as a
27277 window manager for tool windows and as a base for mdi windows.
27278 * MdiWindowManager.cs: New class that acts as a window manager for
27281 2005-12-12 Jackson Harper <jackson@ximian.com>
27283 * Control.cs: Updates so we match behavoir for for implicit
27284 controls. Fixes explosions in MDI.
27286 2005-12-12 Jackson Harper <jackson@ximian.com>
27288 * Control.cs: Implement Invalidate (Region).
27290 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
27293 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
27294 the same events as MS does. MS fires events for each property
27295 except, for unknown reasons, Cursor, when the control is reparented.
27296 I can't seem to totally match add/remove since MS also fires some
27297 VisibleChanged events, which makes no sense. Consolidated the
27298 parenting code into a separate method so it can be called from
27299 both Add and Remove. set_Parent no longer needs any special logic
27300 as it calls the parent's add method which implicitly fires
27302 - Removed some obsolete code and debug output
27303 - Enabled state is inherited from parents, if this is enabled
27305 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27307 * Form.cs: Removed commented out code
27309 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27312 - Added internal version of Invoke, with additional argument
27313 indicating if we're calling it from a Dispose() handler. That
27314 way we can avoid BeginInvoke throwing an exception if we're
27315 calling for an already destroyed window.
27316 - Added a dispose argument to BeginInvokeInternal, and made the
27317 check if a valid window handle chain exists conditional on
27318 it not being a dispose call
27319 - Removed code in DestroyHandle to destroy our children. Since we
27320 now handle the WM_DESTROY message we will catch all our children
27322 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27324 - Added a field to track the application context of the form.
27325 - No need to set closing variable as response to WM_CLOSE, instead
27326 we destroy the window. We also call PostQuitMessage if the form
27327 has an application context (which makes it the main app form,
27328 which, when closed terminates the app)
27330 - Dropped Exit() method, it's naming was confusing
27331 - Added PostQuitMessage() which causes GetMessage to return false
27332 once the message queue is empty
27333 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
27335 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27336 no longer a valid XplatUI method, but left it in since it's used
27337 internally. Added empty PostQuitMessage() method.
27338 * MenuAPI.cs: Replaced call to Exit() with call to
27339 PostQuitMessage, even though this is probably no longer needed.
27340 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27341 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27343 - Replaced call to XplatUI.Exit() with PostQuitMessage()
27344 - Removed old debug code that would call XplatUI for exception
27345 display, enabled standard exception handling (Still not enabled
27346 though, until NativeWindow's ExternalExceptionHandler define
27349 - Added internal method to allow control to update NativeWindow
27350 after a window has been destroyed
27351 - Added handling of already destroyed windows when calling i
27353 - Added removal of handle from list on ReleaseHandle
27355 - Dropped GetMessageResult var and related code
27356 - Added PostQuitState to field to track if PostQuitMessage has been
27358 - Dropped Exit() method
27359 - Added PostQuitMessage() method
27360 - GetMessage now will return false if PostQuitState is set and no
27361 more messages are in the queue.
27362 - Expose handler will no longer generate WM_PAINT messages if we are
27363 in PostQuitState since it's very likely any windows have already
27364 been destroyed, and since Hwnd won't get updated until we have
27365 processed the DestroyNotify we'd be causing X errors.
27367 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27369 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27370 Thanks to Mike for pointing out the err of my ways.
27372 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27374 * Control.cs(PreProcessMessage): Moved menu handling back, but
27375 after all other key handling, to match MS (who handles Menu in
27377 * Menu.cs (WndProc): Removed my brainfart
27379 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27381 * Control.cs(PreProcessMessage): Removed special menu handling
27382 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27384 2005-12-07 Mike Kestner <mkestner@novell.com>
27386 * Control.cs : special case SYSKEYUP so that we can adjust keynav
27387 state according in tracker.
27388 * Menu.cs : promote tracker field to base class and provide a tracker
27389 lookup capability. Add/Remove shortcuts dynamically if the top menu
27390 has a tracker. Unparent items that are removed from the collection.
27391 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27392 * Theme*.cs: add always_show_hotkeys field to support configurability
27393 of mnemonic display. win32 doesn't show mnemonics until Alt is
27396 2005-12-07 Jackson Harper <jackson@ximian.com>
27398 * MdiChildContext.cs: Use Control.ResetCursor.
27399 * Control.cs: ResetCursor needs to set the property so that the
27400 correct XplatUI call gets made.
27402 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27404 * Control.cs: More fixes to make our key events match MS. We
27405 were not setting the modifier state on KeyData, and we were
27406 not generating any events when Alt was pressed with a key
27407 since handling of WM_SYSxxx was missing for the OnKey methods.
27409 2005-12-07 Jackson Harper <jackson@ximian.com>
27411 * MdiChildContext.cs: reenable the sizing code.
27412 - When the mouse leaves a window reset its cursor.
27414 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27416 * ThemeClearlooks.cs: Reflect latest Hwnd changes
27418 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27420 * Hwnd.cs: Now using the theme 3d bordersize to calculate
27421 widths of Fixed3D borders
27423 2005-12-07 Jackson Harper <jackson@ximian.com>
27425 * MdiClient.cs: Fix warnings. Earn Mike's love.
27427 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27429 * ThemeClearlooks.cs:
27430 - Adjusted mouse over button color
27431 - Added first parts of CheckBox drawing
27432 - Added correct color for selected text background
27433 - Fixed ComboBox drawing
27434 - Added CPDrawBorder3D and CPDrawBorder
27436 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27438 * XplatUIX11.cs: Added call to XBell for AudibleAlert
27440 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27442 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27443 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27444 alert users via sound. We could add an enum arg with different
27445 types of alerts in the future
27447 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27449 * Control.cs: Fix behaviour problems pointed out by Mike
27451 2005-12-05 Mike Kestner <mkestner@novell.com>
27453 * StatusBarPanel.cs: add Invalidate method and hook it into all the
27454 prop setters. Calls parent.Refresh for now, but could be maybe be
27455 optimized with an internal method on StatusBar at some point.
27458 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
27460 * RichTextBox.cs: Implemented get_SelectionColor
27462 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
27464 * ThemeClearlooks.cs:
27465 - Removed dead code
27466 - Draw black button border only if button is Form.AcceptButton
27467 - Draw correct button color for pressed RadioButton if the mouse
27468 has entered the button
27469 - Updated ProgressBar drawing!
27470 - Updated CPDrawSizeGrip drawing
27471 - Updated StatusBarPanel drawing
27473 2005-12-05 Mike Kestner <mkestner@novell.com>
27475 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27476 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27478 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
27480 * ThemeClearlooks.cs: Initial check-in, activate with
27481 export MONO_THEME=clearlooks
27482 * ThemeEngine.cs: Added ThemeClearlooks
27484 2005-12-03 Mike Kestner <mkestner@novell.com>
27486 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27489 2005-12-02 Jackson Harper <jackson@ximian.com>
27491 * Form.cs: If the child form has no menu the default main menu is
27492 used as the active menu.
27494 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27496 * ListBox.cs: Check if any items exist before trying to resolve
27497 coordinates into items
27499 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27501 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27502 as the second color for the background hatch
27504 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27506 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27507 * RichTextBox.cs: FormatText position arguments are 1-based, now making
27508 sure that what we pass to FormatText is always 1-based. Fixes #76885
27510 2005-11-29 Miguel de Icaza <miguel@novell.com>
27512 * NumericUpDown.cs (EndInit): When we are done initializing,
27513 reflect any updates on the UI.
27515 2005-12-02 Jackson Harper <jackson@ximian.com>
27517 * ImplicitHScrollBar.cs:
27518 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27519 their container controls.
27520 * TreeView.cs: Use the new implicit scrollbars.
27522 2005-12-02 Jackson Harper <jackson@ximian.com>
27524 * TreeView.cs: Make top_node internal so the TreeNodeCollections
27526 * TreeNodeCollection.cs: If we remove the topnode we need to
27527 update topnode to the next node in line.
27528 - When clearing nodes go through the same process as removing
27529 them, so they get depareneted and checked if they are top node.
27531 2005-12-01 Jackson Harper <jackson@ximian.com>
27533 * TreeView.cs: When imagelists are used the image area is
27534 selectable as well as the text.
27535 - If there are no selected nodes select the first one.
27536 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27537 so don't do it more then we need to.
27539 2005-12-01 Jackson Harper <jackson@ximian.com>
27541 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27542 that arrows can be scaled.
27544 2005-12-01 Jackson Harper <jackson@ximian.com>
27546 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27547 fail. Patch by Dieter Bremes
27549 2005-11-30 Jackson Harper <jackson@ximian.com>
27551 * Form.cs: Property is 2.0 only
27552 * PrintDialog.cs: Signature fix.
27554 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27557 - No longer artificially moves text 2 pixels down (now that we have
27558 borders this is no longer needed)
27559 - Added calcs for left, hanging and right indent
27561 2005-11-23 Mike Kestner <mkestner@novell.com>
27563 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27565 2005-11-30 Jackson Harper <jackson@ximian.com>
27567 * MdiChildContext.cs: Set the cloned menus forms, as these don't
27568 get cloned as part of CloneMenu ().
27569 * Menu.cs: Make sure the parent of the items get set correctly
27570 when they are added. And the owners are notified of the changes.
27571 * Form.cs: Create an ActiveMenu property, so that when MDI is used
27572 we can change the menu being displayed/handled by the form without
27573 changing the menu assosciated with the form.
27574 - Don't let Mdi children draw/handle menus.
27576 2005-11-30 Jackson Harper <jackson@ximian.com>
27578 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27579 a MenuChanged event. Just to make the API a little more
27582 * MenuItem.cs: Use the new OnMenuChanged
27583 * MdiChildContext.cs: Handle menu merging.
27584 * Form.cs: Implement MergedMenu.
27586 2005-11-30 Jackson Harper <jackson@ximian.com>
27588 * Menu.cs: We were misusing Add. Add goes behind the specified
27589 index according to the docs, and does not replace the specified
27590 index. So I added an Insert method.
27592 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27594 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27595 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27597 * RichTextBox.cs: Added calls to base for DnD events
27599 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
27602 - Fixed drag-selection related crash; style fixes
27603 - Implemented undo class
27604 o Implemented method to capture document state for specified
27605 range in document tree
27606 o Implemented method to restore captured document state
27607 o Implemented cursor tracking
27608 o Implemented basic undo stack
27609 - Added undo cursor tracking to methods altering cursor location
27610 - Added undo tracking to selection deletion (still missing
27611 other text-altering hookups)
27613 - Added SelectionLength property
27614 - Implemented CanPaste()
27615 - Implemented Paste()
27616 - Added missing protected methods
27617 - Fixed RTF->Document conversion; now uses font index 0 and color
27618 index 0 as the default font for the parsed text
27619 - Fixed RTF<->Document font size translation
27620 - Fixed RTF generation, now properly handles cross-tag boundaries
27621 for single line selection
27622 - No longer always appends blank line to generated RTF
27624 - Added missing attributes
27625 - Hooked up undo-related methods
27627 - Implemented Copy()
27628 - Implemented Paste()
27629 - Implemented Cut()
27630 - Fixed caret mis-behaviour on backspace across line-boundaries
27632 2005-11-29 Jackson Harper <jackson@ximian.com>
27634 * MdiClient.cs: Add a method for activating mdi children. Very
27635 basic right now. I imagine someday it might need more girth.
27636 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27637 children windows names are added to the menu item.
27638 * ThemeWin32Classic.cs: Draw the arrow if the item is an
27639 mdilist. This happens regardless of whether or not there are any
27640 mdi windows to see in the list, and according to my tests happens
27641 before the items are even added. Also happens if there isn't even
27642 an mdi client to get windows from.
27644 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
27646 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27647 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27649 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
27651 * DataGridTableStyle.cs:
27652 - Create always the styles for the missing columns even if they are
27653 provided by the user (not default table style)
27656 - Fixes SetDataBinding (always re-attach source)
27657 - Fixes SetNewDataSource (only clear styles if they are not for
27659 - Expands OnTableStylesCollectionChanged to handle style refresh
27660 and remove properly
27662 2005-11-29 Jackson Harper <jackson@ximian.com>
27664 * FileDialog.cs: Implement missing bits, remove some dead
27666 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27667 creation of the panel so that the options set on the dialog are
27668 seen when the panel is created.
27669 * TreeView.cs: raise a click when items are clicked.
27671 2005-11-29 Jackson Harper <jackson@ximian.com>
27673 * MdiClient.cs: Pass some signature methods through to base.
27675 2005-11-28 Jackson Harper <jackson@ximian.com>
27677 * ListView.cs: Raise the click event when items are clicked.
27679 2005-11-28 Jackson Harper <jackson@ximian.com>
27681 * MdiClient.cs: Make this algorithm even more beautiful. And fix
27684 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
27686 * ThemeNice.cs: - Removed 1 pixel bitmaps
27687 - Use SmoothingMode.AntiAlias where it makes sense
27688 (ScrollButton arrow for example)
27689 - Enhanced Button focus drawing
27690 - Fixed ComboBox drawing (no artefacts anymore, focus
27691 rectangle is back again, reduced size of ComboButton, etc.)
27692 - Fixed RadioButton focus drawing for Appearence.Button
27693 - Slight ScrollButton redesign
27694 - Some LinearGradientBrush size fixes
27695 - GroupBoxes have now rounded edges
27696 - Fixed StatusBar drawing
27698 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
27700 * ThemeNice.cs: - Remove dead code
27701 - use correct background colors for menus, etc.
27702 - Fake pixel drawing with 1 pixel bitmaps
27704 2005-11-24 Jackson Harper <jackson@ximian.com>
27706 * MdiClient.cs: Size the scrollbars when resizing the window.
27707 - Resize the maximized windows when the client is resized
27708 * Form.cs: Make the child context available
27710 2005-11-23 Jackson Harper <jackson@ximian.com>
27712 * MdiChildContext.cs: Don't size windows if they are maximized.
27714 2005-11-23 Mike Kestner <mkestner@novell.com>
27716 * ContextMenu.cs: use MenuTracker.
27717 * Control.cs: remove menu handle usage.
27718 * Form.cs: remove menu handle usage.
27719 * Hwnd.cs: remove menu handle usage.
27720 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27721 motion and clicks to the new Tracker handlers.
27722 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27724 * MenuAPI.cs: refactored to combine popup and menubar event handling.
27725 Killed the MENU and MENUITEM data types and associated collections
27726 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27727 MenuTracker class that exposes the leftovers from the old MenuAPI
27728 static methods. Restructured Capture handling so that only one grab is
27729 done for the entire menu hierarchy instead of handing off grabs to
27730 submenus. Tracker now has an invisible control to Capture when active.
27731 * MenuItem.cs: add sizing accessors, kill Create
27733 * Theme.cs: remove menu handle and MENU(ITEM) usage.
27734 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27735 MENU(ITEM). remove menu handle usage, use Menu directly.
27736 * XplatUIDriver.cs: remove menu handle usage.
27737 * XplatUIOSX.cs: remove menu handle usage.
27738 * XplatUIWin32.cs: remove menu handle usage.
27739 * XplatUIX11.cs: remove menu handle usage.
27741 2005-11-22 Jackson Harper <jackson@ximian.com>
27743 * Hwnd.cs: Don't compute the menu size for
27744 DefaultClientRectangle.
27745 - Reenable menu sizes being computed for GetClienRectangle.
27746 * Form.cs: Remove comment of trechery
27748 2005-11-22 Jackson Harper <jackson@ximian.com>
27750 * Hwnd.cs: The adjustments for the menu bar are made when it is
27751 attached to the form.
27753 2005-11-19 Jackson Harper <jackson@ximian.com>
27755 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27756 (just like on windows).
27758 2005-11-19 Jackson Harper <jackson@ximian.com>
27760 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27761 use real buttons anymore because they are in non client area. The
27762 one TODO here is that I need to somehow invalidate a section of
27763 the non client area.
27765 2005-11-18 Jackson Harper <jackson@ximian.com>
27767 * Control.cs: Put the enum check back in now that MDI doesnt have
27768 to use this to set border styles.
27769 * Form.cs: Only set mdi child windows borders if the handle has
27771 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27772 this directly on to the driver.
27773 - Get the move start position before adjusting for the titlebar
27774 height, this fixes the windows "skipping" when they are first
27777 2005-11-18 Jackson Harper <jackson@ximian.com>
27779 * XplatUIX11.cs: Just compute the mdi borders separately as they
27780 don't totally match up with normal form borders.
27782 2005-11-18 Jackson Harper <jackson@ximian.com>
27784 * Control.cs: Set WS_ styles for borders, so that the driver does
27785 not have to retrieve the control instance to figure out what kind
27786 of borders it should have.
27787 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27788 driver can know its an mdi child easily.
27789 * XplatUIX11.cs: Get the border styles and whether the window is
27790 MDI from the Styles and ExStyles params instead of having to get a
27791 control. This prevents a chicken and egg problem.
27793 2005-11-18 Jackson Harper <jackson@ximian.com>
27795 * MdiClient.cs: Fix typo so scrollbars show up correctly.
27797 2005-11-18 Jackson Harper <jackson@ximian.com>
27799 * MdiClient.cs: Calculate when to add and remove scrollbars
27801 * MdiChildContext.cs: Adjust the y position to take the titlebar
27803 - No height for FormBorderStyle.None
27805 2005-11-18 Jackson Harper <jackson@ximian.com>
27807 * Control.cs: Allow non enum values to be used for
27808 InternalBorderStyle. MDI does this to set a special border style.
27809 - New utility methods for converting points to/from client coords
27810 - Add the newly created control to the Controls collection before
27811 updating its style. This way UpdateStyle can walk the control
27812 heirarchy to find the control if needed.
27813 so I don't need to create a new Point object all the time.
27814 * Form.cs: Let MDI windows handle their border styles.
27815 - Set styles on MDI windows so the correct title style is derived.
27816 * MdiChildContext.cs: Move all the painting and window handling
27817 into the non client area.
27818 - Use correct sizing and put correct buttons on frames based on
27819 the FormBorderStyle.
27820 - Notify the mdi client about scrolling
27821 - Need to handle the buttons ourselves now, because they are all
27822 in non client areas and we can't add controls there.
27823 * MdiClient.cs: Halfway to scrolling, this implementation is
27824 somewhat broken though, we need to check to make sure other
27825 windows aren't causing scrolling before removing the bars. Also
27826 the bars need to be drawn on top, maybe I can switch implicit
27827 controls to be on top.
27828 * Hwnd.cs: caption_height and tool_caption_height are now
27829 properties of an hwnd, this way they can be set by the driver
27830 based on the type of window they are. In X11 the window manager
27831 handles the decorations so caption_height is zero unless its an
27833 - Add 3 pixel borders for MDI windows (0xFFFF).
27834 - Get rid of some code duplication, have DefaultClientRectanle
27835 just call GetClientRectangle.
27836 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27838 - Set border styles differently for mdi windows.
27839 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27842 2005-11-15 Mike Kestner <mkestner@novell.com>
27844 * Menu.cs: when adding an item to the collection, if item is already
27845 parented, remove it from the parent.
27847 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
27849 * X11DesktopColors.cs: Added KDE support
27851 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
27854 - Clipboard methods now can translate Rtf format
27855 - No longer removes clipboard contents whenever a new format is added
27856 to allow placing multiple formats on the clipboard
27857 * Clipboard.cs: Clipboard now supports getting a IDataObject and
27858 will place all formats contained in it onto the clipboard. Also
27859 now cleans the clipboard before placing a new object onto it
27861 - Implemented set_Rtf
27862 - Implemented set_SelectedRtf
27863 - Created InsertRTFFromStream() method to allow single code base
27864 for all properties and methods that insert RTF into document
27865 - Removed debug output
27867 - Fixed Delete(int) to fix up line numbers
27868 - Fixed ReplaceSelection to combine start and end line
27869 - Fixed serious DeleteChars bug that would leave the document tree
27871 - Improved DumpTree with several logic checks to detect broken
27873 - Removed debug lines
27874 - Fixed Caret.WordForward/WordBack moving code, now always also
27875 updates caret.tag (fixes crash when word-selecting across tag
27876 boundaries via keyboard)
27877 - Added Insert() method for inserting multiline text into documents
27878 - Fixed DeleteChars() calculation errors that would cause a broken
27879 tag chain with multiple tag lines
27880 - DeleteChars() no longer crashes on multi-tag lines if not all tags
27881 - Split() no longer moves caret if split is at caret location
27882 - ReplaceSelection() now updates the cursor and re-displays it
27883 - ReplaceSelection() now uses new Insert() method to avoid code
27885 - FormatText() can now handle formatting partial lines
27887 - Append now uses new TextControl.Insert() method (this avoids
27889 - Implemented Ctrl-X (Cut) (
27890 - Implemented Ctrl-C (Copy)
27891 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
27892 regeneration when pasting text; roundtripping Copy&Paste within
27893 edit control still fails due to some calculation bugs in GenerateRTF)
27894 - The Delete key will now remove the current selection if it is visible
27895 * TextBox.cs: Removed debug lines
27896 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27897 driver to be initialized and can't therefore be done via a static ctor)
27899 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
27901 * TextControl.cs: Added backend code for finding char arrays and strings
27903 - Added mouse wheel scroll support
27904 - Added support for VScroll and HScroll events
27906 - Implemented all seven Find() variants
27907 - Implemented GetCharFromPosition()
27908 - Implemented GetCharIndexFromPosition()
27909 - Implemented GetLineFromIndex()
27910 - Implemented GetPositionFromCharIndex();
27911 - Implemented SaveFile for PlainText and UnicodeText
27912 - Fixed set_Font, now setting a new font applies that font to
27914 - Implemented generic Document to RTF converter
27915 - Implemented SaveFile for RichText format (still missing unicode
27916 conversion for non-ansi chars)
27917 - Implemented get_Rtf
27918 - Implemented get_SelectedRtf
27920 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
27922 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27923 to allow any captures to be released before triggering OnClick. This
27924 way a click handler may capture the mouse without interference.
27925 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27926 This way we send them even though X may not allow a grab (if the window
27927 isn't visible, for example)
27929 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
27931 * DataGridViewRowEventArgs.cs: DataGridView implementation
27932 * DataGridViewElement.cs: DataGridView implementation
27933 * DataGridViewComboBoxCell.cs: DataGridView implementation
27934 * DataGridViewDataErrorContexts.cs: DataGridView implementation
27935 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27936 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27937 * ImageLayout.cs: DataGridView implementation
27938 * DataGridViewComboBoxColumn.cs: DataGridView implementation
27939 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27940 * DataGridViewSelectionMode.cs: DataGridView implementation
27941 * IDataGridViewEditingControl.cs: DataGridView implementation
27942 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27943 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27944 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27945 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27946 * DataGridViewColumnSortMode.cs: DataGridView implementation
27947 * DataGridView.cs: DataGridView implementation
27948 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27949 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27950 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27951 * Padding.cs: DataGridView implementation
27952 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27953 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27954 * DataGridViewRowEventHandler.cs: DataGridView implementation
27955 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27956 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27957 * DataGridViewButtonCell.cs: DataGridView implementation
27958 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27959 * DataGridViewEditMode.cs: DataGridView implementation
27960 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27961 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27962 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27963 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27964 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27965 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27966 * DataGridViewCellEventHandler.cs: DataGridView implementation
27967 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27968 * DataGridViewCellStyleConverter.cs: DataGridView implementation
27969 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27970 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27971 * DataGridViewColumnEventArgs.cs: DataGridView implementation
27972 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27973 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27974 * QuestionEventArgs.cs: DataGridView implementation
27975 * IDataGridViewEditingCell.cs: DataGridView implementation
27976 * DataGridViewTriState.cs: DataGridView implementation
27977 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27978 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27979 * DataGridViewColumnCollection.cs: DataGridView implementation
27980 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27981 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27982 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27983 * DataGridViewColumn.cs: DataGridView implementation
27984 * DataGridViewCellBorderStyle.cs: DataGridView implementation
27985 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27986 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27987 * DataGridViewRow.cs: DataGridView implementation
27988 * DataGridViewImageCellLayout.cs: DataGridView implementation
27989 * DataGridViewImageCell.cs: DataGridView implementation
27990 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27991 * DataGridViewCheckBoxCell.cs: DataGridView implementation
27992 * DataGridViewHeaderCell.cs: DataGridView implementation
27993 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27994 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27995 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27996 * DataGridViewTextBoxColumn.cs: DataGridView implementation
27997 * QuestionEventHandler.cs: DataGridView implementation
27998 * DataGridViewCellStyleScopes.cs: DataGridView implementation
27999 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28000 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28001 * DataGridViewCell.cs: DataGridView implementation
28002 * DataGridViewCellEventArgs.cs: DataGridView implementation
28003 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28004 * DataGridViewCellStyle.cs: DataGridView implementation
28005 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28006 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28007 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28008 * TextFormatFlags.cs: DataGridView implementation
28009 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28010 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28011 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28012 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28013 * DataGridViewButtonColumn.cs: DataGridView implementation
28014 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28015 * HandledMouseEventArgs.cs: DataGridView implementation
28016 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28017 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28018 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28019 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28020 * DataGridViewRowCollection.cs: DataGridView implementation
28021 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28022 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28023 * DataGridViewHitTestType.cs: DataGridView implementation
28024 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28025 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28026 * DataGridViewColumnEventHandler.cs: DataGridView implementation
28027 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28028 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28029 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28030 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28031 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28032 * DataGridViewContentAlignment.cs: DataGridView implementation
28033 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28034 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28035 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28036 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28037 * DataGridViewPaintParts.cs: DataGridView implementation
28038 * DataGridViewCellCollection.cs: DataGridView implementation
28039 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28040 * DataGridViewImageColumn.cs: DataGridView implementation
28041 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28042 * DataGridViewElementStates.cs: DataGridView implementation
28043 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28044 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28045 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28046 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28047 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28048 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28049 * DataGridViewRowHeaderCell.cs: DataGridView implementation
28050 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28051 * DataGridViewTextBoxCell.cs: DataGridView implementation
28052 * DataGridViewBand.cs: DataGridView implementation
28053 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28054 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28055 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28056 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28057 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28058 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28059 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28060 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28061 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28062 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28063 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
28065 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
28067 * ThemeWin32Classic.cs:
28068 - Draw the outside focus rectangle around buttons
28069 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
28070 doesn't use end caps for every dash of a line anymore. This
28071 workaround ignores the forecolor.
28073 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
28075 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
28078 2005-11-07 Jackson Harper <jackson@ximian.com>
28080 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
28082 2005-11-07 Jackson Harper <jackson@ximian.com>
28084 * ScrollableControl.cs: Calculate the maximum and change vars
28085 (more) correctly so that scrollbars appear as a sensible size.
28087 2005-11-04 Jackson Harper <jackson@ximian.com>
28089 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
28091 * TreeView.cs: When the tree is sorted null out the top_node so
28092 that it is recalculated.
28093 - Use dotted lines instead of dashed lines to match MS better.
28095 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
28098 - Implements key search for items. Useful when browsing files with FileDialog
28099 - When changing view mode or when clear the items reset scrollbar positions
28101 2005-11-04 Jackson Harper <jackson@ximian.com>
28103 * CurrencyManager.cs: Implement the MetaDataChanged event, the
28104 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
28105 as to what the method may do as there is no real way of creating a
28106 derived CurrencyManager and calling the method.
28108 2005-11-03 Jackson Harper <jackson@ximian.com>
28110 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
28111 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
28112 method which seems to just be used internally to refresh the tabs.
28114 2005-11-03 Jackson Harper <jackson@ximian.com>
28116 * TabControl.cs: Implement the remove method. Fix some broken
28119 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28121 * DateTimePicker.cs:
28122 - Added missing DateTimePickerAccessibleObject class
28123 - Added missing events
28124 - Added OnFontChanged method
28125 * Form.cs: Added missing attributes
28126 * TreeView.cs: Added missing attributes
28128 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28130 * GridItemCollection.cs: Fix signatures
28132 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28134 * XplatUI.cs: Updated build rev/date
28135 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
28136 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
28137 * Application.cs: Trigger context-specific ExitThread events
28139 2005-11-03 Jackson Harper <jackson@ximian.com>
28143 * GridTableStylesCollection.cs:
28148 * MonthCalendar.cs: Signature fixes
28150 2005-11-03 Jackson Harper <jackson@ximian.com>
28152 * TreeNodeCollection.cs: Remove should not be virtual.
28153 * TreeView.cs: Implement the last of the missing methods.
28155 2005-11-03 Jackson Harper <jackson@ximian.com>
28157 * TreeNodeConverter.cs: Implement to get off my class-status back.
28159 2005-11-03 Jackson Harper <jackson@ximian.com>
28161 * TreeView.cs: Hookup the bits for drag and drop.
28162 * TreeNode.cs: Don't cache the tree_view or index anymore, now
28163 that nodes can be moved from tree to tree easily this just causes
28164 all sorts of problems.
28165 * TreeNodeCollection: Don't need to give treenodes an index and
28166 treeview anymore when they are added, these are computed on the
28167 fly. Also make sure to remove a node before its added.
28169 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28172 - Added CaretSelection enum
28173 - Added comparison methods to Marker struct, makes selection code
28175 - Added SelectionStart and SelectionEnd as 'moveable' location for
28176 the CaretDirection enum and handler
28177 - Added selection_prev variable to track optimized invalidation for
28178 word and line selection
28179 - Added SelectionVisible property (returns true if there is a valid
28181 - Switched CaretHasFocus to only display the caret if there is no
28183 - Avoiding StringBuilder.ToString to retrieve a single char, instead
28184 using the direct character index; should be much faster
28185 - Added various conditional debug statements
28186 - Fixed invalidation calculation for selection ranges
28187 - Added ExpandSelection() method to support word and line selection
28188 - Switched SetSelectionToCaret to use new Marker compare overloads
28189 - Added central IsWordSeparator() method to determine word
28190 separators/whitespace and FindWordSeparator() to streamline common
28191 usage of IsWordSeparator()
28193 - Removed unneeded grabbed variable, it was just mirroring
28195 - No longer firing OnTextChanged event when Text setter is called,
28196 since the base will fire the event for us
28197 - Added handling of Ctrl-Up/Down selection
28198 - Added handling of Shift-Cursorkey selection
28199 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28201 - Added handling of Shift and Ctrl-Shift-Home/End selection
28202 - Removed some debug output
28203 - Added handling for single/double/tripple-click to place caret/
28204 select word/select line respectively (Fixes bug #76031)
28205 - Added support for drag expansion of word/line selection
28206 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28209 2005-11-02 Jackson Harper <jackson@ximian.com>
28211 * X11Dnd.cs: If the drag is going to and from a MWF window just
28212 copy the data instead of sending it out through the X Selection
28215 2005-11-02 Jackson Harper <jackson@ximian.com>
28218 * XplatUIX11.cs: When in a drag we don't want motion notify
28219 messages to get passed on to the other controls. This prevents
28220 mouse move messages from showing up in the drag source.
28222 2005-11-02 Jackson Harper <jackson@ximian.com>
28224 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
28225 the correct button is release to end a drag.
28226 * XplatUIX11.cs: Make the button state internal so the drag system
28227 can access it. Dragging needs to know about all button releases,
28228 not just left button.
28230 2005-11-02 Miguel de Icaza <miguel@novell.com>
28232 * Form.cs (Icon): If the icon is null, reset the icon to the
28235 * Cursor.cs: When writing the AND-mask bitmap do not include the
28236 number of colors, but hardcode those to two (black and white),
28237 fixes the loading of color cursors (Paint Dot Net).
28239 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28240 turn off autoscaling.
28242 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28244 2005-11-02 Jackson Harper <jackson@ximian.com>
28246 * X11Dnd.cs: Make sure to send a status message if the pointer
28247 enters a control that can not accept a drop, otherwise the cursor
28248 isn't updated correctly. Also tried to compress the lines of code
28251 2005-11-02 Jackson Harper <jackson@ximian.com>
28253 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28254 set actions correctly. This isn't perfect as XDND and win32 have
28255 some differences on how you allow actions. I'll clear this up by
28256 adding a path for drag from MWF to MWF windows.
28257 * XplatUIX11.cs: Hook into the dnd system.
28259 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
28261 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28262 previously shown but they are no longer need it. Very obvious when
28263 browsing files with FileDialog.
28265 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
28267 * Control.cs: We always need to call OnPaintBackground. We pretty much
28268 ignore AllPaintingInWmPaint and always do the painting there, whether
28269 it's set or not, since we always ignore the WM_ERASEBKGND message
28270 (which we don't generate on X11). This fixes #76616.
28271 * Panel.cs: Removed unneeded background painting. This happens properly
28272 in Control.cs already
28274 2005-10-31 Mike Kestner <mkestner@novell.com>
28276 * Menu.cs: Add items to collection before setting their index.
28277 * MenuItem.cs : add range checking with ArgumentException like MS.
28280 2005-10-31 Jackson Harper <jackson@ximian.com>
28282 * ListBox.cs: Invalidate if the area is visible at all not just
28283 contained in the visible rect. Fixes unselection of semi visible
28286 2005-10-31 Jackson Harper <jackson@ximian.com>
28288 * Control.cs: Consistently name the dnd methods. Make them
28289 internal so we can override them to match some MS behavoir
28291 * Win32DnD.cs: Use the new consistent names.
28293 2005-10-31 Jackson Harper <jackson@ximian.com>
28295 * TreeView.cs: Don't draw the selected node when we lose focus.
28297 2005-10-31 Jackson Harper <jackson@ximian.com>
28299 * X11Dnd.cs: We still need to reset the state even though a full
28300 reset isn't being done, otherwise status's still get sent all over
28303 2005-10-31 Jackson Harper <jackson@ximian.com>
28305 * Control.cs: Make the dnd_aware flag internal so the dnd
28306 subsystem can check it. Catch exceptions thrown in dnd handlers to
28308 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28309 * X11Dnd.cs: Handle null data in the converters. Set the XDND
28310 version when sending a XdndEnter. Use the control/hwnd dnd_aware
28311 flags to reduce the number of dnd enters/status's sent.
28313 2005-10-31 Jackson Harper <jackson@ximian.com>
28315 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28317 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
28319 * PictureBox.cs: Fixes 76512
28321 2005-10-28 Jackson Harper <jackson@ximian.com>
28323 * X11Dnd.cs: Early implementation to support winforms being a drag
28324 source for data on X11. Also restructured the converters so they
28325 can go both ways now.
28326 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28328 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
28330 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28333 2005-10-27 Jackson Harper <jackson@ximian.com>
28335 * TreeNode.cs: Implement serialization so my DnD examples will work.
28337 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
28339 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28340 TreeView.cs: Don't dispose objects that are not owned.
28342 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
28344 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28345 should retrieve the current cursor and report that, but XplatUI
28346 doesn't (yet) have an interface for that (and I'm not sure I even
28348 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28349 until any message loop processing is done (and the WM_SETCURSOR
28350 replaces the cursor to the proper one)
28352 - Fixed override behaviour, we can't set the cursor globally on X11,
28353 just for our windows.
28354 - Invalidating the System.Drawing X11 display handle when we are
28356 * Control.cs: Fix to make csc happy
28358 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
28361 - get_Text: Add last line (without trailing newline) to returned
28362 value (Fixes 76212)
28363 - get_TextLength: Count last line in returned length
28364 - ToString: Call Text property instead of duplicating code
28366 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
28368 * ImageList.cs: Dispose ImageAttributes objects.
28370 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28372 * ImageList.cs: Use attribute constructors with less arguments where
28375 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28377 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28378 Use typeof instead of strings when assembly is referenced. Added
28379 some more comments.
28381 2005-10-21 Jackson Harper <jackson@ximian.com>
28383 * ListView.cs: Raise a double click event. Also tried to somewhat
28384 fix when the selectedindexchanged event is raised. Its still
28387 2005-10-21 Jackson Harper <jackson@ximian.com>
28389 * TreeView.cs: New method to invalidate the plus minus area of a
28390 node without invalidating the whole node (maybe this can be used
28391 in some more places).
28392 * TreeNodeCollection.cs: When adding to an empty node we need to
28393 invalidate its plus minus area so the little block shows up.
28395 2005-10-21 Jackson Harper <jackson@ximian.com>
28397 * TreeView.cs: Make sure that when we invalidate a node the bounds
28398 are big enough to cover the selected box and the focus
28399 rectangle. Use a different colour for the lines connecting nodes
28400 so they show up with all themes.
28402 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28404 * NativeWindow.cs: Don't call anything that could call into the driver,
28405 we might be on a different thread.
28407 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28409 * Control.cs(Dispose): Since Dispose might run on a different thread,
28410 make sure that we call methods that could call into the driver via
28411 invoke, to avoid thread issues
28413 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28415 * XplatUI.cs: Removed finalizer
28416 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28417 not allowing to be called on the finalizer thread.
28419 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
28422 - Reverted r51889 and r51891.
28423 - Added ImageListItem class that stores unmodified image items and image
28424 properties required to create list images until handle is created.
28425 - Added AddItem and moved image creation logic to AddItemInternal.
28426 - Added CreateHandle method that creates images based on unmodified items.
28427 - Added DestroyHandle that changes state to store unmodified items.
28428 - Add and AddStrip methods no more create handle.
28429 - ReduceColorDepth has no return value.
28430 - Dispose destroys handle.
28431 - Modified other methods to reflect the above changes.
28432 - Implemented key support.
28433 - Added profile 2.0 members and attributes.
28434 - Added private Reset and ShouldSerialize methods that provide the same
28435 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28436 them as they are private.
28437 - Added some more comments about implementation details.
28439 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28441 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28443 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28445 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28447 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28449 * DataGridDrawingLogic.cs: Fixes column hit calcultation
28450 * DataGridColumnStyle.cs: Remove debug message
28452 2005-10-20 Jackson Harper <jackson@ximian.com>
28454 * TreeView.cs: We can always get input keys regardless of whether
28455 or not editing is enabled. They are used for navigation.
28457 2005-10-20 Jackson Harper <jackson@ximian.com>
28459 * TreeNode.cs: Use the viewport rect for determining if a node
28460 needs to be moved for visibility. Don't use Begin/End edit. This
28461 calls a full refresh when its done.
28462 * TreeView.cs: New SetBottom works correctly. Make the viewport
28463 rect property internal so the treenodes can see it. When clicking
28464 on a node we need to ensure that its visible because it might just
28465 be partly visible when clicked.
28467 2005-10-20 Jackson Harper <jackson@ximian.com>
28469 * TreeNodeCollection.cs: Remove debug code.
28471 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28473 * Datagrid.cs: Implements column sorting in Datagrid
28474 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28476 2005-10-20 Jackson Harper <jackson@ximian.com>
28478 * TreeNodeCollection.cs: Remove items properly. Update the correct
28479 area after removing them.
28481 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28483 * Datagrid.cs: Should not call base.OnPaintBackground
28485 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28487 * XplatUIX11.cs (GetMessage):
28488 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28489 window instead of client window
28490 - Now properly calculates NC_xBUTTONUP message coordinates
28491 - ScreenToMenu now properly calculates it's coordinates of whole
28492 window, since menus are in the whole window, not in the client
28494 - Added WholeToScreen coordinate translation method
28496 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28498 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28499 want to return a message, loop back to the beginning of the function
28500 and grab the next real message to process instead.
28502 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28504 * Splitter.cs: Properly set limits if no filler control is used
28506 2005-10-19 Jackson Harper <jackson@ximian.com>
28508 * ColorDialog.cs: Don't show the help button if it is not enabled
28509 instead of disabling it (this is what MS does). Don't create the
28510 panel until the dialog is run, otherwise the vars (such as
28511 ShowHelp) are not set yet.
28513 2005-10-19 Jackson Harper <jackson@ximian.com>
28515 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28516 are reduced when adding nodes.
28518 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28521 2005-10-19 Jackson Harper <jackson@ximian.com>
28523 * FolderBrowserDialog.cs: End editing our treeview so the window
28524 actually gets refreshed.
28526 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28528 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
28529 Obsoleted handling of WM_ERASEBKGND, now always draws our background
28532 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28534 * MenuAPI.cs: Returns after Hidding window
28535 * XplatUIX11.cs: Added TODO found while debugging menu issues
28537 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28539 * XplatUIX11.cs: Do not re-map the whole window when it's size
28540 becomes non-zero unless it's supposed to be actually visible
28542 2005-10-18 Jackson Harper <jackson@ximian.com>
28544 * TreeView.cs: We don't need to keep a count anymore.
28545 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28546 use the Grow method.
28548 2005-10-18 Jackson Harper <jackson@ximian.com>
28550 * TreeNodeCollection.cs: Insert is not supported on arrays, so
28551 implement it manually here.
28553 2005-10-18 Jackson Harper <jackson@ximian.com>
28555 * ImageList.cs: Dont kill the list when the colour depth is
28556 changed, just change the colour depth of all the images.
28557 - Same goes for setting the image size. Just resize them all
28558 instead of killing the list softly.
28560 2005-10-18 Jackson Harper <jackson@ximian.com>
28562 * Control.cs: Don't invalidate empty rectangles.
28564 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28567 - Adds checked item to the Checked/Item lists (where empty before)
28568 - Do not add items to the Selected lists if they are already present
28570 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28571 - When deleting items make sure that we delete them for the Selected
28572 and Checked list also.
28574 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28576 * Label.cs: Dispose objects no longer used
28577 * ThemeWin32Classic.cs: Dispose objects no longer used
28579 2005-10-18 Jackson Harper <jackson@ximian.com>
28581 * TabControl.cs: Don't refresh the whole control when the tabs are
28582 scrolled, we just need to refresh the tab area.
28584 2005-10-17 Jackson Harper <jackson@ximian.com>
28586 * XplatUIX11.cs: Compress code a little bit. Only calculate the
28587 after handle when we need it.
28589 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28591 * Control.cs: When the parent size changes, recalculate anchor
28592 positions. Partial fix for #76462
28594 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28596 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
28597 drawn. Fixes #76462
28599 2005-10-17 Jackson Harper <jackson@ximian.com>
28601 * MonthCalendar.cs: Don't create the numeric up down until our
28602 handle is created. Otherwise our handle is created in the
28603 constructor and we don't know if we are a WS_CHILD or WS_POPUP
28606 2005-10-17 Jackson Harper <jackson@ximian.com>
28608 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28611 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28612 * TreeNode.cs : small logical fix (was using local var instead of field)
28614 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28616 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28618 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28620 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28622 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
28625 - Re-implemented anchoring code. My first version was really broken.
28626 This fixes bug #76033. Unlike the previous implementation we will
28627 no longer have round errors since all numbers are calculated from
28628 scratch every time. Removed various anchor-related obsolete vars.
28629 - InitLayout no longer causes layout event firing and layout to be
28632 2005-10-16 Jackson Harper <jackson@ximian.com>
28634 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28637 2005-10-16 Jackson Harper <jackson@ximian.com>
28639 * TabControl.cs: Remove debug code.
28641 2005-10-16 Jackson Harper <jackson@ximian.com>
28643 * XEventQueue.cs: Increase the default queue size (very simple
28644 apps needed to grow the queue).
28645 * Hwnd.cs: No finalizer so we don't need to suppress
28646 finalization. Compute the invalid area manually so a new rectangle
28647 does not newto be created.
28648 * ScrollableControl.cs: Don't set any params (otherwise visibility
28649 isn't set correctly).
28650 * MdiChildContext.cs: New constructor takes the mdi parent so it
28651 doesn't have to be computed and avoids a crash on windows. Draw
28652 the window icon properly, and allow the text to be seen.
28653 * Form.cs: Use new MdiChildContext constructor. Make sure the
28654 child context isn't null in wndproc.
28655 * TabControl.cs: Don't set focus, this is muddling keyboard
28656 behavoir. Expand the tab rows when a window size increase will
28657 allow extra tabs to be seen. Don't allow tabs smaller than the
28658 width of a window to be scrolled out of view.
28660 * TreeView.cs: Use measure string to calculate a nodes width, the
28661 width is cached and only updated when the text or the font is
28662 changed. Don't check for expand/collapse clicks on the first level
28663 nodes if root lines are disabled.
28665 2005-10-16 Ritvik Mayank <mritvik@novell.com>
28667 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28669 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28671 * DataGridBoolColumn.cs: fixes warning
28673 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28675 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28676 to match more to match more precisely the MS Net behavior
28678 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28680 * Hwnd.cs: Added field to track if window is mapped
28682 - Unmap windows if they become 0-size, re-map when
28683 they are >0 again; fixes #76035
28684 - Re-set our error handler after initializing X11Desktop
28685 to override any error handlers Gtk or whatever was called
28688 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28690 * CheckedListBox.cs: Removed unused vars
28691 * ListView.cs: Fixed signatures
28692 * RichTextBox.cs: Removed unused vars
28693 * TextBoxBase.cs: Removed unused vars
28694 * XplatUIWin32.cs: Removed unused vars
28695 * XplatUIX11.cs: Removed unused vars
28696 * XplatUI.cs: Updated version and date to latest published
28698 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28700 * Cursor.cs: Added private .ctor to work around a bug in
28701 resourceset (Thanks to Geoff Norton for the help on this)
28702 * SplitterEventArgs.cs: Made fields accessible so we don't
28703 waste boatloads of objects and can reuse the same one
28705 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28706 any captions and borders when generating screen coordinates
28707 * Splitter.cs: Reimplemented control, now fully complete, uses
28708 rubberband drawing, supports and obeys all properties, has
28711 2005-10-13 Miguel de Icaza <miguel@novell.com>
28713 * Form.cs (Form): Setup default values for autoscale and
28714 autoscale_base_size; Make these instance variables, not static
28717 (OnLoad): on the first load, adjust the size of the form.
28719 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28721 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
28722 width argument to DrawReversibleRectangle()
28723 * XplatUIWin32.cs, XplatUIX11.cs:
28724 - Implemented width for DrawReversibleRectangle()
28725 - Added logic to DrawReversibleRectangle that recognizes a zero
28726 width or height and only draws a line in that situation
28728 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28730 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28731 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28732 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28733 method (it uses our FosterParent window to get a graphics context)
28735 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28737 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
28738 and SetWindowBackground methods
28740 - Setting proper ControlStyles
28741 - We no longer call XplatUI.SetWindowBackground and XplatUI.
28742 EraseWindowBackground, instead we draw the window background
28743 ourselves in PaintControlBackground. This behaviour is
28744 required to match MS, where, when OnPaintBackground is not
28745 called, the background is not drawn.
28746 - Removed unneeded Refresh() in set_Text
28747 * Hwnd.cs: Dropped the ErasePending support. No longer needed
28749 - Created DeriveStyles method to translate from CreateParams to
28750 FormBorderStyle and TitleStyle, also handles BorderStyle (which
28751 matches FormBorderStyle enum values)
28752 - Consolidated SetHwndStyles and CalculateWindowRect border/title
28753 style calculations into single DeriveStyles method
28754 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28755 from redrawing the whole window on any resize or expose.
28756 - Fixed CreateWindow usage of SetWindowValuemask. Before not
28757 all styles were applied to our whole/client window appropriately
28758 - Removed EraseWindowBackground() and SetWindowBackground() methods
28759 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28760 no longer clear/redraw the background through X
28761 - Removed handling of erase_pending bit, we have no use for it (or
28764 - Removed generation and handling of WM_ERASEBKGND message
28765 - Removed EraseWindowBackground() and SetWindowBackground() methods
28766 - Removed handling of hwnd.ErasePending flag
28768 - Removed EraseWindowBackground() and SetWindowBackground() methods
28769 - We no longer call EraseWindowBackground on PaintEventStart, we
28770 ignore the fErase flag, erasing is handled in Control in the
28772 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28773 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28774 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
28775 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
28776 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
28777 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28778 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28780 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
28782 * PropertyGrids.cs: Get sub properties
28783 * PropertyGridView.cs: Fix drawing code
28785 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28787 * ListBox.cs: Fixes 76383
28789 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28791 * DataGridTextBoxColumn.cs: Sets location and size before attachment
28792 * ThemeWin32Classic.cs: Fixes border drawing and calculations
28793 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28796 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28798 * ComboBox.cs: Fixes border drawing
28800 2005-10-10 Miguel de Icaza <miguel@novell.com>
28802 * MimeIcon.cs: Ignore errors if the file can not be read.
28804 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28806 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28807 - Fixed border calculations
28808 - Fixed horizontal scrolling in single column listboxes
28809 - Fixed drawing issues
28811 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
28813 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
28814 FormBorderStyle enum
28815 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
28816 code to determine FormBorderStyles from CreateParams
28818 - Fixed bug where we'd set the wrong window styles if we were
28819 not creating an MDI window
28820 - Added call to XplatUI.SetBorderStyle when form borders are set
28821 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28823 - Removed obsolete edge style
28824 - Switched from BorderStyle to FormBorderStyle
28826 2005-10-10 Jackson Harper <jackson@ximian.com>
28828 * Form.cs: Use the property to get the window handle instead of
28829 accessing it directly. Prevents a null reference exception.
28831 2005-10-10 Jackson Harper <jackson@ximian.com>
28833 * TreeView.cs: Don't adjust the rect given to DrawString now that
28834 our libgdiplus draws correctly.
28836 2005-10-08 Jackson Harper <jackson@ximian.com>
28838 * TreeView.cs: Don't try to find the clicked on node if there are
28839 no nodes in the tree.
28841 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28847 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28849 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28850 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28852 Use ResPool for brushes and dispose System.Drawing objects that
28853 are not used anymore.
28855 2005-10-07 Jackson Harper <jackson@ximian.com>
28857 * MdiChildContext.cs: Use the new borders instead of drawing them
28860 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28862 * Calling UpdateBounds after changing the window's BorderStyle
28863 since the style can change the ClientSize
28865 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28867 * Control.cs: Made PaintControlBackground virtual
28868 * Panel.cs: Overriding PaintControlBackground instead of using paint
28869 event; paint event method was interfering with 'real' users of the
28872 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28874 * ThemeWin32Classic.cs: remove border drawing since it is handled
28875 by the base control class now and was causing double border drawing.
28877 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28879 * Panel.cs: Redraw our background on paint. Not a pretty solution,
28880 but it does seem to match MS behaviour. This fixes bug #75324
28882 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28884 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28885 somewhat hackish looking
28887 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28890 - We now accept Enter even if AcceptEnter is false, if the containing
28891 form does not have an AcceptButton configured (fixes bug #76355)
28892 - Calculations are now fixed to no longer use Width/Height, but
28893 ClientSize.Width/Height, since we now support borders (this was
28894 a result of fixing borders and therefore bug #76166)
28895 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
28896 true (fixes bug #76354)
28898 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28901 - Defaulting BorderStyle and setting it in XplatUI when our window
28903 - Added enum check to InternalBorderStyle setter
28905 - Added drawing of window borders
28906 - Now properly calculates WM decorations offset for toplevel
28907 windows (fixes bug #74763)
28909 - Implemented BorderStyles for windows (we're letting win32 draw
28911 - Fixed the signature for SetWindowLong
28912 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28913 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
28915 * UpDownBase.cs: Remove drawing of borders, this is handled by
28916 the driver, outside the client area
28917 * ListView.cs: Removed bogus border calculations. The control should
28918 be oblivious to borders, since those are not part of the client
28920 * X11DesktopColors.cs: Commented out (currently) unneeded variables
28921 * ThemeWin32Classic.cs: Removed border calculations from ListView
28924 2005-10-06 Jackson Harper <jackson@ximian.com>
28926 * MdiChildContext.cs: Clear out the old virtual position remove
28927 all the unneeded calls to CreateGraphics.
28929 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28931 * TextControl.cs: Use proper color for highlighted text; fixes #76350
28933 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28936 - Added loading and setting of our new default icon
28937 - Only set icon if window is already created
28939 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28942 - Do not explicitly set the foreground and background colors, to
28943 allow inheriting from parents (fixes #76302)
28944 - Use Control's InternalBorderStyle property to deal with borders
28946 2005-10-06 Jackson Harper <jackson@ximian.com>
28948 * MdiChildContext.cs: Use the new xplatui function to draw a
28951 2005-10-06 Jackson Harper <jackson@ximian.com>
28953 * Form.cs: Add the parent before creating the child context cause
28954 we need the parent when setting up the child.
28956 2005-10-06 Jackson Harper <jackson@ximian.com>
28958 * FolderBrowserDialog.cs: redo the tree population code so a
28959 second thread isn't used. Should be a lot faster and more stable
28962 2005-10-05 Jackson Harper <jackson@ximian.com>
28964 * TreeView.cs: There are no expand/collapse boxes if the node has
28967 2005-10-05 Jackson Harper <jackson@ximian.com>
28969 * X11DesktopColors.cs: Get menu colours for the gtk theme.
28971 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
28973 * FileDialog.cs: Fix InitialDirectory
28975 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28978 - Fixes changing between styles
28979 - Fixes simple mode
28980 - Fixes last item crashing when navigating with keyboard
28982 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28984 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28986 2005-10-05 Jackson Harper <jackson@ximian.com>
28988 * TreeView.cs: If updating the root node do a full refresh.
28989 * TreeNode.cs: The root node should be expanded by default. Also
28990 added a utility prop to tell if we are the root node.
28991 * TreeNodeCollection.cs: Only refresh if the node we are being
28992 added to is expanded. Also added a comment on a potential
28995 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
28997 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
28998 in dispose method. Fixes #76330
29000 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
29002 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29004 - Implements vertical and horizontal scrolling using XplatUI
29005 - Fixes keyboard navagation
29006 - Fixes EnsureVisible
29008 - Handles and draws focus properly
29011 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
29013 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29014 Create handle. NET_2_0: Destroy handle when value is null.
29016 2005-10-03 Jackson Harper <jackson@ximian.com>
29018 * ScrollBar.cs: My last scrollbar patch was broken. This is a
29019 revert and a new patch to prevent the thumb from refreshing so
29022 2005-10-02 Jackson Harper <jackson@ximian.com>
29024 * ScrollBar.cs: Don't update position if it hasn't actually
29025 changed. This occurs when you hold down the increment/decrement
29026 buttons and the thumb gets to the max/min.
29028 2005-10-01 Jackson Harper <jackson@ximian.com>
29031 * MdiChildContext.cs:
29032 * MdiClient.cs: Implement ActiveMdiChild in Form.
29034 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
29036 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29038 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
29040 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29043 2005-09-30 Jackson Harper <jackson@ximian.com>
29045 * ListBox.cs: Don't do a full refresh unless some data has
29048 2005-09-30 Jackson Harper <jackson@ximian.com>
29050 * TreeView.cs: Make sure that the checkboxes size is factored in
29051 even when not visible.
29053 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29055 * FileDialog.cs: Fix Jordi's build break
29057 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29060 - Use standard the Windows colours for the combobox as espected
29061 - Dispose objects that use resouces when no longer need them
29063 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29065 * X11DesktopColors.cs: Initial incomplete implementation
29066 * XplatUIX11.cs: Added call to initialize X11DesktopColors
29068 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29071 - Switched Theme color names to match the names defined in
29072 System.Drawing.KnownColors. Life's hard enough, no need to make
29074 - Added setters to all theme color properties so themes can set
29075 their color schemes. The setters also propagate the color changes
29076 to System.Drawing.KnownColors via reflection
29077 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
29078 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
29079 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
29080 use the new, more logical theme color names
29081 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
29083 * ThemeWin32Classic.cs:
29084 - Removed code to set the old classic Windows colors. Instead it
29085 now relies on the colors returned by System.Drawing.KnownColors
29086 which will be either modern static colors (Unix) or colors
29087 read from the user's configuration (Win32)
29088 - Updated to use the new, more logical theme color names
29089 - Switched DataGrid drawing code to use only Theme colors instead of
29090 a mix of System.Drawing.KnownColors and Theme colors
29091 - DrawFrameControl(): Removed code that fills the button area, the
29092 fill would overwrite any previous fill done by a control. This
29094 - Added DrawReversibleRectangle() stub
29095 * ScrollableControl.cs: Set visible state to false when scrollbars
29096 are removed (pdn fix)
29097 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
29098 DrawReversibleRectangle() method to allow drawing primitive
29100 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
29102 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29104 * ImageList.cs: Add(Icon): Create handle.
29106 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29109 * ThemeWin32Classic.cs:
29110 - Fixes detail mode
29112 - Issues with drawing
29114 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29116 * ImageList.cs: Moved RecreateHandle back to ImageList as event
29117 source has to be the ImageList.
29119 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29121 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
29123 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29125 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
29127 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29129 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
29131 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
29132 * GridItem.cs: Fixed TODOs
29133 * GridItemCollection.cs: Added ICollection interface
29135 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29137 * ImageList.cs: Resize icons when needed.
29139 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
29142 - Fixes GetBounds and returns on screen rects
29144 - Fixes vertical and horzintal scrolling of items
29145 * ThemeWin32Classic.cs:
29148 2005-09-29 Raja R Harinath <harinath@gmail.com>
29150 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
29152 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
29154 * ImageList.cs: Added comments about handle creation. Moved Handle,
29155 HandleCreated and OnRecreateHandle implementations to ImageCollection.
29156 Handle is created in Add methods.
29158 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29160 * DataGridDrawingLogic.cs:
29161 - Takes rows into account on Colum calculations
29162 - Returns the column when clickig
29164 - Fixes default HitTestInfo values
29165 - Fixes HitTestInfo.ToString
29166 - Fixes ResetBackColor
29168 2005-09-28 Jackson Harper <jackson@ximian.com>
29170 * MdiChildContext.cs: Obey rules for fixed sized windows (no
29171 sizing or cursor changes). Also added some temp code to draw the
29172 titlebars text (Makes dev a little easier).
29174 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29176 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29178 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29180 * ListBox.cs: Fixes bug 76253
29182 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29184 * ImageList.cs: Added comments about the current implementation. Added
29185 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29186 Format32bppArgb to preserve transparency and can use Graphics.FromImage
29187 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29188 with Bitmap.LockBits for better performance. Revised the whole file to
29189 match MS.NET behaviour and provide better performance. Non-public
29190 interface members are calling public members even when they throw
29191 NotSupportedException for better maintainability. Moved ColorDepth,
29192 ImageSize, ImageStream and TransparentColor implementations to
29193 ImageCollection for better performance as these properties are not used
29195 * ImageListStreamer.cs: Added a new internal constructor that takes an
29196 ImageList.ImageCollection and serializes Images based on
29197 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29198 match ImageList property name.
29200 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
29202 * ListBox.cs: Fixes IndexFromPoint for last item
29204 2005-09-27 Jackson Harper <jackson@ximian.com>
29206 * Form.cs: Set the position of new mdi children correctly.
29208 2005-09-27 Jackson Harper <jackson@ximian.com>
29210 * MdiClient.cs: New mdi children need to be added to the back of
29211 the controls collection so the zorder is set correctly. Also add a
29212 count of all the child windows that have been created.
29214 2005-09-27 Jackson Harper <jackson@ximian.com>
29216 * Form.cs (CreateParams): Setup MDI forms correctly.
29218 2005-09-27 Jackson Harper <jackson@ximian.com>
29220 * MdiChildContext.cs:
29221 * MonthCalendar.cs:
29227 * ScrollableControl.cs:
29228 * ComboBox.cs: Add implicit controls using the new implict control
29229 functionality in ControlCollection. Also try to block multiple
29230 control add in a suspend/resume layout to save some cycles.
29232 2005-09-27 Jackson Harper <jackson@ximian.com>
29234 * Control.cs: Add functionality to the controls collection to add
29235 'implicit controls' these are controls that are created by the
29236 containing control but should not be exposed to the user. Such as
29237 scrollbars in the treeview.
29238 * Form.cs: The list var of the ControlsCollection is no longer
29239 available because of the potential of implicit controls getting
29240 ignored by someone accessing the list directly.
29242 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
29244 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29245 loose it's parent. (Fixed bug introduced in r49103 when we added
29246 setting the child parent to null on Remove)
29248 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
29250 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29251 * Splitter.cs: Added missing attributes for BorderStyle property.
29252 * TextBoxBase.cs: Marked Calculate* methods internal.
29253 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29256 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
29258 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29260 2005-09-25 Jackson Harper <jackson@ximian.com>
29262 * TreeView.cs: Update the node bounds correctly regardless of
29263 whether the node is visible.
29265 2005-09-25 Jackson Harper <jackson@ximian.com>
29267 * ImageList.cs: Don't dispose the image after it is added to the
29268 image list. Only reformat images that need to be resized.
29270 2005-09-25 Jackson Harper <jackson@ximian.com>
29272 * ImageList.cs: Don't set the format when changing the image.
29274 2005-09-25 Jackson Harper <jackson@ximian.com>
29276 * TreeView.cs: We can't just assume the node has a font. Use the
29277 treeviews font if no node font is available.
29279 2005-09-25 Jackson Harper <jackson@ximian.com>
29281 * TreeView.cs: Allow the scrollbars to be reset with negative
29283 - Don't add scrollbars to negative sized windows.
29285 2005-09-23 Jackson Harper <jackson@ximian.com>
29287 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29288 old Mono.Posix. Also remove some stray code that shouldn't have
29291 2005-09-23 Jackson Harper <jackson@ximian.com>
29293 * TreeView.cs: Attempt at proper sizing of the horizontal
29294 scrollbar. Also don't resize the scrollbars unless they are
29297 2005-09-23 Jackson Harper <jackson@ximian.com>
29299 * TreeView.cs: We don't need to expand the invalid area when the
29300 selection changes, as this is all drawn in the node's bounding
29301 box. The area needs to be expanded (previous typo was contracting
29302 it) when the focus rect moves.
29304 2005-09-23 Jackson Harper <jackson@ximian.com>
29306 * TreeView.cs: Display the selection box under the correct
29307 circumstances. We were rendering white text with no selection box
29310 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
29312 * TextControl.cs(Split): Now updates selection start/end if it points
29313 into a line that's being split. Fixes a FIXME and bug #75258
29315 2005-09-23 Jackson Harper <jackson@ximian.com>
29318 * ListControl.cs: Don't use the path when retrieving binding
29319 managers from the binding context. My bat sense tells me that the
29320 path is only used on insertion.
29322 2005-09-22 Jackson Harper <jackson@ximian.com>
29324 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29326 2005-09-22 Jackson Harper <jackson@ximian.com>
29328 * Splitter.cs: There are special cursors used for splitting.
29329 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29331 2005-09-22 Jackson Harper <jackson@ximian.com>
29333 * Splitter.cs: Change the cursor appropriately when the splitter
29334 is moused over, so the user actually knows there is a splitter
29337 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29339 * Label.cs : Fix ToString method to give same output as MS.NET
29341 2005-09-22 Jackson Harper <jackson@ximian.com>
29343 * TreeView.cs: Create the scrollbars when the handle is created
29344 and add them right away, just make them invisble. Also account for
29345 the window being shrunk vertically to the point that the vert
29346 scrollbar needs to be added.
29347 - Remove some 0.5 adjustments to get around anti aliasing issues.
29349 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
29351 * MainMenu.cs: Fixes default value
29352 * MenuItem.cs: Fixes default value
29354 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
29356 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29358 2005-09-21 Jackson Harper <jackson@ximian.com>
29360 * Control.cs: Don't try to set the border style on the window if
29361 it hasn't been created. When the window is created the border
29362 style will be used.
29364 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29366 * Control.cs (Update): Don't call XplatUI if we don't have a
29369 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29371 * ContainerControl.cs: Instead of throwing an exception, print
29372 a one-time warning about Validate not being implemented
29373 * XplatUIWin32.cs: Removed debug output
29375 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29377 * Control.cs: Only set XplatUI background if we expect the windowing
29378 system to handle the background. This stops controls that draw their
29379 own background from flickering
29381 * XplatUIX11.cs: Support custom visuals and colormaps for window
29382 creation. This allows, amongst other things, using MWF X11 windows
29385 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29387 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29388 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29389 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29390 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29391 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29392 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29393 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29394 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29395 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29396 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29397 GridColumnStylesCollection.cs,
29398 IDataGridColumnStyleEditingNotificationService.cs,
29399 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29400 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29401 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
29402 TreeNodeCollection.cs, AmbientProperties.cs,
29403 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29404 DataObject.cs, ErrorProvider.cs, Splitter.cs,
29405 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29406 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29407 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29408 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29409 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29410 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29411 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29412 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29413 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29414 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29415 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29416 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29417 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29418 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29419 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29420 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29421 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29422 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29423 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29424 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29425 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29426 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29427 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29428 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29429 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29430 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29431 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29432 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29433 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29434 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29435 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29436 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29437 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29438 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29439 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29441 2005-09-21 Jackson Harper <jackson@ximian.com>
29443 * TreeNode.cs: Call Before/After Expand not Collapse when
29446 2005-09-20 Jackson Harper <jackson@ximian.com>
29448 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29450 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29454 - Fixes proper storing of subitems
29455 - Fixes not updated items
29457 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29459 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29460 things if our window handle isn't created yet. Also disabled
29461 debug for TextBoxBase
29463 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29465 * MenuAPI.cs: Remove filtering of events to allow menu usage
29467 2005-09-20 Miguel de Icaza <miguel@novell.com>
29469 * Cursor.cs: Allow null to be passed to Cursor.Current.
29471 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
29473 * ThemeWin32Classic.cs:
29474 - Change some private methods/fields to protected virtual so that
29475 they can be accessed and overriden in derived classes
29476 - First refactoring of some methods. Derived themes now don't
29477 need to duplicate the complete code from ThemeWin32Classic
29479 - Added nice StatusBar
29480 - Derive from ThemeWin32Classic and not Theme
29481 - Removed duplicate ThemeWin32Classic code
29483 2005-09-20 Miguel de Icaza <miguel@novell.com>
29485 * Control.cs (ControlCollection.Add): If the value null is passed
29486 the control is ignored.
29488 Optimize this loop.
29490 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29492 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29493 PostQuitMessage state.
29494 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29496 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29498 * Application.cs: Our constructor will never get called, move
29499 initialization to fields; fixes bug #75933
29501 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29504 - Allow files to be selected properly using file name
29506 - Add ability to change diretory (absolute / relative)
29507 using file name combo box.
29509 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29512 - Fixes Multicolumn listboxes item wrong calculations
29513 - Allows to click when only one item is in the listbox
29514 - Fixes crash when no items using keyboard navigation
29516 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
29518 * ComboBox.cs: Reverted almost everything from the latest patch which
29521 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
29524 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29526 - When DropDownStyle is Simple, it does not show scrollbar
29527 to the last item of the list.
29528 - When DropDownStyle is Simple, it crashed when the list was
29529 scrolled down with the down cursor key.
29530 - Fixed a bug that when DropDownStyle is DropDownList, the
29531 selected item was not shown.
29532 - The position of the selected item was not preserved when
29533 the next dropdown happened.
29534 * ThemeWin32Classic.cs:
29535 - Items were wrapped at the right end.
29536 * CheckedListBox.cs:
29539 - Items should be fully shown.
29540 - When resizing and vertical scrollbar disappeared, the item
29541 of index 0 should be on the top of the list.
29542 - GetItemRectangle should consider the size of ver. scrollbar
29544 - SizingGrip area should not be allocated when it is not
29546 - Now it reflects MinWidth of the containing panel and
29547 fixed a crash that happens when its width becomes so small.
29549 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29551 * CheckedListBox.cs: Fixes bug 76028
29552 * ListBox.cs: Fixes bug 76028
29554 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29556 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29557 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29559 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
29561 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29563 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29565 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
29567 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29569 * IRootGridEntry.cs: Added
29570 * PropertyGridCommands.cs: Added
29571 * PropertiesTab.cs: Added missing methods and property
29572 * PropertyGridView.cs: Made class internal
29573 * PropertyGridTextBox.cs: Made class internal
29575 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29577 * MimeIcon.cs: Try to check some other environment variables
29578 if "DESKTOP_SESSION" returns "default"
29580 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29582 * ThemeNice.cs: Corrected background colors (e.g. menus)
29583 * ColorDialog.cs: Use correct background colors for controls
29585 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29587 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29589 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
29591 * RichTextBox.cs: Added initial implementation
29592 * lang.cs: Removed. Was accidentally checked in long time ago
29593 * TODO: Removed. Contents were obsolete
29595 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29597 * PropertiesTab.cs : Added
29599 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29601 * PropertyGrid.cs : Update
29602 * PropertyGridView.cs : Update
29603 * System.Windows.Forms.resx : Added images and strings
29605 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29607 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29609 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29611 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29612 a busy loop right after the Ungrab the X11 display is otherwise
29615 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
29617 * ThemeWin32Classic.cs: Optimise the use of clipping
29619 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
29621 * DataGrid.cs: fixes recursion bug
29623 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
29626 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29629 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
29631 * ThemeNice.cs: Draw nice ProgressBars
29633 2005-09-01 Miguel de Icaza <miguel@novell.com>
29635 * VScrollBar.cs: Another buglet found by Aaron's tool.
29637 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29640 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
29643 - Added nicer menu drawing
29647 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29649 * CreateParams.cs (ToString): Made output match MS
29650 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
29651 handle is already created (to avoid forcing window creation)
29652 * XplatUIX11.cs: Set window text to caption after creating window,
29653 in case Text was set before window was created
29654 * Form.cs: Use this.Text instead of a static string as caption
29656 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29658 * NotifyIcon.cs: Don't set the window to visible; this screws
29659 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29660 OnPaint without a bitmap)
29661 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
29662 happen very often anyway; we could add the check to the WM_PAINT
29663 event generation code
29665 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29667 * NotifyIcon.cs: Fill the icon area with a background color, to
29668 avoid 'residue' when transparent icons are drawn
29670 - Handle whole_window == client_window when destroying windows
29671 - SystrayAdd(): Set client_window to whole_window value to
29672 get mouse and other events passed to NotifyIcon
29674 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29676 * Form.cs: Set proper default for Opacity property
29678 - ShowSystray(): Don't bother creating telling the OS
29679 about the systray item if no icon is provided
29680 - Now handles WM_NCPAINT message to deal with whole/client window
29682 - Create window as visible to not get caught by Expose optimization
29683 * Hwnd.cs: Removed debug message
29684 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29685 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
29686 PaintEventStart/End to use new client argument
29688 - Commented out debug messages
29689 - Switched PaintEventStart/End to use new client argument
29690 * XplatUI.cs: Added client window bool to PaintEventStart()/
29691 PaintEventEnd() calls, to support drawing in non-client areas
29692 * XplatUIDriver.cs:
29693 - Added client window bool to PaintEventStart()/PaintEventEnd()
29694 calls, to support drawing in non-client areas
29695 - Added conditional compile to allow using MWF BeginInvoke
29698 - Added some conditional debug output
29699 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29700 whole/client window split
29701 - Implemented handling of client argument to PaintEventStart()/End()
29703 - Throw exception if BeginInvoke() is called and the window handle
29704 or one of the window's parent handles is not created
29705 - Added conditional compile to allow using MWF BeginInvoke on
29707 - get_Parent(): Only sets parent if handle is created. This avoids
29708 forcing window handle creation when parent is set.
29709 - Now fires Layout and Parent changed events in proper order
29710 - Switched to use Handle instead of window.Handle for Z-Order setting,
29711 the get_Parent() patch above causes us to possibly get null for 'window'
29712 - Implemented handling of client argument to PaintEventStart()/End()
29713 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29715 - Now sends a Refresh() to all child windows when Refresh() is called
29717 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
29719 * Form.cs: Added (non-functional) Opacity property
29720 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29722 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
29723 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29724 use export MONO_THEME=nice to activate it.
29725 Currently supported controls:
29729 - TabControl (TabAlignment.Top only, other will follow)
29730 * ThemeEngine.cs: Add theme nice
29731 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29734 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
29736 * Splitter.cs: Resize docked control and its neighbor.
29738 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29739 -- Making Windows with Menus layout correctly --
29740 * Form.cs : The first leg of the fix
29741 Menu setter - adjust Client Size as needed to make space for the menu
29742 SetClientSizeCore - doesn't call base version to be able to pass the
29743 menu handle to XplatUI.CalculateWindowRect
29744 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29745 * XplatUIX11.cs: The critical second leg of the fix
29746 GetWindowPos needs to use a recalculated client_rect
29747 so that resizing the window doesn't break layout of child controls.
29748 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29749 Lots of \t\n killed
29751 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
29753 * Label.cs: Now properly recalculates width and height on Font and Text
29754 changes if AutoSize is set
29756 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29757 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29759 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
29761 * ImageList.cs: Makes ToString method compatible with MS
29763 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
29765 * MenuAPI.cs: fixes bug 75716
29767 2005-08-11 Umadevi S <sumadevi@novell.com>
29768 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29770 2005-08-11 Umadevi S <sumadevi@novell.com>
29771 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29773 2005-08-10 Umadevi S <sumadevi@novell.com>
29774 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29776 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
29778 * Menu.cs: fixes bug 75700
29779 * MenuAPI.cs: fixes navigation issues
29781 2005-08-09 Umadevi S <sumadevi@novell.com>
29782 * CheckedListBox.cs - simple fix for GetItemChecked.
29784 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
29786 * ComboBox.cs: Serveral fixes
29787 * ListBox.cs: Serveral fixes
29789 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29791 * ComboBox.cs: Fixes FindString methods and GetItemHeight
29792 * ListBox.cs: Fixes FindString methods
29794 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29796 * DataGrid.cs: fixes bugs exposed by new tests
29798 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
29800 * Mime.cs: Compile Mono assembly references only if compiling
29801 with Mono (Allows to build with VS.Net again)
29803 2005-07-28 Marek Safar <marek.safar@seznam.cz>
29805 * Control.cs (PaintControlBackground): Draw background image
29807 (CheckForIllegalCrossThreadCalls): Stubbed.
29809 * Form.cs (OnCreateControl): Center when should be centered.
29811 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29813 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
29815 * Binding.cs: Binding to properties should be case unsensitive
29817 2005-07-18 vlindos@nucleusys.com
29819 * DataGrid.cs: fixes setmember order
29821 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
29823 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29824 * FileDialog.cs: FileDialog is now resizable and uses the new
29827 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
29829 * DataGridTextBoxColumn.cs: default value
29830 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29831 * GridTableStylesCollection.cs: fixes checking MappingName
29832 * DataGridDrawingLogic.cs: fixes drawing logic issues
29833 * DataSourceHelper.cs: rewritten to make compatible with more data sources
29834 * DataGrid.cs: fixes
29836 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
29838 * MimeGenerated.cs: Use case sensitive comparer for
29839 NameValueCollections
29841 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
29843 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
29844 * ThemeWin32Classic.cs: bug fixes, code refactoring
29845 * DataGridDrawingLogic.cs: bug fixes, code refactoring
29846 * DataGrid.cs: bug fixes, code refactoring
29847 * DataGridTextBox.cs: bug fixes, code refactoring
29848 * DataGridColumnStyle.cs: bug fixes, code refactoring
29849 * Theme.cs: bug fixes, code refactoring
29851 2005-07-01 Peter Bartok <pbartok@novell.com>
29853 * TextControl.cs: Quick fix for the reported crash on ColorDialog
29854 and other text box usage
29856 2005-07-01 Jackson Harper <jackson@ximian.com>
29858 * TabControl.cs: Make sure the bottom of the tab covers the pages
29861 2005-06-30 Peter Bartok <pbartok@novell.com>
29863 * Form.cs (ShowDialog): Assign owner of the dialog
29864 * TextBoxBase.cs: Always refresh caret size when deleting, caret
29865 might have been moved to a tag with different height
29867 2005-06-30 Jackson Harper <jackson@ximian.com>
29869 * Form.cs: Don't create an infinite loop when setting focus
29870 * MenuItem.cs: Don't dirty the parents if we don't have any
29872 2005-06-29 Ben Maurer <bmaurer@ximian.com>
29874 * LibSupport.cs: Rename
29876 2005-06-29 Peter Bartok <pbartok@novell.com>
29878 * TextBoxBase.cs: Re-align caret after deleting a character
29880 - DeleteChars(): Ensure that tag covers the provided position
29881 - StreamLine(): Drop reference for dropped tag
29883 2005-06-29 Peter Bartok <pbartok@novell.com>
29886 - Selections now work properly, anchoring at the initial location
29887 and properly extending in either direction (SetSelectionToCaret(),
29888 SetSelectionStart() and SetSelectionEnd())
29889 - No longer redraws the whole control on selection change, now
29890 calculates delta between previous and new selection and only
29891 invalidates/redraws that area
29892 - Fixed FindPos() math off-by-one errors
29893 - Changed DeleteChars() to verify the provided tag covers the
29894 provided position, selections may have a tag that doesn't cover
29895 the position if the selection is at a tag border
29896 - Fixed off-by-one errors in DeleteChars()
29897 - Added missing streamlining check in DeleteChars() to remove
29899 - Implemented Invalidate() method, now properly calculates exposures
29900 between two given lines/positions
29901 - Implemented SetSelection()
29902 - Obsoleted and removed FixupSelection()
29903 - Improved RecalculateDocument() logic, removing code duplication
29905 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29907 * LibSupport.cs: changes to match different input/output arguments.
29909 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29911 * LibSupport.cs: added libsupport.so init routine.
29913 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
29915 * ControlBindingsCollection.cs
29916 - Throws an exception on null datasource when adding
29917 - Checks for duplicated bindings when adding
29919 2005-06-28 Jackson Harper <jackson@ximian.com>
29921 * TreeView.cs (OnKeyDown): Support left and right properly
29922 (navigates as well as expanding and collapsing.
29923 - Add support for Multiply, this expands all the selected nodes
29925 - Fix some tabbing.
29927 2005-06-28 Jackson Harper <jackson@ximian.com>
29929 * TreeView.cs: Implement keyboard navigation, currently supports,
29930 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29931 support for toggling checkboxes with the space bar.
29933 2005-06-28 Jackson Harper <jackson@ximian.com>
29935 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29938 2005-06-28 Jackson Harper <jackson@ximian.com>
29940 * TreeView.cs: Add missing event.
29942 2005-06-27 Peter Bartok <pbartok@novell.com>
29945 - Made line ending size configurable (now allows for counting
29946 lineendings as \n or \r\n)
29947 - Added margin to viewport to keep caret visible on right side
29948 - Fixed translation routines for line/pos to documentpos to consider
29949 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29950 - Fixed some line-endings to be unix style
29951 - Fixed Document.FormatText to perform it's calculations 1-based
29952 - Added descriptions for a few methods that might otherwise get
29954 - Added NOTE section with some basic conventions to remember at
29955 the top of the file
29956 - Major fixup for RichTextBox selection drawing:
29957 * Fixed crashes when multiple tags on a single line were selected
29958 * fixed selection box drawing not overlaying text
29959 * fixed bogus offset calculation for tags not starting at index 1
29960 * Switched behaviour from using multiple Substrings of a
29961 StringBuilder.ToString() to using multiple
29962 StringBuilder.ToString(start, length) statements, hoping this is
29963 faster (kept original version commented out in the code, in case
29964 original version was faster)
29965 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
29967 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29970 2005-06-27 Jackson Harper <jackson@ximian.com>
29972 * TabControl.cs: Move to the left and right with the arrow
29973 keys. These keys don't cycle beyond first and last like
29974 tab. Refresh all the tabs when scrolling them to the left or
29977 2005-06-27 Jackson Harper <jackson@ximian.com>
29980 - ToString: Added method
29981 - CreateParams: Remove TODO and comment
29982 - OnKeyDown: Cycle through bounds properly.
29983 - SelectedIndex: Scroll to the right or left if we need to
29984 display the newly selected tab.
29986 2005-06-23 Jackson Harper <jackson@ximian.com>
29988 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29991 2005-06-23 Jackson Harper <jackson@ximian.com>
29993 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29994 CTRL-SHIFT-TAB, and HOME, END are there any others?
29996 2005-06-23 Jackson Harper <jackson@ximian.com>
29998 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30000 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30002 * DataGridTextBoxColumn.cs: fixes and enhancements
30003 * ThemeWin32Classic.cs: fixes and enhancements
30004 * DataGridBoolColumn.cs: fixes and enhancements
30005 * DataGridDrawingLogic.cs: fixes and enhancements
30006 * CurrencyManager.cs: fixes and enhancements
30007 * DataGrid.cs: fixes and enhancements
30008 * DataGridColumnStyle.cs: fixes and enhancements
30010 2005-06-22 Jackson Harper <jackson@ximian.com>
30012 * TabControl.cs: Add some missing methods that just call into the
30013 base. Make the TabPageCollection's IList interface behave in the
30014 same manner as the MS implementation.
30016 2005-06-22 Peter Bartok <pbartok@novell.com>
30018 * TextControl.cs: Added sanity check
30020 - Fixed wrapping behaviour, don't set wrap on single line controls
30021 (this fixes the breakage of colordialog introduced in an earlier
30023 - Added rudimentary support for autoscrolling right-aligned controls
30024 (still needs fixing, also, center alignment scroll is missing)
30026 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30028 * ScrollBar.cs: Fixes thumbpos on Maximum values
30030 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
30032 * PropertyGridView.cs: Pass context information to UITypeEditors
30034 2005-06-21 Peter Bartok <pbartok@novell.com>
30037 - Now calling PositionCaret with absolute space coordinates
30038 - Enabled vertical scrolling
30039 - Better tracking of scrollbar changes, tied into WidthChange
30041 - Improved cursor tracking
30042 - Removed debug output
30044 - PositionCaret coordinates are now works in absolute space, not
30046 - Improved tracking of document size
30047 - Added events for width and height changes
30049 2005-06-21 Peter Bartok <pbartok@novell.com>
30051 * Form.cs: Set focus to active control when form is activated
30053 - Added word-wrap functionality to RecalculateLine()
30054 - Added some short function descriptions for VS.Net to aid in
30055 writing dependent controls
30056 - Added Caret property, returning the current coords of the caret
30057 - Added ViewPortWidth and ViewPortHeight properties
30058 - Added Wrap property
30059 - Added CaretMoved event
30060 - Removed some old debug code
30061 - Split() can now create soft splits
30062 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30063 - Added method to format existing text
30064 - Fixed size/alignment calculations to use viewport
30065 - RecalculateDocument now can handle changing line-numbers while
30069 - Added some wrap logic, we don't wrap if alignment is not left
30070 - Added casts for scrollbar var, base class switched types to
30071 also support RichTextBoxA
30072 - Implemented handling of scrollbar visibility flags
30075 - Switched scrollbars type to RichTextBoxScrollBars to support
30077 - Added tracking of canvas width/height
30078 - Switched scrollbars to be not selectable (to keep focus on text)
30079 - Added central CalculateDocument() method to handle all redraw
30081 - Added ReadOnly support
30082 - Added WordWrap support
30083 - Fixed handling of Enter key (we now treat it as a DialogKey)
30084 - Fixed caret positioning when h or v scroll is not zero
30085 - Fixed placing/generation of vertical scrollbar
30086 - Added CalculateScrollBars() method to allow updating scrollbar
30087 limits and visibility
30088 - Fixed handling of horizontal scroll
30089 - Added handling of vertical scroll
30090 - Implemented auto-'jump' when caret moves to close to a left or
30091 right border and there is text to be scrolled into view (currently
30092 there's the potential for a stack overflow, until a bug in
30093 scrollbar is fixed)
30095 2005-06-21 Geoff Norton <gnorton@customerdna.com>
30097 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
30099 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
30103 - return application/x-zerosize for files with size zero
30104 (if no extension pattern matches).
30105 - check matches collection for strings too.
30106 - return only the first mime type if the name value
30107 collection has more than one mime type.
30109 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
30111 * PropertyGrid.cs: Cleaned up some TODOs
30112 * PropertyGridView.cs: Added support for UITypeEditors
30114 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30116 * DataGrid.cs: clears cached value
30118 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30120 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
30121 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
30122 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
30123 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
30125 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
30127 * ThemeWin32Classic.cs: fixes colour
30129 2005-06-15 Peter Bartok <pbartok@novell.com>
30131 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
30132 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
30133 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
30134 * Control.cs: Added some MWFCategory and MWFDescription attributes
30135 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
30137 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
30139 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
30142 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
30144 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
30145 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
30146 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
30147 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
30148 * DataGrid.cs: default datagrid settings for Default Styles, fixes
30149 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
30151 2005-06-13 Jackson Harper <jackson@ximian.com>
30153 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
30154 isn't printed when the user enables dropping. (X11 does accept
30157 2005-06-13 Jackson Harper <jackson@ximian.com>
30159 * TreeView.cs: Remove some TODOS.
30161 2005-06-13 Jackson Harper <jackson@ximian.com>
30163 * Form.cs: Hook into the mdi framework.
30164 * MdiClient.cs: Use the base control collections add method so
30165 parents get setup correctly. Set the default back colour and dock
30167 * MdiChildContext.cs: New class, this bad actor handles an
30168 instance of an MDI window. Right now there is only basic
30169 support. You can drag, close, and resize windows. Minimize and
30170 Maximize are partially implemented.
30172 2005-06-13 Jackson Harper <jackson@ximian.com>
30174 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30175 freaky when both vals are negative. NOTE: There are probably other
30176 places in XplatUIX11 that this needs to be done.
30178 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
30180 * DataGrid.cs: implement missing methods, move KeyboardNavigation
30181 * DataGridColumnStyle.cs: fixes signature
30183 2005-06-12 Jackson Harper <jackson@ximian.com>
30185 * XplatUIX11.cs: Use sizing cursors similar to the ones on
30188 2005-06-11 Jackson Harper <jackson@ximian.com>
30190 * StatusBarPanel.cs: Signature cleanups. Implement
30193 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
30195 * DataGridTextBoxColumn.cs: Honors aligment
30196 * GridColumnStylesCollection.cs: Contains is case unsensitive
30197 * GridTableStylesCollection.cs: several fixes
30198 * DataGridTableStyle.cs: default column creation
30199 * DataGridDrawingLogic.cs: fixes
30200 * CurrencyManager.cs: ListName property
30201 * DataGrid.cs: multiple styles support
30202 * DataGridColumnStyle.cs: fixes
30205 2005-06-10 Peter Bartok <pbartok@novell.com>
30207 * Control.cs(Select): Moved SetFocus call to avoid potential
30208 loops if controls change the active control when getting focus
30209 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30210 the up/down buttons
30212 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
30214 * ImageListConverter.cs: Implemented
30216 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30218 * MonthCalendar.cs: Wired in NumericUpDown control for year
30220 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30222 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30223 DoubleClick events, since they are not meant to be fired.
30225 2005-06-09 Peter Bartok <pbartok@novell.com>
30227 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30228 Jonathan's standalone controls into MWF, implemented missing
30229 events, attributes and methods; added xxxAccessible classes
30230 * AccessibleObject.cs: Made fields internal so other classes
30231 can change them if needed
30233 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
30235 * UpDownBase.cs: Complete implementation
30236 * NumericUpDown.cs: Complete implementation
30237 * DomainUpDown.cs: Complete implementation
30239 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
30241 * DataGridTextBoxColumn.cs: drawing fixes
30242 * DataGridCell.cs: fixes ToString method to match MSNet
30243 * DataGridTableStyle.cs: fixes
30244 * DataGridBoolColumn.cs: fixes, drawing
30245 * DataGridDrawingLogic.cs: fixes, new methods
30246 * DataGridTextBox.cs: Keyboard and fixes
30248 - Keyboard navigation
30250 - Row selection (single, multiple, deletion, etc)
30253 2005-06-07 Jackson Harper <jackson@ximian.com>
30255 * ThemeWin32Classic.cs: Clear the background area when drawing
30258 2005-06-06 Peter Bartok <pbartok@novell.com>
30260 * ImageListStreamer.cs: Fixed signature for GetData
30261 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30263 - Added missing ChildAccessibleObject class
30264 - Added missing OnXXXFocus overrides, switched to using those
30265 instead of the event handler
30267 - Added Parent property for ControlAccessibleObject
30270 - Added ResetBindings()
30271 * ListBindingConverter.cs: Implemented some methods
30272 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30273 * ImageList.cs: Implemented basic handle scheme, removed TODOs
30274 * ContainerControl.cs: Fixed signature, now subscribing to the
30275 ControlRemoved event instead of overriding the handler, LAMESPEC
30276 * CurrencyManager.cs: Added missing attribute
30277 * MonthCalendar.cs: Added missing properties
30279 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30281 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30283 2005-06-06 Gaurav Vaish and Ankit Jain
30285 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30286 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30288 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30290 * Control.cs: fixes CreateParams Width / Height.
30292 2005-06-05 Peter Bartok <pbartok@novell.com>
30294 * Win32DnD.cs: Removed compilation warnings
30296 2005-06-05 Peter Bartok <pbartok@novell.com>
30298 * Control.cs (CreateParams): Since we don't know if one of the
30299 properties we use is overridden, lets make sure if we fail accessing
30300 we continue with a backup plan
30302 2005-06-05 Peter Bartok <pbartok@novell.com>
30305 - Removed debug output
30306 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30308 - Plugged resource leak
30309 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30312 2005-06-05 Peter Bartok <pbartok@novell.com>
30314 * XplatUIWin32.cs: Removed DnD code
30315 * Win32DnD.cs: Implemented drop source and drop target functionality
30317 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30319 * UpDownBase.cs: remove duplicate addition of event, enable some code
30320 that was commented out.
30321 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30322 Validate input when a key is pressed. It works fine now for every
30323 combination of Hexadecimal. Only missing some drawing love when sharing
30324 space with other controls.
30326 2005-06-04 Peter Bartok <pbartok@novell.com>
30329 - We need to pass a window for DragDrop, so enable callback events
30330 - Added DnD callback events when being a DragSource
30331 * XplatUI.cs (StartDrag): Added window handle argument
30332 * XplatUIDriver.cs (StartDrag): Added window handle argument
30333 * QueryContinueDragEventArgs: Made fields internally accessible so
30334 drivers can set them
30335 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30338 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
30340 * DataGridTextBoxColumn.cs: column text editing
30341 * DataGridTableStyle.cs: Respect columns styles created by the user
30342 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30343 * DataGridBoolColumn.cs: bool column editing
30344 * DataGrid.cs: fixes to scrolling, properties, etc
30345 * DataGridTextBox.cs: handle keyboard
30346 * DataGridColumnStyle.cs: fixes
30348 2005-06-02 Jackson Harper <jackson@ximian.com>
30350 * ImageListStreamer.cs: Somewhat broken implementation of
30351 GetObjectData. The RLE needs some work to match MS properly.
30353 2005-06-02 Jackson Harper <jackson@ximian.com>
30355 * X11Dnd.cs: Attempting to keep at least one file in MWF
30358 2005-06-02 Peter Bartok <pbartok@novell.com>
30360 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30363 2005-06-02 Peter Bartok <pbartok@novell.com>
30365 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30366 * XplatUI.cs: Added DoDragDrop() method
30367 * XplatUIDriver.cs: Added DoDragDrop() method
30369 2005-06-02 Jackson Harper <jackson@ximian.com>
30371 * Splitter.cs: Implement BorderStyle.
30373 2005-06-02 Jackson Harper <jackson@ximian.com>
30375 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30376 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30379 2005-06-02 Peter Bartok <pbartok@novell.com>
30382 - Added Data setter
30383 - Fixed broken insertion code for SetData, now also
30384 overwrites any existing entry of the same format name
30385 * Hwnd.cs: Added list of pointers that automatically gets
30386 freed when the window is disposed
30387 * XplatUI.cs: Call driver initialization method when loading
30390 - OnDragLeave takes EventArgs, not DragEventArgs
30391 - Added setting of WS_EX_ACCEPTFILES style when dropping is
30393 - Forces style update when drop state changes
30394 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30395 not perfect since we cannot (yet) call the IDataObject.GetData()
30396 method, we keep getting 0x80004005 error, dunno why)
30398 2005-06-02 Peter Bartok <pbartok@novell.com>
30400 * DragEventArgs.cs: Make fields internal so we can cache the
30401 object and re-set the fields from XplatUI
30403 2005-06-02 Jackson Harper <jackson@ximian.com>
30405 * Control.cs: Add some internal methods so the DnD subsystem can
30406 raise DnD events. Also call into the driver when AllowDrop is set.
30408 * XplatUIDriver.cs: New method for setting whether or not a window
30409 is allowed to accept drag and drop messages.
30411 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
30413 * ScrollBar.cs: Make sure that values sent in Scroll events
30414 are always between Maximum and Minimum.
30416 2005-06-01 Marek Safar <marek.safar@seznam.cz>
30418 * Menu.cs: Call MenuChanged when menuitem visibility has been
30420 * MenuItem.cs: Rebuild menu when item is (not) visible.
30421 * MainMenu.cs: MainMenu has special MenuChanged.
30422 * Theme.cs: Caption and FrameBorderSize are not fixed.
30423 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30424 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30426 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30427 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30429 2005-05-30 Jackson Harper <jackson@ximian.com>
30431 * DataFormat.cs: We can't statically initialize this stuff because
30432 it calls into the xplatui and could create a loop. So we lazy init
30435 2005-05-28 Jackson Harper <jackson@ximian.com>
30437 * Control.cs: Proper implementation of Product(Name/Version).
30439 2005-05-27 Jackson Harper <jackson@ximian.com>
30441 * DataObject.cs: Dont crash if no data is found.
30443 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30444 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30445 as per status page, guessing it should be set to true
30447 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
30449 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30450 * DataGridTableStyle.cs: set proper formatting text, def header text
30451 * ThemeWin32Classic.cs: new themable paramaters
30452 * DataGridBoolColumn.cs: paint check box, get data, fixes
30453 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30454 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30455 * DataGridColumnStyle.cs: fixes
30456 * Theme.cs: new themable paramaters
30458 2005-05-26 Peter Bartok <pbartok@novell.com>
30460 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30462 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30463 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30465 2005-05-24 Peter Bartok <pbartok@novell.com>
30467 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30468 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30469 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30470 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30471 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30472 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30473 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30474 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30475 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30476 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30477 missing attributes, etc
30478 * DataGridPreferredColumnWidthTypeConverter.cs: Added
30480 2005-05-24 Peter Bartok <pbartok@novell.com>
30482 * Help.cs: Added, implemented trivial functions, throws up MessageBox
30483 when user tries to get help
30484 * DataObject.cs, DataFormats.cs, LinkArea.cs,
30485 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30486 to suppress warnings
30487 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30488 avoid unreachable code warning
30490 2005-05-20 Peter Bartok <pbartok@novell.com>
30492 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30494 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30496 * DataGridTextBoxColumn.cs: Basic painting methods
30497 * DataGridTableStyle.cs: Set table style in the column
30498 * ThemeWin32Classic.cs: Use Theme for colors
30499 * DataGridDrawingLogic.cs: Implement more drawing
30500 * DataGrid.cs: drawing, theming, enhacements, fixes
30501 * DataGridColumnStyle.cs: fixes, drawing
30502 * Theme.cs: theming for Datagrid
30504 2005-05-20 Peter Bartok <pbartok@novell.com>
30506 * Cursor.cs: Implemented GetObjectData() method
30508 2005-05-20 Peter Bartok <pbartok@novell.com>
30510 * Cursors.cs: Added setting of cursor name
30512 - Implemented constructors
30513 - Implemented Draw and DrawStretched
30514 - Implemented Current property
30515 - Implemented == and != operators
30516 - Implemented Dispose()
30517 - Implemented ToString
30518 - Added missing attributes
30520 - Added missing reset for OverrideCursor when DoEvents is called
30521 - Fixed creation of cursor, logic was wrong
30523 - Added missing reset for OverrideCursor when DoEvents is called
30524 - Fixed creation of cursor, bit arrays were swapped
30525 * Clipboard.cs: Removed obsolete MonoTODO attribute
30527 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30529 * ComboBox.cs: fixes OnSelectedItemChanged
30530 * ControlBindingsCollection.cs: fixes item range check
30532 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30535 - Calc preferred height properly
30536 - Implement missing properties
30538 * NumericUpDown.cs: Implement missing events
30540 2005-05-19 Jackson Harper <jackson@ximian.com>
30542 * TabControl.cs: New method that resizes the tab pages before
30543 redrawing them. This as needed as the control is double buffered
30544 and sizing will not be recalculated unless ResizeTabPages is
30546 * TabPage.cs: Set base.Text instead of Text in the constructor so
30547 that UpdateOwner does not get called. Use the new Redraw method of
30548 TabControl instead of Refresh so the sizing is recalculated.
30549 * ThemeWin32Classic.cs: Draw the text for button tabs.
30551 2005-05-19 Jackson Harper <jackson@ximian.com>
30553 * Control.cs: Paint control background images. Fix typo where
30554 PaintControlBackground was not getting called correctly.
30556 2005-05-19 Peter Bartok <pbartok@novell.com>
30558 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30559 I can investigate, apparently I broke FileDialog
30561 2005-05-19 Marek Safar <marek.safar@seznam.cz>
30563 * AxHost.cs: Some simple properties.
30564 * Control.cs: window must be accessible after ctor.
30565 * Form.cs: Added TransparencyKey property.
30566 * TextBoxBase.cs: Implemented Clear. Text property can be null.
30567 * XplatUIWin32.cs: SetBorderStyle implemented.
30569 2005-05-18 Peter Bartok <pbartok@novell.com>
30571 * DataObject.cs: Entries are not global but particular to the
30572 DataObject, now it behaves that way
30573 * XplatUIWin32.cs: Implemented Clipboard methods
30574 * Clipboard.cs: Implemented
30575 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30576 * XplatUIOSX.cs: Updated to final clipboard prototypes
30577 * XplatUIX11.cs: Implemented Clipboard methods
30578 * XplatUIDriver.cs: Updated to final clipboard prototypes
30579 * XplatUIStructs.cs:
30580 - Added BITMAPINFOHEADER struct
30581 - Added ClipboardFormats enum
30583 - Added ClipboardStruct
30584 - Added Atom enum items for clipboard types
30585 - Fixed atom types for Selection event structures
30587 - Added internal properties and methods for drivers to enumerate
30589 - Switched initialization method to allow drivers to assign their
30590 own IDs even for the MS predefined clipboard IDs
30591 * XplatUI.cs: Updated to final clipboard interface
30593 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30594 * PropertyGridView.cs: Fixed compiler warnings.
30596 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30597 * PropertyGrid.cs: Added some event calls
30598 * PropertyGridView.cs: Change drawing code to use double buffering
30599 * PropertyGridTextBox.cs: Changed Text property name
30600 * GridItem.cs: Added Bounds property.
30601 * GridEntry.cs: Added Bounds property.
30603 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
30605 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30606 since GetType() may not return the correct type if the object is
30609 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
30611 * TreeNodeCollection.cs: fixes get/set item ranges
30613 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30615 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30617 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30619 * ComboBox.cs: Fix item range comparation
30620 * ListView.cs: Fix item range comparation
30622 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30625 - Clear example panel when OnPaint is called
30626 - Better solution for displaying the example panel text
30627 - Select default indexes in the ListBoxes
30629 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30631 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
30633 2005-05-11 Peter Bartok <pbartok@novell.com>
30635 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30636 * SelectionRangeConverter.cs: Implemented
30637 * PropertyGrid.cs: Fixed attribute value
30639 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30640 - Added Sebastien Pouliot's CAS Stack Propagation fixes
30641 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30642 that's common to all drivers. First methods to go there are
30643 Sebastien Pouliot's CAS Stack Propagation helper methods
30644 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30645 Sebastien Pouliot for CAS Stack Propagation
30647 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30650 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30652 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
30654 * DataGridTextBoxColumn.cs: fixed some members
30655 * GridColumnStylesCollection.cs: indexed column is case insensitive
30656 * DataGridTableStyle.cs: fixes
30657 * ThemeWin32Classic.cs: add new theme parameter
30658 * Theme.cs: add new theme parameter
30659 * DataGridDrawingLogic.cs: Datagrid's drawing logic
30660 * DataGrid.cs: fixes, new internal properties, etc.
30661 * DataGridColumnStyle.cs: allows to set grid value
30664 2005-05-10 Peter Bartok <pbartok@novell.com>
30666 * AccessibleObject.cs:
30667 - Removed MonoTODO attribute on help, method is correct
30668 - Fixed Bounds property
30669 * AxHost.cs: Moved MonoTODO
30670 * ButtonBase.cs: Now setting AccessibleObject properties
30671 * RadioButton.cs: Setting proper AccessibleObject role
30672 * CheckBox.cs: Setting proper AccessibleObject role
30673 * ControlBindingsCollection.cs: Added properties, methods and attributes
30674 * DataFormats.cs: Fixed awkward internal API, and changed to enable
30675 userdefined DataFormats.Format items as well
30676 * ListControl.cs: Removed data_member from the public eye
30677 * OpenFileDialog.cs:
30678 - Made class sealed
30679 - Added missing attributes
30680 * SaveFileDialog.cs: Added missing attributes
30681 * ImageListStreamer.cs: Fixed code that caused warnings
30682 * LinkLabel.cs: Removed unreachable code
30683 * TreeView.cs: Fixed code that caused warnings
30684 * PropertyGridView.cs: Fixed code that caused warnings
30685 * GridColumnStylesCollection.cs: Added missing attributes
30686 * GridTableStylesCollection: Added missing attribute
30687 * PropertyManager: Added .ctor
30688 * SecurityIDType: Added
30689 * DataObject.cs: Implemented class
30690 * LinkArea.cs: Added missing attribute
30692 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
30694 * RadioButton.cs: call base method to allow to fire OnClick event
30695 * UpDownBase.cs: OnMouseUp call base method
30696 * CheckedListBox.cs: call base method before returning
30697 * TrackBar.cs: call base method before returning
30700 2005-05-10 Peter Bartok <pbartok@novell.com>
30702 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30705 2005-05-10 Peter Bartok <pbartok@novell.com>
30707 * DataFormats.cs: Implemented
30708 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30709 XplatUIX11.cs: Added Clipboard APIs
30710 * XplatUIWin32.cs: Implemented Clipboard APIs
30711 * FolderBrowserDialog.cs: Added missing event, attributes
30713 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
30715 * CheckBox.cs: call base method to allow to fire OnClick event
30717 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
30719 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30721 2005-05-06 Peter Bartok <pbartok@novell.com>
30723 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30724 * Screen.cs: Implemented
30725 * HelpNavigator.cs: Added
30726 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30728 * HelpProvider.cs: Implemented all we can do until we have a CHM
30729 help library (which means that "What's This" does work now)
30731 2005-05-06 Jackson Harper <jackson@ximian.com>
30733 * XplatUIX11.cs: Fix waking up the main loop.
30735 2005-05-05 Peter Bartok <pbartok@novell.com>
30737 * XplatUI.cs: Updated revision
30738 * Form.cs: Removed enless loop
30739 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30740 * Label.cs (OnPaint): Added call to base.OnPaint()
30741 * ToolTip.cs: Made ToolTipWindow reusable for other controls
30742 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30743 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30745 * ButtonBase.cs: Moved base.OnPaint() call to end of method
30746 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30747 to ToolTip.ToolTipWindow for drawing and size methods; this allows
30748 reuse of ToolTipWindow by other controls
30749 * SizeGrip.cs: Moved base.OnPaint() call to end of method
30750 * XplatUIX11.cs: Now clipping drawing area (experimental)
30751 * PictureBox.cs: Moved base.OnPaint() call to end of method
30752 * Theme.cs: Fixed ToolTip abstracts to match new format
30753 * ErrorProvider.cs: Implemented
30755 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
30757 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30761 - Implements LinkBehavior
30762 - Fixes many issues
30764 2005-05-03 Jackson Harper <jackson@ximian.com>
30766 * ListView.cs: Calculate the scrollbar positioning on resize and
30767 paint, so they get put in the correct place.
30769 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30771 * ColorDialogs.cs: The small color panels are now handled by
30772 SmallColorControl. This fixes drawing of the focus rectangle
30773 and adds a 3D border.
30775 2005-05-03 Peter Bartok <pbartok@novell.com>
30777 * Control.cs: Modified version of Jonathan Chamber's fix for
30780 2005-05-03 Jackson Harper <jackson@ximian.com>
30782 * ListView.cs: Remove redraw variable. Control now handles whether
30783 or not a redraw needs to be done, and will only raise the paint
30784 event if redrawing is needed.
30786 2005-05-03 Jackson Harper <jackson@ximian.com>
30788 * Splitter.cs: No decorations for the splitter form. Cache the
30791 2005-05-03 Jackson Harper <jackson@ximian.com>
30793 * TreeView.cs: Use dashed lines to connect nodes. Use the
30794 ControlPaint method for drawing the focus rect instead of doing
30797 2005-05-02 Peter Bartok <pbartok@novell.com>
30799 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30801 2005-04-29 Jackson Harper <jackson@ximian.com>
30803 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30804 entire image buffer. Just clear the clipping rectangle.
30806 2005-04-29 Jackson Harper <jackson@ximian.com>
30808 * ThemeWin32Classic.cs: Don't draw list view items that are
30809 outside the clipping rectangle.
30811 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
30813 * ListBox.cs: added horizontal item scroll
30815 2005-04-29 Jackson Harper <jackson@ximian.com>
30817 * ThemeWin32Classic.cs: Remove some old debug code that was
30818 causing flicker with the new double buffering code.
30820 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
30822 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30823 behave like combobox and comboboxlist (still not sure if this is
30826 2005-04-28 Jackson Harper <jackson@ximian.com>
30828 * ThemeWin32Classic.cs: Don't fill the middle of progress
30829 bars. This fills areas outside of the clip bounds that don't need
30832 2005-04-28 Jackson Harper <jackson@ximian.com>
30834 * Control.cs: Don't expose functionality to touch the image buffers.
30836 * ListView.cs: We do not need to (and no longer can) manipulate
30837 the image buffers directly. All of this is handled by Control.
30839 2005-04-28 Peter Bartok <pbartok@novell.com>
30841 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30842 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30843 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30845 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30848 - Adjust control's height for non-simple comboboxes (bug fix)
30850 * MenuAPI.cs: remove unused var
30851 * ScrollBar.cs: remove unsed var
30853 * ListBox.cs: unselect items when clearing
30855 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30857 * ListControl.cs: honors OnPositionChanged and default Selected Item
30858 * ListBox.cs: unselect items when clearing
30860 2005-04-27 Jackson Harper <jackson@ximian.com>
30862 * X11Keyboard.cs: Initialize a default keyboard and give a warning
30863 if a "correct" keyboard is not found. This will make us not crash,
30864 but might give some users bad keyboard layouts...seems to be the
30865 same thing rewind does.
30867 2005-04-27 Jackson Harper <jackson@ximian.com>
30869 * BindingManagerBase.cs: Attach the current/position changed
30870 handlers to their respective events.
30872 2005-04-27 Jackson Harper <jackson@ximian.com>
30874 * Control.cs: Make sure that the first WM_PAINT does a full draw,
30876 * ThemeWin32Classic.cs: Don't fill the background for picture
30877 boxes. This could overright user drawing.
30878 * ComboBox.cs: Just fill the clipping rect not the entire client
30879 rect when drawing the background. This prevents pieces of the
30880 image buffer from getting overwritten and is theoretically faster.
30882 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
30884 * ComboBox.cs: Databinding support fixes, fire missing events
30885 * ListControl.cs: implement missing methods and properties, fixes
30886 * ThemeWin32Classic.cs: Databiding support on Drawing
30887 * CheckedListBox.cs: Databinding support fixes, fire missing events
30888 * ListBox.cs: Databinding support fixes, fire missing events
30890 2005-04-25 Peter Bartok <pbartok@novell.com>
30892 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30894 2005-04-25 Jackson Harper <jackson@ximian.com>
30896 * TreeView.cs: Use the horizontal scrollbars height not width when
30897 determining how much of the client area is available.
30899 2005-04-25 Jackson Harper <jackson@ximian.com>
30901 * Control.cs: Double buffering is handled differently now. As per
30902 the spec, the extra buffer is created in the WM_PAINT message and
30903 passed down to the control's drawing code.
30911 * PropertyGridView.cs:
30923 * DateTimePicker.cs:
30925 * TreeView.cs: Update to new double buffering system.
30926 * MonthCalendar.cs: Uncomment block, as Capture is now
30927 working. Update to new double buffering
30928 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30929 * PaintEventArgs.cs: New internal method allows us to set the
30930 graphics object. This is used for double buffering.
30931 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30932 rectangle. The internal paint_area var has been removed from
30933 StatusBar. The clipping rect should be used instead.
30934 * Theme.cs: Give the PictureBox drawing method a clipping rect.
30935 * TabPage.cs: The RefreshTabs method was removed, so just call the
30936 tab controls Refresh method now.
30937 * TabControl.cs: Update to new double buffering. Make sure the
30938 handle is created before sizing the tab pages, otherwise we will
30939 get stuck in a loop.
30941 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
30943 * LinkLabel.cs: Fix typo, bug #74719; patch
30944 from Borja Sanchez Zamorano
30946 2005-04-22 Jackson Harper <jackson@ximian.com>
30948 * TreeNode.cs: Implement Handle stuff.
30949 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30951 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
30953 * DataGridTextBoxColumn.cs: call base constructors, fixes
30954 * GridColumnStylesCollection.cs: missing events, methods, and functionality
30955 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30956 * DataGridTableStyle.cs: implements create default column styles
30957 * DataGridBoolColumn.cs: which types can handle
30958 * DataGrid.cs: missing methods, fixes, new functionality
30959 * DataGridColumnStyle.cs: fixes
30961 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
30962 * FolderBrowserDialog.cs:
30963 - Use a thread to fill the TreeView
30964 - Adjusted some sizes
30966 2005-04-19 Peter Bartok <pbartok@novell.com>
30968 * LinkLabel.cs: (Re-)create the pieces when setting the Text
30969 property. Fixes #74360.
30971 2005-04-19 Jackson Harper <jackson@ximian.com>
30973 * XEventQueue.cs: Lock when getting the lockqueue size.
30974 * PictureBox.cs: Call base OnPaint
30976 2005-04-19 Peter Bartok <pbartok@novell.com>
30978 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30979 messages were no longer being processed (this broke BeginInvoke)
30982 2005-04-18 Jackson Harper <jackson@ximian.com>
30984 * TreeView.cs: buglet that caused node images to get drawn
30985 regardless of whether or not they were in the clipping rectangle.
30987 2005-04-18 Jackson Harper <jackson@ximian.com>
30989 * CurrencyManager.cs: There are four rules for GetItemProperties:
30990 - If the type is an array use the element type of the array
30991 - If the type is a typed list, use the type
30992 - If the list contains an Item property that is not an object, use
30994 - use the first element of the list if there are any elements in
30997 2005-04-17 Jackson Harper <jackson@ximian.oom>
30999 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31000 click. This handles offsets for scrolling properly and reduces
31001 memory. Also fixed GetNode to not offset now that TopNode works
31003 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31005 2005-04-17 Jackson Harper <jackson@ximian.com>
31007 * CursorConverter.cs: Initial implementation.
31009 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31011 * ListControl.cs: work towards complex data binding support on ListControl
31012 * CurrencyManager.cs: work towards complex data binding support on ListControl
31013 * ListBox.cs: work towards complex data binding support on ListControl
31016 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31018 * GridTableStylesCollection.cs: fixes name and constructor
31019 * DataGridTableStyle.cs: fixes
31020 * DataGridBoolColumn.cs: fixes names and constructors
31021 * DataGrid.cs: define methods and properties. Some init implementations
31022 * DataGridCell.cs: define methods and properties. Some init implementations
31023 * GridTablesFactory.cs: Define methods and properties
31025 2005-04-15 Geoff Norton <gnorton@customerdna.com>
31027 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
31028 graphics port changes. We still want the coordinates in global screen
31031 2005-04-14 Jackson Harper <jackson@ximian.com>
31033 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31034 check plus minus or checkbox clicks unless those features are enabled.
31036 2005-04-14 Jackson Harper <jackson@ximian.com>
31038 * TreeView.cs: Add methods for setting the top and bottom visible
31039 nodes. TreeNode::EnsureVisible uses these methods.
31040 * TreeNode.cs: Implement EnsureVisible
31042 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
31044 * Form.cs: Pospone menu assignation if the window has not been created yet
31045 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31048 2005-04-12 Jackson Harper <jackson@ximian.com>
31050 * TreeView.cs: Set the TopNode properly when scrolling
31051 occurs. This has the added benifit of reducing the amount of
31052 walking that needs to be done when drawing. Also removed an old
31054 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31056 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
31058 * Timer.cs: fixes interval setting when the timer is already enabled
31060 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
31062 * FolderBrowserDialog.cs: First approach
31064 2005-04-09 Peter Bartok <pbartok@novell.com>
31066 * FolderBrowserDialog: Added
31068 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
31070 * LinkLabel.cs: move drawing code into the theme
31071 * ThemeWin32Classic.cs: drawing code and painting background bugfix
31072 * Theme.cs: define DrawLinkLabel method
31074 2005-04-05 Jackson Harper <jackson@ximian.com>
31076 * BindingContext.cs: Use weak references so these bad actors don't
31077 stay alive longer then they need to.
31079 2005-04-05 Jackson Harper <jackson@ximian.com>
31081 * ListControl.cs: Basic implementation of complex databinding.
31083 * ListBox.cs: Add calls to ListControl databinding methods.
31085 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
31088 - Don't change PopupButtonState to Normal when the
31089 PopupButton gets pressed several times.
31090 - Renamed ButtonPanel to PopupButtonPanel
31092 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
31094 * ColorDialog.cs: Use cached objects instead of creating them
31095 * LinkLabel.cs: Use cached objects instead of creating them
31096 * Splitter.cs: Use cached objects instead of creating them
31097 * FontDialog.cs: Use cached objects instead of creating them
31098 * PropertyGridView.cs: Use cached objects instead of creating them
31099 * MessageBox.cs: Use cached objects instead of creating them
31100 * FileDialog.cs: Use cached objects instead of creating them
31101 * ThemeWin32Classic.cs: Use cached objects instead of creating them
31102 * TreeView.cs: Use cached objects instead of creating them
31104 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
31106 * Control.cs: use Equals to compare the font since no == op
31107 * ScrollBar.cs: use Equals to compare the font since no == op
31109 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
31111 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
31113 2005-04-01 Jackson Harper <jackson@ximian.com>
31115 * Binding.cs: Implement IsBinding.
31116 * BindingManagerBase.cs:
31117 * PropertyManager.cs:
31118 * CurrencyManager.cs: Add IsSuspended property.
31120 2005-04-01 Jackson Harper <jackson@ximian.com>
31122 * Binding.cs: Had some IsAssignableFrom calls backwards.
31124 2005-04-01 Jackson Harper <jackson@ximian.com>
31126 * Binding.cs: Handle null data members when pulling data.
31127 * PropertyManager.cs: Handle the data member being a property that
31130 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31132 * DataGridTextBoxColumn.cs: fixes signature
31133 * DataGrid.cs: calls right constructor
31135 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31137 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
31138 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
31139 * GridTableStylesCollection.cs: implements GridTableStylesCollection
31140 * DataGridTableStyle.cs: implements DataGridTableStyle
31141 * DataGridBoolColumn.cs: implements DataGridBoolColumn
31142 * DataGridTextBox.cs: implements DataGridTextBox
31143 * DataGridColumnStyle.cs: implements DataGridColumnStyle
31145 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
31147 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
31149 2005-03-29 Peter Bartok <pbartok@novell.com>
31152 - Properly implemented CompanyName property
31153 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
31154 returns a path that includes CompanyName, ProductName and
31155 Version (fixes bug #70330)
31157 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
31159 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
31162 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31164 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
31166 - Added ReadOnly CheckBox
31167 - Further refactoring: moved some code from Open-/SaveFileDialog
31170 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31172 * OpenFileDialog.cs: Fixed CheckFileExists
31174 Moved FileView and DirComboBox outside FileDialog class.
31175 They can now be used outside FileDialog
31177 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31179 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31180 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31182 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31184 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31185 - Added missing CreatePrompt property in SaveDialog
31186 - Overall SaveDialog handling should be better now
31187 - Added non standard ShowHiddenFiles property
31188 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31189 - Added InitialDirectory and RestoreDirectory support
31191 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
31193 * FileDialog.cs: Made dirComboBox usable
31195 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
31197 * FileDialog.cs: Added Filter support (case sensitiv)
31199 2005-03-24 Jackson Harper <jackson@ximian.com>
31201 * TabControl.cs: Need a couple more pixels for the lines.
31203 2005-03-23 Jackson Harper <jackson@ximian.com>
31205 * TabControl.cs: Give the tab page focus when it is selected.
31207 2005-03-23 Jackson Harper <jackson@ximian.com>
31209 * TabControl.cs: Account for the drawing of tabs borders when
31210 invalidating. If the slider was clicked dont do click detection on
31213 2005-03-23 Jackson Harper <jackson@ximian.com>
31215 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31217 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
31219 * CategoryGridEntry.cs: Added
31220 * GridItem.cs: Added helper properties
31221 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31222 * GridEntry.cs: Updated code for collection
31223 * PropertyGrid.cs: Cleaned up some formatting
31224 * PropertyGridView.cs: Added drop down functionality for enums.
31225 * GridItemCollection.cs: Added enumerator logic
31226 * PropertyGridEntry.cs: Added
31228 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31231 - Removed unnecessary commented code
31232 - Fixed handling for entering the filename manually in the combobox
31234 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31236 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31238 2005-03-18 Peter Bartok <pbartok@novell.com>
31240 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31241 them being touching the border
31243 2005-03-18 Peter Bartok <pbartok@novell.com>
31245 * TextControl.cs: Quick hack to center text better
31247 2005-03-18 Peter Bartok <pbartok@novell.com>
31250 - Don't throw NotImplemented exceptions, just print a notice once
31251 instead (requested by Miguel). This makes running existing SWF
31254 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31255 - Added context menu trigger on right click
31256 * Panel.cs: Trigger invalidate on resize
31258 - Removed old double-buffer drawing
31259 - Added ResizeRedraw style to force proper update of statusbar
31261 - Removed debug output
31262 * ThemeWin32Classic.cs:
31263 - Fixed drawing of status bar, now draws Text property if there
31264 are no defined panels
31266 2005-03-18 Jackson Harper <jackson@ximian.com>
31268 * ImageList.cs: When the image stream is set pull all the images
31270 * ImageListStreamer.cs: Implement reading image list streams.
31272 2005-03-18 Peter Bartok <pbartok@novell.com>
31274 * ThemeWin32Classic.cs (DrawPictureBox):
31275 - Fixed calculations for centered drawing
31276 - Fixed drawing for normal mode, not scaling the image on normal
31278 2005-03-18 Peter Bartok <pbartok@novell.com>
31280 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31283 - Made Open/Save button the accept button for FileDialog
31284 - Tied the cancel button to the IButtonControl cancel button
31285 - Save/Open now properly builds the pathname
31286 - Now handles user-entered text
31287 - Preventing crash on right-click if no item is selected
31288 - Fixed Text property, now uses contents of textbox
31289 - Fixed SelectedText property, now just returns the text part that
31290 is selected in the text box
31292 2005-03-18 Jackson Harper <jackson@ximian.com>
31294 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31295 rect, make sure to de-adjust the interior rect after drawing the
31298 2005-03-18 Peter Bartok <pbartok@novell.com>
31300 * MenuAPI.cs: Remove menu *before* executing selected action to
31301 prevent the menu from 'hanging around'
31303 2005-03-17 Geoff Norton <gnorton@customerdna.com>
31305 * XplatUIOSX.cs: Implemented WorkingArea property
31307 2005-03-17 Peter Bartok <pbartok@novell.com>
31309 * XplatUIX11.cs: Fixed menu coord calculations
31310 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31311 for calculating offsets
31313 2005-03-17 Peter Bartok <pbartok@novell.com>
31315 * Hwnd.cs: Do not consider menu presence for default client
31316 rectangle location/size
31317 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31318 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31319 translation functions
31320 * FileDialog.cs: Fixed (what I presume is a) typo
31322 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
31324 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31325 X access (avoids X-Async errors)
31327 2005-03-16 Jackson Harper <jackson@ximian.com>
31329 * TabControl.cs: Raise the SelectedIndexChanged event.
31331 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
31333 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31334 - Removed vertical ToolBar and replaced it with a custom panel
31335 (desktop and home button already work)
31336 - Added Help button (some controls get resized or relocated then)
31337 - Draw correct text depending on Open or Save.
31338 - Fixed some typos...
31340 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
31343 - Only change Maximum and Minimum when need it (bug fix)
31345 2005-03-15 Peter Bartok <pbartok@novell.com>
31347 * Form.cs: Use Handle for icon, to trigger creation if
31348 the window does not yet exist
31350 - CanSelect: Slight performance improvement
31351 - Focus(): Preventing possible recursion
31352 - Invalidate(): Removed ControlStyle based clear flag setting
31353 - WM_PAINT: fixed logic for calling OnPaintBackground
31354 - WM_ERASEBKGND: Fixed logic, added call to new driver method
31355 EraseWindowBackground if the control doesn't paint background
31357 - Moved EraseWindowBackground() method to internal methods
31358 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31359 is sent via SendMessage on BeginPaint call on Win32
31361 - Added EraseWindowBackground() method
31362 - No longer sends WM_ERASEBKGND on .Expose, but on call to
31363 PaintEventStart, which more closely matches Win32 behaviour
31364 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31365 - Fixed SetFocus() to properly deal with client and whole windows
31366 * Hwnd.cs: Added ErasePending property
31367 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31368 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31370 2005-03-12 Geoff Norton <gnorton@customerdna.com>
31373 - Fix hard loop when timers exist.
31374 - Fix bugs with middle and right click for 3 button mice.
31376 2005-03-11 Peter Bartok <pbartok@novell.com>
31379 - get_WorkingArea: Need to call X directly, GetWindowPos only
31380 returns cached data now
31381 - Added sanity check to GetWindowPos hwnd usage
31383 2005-03-11 Jackson Harper <jackson@ximian.com>
31385 * BindingManagerBase.cs: This method isn't used anymore as
31386 PullData now updates the data in the control.
31388 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
31390 * Form.cs: fixes menu drawing on X11
31391 * MenuAPI.cs: fixes menu drawing on X11
31393 2005-03-11 Peter Bartok <pbartok@novell.com>
31395 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31396 from Jonathan Gilbert; should fix bug #73606
31397 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31398 in Screen coordinates. Thanks, Jordi.
31399 * Form.cs: Added missing attribute
31401 2005-03-11 Peter Bartok <pbartok@novell.com>
31404 - Rudimentary Mdi support
31405 - Removed outdated FormParent code
31406 - Implemented lots of missing properties and methods, still missing
31407 transparency support
31408 - Added missing attributes
31409 - Implemented support for MaximumBounds
31410 - Added firing of various events
31411 * XplatUI.cs: Added SetIcon() method
31412 * XplatUIDriver.cs: Added SetIcon() abstract
31413 * XplatUIOSX.cs: Stubbed out SetIcon() method
31415 - Implemented SetIcon() support
31416 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31417 - Switched to unix line endings
31419 - Made POINT internal so for can access it as part of MINMAX
31420 - Implemented SetIcon() support
31421 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31422 native Mdi support again, might have to go managed)
31423 * Control.cs: Now fires the StyleChanged event
31424 * MdiClient.cs: Added; still mostly empty
31426 2005-03-10 Peter Bartok <pbartok@novell.com>
31428 * SaveFileDialog.cs: Added emtpy file
31430 2005-03-08 Peter Bartok <pbartok@novell.com>
31432 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31433 in turn triggers OnCreateContro) when creating a handle for the
31435 * TextControl.cs: Fixed endless loop in certain cases when
31436 replacing the current selection
31438 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
31441 - Honors NewValue changes in Scroll events allowing apps to change it
31442 - Adds First and Last Scroll events
31443 - Fixes Thumb events
31445 2005-03-07 Peter Bartok <pbartok@novell.com>
31447 * Hwnd.cs: Added DefaultClientRectangle property
31448 * XplatUI.cs: Now using the X11 driver Where() method, which provides
31449 more detailed debug information
31451 - Fixed size-change feedback loop, where we would pull an old size
31452 off the queue and mistakenly change our window's size to an
31454 - Now compressing ConfigureNotify events, to reduce looping and
31456 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31459 2005-03-07 Jackson Harper <jackson@ximian.com>
31461 * Binding.cs: Push data pushes from data -> property. Check if the
31462 property is readonly when attempting to set it.
31464 2005-03-07 Jackson Harper <jackson@ximian.com>
31466 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31467 instead of IsSubclassOf. Pulling data now sets the value on the
31469 * PropertyManager.cs:
31470 * CurrencyManager.cs: Just need to pull data when updating now,
31471 because PullData will set the value on the control.
31473 2005-03-04 Jackson Harper <jackson@ximian.com>
31475 * Binding.cs: Implement data type parsing and converting on pulled
31476 data. TODO: Are there more ways the data can be converted?
31478 2005-03-04 Jackson Harper <jackson@ximian.com>
31480 * Binding.cs: Support <Property>IsNull checks. Also bind to the
31481 controls Validating method so we can repull the data when the
31482 control loses focus.
31484 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
31487 - Fixes null string format
31490 - Adds enum type checks
31491 - Fixes redrawing and recalc need after changing some properties
31492 - Fixes on focus_item set after the event
31493 - Fixes adding columns after the control has been created
31495 * ThemeWin32Classic.cs:
31496 - Fixes CheckBox focus rectangle
31497 - Fixes ColumnHeader drawing
31500 2005-03-03 Jackson Harper <jackson@ximian.com>
31502 * Binding.cs: Bind to <Property>Changed events so we can detect
31503 when properties are changed and update the data.
31505 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
31508 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31509 - Fixes ImageList constructor with ImageList container
31510 - Fixes image scaling (wrong parameters at DrawImage)
31512 2005-02-02 Jackson Harper <jackson@ximian.com>
31514 * Binding.cs: Make property searches case-insensitive. Eliminate
31515 some duplicated code.
31517 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
31520 - Handle focus event
31521 - Fix scrollbar events
31522 - Discard highlighted item if remove it
31523 - Fixes SelectedItem with strings
31525 2005-03-01 Peter Bartok <pbartok@novell.com>
31528 - Fixed Visible property, now follows (once again) parent chain
31529 to return false if any control in the chain is visible=false
31530 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31531 - Fixed several places where is_visible instead of Visible was used
31532 - Implemented FIXME related to focus selection when setting focused
31533 control to be invisible
31535 * XplatUIWin32.cs: Now using proper method to find out if window is
31536 visible. Thanks to Jordi for pointing it out
31538 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
31540 * ComboBox.cs: show/hide scrollbar instead of creating it
31542 2005-02-27 Jackson Harper <jackson@ximian.com>
31544 * CurrencyManager.cs: Add PositionChanged stuff.
31546 2005-02-27 Peter Bartok <pbartok@novell.com>
31548 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31549 * XplatUIOSX.cs: Added GetMenuOrigin() stub
31550 * XplatUIWin32.cs: Implemented GetMenuOrigin()
31552 - Implemented GetMenuDC()
31553 - Implemented GetMenuOrigin()
31554 - Implemented ReleaseMenuDC()
31555 - Implemented generation of WM_NCPAINT message
31556 - Implemented generation and handling of WM_NCCALCSIZE message
31557 * Form.cs: Added debug helper message for Jordi's menu work
31559 - Modified ClientRect property; added setter, fixed getter to handle
31560 setting of ClientRect
31561 - Added MenuOrigin property
31563 2005-02-26 Peter Bartok <pbartok@novell.com>
31566 - Destroys the caret if a window that's being destroyed contains it
31567 - Ignores expose events coming from the X11 queue for windows that
31568 already are destroyed
31569 - Now uses the proper variable for handling DestroyNotify, before we
31570 marked the wrong window as destroyed
31571 - Improved/added some debug output
31573 2005-02-26 Peter Bartok <pbartok@novell.com>
31575 * X11Keyboard.cs: Fixes to work on 64bit systems
31577 2005-02-26 Peter Bartok <pbartok@novell.com>
31580 - Now calling OnHandleDestroyed from DestroyHandle()
31581 instead of Dispose()
31582 - Removed bogus call to controls.Remove() from DestroyHandle()
31584 2005-02-26 Peter Bartok <pbartok@novell.com>
31586 * Control.cs: Properly destroy child windows when our handle is
31589 2005-02-25 Peter Bartok <pbartok@novell.com>
31592 - Added 'DriverDebug' define to allow tracing XplatUI API calls
31593 - Alphabetized Static Methods and Subclasses
31596 - Added XException class to allow custom handling of X11 exceptions
31597 - Created custom X11 error handler, tied into XException class
31598 - Added support for MONO_XEXCEPTIONS env var to allow the user
31599 to either throw an exception on X errors or continue running
31600 after displaying the error
31601 - Added handling of DestroyNotify message
31602 - Added handler for CreateNotify message (still disabled)
31603 - Improved (tried to at least) Where method to provide file and lineno
31605 - Added XErrorHandler delegate
31606 - Added XRequest enumeration (to suppor translation of errors)
31608 2005-02-25 Jackson Harper <jackson@ximian.com>
31610 * PropertyManager.cs: Implement editing features
31611 * CurrencyManager.cs:
31612 * Binding.cs: First attempt at UpdateIsBinding
31613 * BindingManagerBase.cs: Call UpdateIsBinding before
31614 pushing/pulling data.
31616 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
31618 * MenuAPI.cs: Respect disabled items
31619 * ThemeWin32Classic.cs
31620 - Caches ImageAttributes creation for DrawImageDisabled
31621 - Fixes vertical menu line drawing
31622 - Draws disabled arrows in disable menu items
31624 2005-02-24 Peter Bartok <pbartok@novell.com>
31627 - Added UserData property to allow associating arbitrary objects
31629 - Fixed leak; now removing Hwnd references from static windows array
31631 - Fixed Graphics leak in PaintEventEnd
31632 - Removed usage of HandleData, switched over to Hwnd class
31633 * HandleData.cs: Removed, obsoleted by Hwnd.cs
31635 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31637 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31638 * ScrollBar.cs: Fixes bug
31639 * TrackBar.cs: removes death code, clipping, mimize refreshes,
31640 keyboard navigation enhancements
31642 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31644 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31645 * GroupBox.cs: Add control styles
31646 * Label.cs: Add control styles
31647 * UpDownBase.cs: Add control styles
31648 * ListBox.cs: Add control styles
31649 * XplatUIWin32.cs: Fixes wrong parameter order
31652 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
31654 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31656 2005-02-23 Jackson Harper <jackson@ximian.com>
31658 * PropertyManager.cs: Implement property binding. This doesn't
31659 seem to work yet though as (I think) there are some bugs in
31660 System.ComponentModel.PropertyDescriptor.
31661 * BindingContext.cs: Use new PropertyManager constructor.
31663 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
31665 * ProgressBar.cs: use clip region in ProgressBar
31666 * ThemeWin32Classic.cs: use clip region in ProgressBar
31668 2004-02-22 Jackson Harper <jackson@ximian.com>
31670 * BindingsCollection.cs: Remove some debug code.
31672 2005-02-22 Jackson Harper <jackson@ximian.com>
31674 * BindingContext.cs:
31675 * ControlBindingsCollection.cs:
31676 * CurrencyManager.cs:
31678 * BindingManagerBase.cs: Initial implementation
31679 * BindingsCollection.cs: Add an internal contains method that the
31680 BindingManagerBase uses to ensure bindings aren't added twice to
31682 * PropertyManager.cs: Stubbed out.
31684 * ContainerControl.cs: Hook up databinding
31686 2005-02-22 Geoff Norton <gnorton@customerdna.com>
31689 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31690 Fixed Invalidate/Update chain.
31691 Fixed tons of other minor bugs (this is almost a complete rewrite).
31693 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
31695 * ComboBox.cs: do subcontrol creation when the control is created
31697 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31699 * Label.cs: fixes image drawing (image and imagelist)
31700 * ThemeWin32Classic.cs: cache brushes
31702 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31704 * Form.cs: Move menu drawing code to Theme class
31705 * ComboBox.cs: Move ComboBox drawing code to Theme class
31706 * MenuItem.cs: Move menu drawing code to Theme class
31707 * MenuAPI.cs: Move menu drawing code to Theme class
31708 * ThemeWin32Classic.cs: New methods
31709 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31710 * ListBox.cs: Move Listbox drawing code to Theme class
31711 * Theme.cs: New methods
31713 2005-02-20 Peter Bartok <pbartok@novell.com>
31716 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31717 only process mnemonics on those)
31718 - Fixed event sequence for key handling; first calling
31719 ProcessKeyEventArgs now
31721 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31722 for processing non-character keys
31723 - Fixed WM_CHAR to generate proper event sequence before processing
31724 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31727 2005-02-19 Peter Bartok <pbartok@novell.com>
31729 * UserControl.cs: Added TextChanged event; added attributes
31730 * SizeGrip.cs: Implemented resizing and optional display of grip
31731 * Form.cs: Fixed attribute
31732 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31733 Changed meaning of ScrollWindow bool argument; instead of the
31734 clear attribute (which will be true usually anyway), it gives the
31735 option of moving child controls as well.
31737 - Changed to match new ScrollWindow argument
31738 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31739 now handles the implicit parent window a WM puts around us
31740 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31742 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31743 * TreeView.cs: Adjusted to new ScrollWindow arguments
31745 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31747 * Form.cs: Menu integration with non-client area
31748 * MenuItem.cs: Menu integration with non-client area
31749 * MenuAPI.cs: Menu integration with non-client area
31751 2005-02-18 Peter Bartok <pbartok@novell.com>
31753 * MethodInvoker.cs: Added
31754 * MdiLayout.cs: Added
31755 * SendKeys.cs: Started implementation
31756 * ErrorIconAlignment.cs: Added
31758 2005-02-18 Peter Bartok <pbartok@novell.com>
31760 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31761 * Form.cs: Added handling for Menu-related Non-client messages
31763 2005-02-17 Peter Bartok <pbartok@novell.com>
31765 * UpDownBase.cs: Fixed typo, compilation errors
31766 * DomainUpDown.cs: Fixed attribute value
31768 2005-02-16 Miguel de Icaza <miguel@novell.com>
31770 * UpDownBase.cs: Attach entry events.
31772 Add ForeColor property, Focused, InterceptArrowKeys (interception
31773 does not work yet).
31775 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
31778 - Redraw non client are on Setmenu
31779 - Calc proper menu starting point
31781 2005-02-17 Peter Bartok <pbartok@novell.com>
31783 * Application.cs: Fixed message_filter check
31785 2005-02-17 Peter Bartok <pbartok@novell.com>
31787 * Application.cs: Now calls registered message filters
31788 * DockStyle.cs: Fixed attribute
31789 * Form.cs: Fixed attribute
31790 * Menu.cs: Fixed attribute
31791 * ToolTip.cs: Fixed attribute
31792 * TreeNode.cs: Added missing attributes and arranged in regions
31793 * PropertyGrid.cs: Fixed signatures
31794 * TreeNodeCollection.cs: Added attributes
31795 * Splitter.cs: Added missing attributes; arranged into regions
31796 * TabPage.cs: Added missing attributes; arranged into regions
31797 * TextBoxBase.cs: Added missing attributes
31798 * TextBox.cs: Added missing attributes
31799 * ArrangeDirection.cs: Added missing attributes
31800 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31801 * ToolBarButton.cs: Fixed attributes
31802 * AnchorStyles.cs: Fixed attribute
31803 * TrackBar.cs: Fixed attributes
31804 * TabControl.cs: Added missing attributes and arranged into regions
31805 * ToolBar.cs: Fixed attribute
31806 * StatusBar.cs: Fixed signature, organized into regions and added
31808 * StatusBarPanel.cs: Fixed attributes
31809 * ContentsResizedEventArgs.cs: Implemented
31810 * ContentsResizedEventHandler.cs: Implemented
31811 * DateBoldEventArgs.cs: Implemented
31812 * DateBoldEventHandler.cs: Implemented
31813 * UpDownEventArgs.cs: Implemented
31814 * UpDownEventHandler.cs: Implemented
31816 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
31818 * Form.cs: first Menu NC refactoring
31819 * MenuAPI.cs: first Menu NC refactoring
31821 2005-02-16 Peter Bartok <pbartok@novell.com>
31823 * ImeMode.cs: Added missing attributes
31824 * Menu.cs: Fixed attribute
31825 * GroupBox.cs: Fixed attribute
31826 * Label.cs: Fixed attribute
31827 * ColorDialog.cs (RunDialog): Removed TODO attribute
31828 * ComboBox.cs: Fixed attributes
31829 * ListControl.cs: Added missing attributes
31830 * PropertyGrid.cs: Fixed attributes
31831 * Control.cs: Fixed attributes
31832 * ListViewItem.cs: Added TypeConverter attribute
31833 * NotifyIcon.cs: Fixed attributes
31834 * ListView.cs: Fixed attributes
31835 * ButtonBase.cs: Fixed attribute
31836 * ImageList.cs: Added missing attributes
31837 * ContainerControl.cs: Fixed signature
31838 * CheckedListBox.cs: Fixed attribute; added missing attributes
31839 * Panel.cs: Fixed attributes
31840 * PropertyTabChangedEventArgs.cs: Added missing attribute
31841 * PropertyValueChangedEventArgs.cs: Added missing attribute
31842 * Binding.cs: Fixed attribute
31843 * ListViewItemConverter: Implemented ListViewSubItemConverter class
31844 * ListBox.cs: Fixed attribute; added missing attributes;
31845 * ScrollableControl.cs: Added missing attributes
31846 * PictureBox.cs: Added missing attributes; implemented missing property
31847 * DateTimePicker.cs: Added missing attributes
31848 * Theme.cs (ToolWindowCaptionHeight): Fixed type
31849 * MonthCalendar.cs: Fixed attributes
31850 * StatusBarPanel.cs: Added missing attributes
31851 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31853 2005-02-16 Peter Bartok <pbartok@novell.com>
31855 * TextBoxBase.cs: The previous method to enforce height yet remember
31856 the requested high was less than ideal, this is an attempt to do
31858 * Control.cs: Added comment about possible problem
31859 * Copyright: Updated format
31860 * GridItemType.cs: Fixed swapped values
31862 2005-02-15 Jackson Harper <jackson@ximian.com>
31864 * BaseCollection.cs: Use property so we never access an
31865 uninitialized list. Also initialize the list in the property.
31867 2005-02-15 Peter Bartok <pbartok@novell.com>
31869 * GroupBox.cs (ProcessMnemonic): Implemented
31870 * Label.cs (ProcessMnemonic): Implemented
31871 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31874 2005-02-15 Peter Bartok <pbartok@novell.com>
31876 * RadioButton.cs (ProcessMnemonic): Implemented
31877 * CheckBox.cs (ProcessMnemonic): Implemented
31879 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31881 - Added internal method to allow calling ProcessMnemonic from other
31883 * ContainerControl.cs:
31884 - Started support for handling validation chain handling
31885 - Implemented ProcessMnemonic support
31886 - Added Select() call to Active, to make sure the active control
31888 * Form.cs: Setting toplevel flag for Forms (this was lost in the
31889 FormParent rewrite)
31890 * ThemeWin32Classic.cs:
31891 - DrawCheckBox(): Fixed stringformat to show hotkeys
31892 - DrawRadioButton(): Fixed stringformat to show hotkeys
31893 * CommonDialog.cs: Removed WndProc override, not needed
31895 2005-02-14 Peter Bartok <pbartok@novell.com>
31897 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31898 missed those in the rewrite
31900 2005-02-14 Miguel de Icaza <miguel@novell.com>
31902 * NumericUpDown.cs (Increment, ToString): Add.
31903 (DecimalPlaces): implement.
31907 * UpDownBase.cs: Add the designer attributes.
31909 2005-02-13 Peter Bartok <pbartok@novell.com>
31911 * Panel.cs: Removed border_style, now in Control
31912 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31913 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31915 2005-02-13 Peter Bartok <pbartok@novell.com>
31917 * MouseButtons.cs: Added missing attributes
31918 * XplatUIStructs.cs: Added enumeration for title styles
31919 * LeftRightAlignment.cs: Added missing attributes
31920 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31921 it compatible with Graphics.FromHwnd()
31922 * SelectedGridItemChangedEventArgs.cs: Fixed property type
31923 * Keys.cs: Added missing attributes
31924 * SelectionRange.cs: Added missing attributes
31925 * SelectionRangeConverter.cs: Added
31927 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31928 ReleaseMenuDC methods
31929 - Renamed ReleaseWindow to UngrabWindow
31930 - Added proper startup notice to allow version identification
31932 - Added missing attributes
31933 - Removed FormParent concept
31934 * Label.cs: Removed border_style field, now in Control
31935 * RadioButton.cs: Now properly selects RadioButton when focus is
31937 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31939 - Added missing attributes
31940 - Added borderstyle handling
31941 - Removed FormParent concept support
31942 - Fixed calls to XplatUI to match changed APIs
31943 - Fixed bug that would case us to use disposed Graphics objects
31944 - Removed unneeded internal methods
31945 - PerformLayout(): Fixed to handle DockStyle.Fill properly
31946 - SelectNextControl(): Fixed to properly check common parents
31947 * TextBoxBase.cs: Removed border_style field (now in Control)
31949 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31950 fixed calculations for form size
31951 - Added support for localized strings and icons
31952 - Improved form size calculations, added border
31953 * ListView.cs: Removed border_style field (now in Control)
31954 * X11Structs.cs: Moved several structs from X11 driver here
31955 * X11Keyboard.cs: Changed debug message
31956 * Application.cs: Removed FormParent concept support
31958 - Resetting end_modal flag
31959 - Removed FormParent concept support
31960 * NativeWindow.cs: Removed FormParent concept support
31961 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31962 Client area and Non-Client whole window to allow support for WM_NC
31964 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31965 prevent using it until it supports Hwnd as per Geoff Norton's request
31966 * ToolBar.cs: Fixed drawing, was not doing proper drawing
31967 * PictureBox.cs: Removed border_style field, now in Control
31968 * XplatUIWin32.cs: Added new driver methods
31970 2005-02-12 Peter Bartok <pbartok@novell.com>
31972 * OpacityConverter.cs: Implemented
31973 * Hwnd.cs: Internal class to support drivers that need to emulate
31974 client area/non-client area window behaviour
31976 2005-02-11 Peter Bartok <pbartok@novell.com>
31978 * KeysConverter.cs: Implemented
31980 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
31982 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31983 * LinkLabel: Added missing attributes
31984 * MainMenu.cs: fixes ToString
31985 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31986 * ListBox.cs: fixes event position
31987 * TrackBar.cs: adds missing attributes and events
31989 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
31991 * MenuItem.cs: Use SystemInformation and bug fixes
31992 * MenuAPI.cs: Use SystemInformation and bug fixes
31994 2005-02-09 Jackson Harper <jackson@ximian.com>
31996 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31997 their keystate otherwise things like VK_MENU get stuck "on".
31999 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
32001 * ListBox.cs: Fixes AddRange bug
32003 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
32006 - Add missing attributes
32007 - Add missing method
32009 * CheckedListBox.cs: Added missing attributes
32010 - Add missing attributes
32011 - Remove extra method
32013 * ComboBox.cs: Added missing attributes
32014 * VScrollBar.cs: Added missing attributes
32015 * ScrollBar.cs: Added missing attributes
32016 * ListBox.cs: Fixes signature, add missing consts
32017 * LinkArea.cs: Added missing attributes
32020 2005-02-08 Peter Bartok <pbartok@novell.com>
32022 * Menu.cs: Added missing attributes
32023 * MainMenu.cs: Added missing attributes
32024 * GroupBox.cs: Added missing attributes
32025 * Label.cs: Added missing attributes
32026 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32028 - Added Instance and Options properties
32029 - Added missing attributes
32030 * Cursor.cs: Made Serializable
32031 * NotifyIcon: Added missing attributes
32032 * MenuItem.cs: Added missing attributes
32033 * TextBoxBase.cs: Implemented AppendText() and Select() methods
32034 * Panel.cs: Added Missing attributes
32035 * MonthCalendar.cs: Fixed CreateParams
32037 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32041 - Fixes issues with links
32042 - Adds the class attributes
32044 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32047 - Fixes button when no items available in dropdown
32048 - Fixes repainting problems
32049 - Adds the class attributes
32051 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32053 * XplatUIOSX.cs: Detect the menu bar and title bar height from
32054 the current theme. Cache these on startup.
32056 2005-02-07 Jackson Harper <jackson@ximian.com>
32058 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32059 the scrollbar buttons when they are depressed.
32061 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32063 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
32064 Get the display size from the main displayid. We currently dont
32065 support multiple display configurations.
32067 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32069 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
32071 2005-02-07 Miguel de Icaza <miguel@novell.com>
32073 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
32075 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
32077 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
32079 2005-02-04 Jackson Harper <jackson@ximian.com>
32081 * ThemeWin32Classic.cs: Respect the clipping rect when
32082 drawing. Only fill the intersection of clips and rects so there
32083 isn't a lot of large fills.
32084 * ScrollBar.cs: Pass the correct clipping rect to the theme
32085 engine. Remove some debug code.
32087 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
32089 * DateTimePicker.cs:
32090 - Fixed crash on DateTime.Parse, use Constructor instead
32092 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32096 - Owner draw support (MeasureItem and DrawItem)
32098 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32101 - Implements FindMergePosition and MergeMenu functions (very poor documented)
32102 - Fixes MenuItems.Add range
32104 - MergeMenu and Clone and CloneMenu functions
32106 2005-02-03 Jackson Harper <jackson@ximian.com>
32108 * ScrollBar.cs: Make abstract
32109 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
32112 2005-02-03 Jackson Harper <jackson@ximian.com>
32114 * ScrollBar.cs: First part of my scrollbar fixups. This removes
32115 all the unneeded refreshes and uses invalidates with properly
32118 2005-02-03 Peter Bartok <pbartok@novell.com>
32120 * ComponentModel.cs: Added
32121 * IDataGridEditingService.cs: Added
32122 * Timer.cs: Added missing attributes
32123 * ToolTip.cs: Added missing attributes
32125 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
32127 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
32129 2005-02-03 Peter Bartok <pbartok@novell.com>
32131 * ListBox.cs: Added missing attributes
32133 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
32136 - Fixes font height after font change
32137 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
32139 2005-02-02 Peter Bartok <pbartok@novell.com>
32141 * HandleData.cs: Introduced static methods to allow class
32142 to be more self-contained and track it's own HandleData objects
32143 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
32144 HandleData to use new static methods
32146 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
32149 - Fixes default size and PreferredHeight
32151 - ObjectCollection.Insert implementation
32157 - ObjectCollection.Insert implementation
32158 - No selection after clean
32161 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32163 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
32165 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
32168 - Caches ItemHeight calculation for OwnerDrawVariable
32169 - Handles dropdown properly
32170 - Fixes several minor bugs
32172 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32175 - Fixes 71946 and 71950
32176 - Fixes changing Multicolumn on the fly
32177 - Fixes keyboard navigation on Multicolumn listboxes
32179 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32181 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32182 crash reporter log.
32184 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32186 * XplatUIOSX.cs: Allow applications to actually exit.
32188 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32190 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
32191 their parent at creation time rather than lazily later. Fixes a major
32192 regression we were experiencing.
32194 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32196 * ThemeWin32Classic.cs: more date time picker painting fixes
32197 * DateTimePicker.cs: more monthcalendar drop down fixes
32198 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32200 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32203 - When moving the thumb going outside the control should stop the moving
32204 - Adds the firing of missing events
32205 - Fixes no button show if Size is not specified
32206 - End / Home keys for keyboard navigation
32208 2005-01-30 Peter Bartok <pbartok@novell.com>
32210 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32211 sanity check to prevent theoretical loop
32212 * XplatUIWin32.cs (SetVisible): Removed debug output
32213 * XplatUIX11.cs (SystrayChange): Added sanity check
32214 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32215 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32216 behaviour, valid until the X11 client window rewrite is done
32217 * TextBox.cs (ctor): Setting proper default foreground and background
32220 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
32222 * Theme: Added DrawDateTimePicker to interface
32223 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32224 * DateTimePicker.cs: Created (still needs keys and painting code)
32225 * DateTimePickerFormat.cs: added
32226 * MonthCalendar.cs: fixed CreateParams for popup window mode
32228 2005-01-29 Peter Bartok <pbartok@novell.com>
32230 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32231 this should also the calculations for ligher/darker
32232 * Theme.cs: Fixed defaults for ScrollBar widths/heights
32234 2005-01-29 Peter Bartok <pbartok@novell.com>
32236 * ArrangeDirection.cs: Added
32237 * ArrangeStartingPositon.cs: Added
32238 * SystemInformation.cs: Implemented
32239 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32240 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32241 used by SystemInformation class
32242 * X11Strucs.cs: Added XSizeHints structure
32244 - Fixed CreateParams to make sure the menu window is always visible
32245 - TrackPopupMenu: Added check to make sure we don't draw the
32248 2005-01-29 Peter Bartok <pbartok@novell.com>
32250 * HandleData.cs: Added method for altering invalid area
32251 * TextBoxBase.cs: Implemented TextLength
32253 2005-01-28 Peter Bartok <pbartok@novell.com>
32255 * XplatUIX11.cs: Improvement over last patch, not sending
32256 the WM_PAINT directly anymore, instead we scroll any pending
32257 exposed areas and let the system pick out the WM_PAINT later
32259 2005-01-28 Peter Bartok <pbartok@novell.com>
32261 * SWF.csproj: Deleted, no longer used. Instead,
32262 Managed.Windows.Forms/SWF.csproj should be used
32263 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32264 directly, to avoid a potential race condition with the next
32267 2005-01-28 Peter Bartok <pbartok@novell.com>
32269 * XplatUI.cs: Made class internal
32271 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
32273 * CheckedListBox.cs:
32276 - Missing methods and events
32278 2005-01-27 Peter Bartok <pbartok@novell.com>
32280 * Application.cs (Run): Don't use form if we don't have one
32282 2005-01-27 Peter Bartok <pbartok@novell.com>
32284 * TextBoxBase.cs (get_Lines): Fixed index off by one error
32286 2005-01-27 Peter Bartok <pbartok@novell.com>
32288 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32289 * GridItem.cs: Added; Patch by Jonathan S. Chambers
32290 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32291 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32292 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32293 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32294 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32295 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32296 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32297 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32298 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32299 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32301 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32304 - Draw focus on Simple Combobox
32305 - Fixes drawing issues
32308 2005-01-27 Peter Bartok <pbartok@novell.com>
32311 - Place window in default location, instead of hardcoded 0/0
32312 - Send initial LocationChanged event
32314 - UpdateBounds after creation to find out where the WM placed us
32315 - Make sure that if the ParentForm changes location the Form
32317 * XplatUIX11.cs: XGetGeometry will not return the coords relative
32318 to the root, but to whatever the WM placed around us.
32319 Translate to root coordinates before returning toplevel
32321 * XplatUIWin32.cs: Removed debug output
32322 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32323 flag to GetWindowPos, to allow translation of coordinates on X11
32325 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32327 * ListBox.cs: connect LostFocus Event
32329 2005-01-27 Peter Bartok <pbartok@novell.com>
32331 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32332 XplatUIX11.cs: Extended the Systray API
32333 * Form.cs: Removed debug output
32334 * Application.cs: Fixed focus assignment, always need to call
32335 XplatUI.Activate() since Form.Activate() has rules that may
32337 * NotifyIcon.cs: Should be complete now
32338 * ToolTip.cs: Worked around possible timer bug
32340 2005-01-27 Jackson Harper <jackson@ximian.com>
32343 - Only invalidate the effected tabs when the
32344 selected index changes. This reduces drawing and gets rid of some
32346 - Only refresh if the tabs need to be shifted, otherwise only
32347 invalidate the slider button.
32348 - On windows the tabs are not filled to right if the slider is
32351 2005-01-27 Jackson Harper <jackson@ximian.com>
32353 * TabControl.cs: Only refresh on mouseup if we are showing the
32354 slider. Also only invalidate the button whose state has changed.
32356 2005-01-26 Peter Bartok <pbartok@novell.com>
32358 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32359 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32360 and SystrayRemove() methods
32361 * XplatUIOSX.cs: Stubbed Systray methods
32363 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32365 - Fixed broken XChangeProperty calls (marshalling messed up things)
32366 * X11Structs.cs: Added enums and structs required for Size hinting
32367 * NotifyIcon.cs: Added & implemented
32369 2005-01-26 Jackson Harper <jackson@ximian.com>
32371 * TabControl.cs: Space vertically layed out tabs properly.
32373 2005-01-26 Peter Bartok <pbartok@novell.com>
32375 * Form.cs (CreateClientParams): Always set the location to 0,0
32376 since we're a child window.
32378 * Control.cs (SetVisibleCore): Always explicitly setting the location
32379 of a toplevel window, apparently X11 doesn't like to move windows
32380 while they're not mapped.
32382 2005-01-26 Jackson Harper <jackson@ximian.com>
32384 * TabControl.cs: Implement FillToRight size mode with vertically
32387 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32389 * ControlPaint.cs, ThemeWin32Classic.cs
32390 - Fixes DrawFocusRectangle
32392 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32395 - MenuBar tracking only starts when item is first clicked
32396 - Fixes menu hidding for multiple subitems
32397 - Unselect item in MenuBar when item Executed
32400 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
32403 - IsInputKey for ListBox
32406 - Shift and Control item selection
32407 - Implement SelectionMode.MultiExtended
32408 - Fixes RightToLeft
32410 - IsInputKey implemented
32411 - Do not generate OnTextChangedEdit on internal txt changes
32413 2005-01-23 Peter Bartok <pbartok@novell.com>
32415 * AccessibleObject.cs: Partially implemented Select()
32416 * MonthCalendar.cs: Added missing attributes and events
32417 * Form.cs: Fixed CreateParams behaviour, now controls derived from
32418 form can properly override CreateParams.
32419 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32420 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32421 Control performs Invalidate & Update
32422 * NativeWindow (CreateHandle): Added special handling for Form
32423 and Form.FormParent classes to allow overriding of From.CreateParams
32425 - ControlNativeWindow: Renamed 'control' variable to more intuitive
32427 - ControlNativeWindow: Added Owner property
32428 - Removed usage of Refresh() on property changes, changed into
32429 Invalidate(), we need to wait until the queue is processed for
32430 updates, direct calls might cause problems if not all vars for
32431 Paint are initialized
32432 - Added call to UpdateStyles() when creating the window, to set any
32433 styles that CreateWindow might have ignored.
32434 - Added support for Form CreateParent overrides to UpdateStyles()
32435 * MessageBox.cs: Removed no longer needed FormParent override stuff,
32436 CreateParams are now properly overridable
32437 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32438 CreateParams are now properly overridable
32440 2005-01-23 Miguel de Icaza <miguel@ximian.com>
32442 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32445 Capture LostFocus and OnTextBoxChanged. The later introduces a
32446 recursive invocation that I have not figured out yet.
32448 Reset the timer when not using (it was accumulating).
32451 (OnTextBoxChanged): Set UserEdit to true here to track whether the
32452 user has made changes that require validation.
32454 Reset changing to avoid loops.
32456 2005-01-22 Miguel de Icaza <miguel@ximian.com>
32458 * NumericUpDown.cs: Display value at startup.
32460 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32463 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32464 filled in. Added some basic parsing of text.
32466 Still missing the OnXXX method overrides, and figuring out the
32467 events that must be emitted.
32469 * UpDownBase.cs: Handle UserEdit on the Text property.
32471 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
32474 - Fixes IntegralHeight
32477 2005-01-21 Jackson Harper <jackson@ximian.com>
32479 * TabControl.cs: Set the SelectedIndex property when SelectedTab
32480 is set so that the page visibility is updated and the tabs are
32483 2005-01-21 Jackson Harper <jackson@ximian.com>
32485 * TabControl.cs: Use cliping rectangle for blitting. Give the
32486 theme the clipping rect so we can do clipping while
32487 drawing. Remove some debug code.
32489 2005-01-21 Jackson Harper <jackson@ximian.com>
32491 * TabPage.cs: Add a new method so tab pages can force the tab
32492 control to recalculate the tab page sizes.
32493 * TabControl.cs: UpdateOwner needs to make the tab control recalc
32496 2005-01-20 Jackson Harper <jackson@ximian.com>
32498 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32500 2005-01-20 Jackson Harper <jackson@ximian.com>
32502 * TreeView.cs: Set the bounds for nodes properly. They were
32503 getting screwed up when checkboxes were not enabled, but images
32506 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
32509 - Owner draw support
32512 2005-01-20 Jackson Harper <jackson@ximian.com>
32514 * XplatUIStructs.cs: More misc keys
32515 * X11Keyboard.cs: Ignore some control keys.
32517 2005-01-20 Jackson Harper <jackson@ximian.com>
32519 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32520 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32522 2005-01-19 Peter Bartok <pbartok@novell.com>
32524 * Control.cs: Un-selecting the control when it is loosing focus
32526 2005-01-19 Jackson Harper <jackson@ximian.com>
32528 * TreeView.cs: Hook up to the text controls leave event so we can
32529 end editing when the users clicks outside the text box.
32531 2005-01-19 Jackson Harper <jackson@ximian.com>
32533 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32534 get set in the conversion array.
32536 2005-01-19 Peter Bartok <pbartok@novell.com>
32538 * Application.cs (ModalRun): Added a call to CreateControl to ensure
32539 focus is properly set
32541 - Added missing attributes
32542 - removed styles, those are already set in the base class
32544 - Added missing attributes
32545 - Added clip window styles
32546 * CheckBox.cs: Added missing attributes
32548 - FormParentWindow.CreateParams: Added required clip styles
32549 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32550 also filters modifier keys
32552 - Added assignment of Accept and Cancel button to enable Enter
32553 and Esc keys in MessageBox dialogs
32554 - FormParentWindow.CreateParams: Added required clip styles
32555 * RadioButton.cs: Added missing attributes
32556 * TextControl.cs: No longer draws selection if control does not
32559 - Now draws simple rectangle around test area to make it obvious
32560 there's a control. This is a hack until we properly support borders
32561 - A few simple fixes to support selections better, now erases selected
32562 text when typing, and resets selection when using movement keys
32564 2005-01-19 Miguel de Icaza <miguel@ximian.com>
32566 * UpDownBase.cs: Added some new properties.
32568 * DomainUpDown.cs: Implement a lot to get my test working.
32570 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32572 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32574 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32576 * OSXStructs (WindowAttributes): Fixed csc complaints
32578 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32581 OSXStructs.cs: Initial refactor to move enums and consts into
32582 OSXStructs and use them in the driver for greater readability.
32584 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32586 * XplatUIOSX.cs: Initial support for Standard Cursors.
32587 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32589 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
32591 * ComboBox.cs: ability to change style when the ctrl is already
32592 created, missing methods and events, bug fixes, signature fixes
32594 2005-01-19 Peter Bartok <pbartok@novell.com>
32596 * Cursors.cs (ctor): Added ctor to fix signature
32598 2005-01-18 Peter Bartok <pbartok@novell.com>
32600 * Button.cs: Implemented DoubleClick event
32602 - Fixed keyboard handling to behave like MS, where the press of
32603 Spacebar is equivalent to a mousedown, and the key release is
32604 equivalent to mouseup. Now a spacebar push will give the same
32605 visual feedback like a mouse click.
32606 - Added missing attributes
32607 - Added ImeModeChanged event
32608 - Added support for generating DoubleClick event for derived classes
32610 - Implemented DoubleClick event
32611 - Added missing attributes
32612 * CommonDialog.cs: Added missing attribute
32613 * ContextMenu.cs: Added missing attributes
32615 - AutoChecked buttons do not allow to be unselected when clicked
32616 (otherwise we might end up with no selected buttons in a group)
32617 - Added missing attributes
32618 - Implemented DoubleClickEvent
32619 * ThreadExceptionDialog.cs: Enabled TextBox code
32621 2005-01-18 Peter Bartok <pbartok@novell.com>
32623 * Form.cs: Removed debug output
32624 * Button.cs: Added support for DoubleClick method
32626 2005-01-18 Peter Bartok <pbartok@novell.com>
32629 - Added method to parent window that allows triggering size
32630 calculations when a menu is added/removed
32631 - set_Menu: Cleaned up mess from early days of Form and Control,
32632 now properly triggers a recalc when a menu is added/removed
32633 - Added case to select form itself as focused form if no child
32635 - Added PerformLayout call when showing dialog, to ensure properly
32638 - Select(): Made internal so Form can access it
32639 - Focus(): Only call Xplat layer if required (avoids loop), and sets
32641 * Application.cs (Run): Removed hack and calls PerformLayout instead
32642 to trigger calculation when Form becomes visible
32644 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
32646 * ComboBox.cs: fixes for ownerdraw
32648 2005-01-18 Peter Bartok <pbartok@novell.com>
32651 - Sentinel is no longer static, each Document gets it's own, this
32652 avoids locking or alternatively overwrite problems when more
32653 than one text control is used simultaneously.
32654 - Switched to use Hilight and HilightText brushes for text selection
32656 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32658 2005-01-18 Peter Bartok <pbartok@novell.com>
32661 - Hooked up the following events:
32669 o SystemColorsChanged
32670 o ParentFontChanged
32672 - Removed debug output
32673 - Added a call to the current theme's ResetDefaults when a color change
32675 * Form.cs: Now setting the proper ImeMode
32676 * Theme.cs: Defined a method to force recreation of cached resources
32677 and rereading of system defaults (ResetDefaults())
32678 * ThemeWin32Classic.cs: Added ResetDefaults() stub
32680 2005-01-17 Peter Bartok <pbartok@novell.com>
32682 * Control.cs: Added missing attributes
32684 2005-01-17 Jackson Harper <jackson@ximian.com>
32686 * TreeNode.cs: Implement editing. Add missing properties selected
32688 * TreeView.cs: Implement node editing. Also some fixes to use
32689 Invalidate (invalid area) instead of Refresh when selecting.
32691 2005-01-17 Peter Bartok <pbartok@novell.com>
32694 - Implemented InvokeGotFocus() method
32695 - Implemented InvokeLostFocus() method
32696 - Implemented InvokePaint() method
32697 - Implemented InvokePaintBackground() method
32698 - Implemented InvokeClick() method
32699 - Implemented FindForm() method
32700 - Implemented RectangleToClient() method
32701 - Implemented ClientToRectangle() method
32702 - Implemented ResetBackColor() method
32703 - Implemented ResetCursor() method
32704 - Implemented ResetFont() method
32705 - Implemented ResteForeColor() method
32706 - Implemented ResetImeMode() method
32707 - Implemented ResetLeftToRight() method
32708 - Implemented ResetText() method
32709 - Implemented Scale() methods
32710 - Implemented ScaleCore() method
32711 - Implemented Update() method
32712 - Removed unused variables
32713 - Stubbed AccessibilityNotifyClients and
32714 ControlAccessibleObject.NotifyClients() methods (dunno what to do
32716 - Now setting proper default for RightToLeft property
32717 - Fixed bug in SetClientSizeCore that would cause windows to get
32719 - Now sending Click/DoubleClick events
32720 - Now selecting controls when left mouse button is clicked on
32722 * AccessibleEvents.cs: Added
32723 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32724 * XplatUIOSX.cs: Stubbed UpdateWindow() method
32725 * XplatUIWin32.cs: Implemented UpdateWindow() method
32726 * XplatUIX11.cs: Implemented UpdateWindow() method
32727 * Form.cs: Removed stray semicolon causing CS0162 warning
32728 * ThemeWin32Classic.cs: Fixed unused variable warnings
32729 * ScrollableControl.cs: Now calls base method for ScaleCore
32730 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32731 style to avoid interference with internal click handler (which is
32732 different than standard Control click handling)
32734 - Now unchecks all sibling radio buttons when control is
32735 selected (Fixes #68756)
32736 - Removed internal tabstop variable, using the one inherited from
32739 2005-01-17 Jackson Harper <jackson@ximian.com>
32741 * NavigateEventArgs.cs: Fix base type.
32742 * LinkLabel.cs: Sig fix
32744 2005-01-17 Jackson Harper <jackson@ximian.com>
32746 * TreeView.cs: Only invalidate the effected nodes bounds when
32749 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32751 * XplatUIWin32.cs: fixes Win32 marshaling
32752 * XplatUIX11.cs: fixes method signature
32754 2005-01-17 Peter Bartok <pbartok@novell.com>
32756 * XplatUIX11.cs: Clean up resources when we no longer need them
32758 2005-01-17 Peter Bartok <pbartok@novell.com>
32760 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32761 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32762 and DestroyCursor() methods.
32763 * Cursor.cs: Partially implemented, now supports standard cursors;
32764 still contains some debug code
32765 * Cursors.cs: Implemented class
32767 - WndProc(): Added handling of WM_SETCURSOR message, setting the
32769 - Implemented Cursor property
32770 - Replaced break; with return; more straightforwar and possibly
32772 - Now properly setting the result for WM_HELP
32773 * X11Structs.cs: Added CursorFontShape enum
32774 * XplatUIStructs.cs:
32775 - Added StdCursor enum (to support DefineStdCursor() method)
32776 - Added HitTest enum (to support sending WM_SETCURSOR message)
32778 - Now sends the WM_SETCURSOR message
32779 - Implemented new cursor methods
32780 * XplatUIOSX.cs: Stubbed new cursor methods
32782 - Implemented new cursor methods
32783 - Added GetSystemMetrics function and associated enumeration
32785 2005-01-15 Peter Bartok <pbartok@novell.com>
32788 - WndProc(): Now handles EnableNotifyMessage
32789 - SelectNextControl(): Fixed bug where if no child or sibling
32790 controls exist we looped endlessly
32792 2005-01-14 Jackson Harper <jackson@ximian.com>
32794 * TreeView.cs: Recalculate the tab pages when a new one is added
32795 so that the proper bounding rects are created.
32797 2005-01-14 Jackson Harper <jackson@ximian.com>
32799 * TreeView.cs: Draw a gray box instead of a grip in the lower
32800 right hand corner when there are both horizontal and vertical
32803 2005-01-14 Jackson Harper <jackson@ximian.com>
32805 * Control.cs: When erasing backgrounds use FromHwnd instead of
32806 FromHdc when there is a NULL wparam. This occurs on the X driver.
32807 * XplatUIX11.cs: Set the wparam to NULL.
32809 2005-01-13 Jackson Harper <jackson@ximian.com>
32811 * PictureBox.cs: Implement missing methods (except ToString, need
32812 to test that on windows) and events. When visibility is changed we
32813 need to redraw the image because the buffers are killed. When size
32814 is changed refresh if the sizemode needs it.
32816 2005-01-13 Peter Bartok <pbartok@novell.com>
32818 * Control.cs (SelectNextControl): Was using wrong method to select
32821 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32823 * ComboBox.cs: fixes dropstyle
32825 2005-01-13 Peter Bartok <pbartok@novell.com>
32828 - Implemented Select() override
32829 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32830 - Now sets keyboard focus on startup
32831 * Control.cs (SelectNextControl): Now properly handles directed=true
32833 - WndProc: Now passes tab key on to base if AcceptTabChar=false
32834 - Added (really bad) focus rectangle (mostly for testing)
32835 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32836 to enforce redraw on focus changes
32837 * ContainerControl.cs:
32838 - Fixed detection of Shift-Tab key presses
32839 - Fixed traversal with arrow keys
32840 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32841 gonna keep this or if it's complete yet
32843 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32845 * ComboBox.cs: missing properties, fixes
32847 2005-01-13 Peter Bartok <pbartok@novell.com>
32849 * Panel.cs (ctor): Setting Selectable window style to off
32850 * Splitter.cs (ctor): Setting Selectable window style to off
32851 * GroupBox.cs (ctor): Setting Selectable window style to off
32852 * Label.cs (ctor): Setting Selectable window style to off
32854 2005-01-12 Miguel de Icaza <miguel@ximian.com>
32856 * UpDownBase.cs (InitTimer): If the timer has been already
32857 created, enable it.
32859 Use a TextBox instead of a Label.
32861 2005-01-12 Jackson Harper <jackson@ximian.com>
32863 * TreeView.cs: Refresh the tree after sorting the nodes. Always
32864 draw the connecting node lines (when ShowLines is true).
32865 * TreeNode.cs: The nodes index can now be updated. This is used
32866 when a node collection is sorted.
32867 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32868 insert or an existing unsorted node collection can be sorted.
32870 2005-01-12 Peter Bartok <pbartok@novell.com>
32872 * ContainerControl.cs: Implemented ProcessDialogKeys()
32874 2005-01-12 Peter Bartok <pbartok@novell.com>
32877 - Implemented SelectNextControl() method
32878 - Several focus related bug fixes
32879 - Fixed Docking calculations to match MS documentation and
32882 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
32884 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32887 2005-01-12 Peter Bartok <pbartok@novell.com>
32890 - Fixed broken Contains() method
32891 - Implemented GetNextControl() method. Finally. This is the pre-
32892 requisite for focus handling.
32894 2005-01-12 Peter Bartok <pbartok@novell.com>
32896 * OSXStrucs.cs: Added
32898 2005-01-12 Peter Bartok <pbartok@novell.com>
32901 - Removed PeekMessageFlags
32902 - Implemented SetWindowStyle() method
32903 * XplatUIStructs.cs: Added PeekMessageFlags
32904 * X11Structs: Added missing border_width field to XWindowChanges struct
32906 - PeekMessage: Now throws exception if flags which are not yet
32907 supported are passed
32908 - Implemented SetWindowStyle() method
32909 - Fixed SetZOrder to handle AfterHwnd properly
32910 * XplatUI.cs: Added SetWindowStyle() method
32911 * XplatUIDriver.cs: Added SetWindowStyle() abstract
32913 - Implemented UpdateStyles() method
32914 - Implemented UpdateZOrder() method
32915 * XplatUIOSX.cs: Added SetWindowStyle() stub
32917 2005-01-12 Geoff Norton <gnorton@customerdna.com>
32919 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32923 2005-01-11 Jackson Harper <jackson@ximian.com>
32925 * TreeView.cs: Still need to draw lines to siblings even if out of
32926 the current node is out of the clip.
32928 2005-01-11 Jackson Harper <jackson@ximian.com>
32930 * TreeView.cs: When setting the hbar/vbar/grip position use
32931 SetBounds so that perform layout is only called once. Also suspend
32932 and resume layout so layout is only done once for all controls.
32933 - Removed some debug fluff
32934 * SizeGrip.cs: Call base implmentation in overriding methods.
32935 - When visibility is changed the drawing buffers are killed so we
32938 2005-01-11 Jackson Harper <jackson@ximian.com>
32940 * TreeView.cs: Calculate the open node count while drawing. This
32941 saves us an entire tree traversal for every paint operation. Use
32942 a member var for the open node count so less vars are passed around.
32944 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
32946 * MonthCalendar.cs:
32947 - fixed selection to use mousemove, not mouse polling on timer
32948 * ThemeWin32Classic.cs
32949 - removed redundant unused variable "no_more_content"
32951 2005-01-11 Peter Bartok <pbartok@novell.com>
32953 * XplatUIX11.cs (DoEvents): Needs to return when no more events
32954 are pending, so it now calls PeekMessage instead of GetMessage;
32955 implemented a incomplete version of PeekMessage
32957 2005-01-11 Peter Bartok <pbartok@novell.com>
32959 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32961 * TextBoxBase.cs: Added sending of TextChanged event
32963 2005-01-10 Jackson Harper <jackson@ximian.com>
32965 * TreeView.cs: Try not to draw outside the clipping rectangle on
32968 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
32970 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32972 2005-01-10 Jackson Harper <jackson@ximian.com>
32975 - Implement fast scrolling. Now only the newly
32976 exposed nodes are drawn and the old image is moved using the
32977 XplatUI::ScrollWindow method.
32978 - Factor in height of nodes when calculating whether or not the
32979 node is in the clipping rect.
32981 2005-01-10 Jackson Harper <jackson@ximian.com>
32983 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32985 2005-01-10 Peter Bartok <pbartok@novell.com>
32987 * Application.cs: Added temporary hack to resolve all our resize
32988 required issues on startup. This will get fixed properly at
32989 some point in the future
32991 2005-01-10 Jackson Harper <jackson@ximian.com>
32993 * SizeGrip.cs: New internal class that is used as a sizing
32994 grip control...hence the name.
32996 2005-01-10 Peter Bartok <pbartok@novell.com>
32998 * Control.cs: Implemented proper TabIndex handling, now assigning
32999 a tabindex when a control is added to a container
33000 * GroupBox.cs (ctor): Now sets the Container style bit, required
33001 for Control.GetNextControl()
33003 2005-01-09 Jackson Harper <jackson@ximian.com>
33005 * TextBoxBase.cs: Clear window when scrolling (fixes build).
33007 2005-01-09 Peter Bartok <pbartok@novell.com>
33009 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33010 XplatUIX11.cs: Added ability to control ScrollWindow expose and
33011 an overload for ScrollWindow to allow only scrolling a rectangle
33013 2005-01-09 Peter Bartok <pbartok@novell.com>
33016 - Implemented SetDesktopBounds method
33017 - Implemented SetDesktopLocation method
33019 2005-01-08 Jackson Harper <jackson@ximian.com>
33021 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33022 the node count has changed, this removes to VScroll::Refresh calls
33025 2005-01-08 Geoff Norton <gnorton@customerdna.com>
33027 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33029 2005-01-07 Jackson Harper <jackson@ximian.com>
33031 * TreeNode.cs: Just update the single node when it is
33032 checked. Don't refresh after toggling, the Expand/Collapse already
33034 * TreeView.cs: Respect clipping a little more when drawing. Try
33035 not to redraw things that don't need to be redrawn. Just hide the
33036 scrollbars when they are no longer needed instead of removing
33037 them, so they don't have to be created again and again.
33039 2005-01-07 Geoff Norton <gnorton@customerdna.com>
33041 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
33042 coordinates to window space to place the caret properly, FIXED.
33043 Implement GetWindowState & SetWindowState
33045 2005-01-06 Peter Bartok <pbartok@novell.com>
33048 - Implemented ClientSize property
33049 - Implemented DesktopBounds property
33050 - Implemented DesktopLocation property
33051 - Implemented IsRestrictedWindow property
33052 - Implemented Size property
33053 - Implemented TopLevel property
33054 - Implemented FormWindowState property
33056 - Implemented GetTopLevel() method
33057 - Implemented SetTopLevel() method
33058 * X11Structs.cs (Atom):
33059 - Added AnyPropertyType definition
33060 - Added MapState definiton and updated XWindowAttribute struct
33061 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33062 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33063 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
33065 - Implemented GetWindowState() and SetWindowState() methods
33066 - Fixed Win32GetWindowLong return type
33068 - Introduced central function for sending NET_WM messages
33069 - Implemented GetWindowState() and SetWindowState() methods
33070 * TextBoxBase.cs (set_Lines):
33071 - Now uses Foreground color for text added via Text property (Duh!)
33072 - Added code to remember programmatically requested size (fixes
33073 behaviour when Multiline is set after Size)
33074 - Added AutoSize logic
33076 2005-01-06 Jackson Harper <jackson@ximian.com>
33078 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
33080 2005-01-06 Jackson Harper <jackson@ximian.com>
33082 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
33083 set to less then 0.
33085 2005-01-06 Jackson Harper <jackson@ximian.com>
33087 * ScrollableControl.cs: Lazy init the scrollbars.
33089 2005-01-06 Jackson Harper <jackson@ximian.com>
33091 * Theme.cs: Speed up getting pens and solid brushes, by using
33092 their ARGB as a hash instead of tostring and not calling Contains.
33094 2005-01-06 Peter Bartok <pbartok@novell.com>
33097 - Implemented OnActivated and OnDeactivate event trigger
33098 - Implemented Activate() method
33099 - Fixed ShowDialog() to activate the form that was active before
33100 the dialog was shown
33102 - Added global active_window var that tracks the currently active
33104 - Now always grabs Property changes from the root window to always
33105 catch changes on the active window property
33106 - Added code to PropertyNotify handler to send Active/Inactive
33107 messages when state changes. This puts X11 and Win32 en par on
33108 WM_ACTIVATE notifications (except for double notifications when
33109 the user clicks away from our modal window to another one of our
33112 2005-01-05 Jackson Harper <jackson@ximian.com>
33114 * ImageList.cs: Implment ctor
33116 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33118 * XplatUIOSX.cs: Implement Activate/SetTopmost
33120 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33122 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
33124 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33126 * XplatUIOSX.cs: Implement GetActive/SetFocus.
33128 2005-01-05 Peter Bartok <pbartok@novell.com>
33130 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
33131 XplatUIOSX.cs: Added GetActive method to return the currently
33132 active window for the application (or null, if none is active)
33134 - Implemented ActiveForm
33135 - Commented out owner assignment for modal dialogs (causes problems
33136 on Win32, since the owner will be disabled)
33137 - Reworked some Active/Focus handling (still incomplete)
33138 * CommonDialog.cs: Commented out owner assignment for modal dialogs
33139 (causes problems on Win32, since the owner will be disabled)
33140 * IWin32Window: Added ComVisible attribute
33142 2005-01-05 Peter Bartok <pbartok@novell.com>
33144 * ToolTip.cs (WndProc): Enable setting focus now that we have the
33145 required XplatUI functions.
33147 2005-01-05 Peter Bartok <pbartok@novell.com>
33149 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
33150 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
33151 to implement focus and activation handling; still incomplete and
33154 2005-01-04 Peter Bartok <pbartok@novell.com>
33156 * TextBoxBase.cs: Changed access level for Document property to
33157 match switch to internal for TextControl
33159 2005-01-04 Peter Bartok <pbartok@novell.com>
33161 * AccessibleObject: Added ComVisible attribute
33163 2005-01-04 Jackson Harper <jackson@ximian.com>
33165 * X11Keyboard.cs: Remove unneeded var.
33167 2005-01-04 Jackson Harper <jackson@ximian.com>
33169 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
33171 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33172 ClientMessage. This makes apps exit cleanly (more often).
33174 2005-01-04 Jackson Harper <jackson@ximian.com>
33176 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33177 handling focus, return correct colors and fonts,
33178 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33179 handle selection, horizontal scrolling, and mouse interaction.
33181 2005-01-04 Peter Bartok <pbartok@novell.com>
33183 * ICommandExecutor.cs: Added
33184 * IDataGridColumnStyleEditingNotificationService.cs: Added
33185 * IFeatureSupport.cs: Added
33186 * IFileReaderService.cs: Added
33187 * IDataObject.cs: Added ComVisible attribute
33188 * AmbientProperties.cs: Added
33189 * BaseCollection.cs: Added missing attributes
33190 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33191 * BaseCollection.cs: Added missing attributes
33192 * Binding.cs: Added TypeConverter attribute
33193 * BindingContext.cs: Added DefaultEvent attribute
33194 * BindingsCollection.cs: Added DefaultEvent attribute
33195 * Button.cs: Added DefaultValue attribute
33196 * DragEventArgs.cs: Added ComVisible attribute
33197 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33198 * KeyEventArgs.cs: Added ComVisible attribute
33199 * KeyPressEventArgs.cs: Added ComVisible attribute
33200 * MouseEventArgs.cs: Added ComVisible attribute
33201 * NavigateEventArgs.cs: Added
33202 * NavigateEventHandler.cs: Added
33203 * FeatureSupport.cs: Added
33204 * OSFeature.cs: Added
33205 * Theme.cs: Added abstract Version property to support OSFeature
33206 * ThemeWin32Classic.cs: Added Version property to
33207 support OSFeature.Themes
33208 * ProgressBar.cs: Removed OnPaintBackground override, not required since
33209 the proper styles to avoid background drawing are set, also doesn't
33211 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33212 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33213 * ScrollEventArgs.cs: Added ComVisible attribute
33214 * SplitterEventArgs.cs: Added ComVisible attribute
33215 * AccessibleSelection.cs: Added Flags attribute
33216 * Appearance.cs: Added ComVisible attribute
33217 * Border3DSide.cs: Added ComVisible attribute
33218 * Border3DStyle.cs: Added ComVisible attribute
33219 * BorderStyle.cs: Added ComVisible attribute
33220 * DragAction.cs: Added ComVisible attribute
33221 * ErrorBlinkStyle.cs: Added
33222 * ScrollEventType.cs: Added ComVisible attribute
33223 * AnchorStyles.cs: Added Editor attribute
33224 * DockStyle.cs: Added Editor attribute
33225 * HorizontalAlignment.cs: Added ComVisible attribute
33226 * HelpEventArgs.cs: Added ComVisible attribute
33227 * PaintEventArgs.cs: Added IDisposable
33229 2005-01-04 Peter Bartok <pbartok@novell.com>
33231 * TextControl.cs: Switched Line, LineTag and Document classes to
33234 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33236 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33237 Simple mode, fixes, IntegralHeight, etc.
33239 2005-01-04 Peter Bartok <pbartok@novell.com>
33241 * TextBoxBase.cs: Using proper font variable now
33243 2005-01-04 Peter Bartok <pbartok@novell.com>
33245 * Form.cs (ShowDialog): Set parent to owner, if provided
33246 * GroupBox.cs: Removed unused vars
33248 - Added GetHashCode() for Document and LineTag classes
33249 - Removed unused variables
33250 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33251 to allow translation between continuous char position and line/pos
33252 * CheckBox.cs: Removed vars that are provided by base class
33253 * RadioButton.cs: Removed vars that are provided by base class, added
33254 new keyword where required
33255 * LinkLabel.cs: Added new keyword where required
33256 * Control.cs (WndProc): Removed unused variable
33258 - Finished SelectionLength property
33259 - Implemented SelectionStart property
33260 - Implemented Text property
33261 - Removed unused vars
33262 * MessageBox.cs: Added new keyword where required
33263 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33265 * MenuAPI.cs: Added new keyword where required
33266 * ButtonBase.cs: Removed vars that are provided by base class, added
33267 new keyword where required
33268 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33269 argument to double, to allow compiling with csc 2.0 (Atsushi ran
33271 * Application.cs (Run): Now triggers the ThreadExit event
33272 * CommonDialog.cs: Added new keyword where required; now properly sets
33273 parent (owner) for dialog
33274 * XplatUIX11.cs: Commented out unused vars
33275 * StatusBar.cs: Fixed signature for Text property
33276 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33278 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33280 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33281 TrackBar.cs, MonthCalendar.cs: remove unused vars
33283 2005-01-03 Jackson Harper <jackson@ximian.com>
33285 * ThemeWin32Classic.cs:
33286 * X11Keyboard.cs: Remove unused vars.
33288 2005-01-03 Peter Bartok <pbartok@novell.com>
33291 - set_Text: Tied into TextControl
33292 - set_TextAlignment: Tied into TextControl
33294 - Added alignment properties and implemented alignment handling
33295 and drawing (still has a bug, not generating proper expose events)
33296 - Added new Line() constructor to allow passing the line alignment
33297 - Fixed selection setting, properly handling end<start now
33298 - Added aligment considerations to RecalculateDocument()
33300 - Now properly enforces control height for single line controls
33301 - Added support for CharacterCasing
33302 - Added IsInputKey override
33303 - Fixed Keys.Enter logic
33304 - Added SetBoundsCore override
33305 - Fixed mouse selection handling
33307 2005-01-03 Jackson Harper <jackson@ximian.com>
33310 - Collapse and uncheck all nodes when CheckBoxes is disabled.
33311 - Checkboxes are always aligned to the bottom of the node,
33312 regardless of item height.
33313 - Use the node bounds to draw the text so we can center it when
33314 the item height is greater then the font height.
33315 - Node::Bounds are only the text part of the node.
33316 * TreeNode.cs: New method to combine collapsing and unchecking all
33319 2005-01-02 Jackson Harper <jackson@ximian.com>
33321 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33322 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33323 tree when a check is changed. TODO: Only refresh the checked node.
33325 2004-12-30 Jackson Harper <jackson@ximian.com>
33327 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33328 * TreeNode.cs: When collapsing make sure to never collapse the
33331 2004-12-29 Jackson Harper <jackson@ximian.com>
33333 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33335 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
33337 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33339 2004-12-28 Peter Bartok <pbartok@novell.com>
33341 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33344 2004-12-28 Peter Bartok <pbartok@novell.com>
33346 * Control.cs (WndProc): Added WM_HELP handler, now generates
33347 HelpRequested event
33348 * Form.cs: Added HelpButton property and required support code
33349 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33351 2004-12-28 Peter Bartok <pbartok@novell.com>
33354 - Made DialogForm.owner variable internal
33355 - Added check to ensure owner form is set before setting
33356 owner properties in CreateParams
33358 2004-12-28 Geoff Norton <gnorton@customerdna.com>
33360 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
33361 swizzling. Implement ClientToScreen and ScreenToClient. Implement
33362 GetCursorPos. Fix major visibility issues. Rework the windowing
33363 system to support borderless/titleless windows (implements menus).
33364 Fix GetWindowPos. Implement initial background color support for
33367 2004-12-28 Peter Bartok <pbartok@novell.com>
33369 * Form.cs (get_CreateParams): Make sure we have an owner before using
33370 the owner variable. Implement proper default if no owner exists
33372 2004-12-28 Peter Bartok <pbartok@novell.com>
33374 * In preparation for making Managed.Windows.Forms the default build target
33375 for System.Windows.Forms, the following stubbed files were added.
33376 Dialogs are currently being implemented by contributors and are only
33377 short-term place holders.
33378 * ColorDialog.cs: Initial check-in (minmal stub)
33379 * DataGrid.cs: Initial check-in (minimal stub)
33380 * DataGridLineStyle.cs: Initial check-in (minimal stub)
33381 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33382 * DataGridTableStyle.cs: Initial check-in (minimal stub)
33383 * FontDialog.cs: Initial check-in (minimal stub)
33384 * FileDialog.cs: Initial check-in (minimal stub)
33385 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33386 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33387 * OpenFileDialog: Initial check-in (minimal stub)
33388 * IComponentEditorPageSite.cs: Initial check-in
33389 * Splitter.cs: Initial check-in (for Jackson)
33390 * SplitterEventArgs.cs: Initial check-in (for Jackson)
33391 * SplitterEventHandler.cs: Initial check-in (for Jackson)
33392 * TextBox.cs: Initial check-in; still needs some wiring to
33393 TextControl backend
33394 * Form.cs: Implemented ControlBox property
33395 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33396 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33397 * TextControl.cs: Added selection functionality; added todo header
33399 - Implemented Lines property
33400 - Implemented TextHeight property
33401 - Implemented SelectedText property
33402 - Implemented SelectionLength property
33403 - Implemented SelectAll method
33404 - Implemented ToString method
33405 - Removed and cleaned up some debug code
33406 - Implemented (still buggy) mouse text selection
33408 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
33410 * ComboBox.cs: Complete DropDownList implementation, fixes.
33412 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
33414 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33415 * ComboBoxStyle.cs: ComboBoxStyle enum
33416 * ComboBox.cs: Initial work on ComboBox control
33418 2004-12-21 Peter Bartok <pbartok@novell.com>
33420 * Control.cs (ctor, CreateParams): Moved setting of is_visible
33421 forward so that anything that creates a window gets the default,
33422 also no longer uses Visible property in CreateParams to avoid
33423 walking up the parent chain and possibly get the wrong visible
33424 status. Fixed IsVisible to no longer walk up to the parent.
33426 2004-12-21 Peter Bartok <pbartok@novell.com>
33428 * Form.cs (ShowDialog): Unset modality for the proper window
33430 2004-12-20 Peter Bartok <pbartok@novell.com>
33432 * CommonDialog.cs: Initial check-in
33434 2004-12-20 Peter Bartok <pbartok@novell.com>
33436 * Control.cs (Visible): Now uses the parent window instead of the
33437 client area window for the property
33440 - ShowDialog(): Now uses the proper window for modality
33441 - The default visibility state for the form parent is now false. This
33442 will prevent the user from seeing all the changes to the form and
33443 its controls before the application hits Application.Run()
33444 - Removed some stale commented out code
33447 - Added FindWindow() method to have a method to check for existence
33449 - Added ability to override default exception handling (for example
33450 when debugging with VS.Net; to do this the ExternalExceptionHandler
33452 - Removed some useless debug output
33455 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33456 not working as expected
33457 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33458 property to allow switching back to the modal window if focus is
33459 given to another one of our windows (Application Modal)
33460 - Now only sets override_redirect if we create a window
33462 - Moved EventMask selection before mapping of newly created window
33463 so we can catch the map event as well
33464 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33465 - Added various Atom related DllImports
33466 - Implemented Exit() method
33467 - .ctor() : No longer shows window if WS_VISIBLE is not defined
33468 in the CreateParams
33470 * MessageBox.cs: Now properly deals with the FormParent window by
33471 providing an override the FormParent CreateParams property to
33472 set as POPUP instead of OVERLAPPED window.
33474 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33476 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
33477 Minor code cleanup.
33479 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33481 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33483 2004-12-18 Peter Bartok <pbartok@novell.com>
33485 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33486 implementing SetModal() method
33488 2004-12-18 Peter Bartok <pbartok@novell.com>
33490 * X11Structs.cs (XGCValues): Fixed type of function element
33491 * XplatUI.cs: Added ScrollWindow() method
33492 * XplatUIDriver.cs: Added ScrollWindow() abstract
33493 * XplatUIWin32.cs: Implemented ScrollWindow() method
33494 * XplatUIX11.cs: Implemented ScrollWindow() method
33495 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33497 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33499 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
33500 Some more keyboard support (INCOMPLETE)
33502 2004-12-17 Peter Bartok <pbartok@novell.com>
33505 - Added color attribute to line tags.
33506 - Added color argument to all functions dealing with tags
33507 - Added color argument support to various functions
33508 - Fixed miss-calculation of baseline/shift in certain circumstances
33510 * TextBoxBase.cs: Added new color option to test code
33512 2004-12-17 Jackson Harper <jackson@ximian.com>
33515 * MonthCalendar.cs: Signature fixes
33517 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33519 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33520 keyboard event moved it. Create a new graphics context for each paint resolves this
33522 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33524 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33525 Make caret exist and go blink blink. Initial keyboard support.
33526 Fix exception handler, Add Invalidate support. Change way RefreshWindow
33529 2004-12-17 Jackson Harper <jackson@ximian.com>
33531 * XplatUIStructs.cs: Updated set of virtual keycodes.
33532 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33534 2004-12-17 Jackson Harper <jackson@ximian.com>
33536 * XplatUIX11.cs: Prune old keyboard code.
33538 2004-12-17 Jackson Harper <jackson@ximian.com>
33540 * XplatUIX11.cs: When generating mouse wparams get the modifier
33541 keys from the ModifierKeys property.
33543 2004-12-17 Jackson Harper <jackson@ximian.com>
33545 * X11Keyboard.cs: Send up/down input when generating
33546 messages. Remove some unused vars.
33548 2004-12-17 Jackson Harper <jackson@ximian.com>
33551 * TreeView.cs: get rid of warnings.
33553 2004-12-17 Jackson Harper <jackson@ximian.com>
33555 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33557 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
33559 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33560 CheckedListBox.cs: Implementation
33562 2004-12-17 Peter Bartok <pbartok@novell.com>
33564 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33566 2004-12-16 Peter Bartok <pbartok@novell.com>
33569 - InsertCharAtCaret(): Fixed start pos fixup
33570 - CaretLine_get: No longer derives the line from the tag, the tag
33571 could be stale if lines in the document have been added or deleted
33572 - RebalanceAfterDelete(): Fixed bug in balancing code
33573 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33574 - Line.Streamline(): Now can also elminate leading empty tags
33575 - DumpTree(): Added a few more tests and prevented exception on
33577 - Added Debug section for Combining lines
33578 - Delete(): Now copies all remaining properties of a line
33581 - Left mousebutton now sets the caret (and middle button still acts
33582 as formatting tester, which must go away soon)
33583 - Added Debug section for Deleting/Combining lines
33584 - Fixed calculations for UpdateView after Combining lines
33586 2004-12-16 Peter Bartok <pbartok@novell.com>
33588 * TextControl.cs: Now properly aligns text on a baseline, using the
33589 new XplatUI.GetFontMetrics() method. Simplified several calculations
33590 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33593 2004-12-16 Peter Bartok <pbartok@novell.com>
33595 * XplatUI.cs: Added GetFontMetrics() method
33596 * XplatUIDriver.cs: Added GetFontMetrics() abstract
33597 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33598 into libgdiplus, our private GetFontMetrics function
33599 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33600 * XplatUIWin32.cs: Implemented GetFontMetrics() method
33602 2004-12-16 Jackson Harper <jackson@ximain.com>
33604 * XplatUIStruct.cs: Add enum for dead keys
33605 * X11Keyboard.cs: Map and unmap dead keys.
33607 2004-12-16 Jackson Harper <jackson@ximian.com>
33609 * X11Keyboard.cs: Detect and use the num lock mask.
33611 2004-12-16 Peter Bartok <pbartok@novell.com>
33613 * Control.cs (CreateGraphics): Added check to make sure the
33614 handle of the window exists before calling Graphics.FromHwnd()
33616 2004-12-16 Peter Bartok <pbartok@novell.com>
33618 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33619 contains a lot of code that's not supposed to be there for the
33620 real thing, but required for developing/testing the textbox
33623 2004-12-16 Peter Bartok <pbartok@novell.com>
33626 - Fixed Streamline method
33627 - Added FindTag method to Line
33628 - Added DumpTree method for debugging
33629 - Added DecrementLines() method for deleting lines
33630 - Fixed UpdateView to update the cursor to end-of-line on single-line
33632 - Added PositionCaret() method
33633 - Fixed MoveCaret(LineDown) to move into the last line, too
33634 - Added InsertChar overload
33635 - Fixed InsertChar tag offset calculations
33636 - Added DeleteChar() method
33637 - Added Combine() method for folding lines
33638 - Fixed Delete() method, no longer allocates wasted Line object and
33639 now copies all properties when swapping nodes
33640 - Delete() method now updates document line counter
33642 2004-12-15 Jackson Harper <jackson@ximian.com>
33644 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33645 * X11Keyboard.cs: Expose the currently selected modifier keys
33646 through a property.
33648 2004-12-15 Peter Bartok <pbartok@novell.com>
33650 * TextControl.cs: Initial check-in. Still incomplete
33652 2004-12-15 Jackson Harper <jackson@ximian.com>
33655 * TreeView.cs: Fix build on csc (second time today ;-))
33657 2004-12-15 Jackson Harper <jackson@ximian.com>
33659 * TreeView.cs: Store the treenodes plus/minus box bounds when it
33660 is calculated and use this for click testing.
33661 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33663 2004-12-15 Jackson Harper <jackson@ximian.com>
33665 * TreeView.cs: Pass the nodes image index to the image list when
33666 drawing that image.
33668 2004-12-15 Jackson Harper <jackson@ximian.com>
33670 * X11Keyboard.cs: Set messages hwnd.
33671 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33672 post_message calls.
33674 2004-12-15 Jackson Harper <jackson@ximian.com>
33676 * X11Keyboard.cs: Fix to compile with csc.
33678 2004-12-15 Jackson Harper <jackson@ximian.com>
33680 * X11Structs.cs: Add key mask values
33681 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33682 * X11Keyboard.cs: New file - Extrapolates and interpolates key
33683 down/up foo into WM_CHAR foo
33684 * KeyboardLayouts.cs: Common keyboard layouts
33685 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33686 post messages into the main queue.
33688 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
33690 * Button.cs: implement ProcessMnemonic
33691 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33693 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33694 * ButtonBase.cs: Show HotkeyPrefix (not the &)
33696 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
33698 * MonthCalendar.cs: Implemented click-hold for next/previous month
33701 2004-12-11 Peter Bartok <pbartok@novell.com>
33704 - Added XKeyboardState (moved from XplatUIX11.cs)
33705 - Added XCreateGC related enums and structures
33706 - Added GXFunction for XSetFunction
33708 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33710 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33711 CaretVisible() calls
33713 * ToolTip.cs: Added code to prevent stealing focus from app windows
33715 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33716 DestroyCaret, SetCaretPos and CaretVisible)
33719 - Added implementation for caret functions
33720 - Moved hover variables into a struct, to make it a bit easier
33721 on the eyes and to debug
33722 - Removed XKeyboardState (moved to XplatUIX11.cs)
33723 - Moved Keyboard properties into the properties region
33725 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33726 call to get a graphics context for our control
33728 * XplatUIOSX.cs: Added empty overrides for the new caret functions
33730 * TreeView.cs: Fixed bug. No matter what color was set it would always
33731 return SystemColors.Window
33733 * XplatUIWin32.cs: Implemented caret overrides
33735 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
33737 * ListBox.cs: fire events, implement missing methods and properties,
33740 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
33742 * MonthCalendar.cs: invalidation bug fixing
33743 * ThemeWin32Classic.cs: paint fixing
33745 2004-12-09 Geoff Norton <gnorton@customerdna.com>
33747 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33748 prepare the CGContextRef there now.
33750 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
33752 * MonthCalendar.cs:
33753 - optimisationL only invalidate areas that have changed
33754 * ThemeWin32Classic.cs:
33755 - only paint parts that intersect with clip_area
33757 2004-12-09 Peter Bartok <pbartok@novell.com>
33759 * Application.cs: Undid changes from r37004 which cause problems
33762 2004-12-09 Ravindra <rkumar@novell.com>
33764 * ToolBar.cs: Added support for displaying ContextMenu
33765 attached to a button on ToolBar.
33766 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33769 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33771 * Label.cs: autosize works in text change and removes unnecessary
33774 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33776 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33779 2004-12-08 Geoff Norton <gnorton@customerdna.com>
33781 * XplatUIOSX.cs: Added mouse move/click/grab support
33782 Remove some debugging WriteLines not needed anymore.
33783 Add window resizing/positioning.
33784 Fix visibility on reparenting.
33786 2004-12-08 Peter Bartok <pbartok@novell.com>
33788 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33790 2004-12-07 Geoff Norton <gnorton@customerdna.com>
33792 * XplatUIOSX.cs: Initial checkin
33793 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33795 2004-12-03 Ravindra <rkumar@novell.com>
33797 * ListView.cs: Added some keybindings and fixed scrolling.
33798 ScrollBars listen to ValueChanged event instead of Scroll
33799 Event. This would let us take care of all changes being
33800 done in the scrollbars' values programmatically or manually.
33801 * ListView.cs (CanMultiselect): Added a check for shift key.
33802 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33803 * ListViewItem.cs (Clone): Fixed. We need to make a copy
33804 of ListViewSubItemCollection as well.
33806 2004-12-06 Peter Bartok <pbartok@novell.com>
33808 * Control.cs (Parent): Added check and exception to prevent
33811 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
33813 * ListBox.cs: implemented clipping, selection single and multiple,
33816 2004-12-03 Ravindra <rkumar@novell.com>
33818 * ListView.cs (ListView_KeyDown):
33819 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33820 when CTRL key is pressed.
33821 * ListViewItem.cs (Selected): Fixed setting the property.
33823 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33825 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33827 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33828 MinimizeBox, ShowInTaskbar, TopMost properties.
33830 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33831 will be implemented).
33833 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33835 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33837 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33840 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33842 * TreeView.cs: BackColor is Colors.Window.
33844 2004-12-01 Jackson Harper <jackson@ximian.com>
33846 * TreeView.cs: When resizing the tree if the user is making it
33847 smaller we don't get expose events, so we need to handle adding
33848 the horizontal scrollbar in the size changed handler as well as
33849 the expose handler.
33851 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
33853 * DrawItemState.cs: fixes wrong enum values
33855 2004-12-01 Jackson Harper <jackson@ximian.com>
33857 * TreeView.cs: Resize the hbar as well as the vbar on resize.
33859 2004-12-01 Jackson Harper <jackson@ximian.com>
33861 * NodeLabelEditEventArgs.cs:
33862 * NodeLabelEditEventHandler.cs:
33863 * OpenTreeNodeEnumerator.cs:
33865 * TreeNodeCollection.cs:
33867 * TreeViewAction.cs:
33868 * TreeViewCancelEventArgs.cs:
33869 * TreeViewCancelEventHandler.cs:
33870 * TreeViewEventArgs.cs:
33871 * TreeViewEventHandler.cs: Initial implementation.
33873 2004-12-01 Ravindra <rkumar@novell.com>
33875 * ListView.cs (CalculateListView): Fixed scrolling related
33876 calculations. Also, removed some debug statements from other
33878 * ListViewItem.cs: Changed access to 'selected' instance variable
33879 from private to internal.
33880 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33882 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
33884 * ThemeWin32Classic.cs: remove cache of brush and pens for
33885 specific controls and use the global system, fixes scrollbutton
33886 bugs (for small sizes, disabled, etc)
33888 * ScrollBar.cs: does not show the thumb for very small controls
33889 (as MS) and allow smaller buttons that the regular size
33891 2004-12-01 Miguel de Icaza <miguel@ximian.com>
33893 * UpDownBase.cs: Add abstract methods for the interface.
33894 Add new virtual methods (need to be hooked up to TextEntry when it
33896 Add override methods for most features.
33897 Computes the size, forces the height of the text entry.
33899 * NumericUpDown.cs: Put here the current testing code.
33901 * Set eol-style property on all files that do not have mixed line
33902 endings, to minimize the future problems. There are still a few
33903 files with mixed endings, and someone should choose whether they
33904 want to move it or not.
33906 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
33908 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33911 2004-11-30 Ravindra <rkumar@novell.com>
33913 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33914 drawing and replaced use of SystemColors by theme colors.
33915 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33916 * ListView.cs (ListViewItemCollection.Add): Throw exception when
33917 same ListViewItem is being added more than once.
33919 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
33921 * MonthCalendar.cs:
33922 - ControlStyles love to make the control not flicker
33924 2004-11-30 Peter Bartok <pbartok@novell.com>
33926 * CharacterCasing.cs: Added
33928 2004-11-29 Peter Bartok <pbartok@novell.com>
33930 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33931 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33932 I am removing these files as they conflict with already completed
33933 work. While it is fantastic to get contributions to MWF, I
33934 respectfully ask that everyone please coordinate their contributions
33935 through mono-winforms-list or #mono-winforms at this time. We're
33936 explicitly avoiding stubbing and don't want controls that don't have
33937 their basic functionality implemented in svn. Please also see
33938 http://www.mono-project.com/contributing/winforms.html
33941 2004-11-29 Marek Safar <marek.safar@seznam.cz>
33943 * Application.cs (ModalRun): Don't hang after exit.
33945 * Theme.cs: New TreeViewDefaultSize property.
33947 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33948 with less hardcoded SystemColors constant.
33949 Implemented TreeViewDefaultSize.
33951 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33952 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33955 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
33957 * MonthCalendar.cs:
33958 - Fix NextMonthDate and PrevMonthDate click moving calendar
33960 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33962 * MonthCalendar.cs:
33963 - Fix usage of ScrollChange Property when scrolling months
33965 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
33967 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33968 - Fixes menu destroying
33969 - Support adding and removing items on already created menus
33971 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33973 * MonthCalendar.cs:
33974 - Re-worked all bolded dates handling to match win32
33975 * ThemeWin32Classic.cs:
33976 - Fixed rendering with bolded dates
33978 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
33980 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33981 - Horizontal scroolbar
33986 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
33988 * MonthCalendar.cs:
33989 - Fix Usage of MaxSelectionCount from SelectionRange
33990 - Fixed Shift + Cursor Selection
33991 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33992 - Fixed normal cursor selection to be compat with win32
33993 - Fixed Shift + Mouse Click selection
33995 2004-11-24 Peter Bartok <pbartok@novell.com>
33997 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33998 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34000 - CreatedKeyBoardMsg now updates keystate with Alt key
34001 - Added workaround for timer crash to CheckTimers, Jackson will
34002 develop a proper fix and check in later
34003 - Implemented DispatchMessage
34004 - Removed calling the native window proc from GetMessage (call
34005 now moved to DispatchMessage)
34007 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34008 the keydata (Fixes bug #69831)
34011 - (DispatchMessage): Switched to return IntPtr
34012 - Added DllImport for SetFocus
34014 2004-11-24 Ravindra <rkumar@novell.com>
34016 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34017 background drawing.
34018 * ListViewItem.cs: Fixed various properties, calculations
34019 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34020 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34021 and some internal properties. Fixed MouseDown handler and Paint
34024 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34026 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34028 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34030 * ContainerControl.cs: correct accidental check in of local changes
34032 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34034 * ThemeWin32Classic.cs:
34035 - Fixed Drawing Last month in grid (sometimes not showing)
34036 * MonthCalendar.cs:
34037 - Fixed title width calculation bug (makeing title small)
34039 2004-11-23 Peter Bartok <pbartok@novell.com>
34042 - Added generation of WM_MOUSEHOVER event
34043 - Added missing assignment of async_method atom
34044 - Fixed WM_ERASEBKGND; now only redraws the exposed area
34046 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34048 * ThemeWin32Classic.cs:
34049 - Fixed Drawing of today circle when showtodaycircle not set
34050 - fixed drawing of first and last month in the grid (gay dates)
34051 * MonthCalendar.cs:
34052 - Fixed Drawing of today circle
34053 - Fixed drawing of grady dates
34054 - Fixed HitTest for today link when ShowToday set to false
34055 - Fixed DefaultSize to obey ShowToday
34057 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34059 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34060 * System.Windows.Forms/Theme.cs
34061 * MonthCalendar.cs: added for MonthCalendar
34062 * SelectionRange.cs: added for MonthCalendar
34063 * Day.cs: added for MonthCalendar: added for MonthCalendar
34064 * DateRangeEventArgs.cs: added for MonthCalendar
34065 * DateRangeEventHandler.cs: added for MonthCalendar
34067 2004-11-22 Ravindra <rkumar@novell.com>
34069 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
34072 2004-11-22 Miguel de Icaza <miguel@ximian.com>
34074 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
34077 * NumericUpDown.cs: Added new implementation.
34078 * UpDownBase.cs: Added new implementation.
34080 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
34083 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
34086 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
34089 2004-11-21 Miguel de Icaza <miguel@ximian.com>
34091 * Timer.cs (Dispose): Should call the base dispose when
34094 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34096 * ScrollBar.cs: updates thumb position when max, min or increment
34099 2004-11-21 Ravindra <rkumar@novell.com>
34101 * ListView.cs: Implemented item selection, activation and
34102 column header style. Fixed properties to do a redraw, if
34103 required. Added support for MouseHover, DoubleClick, KeyDown
34104 and KeyUp event handling and some minor fixes.
34105 * ListViewItem.cs: Fixed constructor.
34106 * ThemeWin32Classic.cs: Improved drawing for ListView.
34108 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34110 * ThemeWin32Classic.cs: initial listbox drawing code
34111 * DrawMode.cs: new enumerator
34112 * ListControl.cs: stubbed class
34113 * ListBox.cs: initial implementation
34114 * Theme.cs: new methods definitions
34115 * SelectionMode.cs: new enumerator
34117 2004-11-17 Peter Bartok <pbartok@novell.com>
34119 * XplatUIWin32.cs: Added double-click events to the class style
34120 * Control.cs (WndProc):
34121 - Added handling of click-count to MouseDown/ MouseUp events.
34122 - Added handling of middle and right mouse buttons
34123 - Removed old debug code
34125 2004-11-17 Jackson Harper <jackson@ximian.com>
34127 * XplatUIX11.cs: Use the new Mono.Unix namespace.
34129 2004-11-17 Ravindra <rkumar@novell.com>
34131 * ListView.cs: Added event handling for MouseMove/Up/Down.
34132 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
34133 * ThemeWin32Classic.cs: We need to clear the graphics context and
34134 draw column header in a proper state.
34137 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
34139 * Menu.cs: fixes signature
34141 2004-11-16 Peter Bartok <pbartok@novell.com>
34143 * XplatUIX11.cs (GetMessage): Implemented generation of
34144 double click mouse messages
34146 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
34148 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
34151 2004-11-11 Peter Bartok <pbartok@novell.com>
34153 * HandleData.cs: Added Visible property
34154 * XplatUIX11.cs (IsVisible): Now uses Visible property from
34156 * XplatUIX11.cs: Removed old debug leftovers
34157 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
34158 * Control.cs (WndProc): Removed old debug leftovers,
34159 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
34160 needed WM_SIZE handling
34162 2004-11-11 Jackson Harper <jackson@ximian.com>
34164 * OwnerDrawPropertyBag.cs:
34165 * TreeViewImageIndexConverter.cs: Initial implementation
34167 2004-11-10 Jackson Harper <jackson@ximian.com>
34169 * ThemeWin32Classic.cs:
34170 * TabControl.cs: instead of moving tabs by the slider pos just
34171 start drawing at the tab that is offset by the slider. This way
34172 scrolling always moves by exactly one tab.
34174 2004-11-10 Jackson Harper <jackson@ximian.com>
34176 * TabControl.cs: You can only scroll left when the slider has
34177 already ben moved right.
34179 2004-11-10 Jackson Harper <jackson@ximian.com>
34181 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34184 2004-11-10 Jackson Harper <jackson@ximian.com>
34186 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34189 2004-11-09 Jackson Harper <jackson@ximian.com>
34191 * TabControl.cs (CalcXPos): New helper method so we can determine
34192 the proper place to start drawing vertical tabs.
34193 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34195 2004-11-09 Jackson Harper <jackson@ximian.com>
34197 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34198 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34199 and Bottom, left and right are illegal values for this and
34200 multiline is enabled when the alignment is set to left or right.
34201 (DrawTab): Each alignment block should draw the text itself now
34202 because Left requires special love. Also add rendering for Left
34205 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
34207 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34208 does not destroy the windows, removes debugging messages
34210 2004-11-09 jba <jba-mono@optusnet.com.au>
34212 * ThemeWin32Classic.cs
34213 (DrawButtonBase): Fix verticle text rect clipping in windows
34214 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34215 rendering and incorrect text rect clipping
34216 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34217 rendering and incorrect text rect clipping
34219 2004-11-08 Jackson Harper <jackson@ximian.com>
34221 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34222 bottom when they are bottom aligned so the bottoms of the tabs get
34224 * TabControl.cs (DropRow): Move rows up instead of down when the
34225 tab control is bottom aligned.
34227 2004-11-08 13:59 pbartok
34230 - Added handling for various window styles
34231 - Added handling for popup windows
34232 - Added SetTopmost handling
34234 2004-11-08 13:55 pbartok
34237 - Added argument to SetTopmost method
34238 - Fixed broken ClientToScreen function
34240 2004-11-08 13:53 pbartok
34242 * XplatUIStructs.cs:
34243 - Added missing WS_EX styles
34245 2004-11-08 13:53 pbartok
34247 * XplatUI.cs, XplatUIDriver.cs:
34248 - Added argument to SetTopmost
34250 2004-11-08 13:52 pbartok
34253 - Added XSetWindowAttributes structure
34254 - Improved XWindowAttributes structure
34255 - Added SetWindowValuemask enum
34256 - Added window creation arguments enum
34257 - Added gravity enum
34258 - Added Motif hints structure
34259 - Added various Motif flags and enums
34260 - Added PropertyMode enum for property functions
34262 2004-11-08 13:50 pbartok
34265 - Fixed arguments for updated SetTopmost method
34267 2004-11-08 13:49 pbartok
34270 - Fixed arguments for updated SetTopmost function
34271 - Fixed usage of PointToClient
34273 2004-11-08 13:44 pbartok
34276 - Added Clipping of children and siblings
34278 2004-11-08 13:41 pbartok
34281 - Removed SetMenuBarWindow call. We do this in Form.cs
34283 2004-11-08 13:40 jackson
34285 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34286 scrolling jimmi in the correct location with bottom aligned tabs
34288 2004-11-08 13:36 pbartok
34290 * ContainerControl.cs:
34291 - Implemented BindingContext
34292 - Implemented ParentForm
34294 2004-11-08 12:46 jackson
34296 * TabControl.cs: Put bottom rendered tabs in the right location
34298 2004-11-08 07:15 jordi
34300 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34303 2004-11-05 17:30 jackson
34305 * TabControl.cs: When selected tabs are expanded make sure they
34306 don't go beyond the edges of the tab control
34308 2004-11-05 14:57 jackson
34310 * TabControl.cs: Reset show_slider so if the control is resized to
34311 a size where it is no longer needed it's not displayed anymore
34313 2004-11-05 13:16 jackson
34315 * TabControl.cs: Make tab pages non visible when added to the
34318 2004-11-05 12:42 jackson
34320 * TabControl.cs: Implement SizeMode.FillToRight
34322 2004-11-05 12:16 jackson
34324 * Control.cs: Do not call CreateHandle if the handle is already
34327 2004-11-05 11:46 jackson
34329 * TabControl.cs: Remove superflous call to CalcTabRows
34331 2004-11-05 09:07 jackson
34333 * XplatUIX11.cs: Update for Mono.Posix changes
34335 2004-11-05 07:00 ravindra
34337 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34340 2004-11-04 22:47 jba
34342 * ThemeWin32Classic.cs:
34343 - Fix Button rendering for FlatStyle = Flat or Popup
34344 - Fix RadioButton and CheckBox rendering when Appearance = Button
34345 (normal and flatstyle).
34346 - Correct outer rectangle color when drawing focus rectangle
34347 - Adjust button bounds to be 1 px smaller when focused
34348 - Make button not draw sunken 3d border when pushed (windows compat)
34349 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34350 - Offset the text in RadioButton and Checkbox when being rendered as
34352 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34354 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34355 - Fixed disabled text rendering for normally rendered radiobuttons
34357 2004-11-04 10:26 jackson
34359 * TabControl.cs: Recalculate tab rows when resizing
34361 2004-11-04 07:47 jordi
34363 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34364 collection completion, drawing issues, missing features
34366 2004-11-04 05:03 ravindra
34369 - We need to recalculate the Thumb area when
34370 LargeChange/maximum/minimum values are changed.
34371 - We set the 'pos' in UpdatePos() method to minimum, if it's less
34372 than minimum. This is required to handle the case if large_change is
34373 more than max, and use LargeChange property instead of large_change
34375 - We return max+1 when large_change is more than max, like MS does.
34377 2004-11-04 04:29 ravindra
34379 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34380 - Changed default value signatures (prefixed all with ListView).
34381 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34383 - Fixed calculations for ListViewItem and implemented Clone()
34386 2004-11-04 04:26 ravindra
34388 * Theme.cs, ThemeWin32Classic.cs:
34389 - Changed default ListView values signatures (prefixed all with
34391 - Fixed default size values for VScrollBar and HScrollBar.
34392 - Fixed DrawListViewItem method.
34394 2004-11-04 04:05 ravindra
34396 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34398 2004-11-04 04:04 ravindra
34400 * ImageList.cs: Implemented the missing overload for Draw method.
34402 2004-11-03 19:29 jackson
34404 * TabControl.cs: Handle dropping rows on selection properly
34406 2004-11-03 11:59 jackson
34408 * TabControl.cs: remove debug code
34410 2004-11-03 11:52 jackson
34412 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34413 the scrolly widgerywoo
34415 2004-11-02 13:52 jackson
34417 * TabControl.cs: Resize the tab pages and tabs when the tab control
34420 2004-11-02 13:40 jackson
34422 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34423 selected tab to the bottom
34425 2004-11-02 13:39 jackson
34427 * TabPage.cs: Store the tab pages row
34429 2004-11-02 12:33 jordi
34431 * MenuItem.cs: fixes handle creation
34433 2004-11-02 11:42 jackson
34435 * TabControl.cs: signature fix
34437 2004-11-02 08:56 jackson
34439 * TabControl.cs: Calculate whether the tab is on an edge properly.
34440 Remove top secret debugging code
34442 2004-11-01 19:57 jackson
34444 * TabControl.cs: Add click handling, and proper sizing
34446 2004-11-01 19:47 jackson
34448 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34451 2004-11-01 19:39 jackson
34453 * TabPage.cs: add internal property to store the bounds of a tab
34456 2004-10-30 04:23 ravindra
34458 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34461 2004-10-30 04:21 ravindra
34463 * ListView.cs, ListViewItem.cs: Added support for scrolling and
34464 fixed calculations.
34466 2004-10-30 03:06 pbartok
34469 - Removed extension of DllImported libs
34471 2004-10-29 09:55 jordi
34473 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34474 navigation, itemcollection completion, menu fixes
34476 2004-10-27 22:58 pbartok
34479 - Now throws a nice error message when no X display could be opened
34481 2004-10-26 13:51 jordi
34483 * ListView.cs: removes warning
34485 2004-10-26 03:55 ravindra
34487 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34488 ThemeWin32Classic.cs: Some formatting for my last checkins.
34490 2004-10-26 03:36 ravindra
34492 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34493 control and default values.
34495 2004-10-26 03:35 ravindra
34497 * Theme.cs: Added some default values for ListView control.
34499 2004-10-26 03:33 ravindra
34501 * ToolBar.cs: ToolBar should use the user specified button size, if
34502 there is any. Added a size_specified flag for the same.
34504 2004-10-26 03:33 ravindra
34506 * ColumnHeader.cs: Added some internal members and calculations for
34509 2004-10-26 03:32 ravindra
34511 * ListViewItem.cs: Calculations for ListViewItem.
34513 2004-10-26 03:31 ravindra
34515 * ListView.cs: Added some internal members and calculations for
34518 2004-10-22 13:31 jordi
34520 * MenuAPI.cs: speedup menus drawing
34522 2004-10-22 13:16 jackson
34524 * XplatUIX11.cs: Make sure to update exposed regions when adding an
34527 2004-10-22 11:49 jackson
34531 2004-10-22 11:41 jackson
34533 * Control.cs: Check to see if the window should have its background
34534 repainted by X when drawing.
34536 2004-10-22 11:31 jackson
34538 * XplatUIX11.cs: When invalidating areas only use XClearArea if
34539 clear is true, this way we do not get flicker from X repainting the
34542 2004-10-22 11:28 jackson
34544 * XEventQueue.cs: Queue properly
34546 2004-10-21 09:38 jackson
34548 * XEventQueue.cs: Fix access modifier
34550 2004-10-21 09:36 jackson
34552 * XEventQueue.cs: Don't loose messages
34554 2004-10-21 09:22 jackson
34556 * XEventQueue.cs: Don't loose messages
34558 2004-10-20 04:15 jordi
34560 * BootMode.cs: enum need it by SystemInfo
34562 2004-10-19 21:58 pbartok
34565 - Small sanity check
34567 2004-10-19 21:56 pbartok
34570 - Added private FormParentWindow class which acts as the container
34571 for our form and as the non-client area where menus are drawn
34572 - Added/Moved required tie-ins to Jordi's menus
34573 - Fixed/Implemented the FormStartPosition functionality
34575 2004-10-19 21:52 pbartok
34578 - Removed unneeded locals
34579 - Added code to all size and location properties to understand and
34580 deal with the parent container of Form
34582 2004-10-19 21:33 pbartok
34585 - Fixed to deal with new Form subclasses for menus
34587 2004-10-19 17:48 jackson
34589 * XEventQueue.cs: commit correct version of file
34591 2004-10-19 16:50 jackson
34593 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34595 2004-10-19 16:15 jordi
34597 * MenuAPI.cs: MenuBarCalcSize returns the height
34599 2004-10-19 08:31 pbartok
34602 - Added missing call to PreProcessMessage before calling OnXXXKey
34605 2004-10-19 00:04 ravindra
34607 * ToolTip.cs: Fixed constructor.
34609 2004-10-18 09:31 jordi
34611 * MenuAPI.cs: menuitems in menubars do not have shortcuts
34613 2004-10-18 09:26 jordi
34615 * MenuItem.cs: fixes MenuItem class signature
34617 2004-10-18 08:56 jordi
34619 * MenuAPI.cs: prevents windows from showing in the taskbar
34621 2004-10-18 00:28 ravindra
34623 * ToolTip.cs: Suppressed a warning message.
34625 2004-10-18 00:27 ravindra
34627 * Control.cs: Default value of visible property must be true.
34629 2004-10-17 23:19 pbartok
34632 - Complete implementation
34634 2004-10-17 23:19 pbartok
34637 - Added EnableWindow method
34638 - Added SetModal stub
34639 - Added generation of WM_ACTIVATE message (still needs testing)
34640 - Added SetTopMost stub
34641 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34643 2004-10-17 23:17 pbartok
34646 - Removed VirtualKeys to XplatUIStructs
34647 - Implemented SetTopMost method
34648 - Implemented EnableWindow method
34649 - Bugfix in ScreenToClient()
34650 - Bugfixes in ClientToScreen()
34652 2004-10-17 22:51 pbartok
34654 * XplatUIStructs.cs:
34655 - Added WS_EX styles to WindowStyles enumeration
34657 2004-10-17 22:50 pbartok
34659 * XplatUI.cs, XplatUIDriver.cs:
34660 - Added method for enabling/disabling windows
34661 - Added method for setting window modality
34662 - Added method for setting topmost window
34664 2004-10-17 22:49 pbartok
34666 * ThemeWin32Classic.cs:
34667 - Added ToolTip drawing code
34669 2004-10-17 22:49 pbartok
34672 - Added ToolTip abstracts
34674 2004-10-17 22:47 pbartok
34677 - Fixed Form.ControlCollection to handle owner relations
34678 - Added Owner/OwnedForms handling
34679 - Implemented Z-Ordering for owned forms
34680 - Removed unneeded private overload of ShowDialog
34681 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34683 - Fixed Close(), had wrong default
34684 - Added firing of OnLoad event
34685 - Added some commented out debug code for Ownership handling
34687 2004-10-17 22:16 pbartok
34690 - Fixed/implemented flat list of controls
34692 2004-10-17 22:14 pbartok
34695 - Added code to simulate modal dialogs on Win32
34697 2004-10-17 16:11 jordi
34699 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34702 2004-10-17 13:39 jordi
34704 * MenuAPI.cs: menu drawing fixes
34706 2004-10-15 09:10 ravindra
34708 * StructFormat.cs: General Enum.
34710 2004-10-15 09:09 ravindra
34712 * SizeGripStyle.cs: Enum for Form.
34714 2004-10-15 09:08 ravindra
34716 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34717 in Theme for ListView.
34719 2004-10-15 09:06 ravindra
34721 * ColumnHeader.cs: Flushing some formatting changes.
34723 2004-10-15 09:05 ravindra
34725 * ListViewItem.cs: Implemented GetBounds method and fixed coding
34728 2004-10-15 09:03 ravindra
34730 * ListView.cs: Implemented Paint method and fixed coding style.
34732 2004-10-15 07:34 jordi
34734 * MenuAPI.cs: fix for X11
34736 2004-10-15 07:32 ravindra
34738 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34739 - Renamed Paint() method to Draw() for clarity. Also, moved
34740 DrawImage() to OnPaint().
34742 2004-10-15 07:25 ravindra
34744 * CheckBox.cs, RadioButton.cs:
34745 - Removed Redraw (), we get it from ButtonBase.
34746 - Implemented Paint (), to do class specific painting.
34748 2004-10-15 07:16 ravindra
34751 - Redraw () is not virtual now.
34752 - Added an internal virtual method Paint (), so that
34753 derived classes can do their painting on their own.
34754 - Modified OnPaint () to call Paint ().
34756 2004-10-15 06:43 jordi
34758 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34759 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34761 2004-10-15 00:30 ravindra
34764 - MessageBox on windows does not have min/max buttons.
34765 This change in CreateParams fixes this on Windows. We
34766 still need to implement this windowstyle behavior in
34769 2004-10-14 05:14 ravindra
34772 - Changed Redraw () to do a Refresh () always.
34773 - Fixed the MouseMove event handling when mouse is pressed,
34774 ie drag event handling.
34775 - Replaced the usage of ToolBarButton.Pressed property to
34776 ToolBarButton.pressed internal variable.
34778 2004-10-14 05:10 ravindra
34780 * ToolBarButton.cs:
34781 - Added an internal member 'inside' to handle mouse move
34782 with mouse pressed ie mouse drag event.
34783 - Changed 'Pressed' property to return true only when
34784 'inside' and 'pressed' are both true.
34785 - Some coding style love.
34787 2004-10-14 00:17 ravindra
34789 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34792 2004-10-14 00:15 ravindra
34794 * ButtonBase.cs: Redraw () related improvements.
34796 2004-10-14 00:14 ravindra
34798 * MessageBox.cs: Moved InitFormSize () out of Paint method and
34799 removed unnecessary calls to Button.Show () method.
34801 2004-10-13 17:50 pbartok
34805 - Removed destroying of window until we solve the problem of X
34806 destroying the window before us on shutdown
34808 2004-10-13 16:32 pbartok
34811 - Now Redraws on MouseUp for FlatStyle Flat and Popup
34813 2004-10-13 14:18 pbartok
34816 - Added code to destroy the X window
34818 2004-10-13 14:18 pbartok
34821 - Added code to destroy a window
34823 2004-10-13 14:12 pbartok
34826 - Added the Redraw on Resize that got dropped in the last rev
34828 2004-10-13 09:06 pbartok
34830 * ThemeWin32Classic.cs:
34831 - Path from John BouAntoun:
34832 * Fix check rendering (centre correctly for normal style, offset
34833 correctly for FlatStyle).
34834 * Fix border color usage (use backcolor) for FlatStyle.Popup
34835 * Use checkbox.Capture instead of checkbox.is_pressed when
34836 rendering flatstyle states.
34838 2004-10-12 21:48 pbartok
34840 * ThemeWin32Classic.cs:
34841 - Removed all occurences of SystemColors and replaced them with the
34842 matching theme color
34844 2004-10-12 21:41 pbartok
34846 * ThemeWin32Classic.cs:
34847 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34848 him using the function for flatstyle drawing
34849 - Changed functions to use the new version of CPDrawBorder3D
34851 2004-10-12 21:15 pbartok
34854 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34855 match MS documentation. They need to return defined colors if the
34856 passed color matches the configured control color. Thanks to John
34857 BouAntoun for pointing this out.
34859 2004-10-12 20:57 pbartok
34862 - Fix from John BouAntoun: Raise ForeColorChanged event when text
34865 2004-10-12 20:46 pbartok
34868 - Fix from John BouAntoun: Now properly sets the Appearance property
34870 2004-10-12 20:45 pbartok
34872 * ThemeWin32Classic.cs:
34873 - Fixes from John BouAntoun: now handles forecolors and backcolors
34874 for flatstyle rendered controls much better; It also fixes normal
34875 checkbox rendering when pushed or disabled.
34877 2004-10-08 02:50 jordi
34879 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34882 2004-10-07 08:56 jordi
34884 * ThemeWin32Classic.cs: Removes deletion of cached brushes
34886 2004-10-06 03:59 jordi
34888 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34889 XplatUIWin32.cs: removes warnings from compilation
34891 2004-10-05 12:23 jackson
34893 * RadioButton.cs: Fix ctor
34895 2004-10-05 11:10 pbartok
34898 - Partial implementation by Benjamin Dasnois
34900 2004-10-05 10:15 jackson
34902 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34905 2004-10-05 03:07 ravindra
34908 - Removed a private method, Draw ().
34909 - Fixed the ButtonDropDown event handling.
34910 - Fixed MouseMove event handling.
34912 2004-10-05 03:04 ravindra
34914 * ThemeWin32Classic.cs:
34915 - Added DrawListView method and ListViewDefaultSize property.
34916 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34917 - Changed DOS style CRLF to Unix format (dos2unix).
34919 2004-10-05 03:03 ravindra
34922 - Added DrawListView method and ListViewDefaultSize property.
34924 2004-10-05 02:42 ravindra
34926 * ToolBarButton.cs: Added an internal member dd_pressed to handle
34927 clicks on DropDown arrow.
34929 2004-10-04 22:56 jackson
34931 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34932 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34933 Control handle the buffers, derived classes should not have to
34934 CreateBuffers themselves.
34936 2004-10-04 21:20 jackson
34938 * StatusBar.cs: The control handles resizing the buffers now.
34940 2004-10-04 21:18 jackson
34942 * Control.cs: When resizing the buffers should be invalidated. This
34943 should be handled in Control not in derived classes.
34945 2004-10-04 14:45 jackson
34949 2004-10-04 02:14 pbartok
34951 * LeftRightAlignment.cs:
34954 2004-10-04 01:09 jordi
34956 * ThemeWin32Classic.cs: fixes right button position causing right
34957 button not showing on horizontal scrollbars
34959 2004-10-02 13:12 pbartok
34962 - Simplified the Invalidate method by using an X call instead of
34963 generating the expose ourselves
34964 - Added an expose when the window background is changed
34965 - Implemented ClientToScreen method
34967 2004-10-02 13:08 pbartok
34970 - Added Win32EnableWindow method (test for implementing modal
34972 - Added ClientToScreen method and imports
34974 2004-10-02 13:07 pbartok
34976 * XplatUI.cs, XplatUIDriver.cs:
34977 - Added ClientToScreen coordinate translation method
34979 2004-10-02 13:06 pbartok
34981 * KeyPressEventArgs.cs:
34982 - Fixed access level for constructor
34984 2004-10-02 13:06 pbartok
34987 - Changed access level for the window_collection hash table
34989 2004-10-02 13:05 pbartok
34992 - Added KeyPreview property
34993 - Added Menu property (still incomplete, pending Jordi's menu work)
34994 - Implemented ProcessCmdKey
34995 - Implemented ProcessDialogKey
34996 - Implemented ProcessKeyPreview
34998 2004-10-02 13:02 pbartok
35001 - Added private method to get the Control object from the window
35003 - Implemented ContextMenu property
35004 - Implemented PointToScreen
35005 - Implemented PreProcessMessage
35006 - Implemented IsInputChar
35007 - Implemented IsInputKey
35008 - Implemented ProcessCmdKey
35009 - Completed ProcessKeyEventArgs
35010 - Fixed message loop to call the proper chain of functions on key
35012 - Implemented ProcessDialogChar
35013 - Implemented ProcessDialogKey
35014 - Implemented ProcessKeyMessage
35015 - Implemented ProcessKeyPreview
35016 - Added RaiseDragEvent stub (MS internal method)
35017 - Added RaiseKeyEvent stub (MS internal method)
35018 - Added RaiseMouseEvent stub (MS Internal method)
35019 - Added RaisePaintEvent stub (MS Internal method)
35020 - Added ResetMouseEventArgs stub (MS Internal method)
35021 - Implemented RtlTranslateAlignment
35022 - Implemented RtlTranslateContent
35023 - Implemented RtlTranslateHorizontal
35024 - Implemented RtlTranslateLeftRight
35025 - Added generation of KeyPress event
35027 2004-10-02 05:57 ravindra
35029 * ListViewItem.cs: Added attributes.
35031 2004-10-02 05:32 ravindra
35033 * ListView.cs: Added attributes.
35035 2004-10-01 11:53 jackson
35037 * Form.cs: Implement the Close method so work on MessageBox can
35040 2004-09-30 14:06 pbartok
35045 2004-09-30 11:34 jackson
35047 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35049 2004-09-30 07:26 ravindra
35051 * ListViewItemConverter.cs: Converter for ListViewItem.
35053 2004-09-30 07:26 ravindra
35055 * SortOrder.cs: Enum for ListView control.
35057 2004-09-30 07:25 ravindra
35059 * ColumnHeader.cs: Supporting class for ListView control.
35061 2004-09-30 07:24 ravindra
35063 * ListView.cs, ListViewItem.cs: Initial implementation.
35065 2004-09-30 07:20 ravindra
35067 * ItemActivation.cs: Enum for ListView Control.
35069 2004-09-29 20:29 pbartok
35072 - Added lookup of pixel value for background color; tries to get a
35073 color 'close' to the requested color, it avoids having to create a
35074 colormap. Depending on the display this could mean the used color
35075 is slightly off the desired color. Might have to change it to a more
35076 resource intensive colormap approach, but it will work as a
35077 workaround to avoid red screens.
35079 2004-09-29 14:27 jackson
35081 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
35083 2004-09-28 12:44 pbartok
35085 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
35086 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
35087 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
35088 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
35089 TrackBar.cs, VScrollBar.cs:
35090 - Streamlined Theme interfaces:
35091 * Each DrawXXX method for a control now is passed the object for
35092 the control to be drawn in order to allow accessing any state the
35093 theme might require
35095 * ControlPaint methods for the theme now have a CP prefix to avoid
35096 name clashes with the Draw methods for controls
35098 * Every control now retrieves it's DefaultSize from the current
35101 2004-09-28 12:17 jackson
35103 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
35106 2004-09-24 14:57 jackson
35108 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
35109 Gives us a nice little performance boost.
35111 2004-09-24 12:02 jackson
35113 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
35114 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
35115 Control and supporting classes. Initial checkin
35117 2004-09-23 13:08 jackson
35119 * Form.cs: Temp build fixage
35121 2004-09-23 01:39 ravindra
35123 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
35124 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
35125 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
35126 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
35127 EventHandlers needed by ListView Control.
35129 2004-09-22 14:12 pbartok
35131 * ScrollableControl.cs:
35132 - Implemented DockPadding property
35133 - Implemented AutoScroll property
35134 - Implemented AutoScrollMargin property
35135 - Implemented AutoScrollMinSize property
35136 - Implemented AutoScrollPosition property
35137 - Implemented DisplayRectangle property (still incomplete)
35138 - Implemented CreateParams property
35139 - Implemented HScroll property
35140 - Implemented VScroll property
35141 - Implemented OnVisibleChanged property
35143 2004-09-22 14:09 pbartok
35146 - Added Form.ControllCollection class
35147 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
35148 RemoveOwnedForm (still incomplete, missing on-top and common
35149 minimize/maximize behaviour)
35150 - Added StartPosition property (still incomplete, does not use when
35152 - Added ShowDialog() methods (still incomplete, missing forcing the
35155 2004-09-22 14:05 pbartok
35158 - Added message loop for modal dialogs
35160 2004-09-22 14:02 pbartok
35163 - Fixed wrong types for events
35165 2004-09-22 14:00 pbartok
35167 * Shortcut.cs, FormWindowState.cs:
35168 - Fixed wrong values
35170 2004-09-22 12:01 jackson
35172 * Control.cs: Text is never null
35174 2004-09-20 22:14 pbartok
35177 - Fixed accessibility level for Idle handler
35179 2004-09-20 18:54 jackson
35181 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35182 XplatUIX11.cs: New message loop that uses poll so we don't get a
35185 2004-09-17 10:43 pbartok
35188 - Fixed behaviour of arrow buttons. Now properly behaves like
35189 Buttons (and like Microsoft's scrollbar arrow buttons)
35191 2004-09-17 10:14 pbartok
35194 - Added missing release of keyboard/mouse capture
35196 2004-09-17 06:18 jordi
35198 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35199 Theme.cs: Very early menu support
35201 2004-09-16 17:45 pbartok
35204 - Fixed sending a window to the front
35205 - Added overload for SetWindowPos to avoid casting
35207 2004-09-16 17:44 pbartok
35210 - Added SendToBack and BringToFront methods
35212 2004-09-16 07:00 ravindra
35214 * Copyright: Added Novell URL.
35216 2004-09-16 07:00 ravindra
35218 * ToolBar.cs: Invalidate should be done before redrawing.
35220 2004-09-15 21:19 ravindra
35222 * ColumnHeaderStyle.cs: Enum for ListView Control.
35224 2004-09-15 21:18 ravindra
35226 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35229 2004-09-13 18:26 jackson
35231 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35234 2004-09-13 18:13 jackson
35236 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35237 a second thread and post messages into the main threads message
35238 queue. This makes timing much more consistent. Both win2K and XP
35239 have a minimum timer value of 15 milliseconds, so we now do this
35242 2004-09-13 15:18 pbartok
35244 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35246 - Added Z-Ordering methods
35248 2004-09-13 10:56 pbartok
35251 - Fixed #region names
35252 - Moved properties and methods into their proper #regions
35254 2004-09-13 10:51 pbartok
35257 - Added Accept and CancelButton properties
35258 - Added ProcessDialogKey() method
35260 2004-09-13 08:18 pbartok
35262 * IWindowTarget.cs:
35265 2004-09-10 21:50 pbartok
35268 - Added DoDragDrop() [incomplete]
35269 - Properly implemented 'Visible' handling
35270 - Added SetVisibleCore()
35271 - Implemented FindChildAtPoint()
35272 - Implemented GetContainerControl()
35273 - Implemented Hide()
35275 2004-09-10 19:28 pbartok
35278 - Moved methods into their appropriate #regions
35279 - Reordered methods within regions alphabetically
35281 2004-09-10 18:57 pbartok
35283 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35284 - Added method to retrieve text from window
35286 2004-09-10 18:56 pbartok
35289 - Moved some internal functions into the internal region
35290 - Implemented FontHeight
35291 - Implemented RenderRightToLeft
35292 - Implemented ResizeRedraw
35293 - Implemented ShowFocusCues
35294 - Implemented ShowKeyboardCues
35295 - Implemented FromChildHandle
35296 - Implemented FromHandle
35297 - Implemented IsMnemonic
35298 - Implemented ReflectMessage
35299 - All public and protected Static Methods are now complete
35301 2004-09-10 16:54 pbartok
35304 - Implemented remaining missing public instance properties
35305 - Alphabetized some out of order properties
35307 2004-09-10 05:51 ravindra
35309 * PictureBox.cs: Added a check for null image.
35311 2004-09-10 00:59 jordi
35313 * GroupBox.cs: remove cvs tag
35315 2004-09-09 05:25 ravindra
35317 * ToolBar.cs: Make redraw accessible from ToolBarButton.
35319 2004-09-09 05:23 ravindra
35321 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35324 2004-09-09 02:28 pbartok
35326 * ThemeWin32Classic.cs:
35327 - Improve disabled string look
35329 2004-09-09 01:15 jordi
35331 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35334 2004-09-08 23:56 ravindra
35336 * ItemBoundsPortion.cs: It's enum, not a class!
35338 2004-09-08 23:47 ravindra
35340 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35343 2004-09-08 21:13 ravindra
35345 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35348 2004-09-08 21:03 ravindra
35350 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35353 2004-09-08 21:01 ravindra
35355 * ScrollableControl.cs: Removed unreachable code.
35357 2004-09-08 06:45 jordi
35359 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35361 2004-09-08 01:00 jackson
35363 * XplatUIX11.cs: Only run the timers when updating the message
35364 queue. This effectively gives X messages a higher priority then
35365 timer messages. Timers still need love though
35367 2004-09-07 14:01 jackson
35369 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35370 this for us and the handle is no longer valid.
35372 2004-09-07 13:59 jackson
35374 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35375 loop that manages to not crash. TODO: Add poll and cleanup timers
35377 2004-09-07 11:12 jordi
35379 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35381 2004-09-07 03:40 jordi
35383 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35384 fixes, methods, multiple links
35386 2004-09-06 06:55 jordi
35388 * Control.cs: Caches ClientRectangle rectangle value
35390 2004-09-05 02:03 jordi
35392 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35395 2004-09-04 11:10 jordi
35397 * Label.cs: Refresh when font changed
35399 2004-09-02 16:24 pbartok
35402 - Added sanity check to creation of double buffer bitmap
35404 2004-09-02 16:24 pbartok
35407 - Fixed selection of text color
35408 - Fixed handling of resize event; now properly recreates double
35410 - Added missing assignment of TextAlignment
35411 - Added proper default for TextAlignment
35413 2004-09-02 14:26 pbartok
35416 - Added missing RadioButton.RadioButtonAccessibleObject class
35418 2004-09-02 14:26 pbartok
35421 - Added missing Control.ControlAccessibleObject class
35422 - Started to implement Select()ion mechanisms, still very incomplete
35424 2004-09-02 14:25 pbartok
35426 * AccessibleObject.cs:
35427 - Added missing methods
35429 2004-09-02 14:23 pbartok
35431 * AccessibleNavigation.cs, AccessibleSelection.cs:
35434 2004-09-02 10:32 jordi
35436 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35437 pool for pens, brushes, and hatchbruses
35439 2004-09-01 15:30 jackson
35441 * StatusBar.cs: Fix typo
35443 2004-09-01 14:44 pbartok
35448 2004-09-01 14:39 pbartok
35450 * Button.cs, RadioButton.cs:
35451 - Functional initial check-in
35453 2004-09-01 14:01 pbartok
35456 - Added missing default
35457 - Added missing region mark
35459 2004-09-01 09:10 jordi
35461 * Label.cs: fixes method signatures, new methods, events, fixes
35464 2004-09-01 07:19 jordi
35466 * Control.cs: Init string variables with an empty object
35468 2004-09-01 04:20 jordi
35470 * Control.cs: fires OnFontChanged event
35472 2004-08-31 20:07 pbartok
35475 - Enabled display of strings
35477 2004-08-31 20:05 pbartok
35480 - Added (partial) implementation of DialogResult; rest needs to be
35481 implemented when the modal loop code is done
35483 2004-08-31 19:55 pbartok
35486 - Fixed to match the removal of the needs_redraw concept
35488 2004-08-31 19:55 pbartok
35491 - Removed the rather odd split between 'needs redraw' and redrawing
35492 - Now handles the events that require regeneration (ambient
35493 properties and size)
35495 2004-08-31 19:41 pbartok
35498 - Added firing of BackColorChanged event
35499 - Added TopLevelControl property
35500 - Fixed handling of WM_ERASEBKGRND message
35502 2004-08-31 12:49 pbartok
35508 2004-08-31 12:48 pbartok
35511 - Finished (famous last words)
35513 2004-08-31 04:35 jordi
35515 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35516 scrolling bugs, adds new methods
35518 2004-08-30 14:42 pbartok
35521 - Implemented CheckBox drawing code
35523 2004-08-30 14:42 pbartok
35526 - Made Redraw() and CheckRedraw() virtual
35527 - Improved mouse up/down/move logic to properly track buttons
35529 2004-08-30 09:44 pbartok
35532 - Updated to fix broken build. Not complete yet.
35534 2004-08-30 09:28 pbartok
35539 2004-08-30 09:17 pbartok
35544 2004-08-27 16:12 ravindra
35546 * ToolBarButton.cs: Added TypeConverter attribute.
35548 2004-08-27 16:07 ravindra
35550 * ImageIndexConverter.cs: Implemented.
35552 2004-08-27 14:17 pbartok
35555 - Removed unneeded stack vars
35556 - First attempt to fix sizing issues when layout is suspended
35558 2004-08-25 15:35 jordi
35560 * ScrollBar.cs: more fixes to scrollbar
35562 2004-08-25 14:04 ravindra
35564 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35565 Added the missing divider code and grip for ToolBar Control.
35567 2004-08-25 13:20 pbartok
35570 - Control now properly passes the ambient background color to child
35573 2004-08-25 13:20 jordi
35575 * ScrollBar.cs: small bug fix regarding bar position
35577 2004-08-25 12:33 pbartok
35580 - Now only calls SetTimer or KillTimer if the enabled state has
35583 2004-08-25 12:33 pbartok
35586 - Fixed timer handling, now seems to work
35587 - Improved error message for window creation
35589 2004-08-25 12:32 pbartok
35592 - Fixed generation of MouseUp message
35594 2004-08-25 12:29 jordi
35596 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35597 and fixes for progressbar
35599 2004-08-24 18:43 ravindra
35601 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35602 in ToolBar control.
35604 2004-08-24 17:15 pbartok
35608 - Added missing events
35611 2004-08-24 17:14 pbartok
35613 * StatusBar.cs, PictureBox.cs:
35614 - Now uses Control's CreateParams
35616 2004-08-24 16:36 pbartok
35619 - Fixed background color handling
35620 - Fixed sending of enter/leave events on a grab
35622 2004-08-24 16:35 pbartok
35625 - Refined definitions for CrossingEvent
35627 2004-08-24 12:37 jordi
35629 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35630 formmating, methods signature, and adds missing events
35632 2004-08-24 12:24 jordi
35634 * Control.cs: fire OnEnabledChanged event
35636 2004-08-24 11:17 pbartok
35639 - Implemented SetTimer() and KillTimer()
35641 2004-08-24 11:16 pbartok
35644 - Now uses Remove instead of Add to kill the timer
35646 2004-08-24 10:16 jackson
35648 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35649 picture boxes in the theme now. Draw picture box borders and obey
35652 2004-08-24 05:49 jackson
35654 * Timer.cs: Remove top secret debugging code
35656 2004-08-24 05:34 jackson
35658 * PictureBox.cs: Temp hack to make picture boxes draw their full
35661 2004-08-24 05:29 jackson
35663 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35664 XplatUIX11.cs: Move timers to the driver level. On X they are
35665 queued by the driver and checked on idle.
35667 2004-08-24 01:07 jackson
35669 * XplatUIX11.cs: Use a queue for async messages instead of passing
35670 them as ClientMessages since that was totally broken. Also simply
35671 check for events and return an idle message if none are found. This
35672 gives us an idle handler, and prevents deadlocking when no messages
35675 2004-08-23 18:19 ravindra
35677 * XplatUIWin32.cs: Removed the unwanted destructor.
35679 2004-08-23 17:27 pbartok
35682 - Finishing touches. Works now, just needs some optimizations.
35684 2004-08-23 16:53 jordi
35686 * ScrollBar.cs: small fix
35688 2004-08-23 16:45 pbartok
35691 - Removed debug output
35694 2004-08-23 16:43 jordi
35696 * ScrollBar.cs: [no log message]
35698 2004-08-23 16:10 pbartok
35701 - Fixed handling of WM_CLOSE message
35702 - Removed debug output
35704 2004-08-23 16:09 pbartok
35707 - Added handling of Idle event
35708 - Added handling of form closing
35709 - Fixed reporting of MessageLoop property
35710 - Removed some unneeded code, should provide a bit of a speedup
35712 2004-08-23 15:22 pbartok
35715 - Added InitLayout() method
35716 - Added code to properly perform layout when Anchor or Dock property
35718 - Changed 'interpretation' of ResumeLayout. MS seems to have a
35719 LAMESPEC, tried to do it in a way that makes sense
35721 2004-08-23 14:10 jordi
35723 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35724 properties and methods
35726 2004-08-23 13:55 pbartok
35729 - Properly fixed Jordi's last fix
35730 - Now uses Cursor's Position property instead of calling XplatUI
35733 2004-08-23 13:44 jordi
35735 * PaintEventHandler.cs: Adding missing attribute
35737 2004-08-23 13:39 pbartok
35740 - Implemented Position property
35742 2004-08-23 13:39 pbartok
35744 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35745 - Added method to move mouse cursor
35747 2004-08-23 13:39 pbartok
35750 - Fixed setting of background color
35751 - Added method to move mouse cursor
35753 2004-08-23 13:16 jordi
35755 * Control.cs: avoids null exception
35757 2004-08-22 17:46 jackson
35759 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35762 2004-08-22 17:40 jackson
35764 * XplatUIX11.cs: Add some missing locks
35766 2004-08-22 15:10 pbartok
35768 * Control.cs, Form.cs:
35769 - Removed OverlappedWindow style from Control, instead it's default
35771 - Made form windows OverlappedWindow by default
35773 2004-08-22 13:34 jackson
35775 * ScrollBar.cs: Update the position through the Value property so
35776 the OnValueChanged event is raised.
35778 2004-08-22 12:04 pbartok
35781 - Added Cursor.cs and UserControl.cs
35783 2004-08-22 12:03 pbartok
35786 - Started implementation, not usable yet
35788 2004-08-22 12:00 pbartok
35791 - Implemented UserControl (complete)
35793 2004-08-21 19:20 ravindra
35795 * ToolBar.cs: Correcting the formatting mess of VS.NET.
35797 2004-08-21 18:49 ravindra
35799 * ToolBar.cs: Probably this completes the missing attributes in
35802 2004-08-21 18:03 ravindra
35804 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35805 Fixed toolbar control signatures.
35807 2004-08-21 16:32 pbartok
35812 2004-08-21 16:30 pbartok
35817 2004-08-21 16:19 pbartok
35819 * Control.cs, Label.cs:
35822 2004-08-21 15:57 pbartok
35825 - Added loads of debug output for development
35826 - Fixed typo in method name
35828 2004-08-21 15:52 pbartok
35830 * ToolBarButtonClickEventArgs.cs:
35831 - Added missing base class
35833 2004-08-21 14:53 pbartok
35836 - Updated to match new GrabWindow signature
35838 2004-08-21 14:51 pbartok
35840 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35841 - Added method to get default display size
35843 2004-08-21 14:23 pbartok
35845 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35846 - Added method to query current grab state
35847 - Added argument to allow confining a grab to a window
35849 2004-08-21 14:22 pbartok
35852 - Added [Flags] attribute so that modifiers can be used in bitwise
35855 2004-08-21 14:21 pbartok
35857 * TrackBar.cs, ScrollBar.cs:
35858 - Replaced direct XplatUI calls with their Control counterpart
35860 2004-08-21 13:32 pbartok
35863 - Implemented Created property
35865 2004-08-21 13:28 pbartok
35868 - Implemented ContainsFocus
35870 2004-08-21 13:26 pbartok
35873 - Implemented CausesValidation
35875 2004-08-21 13:21 pbartok
35878 - Implemented CanFocus
35879 - Implemented CanSelect
35880 - Implemented Capture
35882 2004-08-21 12:35 pbartok
35885 - Fixed bug with Async message handling
35886 - Implemented getting the ModifierKeys
35888 2004-08-21 12:32 jackson
35890 * AsyncMethodResult.cs: Make sure we have the mutex before we
35891 release it. Fixes BeginInvoke on windows
35893 2004-08-21 11:31 pbartok
35895 * XplatUIWin32.cs, XplatUIX11.cs:
35896 - Drivers now return proper mouse state
35898 2004-08-21 10:54 jackson
35900 * Control.cs: Implement EndInvoke
35902 2004-08-21 10:48 jackson
35904 * Timer.cs: Remove unneeded finalizer
35906 2004-08-20 19:52 ravindra
35908 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35909 in mouse event handling in the ToolBar control.
35911 2004-08-20 19:50 ravindra
35913 * ImageList.cs: Changed draw method to use the arguments passed in
35916 2004-08-20 18:58 pbartok
35918 * XplatUIStructs.cs:
35919 - Added private message for async communication
35921 2004-08-20 17:38 ravindra
35923 * Control.cs: Made RightToLeft property virtual and removed a
35926 2004-08-20 14:39 jordi
35928 * ThemeGtk.cs: use style_attach
35930 2004-08-20 14:39 pbartok
35933 - Added jackson's Async code from X11 to Win32
35935 2004-08-20 14:09 pbartok
35938 - Added all new files
35940 2004-08-20 14:09 pbartok
35943 - Added call to set window background color
35945 2004-08-20 14:03 pbartok
35947 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35948 - Added method for setting the window background
35950 2004-08-20 14:02 pbartok
35953 - Added method for setting the background color
35954 - Added handling for erasing the window background
35956 2004-08-20 13:45 jordi
35958 * TrackBar.cs: fixes timer, new properties and methods
35960 2004-08-20 13:34 jackson
35962 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35965 2004-08-20 13:22 jackson
35967 * Timer.cs: Timer Tick events are now handed through Controls Async
35968 mechanism so the callbacks are executed in the same thread as X
35970 2004-08-20 13:19 jackson
35972 * XplatUIDriver.cs: Expose functionality to send async messages
35975 2004-08-20 13:18 jackson
35977 * Control.cs: Implement Begininvoke
35979 2004-08-20 13:14 jackson
35981 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35982 messages through the driver
35984 2004-08-20 13:12 jackson
35986 * XplatUIX11.cs: Lock before all X operations. Also added Async
35987 method functionality through XSendEvent
35989 2004-08-20 13:11 jackson
35991 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35992 This will screw up on 64 bit systems)
35994 2004-08-20 13:10 jackson
35996 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35997 Async messages through X/Win32
35999 2004-08-19 19:39 pbartok
36002 - Updated code to match new HandleData.DeviceContext type
36004 2004-08-19 19:38 pbartok
36007 - Made DeviceContext a generic object to allow usage from various
36009 - Added support for queueing Windows messages
36011 2004-08-19 19:37 pbartok
36014 - Added generation of MouseEnter, MouseLeave and MouseHover events
36015 - Added cleanup on EndPaint
36017 2004-08-19 19:17 pbartok
36020 - Added handling of WM_MOUSEHOVER
36021 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36024 2004-08-19 18:55 jordi
36026 * ThemeGtk.cs: fixes button order
36028 2004-08-19 18:12 jordi
36030 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36032 2004-08-19 17:09 pbartok
36035 - Added Right property
36036 - Added RightToLeft property
36038 2004-08-19 16:27 jordi
36040 * ThemeGtk.cs: experimental GTK theme support
36042 2004-08-19 16:26 jordi
36044 * ITheme.cs, Theme.cs: move themes from an interface to a class
36046 2004-08-19 16:25 jordi
36048 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36051 2004-08-19 16:04 pbartok
36054 - Added colormap basics
36055 - Added a way to re-initialize with a different display handle
36056 - Fixed setting of the window background color
36057 - Added various X11 imports related to colors and colormaps
36059 2004-08-19 15:51 pbartok
36062 - Removed packing hints (Paolo suggested this a while back)
36063 - fixed colormap type
36064 - Added default Atom types
36065 - Added Screen and color structs and enums
36067 2004-08-19 15:39 pbartok
36070 - Added missing Draw() method
36071 - Added missing RecreateHandle event
36073 2004-08-19 15:30 pbartok
36076 - Added handling of WM_CLOSE
36078 2004-08-18 13:16 jordi
36080 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
36083 2004-08-18 09:56 jordi
36085 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
36087 2004-08-17 15:31 ravindra
36089 * SWF.csproj: Updated project.
36091 2004-08-17 15:25 pbartok
36094 - Drawing improvement; don't call UpdateBounds if we are not visible
36095 (or have been minimized)
36097 2004-08-17 15:24 pbartok
36100 - Finished IsVisible
36101 - Added Win32GetWindowPlacement
36103 2004-08-17 15:08 jackson
36105 * Panel.cs: Initial checkin of the Panel
36107 2004-08-17 14:25 pbartok
36110 - Fixed broken handling of default window sizes
36112 2004-08-17 13:29 jackson
36114 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
36115 has a large startup time.
36117 2004-08-17 10:25 jackson
36119 * HandleData.cs: union areas properly
36121 2004-08-17 10:12 jackson
36123 * HandleData.cs: union areas properly
36125 2004-08-16 20:00 ravindra
36127 * ToolBar.cs, ToolBarButton.cs: Added attributes.
36129 2004-08-16 18:48 ravindra
36131 * ToolBar.cs: Added attributes.
36133 2004-08-16 17:17 ravindra
36135 * SWF.csproj: Updated project.
36137 2004-08-16 17:16 jackson
36139 * XplatUIX11.cs: Check for more expose events before sending a
36140 WM_PAINT so they can all be grouped together. This makes dragging a
36141 window across another window redraw in a sane way.
36143 2004-08-16 15:47 pbartok
36146 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
36147 support OnMouseEnter/Leave()
36148 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
36151 2004-08-16 15:46 pbartok
36153 * XplatUIStructs.cs, XplatUIX11.cs:
36154 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
36155 OnMouseEnter/Leave()
36157 2004-08-16 15:34 jackson
36159 * XplatUIX11.cs: Group multiple expose events in HandleData, make
36160 sure messages get the message field set to WM_NULL if they are not
36163 2004-08-16 15:24 jackson
36165 * HandleData.cs: HandleData is used for storing message information
36168 2004-08-15 17:23 ravindra
36170 * ColorDepth.cs: Added attribute.
36172 2004-08-15 17:23 ravindra
36174 * SWF.csproj: Updated project for ToolBar Control.
36176 2004-08-15 17:20 ravindra
36178 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36179 control and also dos2unix format.
36181 2004-08-15 17:13 ravindra
36183 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36184 ToolBarButtonClickEventArgs.cs,
36185 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36186 ToolBarTextAlign.cs: First Implementation of ToolBar control.
36188 2004-08-15 15:31 pbartok
36191 - First (mostly) working version
36193 2004-08-13 16:15 pbartok
36196 - Fixed Anchor default
36198 2004-08-13 15:43 pbartok
36201 - Changed GetCursorPos signature
36203 2004-08-13 15:42 pbartok
36205 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36206 - Changed signature for GetCursorPos
36208 2004-08-13 15:25 pbartok
36212 - Fixed resizing/exposure handling
36214 2004-08-13 15:22 jordi
36216 * ThemeWin32Classic.cs: removes redundant code and fixes issues
36219 2004-08-13 14:55 jordi
36221 * TrackBar.cs: change from wndproc to events
36223 2004-08-13 13:00 jordi
36225 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36226 XplatUIX11.cs: implements PointToClient (ScreenToClient)
36228 2004-08-13 12:53 pbartok
36231 - Changed GetWindowPos to also provide client area size
36232 - Fixed broken prototypes for several win32 functions
36234 2004-08-13 12:53 pbartok
36236 * XplatUI.cs, XplatUIDriver.cs:
36237 - Changed GetWindowPos to also provide client area size
36239 2004-08-13 12:52 pbartok
36242 - Added generation of WM_POSCHANGED
36243 - Changed GetWindowPos to also provide client area size
36245 2004-08-13 12:52 pbartok
36248 - Added Dispose() and destructor
36249 - Fixed resizing and bounds calculation
36251 - Added memory savings for invisible windows
36253 2004-08-13 12:46 jordi
36255 * TrackBar.cs: adds timer and grap window
36257 2004-08-13 10:25 jackson
36259 * Timer.cs: SWF Timer
36261 2004-08-12 16:59 pbartok
36263 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36264 - Implemented method to get current mouse position
36266 2004-08-12 14:29 jordi
36268 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36269 enhancement, fix mouse problems, highli thumb, etc
36271 2004-08-12 13:31 pbartok
36274 - Fixed Anchoring bugs
36276 2004-08-12 13:01 jackson
36278 * StatusBar.cs: Don't forget things
36280 2004-08-12 12:54 jackson
36282 * ThemeWin32Classic.cs: Handle owner draw status bars
36284 2004-08-12 12:54 jackson
36286 * StatusBar.cs: Implement missing properties, events, and methods.
36287 Handle mouse clicking
36289 2004-08-12 10:19 jackson
36291 * StatusBarPanelClickEventArgs.cs,
36292 StatusBarPanelClickEventHandler.cs: Classes for handling status
36293 bar panel click events
36295 2004-08-12 10:10 jackson
36297 * Control.cs: Add missing properties
36299 2004-08-12 09:46 pbartok
36301 * BindingsManagerBase.cs:
36302 - Name changed to BindingManagerBase.cs
36304 2004-08-12 09:25 jordi
36306 * ScrollableControl.cs: calls ctrlbase instead of exeception
36308 2004-08-11 16:28 pbartok
36310 * InputLanguageChangingEventArgs.cs:
36311 - Never check in before compiling. Fixes the last check-in
36313 2004-08-11 16:26 pbartok
36315 * InputLanguageChangingEventArgs.cs:
36316 - More signature fixes
36318 2004-08-11 16:20 pbartok
36320 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36321 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36322 ImageListStreamer.cs, InputLanguage.cs,
36323 InputLanguageChangedEventArgs.cs,
36324 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36325 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36326 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36327 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36330 2004-08-11 16:16 pbartok
36334 - Added .Net 1.1 method
36336 2004-08-11 15:25 pbartok
36339 - Fixed BindingManagerBase.cs filename
36341 2004-08-11 15:22 pbartok
36343 * BindingManagerBase.cs:
36344 - Was checked in with wrong filename
36346 2004-08-11 14:50 pbartok
36351 2004-08-11 13:41 jordi
36353 * XplatUIWin32.cs: Fixes ClientRect
36355 2004-08-11 13:19 pbartok
36357 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36359 - We had SetWindowPos and MoveWindow to set window positions and
36360 size, removed MoveWindow. We have GetWindowPos, so it made sense to
36361 keep SetWindowPos as matching counterpart
36362 - Added some X11 sanity checking
36364 2004-08-11 12:59 pbartok
36367 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36368 (It seems that SetBounds is just a front for SetBoundsCore and
36369 SetBoundsCore updates the underlying window system and
36370 UpdateBounds is responsible for updating the variables associated
36371 with the Control and sending the events)
36372 - Major cleanup of Size handling; we now have two sizes, client_size
36373 and bounds. Bounds defines the window with decorations, client_size
36376 2004-08-11 12:55 pbartok
36378 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36379 - Added method to calculate difference between decorated window and
36382 2004-08-11 12:54 pbartok
36385 - Forcing redraw on resize
36387 2004-08-11 11:43 pbartok
36390 - Removed disposing of the actual images when the list is disposed
36392 2004-08-11 09:13 pbartok
36395 - Now properly reparents windows
36397 2004-08-11 08:37 pbartok
36402 2004-08-11 07:47 pbartok
36405 - Rewrote the collection stuff. Might not be as fast now, not
36406 keeping the number of children around and accessible directly, but
36407 it's more straightforward
36409 2004-08-11 07:44 pbartok
36411 * AccessibleObject.cs:
36412 - Fixed to match ControlCollection rewrite
36414 2004-08-11 07:43 pbartok
36417 - Added missing creation of the collection list
36419 2004-08-10 20:08 jackson
36421 * StatusBar.cs: Get the paint message from WndProc
36423 2004-08-10 19:31 jackson
36425 * ThemeWin32Classic.cs: Create Brushes as little as possible
36427 2004-08-10 19:20 jackson
36429 * UICues.cs: Add Flags attribute
36431 2004-08-10 19:19 jackson
36433 * StatusBarPanel.cs: Signature cleanup
36435 2004-08-10 19:10 jackson
36437 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36438 Initial implementation of status bar item drawing
36440 2004-08-10 17:27 jordi
36442 * TrackBar.cs: add missing methods, properties, and restructure to
36445 2004-08-10 16:24 jackson
36447 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36448 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36451 2004-08-10 13:21 jordi
36453 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36454 enhancements and standarize on win colors defaults
36456 2004-08-10 12:52 jackson
36458 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36459 ThemeWin32Classic.cs: Implement DrawItem functionality
36461 2004-08-10 12:47 jordi
36463 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36465 2004-08-10 12:32 jordi
36467 * Control.cs: throw ontextchange event
36469 2004-08-10 11:43 pbartok
36472 - Added more to the still unfinished Dock/Anchor layout code
36474 2004-08-10 11:39 pbartok
36476 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36477 - Added GetWindowPos method
36479 2004-08-10 11:36 pbartok
36482 - Implemented several methods
36484 2004-08-10 09:47 jackson
36486 * TrackBar.cs: Allow control to handle buffering
36488 2004-08-10 09:41 jackson
36490 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36492 2004-08-10 09:24 jackson
36494 * Label.cs, LinkLabel.cs: Let Control handle buffering.
36496 2004-08-10 09:09 jackson
36498 * StatusBar.cs: Let Control handle all the buffering.
36500 2004-08-10 09:08 jackson
36502 * Control.cs: Control will now handle the buffering code, so each
36503 control does not have to implement this.
36505 2004-08-10 08:34 jackson
36507 * XplatUIDriver.cs: Use default colors from the theme
36509 2004-08-09 17:12 pbartok
36512 - Fixed several bugs Ravindra pointed out
36514 2004-08-09 16:11 pbartok
36517 - Added incomplete dock layout code
36518 - Added support for mouse wheel
36520 2004-08-09 16:09 pbartok
36523 - Added handling for middle and right mousebutton
36524 - Added handling for mouse wheel
36525 - Added handling for key state and mouse state and position
36526 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36529 2004-08-09 15:40 jackson
36531 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36532 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36535 2004-08-09 15:37 jackson
36537 * StatusBar.cs: Initial implementation of StatusBar
36539 2004-08-09 15:36 jackson
36541 * ITheme.cs: Add support for drawing status bar and getting status
36544 2004-08-09 15:35 pbartok
36549 2004-08-09 15:34 jackson
36551 * ThemeWin32Classic.cs: Add support for drawing status bar and get
36552 status bar item sizes
36554 2004-08-09 15:21 jackson
36556 * ThemeWin32Classic.cs: Use known colors for default control
36559 2004-08-09 15:12 jackson
36561 * ThemeWin32Classic.cs: Make the default font static, it is static
36562 in control so this doesn't change functionality and creating fonts
36565 2004-08-09 14:56 pbartok
36568 - Added GrabMode enum
36570 2004-08-09 14:55 pbartok
36572 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36573 - Removed Run method, was only required for initial development
36575 2004-08-09 14:51 pbartok
36577 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36578 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36581 2004-08-09 13:48 pbartok
36584 - Fixed default sizing for child windows
36586 2004-08-09 12:56 pbartok
36589 - Added generation of WM_DESTROY message
36590 - Added handling of window manager induced shutdown
36592 2004-08-09 11:31 jackson
36594 * ThemeWin32Classic.cs: New names for control properties
36596 2004-08-09 11:25 jackson
36598 * Control.cs: Use new color names
36600 2004-08-09 11:02 jackson
36602 * XplatUI.cs: Get default window properties from the theme
36604 2004-08-09 11:01 jackson
36606 * ITheme.cs: The theme engine now controls default window
36609 2004-08-09 11:00 jackson
36611 * ThemeWin32Classic.cs: Add default window color properties
36613 2004-08-09 10:17 jackson
36615 * ThemeWin32Classic.cs: Use correct default back color
36617 2004-08-09 10:05 jackson
36619 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36622 2004-08-09 09:56 jackson
36624 * XplatUI.cs: Remove defaults, these are handled by the theme now.
36626 2004-08-09 09:54 jackson
36628 * Control.cs: Get default properties from the theme.
36630 2004-08-09 09:53 jackson
36632 * ITheme.cs: Themes now handle default control properties
36634 2004-08-09 09:53 jackson
36636 * ThemeWin32Classic.cs: Themes now handle default control
36637 properties so coloring will be consistent
36639 2004-08-08 16:54 jordi
36641 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36643 2004-08-08 15:08 jordi
36645 * XplatUIX11.cs: fixes keyboard crash
36647 2004-08-08 13:47 jordi
36649 * Label.cs: add cvs header info
36651 2004-08-08 12:09 jackson
36653 * ThemeWin32Classic.cs: Add pen_buttonface
36655 2004-08-08 11:52 jordi
36657 * Label.cs, LinkLabel.cs: [no log message]
36659 2004-08-08 11:34 jordi
36661 * ThemeWin32Classic.cs: Use Windows Standard Colours
36663 2004-08-07 17:32 jordi
36665 * TrackBar.cs: throw exceptions of invalid enums values
36667 2004-08-07 17:31 jordi
36669 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36672 2004-08-07 16:56 jackson
36674 * HorizontalAlignment.cs: Initial checkin
36676 2004-08-07 13:16 jordi
36678 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36681 2004-08-07 13:05 jordi
36683 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36684 GetSysColor defines
36686 2004-08-06 18:01 pbartok
36688 * ThemeWin32Classic.cs:
36689 - Fixed some rounding issues with float/int
36691 2004-08-06 18:00 jackson
36693 * DockStyle.cs, AnchorStyles.cs:
36695 Add flags and serializable attributes.
36697 2004-08-06 17:46 pbartok
36700 - Implemented GetParent
36702 2004-08-06 17:18 pbartok
36705 - Fixed some rounding issues with float/int
36707 2004-08-06 17:17 pbartok
36709 * X11Structs.cs, XplatUIX11.cs:
36710 - Fixed Refresh and Invalidate
36712 2004-08-06 15:30 pbartok
36714 * Control.cs, X11Structs.cs, XplatUIX11.cs:
36715 - Fixed recursive loop when resizing
36716 - Improved/fixed redrawing on expose messages
36718 2004-08-06 09:53 jordi
36720 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36721 keyboard navigation
36723 2004-08-06 08:02 pbartok
36725 * X11Structs.cs, XplatUIX11.cs:
36726 - Fixed reparenting
36727 - Fixed window border creation
36729 2004-08-05 15:38 pbartok
36732 - Attempted fix for reparenting problems
36734 2004-08-04 15:14 pbartok
36737 - Fixed Invalidation bug (calculated wrong client area)
36738 - Added ClientSize setter
36740 2004-08-04 15:13 pbartok
36743 - Added AutoScale properties
36745 2004-08-04 15:13 pbartok
36748 - Added latest files
36750 2004-08-04 14:11 pbartok
36752 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36754 - Added Invalidate handling
36756 2004-08-03 17:09 jordi
36758 * XplatUIDriver.cs: fixes spelling mistake
36760 2004-07-27 09:53 jordi
36762 * TrackBar.cs: fixes trackbar events, def classname, methods
36765 2004-07-27 09:29 jordi
36767 * ScrollBar.cs: fixes scrollbar events
36769 2004-07-27 04:38 jordi
36771 * Control.cs: changes to be able to run winforms samples
36773 2004-07-26 11:42 jordi
36775 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36776 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36778 2004-07-26 05:41 jordi
36780 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36781 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36784 2004-07-22 09:22 jordi
36786 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36787 check link overlapping, implement events, and fixes
36789 2004-07-21 10:28 jordi
36791 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36793 2004-07-21 10:19 jordi
36795 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36796 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36797 LinkLabelLinkClickedEventArgs.cs,
36798 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36799 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36802 2004-07-19 13:09 jordi
36804 * Control.cs, Label.cs: label control re-written: added missing
36805 functionlity, events, and properties
36807 2004-07-19 10:49 jordi
36809 * Control.cs: fixes SetBounds logic
36811 2004-07-19 01:29 jordi
36813 * Control.cs: Call RefreshWindow only if the window has created
36815 2004-07-15 14:05 pbartok
36817 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36818 - Implemented ImageList and ImageList.ImageCollection classes
36819 - Added ColorDepth enumeration
36820 - Updated SWF VS.Net project
36822 2004-07-15 11:06 jordi
36824 * XplatUIStructs.cs: added MsgButons enum
36826 2004-07-15 11:03 jordi
36828 * Control.cs: added basic mouse handeling events
36830 2004-07-15 03:38 jordi
36832 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36833 Vertical TrackBar control implementation
36835 2004-07-13 09:33 jordi
36837 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36839 2004-07-13 09:31 jordi
36841 * Control.cs, Form.cs: commit: new properties and fixes form size
36844 2004-07-09 14:13 miguel
36846 * ProgressBar.cs: Spelling
36848 2004-07-09 11:25 pbartok
36851 - Removed usage of Rectangle for drawing. Miguel pointed out it's
36854 2004-07-09 11:17 miguel
36856 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
36858 * ProgressBar.cs: Fixed spelling for `block'
36860 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36863 Avoid using the += on rect.X, that exposed a bug in the compiler.
36865 2004-07-08 23:21 pbartok
36867 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36868 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36869 BaseCollection.cs, Binding.cs, BindingContext.cs,
36870 BindingMemberInfo.cs, BindingsCollection.cs,
36871 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36872 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36873 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36874 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36875 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36876 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36877 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36878 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36879 FrameStyle.cs, GiveFeedbackEventArgs.cs,
36880 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36881 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36882 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36883 InputLanguageChangedEventArgs.cs,
36884 InputLanguageChangedEventHandler.cs,
36885 InputLanguageChangingEventArgs.cs,
36886 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36887 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36888 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36889 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36890 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36891 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36892 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36893 QueryAccessibilityHelpEventArgs.cs,
36894 QueryAccessibilityHelpEventHandler.cs,
36895 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36896 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36897 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36898 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36899 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36900 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36901 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36902 XplatUIX11.cs, lang.cs: